/* ==========================================================
   Statistiques de la ligue (PlayersStat2026, GoaliesStat2026, TeamsStat2026)
   Tableaux : .tableau--equipe (css/equipe2026.css) ; tri : js/tableaux2026.js
   ========================================================== */

.stats-ligue { display: grid; gap: 1.25rem; min-width: 0; }
.stats-ligue__entete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.stats-ligue__entete .titre-section { margin-bottom: 0; }
.stats-ligue__note { margin: 0; font-size: .85rem; }

/* ---------- Filtres ---------- */
.filtres-ligue { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.filtre-champ { display: grid; gap: .25rem; }
.filtre-champ > span { color: var(--texte-2); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.filtre-champ select, .filtre-champ input {
    font: inherit;
    font-weight: 600;
    color: var(--texte);
    background: var(--surface);
    border: 1px solid var(--trait);
    border-radius: var(--rayon);
    padding: .45rem .6rem;
    min-width: 10rem;
}
.filtre-champ--court input { min-width: 0; width: 5rem; }
.filtre-case { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; padding-bottom: .5rem; cursor: pointer; }
.filtre-case input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent-fond); }
.filtres-ligue__ok {
    font: inherit;
    font-weight: 700;
    padding: .45rem 1rem;
    border: 1px solid var(--accent-fond);
    border-radius: var(--rayon);
    background: var(--accent-fond);
    color: var(--accent-texte);
    cursor: pointer;
}

/* ---------- Titre du tableau et vues ---------- */
.groupe__barre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}
.groupe__barre .groupe__titre { margin: 0; padding-bottom: 0; }
.vues { flex-wrap: wrap; }

/* ---------- Tableau ---------- */
.tableau--ligue { font-size: .88rem; }
.tableau--ligue .col-nom { min-width: 11rem; white-space: nowrap; }
.tableau--ligue .col-nom a, .tableau--ligue .col-nom .col-nom__texte { display: inline-flex; align-items: center; gap: .45rem; }
.tableau--ligue .col-nom img { width: 24px; height: 24px; flex: none; }
.tableau--ligue .col-equipe img { width: 22px; height: 22px; vertical-align: middle; }
.tableau--ligue .col-forte { color: var(--texte); font-weight: 800; }
.tableau--ligue th[data-tri] { white-space: nowrap; }
.tableau--ligue tbody :is(th, td) { vertical-align: middle; }


@media (max-width: 640px) {
    .filtre-champ { flex: 1 1 45%; }
    .filtre-champ select { min-width: 0; width: 100%; }
    .tableau--ligue .col-nom { min-width: 8.5rem; }
    .tableau--ligue .nom-long { display: none; }
    .tableau--ligue .nom-court { display: inline; }
}

/* ---------- Cotes (PlayersRosterCotes2026, GoaliesRosterCotes2026) ---------- */
.tableau--cotes .cote-haute { color: var(--monte); font-weight: 700; }
.tableau--cotes .cote-basse, .stats-ligue__note .cote-basse { color: var(--texte-2); }
.stats-ligue__note .cote-haute { color: var(--monte); font-weight: 700; }
.tableau--cotes .col-nom .statut-contrat { margin-left: .3rem; font-size: .65rem; padding: 0 .3rem; }
