/**
 * HEADER RESPONSIVE ULTRA MODERNE ET ÉDUCATIF
 * Design de classe mondiale pour l'éducation
 */

/* ============================================
   VARIABLES POUR LE HEADER
   ============================================ */
:root {
    --header-height: 80px;
    --mobile-menu-width: 320px;
}

/* ============================================
   HEADER DE BASE
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 78, 121, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(31, 78, 121, 0.06);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(31, 78, 121, 0.12);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-3deg) scale(1.05);
}

/* ============================================
   NAVIGATION DESKTOP
   ============================================ */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    position: relative;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icônes visibles partout (PC et mobile) */
.nav-icon-mobile {
    display: inline-block;
    font-size: 1.1rem;
    margin-left: 0.5rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.nav-links > li > a:hover .nav-icon-mobile {
    transform: scale(1.1);
}

.dropdown-toggle .nav-icon-mobile {
    display: inline-block;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #C9A13B, #d4b05f);
    transition: width 0.3s ease;
    border-radius: 50px;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

.nav-links > li > a:hover {
    color: var(--secondary);
}

/* ============================================
   DROPDOWN MENU DESKTOP
   ============================================ */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.75rem !important;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(31, 78, 121, 0.2);
    padding: 0.75rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(31, 78, 121, 0.08);
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 600;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(201, 161, 59, 0.1), rgba(167, 199, 169, 0.1));
    transform: translateX(-5px);
}

