@import "base-header.css?v=2024-06";

/* =============================================
   HOMEPAGE HERO
   ============================================= */
.header-background-div {
    height: 100dvh;
    min-height: 600px;
    justify-content: center;
    align-items: center;
}

/* Hero title */
#homepage-main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4rem 2.4rem 2rem;
    margin-top: 7rem;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    mix-blend-mode: screen;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.homepage-main-title-container {
    text-align: center;
    max-width: 900px;
}

#homepage-main-title p {
    margin: 0;
    font-family: var(--font-family-base);
    color: #fff;
}

/* Main title line — knockout text effect */
.title-highlight {
    font-size: clamp(4.2rem, 7vw, 7.5rem);
    font-weight: 900;
    line-height: 1.1;
    display: block;
    margin: 0 0 4.5rem;
    letter-spacing: -0.03em;
}

.title-highlight span {
    background: #fff;
    color: #000;
    padding: 0.1em 0.5em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline;
    line-height: 1.6;
}

/* Subtitle */
.subtitle-text {
    font-size: clamp(2.6rem, 4.5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.3;
    white-space: nowrap;
}

.subtitle-text span {
    color: #fff;
}

/* "Ouvert toute l'année" */
.subtitle-open {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.subtitle-open span {
    color: #fff;
}

/* Nav + scroll pushed down with spacer */
.desktop-nav {
    margin-bottom: 1rem;
}

/* =============================================
   SCROLL INDICATOR
   ============================================= */
.scroll-indicator {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 2.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    animation: scrollBounce 2.5s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 2rem;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media screen and (max-width: 1100px) {
    #homepage-main-title {
        flex: 1;
        padding-top: 7rem;
        margin-top: 0;
    }

    .subtitle-text {
        white-space: normal;
    }

    .title-highlight span,
    .subtitle-text span {
        padding: 0.1em 0.4em;
    }

    .scroll-indicator {
        font-size: 1.6rem;
        letter-spacing: 0.2rem;
        padding-bottom: 1.5rem;
    }
}

@media screen and (max-width: 520px) {
    .title-highlight {
        font-size: 3rem;
    }

    .subtitle-text {
        font-size: 1.8rem;
    }

    .subtitle-open {
        font-size: 1.6rem;
    }
}

@media screen and (max-height: 650px) {
    .header-background-div {
        min-height: 480px;
    }

    #homepage-main-title {
        padding: 2rem 2.4rem 1rem;
        margin-top: 0;
    }

    .scroll-indicator {
        padding-bottom: 1rem;
    }
}
