
/* =====================================================
   ENLA 2.0 — MODULE DOS
   PAGE : ÉLÈVES
   Fichier : assets/css/eleves.css
===================================================== */


/* =====================================================
   1. PAGE PRINCIPALE
===================================================== */

.dos-eleves {
    width: 100%;
    min-width: 0;
    color: #29243a;
}


/* =====================================================
   2. EN-TÊTE
===================================================== */

.dos-eleves .dos-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.dos-eleves .dos-page-titre h2 {
    margin: 0;
    color: #29243a;
    font-size: 1.55rem;
    font-weight: 700;
}

.dos-eleves .dos-page-titre p {
    margin: 7px 0 0;
    color: #777387;
    font-size: 0.92rem;
}


/* =====================================================
   3. SECTION DES FILTRES
===================================================== */

.eleves-filtres {
    padding: 20px;
    margin-bottom: 25px;
    background: #ffffff;
    border: 1px solid #eceaf2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35, 25, 65, 0.035);
}

.eleves-filtres-header {
    margin-bottom: 18px;
}

.eleves-filtres-header h3 {
    margin: 0;
    color: #29243a;
    font-size: 1rem;
    font-weight: 650;
}

.eleves-filtres-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.eleves-filtres .filtre-groupe {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.eleves-filtres .filtre-groupe label {
    color: #514c61;
    font-size: 0.87rem;
    font-weight: 600;
}

.eleves-filtres .filtre-groupe select {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: #393448;
    background-color: #ffffff;
    border: 1px solid #dedbe8;
    border-radius: 7px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.eleves-filtres .filtre-groupe select:focus {
    border-color: #165BFB;
    box-shadow: 0 0 0 3px rgba(22, 91, 251, 0.10);
}


/* =====================================================
   4. SECTION DE LA LISTE
===================================================== */

.eleves-liste {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eceaf2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35, 25, 65, 0.035);
}

.eleves-liste-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.eleves-liste-header h3 {
    margin: 0;
    color: #29243a;
    font-size: 1.05rem;
    font-weight: 700;
}

.eleves-liste-header p {
    margin: 6px 0 0;
    color: #858093;
    font-size: 0.85rem;
}


/* =====================================================
   5. COMPTEUR DES ÉLÈVES
===================================================== */

.eleves-total {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 13px;
    color: #165BFB;
    background: #eef3ff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.eleves-total span:first-child {
    font-size: 1rem;
    font-weight: 750;
}


/* =====================================================
   6. CONTENEUR DU TABLEAU
===================================================== */

.eleves-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #eceaf2;
    border-radius: 9px;
}

.eleves-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    background: #ffffff;
}


/* =====================================================
   7. EN-TÊTE DU TABLEAU
===================================================== */

.eleves-table thead {
    background: #f7f6fa;
}

.eleves-table th {
    padding: 14px 13px;
    color: #5c576c;
    border-bottom: 1px solid #eae8f0;
    font-size: 0.79rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}


/* =====================================================
   8. CELLULES DU TABLEAU
===================================================== */

.eleves-table td {
    padding: 13px;
    color: #494457;
    border-bottom: 1px solid #f0eef4;
    font-size: 0.85rem;
    white-space: nowrap;
}

.eleves-table tbody tr:last-child td {
    border-bottom: none;
}


/* =====================================================
   9. LIGNES CLIQUABLES
===================================================== */

.eleves-table tbody tr.ligne-eleve-dos {
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.eleves-table tbody tr.ligne-eleve-dos:hover {
    background: #f4f7ff;
}

.eleves-table tbody tr.ligne-eleve-dos:focus {
    outline: 2px solid #165BFB;
    outline-offset: -2px;
    background: #f4f7ff;
}

.eleves-table tbody tr.ligne-eleve-dos:active {
    background: #eaf0ff;
}


/* =====================================================
   10. COLONNE DU CODE ÉLÈVE
===================================================== */

.eleves-table td:first-child {
    color: #165BFB;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


/* =====================================================
   11. ÉTATS DU TABLEAU
===================================================== */

.eleves-table .text-center {
    padding: 30px 15px;
    color: #858093;
    text-align: center;
}

.eleves-table .message-erreur {
    color: #c0392b;
}

.eleves-table .message-vide {
    color: #858093;
}


/* =====================================================
   12. PAGINATION
===================================================== */

.eleves-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 18px;
}

.pagination-informations {
    color: #858093;
    font-size: 0.82rem;
}

.pagination-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    color: #514c61;
    background: #ffffff;
    border: 1px solid #dedbe8;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-actions button:hover:not(:disabled) {
    color: #165BFB;
    background: #f4f7ff;
    border-color: #165BFB;
}

.pagination-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-actions span {
    min-width: 45px;
    color: #514c61;
    font-size: 0.83rem;
    font-weight: 600;
    text-align: center;
}


/* =====================================================
   13. RESPONSIVE — TABLETTES
===================================================== */

@media (max-width: 768px) {

    .eleves-filtres-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .eleves-liste-header {
        align-items: flex-start;
    }

    .eleves-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-actions {
        width: 100%;
        justify-content: space-between;
    }

}


/* =====================================================
   14. RESPONSIVE — MOBILES
===================================================== */

@media (max-width: 480px) {

    .dos-eleves .dos-page-header {
        margin-bottom: 18px;
    }

    .dos-eleves .dos-page-titre h2 {
        font-size: 1.3rem;
    }

    .eleves-filtres,
    .eleves-liste {
        padding: 14px;
        border-radius: 9px;
    }

    .eleves-liste-header {
        flex-direction: column;
    }

    .eleves-total {
        align-self: flex-start;
    }

    .pagination-actions {
        gap: 7px;
    }

    .pagination-actions button {
        padding: 7px 9px;
        font-size: 0.77rem;
    }

}
