.hall-of-fame {
    padding: 1rem 2rem 1rem 2rem;
    background: #f3f7ff;
    text-align: center;
  }
  
  .hof-container {
    max-width: 700px;
    margin: auto;
  }
  
  .hof-container h3 {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
  }
  /* Boutons de filtre */
  .hof-filtres {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap; /* Permet le retour à la ligne si trop long */
    justify-content: center; /* Centrage horizontal */
    gap: 0.5rem; /* Espacement régulier entre boutons */
  }
  
  .hof-filtre {
    flex: 1 1 auto; /* Chaque bouton peut rétrécir ou grandir */
    min-width: 100px; /* Pour ne pas trop écraser */
    max-width: 140px;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    background: #ddd;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap; /* Empêche retour à la ligne dans un bouton */
  }
  
  .hof-filtre.active {
    background: #2a6cc9; /* Bleu plus foncé */
    color: #fff;
  }
  
  /* Liste de scores */
  .hof-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
  }
  
  .hof-liste li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  /* Spécifique à la ligne "total possible" */
  .total-possible {
    background: #eef3ff;
    font-style: italic;
    font-weight: bold;
    color: #333;
    margin-top: 0.8rem;
  }
  
  /* Barre de progression */
  .bar-container {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 0.5rem;
  }
  
  .bar {
    height: 100%;
    background: #4a90e2;
    border-radius: 6px;
    transition: width 0.5s ease-in-out;
  }
  
  /* Colonne score */
  .points {
    text-align: right;
    font-size: 0.9rem;
  }
  
  .points small {
    display: block;
    font-size: 0.75rem;
    color: #666;
  }

  .hof-vide {
    text-align: center;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    color: #666;
  }

.bar.math    { background: #f39c12; } /* orange */
.bar.anglais { background: #3498db; } /* bleu */
.bar.francais{ background: #9b59b6; } /* violet */
.bar.sciences{ background: #2ecc71; } /* vert */
.bar.total   { background: #e67e22; } /* pour le global */

.hof-liste li:nth-child(1) { transform: scale(1.05); font-weight: bold; }
.hof-liste li:nth-child(2) { transform: scale(1.03); }
.hof-liste li:nth-child(3) { transform: scale(1.02); }

