/**
 * ========================================================
 * [ÉTAT : EN DÉVELOPPEMENT] Date : 24-05-2026 16:07:53
 * FICHIER : menu_universel.css
 * RÔLE : Styles pour la barre de navigation unifiée
 * Auteurs : Yvan Dubé & Gemini (IA Collaboratrice)
 * =========================================================
 */

#banniere-survol {
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-family: Arial, sans-serif;
}

.menu-principal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%; 
}

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

.pousse-droite {
    margin-left: auto;
}

.nav-item {
    display: block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background-color: #e2e8f0;
    color: #0056b3;
}

.nav-item.disabled {
    color: #aaa;
    cursor: not-allowed;
}

/* --- NIVEAU 1 : Menu principal (La première boîte qui descend) --- */
.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0; 
    left: auto; 
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    border-radius: 6px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown:hover > .dropdown-menu {
    display: block !important;
}

.dropdown-menu > li > a {
    display: block;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    color: #444;
    transition: background-color 0.2s;
}

.dropdown-menu > li > a:hover {
    background-color: #f1f5f9;
    color: #0056b3;
}

.dropdown-menu .separator {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
}

/* --- NIVEAU 2 : Tiroirs en cascade (Les boîtes qui s'ouvrent à gauche) --- */
.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    font-weight: bold !important;
    color: #555 !important;
    background-color: transparent;
    cursor: default;
    padding: 0.6rem 1.5rem;
}

.submenu-toggle:hover {
    background-color: #f1f5f9 !important;
    color: #0056b3 !important;
}

.menu-tiroir {
    display: none !important;
    position: absolute;
    top: -1px;
    right: 100%; 
    left: auto;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: -4px 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    border-radius: 6px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1001;
    margin-right: 2px;
}

.dropdown-submenu:hover > .menu-tiroir {
    display: block !important;
}

.menu-tiroir > li > a {
    display: block;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    color: #444;
    transition: background-color 0.2s;
}

.menu-tiroir > li > a:hover {
    background-color: #f1f5f9;
    color: #0056b3;
}