/* ===== NAV ===== */
header {
    padding: 20px 0;
}

.nav-pill {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 14px 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--background);
    backdrop-filter: blur(10px);
    border: 2px solid var(--line-strong);
    border-radius: 100px;
    transition: box-shadow .3s ease;
}

header.scrolled .nav-pill {
    box-shadow: 0 10px 30px rgba(74, 52, 35, .12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand svg {
    width: 34px;
    height: 34px;
}

.brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 19px;
    color: var(--bark-deep);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--bark);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--cognac);
    border-radius: 2px;
    transition: width .3s var(--ease);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 6px;
}

.burger span {
    width: 22px;
    height: 2.5px;
    background: var(--bark-deep);
    border-radius: 2px;
    display: block;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: var(--background);
    color: var(--text);

    border-bottom: 1px solid var(--border);

    transition: var(--theme-transition);
}

.site-header a {
    color: var(--text);

    transition:
        color .3s ease,
        opacity .3s ease;
}

.site-header a:hover {
    color: var(--accent);
}

/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 50%;

    cursor: pointer;

    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .25s var(--ease);
}

.theme-toggle:hover {
    transform: rotate(10deg);
}

.theme-icon {
    font-size: 18px;
    line-height: 1;
}

/* =========================================================
   A-HOUSES CAMP
   HEADER
========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 22px 34px;

    background: transparent;

    transition:
        background-color .45s ease,
        padding .45s ease,
        box-shadow .45s ease;

}


/* =========================================================
   HEADER INNER
========================================================= */

.header-inner {

    width: min(100%, 1380px);

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 30px;

}


/* =========================================================
   LOGO
========================================================= */

.site-logo {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    width: max-content;

    color: var(--camp-white);

    text-decoration: none;

    transition:
        opacity .3s ease,
        transform .3s ease;

}


.site-logo:hover {

    opacity: .85;

}


.site-logo img {

    width: 42px;

    height: 42px;

    object-fit: contain;

}


.site-logo-text {

    display: flex;

    flex-direction: column;

    line-height: 1;

    letter-spacing: .18em;

}


.site-logo-text strong {

    font-size: 13px;

    font-weight: 700;

}


.site-logo-text small {

    margin-top: 5px;

    font-size: 8px;

    font-weight: 500;

    letter-spacing: .45em;

    opacity: .7;

}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 34px;

}


.main-nav a {

    position: relative;

    color: var(--camp-white);

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .13em;

    text-transform: uppercase;

    white-space: nowrap;

    transition:
        color .3s ease,
        opacity .3s ease;

}


.main-nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 100%;

    height: 1px;

    background: var(--honey);

    transform: scaleX(0);

    transform-origin: right;

    transition:
        transform .35s var(--ease);

}


.main-nav a:hover {

    color: var(--honey);

}


.main-nav a:hover::after {

    transform: scaleX(1);

    transform-origin: left;

}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 20px;

}


/* =========================================================
   MON ESPACE
========================================================= */

.header-account {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--camp-white);

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .1em;

    text-transform: uppercase;

    transition: color .3s ease;

}


.header-account:hover {

    color: var(--honey);

}


/* =========================================================
   ACCOUNT ICON
========================================================= */

.account-icon {

    position: relative;

    width: 17px;

    height: 17px;

    border: 1px solid currentColor;

    border-radius: 50%;

}


.account-icon::before {

    content: "";

    position: absolute;

    top: 3px;

    left: 50%;

    width: 5px;

    height: 5px;

    border: 1px solid currentColor;

    border-radius: 50%;

    transform: translateX(-50%);

}


.account-icon::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: 2px;

    width: 9px;

    height: 5px;

    border: 1px solid currentColor;

    border-bottom: 0;

    border-radius: 8px 8px 0 0;

    transform: translateX(-50%);

}


/* =========================================================
   RÉSERVER
========================================================= */

.header-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 21px;
    color: var(--camp-dark);
    background: var(--honey);
    border: 1px solid var(--honey);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition:
        background-color .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease;
}


.header-booking:hover {
    background: transparent;
    color: var(--camp-white);
    border-color: var(--camp-white);
    transform: translateY(-2px);

}


/* =========================================================
   HEADER SCROLL
========================================================= */

