.chart-section{background:var(--dark);color:#ffffff;padding-bottom:25px}.breadcrumb{display:flex;gap:13px;padding-top:30px;font-size:11px;color:#98a2b8}.breadcrumb a{color:#c5ccdb}.chart-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;padding-block:31px}.chart-heading .eyebrow{color:#ff6a00;font-size:10px}.chart-heading h1{font-size:clamp(32px,4vw,49px);font-weight:500;letter-spacing:-1.8px;line-height:1.12;margin:17px 0 15px;max-width:750px}.chart-intro{color:#c5ccdb;line-height:1.65;font-size:14px;max-width:680px;margin-bottom:0}.source-badge{flex-shrink:0;padding:12px;border:1px solid #39425a;border-radius:7px;font-size:10px;color:#c5ccdb;max-width:180px;line-height:1.6}.chart-panel{background:#000000;border:1px solid #39425a;border-radius:14px;padding:25px 28px}.chart-panel-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:15px}.chart-panel-top .eyebrow{font-size:10px;color:#c5ccdb}.chart-panel-top p{font-size:11px;color:#98a2b8}.year-display{font-size:54px;letter-spacing:-2px;color:#ff6a00;font-variant-numeric:tabular-nums}.bar-chart{width:100%;height:auto;display:block;overflow:visible}.bar-chart .bar-group{transition:transform .6s ease,opacity .35s ease}.bar-chart .bar-rect{transition:width .6s ease}.bar-chart .bar-label{fill:#ffffff;font-size:12px}.bar-chart .bar-value{fill:#ffffff;font-size:12px;font-variant-numeric:tabular-nums}.bar-chart .bar-rank{fill:#98a2b8;font-size:10px}.chart-controls{border-top:1px solid #39425a;padding-top:23px;margin-top:16px;display:flex;align-items:center;gap:23px}.chart-controls button{border:0;background:var(--green);color:#0f1f3d;border-radius:6px;padding:13px 17px;font-size:12px;min-width:88px}.timeline{flex:1;min-width:60px}.timeline input{width:100%;accent-color:var(--green);cursor:pointer}.timeline-labels{display:flex;justify-content:space-between;font-size:9px;color:#98a2b8;margin-top:5px}.year-select,.speed-select{display:flex;flex-direction:column;gap:7px;font-size:9px;color:#98a2b8}.chart-controls select{background:#151b28;color:#ffffff;border:1px solid #39425a;padding:7px;border-radius:4px;font-size:12px}.chart-note{font-size:10px;color:#98a2b8;margin:18px 0 0;line-height:1.5}.chart-caption{display:flex;justify-content:space-between;gap:15px;font-size:10px;color:#98a2b8;margin-top:18px;line-height:1.6}.reading-section{display:grid;grid-template-columns:1.5fr 1fr;gap:75px;padding-block:65px 75px}.ranking-data .section-heading h2{font-size:30px;letter-spacing:-1px}.table-note{font-size:11px;color:var(--muted);margin:20px 0}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:var(--muted);font-size:10px;font-weight:400;padding:12px 8px;border-bottom:1px solid #e1e6ef}td{padding:13px 8px;border-bottom:1px solid var(--line)}th:last-child,td:last-child{text-align:right;font-variant-numeric:tabular-nums}td:first-child{width:50px;color:#5b6780;font-size:11px}.methodology{border-left:1px solid var(--line);padding-left:36px}.methodology>.eyebrow{font-size:10px;color:#5b6780}.methodology h2{font-size:30px;letter-spacing:-1px;font-weight:500;line-height:1.15;margin-block:22px}.methodology>p:not(.eyebrow){font-size:12px;line-height:1.8;color:var(--muted)}.source-link{display:inline-block;font-size:12px;margin-block:10px 20px;text-decoration:underline;text-underline-offset:5px}.source-note{background:#f4f6fa;padding:18px;border-left:2px solid #ff6a00;font-size:11px;line-height:1.7;color:#5b6780}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:900px){.chart-heading{align-items:start;flex-direction:column;gap:17px}.source-badge{max-width:none}.reading-section{gap:35px;grid-template-columns:1.3fr 1fr}.methodology{padding-left:25px}}
@media(max-width:760px){.chart-heading{padding-block:23px}.chart-heading h1{font-size:35px;letter-spacing:-1px}.chart-intro{font-size:12px}.chart-panel{padding:17px 12px}.year-display{font-size:41px}.chart-panel-top .eyebrow{font-size:9px}.chart-panel-top p{font-size:9px}.chart-controls{gap:12px;flex-wrap:wrap;padding-top:16px}.timeline{min-width:140px}.speed-select,.year-select{flex-direction:row;align-items:center}.chart-caption{flex-direction:column;gap:4px}.reading-section{grid-template-columns:1fr;padding-block:38px;gap:40px}.methodology{border-left:0;border-top:1px solid var(--line);padding:28px 0 0}.ranking-data .section-heading h2{font-size:27px}}

/* Habillage et proportions repris de population-by-country.html. */
.chart-section{border-radius:0 0 32px 32px;padding-bottom:36px}.chart-heading{display:block;text-align:center;padding:76px 16px 80px;background:radial-gradient(#252c3d 1.6px,transparent 1.8px) center/16px 16px;border-bottom:1px solid #39425a}.chart-heading h1{font-size:clamp(32px,5.2vw,66px);max-width:950px;margin:18px auto 24px;line-height:1.2}.title-highlight{background:#ff6a00;color:#0f1f3d;border-radius:999px;padding:0 .3em;box-decoration-break:clone;-webkit-box-decoration-break:clone}.chart-intro{margin:0 auto 25px;font-size:17px}.source-badge{display:inline-block}.chart-panel{border:0;border-radius:0;padding:42px 0 16px}.year-display{font-size:76px;color:#fff;opacity:.3}.bar-chart .bar-label{font-family:"DM Sans",sans-serif;font-weight:700;font-size:14px}.bar-chart .bar-value{font-size:14px}.bar-thumb{clip-path:circle(50%);transition:x .6s ease}.bar-thumb-ring{fill:none;stroke:#fff;stroke-opacity:.75;stroke-width:2;transition:cx .6s ease}.bar-chart{overflow:visible}.chart-controls button{border-radius:999px}.reading-section{grid-template-columns:1fr;gap:48px;max-width:1040px}.methodology{border:1px solid var(--line);border-radius:20px;padding:28px}.methodology h2 br{display:none}table{border-collapse:separate;border-spacing:0 8px;font-size:16px}td{background:#f4f6fa;border:0;padding:12px}td:first-child{border-radius:18px 0 0 18px}td:last-child{border-radius:0 18px 18px 0;font-weight:700;font-size:20px}.entity-cell{display:flex;align-items:center;gap:14px;font-weight:700}.entity-cell img{width:42px;height:30px;object-fit:cover;border-radius:7px;box-shadow:0 0 0 1px #0f1f3d24}.rank-badge{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#0f1f3d;color:white;font-weight:700}tr:first-child .rank-badge{background:#ff6a00;color:#0f1f3d}
@media(max-width:760px){.chart-heading{padding:48px 0}.chart-heading h1{font-size:36px}.chart-intro{font-size:14px}.chart-panel{padding-top:26px}.bar-chart .bar-label,.bar-chart .bar-value{font-size:11px}.year-display{font-size:52px}.entity-cell{gap:8px;font-size:13px}.entity-cell img{width:30px;height:22px}td{padding:9px 6px}td:last-child{font-size:15px}.rank-badge{width:26px;height:26px}.reading-section{padding-block:40px}.methodology{padding:20px}}

.title-highlight{display:inline-block}.bar-value{transition:x .6s ease}

/* Editorial tables and FAQ retained from the original prototype. */
.info { margin-top: 72px; }
.info h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; text-wrap: balance; }
.info table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 16px; font-variant-numeric: tabular-nums; }
.info th { text-align: left; padding: 0 12px; color: var(--ink-muted); font-weight: 400; font-size: 13px; }
.info td { padding: 11px 12px; background: var(--surface); }
.info th:first-child { padding-left: 20px; }
.info td:first-child { width: 66px; padding-left: 20px; border-radius: 18px 0 0 18px; }
.info td:last-child { padding-right: 20px; border-radius: 0 18px 18px 0; color: var(--ink-muted); }
.info :is(th, td):nth-child(3) { text-align: right; padding-right: 32px; white-space: nowrap; }
.info td:nth-child(3) { font-family: var(--display); font-weight: 700; font-size: 20px; }
.rk { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.info tbody tr:first-child .rk { background: var(--accent); color: var(--ink); }
.who { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 17px; }
/* Drapeau du pays ; à défaut de fichier, son code sur une pastille */
.who img, .who .ph { flex: none; width: 42px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(15,31,61,.14); }
.who img { object-fit: cover; }
.who .ph { display: grid; place-items: center; background: #dfe4ee; font-size: 11.5px; letter-spacing: .04em; }
.info td:nth-child(4) { white-space: nowrap; }
.note { margin: 14px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 1.5; max-width: 76ch; }

/* FAQ : une carte par question */
.faq { padding-bottom: 96px; }
.faq > * { max-width: 820px; margin-inline: auto; }
.faq h2 { text-align: center; margin-bottom: 28px; }
.qa { border: 1.5px solid var(--line); border-radius: 20px; padding: 22px 26px; margin-top: 14px; }
.qa h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.qa p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.qa p + p { margin-top: 10px; }
.qa a { color: var(--ink); font-weight: 700; }

@media (max-width: 600px) {
  :root { --rowH: 40px; --barH: 26px; --labelW: 136px; }
  .wrap { padding-inline: 12px; }
  .top { padding-bottom: 32px; border-radius: 0 0 24px 24px; }
  .label, .value { font-size: 11.5px; }
  .ylab.odd { display: none; }
  .ylab.minor:not(.odd) { display: block; }
  .info { margin-top: 48px; }
  .info table { font-size: 13px; border-spacing: 0 6px; }
  .info th { padding: 0 4px; }
  .info td { padding: 8px 4px; }
  .info th:first-child { padding-left: 6px; }
  .info td:first-child { width: 34px; padding-left: 6px; border-radius: 14px 0 0 14px; }
  .info :is(th, td):nth-child(3) { padding-right: 8px; }
  .info td:nth-child(3) { font-size: 14px; }
  .info td:nth-child(4) { overflow-wrap: break-word; padding-right: 8px; border-radius: 0 14px 14px 0; }
  .info :is(th, td):nth-child(5) { display: none; }
  .rk { width: 24px; height: 24px; font-size: 11px; }
  .who { gap: 7px; font-size: 13px; }
  .who img, .who .ph { width: 30px; height: 21px; border-radius: 5px; font-size: 9.5px; }
  .faq { padding-bottom: 64px; }
  .qa { padding: 18px; }
  .qa h3 { font-size: 17px; }
  .qa p { font-size: 15px; }
}

.prototype-details{--surface:#f4f6fa;--ink-muted:#5b6780;--ink-soft:#3a465e;--display:"Quicksand",sans-serif}.prototype-details .info{max-width:1120px}.prototype-details .info table{min-width:560px}.prototype-details .info{overflow-x:auto}.prototype-details td:first-child{font-size:inherit;color:inherit}.prototype-details td:last-child{font-size:inherit;font-weight:400}.prototype-details .faq{margin-top:60px}.prototype-details + .wrap{padding-bottom:45px}
/* Portraits, nationalities and award records from the people prototypes. */
.prototype-details .who img[src*="/thumbnails/"]{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:center top}
.prototype-details .nat{display:flex;align-items:center;gap:10px}.prototype-details .nat img{width:30px;height:21px;object-fit:cover;border-radius:5px;flex:none}
.prototype-details .wins td:first-child,.prototype-details .wins th:first-child{width:auto}.prototype-details .wins :is(th,td):nth-child(2){width:96px;text-align:center}.prototype-details .wins td:nth-child(2){font-family:var(--display);font-size:22px;font-weight:700}.prototype-details .wins td:nth-child(3){white-space:normal}
body[data-page="ballon-dor"] .rk{width:60px;border-radius:999px}
@media(max-width:600px){.prototype-details .who img[src*="/thumbnails/"]{width:28px;height:28px}.prototype-details .nat{gap:5px}.prototype-details .wins :is(th,td):nth-child(2){width:46px}body[data-page="ballon-dor"] .rk{width:42px}}
.prototype-details .info .lead{margin:0 0 18px;max-width:820px;color:var(--ink-soft);font-size:16px;line-height:1.55}.prototype-details .since{display:block;font-weight:400;font-size:12.5px;color:var(--ink-muted)}.prototype-details .west{margin-top:56px}

/* Full-width stage; reading content keeps its readable measure. */
.chart-section > .wrap{width:100%;max-width:none;padding-inline:clamp(12px,3vw,64px)}
.chart-heading{margin-inline:calc(-1 * clamp(12px,3vw,64px));padding-inline:clamp(12px,3vw,64px)}
.chart-panel{width:100%}
#chart-graphic{overflow:hidden;padding-bottom:8px}
/* The timeline engine controls positions and values on every animation frame. */
.bar-chart .bar-group,.bar-chart .bar-rect,.bar-chart .bar-value,.bar-chart .bar-thumb,.bar-chart .bar-thumb-ring{transition:none}
