/* ==========================================================
   WE ARE — HEADER COMMUN
   LIQUID GLASS

   Desktop responsive
   Menu mobile Liquid Glass
   Thème clair et sombre
   Masquage au scroll
========================================================== */


/* ==========================================================
   01 — HEADER PRINCIPAL
========================================================== */

.header {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: max-content;
    max-width: calc(100vw - 32px);
    height: 76px;

    padding: 0 16px;
    gap: 12px;

    box-sizing: border-box;

    transform: translateX(-50%);

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;

    background: rgba(255, 255, 255, .035);

    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, .45),
        inset 0 -2px 3px rgba(255, 255, 255, .07),
        0 8px 30px rgba(0, 0, 0, .10);

    transition:
        transform .65s cubic-bezier(.22, 1, .36, 1),
        opacity .45s ease,
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}


/* ==========================================================
   02 — MASQUAGE AU SCROLL
========================================================== */

.header.header-hidden {
    transform: translate(-50%, -130px);
    opacity: 0;
    pointer-events: none;
}


/* ==========================================================
   03 — NAVIGATION
========================================================== */

.header .nav {
    display: flex;
    align-items: center;

    height: 100%;
    gap: 2px;

    flex: 0 0 auto;
}

.header .nav a {
    position: relative;

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

    height: 48px;
    padding: 0 14px;

    border: 1px solid transparent;
    border-radius: 999px;

    color: rgba(247, 241, 233, .82);

    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.header .nav a::after {
    display: none;
}

.header .nav a:hover,
.header .nav a.active {
    color: #F7F1E9;

    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .20);
}


/* ==========================================================
   04 — PARTIE DROITE
========================================================== */

.header .header-right {
    display: flex;
    align-items: center;

    height: 100%;
    gap: 12px;

    margin-left: auto;

    flex: 0 0 auto;
}


/* ==========================================================
   05 — FORMULE GROUPE
========================================================== */

.header .group-link {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 48px;
    padding: 0 13px;
    gap: 9px;

    flex: 0 0 auto;

    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;

    background: rgba(255, 255, 255, .07);

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .25s ease,
        border-color .25s ease;
}

.header .group-link:hover {
    background: rgba(255, 255, 255, .15);
}

.header .group-link-text {
    color: #F7F1E9;

    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;

    white-space: nowrap;
}

.header .group-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #E96732;

    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;

    transition: transform .25s ease;
}

.header .group-link:hover .group-link-arrow {
    transform: translateX(3px);
}

.header .group-link-logo {
    display: block;

    width: 35px;
    height: 32px;

    flex: 0 0 auto;

    object-fit: contain;

    filter: brightness(0) invert(1);
}


/* ==========================================================
   06 — RÉSEAUX SOCIAUX
========================================================== */

.header .header-socials {
    display: flex;
    align-items: center;

    gap: 7px;

    flex: 0 0 auto;
}

.header .social-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 50%;

    background: rgba(255, 255, 255, .07);

    text-decoration: none;

    transition:
        background .25s ease,
        transform .25s ease;
}

.header .social-link svg {
    display: block;

    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    fill: #F7F1E9;
}

.header .social-link:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-2px);
}


/* ==========================================================
   07 — LOGO WE ARE
========================================================== */

.header .header-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;

    flex: 0 0 44px;

    text-decoration: none;
}

.header .header-logo {
    display: block;

    width: 44px;
    height: auto;

    max-width: none;

    filter: brightness(0) invert(1);
}


/* ==========================================================
   08 — VERSION CLAIRE
========================================================== */

.header.glass-light {
    background: rgba(230, 220, 210, .24);

    border-color: rgba(255, 255, 255, .75);

    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, .75),
        inset 0 -2px 3px rgba(70, 50, 35, .07),
        0 12px 35px rgba(30, 20, 15, .12);
}

.header.glass-light .nav a {
    color: #141110;
}

.header.glass-light .nav a:hover,
.header.glass-light .nav a.active {
    color: #141110;
    background: rgba(20, 17, 16, .045);
    border-color: rgba(255, 255, 255, .45);
}

