/* ===================================================================
   HEADER MAYAGE - MENU SECONDAIRE AU-DESSUS DU PRINCIPAL
   ========================================================================== */

/* ==========================================================================
   HEADER PRINCIPAL - STRUCTURE À DEUX NIVEAUX
   ========================================================================== */

   .mayage-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.mayage-header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   TOPBAR - MENU SECONDAIRE AU-DESSUS
   ========================================================================== */

.mayage-header__topbar {
    background: #f4f7fa;
    border-bottom: 1px solid rgba(60, 60, 59, 0.1);
    display: none; /* Masqué par défaut, affiché en desktop */
}

.mayage-header__topbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrer le contenu */
    min-height: 45px;
    position: relative; /* Pour le positionnement absolu du contact */
}

/* Menu Secondaire dans la Topbar - CENTRÉ */
.mayage-header__secondary-nav--desktop {
    display: flex;
    align-items: center; /* Centrage vertical */
    justify-content: flex-start; 
    flex: 1; /* Prend tout l'espace disponible */
}

.mayage-secondary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center; /* Centrage vertical des éléments */
    justify-content: center; /* Centrage horizontal des éléments */
}

.mayage-secondary-menu li {
    margin: 0;
    display: flex; /* Pour le centrage des liens */
    align-items: center; /* Centrage vertical */
}

.mayage-secondary-menu a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    color: black;
    text-decoration: none;
    padding: 0.75rem 0;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex; /* Pour le centrage du texte */
    align-items: center; /* Centrage vertical du texte */
}

.mayage-secondary-menu a:hover,
.mayage-secondary-menu a:focus {
    color: var(--mayage-red);
    text-decoration: none;
}

.mayage-secondary-menu .current-menu-item a {
    color: var(--mayage-red);
    font-weight: var(--font-weight-semibold);
}

/* Contact dans la Topbar - POSITIONNÉ À DROITE */
.mayage-header__topbar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: absolute; /* Positionnement absolu */
    right: 2rem; /* Aligné à droite */
    top: 50%; /* Centré verticalement */
    transform: translateY(-50%); /* Ajustement précis du centrage */
}

.mayage-header__topbar-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: black;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: var(--font-weight-medium);
}

.mayage-header__topbar-contact-item:hover {
    color: var(--mayage-blue-dark);
    text-decoration: none;
}

.mayage-header__topbar-contact-item i {
    color: black;
    font-size: 0.75rem;
    width: 12px;
    text-align: center;
}

/* ==========================================================================
   STYLE SPÉCIAL POUR LE PREMIER ÉLÉMENT DU MENU SECONDAIRE
   ========================================================================== */

/* Cibler spécifiquement le premier élément du menu secondaire desktop */
.mayage-secondary-menu li:first-child {
    margin: 0; /* Reset du margin pour éviter les conflits */
}

.mayage-secondary-menu li:first-child a {
    /* Structure et dimensions adaptées à la topbar (45px de hauteur) */
    padding: 0.3rem 1.5rem; /* Padding légèrement augmenté pour un meilleur aspect */
    border-radius: 20px;
    min-width: 120px;
    height: auto; /* S'adapte au contenu */
    
    /* Centrage et alignement */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Typographie adaptée à la taille de la topbar */
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    font-size: 0.8rem; /* Même taille que les autres éléments du menu secondaire */
    
    /* Couleur - Utilisation du vert Mayage */
    background-color: var(--mayage-blue-dark); /* Fallback si la variable n'est pas définie */
    color: white;
    
    /* Transitions pour les interactions */
    transition: all 0.3s ease;
    
    /* Suppression des styles par défaut du menu */
    text-decoration: none;
    border: none;
}

/* États hover et focus pour le premier élément */
.mayage-secondary-menu li:first-child a:hover,
.mayage-secondary-menu li:first-child a:focus {
    background-color: transparent; /* Version plus claire au hover */
    color: black;
    transform: translateY(-2px); /* Léger effet de lift */
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
    border: solid 1px black;
}

