/* ==========================================================================
 *  Header — conteneur général
 *  ========================================================================== */
.site_header {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    background-image: url('/wp-content/themes/webstudios/assets/img/bg_header.svg');
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
 *  Barre du haut (logo + contact)
 *  ========================================================================== */
.site_header_top {
    display: flex;
    width: calc(100% - 20px);
    max-width: 1540px;
    justify-content: space-between;
}

.site_header_top_logo {
    display: flex;
}

.site_header_top_logo img {
    display: block;
    height: 70px;
    padding: 10px 0px;
}

.site_header_top_contact {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site_header_top_contact_tel {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site_header_top_contact_tel > span:nth-child(1) img {
    height: 20px;
    width: auto;
}

.site_header_top_contact_tel > span:nth-child(2) {
    font: normal normal normal 22px/22px OS_Bold;
    letter-spacing: 0px;
    color: #100D08;
    text-transform: uppercase;
    margin-left: 15px;
}

.site_header_top_contact_rs {
    display: flex;
    gap: 8px;
}

.site_header_top_contact_rs a {
    text-decoration: none;
}

.site_header_top_contact_rs img {
    height: 45px;
    width: auto;
}

/* ==========================================================================
 *  Bouton burger (masqué en desktop)
 *  ========================================================================== */
.site_header_burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.site_header_burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1D7FC7;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
 *  Barre de menu (nav)
 *  ========================================================================== */
/* ==========================================================================
 *  Menu flottant au scroll
 *  ========================================================================== */
.site_header_sticky_sentinel {
    height: 0;
}

.site_header_menu_container {
    background: #1D7FC7;
    display: flex;
    width: 100%;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100000;
    transition: box-shadow 0.2s ease;
}

.site_header_menu_container.is-stuck {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.site_header_menu_container_sized {
    display: flex;
    width: calc(100% - 20px);
    max-width: 1540px;
    padding: 20px 0px;
}

.site_header_menu_nav {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

.site_header_menu_item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.site_header_menu_item_head {
    display: flex;
    align-items: center;
}

.site_header_menu_item_head a {
    font: normal normal normal 22px/22px OS_Bold;
    letter-spacing: 0px;
    color: #FFFFFF;
    text-transform: uppercase;
    text-decoration: none;
}

.site_header_menu_item.has_submenu > .site_header_menu_item_head > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    margin-bottom: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.site_header_submenu_toggle {
    display: none;
}

.site_header_submenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1D7FC7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 100001;
    padding: 8px 0;
}

.site_header_menu_item:hover > .site_header_submenu,
.site_header_menu_item:focus-within > .site_header_submenu,
.site_header_menu_item.submenu-open > .site_header_submenu {
    display: flex;
}

/* Niveau 2 : le sous-sous-menu s'ouvre en cascade à droite du niveau 1,
 *  plutôt qu'en dessous (qui se superposerait au premier niveau). */
.site_header_submenu .site_header_submenu {
    top: 0;
    left: 100%;
}

.site_header_submenu .site_header_menu_item.has_submenu > .site_header_menu_item_head > a::after {
    margin-bottom: 0;
    transform: rotate(-45deg);
}

.site_header_submenu a {
    font: normal normal normal 17px/17px OS_Bold;
    letter-spacing: 0px;
    color: #FFFFFF;
    text-transform: uppercase;
    text-decoration: none;
    padding: 20px 20px;
    white-space: nowrap;
    width: 100%;
}

.site_header_submenu a:hover {
    background: #E20914;
}

/* ==========================================================================
 *  Responsive — Tablette et mobile (≤ 1024px)
 *  Le menu passe en tiroir déroulant sous la barre du haut, piloté par le
 *  burger (classe "menu-open" ajoutée en JS sur .site_header).
 *  Rien ne change au-dessus de ce breakpoint.
 *  ========================================================================== */
@media (max-width: 1024px) {
    .site_header_burger {
        display: flex;
    }

    .site_header_top_contact {
        gap: 20px;
    }

    .site_header_menu_container {
        display: none;
    }

    body.menu-open .site_header_menu_container {
        display: flex;
    }

    .site_header_menu_container_sized {
        flex-direction: column;
        padding: 20px 0px;
    }

    .site_header_menu_nav {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .site_header_menu_item_head a {
        font: normal normal normal 20px/24px OS_Bold;
    }

    .site_header_submenu a {
        font: normal normal normal 18px/22px OS_Bold;
    }

    /* Transforme le burger en croix quand le menu est ouvert */
    body.menu-open .site_header_burger span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    body.menu-open .site_header_burger span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .site_header_burger span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    /* Sous-menus : accordéon en mobile (pas de hover sur tactile) */
    .site_header_menu_item.has_submenu > .site_header_menu_item_head > a::after {
        display: none;
    }

    .site_header_submenu_toggle {
        display: block;
        width: 24px;
        height: 24px;
        margin-left: 6px;
        padding: 0;
        background: transparent;
        border: none;
        position: relative;
        cursor: pointer;
    }

    .site_header_submenu_toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        margin: -6px 0 0 -5px;
        border-right: 2px solid #FFFFFF;
        border-bottom: 2px solid #FFFFFF;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .site_header_menu_item.submenu-open > .site_header_menu_item_head > .site_header_submenu_toggle::before {
        margin-top: -2px;
        transform: rotate(-135deg);
    }

    .site_header_menu_item:hover > .site_header_submenu {
        display: none;
    }

    .site_header_submenu {
        position: static;
        width: 100%;
        align-items: center;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
        padding: 0;
    }

    .site_header_menu_item.submenu-open > .site_header_submenu {
        display: flex;
        margin-top: 14px;
    }

    /* Niveau 2 en accordéon mobile : léger décalage + fond pour marquer
     *      la profondeur, sous l'item de niveau 1 qui l'a ouvert. */
    .site_header_submenu .site_header_menu_item.submenu-open > .site_header_submenu {
        margin-top: 10px;
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.06);
    }

    .site_header_submenu .site_header_submenu a {
        font-size: 16px;
        padding-left: 20px;
    }
}

/* ==========================================================================
 *  Responsive — Mobile large (≤ 768px)
 *  ========================================================================== */
@media (max-width: 768px) {
    .site_header_top {
        padding: 8px 0px;
    }

    .site_header_top_logo img {
        height: 55px;
    }

    .site_header_top_contact {
        gap: 14px;
    }

    .site_header_top_contact_tel > span:nth-child(2) {
        font: normal normal normal 17px/17px OS_Bold;
        margin-left: 10px;
    }

    .site_header_top_contact_rs img {
        height: 34px;
    }
}

/* ==========================================================================
 *  Responsive — Mobile petit (≤ 480px)
 *  Le numéro de téléphone en texte est masqué pour laisser la place au
 *  burger sans surcharger la barre du haut ; seule l'icône reste visible.
 *  ========================================================================== */
@media (max-width: 480px) {
    .site_header_top_logo img {
        height: 44px;
    }

    .site_header_top_contact {
        gap: 10px;
    }

    .site_header_top_contact_tel > span:nth-child(2) {
        display: none;
    }

    .site_header_top_contact_rs img {
        height: 28px;
    }
}

/* Empêche le scroll de la page quand le menu mobile est ouvert */
body.menu-open {
    overflow: hidden;
}


/* Selecteur de langue wpml */

.site_header_lang_selector {
    width: 80px;
    padding: unset;
    margin: 0px 0px 4px 0px;
}

.site_header_lang_selector .trp-shortcode-switcher {
    padding: 0;
    border: unset;
    margin: unset;
}

.site_header_lang_selector a.trp-language-item {
    padding: unset;
}



.site_header_top_logo_tmfct {
    display: flex;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    justify-content: center;
    padding: unset;
    margin: unset;
    padding-top: 4px;
}

.site_header_top_logo_tmfct > a {
    display: flex;
    align-items: center;

    text-align: center;
    font: normal normal normal 14px/14px OS_SemiBold;
    letter-spacing: 0px;
    color: #100C06;
    
    text-decoration: none;
}

.site_header_top_logo_tmfct img {
    display: block;
    height: 33px;
    padding: unset;
    margin: unset;
}