/* Page /data : chiffres publics. S'appuie sur les tokens de style.css. */
.data-page {
  --dp-shell: #f3f3f5;
  --dp-line: var(--border);
  --dp-blue-2: #6a6af4;
  --dp-blue-soft: #e3e3fd;
  --dp-grey: #c9c9d6;
}
.dp { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* Titre */
/* Même coque que l'accueil : pleine largeur, en-tête inclus (voir .hero-shell dans style.css). */
.dp-shell { padding-bottom: clamp(28px, 4vw, 48px); }
.dp-hero { width: min(1160px, 100%); margin: 0 auto; padding: clamp(36px, 6vw, 88px) var(--gutter) 0; text-align: center; }
.dp-live { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 16px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.dp-sep { color: var(--muted); font-weight: 400; }
.dp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225, 0, 14, 0.5); animation: dp-blink 1.6s ease-in-out infinite; }
@keyframes dp-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(225, 0, 14, 0.45); } 50% { opacity: 0.35; box-shadow: 0 0 0 7px rgba(225, 0, 14, 0); } }
.dp-hero h1 { font: 400 clamp(46px, 8.6vw, 132px)/0.95 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -0.055em; margin: 0 auto; max-width: 18ch; text-wrap: balance; }
.dp-flag { display: inline-flex; width: 1.25em; height: 0.62em; vertical-align: 0.02em; margin: 0 0.06em; }
.dp-flag i { flex: 1; } .dp-flag i:nth-child(1) { background: #000091; } .dp-flag i:nth-child(2) { background: #fff; } .dp-flag i:nth-child(3) { background: #e1000e; }
.dp-hero-sub { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; margin: 28px auto 0; text-wrap: balance; }
.dp-hero-sub b { color: var(--ink); font-weight: 600; }
.dp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 5vw, 64px); text-align: left; }
.dp-kpi { background: #fff; border-radius: 24px; padding: 18px; display: grid; gap: 4px; color: var(--blue); min-width: 0; }
.dp-kpi-v { font: 400 clamp(30px, 3.2vw, 44px)/1 var(--serif); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 10px; transition: color 0.6s; }
.dp-kpi-v.bump { color: var(--blue); }
.dp-kpi-l { font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .dp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sommaire sur une seule ligne (défilement horizontal si l'écran est trop étroit) */
.dp-toc { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 5px; margin: 26px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
.dp-toc::-webkit-scrollbar { display: none; }
.dp-toc a { flex: none; white-space: nowrap; text-decoration: none; font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--dp-line); background: #fff; color: var(--ink-2); transition: border-color 0.2s, color 0.2s; }
.dp-toc a:hover { border-color: var(--blue); color: var(--blue); }

/* Sections */
.dp-sec { padding-top: clamp(64px, 9vw, 120px); scroll-margin-top: 8px; }
.dp-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.dp-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 14px; font-weight: 500; }
.dp-head h2, .dp-promise h2 { font: 400 clamp(34px, 4.4vw, 58px)/1.02 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.dp-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 60ch; }
.dp-grid { display: grid; gap: 16px; }
.dp-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dp-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dp-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 860px) { .dp-g2, .dp-g3, .dp-wide { grid-template-columns: minmax(0, 1fr); } }
.dp-card { background: #fff; border: 1px solid var(--dp-line); border-radius: 32px; padding: clamp(20px, 2.6vw, 32px); min-width: 0; }
.dp-tint { background: var(--dp-shell); border-color: transparent; }
.dp-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.dp-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.dp-mt { margin-top: 26px !important; }
.dp-big { font: 400 clamp(56px, 7vw, 96px)/0.9 var(--serif); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.dp-label { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.dp-stat { display: grid; gap: 14px; align-content: start; }
.dp-stat .dp-ico { color: var(--blue); }
.dp-stat .dp-big { font-size: clamp(48px, 5vw, 72px); }
.dp-ico { flex: none; }

/* Entonnoir */
.dp-frow { display: grid; grid-template-columns: 190px minmax(0, 1fr) 80px; align-items: center; gap: 14px; padding-block: 10px; }
.dp-frow + .dp-frow { border-top: 1px solid var(--dp-line); }
.dp-frow b { text-align: right; font-variant-numeric: tabular-nums; }
.dp-ftrack { height: 34px; background: var(--dp-shell); border-radius: 999px; overflow: hidden; }
.dp-fbar { height: 100%; border-radius: 999px; background: var(--blue); transition: width 0.9s var(--ease); }
.dp-frow:nth-child(3) .dp-fbar { background: var(--dp-blue-2); }
.dp-frow:nth-child(4) .dp-fbar { background: var(--red); }
@media (max-width: 560px) { .dp-frow { grid-template-columns: minmax(0, 1fr) auto; } .dp-ftrack { grid-column: 1 / -1; grid-row: 2; } }

/* Graphiques */
.dp-svg { width: 100%; height: auto; display: block; overflow: visible; }
.dp-scroll { overflow-x: auto; }
.dp-scroll .dp-svg { min-width: 640px; }
.dp-svg .grid { stroke: var(--dp-line); }
.dp-svg .ax { fill: var(--muted); font: 12px var(--sans); }
.dp-svg .area { fill: var(--dp-blue-soft); }
.dp-svg .line { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linejoin: round; }
.dp-svg .qline { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linejoin: round; }
.dp-svg .dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.dp-svg .note { fill: var(--ink); font: 600 13px var(--sans); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.dp-svg .live { fill: var(--red); }
.dp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.dp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.dp-sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.dp-sw.blue, .dp-sw.s0 { background: var(--blue); } .dp-sw.red, .dp-sw.s2 { background: var(--red); } .dp-sw.grey, .dp-sw.s4 { background: var(--dp-grey); } .dp-sw.s1 { background: var(--dp-blue-2); } .dp-sw.s3 { background: #ff8f97; }

.dp-days { display: flex; gap: 10px; align-items: flex-end; height: 260px; }
.dp-day { flex: 1; display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: 6px; min-width: 0; }
.dp-day-col { display: flex; align-items: flex-end; justify-content: center; }
.dp-day-bar { width: min(64px, 80%); background: var(--blue); border-radius: 14px 14px 6px 6px; min-height: 6px; transition: height 0.9s var(--ease); }
.dp-day.top .dp-day-bar { background: var(--red); }
.dp-day-v { font: 400 clamp(18px, 2vw, 26px)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dp-day-l { font-size: 12px; color: var(--muted); line-height: 1.25; }

.dp-clock { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.dp-clock .cq { fill: var(--red); } .dp-clock .ch { fill: var(--blue); }
.dp-clock .face { fill: var(--dp-shell); }
.dp-clock .big { font: 400 34px var(--serif); fill: var(--ink); letter-spacing: -0.03em; }
.dp-clock .small { font: 12px var(--sans); fill: var(--muted); }
.dp-clock .ax { fill: var(--muted); font: 12px var(--sans); }

/* Pays */
.dp-countries { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dp-countries li { display: grid; grid-template-columns: 28px 130px minmax(0, 1fr) 70px; align-items: center; gap: 12px; padding-block: 6px; }
.dp-cflag { font-size: 20px; line-height: 1; }
.dp-cname { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-cbars { display: grid; gap: 4px; }
.dp-cbar { height: 9px; border-radius: 999px; min-width: 3px; transition: width 0.9s var(--ease); }
.dp-cbar.v { background: var(--blue); } .dp-cbar.q { background: var(--red); }
.dp-cnum { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; display: grid; line-height: 1.15; }
.dp-cnum small { color: var(--red); font-weight: 500; font-size: 13px; }
@media (max-width: 560px) { .dp-countries li { grid-template-columns: 24px minmax(0, 1fr) 58px; } .dp-cbars { grid-column: 2 / -1; grid-row: 2; } }
.dp-waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 300px; margin: 6px 0 18px; }
.dp-waffle i { aspect-ratio: 1; border-radius: 5px; background: var(--dp-blue-soft); }
.dp-waffle i.on { background: var(--blue); }

/* Écrans */
.dp-donut { width: 100%; max-width: 210px; display: block; margin: 0 auto 18px; }
.dp-donut circle { fill: none; stroke-width: 26; }
.dp-ring { width: 120px; height: 120px; flex: none; }
.dp-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.dp-ring .bg { stroke: var(--dp-shell); }
.dp-ringrow { display: flex; align-items: center; gap: 20px; }
.dp-ringrow + .dp-ringrow { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--dp-line); }
.dp-ringtxt { display: grid; gap: 2px; min-width: 0; }
.dp-ringtxt b { font: 400 40px/1 var(--serif); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dp-ringtxt span { color: var(--muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.dp-stack { display: flex; height: 44px; border-radius: 14px; overflow: hidden; gap: 3px; margin-bottom: 14px; }
.dp-stack i.s0 { background: var(--blue); } .dp-stack i.s1 { background: var(--dp-blue-2); } .dp-stack i.s2 { background: var(--red); } .dp-stack i.s3 { background: #ff8f97; } .dp-stack i.s4 { background: var(--dp-grey); }
.dp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dp-bars li { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 64px; align-items: center; gap: 12px; }
.dp-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.dp-mini { height: 10px; background: var(--dp-shell); border-radius: 999px; overflow: hidden; }
.dp-mini i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width 0.9s var(--ease); }
@media (max-width: 480px) { .dp-bars li { grid-template-columns: minmax(0, 1fr) 56px; } .dp-bars .dp-mini { grid-column: 1 / -1; grid-row: 2; } }

/* Partages */
.dp-shares { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dp-share { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo name v" "bar bar bar"; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--dp-line); border-radius: 24px; padding: 16px 18px; }
.dp-logo { grid-area: logo; width: 46px; height: 46px; border-radius: 14px; background: var(--dp-shell); display: grid; place-items: center; flex: none; }
.dp-share .n { grid-area: name; font-weight: 500; min-width: 0; }
.dp-share .v { grid-area: v; font: 400 30px/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dp-share .dp-mini { grid-area: bar; height: 6px; }

/* Robots */
.dp-split { display: flex; height: 56px; border-radius: 16px; overflow: hidden; margin: 8px 0 14px; }
.dp-split .h { background: var(--blue); color: #fff; display: flex; align-items: center; padding-inline: 16px; font-weight: 600; }
.dp-split .r { background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; min-width: 64px; }

/* Ce que nous ne mesurons pas */
.dp-promise { background: var(--blue); color: #fff; border-radius: clamp(32px, 4vw, 64px); padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px); margin-top: clamp(64px, 9vw, 120px); scroll-margin-top: 8px; }
.dp-promise h2 { color: #fff; max-width: 16ch; }
.dp-lead { font-size: clamp(18px, 1.8vw, 22px); color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin: 18px 0 40px; }
.dp-nope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dp-nope li { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 16px 18px; font-weight: 500; }
.dp-nope .dp-ico { opacity: 0.85; }

/* Place pour la barre de question flottante en bas d’écran. */
.data-page .dp-promise { margin-bottom: 40px; }
.dp-error { text-align: center; color: var(--muted); padding: 24px; }
@media (prefers-reduced-motion: reduce) { .dp-dot { animation: none; } }
