/*
 * =========================================================
 * HEADER.CSS
 * =========================================================
 *
 * Header principal du site.
 *
 * Organisation :
 *
 *              Sylvie & Thierry
 *
 *                           compte  langue  menu
 *
 * Le header est indépendant du contenu des pages.
 * =========================================================
 */


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

.site-header {

    position: relative;

    z-index: 1000;

    width: 100%;

    background: var(--color-header);

    border-bottom: 1px solid rgba(120, 120, 120, 0.28);
}


.site-header__inner {

    position: relative;

    width: 100%;

    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 28px;
}


/* =========================================================
   NOMS
   ========================================================= */

.site-header__names {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-family: "Allura", cursive;

    font-size: 38px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;

    color: var(--color-ivoire);

    white-space: nowrap;
}


.site-header__ampersand {

    font-size: 17px;

    letter-spacing: 1px;
}


/* =========================================================
   ACTIONS À DROITE
   ========================================================= */

.site-header__actions {

    position: absolute;

    right: 28px;

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    align-items: center;

    gap: 18px;
}


/* =========================================================
   BOUTONS D'ACTION
   ========================================================= */

.header-action {

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--color-ivoire);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.language-button {

    color: var(--color-gold);
}


.header-action:hover {

    opacity: 0.65;
}


/* =========================================================
   ICÔNE COMPTE
   ========================================================= */

.header-account svg {

    width: 22px;

    height: 22px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.4;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   SÉLECTEUR DE LANGUE
   ========================================================= */

.language-selector {

    position: relative;
}


.language-button {

    font-size: 22px;

    line-height: 1;
}


.language-menu {

    position: absolute;

    top: calc(100% + 10px);

    right: -5px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 48px;

    padding: 7px;

    background: #ffffff;

    border: 1px solid rgba(198, 161, 91, 0.55);

    box-shadow: 0 8px 25px rgba(50, 40, 25, 0.12);
}


.language-menu[hidden] {

    display: none;
}


.language-menu a {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 30px;

    font-size: 20px;
}


.language-menu a.active {

    background: rgba(198, 161, 91, 0.12);
}


/* =========================================================
   BOUTON MENU
   ========================================================= */

.menu-button {

    flex-direction: column;

    gap: 5px;
}


.menu-button span {

    display: block;

    width: 22px;

    height: 1.5px;

    background: currentColor;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/*
 * État ouvert :
 * les trois lignes deviennent une croix.
 */

.menu-button.is-open span:nth-child(1) {

    transform:
        translateY(6.5px)
        rotate(45deg);
}


.menu-button.is-open span:nth-child(2) {

    opacity: 0;
}


.menu-button.is-open span:nth-child(3) {

    transform:
        translateY(-6.5px)
        rotate(-45deg);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer__names {

    padding: 35px 20px;

    text-align: center;

    font-family: "Allura", cursive;

    font-size: 30px;

    font-weight: 400;

    letter-spacing: 1px;

    color: var(--color-gold);
}


.site-footer__names span {

    margin: 0 5px;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 800px) {

    .site-header__inner {

        min-height: 68px;

        padding: 0 20px;
    }


    .site-header__actions {

        right: 20px;

        gap: 12px;
    }


    .site-header__names {

        font-size: 20px;

        letter-spacing: 2px;
    }

}


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

@media (max-width: 600px) {

    .site-header__inner {

        min-height: 62px;

        padding: 0 14px;
    }


    .site-header__names {

        font-size: 32px;

        letter-spacing: 0.5px;

        gap: 5px;

        margin-right: 200px;
    }


    .site-header__ampersand {

        font-size: 13px;
    }


    .site-header__actions {

        right: 12px;

        gap: 7px;
    }


    .header-action {

        width: 28px;

        height: 28px;
    }


    .header-account svg {

        width: 20px;

        height: 20px;
    }


    .language-button {

        font-size: 19px;
    }


    .menu-button span {

        width: 20px;
    }


    .site-footer__names {

        font-size: 20px;

        letter-spacing: 2px;
    }

}