/* État actif/current pour le premier élément */
.mayage-secondary-menu li:first-child.current-menu-item a {
    background-color: var(--mayage-green-dark, #2d5016);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.4);
}

/* ==========================================================================
   HEADER PRINCIPAL - LOGO + MENU PRINCIPAL
   ========================================================================== */

.mayage-header__main {
    background: var(--mayage-white);
    border-bottom: 1px solid rgba(60, 60, 59, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 30px 30px;
   
}

.mayage-header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

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

.mayage-header__logo {
    flex-shrink: 0;
    z-index: 1001;
}

.mayage-header__logo-link {
    display: block;
    text-decoration: none;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.mayage-header__logo-link:hover {
    opacity: 0.8;
}

.mayage-header__logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    transition: height 0.3s ease;
}

/* ==========================================================================
   NAVIGATION PRINCIPALE DESKTOP
   ========================================================================== */

.mayage-header__main-nav--desktop {
    display: none;
}

.mayage-primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
 
}
.mayage-primary-menu:hover,
.mayage-primary-menu li:hover {
    overflow-x: visible;
    overflow-y: visible;
}

.mayage-primary-menu li {
    margin: 0;
    position: relative;
}

.mayage-primary-menu > li > a {
    font-family: var(--font-logo);
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1.25rem 0;
    display: block;
    transition: color 0.2s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.mayage-primary-menu > li > a:hover,
.mayage-primary-menu > li > a:focus {
    color: var(--mayage-blue-dark);
    text-decoration: none;
}

.mayage-primary-menu > li > a:hover::after {
    width: 100%;
}

/* Sous-menus Desktop */
.mayage-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--mayage-white);
    min-width: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    border-top: 3px solid var(--mayage-blue-dark);
}

.mayage-primary-menu li:hover .sub-menu,
.mayage-primary-menu li:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mayage-primary-menu .sub-menu a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    display: block;
    border-bottom: none;
    transition: all 0.2s ease;
    border-radius: 0;
}

.mayage-primary-menu .sub-menu a:hover,
.mayage-primary-menu .sub-menu a:focus {
    color: var(--mayage-blue-dark);
    background-color: rgba(42, 184, 203, 0.05);
    text-decoration: none;
    padding-left: 2rem;
}

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

.mayage-header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    border-radius: 8px;
    gap: 4px;
}

.mayage-header__burger:hover {
    background-color: rgba(0, 94, 153, 0.1);
}

.mayage-header__burger:focus {
    outline: 2px solid var(--mayage-blue-light);
    outline-offset: 2px;
}

.mayage-header__burger-line {
    width: 20px;
    height: 2px;
    background-color: var(--mayage-gray);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation burger vers X */
.mayage-header__burger.active .mayage-header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mayage-header__burger.active .mayage-header__burger-line:nth-child(2) {
    opacity: 0;
}

.mayage-header__burger.active .mayage-header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ==========================================================================
   MENU MOBILE OVERLAY - VERSION ÉLÉGANTE
   ========================================================================== */

.mayage-header__mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, var(--mayage-white) 0%, #fafbfc 100%);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
}

.mayage-header__mobile-menu.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.mayage-header__mobile-menu-content {
    padding: 80px 30px 40px;
    height: 100%;
}

/* ==========================================================================
   BOUTON FERMER - VERSION ÉLÉGANTE
   ========================================================================== */

.mayage-header__mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--mayage-gray);
    font-size: 1.2rem;
    z-index: 1001;
}

.mayage-header__mobile-close:hover {
    background: rgba(233, 74, 66, 0.1);
    color: var(--mayage-red);
    transform: rotate(90deg);
}

.mayage-header__close-icon {
    line-height: 1;
}

/* ==========================================================================
   TITRES DU MENU MOBILE - SUPPRIMÉS POUR SIMPLICITÉ
   ========================================================================== */

.mayage-header__mobile-title,
.mayage-header__mobile-subtitle {
    display: none;
}

