/*
 * ========================================================
 * [ÉTAT : FINAL] Date : 21-05-2026 16:23:00
 * FICHIER : privileges.css
 * RÔLE : Feuille de style pour la gestion des accès et des membres
 * Auteurs : Yvan Dubé & Gemini (IA Collaboratrice)
 * =========================================================
 */

/* ==========================================================================
   1. STRUCTURE GLOBALE
   ========================================================================== */
.container-privileges {
    width: 950px;
    margin: 30px auto;
    border: 1px solid var(--couleur-bordure);
    border-radius: var(--radius);
    background-color: white;
}

.grille-membres {
    display: grid;
    grid-template-columns: 200px 200px 400px 150px;
}

.ligne-formulaire { 
    margin: 0; 
}

/* ==========================================================================
   2. BARRE DE RECHERCHE (STICKY)
   ========================================================================== */
#sticky2 {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.boite_recherche_centre {
    display: flex;
    justify-content: center;
    padding: 15px;
    background: var(--couleur-grise-pale, #f5f5f5);
    border-bottom: 2px solid var(--couleur-bordure);
}

.search-input {
    width: 400px;
    padding: 10px 15px;
    border: 2px solid var(--couleur-primaire);
    border-radius: 20px;
    text-align: center;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--couleur-primaire-hover);
}

/* ==========================================================================
   3. EN-TÊTE MAUVE (STICKY)
   ========================================================================== */
.corps.entete-mauve {
    position: sticky;
    top: 0; 
    z-index: 10;
    background-color: var(--couleur-primaire) !important;
    color: white !important;
    border-bottom: 2px solid #444;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.entete-mauve .entete_col {
    height: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding-left: 15px;
}

/* ==========================================================================
   4. ZONE DÉFILANTE & ASCENSEUR
   ========================================================================== */
.liste-membres {
    max-height: 60vh;
    overflow-y: auto;
    border-bottom: 2px solid var(--couleur-bordure);
    scrollbar-gutter: stable; 
}

.liste-membres::-webkit-scrollbar {
    width: 10px;
}

.liste-membres::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.liste-membres::-webkit-scrollbar-thumb {
    background: #c19bc9; 
    border-radius: 10px;
}

.liste-membres::-webkit-scrollbar-thumb:hover {
    background: var(--couleur-primaire);
}

/* ==========================================================================
   5. CELLULES ET CONTENU DU TABLEAU
   ========================================================================== */
.corps_col {
    min-height: 55px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--couleur-bordure);
    border-right: 1px solid var(--couleur-bordure);
}

.corps_col:last-child {
    border-right: none;
}

/* Rangement modulaire : Effet zébré sur les lignes paires */
.ligne-formulaire:nth-child(even) .corps_col {
    background-color: var(--couleur-grise-pale, #f8f9fa);
}

/* Effet au survol de la ligne (prioritaire via !important) */
.ligne-membre:hover .corps_col {
    background-color: #f9f0ff !important;
}

.corps_col.center {
    justify-content: center;
    padding: 0;
}

/* ==========================================================================
   6. ÉLÉMENTS INTERACTIFS (SELECT)
   ========================================================================== */
.select-privilege {
    width: 120px;
    height: 35px;
    border: 2px solid var(--couleur-primaire);
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.2s;
}

.select-privilege:hover {
    background-color: #fcfaff;
}