.choco-table thead th[onclick^="ChocoTable.sort"]:hover {
    background-color: rgba(157, 196, 255, 0.8);    
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.choco-table thead th[onclick^="ChocoTable.sort"] {
    transition: all 0.3s ease;
}

.btn-group .btn {
    margin: 0 1px;
}

.choco-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transition: background-color 0.3s ease;
}

.img-preview {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.img-preview:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Amélioration de l'affichage des images en tooltip (CORRIGÉ) */
.image-tooltip {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    max-width: 400px;
    max-height: 300px;
    overflow: hidden;
    /* Éviter les problèmes de positionnement */
    transform: translateZ(0);
    will-change: transform;
}

.image-tooltip img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.375rem;
    display: block;
    margin: 0 auto;
    /* Assurer un chargement rapide */
    object-fit: contain;
}

/* Amélioration des badges pour le rôle */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

/* Amélioration des boutons d'action */
.btn-group .btn {
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



/* Style pour le message "Aucun résultat" */
#no-results-row {
    background-color: #f8f9fa;
}

/* Amélioration de la table */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.9em;
}

.table td {
    vertical-align: middle;
}

/* Amélioration des icônes de tri */
[onclick^="ChocoTable.sort"] i {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

[onclick^="ChocoTable.sort"]:hover i {
    opacity: 1;
}

