/* ================================================================ */
/* FOOTER — Cabanes Val de Loue                                      */
/* ================================================================ */

/*
 * Effet "volet" : le footer est positionné en sticky bottom: 0,
 * derrière le contenu (z-index inférieur). Quand l'utilisateur
 * scrolle jusqu'en bas, le contenu principal remonte et révèle
 * progressivement le footer qui "attendait" derrière.
 *
 * Prérequis : #page doit avoir position: relative et un z-index
 * supérieur au footer. Le body ne doit pas avoir overflow: hidden.
 */

#page {
    position: relative;
    z-index: 1;
    /* Permet au footer sticky d'être visible sous le contenu */
    background-color: #FFFCF5;
}

.site-footer {
    position: fixed;
    bottom: 0;
    z-index: 0;
    width: 100%;
    /* On réserve la hauteur totale du footer dès le départ */
    /* pour que le scroll "débouche" naturellement dessus.  */
}

/* ---------------------------------------------------------- */
/* 1. BANNIÈRE PARALLAX                                        */
/* ---------------------------------------------------------- */

.footer-banner {
    position: relative;
    height: 60vh;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-banner__bg {
    position: absolute;
    inset: -80px 0; /* débordement vertical pour le parallax */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
}

.footer-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 34, 17, 0.35) 0%, rgb(28 43 30) 100%);
}

.footer-banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-banner__titre {
    font-family: "aquavit", sans-serif;
    font-size: 4.8rem;
    font-weight: 500;
    line-height: 1.15;
    color: #FFFCF5;
    margin: 0;
}

/* Bouton texte souligné (même style que le reste du site) */
.footer-banner__btn {
    position: relative;
    display: inline-block;
    font-family: "Jost", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 2.1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFFCF5;
    padding-bottom: 6px;
    margin: 0;
}

.footer-banner__btn::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #EDBA8D;
}

.footer-banner__btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #FFFCF5;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.footer-banner__btn:hover::after {
    transform: scaleX(1);
}

/* ---------------------------------------------------------- */
/* 2. NAV + LOGO                                               */
/* ---------------------------------------------------------- */

.footer-nav {
    background-color: #1C2B1E; /* vert très sombre, légèrement plus foncé que primary */
    padding: 72px 0 56px;
}

.footer-nav__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-nav__logo-wrap {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.footer-nav__logo {
    display: inline-flex;
    margin: 0;
    text-decoration: none;

    img {
        width: auto;
        height: auto;
        max-width: 240px;
    }
}

.footer-nav__menus {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-nav__menu {
    flex: 1 1 0;
    min-width: 120px;
}

.footer-nav__menu-title {
    font-family: "Jost", sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #EDBA8D;
    margin: 0 0 16px;
}

.footer-nav__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav__menu ul li a {
    font-family: "Jost", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 252, 245, 0.7);
    text-decoration: none;
    margin: 0;
    transition: color 0.2s ease;
}

.footer-nav__menu ul li a:hover {
    color: #FFFCF5;
}

/* ---------------------------------------------------------- */
/* 3. BARRE BASSE                                              */
/* ---------------------------------------------------------- */

.footer-bottom {
    background-color: #161F17; /* encore plus foncé */
    padding: 20px 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-bottom__rs {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-bottom__rs-link {
    font-family: "Jost", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 252, 245, 0.55);
    text-decoration: none;
    margin: 0;
    transition: color 0.2s ease;
}

.footer-bottom__rs-link:hover {
    color: #FFFCF5;
}

.footer-bottom__mentions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom__copy,
.footer-bottom__link {
    font-family: "Jost", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 252, 245, 0.45);
    text-decoration: none;
    margin: 0;
    transition: color 0.2s ease;
}

.footer-bottom__link:hover {
    color: #FFFCF5;
}

/* ---------------------------------------------------------- */
/* Responsive                                                   */
/* ---------------------------------------------------------- */

@media (max-width: 991.98px) {
    .footer-banner__titre {
        font-size: 4rem;
    }

    .footer-nav__row {
        flex-direction: column;
        gap: 48px;
    }

    .footer-nav__menus {
        gap: 32px;
    }

    .footer-nav__logo img {
        max-width: 180px;
    }

    /* Désactiver sticky sur tablette/mobile (layout plus court, pas d'effet volet) */
    .site-footer {
        position: relative;
    }
}

@media (max-width: 767px) {
    .footer-banner {
        min-height: 360px;
    }

    .footer-banner__titre {
        font-size: 3.2rem;
    }

    .footer-nav {
        padding: 48px 0 40px;
    }

    .footer-nav__menus {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