.site-header.scrolled {
    padding-top: 13px;
    padding-bottom: 13px;
    background:
        radial-gradient(
            circle at center,
            var(--forest) 0%,
            var(--forest-dark) 70%
        );
    box-shadow:
        0 8px 30px rgba(0, 0, 0, .16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

}


.site-header.scrolled .site-logo {

    color: var(--camp-white);

}


/* =========================================================
   BURGER
========================================================= */

.burger {

    display: none;

    width: 42px;

    height: 42px;

    padding: 10px;

    border: 1px solid rgba(240, 229, 200, .35);

    background: transparent;

    cursor: pointer;

}


.burger span {

    display: block;

    width: 100%;

    height: 1px;

    margin: 5px 0;

    background: var(--camp-white);

    transition:
        transform .3s ease,
        opacity .3s ease;

}


/* =========================================================
   RESPONSIVE — HEADER
========================================================= */


/* ---------------------------------------------------------
   TABLETTE
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .site-header {
        padding-left: 22px;
        padding-right: 22px;
    }

    .header-inner {
        gap: 20px;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 10px;
        letter-spacing: .1em;
    }

    .header-actions {
        gap: 12px;
    }

    .header-account span:last-child {
        display: none;
    }

    .header-booking {
        padding: 0 17px;
        font-size: 9px;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .site-header {
        padding: 16px 20px;
    }

    .header-inner {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }


    /* =========================
       LOGO
       ========================= */

    .site-logo {
        gap: 9px;
    }

    .site-logo img {
        width: 40px;
        height: 40px;
    }


    /* =========================
       NAVIGATION MOBILE
       ========================= */

    .main-nav {
        position: fixed;

        top: 0;
        right: 0;

        width: min(380px, 88vw);
        height: 100dvh;

        box-sizing: border-box;

        padding: 105px 35px 40px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        gap: 27px;

        background:
            radial-gradient(
                circle at center,
                var(--forest) 0%,
                var(--forest-dark) 70%
            );

        box-shadow:
            -20px 0 60px rgba(0, 0, 0, .3);

        transform: translateX(100%);

        transition:
            transform .45s var(--ease);

        overflow-y: auto;

        z-index: 1000;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 14px;
        letter-spacing: .15em;
    }

    .main-nav a::after {
        bottom: -7px;
    }


    /* =========================
       ACTIONS
       ========================= */

    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-account {
        display: none;
    }

    .header-booking {
        min-height: 39px;
        padding: 0 15px;
        font-size: 9px;
    }


    /* =========================
       BURGER
       ========================= */

    .burger {
        position: relative;
        z-index: 1100;

        display: flex;

        width: 42px;
        height: 42px;

        padding: 9px;

        box-sizing: border-box;

        align-items: center;
        justify-content: center;

        flex-direction: column;
        gap: 5px;

        border: 1px solid rgba(240, 229, 200, .35);

        background: transparent;

        cursor: pointer;
    }

    .burger span {
        display: block;

        width: 100%;
        height: 1px;

        margin: 0;

        background: var(--camp-white);

        transition:
            transform .3s ease,
            opacity .3s ease;
    }
}


/* ---------------------------------------------------------
   PETIT MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .site-header {
        padding: 13px 15px;
    }

    .header-inner {
        gap: 10px;
    }


    /* Logo */

    .site-logo img {
        width: 38px;
        height: 38px;
    }

    .site-logo-text {
        display: none;
    }


    /* Réservation */

    .header-booking {
        display: none;
    }


    /* Burger */

    .burger {
        width: 40px;
        height: 40px;
    }


    /* Menu */

    .main-nav {
        width: 88vw;
        padding: 95px 28px 30px;
        gap: 24px;
    }

    .main-nav a {
        font-size: 13px;
    }
}


/* ---------------------------------------------------------
   TRÈS PETIT MOBILE
   --------------------------------------------------------- */

@media (max-width: 360px) {

    .site-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-logo img {
        width: 36px;
        height: 36px;
    }

    .burger {
        width: 38px;
        height: 38px;
    }

    .main-nav {
        width: 92vw;
        padding-left: 24px;
        padding-right: 24px;
    }

    .main-nav a {
        font-size: 12px;
    }
}


/* ---------------------------------------------------------
   ACCESSIBILITÉ
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .site-header,
    .site-logo,
    .main-nav,
    .main-nav a,
    .header-booking,
    .burger span {
        transition: none !important;
    }
}