/* ==========================================================================
   MENU PRINCIPAL MOBILE - VERSION ÉLÉGANTE
   ========================================================================== */

.mayage-primary-menu--mobile {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 20% 0 0 0;
    flex-direction: column;
}

.mayage-primary-menu--mobile > li {
    margin-bottom: 8px;
}

.mayage-primary-menu--mobile > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: var(--mayage-gray);
    text-decoration: none;
    font-family: var(--font-logo);
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
}

.mayage-primary-menu--mobile > li > a:hover,
.mayage-primary-menu--mobile > .current-menu-item > a {
    background: white;
    color: var(--mayage-blue-dark);
    border-color: var(--mayage-blue-light);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(42, 184, 203, 0.15);
}

/* ==========================================================================
   BOUTON SOUS-MENU - VERSION SIMPLIFIÉE
   ========================================================================== */

.submenu-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--mayage-blue-dark);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.submenu-toggle:hover {
    color: var(--mayage-red);
}

.submenu-toggle.active {
    transform: rotate(180deg);
}

.submenu-toggle i {
    transition: transform 0.3s ease;
}

/* ==========================================================================
   SOUS-MENUS MOBILE - VERSION ÉLÉGANTE
   ========================================================================== */

.mayage-primary-menu--mobile .sub-menu {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    padding-left: 15px;
    border-left: 2px solid var(--mayage-blue-light);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.mayage-primary-menu--mobile .sub-menu.active {
    max-height: 300px;
    padding: 10px 0 10px 15px;
}

.mayage-primary-menu--mobile .sub-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--mayage-gray);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.mayage-primary-menu--mobile .sub-menu a:hover {
    background: rgba(42, 184, 203, 0.1);
    color: var(--mayage-blue-dark);
    padding-left: 20px;
}

/* ==========================================================================
   MENU SECONDAIRE MOBILE - SUPPRIMÉ POUR SIMPLICITÉ
   ========================================================================== */

.mayage-header__mobile-nav--secondary {
    display: none;
}

.mayage-secondary-menu--mobile {
    display: none;
}

/* ==========================================================================
   BOUTON CTA PRINCIPAL - NOUVEAU
   ========================================================================== */

.mayage-header__mobile-cta {
    margin: 30px 0 20px;
}

.mayage-cta-button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--mayage-red) 0%, #ff6b63 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    font-family: var(--font-logo);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 74, 66, 0.3);
}

.mayage-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 74, 66, 0.4);
    text-decoration: none;
    color: white;
}

/* ==========================================================================
   CONTACT MOBILE - VERSION ÉLÉGANTE
   ========================================================================== */

.mayage-header__mobile-contact {
    padding-top: 30px;
    padding-left: 15px;
    border-top: 1px solid var(--mayage-border);
    background-color: var(--mayage-light-gray);
}

