/* ==========================================================================
   NOUVEAU STYLE DE LA NAVBAR (MODERNE & PROFESSIONNEL - ACCENT #04BBC7)
   ========================================================================== */

body {
            background-color: #f4f6f9;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 20px;
        }
/* Éléments globaux et variables de design */
:root {
    --nav-bg: #1e293b;         /* Fond sombre moderne (Slate 800) */
    --nav-accent: #04BBC7;     /* Votre couleur turquoise principale */
    --nav-hover: #334155;      /* Couleur de survol des liens (Slate 700) */
    --nav-active: #0f172a;     /* Couleur du lien actif (Slate 900) */
    --text-muted: #94a3b8;     /* Texte secondaire (Slate 400) */
}

/* Éléments DE LA BASE FORM */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-select{
  accent-color: #04BBC7; /* 🎨 Tente de forcer le turquoise comme couleur système */
}

.form-control:focus, .form-select:focus {
  border-color: #04BBC7;
  box-shadow: 0 0 0 3px rgba(4, 187, 199, 0.15);
}

.btn-primary {
            background-color: #04BBC7;
            border-color: #04BBC7;
            font-weight: 600;
            padding: 10px 24px;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .btn-primary:hover {
            background-color: #03a2ad;
            border-color: #03a2ad;
        }

        .btn-outline-secondary {
            border-radius: 8px;
            padding: 10px 20px;
            font-weight: 500;
        }

 .form-section-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #04BBC7; /* Couleur BENSO */
            border-bottom: 2px solid #f1f5f9;
            padding-bottom: 8px;
            margin-bottom: 20px;
            margin-top: 10px;
        }

        .form-label {
            font-weight: 500;
            color: #475569;
            font-size: 0.9rem;
        }

/* Base de la barre latérale */
.side-navbar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    width: 260px;
    background-color: var(--nav-bg);
    color: #f8fafc;
    padding: 0;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-navbar.open {
    left: 0;
}

/* Zone d'information utilisateur interne */
.side-navbar .user-info {
    margin-top: 80px; /* Aligné sous le bandeau fixe */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* Liens principaux et boutons dropdown */
.action-link,
.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cbd5e1;
    text-decoration: none;
    background-color: transparent;
    padding: 12px 16px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.action-link:hover,
.dropdown-btn:hover {
    background-color: var(--nav-hover);
    color: #ffffff;
}

/* État Actif */
.action-link.active {
    background-color: var(--nav-active);
    color: var(--nav-accent);
    font-weight: 600;
    border-left: 4px solid var(--nav-accent);
    border-radius: 0 8px 8px 0;
}

/* Bouton Déconnexion Spécifique */
.logout-link {
    margin-top: auto; /* Pousse le bouton vers le bas */
    margin-bottom: 20px;
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-weight: 600;
}
.logout-link:hover {
    background-color: #ef4444 !important;
    color: white !important;
}

/* Flèches pour les menus déroulants */
.dropdown-btn::after {
    content: '➔';
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}
.dropdown.open .dropdown-btn::after {
    transform: rotate(90deg);
    color: var(--nav-accent);
}

/* Conteneur des sous-menus (Animation fluide) */
.dropdown-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    margin: 4px 0;
}

.dropdown.open .dropdown-container {
    max-height: 500px; /* Hauteur max arbitraire pour l'animation */
    transition: max-height 0.4s ease-in;
}

.dropdown-container .action-link {
    padding-left: 32px;
    font-size: 13.5px;
    color: #94a3b8;
}

/* Bandeau Supérieur Fixe (Top Header) */
.menu-toggle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 65px;
    background-color: #ffffff; /* Fond blanc professionnel pour le Header */
    color: #1e293b;
    padding: 0 24px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Bouton Menu utilisant directement votre couleur turquoise */
.menu-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: var(--nav-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}
.menu-container:hover {
    background: #039fa9; /* Version légèrement plus foncée pour le survol */
}

.menu-toggle h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}

/* Profil utilisateur dans le Header */
.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-profile-text {
    text-align: right;
    line-height: 1.3;
}

.header-profile-text p:first-child {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.header-profile-text p:last-child {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--nav-accent); /* Cercle autour de l'image de profil */
}

/* Pour les couleurs de fonds des boutons*/

    /* ==========================================================================
   STYLE SOURIS & BOUTONS ACTIFS EN OUTLINE-PRIMARY (#04BBC7)
   ========================================================================== */

.btn-outline-primary{
        color: #04BBC7;
        border-color: #04BBC7;
    }

/* Couleur du bouton outline au survol */
.btn-outline-primary:hover {
    background-color: #04BBC7 !important;
    border-color: #04BBC7 !important;
    color: #ffffff !important;
}

/* Couleur du bouton outline sélectionné / actif (par exemple la classe .active) */
.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-primary.active,
.btn-primary:active {
    background-color: #04BBC7 !important;
    border-color: #04BBC7 !important;
    color: #ffffff !important;
    box-shadow: none;
}

/* Focus pour éviter l'anneau bleu par défaut */
.btn-outline-primary:focus,
.btn-outline-primary.active:focus,
.btn-primary:focus,
.btn-primary.active:focus {
    box-shadow: 0 0 0 3px rgba(4, 187, 199, 0.25) !important;
}

.btn-primary:focus{
        background-color: #04BBC7;
color: #ffffff !important;
    }

/* Pour les couleurs de fonds de la pagination*/
.page-link {
      color: #0288A7;
      cursor: pointer;
    }
    .page-item.active .page-link {
      background-color: #04BBC7;
      border-color: #04BBC7;
      color: white;
    }
/* ==========================================================================
   STYLE DU SÉLECTEUR & SURVOL DANS LES LISTES DÉROULANTES (<select> / <option>)
   ========================================================================== */

/* 1. Couleur lors du survol (Hover) et du focus sur les options */
.form-select option:hover,
select option:hover,
.form-select option:focus,
select option:focus {
    background-color: #04BBC7 !important;
    color: #ffffff !important;
    /* Inset box-shadow pour forcer le rendu du fond sur les moteurs Chromium */
    box-shadow: 0 0 10px 100px #04BBC7 inset !important;
}

/* 2. Couleur de l'option déjà sélectionnée (Checked) */
.form-select option:checked,
select option:checked {
    background-color: #04BBC7 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px 100px #04BBC7 inset !important;
}