/* Le Relevé — feuille de style unique */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  color-scheme: light;
  --paper: #f2f4f6;
  --surface: #ffffff;
  --ink: #1b2a41;
  --ink-2: #4b5a6d;
  --muted: #6f7c8b;
  --rule: #d6dde4;
  --rule-soft: #e6ebef;
  --fact: #1d4fc4;
  --fact-wash: rgba(29, 79, 196, .09);
  --series: #2a78d6;
  --series-wash: rgba(42, 120, 214, .10);
  --down: #d23f3e;
  --ok: #0f7a3a;
  --radius: 8px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1620; --surface: #16202c; --ink: #e6ecf2; --ink-2: #a9b6c4; --muted: #8592a1;
    --rule: #2a3747; --rule-soft: #212d3b; --fact: #86a9ff; --fact-wash: rgba(134, 169, 255, .12);
    --series: #3987e5; --series-wash: rgba(57, 135, 229, .14); --down: #e66767; --ok: #3cc46e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1620; --surface: #16202c; --ink: #e6ecf2; --ink-2: #a9b6c4; --muted: #8592a1;
  --rule: #2a3747; --rule-soft: #212d3b; --fact: #86a9ff; --fact-wash: rgba(134, 169, 255, .12);
  --series: #3987e5; --series-wash: rgba(57, 135, 229, .14); --down: #e66767; --ok: #3cc46e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); font-feature-settings: "kern"; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fact); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.028em; }
h2 { font-size: 1.45rem; font-weight: 750; }
p { margin: 0 0 1em; }

/* ---------- en-tête et pied ---------- */
.site-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem;
  max-width: 1160px; margin: 0 auto; padding: 1.1rem 16px; border-bottom: 1px solid var(--rule); }
.wordmark { font-weight: 850; font-size: 1.35rem; letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: baseline; gap: .45rem; }
.mark { display: inline-block; width: 15px; height: 14px; align-self: center;
  background: linear-gradient(to top, var(--fact) 45%, transparent 45%) 0 0 / 4px 100% no-repeat,
              linear-gradient(to top, var(--fact) 100%, transparent 0) 5.5px 0 / 4px 100% no-repeat,
              linear-gradient(to top, var(--fact) 70%, transparent 70%) 11px 0 / 4px 100% no-repeat; }
.site-head nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
.site-head nav a { text-decoration: none; color: var(--ink-2); padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); border-bottom-color: var(--fact); }
main { max-width: 1160px; margin: 0 auto; padding: 2rem 16px 3rem; }
.site-foot { max-width: 1160px; margin: 0 auto; padding: 1.5rem 16px 3rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .9rem; }
.site-foot p { max-width: 70ch; margin-bottom: .5em; }

.narrow { max-width: 720px; margin: 0 auto; }
.wide { max-width: 1060px; margin: 0 auto; }
.lede, .stamp, .note { color: var(--ink-2); }
.note { font-size: .9rem; margin-top: 1rem; max-width: 80ch; }