.mayage-header__contact-title {
    font-family: var(--font-logo);
    font-size: 1rem;
    font-weight: 600;
    color: var(--mayage-blue-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mayage-header__contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mayage-header__contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    text-decoration: none;
    color: var(--mayage-gray);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mayage-header__contact-item:hover {
    background: white;
    border-color: var(--mayage-green-dark);
    color: var(--mayage-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 193, 31, 0.2);
    text-decoration: none;
}

.mayage-header__contact-item i {
    width: 18px;
    text-align: center;
    color: var(--mayage-red);
    font-size: 1rem;
}

/* ==========================================================================
   OVERLAY BACKGROUND - AMÉLIORÉ
   ========================================================================== */

.mayage-header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.mayage-header__overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   PRÉVENTION DU SCROLL BODY QUAND MENU OUVERT
   ========================================================================== */

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
    .mayage-header__burger {
        display: none;
    }
    
    .mayage-header__topbar {
        display: block;
    }
    
    .mayage-header__main-nav--desktop {
        display: block;
    }
    
    .mayage-header__container {
        padding: 0 3rem;
        min-height: 125px;
    }
    
    .mayage-header__topbar-container {
        padding: 0 3rem;
    }
    
    .mayage-header__topbar-contact {
        right: 3rem;
    }
    
    .mayage-header__logo-img {
        height: 55px;
    }
    
    .mayage-secondary-menu li:first-child a {
        padding: 0.3rem 1.5rem;
        font-size: 0.8rem;
        min-width: 120px;
        border-radius: 20px;
        letter-spacing: 0.8px;
    }
}

/* Desktop Standard (996px - 1199px) */
@media (min-width: 996px) and (max-width: 1199px) {
    .mayage-header__burger {
        display: none;
    }
    
    .mayage-header__topbar {
        display: block;
    }
    
    .mayage-header__main-nav--desktop {
        display: block;
    }
    
    .mayage-header__container {
        min-height: 85px;
    }
    
    .mayage-primary-menu {
        gap: 2rem;
    }
    
    .mayage-primary-menu > li > a {
        font-size: 0.9rem;
    }
    
    .mayage-header__topbar-contact {
        gap: 1rem;
    }
    
    .mayage-secondary-menu {
        gap: 1.25rem;
    }
    
    .mayage-secondary-menu li:first-child a {
        padding: 0.55rem 1.25rem;
        font-size: 0.75rem;
        min-width: 110px;
        border-radius: 18px;
        letter-spacing: 0.7px;
    }
}

/* Tablette et Mobile (995px et moins) */
@media (max-width: 995px) {
    .mayage-header__topbar {
        display: none;
    }
    
    .mayage-header__main-nav--desktop {
        display: none;
    }
    
    .mayage-header__burger {
        display: flex;
    }
    
    .mayage-header__container {
        padding: 0 1.5rem;
        min-height: 75px;
    }
    
    .mayage-header__logo-img {
        height: 45px;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .mayage-primary-menu {
        gap: 0.5rem;
    }
    .mayage-header__container {
        padding: 0 1rem;
        min-height: 70px;
    }
    
    .mayage-header__logo-img {
        height: 40px;
        max-width: 140px;
    }
    
    .mayage-header__mobile-menu {
        max-width: 320px;
    }
    
    .mayage-header__mobile-menu-content {
        padding: 70px 20px 30px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .mayage-header__container {
        padding: 0 0.75rem;
        min-height: 65px;
    }
    
    .mayage-header__logo-img {
        height: 35px;
        max-width: 120px;
    }
    
    .mayage-header__mobile-menu {
        max-width: 100%;
    }
    
    .mayage-header__mobile-menu-content {
        padding: 70px 15px 30px;
    }
    
    .mayage-header__burger {
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   ACCESSIBILITÉ ET ÉTATS
   ========================================================================== */

/* Focus states */
.mayage-header__logo-link:focus {
    outline: 2px solid var(--mayage-blue-light);
    outline-offset: 2px;
    border-radius: 4px;
}

.mayage-primary-menu a:focus,
.mayage-secondary-menu a:focus,
.mayage-header__topbar-contact-item:focus {
    outline: 2px solid var(--mayage-blue-light);
    outline-offset: 2px;
    border-radius: 4px;
}

#ctchead {
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    min-width: 120px;
    height: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    font-size: 0.8rem;
    background-color: var(--mayage-green-dark);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

#ctchead i {
    color: white;
}

.mayage-secondary-menu li:first-child a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

.mayage-header__mobile-menu:focus {
    outline: none;
}

.mayage-header__mobile-close:focus {
    outline: 2px solid var(--mayage-blue-light);
    outline-offset: 2px;
}

.submenu-toggle:focus {
    outline: 2px solid var(--mayage-blue-light);
    outline-offset: 2px;
}

.mayage-primary-menu--mobile a:focus,
.mayage-header__contact-item:focus,
.mayage-cta-button:focus {
    outline: 2px solid var(--mayage-blue-light);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mayage-header,
    .mayage-header__burger-line,
    .mayage-header__mobile-menu,
    .mayage-header__overlay,
    .mayage-primary-menu > li > a::after,
    .mayage-secondary-menu li:first-child a {
        transition: none;
    }
    
    .mayage-secondary-menu li:first-child a:hover {
        transform: none;
    }

}

/* High contrast mode */
@media (prefers-contrast: high) {
    .mayage-header__topbar {
        border-bottom-width: 2px;
        border-bottom-color: var(--text-primary);
    }
    
    .mayage-header__main {
        border-bottom-width: 2px;
        border-bottom-color: var(--text-primary);
    }
    
    .mayage-header__burger-line {
        background-color: var(--text-primary);
        height: 3px;
    }
    
    .mayage-secondary-menu li:first-child a {
        border: 2px solid white;
    }
}

.mayage-primary-menu li:nth-child(2) > a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mayage-blue-dark, #2a4f7a);
}

.mayage-primary-menu li:nth-child(3) > a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mayage-red, #e94a42);
}

.mayage-primary-menu #menu-item-115 a:not(.sub-menu a) {
    background: var(--mayage-red);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    top: 14%;
}


.mayage-primary-menu li:nth-child(1) .sub-menu a::after,
.mayage-primary-menu li:nth-child(2) .sub-menu a::after,
.mayage-primary-menu li:nth-child(3) .sub-menu a::after,
.mayage-primary-menu li:nth-child(4) .sub-menu a::after  {
    display: none;
}

.mayage-primary-menu li:nth-child(2) > a:hover::after,
.mayage-primary-menu li:nth-child(3) > a:hover::after {
    display: none;
}
   /* ==========================================================================
      NAVIGATION ET HEADER
      ========================================================================== */
   
      */
      .site-header.header-hidden {
          transform: translateY(-100%);
      }
      
      .header-container {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 1rem 0;
      }
      
      .site-logo img {
          max-height: 60px;
          width: auto;
      }
      
      .primary-navigation ul {
          display: flex;
          list-style: none;
          margin: 0;
          padding: 0;
          gap: 2rem;
      }
      
      .primary-navigation a {
          font-weight: var(--font-weight-medium);
          color: var(--mayage-gray);
          text-decoration: none;
          transition: var(--transition-fast);
      }
      
      .primary-navigation a:hover,
      .primary-navigation a:focus {
          color: var(--mayage-red);
          text-decoration: none;
      }
      
      .secondary-navigation {
          background-color: var(--mayage-light-gray);
          padding: 0.5rem 0;
      }
      
      .secondary-navigation ul {
          display: flex;
          justify-content: center;
          list-style: none;
          margin: 0;
          padding: 0;
          gap: 1.5rem;
      }
      
      .secondary-navigation a {
          font-size: 0.875rem;
          color: var(--mayage-gray);
          text-decoration: none;
      }
      /* ==========================================================================
   TÉLÉPHONE MOBILE DANS HEADER CONTAINER
   ========================================================================== */

.mayage-header__mobile-phone {
    display: none; /* Masqué par défaut */
    align-items: center;
    z-index: 1001;
}

.mayage-header__mobile-phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--mayage-blue-dark, #2a4f7a);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(42, 79, 122, 0.2);
}

