
/* Petit Jeu */
.game-area {
    background: #eee;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

#compteur{
    color:rgb(90, 17, 173);
}



#leaderboard {
    width: 100%;    
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    /* centrer horizontalement */
    padding: 12px;
    background: #f9f9f9;       /* fond clair */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: Arial, Helvetica, sans-serif;
}

/* Titre */
#leaderboard h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: #333;
    text-align: center;
}

/* Liste des scores */
#score-list {
    list-style: none;          /* suppression des puces */
    margin: 0;
    padding: 0;
    max-height: 21rem;       /* hauteur approximative de 5 lignes */
    overflow-y: auto;          /* barre de défilement si >5 éléments */
    border-top: 1px solid #e0e0e0;
}

/* En-tête des colonnes */
.score-header {
    display: flex;
    padding: 0.5rem 0.8rem;
    font-weight: bold;
    color: #8d7060;
    border-bottom: 2px solid #ddd;
    background-color: #f4f4f4;
}

/* Styles des colonnes */
.rank {
    flex: 0 0 15%;
    text-align: center;
    font-weight: bold;
    color: #8d7060;
}

.pseudo {
    flex: 1;
    text-align: left;
    padding-left: 15px;
}

.points {
    flex: 0 0 25%;
    text-align: right;
}

/* Chaque ligne de score */
#score-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.95rem;
    color: #555;
}

/* Alternance de couleur de fond pour plus de lisibilité */
#score-list li:nth-child(odd) {
    background: #fff;
}
#score-list li:nth-child(even) {
    background: #f5f5f5;
}

/* Style de la barre de défilement (WebKit) */
#score-list::-webkit-scrollbar {
    width: 6px;
}
#score-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
#score-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}
#score-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Pour les navigateurs non‑WebKit (Firefox) */
#score-list {
    scrollbar-width: thin;
    scrollbar-color: #bbb #f0f0f0;
}