/* =====================================================
   NAVIGATION MODERNE - DEPOT 360
   Styles du menu avec sous-menu dynamique
   ===================================================== */

/* ===== NAVBAR MODERNE ===== */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

/* ===== LOGO ===== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, #2c4a7c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.25);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent);
}

/* ===== MENU PRINCIPAL ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(246, 147, 30, 0.1);
    color: var(--accent);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, #2c4a7c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.nav-icon {
    font-size: 1rem;
}

/* WhatsApp Link */
.nav-whatsapp {
    background: linear-gradient(135deg, var(--success) 0%, #1da851 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.nav-whatsapp:hover {
    background: linear-gradient(135deg, #1da851 0%, var(--success) 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* ===== DROPDOWN MENU ===== */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Flèche du dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-radius: 3px;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-bottom: 1px solid #eee;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.dropdown-header i {
    color: var(--accent);
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(246, 147, 30, 0.1);
    color: var(--accent);
    transform: translateX(-5px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, var(--accent) 0%, #e07b0a 100%);
    color: white;
}

.dropdown-item i {
    width: 28px;
    height: 28px;
    background: rgba(246, 147, 30, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    background: white;
    color: var(--accent);
}

.dropdown-item.active i {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===== ACTIONS À DROITE ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Panier */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 12px;
    color: var(--primary);
    font-size: 1.3rem;
    background: rgba(26, 54, 93, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(229, 62, 62, 0.3);
}

/* Bouton WhatsApp */
.whatsapp-btn {
    display: none;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--success) 0%, #1da851 100%);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== BOUTON HAMBURGER ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(26, 54, 93, 0.05);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    gap: 5px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--accent);
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle:hover .hamburger-line {
    background: white;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== SPACER ===== */
.navbar-spacer {
    height: 75px;
}

/* ===== MENU MOBILE ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.mobile-logo .logo-text {
    font-size: 1.4rem;
}

.mobile-close {
    width: 40px;
    height: 40px;
    background: rgba(26, 54, 93, 0.05);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: var(--danger);
    color: white;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-item {
    margin-bottom: 5px;
    position: relative;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(246, 147, 30, 0.1);
    color: var(--accent);
}

.mobile-nav-link i {
    width: 40px;
    height: 40px;
    background: rgba(26, 54, 93, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    background: var(--accent);
    color: white;
}

/* Sous-menu mobile */
.has-submenu {
    position: relative;
}

.submenu-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: rgba(26, 54, 93, 0.05);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.submenu-toggle:hover {
    background: var(--accent);
    color: white;
}

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

.mobile-submenu {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0 20px 0 60px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.open {
    max-height: 500px;
}

.mobile-submenu li {
    margin-bottom: 5px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover {
    background: rgba(246, 147, 30, 0.1);
    color: var(--accent);
}

.mobile-submenu-link i {
    width: 28px;
    height: 28px;
    background: rgba(246, 147, 30, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--accent);
}

/* WhatsApp mobile */
.mobile-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(29, 168, 81, 0.1) 100%);
    border: 2px solid var(--success);
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.mobile-whatsapp i {
    background: var(--success);
    color: white;
}

.phone-number {
    font-size: 0.85rem;
    color: var(--success);
    margin-right: 55px;
}

/* Footer du menu mobile */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: var(--bg-light);
}

.mobile-contact-info {
    margin-bottom: 20px;
}

.mobile-contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-contact-info i {
    color: var(--accent);
    width: 20px;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, var(--success) 0%, #1da851 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e4405f 0%, #d62d5a 100%);
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

/* Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .whatsapp-btn {
        display: flex;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .navbar-spacer {
        height: 70px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 4%;
        height: 65px;
    }
    
    .navbar-spacer {
        height: 65px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .cart-icon {
        padding: 10px;
        font-size: 1.1rem;
    }
    
    .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu {
        max-width: 100%;
    }
}

/* ===== ANCIENNE NAVBAR (à masquer si présente) ===== */
.navbar {
    display: none !important;
}