.mayage-header__mobile-phone-link:hover {
    background: var(--mayage-red, #e94a42);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 74, 66, 0.3);
}

.mayage-header__mobile-phone-link i {
    font-size: 0.8rem;
    color: white;
}

.mayage-header__mobile-phone-text {
    font-family: var(--font-logo);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   RESPONSIVE - AFFICHAGE DU TÉLÉPHONE MOBILE
   ========================================================================== */

/* Tablette et Mobile (995px et moins) - Afficher le téléphone */
@media (max-width: 995px) {
    .mayage-header__mobile-phone {
        display: flex;
    }
    
    /* Ajuster l'ordre des éléments dans le container */
    .mayage-header__container {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "logo phone burger";
        align-items: center;
        gap: 1rem;
    }
    
    .mayage-header__logo {
        grid-area: logo;
    }
    
    .mayage-header__mobile-phone {
        grid-area: phone;
    }
    
    .mayage-header__burger {
        grid-area: burger;
    }
}

/* Mobile Large (767px et moins) - Version compacte */
@media (max-width: 767px) {
    .mayage-header__mobile-phone-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .mayage-header__mobile-phone-text {
        display: none; /* Masquer le texte, garder juste l'icône */
    }
    
    .mayage-header__mobile-phone-link {
        min-width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .mayage-header__mobile-phone-link i {
        font-size: 1rem;
    }
}

/* Mobile Small (480px et moins) - Version très compacte */
@media (max-width: 480px) {
    .mayage-header__container {
        gap: 0.5rem;
        grid-template-columns: 1fr auto auto;
    }
    
    .mayage-header__mobile-phone-link {
        min-width: 36px;
        height: 36px;
    }
    
    .mayage-header__mobile-phone-link i {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   AJUSTEMENTS POUR ÉVITER LES CONFLITS
   ========================================================================== */

/* Desktop (1200px+) - S'assurer que le téléphone mobile est masqué */
@media (min-width: 1200px) {
    .mayage-header__mobile-phone {
        display: none !important;
    }
    
    /* Revenir au layout flexbox normal pour desktop */
    .mayage-header__container {
        display: flex;
        justify-content: space-between;
    }
}

/* Desktop Standard (996px - 1199px) - Masquer aussi le téléphone mobile */
@media (min-width: 996px) and (max-width: 1199px) {
    .mayage-header__mobile-phone {
        display: none !important;
    }
    
    /* Revenir au layout flexbox normal */
    .mayage-header__container {
        display: flex;
        justify-content: space-between;
    }
}
/* ==========================================================================
   ACTIONS MOBILES - TÉLÉPHONE + BOUTON CONTACT
   ========================================================================== */

   .mayage-header__mobile-actions {
    display: none; /* Masqué par défaut sur desktop */
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

/* ==========================================================================
   TÉLÉPHONE MOBILE - STYLES EXISTANTS MODIFIÉS
   ========================================================================== */

.mayage-header__mobile-phone {
    display: flex;
    align-items: center;
}

.mayage-header__mobile-phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--mayage-blue-dark, #2a4f7a);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(42, 79, 122, 0.2);
}

.mayage-header__mobile-phone-link:hover {
    background: var(--mayage-red, #e94a42);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 74, 66, 0.3);
}

.mayage-header__mobile-phone-link i {
    font-size: 0.8rem;
    color: white;
}

.mayage-header__mobile-phone-text {
    font-family: var(--font-logo);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   NOUVEAU BOUTON CONTACT MOBILE
   ========================================================================== */

.mayage-header__mobile-contact-btn {
    display: flex;
    align-items: center;
}

.mayage-header__mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--mayage-red, #e94a42);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 74, 66, 0.2);
}

.mayage-header__mobile-contact-link:hover {
    background: var(--mayage-blue-dark, #2a4f7a);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 79, 122, 0.3);
}

.mayage-header__mobile-contact-link i {
    font-size: 0.8rem;
    color: white;
}

.mayage-header__mobile-contact-text {
    font-family: var(--font-logo);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   MENU SECONDAIRE MOBILE SIMPLIFIÉ
   ========================================================================== */

.mayage-header__mobile-secondary {
    padding: 30px 0 20px;
    border-top: 1px solid rgba(60, 60, 59, 0.1);
    margin-top: 20px;
}

.mobile-link-snd-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mayage-header__secondary-link {
    display: block;
    padding: 12px 16px;
    color: var(--mayage-gray, #666);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
}

.mayage-header__secondary-link:hover {
    background: white;
    color: var(--mayage-blue-dark, #2a4f7a);
    border-color: var(--mayage-blue-light, #42b8cb);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(42, 184, 203, 0.15);
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE - AFFICHAGE DES ACTIONS MOBILES
   ========================================================================== */

/* Tablette et Mobile (995px et moins) - Afficher les actions mobiles */
@media (max-width: 995px) {
    .mayage-header__mobile-actions {
        display: flex;
    }
    
    /* Ajuster l'ordre des éléments dans le container */
    .mayage-header__container {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "logo actions burger";
        align-items: center;
        gap: 1rem;
    }
    
    .mayage-header__logo {
        grid-area: logo;
    }
    
    .mayage-header__mobile-actions {
        grid-area: actions;
    }
    
    .mayage-header__burger {
        grid-area: burger;
    }
}

/* Tablette (768px - 995px) - Version normale */
@media (min-width: 768px) and (max-width: 995px) {
    .mayage-header__mobile-actions {
        gap: 12px;
    }
    
    .mayage-header__mobile-phone-link,
    .mayage-header__mobile-contact-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Mobile Large (481px - 767px) - Version compacte */
@media (max-width: 767px) {
    .mayage-header__mobile-actions {
        gap: 8px;
    }
    
    .mayage-header__mobile-phone-link,
    .mayage-header__mobile-contact-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    /* Masquer le texte, garder juste les icônes */
    .mayage-header__mobile-phone-text,
    .mayage-header__mobile-contact-text {
        display: none;
    }
    
    .mayage-header__mobile-phone-link,
    .mayage-header__mobile-contact-link {
        min-width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    
    .mayage-header__mobile-phone-link i,
    .mayage-header__mobile-contact-link i {
        font-size: 1rem;
    }
}

/* Mobile Small (480px et moins) - Version très compacte */
@media (max-width: 480px) {
    .mayage-header__container {
        gap: 0.5rem;
        grid-template-columns: 1fr auto auto;
    }
    
    .mayage-header__mobile-actions {
        gap: 6px;
    }
    
    .mayage-header__mobile-phone-link,
    .mayage-header__mobile-contact-link {
        min-width: 36px;
        height: 36px;
    }
    
    .mayage-header__mobile-phone-link i,
    .mayage-header__mobile-contact-link i {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   DESKTOP - MASQUER LES ACTIONS MOBILES
   ========================================================================== */

/* Desktop (1200px+) - S'assurer que les actions mobiles sont masquées */
@media (min-width: 1200px) {
    .mayage-header__mobile-actions {
        display: none !important;
    }
    
    /* Revenir au layout flexbox normal pour desktop */
    .mayage-header__container {
        display: flex;
        justify-content: space-between;
    }
}

/* Desktop Standard (996px - 1199px) - Masquer aussi les actions mobiles */
@media (min-width: 996px) and (max-width: 1199px) {
    .mayage-header__mobile-actions {
        display: none !important;
    }
    
    /* Revenir au layout flexbox normal */
    .mayage-header__container {
        display: flex;
        justify-content: space-between;
    }
}

/* ==========================================================================
   ÉTATS DE FOCUS POUR ACCESSIBILITÉ
   ========================================================================== */

.mayage-header__mobile-phone-link:focus,
.mayage-header__mobile-contact-link:focus {
    outline: 2px solid var(--mayage-blue-light, #42b8cb);
    outline-offset: 2px;
    border-radius: 25px;
}

.mayage-header__secondary-link:focus {
    outline: 2px solid var(--mayage-blue-light, #42b8cb);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ==========================================================================
   ANIMATIONS RÉDUITES POUR ACCESSIBILITÉ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .mayage-header__mobile-phone-link,
    .mayage-header__mobile-contact-link,
    .mayage-header__secondary-link {
        transition: none;
    }
    
    .mayage-header__mobile-phone-link:hover,
    .mayage-header__mobile-contact-link:hover,
    .mayage-header__secondary-link:hover {
        transform: none;
    }
}

/* ==========================================================================
   MODE CONTRASTE ÉLEVÉ
   ========================================================================== */

@media (prefers-contrast: high) {
    .mayage-header__mobile-phone-link,
    .mayage-header__mobile-contact-link {
        border: 2px solid white;
    }
    
    .mayage-header__secondary-link {
        border: 1px solid var(--text-primary, #000);
    }
}