/* ---------- accueil ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 2.5rem 3rem; align-items: start; }
.intro { grid-column: 1 / -1; max-width: 820px; }
.intro h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin-bottom: .35em; }
.intro p { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.feed { grid-column: 1; grid-row: 2; }
.pulse { grid-column: 2; grid-row: 2; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.1rem .9rem; position: sticky; top: 1rem; }
.pulse h2 { font-size: 1.05rem; margin-bottom: .2rem; }
.pulse .stamp { font-size: .82rem; margin-bottom: .6rem; }
.pulse ol { list-style: none; margin: 0 0 .7rem; padding: 0; }
.pulse li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .5rem; padding: .55rem 0; border-top: 1px solid var(--rule-soft); align-items: baseline; }
.p-rank { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.p-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-val { font-weight: 750; font-variant-numeric: tabular-nums; }
.pulse .spark { grid-column: 2 / 4; width: 100%; height: 24px; margin-top: .2rem; }
.more { font-weight: 600; color: var(--fact); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.card { border-top: 1px solid var(--rule); padding: 1.1rem 0 1.4rem; }
.card a { text-decoration: none; display: block; }
.card h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.card a:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card p { color: var(--ink-2); margin-bottom: .6rem; font-size: .98rem; }
.card .meta { font-size: .85rem; color: var(--muted); }
.card.lead { grid-column: 1 / -1; border-top: 3px solid var(--ink); padding-top: 1.2rem; }
.card.lead h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; }
.card.lead p { font-size: 1.12rem; max-width: 60ch; }
.narrow .cards { grid-template-columns: 1fr; }
.empty { border-top: 3px solid var(--ink); padding-top: 1.2rem; max-width: 60ch; }
.empty p { color: var(--ink-2); }

/* ---------- article ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article-head { margin-bottom: 2rem; }
.chapo { font-size: 1.25rem; line-height: 1.5; color: var(--ink); font-weight: 450; }
.dateline { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: .7rem; }
.prose { font-size: 1.125rem; line-height: 1.65; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--ink-2); }
a.fait { color: var(--fact); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--fact) 45%, transparent); border-radius: 3px; white-space: nowrap; }
a.fait:hover, a.fait:focus-visible, a.fait.on { background: var(--fact-wash); text-decoration-color: var(--fact); }
.fact-pop { position: absolute; z-index: 20; max-width: 300px; background: var(--ink); color: var(--paper); font-size: .84rem; line-height: 1.4;
  padding: .55rem .7rem; border-radius: 6px; box-shadow: 0 6px 24px rgba(15, 22, 32, .25); pointer-events: none; }
.fact-pop b { display: block; font-weight: 650; margin-bottom: .15rem; }
.fact-pop span { opacity: .8; }

.provenance { margin-top: 3rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.25rem .5rem; font-size: .95rem; }
.provenance h2 { font-size: 1.1rem; }
.checked { font-weight: 600; display: flex; gap: .6rem; align-items: flex-start; }
.check { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ok); position: relative; margin-top: .1rem; }
.check::after { content: ""; position: absolute; left: .42rem; top: .22rem; width: .32rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.files { padding-left: 1.2rem; font-size: .88rem; word-break: break-all; }

/* ---------- graphiques ---------- */
.chart { margin: 2rem 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem .8rem; font-size: .9rem; }
.chart figcaption { margin-bottom: .9rem; }
.chart-title { display: block; font-weight: 750; font-size: 1.02rem; line-height: 1.3; }
.chart-note { display: block; color: var(--ink-2); margin-top: .2rem; }
.chart-foot { color: var(--muted); font-size: .8rem; margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.chart-foot a { color: var(--fact); }
.chart-table summary { cursor: pointer; color: var(--ink-2); font-size: .82rem; margin-top: .4rem; }
.chart-table table { margin-top: .5rem; }
.bars, .diverging { list-style: none; margin: 0; padding: 0; }
.bar-row, .div-row { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: .75rem; align-items: center; min-height: 30px; padding: 1px 0; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-align: right; }
.bar-track { position: relative; display: flex; align-items: center; height: 22px; }
.bar-track .bar { display: block; height: 18px; background: var(--series); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-track .bar-value { margin-left: .45rem; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bar-row:hover .bar, .div-row:hover .bar { filter: brightness(1.12); }
.div-track { position: relative; height: 22px; }
.div-track::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1px solid var(--muted); }
.div-track .bar { position: absolute; top: 2px; height: 18px; }
.div-row.pos .bar { left: calc(50% + 1px); background: var(--series); border-radius: 0 4px 4px 0; }
.div-row.neg .bar { right: calc(50% + 1px); background: var(--down); border-radius: 4px 0 0 4px; }
.div-track .bar-value { position: absolute; top: 0; line-height: 22px; font-size: .85rem; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.div-row.pos .bar-value { left: calc(50% + var(--w) + .4rem); }
.div-row.neg .bar-value { right: calc(50% + var(--w) + .4rem); }
.line-plot { position: relative; margin: 1rem 4.2rem 1.8rem 2.6rem; }
.line-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.line-plot .stroke { fill: none; stroke: var(--series); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.line-plot .area { fill: var(--series-wash); stroke: none; }
.ytick { position: absolute; left: 0; right: 0; border-top: 1px solid var(--rule-soft); }
.ytick span { position: absolute; right: calc(100% + .45rem); top: -.6em; line-height: 1.2; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ytick[style^="bottom:0.00%"] { border-top-color: var(--rule); }
.xtick { position: absolute; bottom: -6px; height: 6px; border-left: 1px solid var(--rule); }
.xtick span { position: absolute; top: 8px; left: 0; transform: translateX(-50%); color: var(--muted); font-size: .75rem; white-space: nowrap; }
.end-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--series); box-shadow: 0 0 0 2px var(--surface); }
.end-label { position: absolute; left: calc(100% + .6rem); transform: translateY(-50%); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crosshair { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--ink-2); pointer-events: none; }
.crosshair .tip, .chart-tip { position: absolute; top: -.4rem; transform: translate(-50%, -100%); background: var(--ink); color: var(--paper); font-size: .8rem; padding: .3rem .5rem; border-radius: 5px; white-space: nowrap; }
.chart-tip { position: fixed; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; z-index: 20; }

/* ---------- tableaux ---------- */
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
th { font-weight: 650; color: var(--ink-2); font-size: .85rem; border-bottom-color: var(--rule); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; margin-top: 1.5rem; }
.live td.rank { color: var(--muted); width: 3rem; }
.live td.game a { font-weight: 650; text-decoration: none; }
.live td.game a:hover { text-decoration: underline; }
.live .sub { display: block; font-size: .8rem; color: var(--muted); }
.live tbody tr:hover { background: var(--fact-wash); }
.spark-cell { width: 140px; }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--series); stroke-width: 1.5px; stroke-linejoin: round; }
th[data-sort] button { all: unset; cursor: pointer; }
th[data-sort] button:focus-visible { outline: 2px solid var(--fact); }
th[aria-sort="descending"] button::after { content: " ↓"; }
th[aria-sort="ascending"] button::after { content: " ↑"; }

.page h1 { margin-bottom: 1rem; }
.page h2 { margin-top: 2rem; font-size: 1.3rem; }

@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; }
  .pulse { grid-column: 1; grid-row: 2; position: static; }
  .feed { grid-row: 3; }
}
@media (max-width: 800px) { .hide-m { display: none; } }
@media (max-width: 560px) {
  .hide-s { display: none; }
  .cards { grid-template-columns: 1fr; }
  .bar-row, .div-row { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .bar-label { text-align: left; font-size: .85rem; }
  .line-plot { margin-right: 3.6rem; }
  .chart { padding: .9rem .8rem .7rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .site-head nav, .chart-table, .skip { display: none; } a.fait { color: inherit; } }
/* groupes de chiffres plus lisibles (l’espace de la police est étroite) */
a.fait, .num, .bar-value, .p-val, .end-label, .chart-tip, .crosshair .tip, .ytick span { word-spacing: .12em; }

/* ---------- à la une ---------- */
.une { display: flex; flex-wrap: wrap; gap: .25rem .8rem; align-items: baseline; text-decoration: none; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 2rem; grid-column: 1 / -1; }
.une-label { font-size: .82rem; font-weight: 650; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.une-title { font-weight: 700; font-size: 1.05rem; }
.une:hover .une-title { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- mouvements du classement ---------- */
.mv { display: block; font-size: .72rem; font-weight: 650; line-height: 1.1; }
.mv.up, .var.up { color: var(--ok); }
.mv.down, .var.down { color: var(--down); }
.mv.new { color: var(--fact); }
.var { display: block; font-size: .78rem; font-weight: 600; font-variant-numeric: normal; }
.var.flat { color: var(--muted); }
.live td.game a { color: inherit; }

/* ---------- page jeu ---------- */
.crumbs { font-size: .88rem; margin-bottom: .4rem; }
.crumbs a { color: var(--fact); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.stat { background: var(--surface); padding: .8rem .9rem; display: flex; flex-direction: column; gap: .15rem; }
.stat-label { font-size: .82rem; color: var(--ink-2); }
.stat-value { font-size: 1.5rem; font-weight: 750; word-spacing: .12em; }
.stat-value small { font-size: .6em; vertical-align: super; }
.stat-note { font-size: .78rem; color: var(--muted); }
.game-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; margin-top: 1.5rem; }
.game-meta dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.game-meta dt { color: var(--ink-2); }
.game-meta dd { margin: 0; font-weight: 600; }
.game-links { display: flex; flex-direction: column; gap: .5rem; }
.btn { display: inline-block; text-align: center; padding: .55rem .9rem; border-radius: 6px; background: var(--fact); color: #fff; font-weight: 650; text-decoration: none; font-size: .92rem; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--fact); border: 1px solid var(--rule); }

/* ---------- comparateur ---------- */
.compare-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 0; }
.compare-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 650; font-size: .9rem; }
.compare-form select { font: inherit; font-weight: 400; padding: .55rem .6rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); }
.legend { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: .4rem; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.cmp-plot { position: relative; height: 300px; margin: 1rem 0 1.8rem 2.6rem; }
.cmp-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cmp-plot path { fill: none; stroke-width: 2px; stroke-linejoin: round; }
.s1 { stroke: var(--series); background: var(--series); }
.s2 { stroke: #eb6834; background: #eb6834; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s2 { stroke: #d95926; background: #d95926; } }

/* ---------- alertes ---------- */
.alerts { list-style: none; padding: 0; margin: 1.5rem 0; }
.alert-item { border-top: 1px solid var(--rule); padding: .9rem 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; }
.alert-item p { grid-column: 1 / -1; margin: 0; }
.alert-item a { font-weight: 700; color: var(--fact); }
.al-kind { font-weight: 700; font-size: .85rem; color: var(--ok); }
.alert-item.entree_top10 .al-kind { color: var(--fact); }
.alert-item time { font-size: .85rem; color: var(--muted); }
.empty-note { color: var(--ink-2); border-top: 3px solid var(--ink); padding-top: 1rem; }
code { font-size: .85em; word-break: break-all; }

@media (max-width: 640px) {
  .game-meta, .compare-form { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.25rem; }
}

.cmp-x { display: flex; justify-content: space-between; margin: -1.4rem 0 1rem 2.6rem; font-size: .75rem; color: var(--muted); }
.compare-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.compare-form select { width: 100%; min-width: 0; }
.compare-form label { min-width: 0; }
a.p-name { text-decoration: none; color: inherit; }
a.p-name:hover { text-decoration: underline; }
@media (max-width: 640px) { .compare-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- vague 1 bis : icônes, pilules, lignes cliquables ---------- */
:root { --up-ink: #047857; --up-bg: #d1fae5; --down-ink: #b91c1c; --down-bg: #fee2e2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --up-ink: #10b981; --up-bg: rgba(16,185,129,.16); --down-ink: #ef4444; --down-bg: rgba(239,68,68,.16); } }
:root[data-theme="dark"] { --up-ink: #10b981; --up-bg: rgba(16,185,129,.16); --down-ink: #ef4444; --down-bg: rgba(239,68,68,.16); }
.pill { display: inline-block; margin-top: .2rem; padding: .08rem .45rem; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.5;
  font-variant-numeric: normal; word-spacing: .08em; white-space: nowrap; }
.pill.up { color: var(--up-ink); background: var(--up-bg); }
.pill.down { color: var(--down-ink); background: var(--down-bg); }
.pill.flat { color: var(--muted); background: var(--rule-soft); }
.live td.num .pill { display: block; width: max-content; margin-left: auto; }
.mv.up { color: var(--up-ink); } .mv.down { color: var(--down-ink); }
.gcell { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.gicon { flex: none; border-radius: 8px; background: var(--rule-soft); object-fit: cover; }
.gicon.big { border-radius: 14px; }
.live tbody tr[data-href] { cursor: pointer; transition: background-color .12s; }
.live tbody tr[data-href]:hover { background: var(--fact-wash); }
.live tbody tr[data-href]:hover td.game a { text-decoration: underline; }
.game-title { display: flex; align-items: center; gap: 1rem; }
.game-title h1 { margin: 0; }

/* pouls de l'accueil */
.pulse li { grid-template-columns: 1.6rem minmax(0, 1fr) auto; }
.p-id { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.p-id .p-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-val { text-align: right; }
.p-val .pill { display: block; margin-left: auto; width: max-content; }
.pulse .mv { font-size: .68rem; }

/* en-tête : bouton alertes */
.site-head nav a.bell { color: var(--fact); font-weight: 650; border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .7rem; }
.site-head nav a.bell:hover { border-color: var(--fact); background: var(--fact-wash); }

/* état vide : squelette */
.empty-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.skel-list { margin-top: 1.5rem; }
.card.skel { display: flex; flex-direction: column; gap: .55rem; }
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--rule-soft), var(--rule), var(--rule-soft)); background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite; }
.sk-t { height: 1.3rem; width: 85%; } .sk-t.short { width: 55%; } .sk-p { height: .8rem; width: 100%; } .sk-m { height: .7rem; width: 35%; margin-top: .3rem; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* comparateur : partage et couleurs liées */
.cmp-stats .stat { border-left: 4px solid transparent; }
.cmp-stats .stat.c1 { border-left-color: var(--series); }
.cmp-stats .stat.c2 { border-left-color: #eb6834; }
.share-row { margin-top: 1.2rem; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
button.btn.ghost { border: 1px solid var(--rule); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); background: var(--ink); color: var(--paper); padding: .6rem 1rem;
  border-radius: 8px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* alertes et widget */
.follow { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.follow h2 { font-size: 1.15rem; }
pre.embed { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: .8rem; white-space: pre-wrap; word-break: break-all; font-size: .82rem; }
@media (max-width: 560px) { .gicon { width: 30px; height: 30px; } .site-head nav a.bell { order: -1; } }
@media (max-width: 560px) {
  .site-head nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 1rem; padding-bottom: .2rem; scrollbar-width: none; }
  .site-head nav a { white-space: nowrap; }
  .site-head nav a.bell { order: 0; }
}
.prose a.jeu { color: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.prose a.jeu:hover { text-decoration-color: var(--fact); }

/* =====================================================================
   THÈME « TERMINAL » : média financier premium, sombre uniquement
   ===================================================================== */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0e14; --surface: #151d2a; --surface-2: #1e293b; --surface-3: #334155;
  --ink: #f8fafc; --ink-2: #cbd5e1; --muted: #94a3b8; --rule: #222f43; --rule-soft: #1a2436;
  --fact: #60a5fa; --fact-wash: rgba(59, 130, 246, .12);
  --series: #3b82f6; --series-wash: rgba(59, 130, 246, .14); --series-2: #f97316;
  --ok: #10b981; --down: #ef4444;
  --up-ink: #10b981; --up-bg: rgba(16, 185, 129, .15); --down-ink: #ef4444; --down-bg: rgba(239, 68, 68, .15);
  --radius: 12px;
}
body { background: var(--paper); color: var(--ink); }
h1, h2, h3 { color: var(--ink); }

/* en-tête collant */
.site-head { position: sticky; top: 0; z-index: 50; max-width: none; margin: 0; padding: .85rem max(16px, calc((100vw - 1160px) / 2 + 16px));
  background: rgba(11, 14, 20, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); align-items: center; }
.wordmark { color: var(--ink); }
.site-head nav { align-items: center; }
.site-head nav a { color: var(--muted); }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); border-bottom-color: var(--series); }
.site-head nav a.bell { display: inline-flex; align-items: center; gap: 8px; background: #1e293b; color: #f8fafc; border: 0; border-radius: 8px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; transition: background .2s ease; }
.site-head nav a.bell:hover { background: #334155; border: 0; }

/* bandeau défilant */
.ticker { border-bottom: 1px solid var(--rule); background: #0e131c; overflow: hidden; font-size: .86rem; }
.tk-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.tk-row { display: flex; gap: 2.2rem; padding: .55rem 1.1rem; white-space: nowrap; }
.tk-item { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); text-decoration: none; }
.tk-item b { color: var(--ink); font-variant-numeric: tabular-nums; word-spacing: .12em; }
.tk-item:hover { color: var(--ink); }
.tk-item .pill { margin: 0; }
.tk-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #60a5fa; background: rgba(59, 130, 246, .1);
  padding: 2px 6px; border-radius: 4px; }
.tk-alert .tk-label { color: #10b981; background: rgba(16, 185, 129, .15); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .ticker { overflow-x: auto; } }

/* accueil : 2/3 + 1/3 */
.home { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.main-col { min-width: 0; }
.side-col { min-width: 0; position: sticky; top: 5.5rem; }
.intro { margin-bottom: 1.5rem; }
.intro h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3rem; }
.intro p { font-size: 1rem; color: var(--muted); max-width: 70ch; }
.feed { grid-row: auto; grid-column: auto; }
.pulse { position: static; grid-column: auto; grid-row: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.pulse li { border-top-color: var(--rule); }
.hero-card { background: #151d2a; border: 1px solid #222f43; border-radius: 12px; padding: 24px; margin-bottom: 1rem; transition: border-color .2s ease; }
.hero-card:hover { border-color: #334155; }
.hero-card a { text-decoration: none; color: inherit; display: block; }
.hero-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: .6rem 0 .5rem; }
.hero-card p { color: var(--ink-2); font-size: 1.05rem; max-width: 65ch; margin-bottom: .6rem; }
.hero-card:hover h2 { color: #93c5fd; }
.cover { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 1.1rem; background: #0e131c; position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.gen { background: radial-gradient(120% 90% at 85% 0%, rgba(59, 130, 246, .35), transparent 60%),
  radial-gradient(90% 80% at 0% 100%, rgba(249, 115, 22, .18), transparent 60%), #0e131c; display: flex; align-items: center; justify-content: center; }
.cover-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
  linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px); background-size: 32px 32px; }
.cover-icons { position: relative; display: flex; gap: 14px; }
.cover-icons img { width: clamp(52px, 11vw, 96px); height: clamp(52px, 11vw, 96px); border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .08); }
.cover-icons img:nth-child(even) { transform: translateY(14px); }
.cover-mark { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem; color: rgba(248, 250, 252, .8); }
.cover-mark .mark { background-color: transparent; }
.tag { display: inline-block; background: rgba(59, 130, 246, .1); color: #60a5fa; text-transform: uppercase; letter-spacing: .5px; font-size: .7rem;
  font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.cards.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cards.grid2 .card, .cards.list .card { background: #151d2a; border: 1px solid #222f43; border-radius: 8px; padding: 16px; transition: border-color .2s ease, background .2s ease; }
.cards.grid2 .card:hover, .cards.list .card:hover { border-color: #334155; background: #182235; }
.cards .card h3 { font-size: 1.08rem; line-height: 1.25; margin: .55rem 0 .4rem; color: var(--ink); }
.cards .card p { font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards .meta, .hero-card .meta { font-size: .8rem; color: var(--muted); }
.cards.list { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.sec-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 2rem 0 .8rem; }
.card { border-top: 0; }
.empty { border-top: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; }

/* tableau */
.table-wrap { background: var(--surface); border-color: var(--rule); border-radius: 12px; }
.live thead th { background: #1e293b; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; border-bottom: 1px solid var(--rule); }
.live tbody tr { transition: background .2s ease; }
.live tbody tr:hover, .live tbody tr[data-href]:hover { background: #1e293b; }
th, td { border-bottom-color: var(--rule); }
.gicon { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #1e293b; }
.pill { border-radius: 6px; padding: 2px 8px; font-weight: 600; font-size: 13px; }
.spark polyline { stroke-width: 2px; }
.spark { color: #3b82f6; }
.spark.down { color: #ef4444; }
.spark polyline { stroke: currentColor; }

/* graphiques et boutons */
.chart, .provenance, .stat, .follow, pre.embed, .compare-form select { background: var(--surface); border-color: var(--rule); }
.stats { background: var(--rule); border-color: var(--rule); }
.btn { background: #3b82f6; }
.btn:hover { background: #2563eb; filter: none; }
.btn.ghost { background: transparent; color: #93c5fd; border-color: var(--rule); }
.btn.share { display: inline-flex; align-items: center; gap: 8px; background: #3b82f6; color: #fff; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.btn.share:hover { background: #2563eb; }
.cmp-stats .stat { border-left: 0; border-top: 4px solid transparent; }
.cmp-stats .stat.c1 { border-top-color: #3b82f6; }
.cmp-stats .stat.c2 { border-top-color: #f97316; }
.s1 { stroke: #3b82f6; background: #3b82f6; }
.s2 { stroke: #f97316; background: #f97316; }
.div-row.pos .bar { background: #10b981; }
.div-row.neg .bar { background: #ef4444; }
.une { display: none; }
.check { background: #10b981; }
.fact-pop { background: #1e293b; color: var(--ink); border: 1px solid #334155; }
.chart-tip, .crosshair .tip { background: #1e293b; color: var(--ink); }
.toast { background: #1e293b; color: var(--ink); border: 1px solid #334155; }

/* alertes : détection active */
.scan { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.scan-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 2s infinite; }
.scan-title { margin: 0; font-weight: 700; }
.scan-text { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.scan-bars { margin-left: auto; display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.scan-bars i { width: 4px; background: rgba(59, 130, 246, .5); border-radius: 2px; animation: eq 1.6s ease-in-out infinite; }
.scan-bars i:nth-child(3n) { animation-delay: -.4s; } .scan-bars i:nth-child(3n+1) { animation-delay: -.9s; } .scan-bars i:nth-child(4n) { animation-delay: -1.2s; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 26px; } }
@media (prefers-reduced-motion: reduce) { .scan-dot, .scan-bars i { animation: none; } .scan-bars i { height: 14px; } }

@media (max-width: 900px) {
  .home { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
}
@media (max-width: 640px) {
  .cards.grid2 { grid-template-columns: 1fr; }
  .hero-card { padding: 16px; }
  .scan-bars { display: none; }
}
button.btn { font-size: .92rem; padding: .55rem .9rem; } button.btn.share { font-size: 14px; padding: 10px 20px; }

/* ---------- niveau supérieur ---------- */
.cta-top { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; padding: .65rem 1rem; border-radius: 8px;
  background: rgba(59, 130, 246, .12); color: #93c5fd; font-weight: 700; text-decoration: none; transition: background .2s ease; }
.cta-top:hover { background: rgba(59, 130, 246, .22); color: #fff; }
.cta-top span { transition: transform .2s ease; }
.cta-top:hover span { transform: translateX(3px); }
.byline { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.byline .rt { display: inline-flex; align-items: center; gap: .3rem; background: #1e293b; color: #cbd5e1; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.byline .auto { display: inline-flex; align-items: center; gap: .35rem; color: #10b981; font-weight: 600; }
.byline .auto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.article-head .byline { margin: .2rem 0 .8rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; color: #cbd5e1; background: #151d2a; border: 1px solid #222f43; border-radius: 999px; padding: .35rem .85rem; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.chip:hover { border-color: #334155; }
.chip.on { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.filters + .table-wrap { margin-top: .8rem; }
.live td.hot { background: rgba(16, 185, 129, .08); box-shadow: inset 3px 0 0 #10b981; }
.share-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn.ghost.x-share, button.btn.ghost { display: inline-flex; align-items: center; gap: 8px; color: #e2e8f0; background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.btn.ghost.x-share:hover, button.btn.ghost:hover { background: #334155; }
.btn.disabled { background: #1e293b; color: #64748b; cursor: not-allowed; border: 1px dashed #334155; }
.btn.disabled:hover { background: #1e293b; }
.alert-item.move .al-kind { color: var(--muted); }
.alert-item.move .pill { justify-self: end; }
.embed-box { margin-top: 2rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem 1.2rem; }
.embed-box h2 { font-size: 1.1rem; }
.embed-box p { color: var(--ink-2); }
.feed-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; background: #151d2a; border: 1px solid #222f43; border-radius: 8px; padding: .45rem .8rem; font-size: .82rem; }
.fs-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.feed-status.ko .fs-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.feed-status strong { color: #10b981; }
.feed-status.ko strong { color: #f59e0b; }

/* ---------- finitions ---------- */
.ticker { padding: 8px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.tk-row { padding: 0 1.1rem; }
.cta-top { background: transparent; border: 1px solid #334155; color: #60a5fa; }
.cta-top:hover { background: #1e293b; border-color: #3b82f6; color: #93c5fd; }
.tag { letter-spacing: .05em; border-radius: 4px; }
.chip { background: #1e293b; cursor: pointer; }
.chip:hover { background: #334155; border-color: #334155; }
.chip.on, .chip.on:hover { background: #3b82f6; border-color: #3b82f6; }
.live td.rank { width: 4.2rem; }
.rk { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.rk .mv { display: inline; font-size: .72rem; }
.mv-line { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gicon.sm { width: 24px; height: 24px; border-radius: 6px; display: inline-block; }
.toast { left: auto; right: 1.5rem; bottom: 1.5rem; transform: translateY(1rem); background: #064e3b; color: #d1fae5; border: 1px solid #10b981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.show { transform: translateY(0); }
.feed-status .sep { color: #475569; }
@media (max-width: 560px) { .toast { right: 1rem; left: 1rem; text-align: center; } }

/* ---------- vague 2 ---------- */
.search { position: relative; }
.search input { font: inherit; font-size: .88rem; width: 190px; background: #151d2a; color: var(--ink); border: 1px solid #222f43; border-radius: 8px; padding: .45rem .7rem; }
.search input:focus { outline: none; border-color: #3b82f6; }
.search-res { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; list-style: none; margin: 0; padding: .3rem; background: #151d2a; border: 1px solid #334155;
  border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 60; }
.search-res li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .55rem; border-radius: 6px; font-size: .9rem; }
.search-res li.on, .search-res li:hover { background: #1e293b; }
.search-res li a { color: var(--ink); text-decoration: none; border: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-res li span { color: var(--muted); font-size: .8rem; }
.search-res li.none { color: var(--muted); }
.soon { background: var(--surface); border: 1px dashed #334155; border-radius: 12px; padding: 1.2rem 1.3rem; margin: 1.5rem 0; }
.soon h2 { font-size: 1.15rem; margin: .5rem 0 .3rem; }
.soon p { color: var(--ink-2); margin-bottom: .4rem; }
.soon-tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fbbf24; background: rgba(251,191,36,.12); padding: 3px 8px; border-radius: 4px; }
.soon-when { font-weight: 600; color: var(--ink) !important; }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.tr-sec { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; min-width: 0; }
.tr-sec h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.tr-list, .up-list, .rec-list { list-style: none; margin: 0; padding: 0; }
.tr-item { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--rule); }
.tr-pos { width: 1.6rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tr-name { flex: 1; min-width: 0; }
.tr-name a { color: var(--ink); font-weight: 650; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-name .sub { display: block; font-size: .78rem; color: var(--muted); }
.tr-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; word-spacing: .12em; }
.tr-val small { display: block; font-size: .7rem; color: var(--muted); font-weight: 500; }
.tag.new { color: #10b981; background: rgba(16,185,129,.15); }
.up-item { display: flex; gap: .8rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
.up-title { margin: 0; font-weight: 650; }
.up-title a { color: #93c5fd; }
.up-meta { margin: .2rem 0 0; color: var(--ink-2); font-size: .9rem; }
.muted { color: var(--muted); }
.heat-box { overflow: hidden; }
.heat-wrap { overflow-x: auto; margin-top: .8rem; }
.heat { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 560px; }
.heat th { font-size: .72rem; color: var(--muted); font-weight: 600; padding: 0 4px; text-align: left; border: 0; background: none; }
.heat td.hc { height: 26px; border-radius: 4px; padding: 0; border: 0; background: color-mix(in srgb, #3b82f6 calc(var(--k) * 100%), #1a2436); }
.heat td.hc.empty { background: repeating-linear-gradient(45deg, #151d2a 0 4px, #1a2436 4px 8px); }
.heat-legend { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--muted); margin-top: .6rem; }
.heat-legend i { width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #1a2436, #3b82f6); }
.heat-best { font-size: .9rem; color: var(--ink-2); margin-top: .6rem; }
.mini-box { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; margin: 1.2rem 0; }
.mini-box h2, .mini-box h3 { font-size: 1rem; margin-bottom: .3rem; }
.mini-box a { color: #60a5fa; }
.rec-new { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.rec-list li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; }
.rec-list a { color: #93c5fd; font-weight: 650; }
.cards.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.cards.grid3 .card { background: #151d2a; border: 1px solid #222f43; border-radius: 10px; padding: 16px; transition: border-color .2s ease; }
.cards.grid3 .card:hover { border-color: #3b82f6; }
.cards.grid3 .card h3 { margin: .4rem 0 .3rem; font-size: 1.05rem; }
.live td.game a { color: var(--ink); }
@media (max-width: 900px) { .tr-grid { grid-template-columns: 1fr; } .search input { width: 150px; } }
@media (max-width: 560px) { .search-res { width: 260px; right: auto; left: 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.heat { table-layout: fixed; }
.heat th:first-child { width: 42px; }
.search input { width: 170px; }
.site-head nav { gap: .25rem 1.1rem; }
.news { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.news li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.news time { color: var(--muted); font-size: .85rem; }
.news a { color: var(--ink); font-weight: 600; text-decoration: none; }
.news a:hover { color: #93c5fd; text-decoration: underline; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- passe UX : menu mobile ---------- */
.menu-btn { display: none; }
.mobile-only { display: none; }
@media (max-width: 760px) {
  .site-head { align-items: center; flex-wrap: nowrap; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0 10px;
    background: #151d2a; border: 1px solid #222f43; border-radius: 8px; cursor: pointer; margin-left: auto; }
  .menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .site-head.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-head.open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-head.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-head nav { display: none; }
  .site-head.open nav { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; overflow: visible; gap: 0; position: absolute; left: 0; right: 0; top: 100%;
    background: #0b0e14; border-bottom: 1px solid #222f43; padding: .5rem 16px 1rem; box-shadow: 0 16px 32px rgba(0,0,0,.45); max-height: calc(100vh - 60px); overflow-y: auto; }
  .site-head.open nav a { padding: .8rem 0; border-bottom: 1px solid #1a2433; font-size: 1.05rem; color: var(--ink); }
  .site-head.open nav a[aria-current] { color: #93c5fd; border-bottom-color: #1a2433; }
  .site-head.open nav .search { order: -1; margin: .4rem 0 .5rem; }
  .site-head.open nav .search input { width: 100%; font-size: 1rem; padding: .7rem .8rem; }
  .site-head.open nav .search-res { position: static; width: auto; margin-top: .4rem; }
  .site-head.open nav a.bell { order: 0; justify-content: center; margin-top: .9rem; padding: .75rem 1rem; border-bottom: 0; }
  body.menu-open { overflow: hidden; }
  .mobile-only { display: block; }
  .side-col .pulse { margin-top: 1rem; }
}

/* ---------- pouls mobile ---------- */
.pulse-m { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: .8rem 1rem .7rem; margin: 0 0 1rem; }
.pm-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.pm-stamp { margin-left: auto; font-weight: 400; font-size: .75rem; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); flex: none; }
.pulse-m ol { list-style: none; margin: 0; padding: 0; }
.pulse-m li { display: flex; align-items: center; gap: .55rem; padding: .45rem 0; border-top: 1px solid var(--rule); font-size: .92rem; }
.pulse-m .p-rank { width: 1.1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pulse-m .p-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; }
.pulse-m .p-val { font-variant-numeric: tabular-nums; font-weight: 650; }
.pulse-m .cta-top { display: block; margin-top: .4rem; font-size: .88rem; }
@media (max-width: 760px) { .side-col .pulse { display: none; } }

/* ---------- pied de page ---------- */
.site-foot { margin-top: 3rem; padding-top: 2.2rem; }
.site-foot p { max-width: none; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .2rem 0 .7rem; font-weight: 650; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 .45rem; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-about .wordmark { display: inline-flex; margin-bottom: .5rem; color: var(--ink); text-decoration: none; }
.foot-about p { color: var(--ink-2); max-width: 46ch; }
.foot-small { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.5rem; border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1rem; }
.foot-bar > * { margin: 0 !important; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- article : partage, à lire aussi ---------- */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0 1.5rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.share-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: .4rem; }
.share { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .88rem; color: var(--ink); background: #151d2a; border: 1px solid #222f43;
  border-radius: 8px; padding: .45rem .8rem; text-decoration: none; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.share:hover { border-color: #3b82f6; background: #182235; }
.related { max-width: 1160px; margin: 2.5rem auto 0; }
.cards.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.cards.grid3 .card { background: #151d2a; border: 1px solid #222f43; border-radius: 8px; padding: 16px; transition: border-color .2s ease, background .2s ease; }
.cards.grid3 .card:hover { border-color: #334155; background: #182235; }
.cards.grid3 .card a { text-decoration: none; color: inherit; display: block; }
.cards.grid3 .card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .cards.grid3 { grid-template-columns: 1fr; } }

/* ---------- page jeu ---------- */
.stat.long .stat-value { font-size: 1.15rem; line-height: 1.35; }
.related-games { margin: 2rem 0; }
.related-games h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.rg-col { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: .9rem 1rem; }
.rg-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; font-weight: 650; }
.rg-key { text-transform: none; letter-spacing: 0; color: var(--ink-2); font-weight: 500; }
.rg-col ul { list-style: none; margin: 0; padding: 0; }
.rg-col a { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.rg-col li:first-child a { border-top: 0; }
.rg-col a:hover .rg-name { color: #93c5fd; }
.rg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-rank { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.rg-rank small { font-size: .7em; vertical-align: super; }

/* ---------- tableaux : en-tête collant ---------- */
@media (min-width: 900px) {
  .table-wrap.sticky-head { overflow: visible; }
  .table-wrap.sticky-head thead th { position: sticky; top: var(--head-h, 60px); z-index: 5; }
  .table-wrap.sticky-head thead th:first-child { border-top-left-radius: 12px; }
  .table-wrap.sticky-head thead th:last-child { border-top-right-radius: 12px; }
}
:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.pm-head { flex-wrap: wrap; }
.pm-stamp { flex-basis: 100%; margin-left: 0; padding-left: calc(8px + .5rem); }
@media (min-width: 900px) { .live thead th { white-space: nowrap; } }
@media (max-width: 560px) {
  .live th, .live td { padding-left: .45rem; padding-right: .45rem; }
  .live td.rank { width: 2.6rem; }
  .live td.game .gicon { width: 28px; height: 28px; }
  .live th:first-child { font-size: 0; }
  .live th:first-child::after { content: "#"; font-size: 12px; }
}

/* ---------- courbes, version enrichie ---------- */
.line-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1.4rem; margin: 0 0 .4rem; }
.lh-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .55rem; }
.lh-val { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; word-spacing: .12em; line-height: 1; }
.lh-unit { color: var(--muted); font-size: .9rem; }
.lh-main .pill { font-size: .82rem; }
.lh-range { color: var(--muted); font-size: .78rem; }
.lh-side { display: flex; gap: 1rem; color: var(--muted); font-size: .82rem; }
.lh-side b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; word-spacing: .12em; }
.seg { display: inline-flex; margin-left: auto; background: #0e131c; border: 1px solid #222f43; border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 6px; padding: .3rem .65rem; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #1e293b; color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }

.line-plot { margin: 1.4rem 4.4rem 2rem 2.8rem; --c: #3b82f6; color: var(--c); }
.line-plot.up { --c: #10b981; }
.line-plot.down { --c: #ef4444; }
.line-plot svg .area { stroke: none; }
.line-plot .stroke { stroke: var(--c); stroke-width: 2.25px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent)); }
.line-plot svg.reveal { animation: reveal 1s cubic-bezier(.3,.7,.2,1) both; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.line-plot .ytick { border-top: 1px dashed rgba(148, 163, 184, .13); }
.line-plot .ytick:first-child { border-top: 1px solid rgba(148, 163, 184, .28); }
.line-plot .ytick span { color: #64748b; font-size: .72rem; }
.line-plot .xtick { border-left-color: rgba(148, 163, 184, .28); }
.line-plot .xtick.day::before { content: ""; position: absolute; left: -1px; bottom: 6px; height: var(--plot-h, 280px); border-left: 1px dashed rgba(148, 163, 184, .12); }
.line-plot .xtick span { color: #64748b; font-size: .72rem; }
.line-plot .end-dot { background: var(--c); box-shadow: 0 0 0 3px #151d2a, 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 3px #151d2a, 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); }
  50% { box-shadow: 0 0 0 3px #151d2a, 0 0 0 10px color-mix(in srgb, var(--c) 0%, transparent); } }
.line-plot .end-label { color: #0b0e14; background: var(--c); font-size: .78rem; padding: .15rem .45rem; border-radius: 5px; left: calc(100% + .5rem); }
.line-plot .end-label::before { content: ""; position: absolute; left: -4px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 0; border-right-color: var(--c); }
.peak { position: absolute; width: 0; height: 0; pointer-events: none; }
.peak i { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #151d2a; border: 2px solid var(--ink-2); }
.peak b { position: absolute; bottom: 8px; left: 0; transform: translateX(-50%); font-size: .72rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; word-spacing: .12em;
  background: rgba(21, 29, 42, .85); padding: .05rem .35rem; border-radius: 4px; }
.peak.low b { bottom: auto; top: 8px; }
.peak.left b { transform: translateX(-100%); }
.line-plot .crosshair { border-left: 1px dashed rgba(226, 232, 240, .45); }
.crosshair .hline { position: absolute; left: -100vw; width: 200vw; border-top: 1px dashed rgba(226, 232, 240, .18); pointer-events: none; }
.line-plot { overflow: visible; }
.chart:has(.line-plot) { overflow: hidden; }
.crosshair .cdot { position: absolute; left: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--c); border: 2px solid #0b0e14; box-shadow: 0 0 10px var(--c); }
.line-plot .crosshair .tip { top: -.6rem; text-align: center; line-height: 1.35; padding: .4rem .6rem; border: 1px solid #334155; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.line-plot .crosshair .tip b { font-size: .95rem; color: var(--c); }
.line-plot .crosshair .tip span { color: var(--muted); font-size: .74rem; }
.line-plot .crosshair .tip.flip-l { transform: translate(-100%, -100%); }
.line-plot .crosshair .tip.flip-r { transform: translate(0, -100%); }
@media (max-width: 560px) {
  .line-plot { margin: 1.2rem 3.4rem 1.8rem 2.4rem; }
  .lh-val { font-size: 1.5rem; }
  .seg { margin-left: 0; }
  .peak b { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { .line-plot .end-dot { animation: none; } }
.line-plot .crosshair .tip { top: .2rem; transform: translate(-50%, 0); z-index: 3; }
.line-plot .crosshair .tip.flip-l { transform: translate(calc(-100% - 10px), 0); }
.line-plot .crosshair .tip.flip-r { transform: translate(10px, 0); }

/* =====================================================================
   Système de design : monochrome sombre, accents mesurés
   Un seul bouton fort par écran (blanc), le reste en secondaire/ghost.
   ===================================================================== */
:root {
  --ds-line: rgba(255, 255, 255, .08);
  --ds-line-2: rgba(255, 255, 255, .12);
  --ds-line-3: rgba(255, 255, 255, .25);
  --ds-fill: rgba(255, 255, 255, .04);
  --ds-fill-2: rgba(255, 255, 255, .08);
  --ds-text: #f1f5f9;
  --ds-text-2: #94a3b8;
  --ds-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --ds-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- boutons ---- */
.btn, button.btn, a.btn, .btn.share, button.btn.share, .btn.ghost, button.btn.ghost, .btn.ghost.x-share, .share, .cta-top {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .005em; line-height: 1.2;
  padding: 8px 16px; border-radius: 6px; cursor: pointer; text-decoration: none;
  background: var(--ds-fill); color: var(--ds-text); border: 1px solid var(--ds-line-2); box-shadow: none; filter: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover, button.btn:hover, .btn.share:hover, .btn.ghost.x-share:hover, .share:hover, .cta-top:hover {
  background: var(--ds-fill-2); border-color: var(--ds-line-3); color: #fff; filter: none;
}
.btn.ghost, button.btn.ghost, a.btn.ghost { background: transparent; border-color: transparent; color: var(--ds-text-2); padding-left: 12px; padding-right: 12px; }
.btn.ghost:hover, button.btn.ghost:hover { background: rgba(255, 255, 255, .05); border-color: transparent; color: #f8fafc; }
.btn.primary, .site-head nav a.bell.btn.primary {
  background: linear-gradient(#ffffff, #f1f5f9); color: #0f172a; font-weight: 600; border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4), inset 0 1px 0 #fff; padding: 8px 14px;
}
.btn.primary:hover, .site-head nav a.bell.btn.primary:hover { background: #f1f5f9; color: #0f172a; border-color: rgba(255, 255, 255, .8); transform: translateY(-1px); }
.btn.primary svg { stroke: #0f172a; }
.btn.disabled, .btn.disabled:hover { background: transparent; color: #64748b; border: 1px dashed var(--ds-line-2); cursor: not-allowed; transform: none; }
.btn:active, .share:active { transform: translateY(0) scale(.985); }
.btn.ghost.x-share svg, .share svg { opacity: .85; }
.share:hover, .btn.ghost.x-share:hover { transform: scale(1.02); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* lien « voir tout » : secondaire, pleine largeur */
.cta-top { display: flex; width: 100%; color: var(--ds-text); }
.cta-top span { color: var(--ds-text-2); }
.cta-top:hover span { color: #fff; }

/* ---- en-tête : recherche avec raccourci ---- */
.search { display: flex; align-items: center; }
.search input { background: var(--ds-fill); border: 1px solid var(--ds-line); border-radius: 6px; font-size: 13px; padding: 7px 52px 7px 30px; width: 220px;
  color: var(--ds-text); transition: border-color .15s ease, background .15s ease, width .2s var(--ds-ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px 50%; }
.search input::placeholder { color: #64748b; }
.search input:hover { border-color: var(--ds-line-2); }
.search input:focus { border-color: var(--ds-line-3); background-color: rgba(255, 255, 255, .06); outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .05); }
.search input::-webkit-search-cancel-button { display: none; }
.kbd { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-family: var(--ds-mono); font-size: 10.5px; color: #94a3b8; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--ds-line-2); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; pointer-events: none; line-height: 1.4; }
.search input:focus + .kbd { opacity: 0; }
.search-res { background: #10151e; border: 1px solid var(--ds-line-2); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.site-head nav a:not(.btn) { font-size: 14px; }
@media (max-width: 760px) { .kbd { display: none; } .site-head.open nav .search input { padding-right: .8rem; } }

/* ---- filtres : contrôle segmenté ---- */
.filters { display: inline-flex; flex-wrap: wrap; gap: 2px; background: rgba(255, 255, 255, .03); padding: 4px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .06); }
.chip, .chip:hover { font-size: 13px; font-weight: 500; color: #8b949e; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 6px 12px; transition: color .15s ease, background .15s ease; }
.chip:hover { color: #f1f5f9; background: rgba(255, 255, 255, .04); }
.chip.on, .chip.on:hover { background: #21262d; color: #fff; border-color: rgba(255, 255, 255, .06); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
@media (max-width: 760px) {
  .filters { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
}
.seg { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .06); }
.seg button { font-weight: 500; color: #8b949e; }
.seg button[aria-pressed="true"] { background: #21262d; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }

/* ---- badges de variation ---- */
.pill { font-family: var(--ds-mono); font-size: 11px; font-weight: 600; letter-spacing: -.01em; padding: 2px 6px; border-radius: 4px; line-height: 1.45; border: 1px solid transparent; word-spacing: 0; }
.pill.up { color: #34d399; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .2); }
.pill.down { color: #f87171; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .2); }
.pill.flat { color: #94a3b8; background: rgba(148, 163, 184, .08); border-color: rgba(148, 163, 184, .16); }
.lh-main .pill { font-size: 12px; }
.mv { font-family: var(--ds-mono); font-size: 10.5px; }

/* ---- étiquettes de rubrique : neutres ---- */
.tag { background: rgba(255, 255, 255, .05); color: #cbd5e1; border: 1px solid var(--ds-line); font-family: var(--ds-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; border-radius: 4px; padding: 2px 7px; }
.tag.new { color: #34d399; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .2); }

/* ---- cartes : verre ---- */
.card, .cards.grid2 .card, .cards.list .card, .cards.grid3 .card, .hero-card {
  background: rgba(21, 29, 42, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px;
  transition: border-color .2s var(--ds-ease), transform .2s var(--ds-ease), box-shadow .2s var(--ds-ease), background .2s var(--ds-ease);
}
.card:hover, .cards.grid2 .card:hover, .cards.list .card:hover, .cards.grid3 .card:hover, .hero-card:hover {
  border-color: rgba(255, 255, 255, .2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); background: rgba(24, 33, 48, .6);
}
.card.skel:hover { transform: none; box-shadow: none; }
.hero-card:hover h2, .card:hover h3 { color: #fff; }
.chart, .pulse, .pulse-m, .rg-col, .stats, .provenance, .embed-box, .table-wrap, .follow { border-color: var(--ds-line); }
.ytick { border-top-color: rgba(148, 163, 184, .1); }

/* ---- mini-courbes : même style que les grandes ---- */
.spark { color: #10b981; overflow: visible; }
.spark.down { color: #ef4444; }
.spark .sp-line { fill: none; stroke: currentColor; stroke-width: 1.75px; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 45%, transparent)); }
.spark .sp-area { stroke: none; }
.spark .sp-dot { fill: none; stroke: currentColor; stroke-width: 5px; stroke-linecap: round; }

/* ---- comparateur : même style que les grandes courbes ---- */
.cmp-plot .ytick { border-top: 1px dashed rgba(148, 163, 184, .13); }
.cmp-plot .ytick:first-child { border-top: 1px solid rgba(148, 163, 184, .28); }
.cmp-plot .ytick span { color: #64748b; font-size: .72rem; }
.cmp-plot g.s1 { color: #3b82f6; stroke: none; }
.cmp-plot g.s2 { color: #f97316; stroke: none; }
.cmp-plot path.area { stroke: none; }
.cmp-plot path.stroke { fill: none; stroke: currentColor; stroke-width: 2.25px; filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 45%, transparent)); }
.cmp-plot .end-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 3px #151d2a; }
.cmp-plot svg { animation: reveal 1s cubic-bezier(.3,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .cmp-plot svg { animation: none; } .card:hover, .hero-card:hover, .btn.primary:hover { transform: none; } }

/* =====================================================================
   Couleurs d'action (v2) : plus de contraste, un bleu d'action unique
   --act : #2563EB (action principale du site), --roblox : #00A2FF (lien sortant Roblox)
   ===================================================================== */
:root { --act: #2563eb; --act-h: #1d4ed8; --act-glow: rgba(37, 99, 235, .35); --roblox: #00a2ff; --roblox-h: #008ddf; --hi: #60a5fa; }

/* secondaire : plus lumineux, accent bleu au survol */
.btn, button.btn, a.btn, .cta-top {
  background: rgba(255, 255, 255, .05); color: #f1f5f9; border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; font-weight: 500;
}
.btn:hover, button.btn:hover, a.btn:hover, .cta-top:hover { background: rgba(96, 165, 250, .08); border-color: var(--hi); color: var(--hi); }
.cta-top:hover span { color: var(--hi); }
.btn.ghost, button.btn.ghost, a.btn.ghost { background: transparent; border-color: transparent; color: #cbd5e1; }
.btn.ghost:hover, button.btn.ghost:hover, a.btn.ghost:hover { background: rgba(255, 255, 255, .06); border-color: transparent; color: #fff; }

/* principal : bleu intense */
.btn.primary, .site-head nav a.bell.btn.primary, .site-head.open nav a.bell.btn.primary {
  background: var(--act); color: #fff; border: 1px solid transparent; border-radius: 8px; font-weight: 600; font-size: 13px; padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14); white-space: nowrap; flex: none;
}
.btn.primary:hover, .site-head nav a.bell.btn.primary:hover { background: var(--act-h); color: #fff; border-color: transparent; box-shadow: 0 4px 12px var(--act-glow); transform: translateY(-1px); }
.btn.primary svg, .site-head nav a.bell svg { stroke: #fff; width: 16px; height: 16px; flex: none; overflow: visible; }
.site-head nav a.bell.btn.primary { line-height: 1; gap: 8px; }

/* Ouvrir sur Roblox : action principale de la page jeu */
.btn.roblox, a.btn.roblox { background: var(--roblox); color: #fff; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px;
  box-shadow: 0 4px 14px rgba(0, 162, 255, .3); }
.btn.roblox:hover, a.btn.roblox:hover { background: var(--roblox-h); color: #fff; border-color: transparent; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 162, 255, .38); }
.game-links .btn { padding-top: 10px; padding-bottom: 10px; }

/* partage : boutons vivants, sans boîte */
.share-bar { border: 0; padding: 0; margin: 2.2rem 0 1.8rem; gap: 8px; }
.share-label { order: 0; color: #94a3b8; }
.share { border-radius: 8px; font-size: 13px; font-weight: 500; padding: 8px 14px; transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.share.x { order: 1; background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .15); }
.share.x:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .15); color: #fff; }
.share.li { order: 2; background: rgba(10, 102, 194, .15); color: var(--hi); border: 1px solid rgba(10, 102, 194, .3); }
.share.li:hover { background: rgba(10, 102, 194, .25); border-color: rgba(10, 102, 194, .3); color: #93c5fd; }
.share.copy { order: 3; background: var(--act); color: #fff; font-weight: 600; border: 1px solid transparent; }
.share.copy:hover { background: var(--act-h); color: #fff; border-color: transparent; box-shadow: 0 4px 12px var(--act-glow); }
.share svg { opacity: 1; }

/* filtres et périodes : l'élément actif prend le bleu d'action en liseré */
.chip.on, .chip.on:hover, .seg button[aria-pressed="true"] { background: #1e293b; color: #fff; border-color: rgba(96, 165, 250, .35); box-shadow: 0 1px 3px rgba(0, 0, 0, .3), inset 0 -2px 0 var(--act); }
.chip { color: #a3aebd; }

/* contraste général un cran plus haut */
.site-head nav a:not(.btn) { color: #a3aebd; }
.site-head nav a:not(.btn):hover, .site-head nav a[aria-current]:not(.btn) { color: #fff; border-bottom-color: var(--act); }
.search input { border-color: rgba(255, 255, 255, .12); }
.card, .cards.grid2 .card, .cards.list .card, .cards.grid3 .card, .hero-card { border-color: rgba(255, 255, 255, .09); }
.card:hover, .cards.grid2 .card:hover, .cards.list .card:hover, .cards.grid3 .card:hover, .hero-card:hover { border-color: rgba(96, 165, 250, .45); }
.hero-card:hover h2, .card:hover h3 { color: #bfdbfe; }

@media (max-width: 760px) {
  .site-head.open nav a.bell.btn.primary { justify-content: center; padding: 12px 16px; font-size: 15px; }
  .share-bar .share { flex: 1 1 auto; }
}

/* ---------- navigation à 4 entrées ---------- */
.site-head nav { gap: .25rem 1.6rem; }
.site-head nav a.nav-alerts { display: inline-flex; align-items: center; gap: 6px; }
.nav-bell { flex: none; color: var(--hi); }
.site-head nav a.nav-alerts:hover .nav-bell, .site-head nav a.nav-alerts[aria-current] .nav-bell { color: #fff; }
@media (min-width: 761px) { .site-head nav .search { order: 10; margin-left: .4rem; } }

/* ---------- Explorer en groupes ---------- */
.ex-group { margin-top: 2.2rem; }
.ex-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ds-line); }
.ex-head h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--hi); margin: 0; font-weight: 700; }
.ex-head p { color: var(--ds-text-2); font-size: .9rem; margin: 0; }
.cards.grid-ex { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.cards.grid-ex .card { padding: 16px; }
.cards.grid-ex .card a { text-decoration: none; color: inherit; display: block; height: 100%; }
.cards.grid-ex .card h3 { font-size: 1rem; margin: 0 0 .35rem; }
.cards.grid-ex .card p { color: var(--ds-text-2); font-size: .88rem; margin: 0; }

/* ---------- badge de confiance (accueil) ---------- */
.trust { display: inline-flex; align-items: center; gap: .55rem; margin-top: .9rem; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: #d1fae5; background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .25); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.trust .check { width: 16px; height: 16px; margin: 0; }
.trust-go { color: #34d399; font-weight: 600; }
.trust:hover { background: rgba(16, 185, 129, .14); border-color: rgba(16, 185, 129, .45); }
.foot-grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .cards.grid-ex.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cards.grid-ex.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .site-head.open nav .search input { padding: .7rem .8rem .7rem 34px; background-position: 12px 50%; } }
.cards.grid-ex .card p { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* ---------- page rapport ---------- */
.rp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-bottom: 2rem; }
.rapport .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--hi); font-weight: 700; margin-bottom: .4rem; }
.rapport h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; margin-bottom: .6rem; }
.rp-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.rp-points li { padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.rp-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; border-radius: 50%; background: rgba(16,185,129,.2); box-shadow: inset 0 0 0 3px #10b981; }
.rp-form { background: rgba(21, 29, 42, .7); border: 1px solid var(--ds-line-2); border-radius: 14px; padding: 1.4rem; }
.rp-form h2 { font-size: 1.25rem; margin: .6rem 0 .5rem; }
.rp-form p { color: var(--ink-2); font-size: .95rem; }
.rp-som { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; }
.rp-som li { counter-increment: s; padding: .75rem .9rem .75rem 3rem; position: relative; border: 1px solid var(--ds-line); border-radius: 10px; background: rgba(21,29,42,.45); }
.rp-som li::before { content: counter(s, decimal-leading-zero); position: absolute; left: .9rem; top: .75rem; font-family: var(--ds-mono); color: var(--hi); font-weight: 700; font-size: .85rem; }
@media (max-width: 760px) { .rp-hero, .rp-som { grid-template-columns: 1fr; } }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.carte img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--ds-line); display: block; }
.carte figcaption { font-size: .85rem; color: var(--ds-text-2); margin-top: .5rem; }

/* ---------- sélecteur de langue ---------- */
.site-head nav .lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: rgba(255, 255, 255, .03); }
.site-head nav .lang svg { color: #64748b; margin: 0 4px 0 5px; flex: none; }
.site-head nav .lang a { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: #8b949e; padding: 3px 7px; border-radius: 5px; border-bottom: 0; line-height: 1.3; }
.site-head nav .lang a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-head nav .lang a[aria-current] { color: #fff; background: #21262d; border-bottom: 0; box-shadow: inset 0 -2px 0 var(--act); }
@media (max-width: 760px) {
  .site-head.open nav .lang { order: 20; align-self: flex-start; margin-top: 1rem; }
  .site-head.open nav .lang a { padding: 6px 12px; font-size: 13px; border-bottom: 0; }
}
/* chiffres à largeur fixe : la virgule et le point prendraient la largeur d'un chiffre en anglais, espagnol et portugais */
html:not([lang="fr"]) * { font-variant-numeric: normal !important; }

/* ---------- résumés écrits et pages questions-réponses ---------- */
.resume { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border: 1px solid var(--ds-line); border-left: 3px solid var(--act); border-radius: 10px; background: rgba(21, 29, 42, .45); }
.resume h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--hi); margin: 0 0 .45rem; font-weight: 700; }
.resume p { margin: 0; color: var(--ink-2); line-height: 1.65; max-width: 80ch; }
.faq { margin: 2rem 0 1rem; }
.faq h2 { font-size: 1.2rem; margin-bottom: .7rem; }
.faq details { border: 1px solid var(--ds-line); border-radius: 10px; background: rgba(21, 29, 42, .45); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: .85rem 1rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--hi); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1rem .9rem; margin: 0; color: var(--ink-2); }
.qa .kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #34d399; font-weight: 700; margin-bottom: .4rem; }
.qa .answer { font-size: 1.2rem; line-height: 1.55; padding: 1.2rem 1.4rem; border-radius: 12px; background: linear-gradient(180deg, rgba(37, 99, 235, .12), rgba(37, 99, 235, .04)); border: 1px solid rgba(96, 165, 250, .25); margin: 1rem 0 1.5rem; }
.qa .answer strong { color: #fff; }
.qa h2 { font-size: 1.25rem; margin: 2rem 0 .7rem; }
.qa-list { padding-left: 1.3rem; } .qa-list li { margin: .3rem 0; }
.qa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.qa-two .table-wrap { margin-top: .5rem; }
@media (max-width: 760px) { .qa-two { grid-template-columns: 1fr; } .qa .answer { font-size: 1.05rem; } }

/* ---------- newsletter (iframe beehiiv) ---------- */
.nl-box { margin: 2rem 0; padding: 1.3rem 1.4rem 1rem; border-radius: 14px; border: 1px solid rgba(96, 165, 250, .25);
  background: radial-gradient(circle at 100% 0, rgba(37, 99, 235, .18), transparent 55%), rgba(21, 29, 42, .6); }
.nl-box h2 { font-size: 1.15rem; margin: 0 0 .35rem; }
.nl-box p { color: var(--ink-2); font-size: .95rem; margin: 0 0 .6rem; }
.nl-frame { width: 100%; height: 84px; border: 0; background: transparent; color-scheme: normal; display: block; }
.nl-legal { font-size: .78rem !important; color: var(--muted) !important; margin: .3rem 0 0 !important; }
.nl-home { margin-top: 1rem; }
.rp-form .nl-box { margin: .8rem 0 0; padding: 0; border: 0; background: none; }
@media (min-width: 1000px) { .cards.grid-ex.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nl-frame { overflow: hidden; border-radius: 10px; background: transparent; }

/* ---------- visionneuse de source (/source/) ---------- */
.src-view .src-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .2rem 0 1rem; }
.src-path { font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .85rem; color: var(--ink-2);
  background: rgba(21, 29, 42, .6); border: 1px solid rgba(96, 165, 250, .2); padding: .25rem .5rem; border-radius: 8px; overflow-wrap: anywhere; }
.src-status { color: var(--muted); }
.src-table-wrap { overflow-x: auto; border: 1px solid rgba(96, 165, 250, .18); border-radius: 12px; margin: 0; }
.src-cap { padding: .5rem .75rem; color: var(--ink-2); font-size: .85rem; border-bottom: 1px solid rgba(96, 165, 250, .15); }
.src-table { border-collapse: collapse; width: 100%; font-size: .82rem; font-variant-numeric: tabular-nums; }
.src-table th, .src-table td { padding: .35rem .6rem; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.src-table thead th { position: sticky; top: 0; background: rgba(15, 21, 32, .97); color: var(--ink-2); font-weight: 600; }
.src-table .src-ln { color: var(--muted); text-align: right; user-select: none; }
.src-table tbody tr:hover { background: rgba(96, 165, 250, .06); }
.src-table tr.is-cited { background: rgba(37, 99, 235, .22); }
.src-table tr.is-cited td, .src-table tr.is-cited th { color: var(--ink, #f1f5f9); }
