﻿/* =======================================================
   SECTION ADHERENTS & DOCS
   ======================================================= */

.doc-card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--light);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 0 0 250px; /* Ne grandit pas, ne rétrécit pas, base de 250px */
    margin: 0; /* On enlève les marges automatiques si présentes */
}

.doc-card i { font-size: 2rem; color: var(--primary); }
.doc-card:hover { background: var(--primary); color: var(--dark); }
.doc-card:hover i { color: var(--dark); }

/* Conteneur de la liste (remplace ou complète .docs-grid) */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espace entre chaque ligne de document */
}

/* Chaque ligne : rectangle + commentaire */
.doc-item {
    display: flex;
    align-items: stretch; /* Le rectangle et le commentaire auront la même hauteur */
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03); /* Optionnel : un fond léger pour toute la ligne */
    border-radius: 8px;
    transition: 0.3s;
}

.doc-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

/* Style du texte à droite */
.doc-comment {
    flex: 1; /* Prend tout l'espace restant à droite */
    display: flex;
    align-items: center; /* Centre le texte verticalement par rapport au rectangle */
    padding: 1rem 2rem;
    color: #bbb;
    line-height: 1.6;
    font-size: 1.05rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1); /* Petite séparation visuelle */
}

/* Adaptabilité Mobile */
@media screen and (max-width: 768px) {
    .doc-item {
        flex-direction: column; /* On repasse l'un sous l'autre sur petit écran */
        gap: 0.5rem;
    }

    .doc-card {
        flex: 1;
        max-width: 100%; /* Le rectangle prend toute la largeur sur mobile */
    }

    .doc-comment {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
    }
}

/* =======================================================
   MODALE ADHÉRENTS (POP-UP)
   ======================================================= */

/* 1. L'ARRIÈRE-PLAN (Le voile noir) */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fond très sombre */
    backdrop-filter: blur(5px); /* Flou derrière */
    z-index: 20000; /* Au-dessus de TOUT (même du menu) */
    /* Pour centrer la fenêtre */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Classe pour afficher la modale (via JS) */
.modal-overlay.visible {
    display: flex;
    opacity: 1;
}

/* 2. LA FENÊTRE (Contenu) */
.modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 600px;
    max-height: 80vh; /* Max 80% de la hauteur écran */
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Le bouton Fermer (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

    .close-modal:hover {
        color: var(--primary);
    }

/* 3. LA LISTE DÉROULANTE */
.adherents-list {
    list-style: none;
    margin-top: 1rem;
    overflow-y: auto; /* Permet de scroller si la liste est longue */
    padding-right: 10px;
    text-align: left;
}

    /* Scrollbar personnalisée */
    .adherents-list::-webkit-scrollbar {
        width: 5px;
    }

    .adherents-list::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 5px;
    }

    .adherents-list li {
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: #ddd;
        font-size: 1.1rem;
        transition: 0.2s;
    }

        .adherents-list li:hover {
            background: rgba(255,255,255,0.05);
            color: var(--primary);
            padding-left: 15px; /* Petit mouvement */
        }

/* Barre de recherche (Bonus) */
.search-bar input {
    width: 100%;
    padding: 10px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    margin-bottom: 1rem;
}

    .search-bar input:focus {
        outline: 1px solid var(--primary);
    }

/* =======================================================
   ADHÉRENTS : STRUCTURE 50/50 (VERTICAL GAUCHE / CENTRÉ DROITE)
   ======================================================= */

/* 1. LE CONTENEUR GLOBAL */
.adherents-split-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Aligne le haut des colonnes */
    gap: 4rem; /* Espace central */
    margin: 6rem 10%;
}

/* 2. LES COLONNES (50% chacune) */
.half-column {
    flex: 1; /* Force l'égalité parfaite */
    width: 50%; /* Sécurité */
}

/* --- STYLE COLONNE GAUCHE (BUREAU) --- */
.bureau-column {
    text-align: left; /* ALIGNEMENT GAUCHE DEMANDÉ */
}

.bureau-vertical-list {
    display: flex;
    flex-direction: column; /* Force la verticale */
    gap: 0; /* On gère l'espace avec le padding des lignes */
    margin-top: 2rem;
    border-left: 2px solid var(--primary); /* Ligne décorative à gauche */
}

.bureau-row {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Ligne de séparation subtile */
    background: linear-gradient(to right, rgba(255,255,255,0.02), transparent);
    transition: 0.3s;
}

    .bureau-row:last-child {
        border-bottom: none;
    }

    .bureau-row:hover {
        padding-left: 2rem; /* Petit mouvement sympa au survol */
        background: linear-gradient(to right, rgba(255,255,255,0.05), transparent);
    }

    .bureau-row h3 {
        color: var(--primary); /* Fonction en Vert/Jaune */
        font-size: 0.9rem;
        text-transform: uppercase;
        margin-bottom: 0.3rem;
        letter-spacing: 1px;
    }

    .bureau-row p {
        color: #fff; /* Nom en Blanc */
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
    }

/* --- STYLE COLONNE DROITE (LISTE) --- */
.liste-column {
    /* Le contenu interne sera centré via la card, mais on garde le titre aligné comme on veut */
}

.liste-action-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 3rem 2rem;
    margin-top: 2rem;
    /* ALIGNEMENT CENTRÉ DEMANDÉ */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* S'adapte si besoin */

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

    .liste-action-card i {
        font-size: 3.5rem;
        color: var(--primary);
        margin-bottom: 1.5rem;
    }

    .liste-action-card p {
        color: #ccc;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .liste-action-card button {
        width: auto; /* Bouton taille normale centré */
        padding: 1rem 3rem;
    }

/* --- MOBILE (< 900px) --- */
@media screen and (max-width: 900px) {
    .adherents-split-section {
        flex-direction: column; /* L'un sous l'autre */
        gap: 3rem;
    }

    .half-column {
        width: 100%; /* Pleine largeur */
    }
}