/* NAVIGATION RESPONSIVE FIX - Sans JavaScript */

/* Reset et base */
header {
    background: #0f172a !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px !important;
    max-width: 100% !important;
    background: #0f172a !important;
}

.logo {
    color: white !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    flex-shrink: 0;
}

.logo i {
    color: #FF9900 !important;
}

/* Navigation principale */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex !important;
    gap: 5px !important;
    list-style: none !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 15px !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
}

.nav-menu > li > a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-menu > li > a i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-menu > li:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Desktop */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-menu > li:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 14px 24px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #818cf8;
    padding-left: 28px;
}

.dropdown-content a:hover::before {
    transform: scaleY(1);
}

.dropdown-content a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Badges */
.nav-badge {
    background: #FF9900;
    color: #0F1111;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 5px;
}

/* Actions (cart, theme, chatbot) */
.nav-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    flex-shrink: 0;
    z-index: 10002;
    position: relative;
}

.cart-button, .theme-toggle, .chatbot-button {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
    position: relative;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.cart-button:hover, .theme-toggle:hover, .chatbot-button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: scale(1.1);
}

.cart-button:active, .theme-toggle:active, .chatbot-button:active {
    transform: scale(0.95);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #FF9900;
    color: #0F1111;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 700;
}

/* Bouton menu mobile */
.mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 10004;
}

.mobile-nav-overlay {
    display: none;
}

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

/* 1200px - Réduction espacement */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 3px !important;
    }
    
    .nav-menu > li > a {
        padding: 8px 10px !important;
        font-size: 13px !important;
        gap: 5px !important;
    }
}

/* 1024px - Masquer icônes */
@media (max-width: 1024px) {
    .nav-menu > li > a {
        padding: 7px 8px !important;
        font-size: 12px !important;
    }
    
    .nav-menu > li > a i:not(.fa-chevron-down) {
        display: none !important;
    }
}

/* 900px - MOBILE MENU */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    nav {
        position: static;
    }
    
    nav .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #0f172a !important;
        flex-direction: column !important;
        padding: 80px 0 20px !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        z-index: 9998 !important;
        gap: 0 !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3) !important;
        justify-content: flex-start !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
    }
    
    .nav-menu > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    .nav-menu > li > a {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 15px 20px !important;
        font-size: 15px !important;
        border-radius: 0 !important;
    }
    
    .nav-menu > li > a i:not(.fa-chevron-down) {
        display: inline-block !important;
    }
    
    /* Dropdown mobile */
    .dropdown-content {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(255, 153, 0, 0.1) !important;
        margin: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    
    .nav-menu > li.active .dropdown-content {
        max-height: 500px !important;
        padding: 12px 0 !important;
    }
    
    .dropdown-content a {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 12px 20px 12px 40px !important;
        font-size: 14px !important;
    }
    
    .dropdown-content a:hover {
        background: rgba(255, 153, 0, 0.2) !important;
        color: #FF9900 !important;
        padding-left: 40px !important;
    }
    
    .dropdown-content a::before {
        display: none !important;
    }
    
    /* Overlay mobile */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 9997;
    }
    
    .mobile-nav-overlay.active {
        display: block;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-actions {
        gap: 5px !important;
    }
    
    .cart-button, .theme-toggle, .chatbot-button {
        font-size: 16px !important;
        padding: 6px !important;
    }
}

/* 480px - Très petit écran */
@media (max-width: 480px) {
    .nav-container {
        padding: 10px 15px !important;
    }
    
    .logo {
        font-size: 18px !important;
    }
    
    .nav-menu {
        width: 260px !important;
    }
    
    .nav-actions {
        gap: 3px !important;
    }
    
    .cart-button, .theme-toggle, .chatbot-button {
        font-size: 14px !important;
        padding: 5px !important;
    }
}

/* Fix z-index pour le reste du contenu */
.hero, main, section, .services-overview, .features, .testimonials, .cta-section {
    position: relative;
    z-index: 1 !important;
}