.header.glass-light .group-link {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .75);
}

.header.glass-light .group-link-text {
    color: #141110;
}

.header.glass-light .group-link-logo {
    filter: brightness(0);
}

.header.glass-light .social-link {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .75);
}

.header.glass-light .social-link svg {
    fill: #141110;
}

.header.glass-light .header-logo {
    filter: brightness(0);
}


/* ==========================================================
   09 — BOUTON MENU MOBILE
========================================================== */

.header .mobile-menu-button {
    display: none;
}


/* ==========================================================
   10 — DESKTOP INTERMÉDIAIRE
========================================================== */

@media (min-width: 1101px) and (max-width: 1450px) {

    .header {
        gap: 8px;
        padding: 0 12px;
    }

    .header .nav {
        gap: 0;
    }

    .header .nav a {
        padding: 0 10px;
        font-size: 10px;
        letter-spacing: .5px;
    }

    .header .header-right {
        gap: 8px;
    }

    .header .group-link {
        padding: 0 10px;
        gap: 7px;
    }

    .header .group-link-text {
        font-size: 8px;
        letter-spacing: .5px;
    }

    .header .header-socials {
        gap: 5px;
    }

    .header .social-link {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .header .header-logo-link {
        width: 40px;
        flex-basis: 40px;
    }

    .header .header-logo {
        width: 40px;
    }

}


/* ==========================================================
   11 — PETITS DESKTOPS
========================================================== */

@media (min-width: 901px) and (max-width: 1100px) {

    .header {
        gap: 6px;
        padding: 0 10px;
    }

    .header .nav {
        gap: 0;
    }

    .header .nav a {
        padding: 0 8px;
        font-size: 9px;
        letter-spacing: .3px;
    }

    .header .header-right {
        gap: 6px;
    }

    .header .group-link {
        padding: 0 8px;
        gap: 5px;
    }

    .header .group-link-text {
        font-size: 7px;
        letter-spacing: .3px;
    }

    .header .group-link-logo {
        width: 28px;
        height: 28px;
    }

    .header .header-socials {
        gap: 4px;
    }

    .header .social-link {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .header .social-link svg {
        width: 15px;
        height: 15px;
    }

    .header .header-logo-link {
        width: 36px;
        flex-basis: 36px;
    }

    .header .header-logo {
        width: 36px;
    }

}


/* ==========================================================
   12 — TABLETTE / MOBILE
========================================================== */

@media (max-width: 900px) {

    .header {
        top: 10px;
        left: 10px;

        width: calc(100% - 20px);
        max-width: none;
        height: 62px;

        padding: 0 14px;
        gap: 10px;

        transform: none;
    }

    .header.header-hidden {
        transform: translateY(-100px);
    }


    /* HAMBURGER */

    .header .mobile-menu-button {
        position: relative;
        z-index: 1002;

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

        width: 42px;
        height: 42px;

        flex: 0 0 42px;

        gap: 5px;
        padding: 0;

        border: 0;
        background: transparent;

        cursor: pointer;
    }

    .header .mobile-menu-button span {
        display: block;

        width: 23px;
        height: 2px;

        border-radius: 999px;

        background: #F7F1E9;

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

    .header.glass-light .mobile-menu-button span {
        background: #141110;
    }


    /* ANIMATION CROIX */

    .header.menu-open .mobile-menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header.menu-open .mobile-menu-button span:nth-child(2) {
        opacity: 0;
    }

    .header.menu-open .mobile-menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* ======================================================
       MENU MOBILE — LIQUID GLASS FUMÉ
    ====================================================== */

    .header .nav {
        position: absolute;

        top: 72px;
        left: 0;

        z-index: 1001;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        height: auto;

        padding: 12px;
        gap: 4px;

        box-sizing: border-box;

        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 24px;

        /*
           Fond brun fumé volontairement opaque.
           Le flou ajoute l'effet verre sans nuire
           à la lisibilité des liens.
        */

        background: rgba(30, 23, 21, .94);

        backdrop-filter: blur(35px) saturate(170%);
        -webkit-backdrop-filter: blur(35px) saturate(170%);

        box-shadow:
            inset 0 2px 2px rgba(255, 255, 255, .18),
            inset 0 -2px 3px rgba(255, 255, 255, .035),
            0 18px 45px rgba(0, 0, 0, .28);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity .3s ease,
            visibility .3s ease,
            transform .3s cubic-bezier(.16, 1, .3, 1);
    }


    /* Reflet supérieur du panneau */

    .header .nav::before {
        content: "";

        position: absolute;
        inset: 1px;

        border-radius: inherit;

        background: linear-gradient(
            160deg,
            rgba(255, 255, 255, .10),
            rgba(255, 255, 255, .025) 32%,
            transparent 65%
        );

        pointer-events: none;
    }


    /* Même fond dans les deux thèmes */

    .header.glass-light .nav {
        background: rgba(30, 23, 21, .94);

        border-color: rgba(255, 255, 255, .28);
    }


    /* Ouverture */

    .header.menu-open .nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }


    /* Liens */

    .header .nav a,
    .header.glass-light .nav a {
        position: relative;
        z-index: 1;

        width: 100%;
        height: auto;

        justify-content: flex-start;

        padding: 15px 17px;

        border: 1px solid transparent;
        border-radius: 14px;

        color: #F7F1E9;

        font-size: 13px;
        font-weight: 800;
        letter-spacing: 1px;
    }


    /* Survol et lien actif */

    .header .nav a:hover,
    .header .nav a.active,
    .header.glass-light .nav a:hover,
    .header.glass-light .nav a.active {
        color: #F7F1E9;

        background: rgba(255, 255, 255, .11);

        border-color: rgba(255, 255, 255, .12);
    }


    /* ======================================================
       PARTIE DROITE
    ====================================================== */

    .header .header-socials {
        display: none;
    }

    .header .header-right {
        gap: 9px;
    }

    .header .group-link {
        height: 40px;
        padding: 0 9px;
        gap: 6px;
    }

    .header .group-link-text {
        font-size: 7px;
        letter-spacing: .4px;
    }

    .header .group-link-arrow {
        font-size: 17px;
    }

    .header .group-link-logo {
        width: 28px;
        height: 28px;
    }

    .header .header-logo-link {
        width: 37px;
        flex-basis: 37px;
    }

    .header .header-logo {
        width: 37px;
    }

}


/* ==========================================================
   13 — PETITS MOBILES
========================================================== */

@media (max-width: 430px) {

    .header .group-link-text {
        display: none;
    }

}


/* ==========================================================
   14 — ACCESSIBILITÉ
========================================================== */

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

    .header,
    .header *,
    .header *::before,
    .header *::after {
        transition-duration: .01ms !important;
    }

}

/* ==========================================
   MENU MOBILE — VRAI LIQUID GLASS
========================================== */

@media (max-width: 900px) {

    /* Quand le menu est ouvert, on retire
       temporairement le filtre du header
       pour permettre au menu de flouter
       réellement la page derrière lui. */

    .header.menu-open {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Panneau déroulant */

    .header .nav,
    .header.glass-light .nav {

        background: rgba(24, 18, 16, 0.72);

        backdrop-filter: blur(60px) saturate(180%);
        -webkit-backdrop-filter: blur(60px) saturate(180%);

        border: 1px solid rgba(255, 255, 255, 0.35);

        border-radius: 24px;

        box-shadow:
            inset 0 2px 3px rgba(255, 255, 255, 0.20),
            inset 0 -2px 3px rgba(255, 255, 255, 0.05),
            0 20px 60px rgba(0, 0, 0, 0.30);

    }

    /* Texte toujours lisible */

    .header .nav a,
    .header.glass-light .nav a {
        color: #F7F1E9;
    }

    /* Reflet Liquid Glass */

    .header .nav::before {

        background: linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(255, 255, 255, 0.04) 35%,
            transparent 70%
        );

    }

}