@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-italic.woff2") format("woff2"); }
:root {
  --ink: #0B1F3A;
  --ink-2: #3F4A5C;
  --muted: #616C7A;
  --line: #E6E9EF;
  --bg: #FFFFFF;
  --bg-2: #F6F7F9;
  --bleu: #123A8F;
  --bleu-2: #0D2C6E;
  --rouge: #C8102E;
  --teal: #0E9F8E;
  --teal-2: #0A7A6D;
  --teal-bg: #E6F6F3;
  --gris-bar: #D3D9E2;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 1080px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .8rem; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 50; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 4.8vw, 3.4rem); letter-spacing: -0.015em; line-height: 1.08; }
.display-sm { font-size: clamp(1.2rem, 2.3vw, 1.65rem); color: var(--ink-2); }
.cta-titre-lg { font-size: clamp(2rem, 4.2vw, 3rem); }
.lede { font-size: 1rem; color: var(--muted); max-width: 44rem; margin-top: 1rem; }
.lede strong { color: var(--ink-2); font-weight: 600; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: inline-flex; flex-direction: column; gap: 4px; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.wordmark-text { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.wordmark-text.small { font-size: 1.15rem; }
.tricolore { display: block; width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--bleu) 0 33.3%, transparent 33.3% 66.6%, var(--rouge) 66.6%); }
.nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; font-weight: 500; }
.nav a { color: var(--ink); padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); text-decoration: none; }
.nav .btn-x { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink) !important; font-weight: 600; font-size: .92rem; padding: .3rem 1rem .3rem .3rem; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.nav .btn-x:hover { text-decoration: none; background: var(--bg-2); border-color: #C9D0DA; }
.x-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #000; }
.x-badge img { width: 16px; height: 16px; display: block; }

/* accueil */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 1rem; }
.cta-block { padding: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); margin: clamp(2rem, 5vw, 3.5rem) auto 2.5rem; }
.cta-titre { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.2rem; }
.cta-sub { color: var(--muted); font-size: .95rem; max-width: 40rem; margin: .5rem 0 1.3rem; }
.btn-primary { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; font-size: 1.05rem;
  padding: .95rem 1.5rem; border-radius: 999px; background: linear-gradient(100deg, var(--bleu) 0%, #4A2C8A 55%, var(--rouge) 100%);
  box-shadow: 0 6px 18px rgba(18, 58, 143, .18); transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(18, 58, 143, .24); }
.btn-primary .arrow { transition: transform .15s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.cta-meta { margin: 1rem 0 0; font-size: .92rem; }
.cta-source { margin: 1.4rem 0 0; font-size: .8rem; }
.edition-tag { margin: 1.6rem 0 -.6rem; font-size: .8rem; color: var(--muted); }
.tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem 2.5rem; margin-top: 1.5rem; }
.top-label { margin: 0 0 .5rem; font-size: .98rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.top-list { list-style: none; padding: 0; margin: 0; }
.top-list li { display: grid; grid-template-columns: 1.4rem 32px 1fr auto; align-items: center; gap: .55rem; padding: .35rem .5rem; margin: 0 -.5rem; border-radius: 8px; font-size: .95rem; }
.top-list li + li { border-top: 0; }
.top-rank { font-weight: 600; color: var(--muted); text-align: center; font-size: .85rem; }
.top-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.podium { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .8rem 2rem; }
.podium li { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; }
.podium .avatar { grid-row: 1 / 3; }
.podium-rank { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.podium-name { font-weight: 600; }
.podium-val { grid-column: 2; font-size: .9rem; color: var(--ink-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.podium .avatar { width: 56px; height: 56px; }
.avatar.sm { width: 32px; height: 32px; }
.avatar.xs { width: 28px; height: 28px; vertical-align: middle; }
.newsletter { padding: 0 0 4rem; }
.newsletter-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.2rem; }
.nl-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu); margin: 0 0 .5rem; }
.nl-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); }
.newsletter-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin-bottom: .4rem; }
.nl-form { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.1rem 0 .6rem; }
.nl-form input { flex: 1 1 280px; font: inherit; font-size: 1.05rem; padding: 1rem 1.2rem; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); background: #fff; }
.nl-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-form input:focus { outline: 3px solid rgba(18,58,143,.25); outline-offset: 1px; border-color: var(--bleu); }
.btn-secondary { font: inherit; font-weight: 600; font-size: 1.02rem; color: #fff; background: var(--ink); border: 2px solid var(--ink); padding: 1rem 1.5rem; border-radius: 12px; cursor: pointer; }
.btn-secondary:hover { background: var(--bleu-2); border-color: var(--bleu-2); }
.btn-secondary[disabled] { opacity: .6; cursor: progress; }
.nl-note { font-size: .78rem; margin: 0; }
.nl-note.ok { color: var(--teal-2); }
.nl-note.err { color: var(--rouge); }

/* pages */
.page, .page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.page-head .lede { margin-bottom: .5rem; }
.lede-source { margin: 0 0 1.4rem; font-size: .82rem; }
.jumps { display: flex; flex-wrap: wrap; gap: .5rem; }
.jumps a { font-size: .85rem; font-weight: 500; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.jumps a:hover { background: var(--bg-2); text-decoration: none; }
.section { padding: 2.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.section-head { margin-bottom: 1.4rem; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.h2-sub { color: var(--muted); font-size: .72em; margin-left: .35rem; }
.section-head p { margin: .35rem 0 0; font-size: .85rem; }
.prose p { max-width: 46rem; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 2rem 0 .6rem; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.8rem 0 .5rem; }
.defs { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; max-width: 52rem; margin: 1rem 0; }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; color: var(--ink-2); }

/* tuiles */
.tiles { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; display: grid; gap: .2rem; background: var(--bg-2); }
.tile-label { font-size: 1.15rem; color: var(--ink); font-weight: 600; line-height: 1.25; margin-bottom: .15rem; }
.tile-note { font-size: .8rem; line-height: 1.35; margin-top: .25rem; }
.tile-value { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.tile-value small { font-size: .55em; font-weight: 500; color: var(--muted); }
.tile-who { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.1rem; margin-top: .3rem; }
.tile-who .avatar { width: 40px; height: 40px; }

/* classement */
.rank-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin: 1.6rem 0 .9rem; }
.seg { display: inline-flex; align-items: center; border: 1px solid #D5DBE5; border-radius: 999px; padding: 3px; background: #fff; }
.seg-label { font-size: .82rem; padding: 0 .6rem 0 .8rem; }
.seg-btn { font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: .45rem .95rem; cursor: pointer; white-space: nowrap; }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-btn[data-sort="res"][aria-pressed="true"] { background: var(--teal-2); }
.seg-btn:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.how { font-size: .82rem; color: var(--muted); max-width: 46rem; }
.rank-ctl .how[open] { flex-basis: 100%; }
.how summary { cursor: pointer; color: var(--bleu); font-weight: 500; list-style: none; display: inline-flex; align-items: center; }
.how summary::-webkit-details-marker { display: none; }
.how summary::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; font-size: .72rem; font-weight: 700; color: var(--ink); margin-right: .4rem; }
.how[open] { flex-basis: 100%; }
.how p { margin: .5rem 0 .4rem; line-height: 1.45; }
.rank-head { display: grid; grid-template-columns: 2.6rem minmax(150px, 200px) 44px 1fr 4.4rem; align-items: end; gap: .9rem; padding: 0 .5rem .45rem; margin: 0 -.5rem; font-size: .74rem; color: var(--muted); }
.rh-bars { grid-column: 4; display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-weight: 500; }
.sw { display: inline-block; width: 13px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: .3rem; }
.sw-pop { background: var(--gris-bar); } .sw-res { background: var(--teal); }
.rh-val { grid-column: 5; justify-self: end; text-align: right; font-weight: 600; font-size: .74rem; color: var(--ink); line-height: 1.2; }
.rh-val-res, .rank-wrap.by-res .rh-val-pot { display: none; }
.rank-wrap.by-res .rh-val-res { display: inline; color: var(--teal-2); }
.ranking { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ranking .row { display: grid; grid-template-columns: 2.6rem minmax(150px, 200px) 44px 1fr 4.4rem; align-items: center; gap: .9rem; padding: .6rem .5rem; margin: 0 -.5rem; border-bottom: 1px solid #F0F2F5; }
.ranking .avatar { width: 44px; height: 44px; }
.r-rank { font-weight: 600; text-align: center; font-size: .95rem; width: 2.2rem; height: 2rem; line-height: 2rem; border-radius: 50%; justify-self: center; }
.r-rank-pot { color: var(--ink); } .r-rank-res { color: var(--teal-2); }
.r-rank.first { color: #fff; width: 2rem; }
.r-rank-pot.first { background: var(--ink); } .r-rank-res.first { background: var(--teal-2); }
.rank-wrap:not(.by-res) .r-rank-res, .rank-wrap:not(.by-res) .r-val-res { display: none; }
.rank-wrap.by-res .r-rank-pot, .rank-wrap.by-res .r-val-pot { display: none; }
.r-name { font-weight: 500; text-align: right; line-height: 1.2; min-width: 0; font-size: 1.02rem; }
.r-bars { display: flex; height: 24px; align-items: stretch; }
.bar-pop, .bar-res { position: relative; display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.bar-pop { background: var(--gris-bar); border-radius: 4px 0 0 4px; }
.bar-res { background: var(--teal); border-radius: 0 4px 4px 0; margin-left: 2px; justify-content: center; min-width: 2.3rem; }
.bar-txt { font-size: .76rem; font-weight: 600; padding: 0 .45rem; white-space: nowrap; }
.bar-pop .bar-txt { color: var(--ink); }
.bar-res .bar-txt { color: #fff; }
.r-val { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; font-size: 1.05rem; display: grid; justify-items: end; line-height: 1.15; }
.r-val small { font-size: .7em; font-weight: 500; color: var(--muted); }
.r-val-res { color: var(--teal-2); }
.delta { font-size: .68rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.dl-line { margin: .8rem 0 0; }
.plus { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.plus > summary { cursor: pointer; font-weight: 500; color: var(--bleu); list-style: none; display: inline-flex; align-items: center; gap: .5rem; }
.plus > summary::-webkit-details-marker { display: none; }
.plus > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-weight: 600; color: var(--ink); }
.plus[open] > summary::before { content: "–"; }
.methode { border-top: 0; margin-top: 0; padding-top: 0; }
.methode > summary h2 { display: inline; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); margin: 0; }
.methode-body { margin-top: 1.2rem; }
.methode-body h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .5rem; }

/* courbe */
.metric { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.metric label { font-size: .88rem; font-weight: 500; padding: .38rem .8rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.metric label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.metric input { position: absolute; opacity: 0; width: 0; height: 0; }
.metric label:has(input:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 2px; }
.metric { margin-bottom: .9rem; }
.chips-label { margin: 1.2rem 0 .5rem; font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: inherit; font-size: .84rem; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem .25rem .3rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; }
.chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.chip[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--c); }
.chip[disabled] { opacity: .45; cursor: not-allowed; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; font-family: var(--sans); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); }
.chart .series path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series circle { stroke: #fff; stroke-width: 2; }
.chart .endlabel { font-weight: 600; fill: var(--ink); }
.chart .crosshair { stroke: var(--ink-2); stroke-width: 1; opacity: 0; }
.chart .hit { fill: transparent; }
.tooltip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .75rem; box-shadow: 0 8px 24px rgba(11,31,58,.12); font-size: .84rem; min-width: 160px; z-index: 5; }
.tooltip b { display: block; margin-bottom: .25rem; }
.tooltip .tt-row { display: flex; justify-content: space-between; gap: .8rem; }
.tooltip .tt-row i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.chart-legend { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .86rem; color: var(--ink-2); }
.chart-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: .4rem; }
.table-view { margin-top: 1rem; }
.table-view summary { cursor: pointer; font-weight: 500; color: var(--bleu); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; margin-top: .6rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 600; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-name { white-space: nowrap; }

/* historique */
.editions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.js .edition-more { display: none; }
.js .editions.open .edition-more { display: grid; }
html:not(.js) #voir-editions { display: none; }
.edition { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; display: grid; gap: .4rem; align-content: start; background: var(--bg-2); }
.edition-last { border-color: var(--bleu); box-shadow: 0 0 0 1px var(--bleu) inset; }
.edition-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.edition .top-label { font-size: .72rem; margin: .1rem 0 .2rem; color: var(--muted); }
.edition h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.badge { font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu); border: 1px solid var(--bleu); border-radius: 999px; padding: .1rem .45rem; flex-shrink: 0; }
.mini-podium { list-style: none; padding: 0; margin: .3rem 0; display: grid; gap: .35rem; }
.mini-podium li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .5rem; font-size: .9rem; }
.btn-ghost { font: inherit; font-weight: 500; color: var(--bleu); background: #fff; border: 1px solid #D5DBE5; border-radius: 999px; padding: .55rem 1rem; cursor: pointer; }
.btn-ghost:hover { background: #fff; border-color: var(--bleu); }
.btn-sm { font-size: .85rem; padding: .45rem .9rem; margin-top: .6rem; }
.mini-podium b { font-weight: 600; }
.edition-links { margin: .2rem 0 0; font-size: .85rem; }
.edition .small { font-size: .78rem; }

/* crédits */
.credits td, .credits th { font-size: .9rem; }
.credits td:nth-child(3), .credits td:nth-child(4) { white-space: nowrap; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.2rem 0 1.6rem; background: var(--bg-2); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem; }
.footer-brand p { margin: .3rem 0 0; font-size: .9rem; max-width: 26rem; }
.footer-links { display: grid; gap: .4rem; font-size: .92rem; }
.footer-links a { color: var(--ink); }
.footer-note { margin-top: 1.6rem; font-size: .8rem; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 2rem 0 1.25rem; }
  .cta-block { margin-top: .5rem; }
  .header-row { height: 58px; }
  .nav { gap: 1rem; font-size: .88rem; }
  .nav .btn-x { padding: 0; border: 0; background: none; }
  .btn-x .x-handle { display: none; }
  .x-badge { width: 34px; height: 34px; border-radius: 9px; }
  .x-badge img { width: 18px; height: 18px; }
  .cta-block, .newsletter-card { padding: 1.4rem 1.2rem; }
  .rank-ctl { margin-top: 1.2rem; justify-content: space-between; gap: .5rem .8rem; }
  .seg-btn { padding: .4rem .8rem; font-size: .84rem; }
  .rank-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem .8rem; padding: 0 0 .45rem; margin: 0; }
  .rh-bars { gap: .2rem .8rem; }
  .ranking .row { grid-template-columns: 2rem 36px minmax(0, 1fr) 4rem; grid-template-rows: auto auto; row-gap: .35rem; gap: .5rem; padding: .55rem 0; margin: 0; }
  .ranking .avatar { width: 36px; height: 36px; grid-column: 2; grid-row: 1; }
  .r-rank { width: 2rem; height: 1.8rem; line-height: 1.8rem; font-size: .9rem; grid-column: 1; grid-row: 1; }
  .r-name { grid-column: 3; grid-row: 1; text-align: left; font-size: 1rem; }
  .r-val { grid-column: 4; grid-row: 1; }
  .r-bars { grid-column: 2 / 5; grid-row: 2; height: 20px; }
    .defs { grid-template-columns: 1fr; gap: .15rem; }
  .defs dd { margin-bottom: .7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn-primary, .btn-primary .arrow { transition: none; } }

/* fenêtre classement complet */
.modal { border: 0; border-radius: 14px; padding: 0; width: min(1000px, calc(100% - 2rem)); max-height: min(90vh, 1200px); box-shadow: 0 30px 80px rgba(11,31,58,.25); color: var(--ink); }
.modal::backdrop { background: rgba(11,31,58,.45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem .4rem; position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.modal-close { font: inherit; font-size: 1.6rem; line-height: 1; background: none; border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; color: var(--ink); }
.modal-close:hover { background: var(--bg-2); }
.modal-src { padding: 0 1.4rem; margin: 0 0 .6rem; }
.modal .rank-ctl, .modal .rank-wrap { margin-inline: 1.4rem; }
.modal .rank-head { margin-inline: 0; }
.modal .ranking .row { margin: 0; padding-inline: 0; }
.modal .rank-head { padding-inline: 0; }
.modal-foot { padding: 1rem 1.4rem 1.2rem; margin: 0; }
@media (max-width: 720px) {
  .modal { width: calc(100% - 1rem); max-height: 92vh; }
  .modal-head, .modal-src, .modal-foot { padding-inline: 1rem; }
  .modal .rank-ctl, .modal .rank-wrap { margin-inline: 1rem; }
}
