/* --- CONTENEUR DE TABLEAU --- */
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* --- STYLE GENERAL DES TABLEAUX --- */
table.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-family: inherit;
}

    /* --- LIGNES DE TITRE / FUSION (colspan) --- */
    table.data-table tr td[colspan] {
        background-color: #f3f4f6 !important;
        font-weight: bold;
        color: #1f2937;
        text-align: center;
        padding: 12px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    /* --- EN-TÊTE DES COLONNES --- */
    table.data-table thead tr:last-child th,
    table.data-table thead tr:last-child td,
    table.data-table tr.header-row th,
    table.data-table tr.header-row td {
        background-color: #f0f7ff;
        color: darkblue;
        font-weight: bold;       
        border-bottom: 1px solid #e5e7eb;
        vertical-align: middle;
        text-align: center; /* Centre horizontalement le contenu */
    }

    /* --- CELLULES --- */
    table.data-table th,
    table.data-table td {
        padding: 10px 14px;
        color: #374151;
        vertical-align: middle;
        text-align: center; /* Centre horizontalement le contenu */
    }  

    /* Survol de la ligne */
    table.data-table tbody tr:hover {
        background-color: #f1f5f9;
        transition: background-color 0.2s ease;
    }

    /* Séparateur léger entre les lignes */
    table.data-table tr:not(:last-child) td {
        border-bottom: 1px solid #f3f4f6;
    }

    /* --- ALTERNANCE AUTOMATIQUE DES LIGNES (Zebra) --- */
    table.data-table tbody tr:nth-child(even) {
        background-color: #f9fafb;
    }

    table.data-table tbody tr:nth-child(odd) {
        background-color: #ffffff;
    }