
/* ===== Container ===== */

/* ===== Controls ===== */
.controls {
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:15px;
}

/* Partie gauche : sélection / désélection */
.controls .selection-buttons {
    display:flex;
    align-items:center;
    gap:8px;
}
.controls .selection-buttons button {
    background-color:#667eea;
    color:#fff;
    border:none;
    border-radius:6px;
    padding:6px 12px;
    cursor:pointer;
    font-weight:500;
    transition:all 0.2s ease;
}
.controls .selection-buttons button:hover { background-color:#5560c1; }

#selectionCount {
    background-color:#e0e7ff;
    color:#1e3a8a;
    padding:4px 8px;
    border-radius:6px;
    font-weight:500;
}

/* Partie droite : recherche + rows per page */
.controls .filters {
    display:flex;
    align-items:center;
    gap:10px;
}
.controls input, .controls select {
    padding:6px 10px;
    border:1px solid #cbd5e1;
    border-radius:6px;
    font-size:14px;
    outline:none;
    transition:all 0.2s ease;
}
.controls input:focus, .controls select:focus {
    border-color:#667eea;
    box-shadow:0 0 0 2px rgba(102,126,234,0.2);
}

/* ===== Stats ===== */
#statsInfo {
    font-size:19px;
    color:#374151;
    margin-bottom:10px;
    font-weight:700;/* normal ou 400 : le texte est affiché en normal.
bold ou 700 : le texte est affiché en gras.*/
}

/* ===== Table ===== */
.table-container {
    overflow-x:auto;
    border-radius:10px;
    border:1px solid #e2e8f0;
    
}

table {
    table-layout: fixed;
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    font-size:15px;
    margin-bottom:30px;
}

thead { background-color:#667eea; color:#fff; }
th { padding:14px 12px; text-align:left; font-weight:600; cursor:pointer; position:relative; }
th.sortable:hover { background-color: rgba(255,255,255,0.1); }
th.selection{width:30px;}
th.index{width:50px;}
th.actions {width:210px;}

tbody tr { border-bottom:1px solid #f1f5f9; transition:background-color 0.2s; }
tbody tr:hover { background-color:#f7f8ff; }
tbody tr:nth-child(even) { background-color:#f9fafc; }
td { padding:10px 12px; color:#4a5568; }

input[type="checkbox"] { width:18px; height:18px; accent-color:#667eea; }


th.sortable{
cursor:pointer;
user-select:none;
position:relative;
padding-right:20px;
}

th.sortable .sort-indicator{
position:absolute;
right:8px;
top:50%;
transform:translateY(-50%);
font-size:12px;
color:#333;
}

.pagination{
     margin-top : 30px;
}

#paginationInfo {
    display: flex;
    justify-content: center;
    font-size : 15px;
    margin-top : 10px;
    
}    

/* ===== Pagination ===== */
#paginationButtons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.pagination-button {
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-button:hover:not(:disabled) {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
}

.pagination-button.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Highlight recherche */
mark.highlight { background-color:#ffd93d; border-radius:2px; padding:0 2px; }

