/* ==============================================
   Integration Bootstrap avec style personnalisé
   ============================================== */

/* Override Bootstrap pour correspondre au thème Mickey */
:root {
    --bs-primary: #003d7a;
    --bs-secondary: #e63946;
    --bs-success: #28a745;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #17a2b8;
    --bs-body-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================================
   FIX CRITIQUE - MENU DROPDOWN PROFIL
   ======================================== */

/* Container principal du menu utilisateur */
.banner {
    position: relative;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
}

/* Zone des actions utilisateur */
.user-actions {
    position: relative;
    z-index: 9999 !important; /* Maximum pour être au-dessus de tout */
}

/* Menu utilisateur */
.user-menu {
    position: relative;
    z-index: 9999 !important;
}

/* Bouton profil */
.btn-profile {
    position: relative;
    z-index: 9999 !important;
}

/* Menu déroulant */
.dropdown-menu {
    display: none;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    min-width: 220px !important;
    padding: 8px 0 !important;
    z-index: 99999 !important; /* Au-dessus de tout, y compris le menu utilisateur */
    margin: 0 !important;
}

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

.dropdown-menu a {
    display: block !important;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
}

.dropdown-menu a:hover {
    background: #f8f9fa !important;
    color: #003d7a !important;
}

.dropdown-menu hr {
    margin: 8px 0 !important;
    border: none !important;
    border-top: 1px solid #e9ecef !important;
}

/* Navigation principale */
.main-nav {
    position: sticky !important;
    top: 0;
    z-index: 1020 !important; /* En dessous du dropdown */
}

/* ========================================
   FIN FIX DROPDOWN
   ======================================== */

/* Boutons Bootstrap personnalisés */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

/* Cards Bootstrap style Mickey */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Tables Bootstrap avec style personnalisé */
.table thead th {
    background-color: var(--bs-primary);
    color: white;
}

/* Forms Bootstrap */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 61, 122, 0.25);
}

/* Alerts Bootstrap */
.alert {
    border-radius: 8px;
}

/* Badges Bootstrap */
.badge {
    border-radius: 12px;
    padding: 0.35em 0.65em;
}

/* Responsive menu mobile avec Bootstrap */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* S'assurer que le dropdown fonctionne aussi sur mobile */
    .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* Assurer que tous les dropdowns sont visibles */
.dropdown-menu {
    z-index: 99999 !important;
}

