#chartjs-tooltip {
    opacity: 0;
    position: absolute !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    color: #333;
    padding: 10px;
    pointer-events: none;
/*     transition: all .1s ease; */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
/*     z-index: 1000; */
    z-index: 99999 !important; /* On booste le z-index au maximum */
    font-family: sans-serif;
    min-width: 180px;
    
    transition: opacity 0.2s ease, left 0.1s ease, top 0.1s ease;
    white-space: nowrap; /* Évite que le texte ne revienne à la ligne bizarrement */
    display: block !important; /* Pour être sûr qu'il n'est pas en display:none */
    
/*      transform: scale(1.49); */
/*     transform-origin: top left; */
}

#chartjs-tooltip table { margin: 0; }
#chartjs-tooltip tr { border-width: 0; }
#chartjs-tooltip td { border-width: 0; }
    
        body {
            background-color: #f5f5f5;
        }
        
        .chart-section {
            background: white; 
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        
/* Taille par défaut (pour les mobiles et tablettes) */
.chart-container {
            background: #fff8f0; 
    position: relative;
/* On définit une base minimale */
     min-height: 250px;  
    /* On laisse la hauteur automatique pour qu'elle puisse s'adapter */
/*     height: auto; */
    width: 100%;
/*     padding-top: 10px; */
/*     margin-top: 10px; */
    
    display: none;
}

/* Taille pour les écrans d'ordinateurs (plus grands que 992px) */
@media (min-width: 992px) {
    .chart-container {
        height: 450px; /* On redonne de la hauteur sur PC */
    }
}
        
        .participants-grid {
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .participant-box {
            display: inline-block;
/*             width: 80px; */
/*             height: 80px; */
            margin: 8px;
            border: 3px solid #ddd;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            background: white;
            position: relative;
            overflow: hidden;
        }
        
        .participant-box:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border-color: #999;
        }
        
        .participant-box.selected {
            border-width: 4px;
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        }
        
        .participant-number {
/*             font-size: 32px; */
            font-weight: bold;
/*             line-height: 50px; */
            margin-top: 5px;
        }
        
        .participant-name {
            font-size: 10px;
            color: #666;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 5px;
        }
        
        .legend-item {
            display: inline-flex;
            align-items: center;
            margin-right: 20px;
            margin-bottom: 10px;
        }
        
        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            margin-right: 8px;
            border: 2px solid white;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
        }
        
        .legend-text {
            font-size: 14px;
            font-weight: 500;
        }
        
        .controls {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #eee;
        }
        
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }
        
        .empty-state-icon {
            font-size: 64px;
            margin-bottom: 20px;
        }
        
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10;
        }
        
        .loading-overlay.active {
            display: flex;
        }
