/* ════════════════════════════════════════════════════════
   GNOVEX - FIX NAVBAR MOBILE COMPLET
   Correction : TOUS les liens s'affichent maintenant
   ════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    
    /* ═══ NAVBAR CONTAINER ═══ */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
    }
    
    .nav-container {
        height: 60px !important;
        padding: 0 5% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-width: 100% !important;
    }
    
    /* ═══ LOGO ═══ */
    .logo {
        position: relative !important;
        z-index: 10001 !important;
        flex-shrink: 0 !important;
    }
    
    .logo-img {
        height: 32px !important;
        width: auto !important;
    }
    
    /* ═══ MENU - CACHÉ PAR DÉFAUT ═══ */
    .nav-menu {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        
        /* IMPORTANT - Afficher en colonne */
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        
        padding: 30px 20px !important;
        margin: 0 !important;
        gap: 5px !important;
        
        /* Caché par défaut */
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(-100%) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        
        z-index: 9998 !important;
        
        /* Assurer que tout est visible */
        max-height: calc(100vh - 60px) !important;
    }
    
    /* ═══ MENU OUVERT ═══ */
    .nav-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }
    
    /* ═══ ITEMS MENU - TOUS VISIBLES ═══ */
    .nav-menu li {
        width: 100% !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    /* ═══ LIENS - TOUS AFFICHÉS ═══ */
    .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 16px 20px !important;
        margin: 0 !important;
        
        font-size: 16px !important;
        font-weight: 500 !important;
        text-align: center !important;
        text-decoration: none !important;
        
        color: #1E1E1E !important;
        background: transparent !important;
        
        border-radius: 10px !important;
        transition: all 0.3s ease !important;
        
        /* Forcer l'affichage */
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    .nav-link:hover {
        background: rgba(37, 176, 213, 0.1) !important;
        color: #25B0D5 !important;
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, #41CE9F, #25B0D5) !important;
        color: white !important;
    }
    
    /* ═══ CACHER BOUTON CTA DESKTOP ═══ */
    .nav-actions {
        display: none !important;
    }
    
    /* ═══ BURGER MENU - TOUJOURS VISIBLE ═══ */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 10px !important;
        z-index: 10001 !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    .menu-toggle span {
        display: block !important;
        width: 26px !important;
        height: 3px !important;
        background: linear-gradient(90deg, #41CE9F, #25B0D5) !important;
        border-radius: 3px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* ═══ ANIMATION BURGER → X ═══ */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px) !important;
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: translateX(20px) !important;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px) !important;
    }
    
    /* ═══ BLOQUER SCROLL BODY ═══ */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100vh !important;
    }
    
    /* ═══ FORCER L'AFFICHAGE DE TOUS LES LIENS ═══ */
    .nav-menu.active li,
    .nav-menu.active .nav-link {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ═══ PETIT SMARTPHONE ═══ */
@media (max-width: 480px) {
    
    .nav-container {
        padding: 0 4% !important;
    }
    
    .logo-img {
        height: 28px !important;
    }
    
    .nav-menu {
        padding: 25px 15px !important;
    }
    
    .nav-link {
        padding: 14px 18px !important;
        font-size: 15px !important;
    }
    
    .menu-toggle span {
        width: 24px !important;
        height: 2.5px !important;
    }
}

/* ═══ FIX iOS ═══ */
@media (max-width: 768px) {
    
    /* Fix viewport iOS */
    .nav-menu {
        min-height: -webkit-fill-available !important;
    }
    
    /* Empêcher bounce iOS */
    .nav-menu {
        overscroll-behavior: none !important;
    }
}