/* Tableau de bord d'audience (/panel/stats). Classes préfixées « stats- ». */
.stats-bloc { height: 100%; min-width: 0; }
.stats-titre-bloc { font-size: 1.15rem; margin: 0 0 .75rem; }
.stats-sous-titre { font-size: .95rem; margin: 0 0 .5rem; }
.stats-chiffre { font-size: 2.4rem; font-weight: 700; line-height: 1.1; }

.stats-methode details > summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 14px 16px; }
.stats-methode-corps { padding: 0 16px 16px; max-width: 75ch; }
.stats-methode-corps h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.stats-methode-corps ul, .stats-methode-corps ol { padding-left: 1.25rem; margin: 0 0 .75rem; }
.stats-methode-corps ul { list-style: disc; }
.stats-methode-corps ol { list-style: decimal; }

.stats-legende { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.stats-legende-entree { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; }
.stats-legende-entree.masquee { opacity: .45; text-decoration: line-through; }
.stats-pastille { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.stats-echelle, .stats-axe { font-size: .75rem; color: #666; }
.stats-axe { display: flex; justify-content: space-between; margin-top: 4px; }
.stats-courbe { display: block; width: 100%; height: 300px; overflow: visible; }
.stats-grille { stroke: #e3e3e0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.stats-survol { fill: transparent; }
.stats-survol:hover { fill: rgba(0, 0, 0, .05); }

.stats-histogramme { display: flex; align-items: stretch; gap: 1px; height: 200px; border-bottom: 1px solid #ccc; }
.stats-colonne { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; }
.stats-barre-verticale { width: 100%; background: #1baf7a; border-radius: 2px 2px 0 0; }

.stats-barres { list-style: none; margin: 0; padding: 0; }
.stats-barres li { margin-bottom: 10px; }
.stats-barre-texte { display: flex; justify-content: space-between; gap: 8px; }
.stats-barre-texte code { min-width: 0; overflow-wrap: anywhere; }
.stats-barre-fond, .stats-barre-pleine { height: 8px; border-radius: 4px; }
.stats-barre-fond { background: #ececea; }
.stats-barre-pleine { background: #7f01d3; }
.stats-barres small { color: #666; }

.stats-donut { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.stats-donut svg { width: 150px; height: 150px; }
.stats-donut ul { flex: 1 1 160px; list-style: none; margin: 0; padding: 0; }
.stats-donut li { display: flex; align-items: center; gap: 8px; }
.stats-donut-libelle { flex: 1; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 600px) {
    .stats-courbe { height: 220px; }
    .stats-histogramme { height: 150px; gap: 0; }
}