.dropdown-menu a i {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

/* ============================================
   HEADER CTA (DESKTOP UNIQUEMENT)
   ============================================ */
.header-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ============================================
   ÉLÉMENTS MOBILES (CACHÉS SUR DESKTOP)
   ============================================ */
.mobile-cta-divider,
.mobile-cta {
    display: none;
}

/* ============================================
   BOUTON HAMBURGER ULTRA MODERNE
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #C9A13B, #d4b05f);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(201, 161, 59, 0.35);
    z-index: 1001;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover::before {
    opacity: 1;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(201, 161, 59, 0.5);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Lignes du hamburger */
.hamburger-line {
    width: 24px;
    height: 3px;
    background: #1F4E79;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Animation du hamburger vers X */
.main-nav.active ~ .header-cta + .mobile-menu-toggle .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.main-nav.active ~ .header-cta + .mobile-menu-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.main-nav.active ~ .header-cta + .mobile-menu-toggle .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ============================================
   RESPONSIVE - TABLETTE (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links > li > a {
        font-size: 0.95rem;
    }
    
    .dropdown-menu {
        min-width: 250px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (768px et moins)
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        padding: 0.875rem 1rem;
        gap: 1rem;
    }
    
    /* Logo réduit */
    .logo {
        font-size: 1.25rem;
        gap: 0.75rem;
    }
    
    .logo img {
        height: 50px !important;
    }
    
    .logo span {
        font-size: 1.25rem !important;
    }
    
    /* Afficher le bouton hamburger */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Cacher les boutons CTA desktop */
    .header-cta {
        display: none;
    }
    
    /* ============================================
       MENU MOBILE ULTRA MODERNE - STYLE CLAIR
       ============================================ */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        max-width: 360px;
        height: 100vh;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        padding: 5.5rem 0 2rem;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        box-shadow: -10px 0 50px rgba(31, 78, 121, 0.25);
        border-left: 3px solid transparent;
        border-image: linear-gradient(180deg, #C9A13B, #A7C7A9) 1;
    }
    
    /* Header décoratif du menu avec gradient coloré */
    .main-nav::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(135deg, rgba(31, 78, 121, 0.05) 0%, rgba(201, 161, 59, 0.05) 50%, rgba(167, 199, 169, 0.05) 100%);
        border-bottom: 2px solid rgba(201, 161, 59, 0.15);
        pointer-events: none;
        z-index: 0;
    }
    
    /* Icônes éducatives flottantes dans le menu - Plus visibles */
    .main-nav::before {
        content: '🎓';
        position: absolute;
        top: 1.75rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2rem;
        opacity: 0.15;
        animation: floatIconRotate 4s ease-in-out infinite;
        z-index: 0;
        filter: drop-shadow(0 2px 8px rgba(201, 161, 59, 0.3));
    }
    
    @keyframes floatIconRotate {
        0%, 100% { 
            transform: translateX(-50%) translateY(0) rotate(0deg); 
            opacity: 0.15;
        }
        50% { 
            transform: translateX(-50%) translateY(-8px) rotate(10deg); 
            opacity: 0.25;
        }
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* Scrollbar personnalisée pour le menu */
    .main-nav::-webkit-scrollbar {
        width: 6px;
    }
    
    .main-nav::-webkit-scrollbar-track {
        background: rgba(31, 78, 121, 0.05);
    }
    
    .main-nav::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #C9A13B, #A7C7A9);
        border-radius: 50px;
    }
    
    .main-nav::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #d4b05f, #b8d4ba);
    }
    
    /* Liste des liens */
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .nav-links > li {
        width: 100%;
    }
    
    .nav-links > li > a {
        padding: 1.25rem 2rem;
        color: var(--text-primary);
        width: 100%;
        display: flex;
        border-bottom: 1px solid rgba(31, 78, 121, 0.08);
        font-size: 1rem;
        gap: 1rem;
        align-items: center;
        position: relative;
        overflow: hidden;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    /* Styles spécifiques pour les icônes sur mobile */
    .nav-icon-mobile {
        font-size: 1.25rem !important;
        width: 32px;
        height: 32px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #C9A13B !important;
        margin-left: 0 !important;
        background: linear-gradient(135deg, rgba(201, 161, 59, 0.1), rgba(167, 199, 169, 0.1));
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-links > li > a:hover .nav-icon-mobile {
        transform: scale(1.1) rotate(5deg);
        background: linear-gradient(135deg, rgba(201, 161, 59, 0.2), rgba(167, 199, 169, 0.2));
        box-shadow: 0 4px 12px rgba(201, 161, 59, 0.3);
    }
    
    .dropdown-toggle .nav-icon-mobile {
        color: #C9A13B !important;
    }
    
    /* Indicateur de côté pour le lien actif/hover */
    .nav-links > li > a::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, #C9A13B, #A7C7A9);
        border-radius: 50px 0 0 50px;
        transition: height 0.3s ease;
    }
    
    .nav-links > li > a:hover::before,
    .nav-links > li > a.active::before {
        height: 70%;
    }
    
    .nav-links > li > a::after {
        display: none;
    }
    
    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        background: linear-gradient(90deg, rgba(201, 161, 59, 0.08), transparent);
        color: var(--primary);
        font-weight: 700;
    }
    
    .nav-links > li > a:active {
        background: linear-gradient(90deg, rgba(201, 161, 59, 0.15), transparent);
        transform: scale(0.98);
    }
    
    /* Dropdown dans le menu mobile */
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1.25rem 2rem;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(31, 78, 121, 0.08);
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .dropdown-toggle:hover {
        background: linear-gradient(90deg, rgba(201, 161, 59, 0.08), transparent);
        color: var(--primary);
    }
    
    .dropdown-arrow {
        margin-right: 0 !important;
        margin-left: auto;
        font-size: 0.875rem !important;
        color: var(--secondary);
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: linear-gradient(135deg, rgba(31, 78, 121, 0.03), rgba(201, 161, 59, 0.03));
        box-shadow: inset 0 2px 8px rgba(31, 78, 121, 0.08);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
        padding: 0;
        border: none;
        border-radius: 0;
        border-left: 3px solid transparent;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 350px;
        padding: 0.5rem 0;
        border-left-color: rgba(201, 161, 59, 0.3);
    }
    
    .dropdown-menu a {
        padding: 1rem 2rem 1rem 3.5rem;
        color: var(--text-secondary);
        font-size: 0.95rem;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        background: linear-gradient(90deg, rgba(201, 161, 59, 0.12), transparent);
        color: var(--primary);
        transform: translateX(-5px);
        font-weight: 600;
    }
    
    /* ============================================
       SÉPARATEUR AVANT LES BOUTONS CTA - STYLE CLAIR
       ============================================ */
    .mobile-cta-divider {
        display: block;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(201, 161, 59, 0.3), transparent);
        margin: 1.75rem 1.5rem 1.25rem;
        position: relative;
    }
    
    .mobile-cta-divider::before {
        content: '✨ حسابك ✨';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: linear-gradient(180deg, #ffffff, #f8f9fa);
        padding: 0.25rem 1rem;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--secondary);
        border-radius: 50px;
        box-shadow: 0 2px 8px rgba(201, 161, 59, 0.2);
        white-space: nowrap;
    }
    
    /* ============================================
       BOUTONS CTA ULTRA MODERNES - STYLE CLAIR
       ============================================ */
    .mobile-cta {
        display: block;
        padding: 0 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mobile-cta a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.875rem;
        padding: 1.25rem 1.75rem;
        border-radius: 16px;
        font-weight: 700;
        font-size: 1rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(31, 78, 121, 0.15);
    }
    
    /* Effet de brillance animé */
    .mobile-cta a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s ease;
    }
    
    .mobile-cta a:hover::before {
        left: 100%;
    }
    
    /* Effet de particules au clic */
    .mobile-cta a::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.5), transparent 60%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-cta a:active::after {
        opacity: 1;
    }
    
    .mobile-cta a i {
        font-size: 1.3rem;
        position: relative;
        z-index: 1;
    }
    
    .mobile-cta a span {
        position: relative;
        z-index: 1;
    }
    
    /* Bouton Inscription - Doré éclatant */
    .btn-mobile-register {
        background: linear-gradient(135deg, #C9A13B 0%, #e5c06f 100%);
        color: white;
        border: 2px solid rgba(201, 161, 59, 0.3);
        box-shadow: 0 8px 24px rgba(201, 161, 59, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    
    .btn-mobile-register:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 32px rgba(201, 161, 59, 0.5), 0 0 0 4px rgba(201, 161, 59, 0.15);
        background: linear-gradient(135deg, #d4b05f 0%, #f0d080 100%);
    }
    
    .btn-mobile-register:active {
        transform: translateY(-2px) scale(0.98);
    }
    
    .btn-mobile-register i {
        animation: pulseGlow 2.5s ease-in-out infinite;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
    
    @keyframes pulseGlow {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.15); opacity: 0.9; }
    }
    
    /* Bouton Connexion - Élégant avec bordure */
    .btn-mobile-login {
        background: white;
        color: var(--primary);
        border: 2px solid var(--primary);
        box-shadow: 0 6px 20px rgba(31, 78, 121, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    
    .btn-mobile-login:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 32px rgba(31, 78, 121, 0.4), 0 0 0 4px rgba(31, 78, 121, 0.15);
    }
    
    .btn-mobile-login:active {
        transform: translateY(-2px) scale(0.98);
    }
    
    .btn-mobile-login i {
        transition: transform 0.3s ease;
    }
    
    .btn-mobile-login:hover i {
        transform: translateX(-3px);
    }
    
    /* Bouton Dashboard - Vert doux */
    .btn-mobile-dashboard {
        background: linear-gradient(135deg, #A7C7A9 0%, #b8d4ba 100%);
        color: #1F4E79;
        border: 2px solid rgba(167, 199, 169, 0.3);
        box-shadow: 0 8px 24px rgba(167, 199, 169, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    
    .btn-mobile-dashboard:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 32px rgba(167, 199, 169, 0.5), 0 0 0 4px rgba(167, 199, 169, 0.15);
        background: linear-gradient(135deg, #b8d4ba 0%, #c9e1cb 100%);
    }
    
    .btn-mobile-dashboard:active {
        transform: translateY(-2px) scale(0.98);
    }
    
    /* ============================================
       OVERLAY ÉLÉGANT AVEC BLUR
       ============================================ */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(31, 78, 121, 0.7) 0%, rgba(20, 40, 60, 0.8) 100%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
        pointer-events: none;
    }
    
    .main-nav.active ~ body::before,
    body.menu-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* ============================================
       ANIMATIONS D'APPARITION DES ITEMS
       ============================================ */
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .main-nav.active .nav-links > li {
        animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }
    
    .main-nav.active .nav-links > li:nth-child(1) { animation-delay: 0.05s; }
    .main-nav.active .nav-links > li:nth-child(2) { animation-delay: 0.1s; }
    .main-nav.active .nav-links > li:nth-child(3) { animation-delay: 0.15s; }
    .main-nav.active .nav-links > li:nth-child(4) { animation-delay: 0.2s; }
    .main-nav.active .nav-links > li:nth-child(5) { animation-delay: 0.25s; }
    .main-nav.active .nav-links > li:nth-child(6) { animation-delay: 0.3s; }
    .main-nav.active .nav-links > li:nth-child(7) { animation-delay: 0.35s; }
    .main-nav.active .nav-links > li:nth-child(8) { animation-delay: 0.4s; }
    .main-nav.active .nav-links > li:nth-child(9) { animation-delay: 0.45s; }
}

/* ============================================
   RESPONSIVE - PETITS MOBILES (480px)
   ============================================ */
@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 0.875rem;
    }
    
    .logo {
        font-size: 1.125rem;
        gap: 0.5rem;
    }
    
    .logo img {
        height: 42px !important;
    }
    
    .logo span {
        font-size: 1.125rem !important;
    }
    
    .mobile-menu-toggle {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    
    .hamburger-line {
        width: 22px;
        height: 2.5px;
    }
    
    .main-nav {
        width: 95%;
        max-width: 300px;
        padding: 5rem 0 1.5rem;
    }
    
    .nav-links > li > a {
        padding: 1.125rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.875rem;
    }
    
    .nav-icon-mobile {
        font-size: 1.1rem !important;
        width: 26px !important;
    }
    
    .dropdown-toggle {
        padding: 1.125rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .dropdown-menu a {
        padding: 0.875rem 1.5rem 0.875rem 3rem;
        font-size: 0.9rem;
    }
    
    .mobile-cta {
        padding: 0 1.25rem;
        margin-bottom: 0.875rem;
    }
    
    .mobile-cta a {
        padding: 1.125rem 1.25rem;
        font-size: 0.95rem;
        gap: 0.625rem;
    }
    
    .mobile-cta a i {
        font-size: 1.1rem;
    }
}

/* ============================================
   TRÈS PETITS ÉCRANS (360px)
   ============================================ */
@media (max-width: 360px) {
    .logo img {
        height: 38px !important;
    }
    
    .logo span {
        font-size: 1rem !important;
    }
    
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
    }
    
    .hamburger-line {
        width: 20px;
    }
    
    .nav-links > li > a {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .mobile-cta a {
        padding: 1rem 1.125rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   ORIENTATION PAYSAGE SUR MOBILE
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .main-nav {
        padding: 4.5rem 0 1rem;
    }
    
    .nav-links > li > a {
        padding: 0.875rem 1.5rem;
    }
    
    .dropdown-toggle {
        padding: 0.875rem 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */
.mobile-menu-toggle:focus,
.nav-links a:focus,
.dropdown-toggle:focus,
.mobile-cta a:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

/* Réduire les animations pour les utilisateurs qui préfèrent */
@media (prefers-reduced-motion: reduce) {
    .main-nav,
    .dropdown-menu,
    .nav-links > li,
    .mobile-menu-toggle,
    .hamburger-line,
    .mobile-cta a {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   MODE SOMBRE (PRÉPARATION FUTURE)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .main-header {
        background: rgba(20, 20, 30, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}
