/* Baromètre du foot amateur — s'appuie sur les jetons de matchday.css */
.baro-hero { padding: 72px 0 64px; }
.baro-hero .page-hero-inner { max-width: 1240px; }
.baro-hero h1 { max-width: 14ch; margin: 18px 0 20px; font-size: clamp(52px, 7.2vw, 112px); }
.baro-hero .hero-sub { max-width: 58ch; font-size: 17px; line-height: 1.65; }
.baro-hero .sport-eyebrow { color: var(--mp-on-dark-muted); }
.baro-hero .sport-eyebrow::before { box-shadow: none; }
.baro-hero-kpis {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 40px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12);
}
.baro-hero-kpis > div { background: rgba(11, 15, 13, .55); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.baro-hero-kpis strong { font: 800 clamp(30px, 3.2vw, 44px)/1 Inter, system-ui, sans-serif; letter-spacing: -.035em; color: #fff; }
.baro-hero-kpis span { font-size: 13px; color: #cfd8d2; line-height: 1.45; }

.baro-section { padding: 88px 0; background: var(--mp-paper); }
.baro-alt { background: #fbfaf6; }
.baro-dark { background: var(--mp-ink); color: #fff; }
.baro-dark h2 { color: #fff; }
.baro-dark h2 span { color: var(--mp-volt) !important; }
.baro-dark p { color: var(--mp-on-dark-muted); }
.baro-dark .sport-eyebrow { color: var(--mp-on-dark-muted); }
.baro-dark .sport-eyebrow::before { box-shadow: none; }
.baro-dark .mp-text-link { color: #fff; }
.baro-section h2 { font-size: clamp(40px, 4.8vw, 70px); line-height: .92; margin: 14px 0 22px; color: var(--mp-ink); }
.baro-section h2 span { color: var(--mp-pitch-2); }
.baro-section p { font-size: 16px; line-height: 1.75; color: var(--mp-muted); max-width: 56ch; }
.baro-section p strong { color: var(--mp-ink); }
.baro-dark p strong { color: #fff; }
.baro-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.baro-head h2 { margin-bottom: 0; }
.baro-head p { margin: 0; }
.baro-two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }

/* Carte */
.baro-map-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.baro-map-figure { position: relative; margin: 0; background: #fbfaf6; border: 1px solid var(--mp-line); padding: 24px; }
.baro-map { width: 100%; height: auto; display: block; }
.baro-dep path { stroke: #fbfaf6; stroke-width: 1.2; stroke-linejoin: round; transition: opacity .15s ease; }
.baro-dep:hover path, .baro-dep:focus path { stroke: var(--mp-ink); stroke-width: 2.4; }
.baro-dep:focus { outline: none; }
.baro-map:hover .baro-dep path { opacity: .55; }
.baro-map:hover .baro-dep:hover path { opacity: 1; }
.baro-map-figure figcaption { font-size: 12px; color: var(--mp-muted); margin-top: 12px; }
.baro-tip {
    position: absolute; z-index: 5; pointer-events: none; min-width: 220px;
    background: var(--mp-ink); color: #fff; padding: 12px 14px; border-radius: 2px;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
    display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.45; color: #cfd8d2;
}
.baro-tip strong { color: #fff; font-size: 14px; }
.baro-tip b { color: var(--mp-volt); font-size: 16px; }
.baro-legend { margin-top: 28px; }
.baro-legend-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-ink); margin-bottom: 12px; }
.baro-legend ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.baro-legend li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--mp-muted); font-variant-numeric: tabular-nums; }
.baro-legend i { width: 28px; height: 14px; border-radius: 2px; flex: none; }

/* Top 10 — barres horizontales, une seule série */
.baro-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.baro-bars li { display: grid; grid-template-columns: 34px minmax(150px, 230px) 1fr 64px; align-items: center; gap: 16px; }
.baro-bar-rank { font: 800 26px/1 var(--display); color: var(--mp-ink); }
.baro-bar-name { font-weight: 600; color: var(--mp-ink); text-decoration: none; font-size: 15px; }
.baro-bar-name:hover { text-decoration: underline; text-decoration-color: var(--mp-volt); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.baro-bar-name small { color: var(--mp-muted); font-weight: 500; }
.baro-bar-track { position: relative; height: 22px; background: linear-gradient(90deg, var(--mp-line) 0 1px, transparent 1px); }
.baro-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #3a844a; border-radius: 0 4px 4px 0; }
.baro-bars li:first-child .baro-bar-fill { background: var(--mp-pitch); }
.baro-bar-avg { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--mp-ink); }
.baro-bar-val { font-weight: 700; color: var(--mp-ink); font-variant-numeric: tabular-nums; text-align: right; }
.baro-note { margin-top: 22px; font-size: 13px !important; display: flex; align-items: center; gap: 10px; }
.baro-avg-key { width: 2px; height: 16px; background: var(--mp-ink); display: inline-block; }

/* Âges — colonnes */
.baro-ages { margin: 0; display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; align-items: end; height: 340px; position: relative; padding-bottom: 54px; border-bottom: 1px solid var(--mp-line); }
.baro-age { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; }
.baro-age-bar { width: 100%; max-width: 24px; background: #b9c9bc; border-radius: 4px 4px 0 0; min-height: 2px; }
.baro-age.is-key .baro-age-bar { background: var(--mp-pitch); }
.baro-age-val { font-size: 11px; font-weight: 700; color: var(--mp-ink); white-space: nowrap; }
.baro-age-lab { position: absolute; bottom: -44px; font-size: 10px; color: var(--mp-muted); writing-mode: vertical-rl; transform: rotate(180deg); height: 40px; font-variant-numeric: tabular-nums; }
.baro-ages figcaption { position: absolute; left: 0; bottom: -84px; font-size: 12px; color: var(--mp-muted); }
.baro-age:hover .baro-age-bar { outline: 2px solid var(--mp-ink); outline-offset: 2px; }

/* Féminin — classement */
.baro-rank-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.baro-rank-list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.baro-rank-list span { font: 800 26px/1 var(--display); color: var(--mp-volt); }
.baro-rank-list a { color: #fff; font-weight: 600; text-decoration: none; }
.baro-rank-list a:hover { text-decoration: underline; text-decoration-color: var(--mp-volt); }
.baro-rank-list strong { color: #fff; font-variant-numeric: tabular-nums; }

/* QPV — comparaison */
.baro-compare { display: grid; gap: 18px; }
.baro-compare > div { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 16px; font-weight: 600; color: var(--mp-ink); }
.baro-compare-track { height: 22px; background: #eeebe3; position: relative; }
.baro-compare-track span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--mp-pitch); border-radius: 0 4px 4px 0; }
.baro-compare .is-muted .baro-compare-track span { background: #9aa39c; }
.baro-compare strong { font-variant-numeric: tabular-nums; text-align: right; }
.baro-compare small { color: var(--mp-muted); font-size: 12px; }

/* Tableau complet */
.baro-table-wrap { overflow-x: auto; border: 1px solid var(--mp-line); background: #fff; max-height: 640px; }
.baro-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.baro-table thead th { position: sticky; top: 0; background: var(--mp-ink); color: #fff; text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; }
.baro-table td, .baro-table tbody th { padding: 10px 14px; border-bottom: 1px solid #efece4; text-align: left; font-weight: 400; color: #2a302c; }
.baro-table tbody th a { color: var(--mp-ink); font-weight: 600; text-decoration: none; }
.baro-table tbody th a:hover { text-decoration: underline; text-decoration-color: var(--mp-volt); text-decoration-thickness: 2px; }
.baro-table tbody th small { color: var(--mp-muted); margin-left: 4px; }
.baro-table tbody tr:hover { background: #f6f4ee; }
.baro-table td:first-child { font-weight: 700; width: 64px; }

/* FAQ & méthodo */
.baro-faq details { border-bottom: 1px solid var(--mp-line); padding: 20px 0; }
.baro-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-size: 17px; font-weight: 600; color: var(--mp-ink); }
.baro-faq summary::-webkit-details-marker { display: none; }
.baro-faq details[open] summary span { transform: rotate(45deg); }
.baro-faq details p { margin-top: 14px; }
.baro-method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 48px; margin-top: 12px; }
.baro-method-grid p { font-size: 14px; max-width: none; }
.baro-method-grid a { color: var(--mp-ink); text-decoration-color: var(--mp-volt); text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 980px) {
    .baro-map-grid, .baro-two { grid-template-columns: 1fr; gap: 40px; }
    .baro-hero-kpis { grid-template-columns: repeat(2, 1fr); }
    .baro-method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .baro-section { padding: 60px 0; }
    .baro-bars li { grid-template-columns: 26px 1fr 52px; gap: 10px; }
    .baro-bar-track { grid-column: 2 / 4; grid-row: 2; }
    .baro-bar-val { grid-column: 3; grid-row: 1; }
    .baro-ages { gap: 2px; height: 280px; }
    .baro-age-val { display: none; }
    .baro-age.is-key .baro-age-val { display: block; font-size: 10px; }
    .baro-map-figure { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .baro-dep path { transition: none; } }
@media (forced-colors: active) { .baro-bar-fill, .baro-age-bar, .baro-compare-track span { background: CanvasText; } }
.baro-tip[hidden] { display: none; }
.baro-inset rect { fill: none; stroke: var(--mp-line); stroke-width: 1; }
.baro-inset text { font: 600 11px Inter, system-ui, sans-serif; fill: var(--mp-muted); letter-spacing: .02em; }
.baro-section.baro-dark h2 { color: #fff; }
.baro-section.baro-dark p { color: var(--mp-on-dark-muted); }
.baro-section.baro-dark p strong { color: #fff; }
