/**
 * HEADER DROPDOWN FIX - ULTRA PRIORITAIRE
 * Ce fichier DOIT être chargé EN DERNIER
 * Version: 99.99.99
 */

/* ============================================
   DROPDOWN DESKTOP - CACHER PAR DÉFAUT
   ============================================ */

/* Cacher TOUS les dropdowns par défaut */
.nav-item-pro.has-dropdown ul.dropdown-menu,
.nav-item-pro.has-dropdown .dropdown-menu,
.nav-list-pro .dropdown-menu,
ul.dropdown-menu,
.dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Afficher SEULEMENT au hover */
.nav-item-pro.has-dropdown:hover > ul.dropdown-menu,
.nav-item-pro.has-dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   MENU MOBILE - SOUS-MENU
   ============================================ */

/* Sous-menu mobile caché par défaut */
.mobile-submenu {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease !important;
}

/* Sous-menu mobile ouvert */
.mobile-nav-item-with-submenu.active .mobile-submenu {
    max-height: 1000px !important;
}

/* ============================================
   RESPONSIVE - SÉPARATION DESKTOP/MOBILE
   ============================================ */

@media (max-width: 992px) {
    /* Sur mobile, FORCER le dropdown desktop à disparaître */
    .dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

@media (min-width: 993px) {
    /* Sur desktop, FORCER le submenu mobile à disparaître */
    .mobile-submenu {
        display: none !important;
    }
}
