/* Radar des Pépites — direction « écran radar de nuit »
   Fond nuit violet-noir, un seul signal vert-jaune (le balayage du radar, les codes
   à copier), et les couleurs de rareté des jeux vidéo pour le score :
   légendaire (or) ≥ 85, épique (violet) ≥ 70, rare (bleu) ≥ 50, commun (gris).
   Titres larges et nerveux (Anybody), texte très lisible (Onest), codes en
   Martian Mono. Le héros reste « de nuit » même en thème clair. */
:root {
  --bg: #f5f3fa;
  --bg-alt: #ece9f4;
  --surface: #ffffff;
  --surface-2: #f6f4fb;
  --ink: #15121e;
  --muted: #5b566f;
  --line: #ddd8ea;
  --line-strong: #c4bdd8;
  --signal: #c6f432;
  --on-signal: #15121e;
  --signal-text: #4a6900;
  --rise: #0a7a4c;
  --danger: #b4233c;
  --t-rare: #a35a00;
  --t-top: #6a33d6;
  --t-ok: #0a62ad;
  --t-low: #625d76;
  --fill-rare: #ffb21e;
  --fill-top: #a774ff;
  --fill-ok: #4db6ff;
  --fill-low: #9a95ae;
  --on-fill: #0a0910;
  --font-display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(21 18 30 / 0.06), 0 12px 30px rgb(21 18 30 / 0.08);
  --cut: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  color-scheme: light;
}
:root[data-theme="dark"], .night {
  --bg: #0a0910;
  --bg-alt: #100e18;
  --surface: #16131f;
  --surface-2: #1d192a;
  --ink: #f2effa;
  --muted: #a7a1be;
  --line: #2a2539;
  --line-strong: #3d3653;
  --signal-text: #c6f432;
  --rise: #3ee09a;
  --danger: #ff6b81;
  --t-rare: #ffb21e;
  --t-top: #b98bff;
  --t-ok: #63c3ff;
  --t-low: #a29db6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 14px 34px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0910;
    --bg-alt: #100e18;
    --surface: #16131f;
    --surface-2: #1d192a;
    --ink: #f2effa;
    --muted: #a7a1be;
    --line: #2a2539;
    --line-strong: #3d3653;
    --signal-text: #c6f432;
    --rise: #3ee09a;
    --danger: #ff6b81;
    --t-rare: #ffb21e;
    --t-top: #b98bff;
    --t-ok: #63c3ff;
    --t-low: #a29db6;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 14px 34px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--signal-text); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; text-wrap: balance; margin: 0; font-stretch: 118%; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 780; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 720; }
p { margin: 0; }
dl, dd { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- en-tête */
.top { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; font-stretch: 130%; text-transform: uppercase; letter-spacing: 0.01em; }
.brand em { font-style: normal; font-weight: 500; text-transform: none; color: var(--muted); font-stretch: 100%; }
.logo { width: 30px; height: 30px; flex: none; }
.top-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; font-size: 0.95rem; }
.top-nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.top-nav a:hover { color: var(--ink); }
/* Bouton de langue (Français / English) : petite pastille à droite du menu */
.top-nav .lang { color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; align-self: center; font-size: 0.85rem; }
.top-nav .lang:hover { border-color: var(--ink); }
.preview-note { background: color-mix(in srgb, var(--signal) 22%, var(--bg)); font-size: 0.92rem; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- héros radar (toujours de nuit) */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); color: var(--ink); padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.radar { position: absolute; z-index: -1; width: min(900px, 140vw); aspect-ratio: 1; right: -12%; top: 50%; translate: 0 -50%; border-radius: 50%; pointer-events: none;
  background:
    repeating-radial-gradient(circle, transparent 0 calc(12.5% - 1px), color-mix(in srgb, var(--signal) 16%, transparent) calc(12.5% - 1px) 12.5%),
    linear-gradient(transparent calc(50% - 0.5px), color-mix(in srgb, var(--signal) 14%, transparent) 0 calc(50% + 0.5px), transparent 0),
    linear-gradient(90deg, transparent calc(50% - 0.5px), color-mix(in srgb, var(--signal) 14%, transparent) 0 calc(50% + 0.5px), transparent 0);
  -webkit-mask-image: radial-gradient(circle, #000 0 50%, transparent 70%); mask-image: radial-gradient(circle, #000 0 50%, transparent 70%); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 290deg, color-mix(in srgb, var(--signal) 26%, transparent) 360deg); animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: rotate(1turn); } }
@media (max-width: 900px) { .radar { right: -45%; top: 30%; opacity: 0.55; } }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 25%, transparent); vertical-align: 1px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin-top: 16px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 34px; padding: 0; margin: 28px 0 0; }
.facts li { display: grid; }
.facts strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.facts span { color: var(--muted); font-size: 0.88rem; }
.updated { color: var(--muted); font-size: 0.88rem; }
.updated time { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- miniatures */
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); --fb: #c6f432; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.thumb-fb { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 8px;
  background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--fb) 38%, transparent), transparent 60%), radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--fb) 18%, transparent), transparent 60%), linear-gradient(140deg, var(--surface-2), var(--bg-alt)); }
.thumb-fb svg { width: clamp(22px, 22%, 54px); height: auto; color: var(--ink); }
.thumb-fb-genre { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(0.62rem, 1.6vw, 0.86rem); letter-spacing: 0.04em; color: var(--ink); opacity: 0.85; }
.thumb-xs .thumb-fb-genre, .thumb-xs .thumb-fb svg { display: none; }
/* Couleur de chaque genre : miniatures de secours et mosaïque des pages genre */
[data-g="horreur"] { --fb: #ff4d6d; }
[data-g="tycoon-simulateur"] { --fb: #ffb21e; }
[data-g="parkour-deathrun"] { --fb: #3ee09a; }
[data-g="escape-enigmes"] { --fb: #a774ff; }
[data-g="cache-cache"] { --fb: #ff8a3d; }
[data-g="course-conduite"] { --fb: #4db6ff; }
[data-g="aventure-coop"] { --fb: #2fd3c4; }
[data-g="party-games"] { --fb: #ff6fd8; }
[data-g="pvp-entrainement"] { --fb: #c6f432; }

/* Badges et jauges de score aux couleurs de rareté */
.tier-rare { --tier: var(--t-rare); --tier-fill: var(--fill-rare); }
.tier-top { --tier: var(--t-top); --tier-fill: var(--fill-top); }
.tier-ok { --tier: var(--t-ok); --tier-fill: var(--fill-ok); }
.tier-low { --tier: var(--t-low); --tier-fill: var(--fill-low); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 44px; padding: 5px 10px 4px; text-align: center; font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 1.05rem; line-height: 1.1; background: var(--tier-fill); color: var(--on-fill); clip-path: var(--cut); font-variant-numeric: tabular-nums; }
.badge small { display: block; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.gauge { --size: 52px; --ring: 6px; position: relative; width: var(--size); height: var(--size); border-radius: 50%; background: conic-gradient(var(--tier-fill, var(--signal)) calc(var(--v) * 1%), color-mix(in srgb, var(--line-strong) 80%, transparent) 0); display: grid; place-items: center; flex: none; }
.gauge::before { content: ""; position: absolute; inset: var(--ring); border-radius: 50%; background: var(--surface); }
.gauge span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 900; font-stretch: 120%; font-size: calc(var(--size) * 0.34); font-variant-numeric: tabular-nums; }
.gauge-lg { --size: 104px; --ring: 9px; }
.gauge.sweep::after { content: ""; position: absolute; inset: var(--ring); border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 72%, color-mix(in srgb, var(--tier-fill) 40%, transparent) 100%); animation: sweep 3.2s linear infinite; }

/* ---------------------------------------------------------------- ticket « pépite du jour » */
.ticket { position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--signal) 18%, transparent), 0 0 60px -18px color-mix(in srgb, var(--signal) 45%, transparent); overflow: hidden; }
.ticket .thumb { border-bottom: 1px solid var(--line); }
.ticket-kicker { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; background: var(--signal); color: var(--on-signal); padding: 6px 10px 5px; clip-path: var(--cut); }
.ticket-body { padding: 18px 22px 0; }
.ticket-top { display: flex; gap: 16px; align-items: center; margin-top: -48px; position: relative; z-index: 1; }
.ticket-top .gauge { box-shadow: 0 0 0 5px var(--surface); }
.ticket-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; overflow-wrap: anywhere; margin-top: 44px; }
.ticket-title a { text-decoration: none; }
.ticket-title a:hover { text-decoration: underline; }
.ticket-orig { color: var(--muted); font-size: 0.85rem; margin-top: 4px; overflow-wrap: anywhere; }
.ticket-by { color: var(--muted); margin-top: 6px; font-size: 0.95rem; overflow-wrap: anywhere; }
.ticket-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; padding: 14px 0; border-top: 1px dashed var(--line-strong); }
.ticket-stats dt, .mini dt { font-size: 0.74rem; color: var(--muted); }
.ticket-stats dd { margin-top: 2px; font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* Code de map en grand */
.big-code { background: color-mix(in srgb, var(--signal) 14%, var(--surface)); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 16px 22px 18px; position: relative; }
.big-code .code-label { flex-basis: 100%; }
.big-code code { flex: 1 1 auto; white-space: nowrap; font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; }
.big-code code i { font-style: normal; color: var(--signal-text); padding: 0 0.08em; }
.ticket .big-code { border-top: 2px dashed color-mix(in srgb, var(--signal-text) 45%, transparent); margin-top: 4px; }
.ticket .big-code::before, .ticket .big-code::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.ticket .big-code::before { left: -11px; }
.ticket .big-code::after { right: -11px; }
@media (max-width: 460px) { .big-code .copy { flex-basis: 100%; } }

/* ---------------------------------------------------------------- boutons */
.btn, .copy { font: inherit; cursor: pointer; border: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; font-family: var(--font-display); font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.92rem; background: var(--signal); color: var(--on-signal); clip-path: var(--cut); text-decoration: none; transition: transform 0.12s ease, filter 0.15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--on-signal); outline-offset: -6px; }
.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(1); opacity: 0.6; transform: none; }
.copy { position: relative; z-index: 2; font-weight: 700; font-size: 0.82rem; min-height: 40px; padding: 8px 14px; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); clip-path: var(--cut); transition: background-color 0.15s, color 0.15s; }
.copy:hover { box-shadow: inset 0 0 0 1px var(--signal-text); }
.copy:focus-visible { outline: 3px solid var(--signal-text); outline-offset: -5px; }
.copy.is-done { background: var(--signal); color: var(--on-signal); }
.copy-strong { background: var(--signal); color: var(--on-signal); box-shadow: none; min-height: 48px; padding: 12px 20px; font-family: var(--font-display); font-weight: 800; font-stretch: 120%; text-transform: uppercase; font-size: 0.88rem; }
.copy-strong:focus-visible { outline-color: var(--on-signal); }
.copy-inline { font-family: var(--font-mono); font-size: 0.78rem; padding: 6px 10px; white-space: nowrap; min-height: 36px; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 72ch; }
.section-head p { color: var(--muted); }
.kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--signal-text); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* ---------------------------------------------------------------- cartes de maps */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tier-fill); }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tier) 55%, var(--line)); box-shadow: var(--shadow); }
.card:hover .thumb img { transform: scale(1.03); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-kicker { font-size: 0.8rem; color: var(--muted); }
.card-kicker strong { color: var(--tier); font-weight: 700; }
.card-title { font-size: 1.08rem; overflow-wrap: anywhere; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { text-decoration: underline; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--signal-text); outline-offset: 2px; }
.card-orig, .card-by { color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.card-orig { margin-top: -4px; font-style: italic; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-block: 1px solid var(--line); }
.mini > div { display: grid; align-content: space-between; }
.mini dd { margin-top: 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.code-row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.code-label { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-mono); }
.code-row code { font-family: var(--font-mono); font-weight: 700; font-size: 0.86rem; font-variant-numeric: tabular-nums; flex: 1; white-space: nowrap; letter-spacing: -0.02em; }

/* Carte sponsorisée : toujours signalée */
.sponsored { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 18px; background: var(--surface); }
.sponsored-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.tag-sponso { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px 4px; background: var(--ink); color: var(--bg); }
.sponsored-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sponsored .card::after { background: var(--ink); }
.sponsored-note { color: var(--muted); font-size: 0.84rem; }

/* ---------------------------------------------------------------- maps qui décollent */
.rise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rise { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1.6fr) auto auto minmax(0, 1.1fr); gap: 12px 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 10px 10px; transition: border-color 0.18s; }
.rise:hover { border-color: color-mix(in srgb, var(--rise) 50%, var(--line)); }
.rise .thumb { border-radius: 8px; }
.rise-title { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 1.05rem; text-decoration: none; overflow-wrap: break-word; }
.rise-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rise-title:hover { text-decoration: underline; }
.rise-by { color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.rise-trend { display: grid; text-align: right; }
.rise-trend strong { color: var(--rise); font-family: var(--font-display); font-stretch: 120%; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.rise-trend span { color: var(--muted); font-size: 0.78rem; }
.spark { display: block; }
.spark-area { fill: color-mix(in srgb, var(--rise) 16%, transparent); }
.spark-line { fill: none; stroke: var(--rise); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: var(--rise); }
@media (max-width: 860px) {
  .rise { grid-template-columns: 96px 1fr auto; }
  .rise .spark { display: none; }
  .rise .code-row { grid-column: 1 / -1; }
}
/* Téléphone : le titre prend toute la largeur à côté de la vignette, la hausse
   passe dessous (sinon le titre est coupé au milieu des mots) */
@media (max-width: 560px) {
  .rise { grid-template-columns: 88px minmax(0, 1fr); column-gap: 12px; }
  .rise .thumb { grid-row: span 2; align-self: start; }
  .rise-trend { grid-column: 2; display: flex; align-items: baseline; gap: 6px; text-align: left; }
  .rise-trend strong { font-size: 1.1rem; }
}

/* ---------------------------------------------------------------- genres et guides */
.genres { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.genre { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.genre:hover { border-color: var(--signal-text); transform: translateY(-2px); }
.genre-name { font-weight: 700; }
.genre-count { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guides { margin-top: 26px; }
.guides h3 { margin-bottom: 10px; }

/* ---------------------------------------------------------------- classement */
.search { display: grid; gap: 6px; max-width: 520px; margin-bottom: 14px; }
/* Classement : recherche, genre et tri (affichés par assets/app.js) */
.rank-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 10px; }
.rank-tools .search { flex: 1 1 280px; margin-bottom: 0; }
.rank-tools .pick { display: grid; gap: 6px; flex: 1 1 200px; max-width: 280px; }
.rank-tools .pick label { font-weight: 700; font-size: 0.92rem; }
.rank-tools select { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); min-height: 46px; width: 100%; }
.rank-count { color: var(--muted); font-size: 0.86rem; margin: 0 0 10px; }
.th-sort { all: unset; cursor: pointer; white-space: nowrap; }
.th-sort:hover { color: var(--ink); }
.th-sort:focus-visible { outline: 3px solid var(--signal-text); outline-offset: 2px; border-radius: 4px; }
.rank th[aria-sort] .th-sort { color: var(--ink); font-weight: 700; }
.rank th[aria-sort="descending"] .th-sort::after { content: " ↓"; }
.rank th[aria-sort="ascending"] .th-sort::after { content: " ↑"; }
.search label { font-weight: 700; font-size: 0.92rem; }
input, select, textarea { font: inherit; color: var(--ink); }
.search input, .field input, .field select, .field textarea { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); min-height: 46px; width: 100%; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rank { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.rank th, .rank td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.rank th { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.rank tbody tr:last-child td { border-bottom: 0; }
.rank tbody tr:hover { background: var(--surface-2); }
.rank .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.map-cell { min-width: 240px; }
.map-cell-in { display: flex; align-items: center; gap: 12px; }
.map-cell .thumb { width: 72px; flex: none; border-radius: 6px; }
.map-cell a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.map-cell a:hover { text-decoration: underline; }
.row-by { display: block; color: var(--muted); font-size: 0.8rem; }
.row-orig { display: block; color: var(--muted); font-size: 0.78rem; font-style: italic; }
.pill { display: inline-block; min-width: 2.6em; text-align: center; font-family: var(--font-display); font-stretch: 120%; font-weight: 900; padding: 3px 8px 2px; font-variant-numeric: tabular-nums; background: var(--tier-fill); color: var(--on-fill); clip-path: var(--cut); }
.empty { margin-top: 12px; color: var(--muted); }

/* Méthode */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { border-top: 3px solid var(--signal); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.step-w { font-family: var(--font-mono); font-weight: 700; color: var(--signal-text); }
.steps p { color: var(--muted); }
.more { margin-top: 22px; font-weight: 700; }

/* ---------------------------------------------------------------- fiche d'une map */
.crumbs { padding: 18px 0 4px; font-size: 0.88rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { display: flex; gap: 6px; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "›"; color: var(--line-strong); }
.crumbs a { color: var(--muted); display: inline-block; padding: 6px 0; }
.crumbs [aria-current] { padding: 6px 0; color: var(--ink); }
.map-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "media text" "score text"; gap: 22px 32px; align-items: start; padding: 14px 0 30px; }
.map-media { grid-area: media; margin: 0; }
.map-media .thumb { border-radius: 14px; border: 1px solid var(--line); }
.map-media figcaption { color: var(--muted); font-size: 0.8rem; padding-top: 8px; }
.map-text { grid-area: text; }
.map-hero .score-box { grid-area: score; }
@media (max-width: 860px) { .map-hero { grid-template-columns: 1fr; grid-template-areas: "media" "text" "score"; } }
.map-hero h1 { overflow-wrap: anywhere; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.map-orig { color: var(--muted); margin-top: 6px; font-style: italic; overflow-wrap: anywhere; }
.map-fact { margin-top: 14px; font-size: 1.05rem; max-width: 62ch; }
.map-by { color: var(--muted); margin-top: 10px; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.84rem; text-decoration: none; }
a.chip { min-height: 40px; display: inline-flex; align-items: center; }
a.chip:hover { border-color: var(--signal-text); }
.map-text .big-code { margin-top: 20px; border: 1px solid color-mix(in srgb, var(--signal-text) 30%, var(--line)); border-radius: 14px; }
.score-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 18px; align-items: center; }
.score-label { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: 1.25rem; color: var(--tier); }
.score-conf { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.block { padding: 30px 0; border-top: 1px solid var(--line); }
.block h2 { margin-bottom: 14px; }
.why { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: 72ch; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat dt { font-size: 0.8rem; color: var(--muted); }
.stat dd { margin: 2px 0; font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stat p { font-size: 0.76rem; color: var(--muted); }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 8px; overflow-x: auto; }
.chart svg { width: 100%; min-width: 560px; max-width: 760px; height: auto; display: block; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-family: var(--font-body); font-size: 12px; }
.chart-area { fill: color-mix(in srgb, var(--t-top) 16%, transparent); }
.chart-line { fill: none; stroke: var(--t-top); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--surface); stroke: var(--t-top); stroke-width: 2; }
.chart-dot.is-last { fill: var(--t-top); }
.chart-value { fill: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.chart figcaption { color: var(--muted); font-size: 0.8rem; padding: 6px 4px 2px; }
.howto ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; max-width: 70ch; }
.howto code, .prose code { font-family: var(--font-mono); font-weight: 700; font-size: 0.9em; background: color-mix(in srgb, var(--signal) 18%, var(--surface)); padding: 1px 6px; border-radius: 4px; }
.ext { font-weight: 700; display: inline-block; margin-top: 12px; padding: 6px 0; }
.creator-cta { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.creator-cta a { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- pages genre, guides, texte */
.cat-head { padding: 10px 0 24px; display: grid; gap: 10px; max-width: 72ch; }
.cat-head .eyebrow { margin-bottom: 0; }
/* Guides : miniature officielle de la map mise en avant (ou illustration de secours)
   à droite du titre, en dessous sur mobile. C'est aussi l'image donnée à Google. */
.guide-head { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; column-gap: clamp(24px, 4vw, 56px); }
.guide-head-text { display: grid; gap: 10px; align-content: start; max-width: 72ch; }
.guide-cover { margin: 0; }
.guide-cover > img, .guide-cover .thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: #0f0d17; box-shadow: var(--shadow); }
.guide-cover > img { height: auto; }
.guide-cover figcaption { color: var(--muted); font-size: 0.8rem; padding-top: 8px; }
.guide-cover figcaption a { color: var(--ink); font-weight: 600; }
.prose .guide-cover { margin: 22px 0 4px; }
/* Pages genre : mosaïque des 4 meilleures miniatures, à la couleur du genre */
.genre-head { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; column-gap: clamp(24px, 4vw, 56px); }
.genre-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 18px; transform: rotate(-1.2deg);
  background: color-mix(in srgb, var(--fb, var(--signal)) 16%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fb, var(--signal)) 45%, transparent), 0 22px 50px -18px color-mix(in srgb, var(--fb, var(--signal)) 55%, transparent); }
.genre-mosaic .thumb { border-radius: 10px; }
.genre-mosaic.n3 .thumb:first-child { grid-column: span 2; }
@media (max-width: 860px) { .genre-head { grid-template-columns: 1fr; row-gap: 18px; } .genre-mosaic { transform: none; } }
@media (max-width: 860px) { .guide-head { grid-template-columns: 1fr; row-gap: 18px; } }
.prose { max-width: 780px; padding-bottom: 40px; }
.prose h1 { margin: 14px 0 10px; }
.prose h2 { margin: 30px 0 10px; font-size: 1.4rem; }
.prose p, .prose li { max-width: 68ch; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
/* Le fil d'Ariane reste sur une ligne dans les pages de texte */
.prose .crumbs ol { display: flex; padding-left: 0; }
.faq { display: grid; gap: 10px; max-width: 80ch; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details > div { padding-bottom: 14px; color: var(--muted); }
.faq details > div p + p { margin-top: 8px; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--signal); border-radius: 8px; padding: 14px 16px; }
.draft { border-left-color: var(--danger); }

/* ---------------------------------------------------------------- mise en avant */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.offer-price { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 2.2rem; line-height: 1; }
.offer-price small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.offer .btn { margin-top: 8px; }
.promise { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 22px; display: grid; gap: 8px; }
.promise h2 { font-size: 1.4rem; }
.form { display: grid; gap: 16px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field .help { color: var(--muted); font-size: 0.84rem; }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--signal-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-msg.ok { background: color-mix(in srgb, var(--rise) 16%, var(--surface)); border: 1px solid var(--rise); }
.form-msg.err { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border: 1px solid var(--danger); }

/* ---------------------------------------------------------------- 404 */
.notfound { padding: clamp(40px, 8vw, 100px) 0; display: grid; gap: 16px; justify-items: start; }
.notfound .big { font-family: var(--font-mono); font-size: clamp(3rem, 12vw, 7rem); font-weight: 700; color: var(--signal-text); line-height: 1; }

/* ---------------------------------------------------------------- pied de page */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.9rem; margin-top: 24px; background: var(--bg-alt); }
.foot-in { display: grid; gap: 22px; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 1000px) and (min-width: 761px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }
.foot p + p { margin-top: 8px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; margin-bottom: 8px; }
.foot h2 { font-size: 0.72rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; font-weight: 500; font-stretch: 100%; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; }
.foot ul a { color: var(--ink); display: inline-block; padding: 7px 0; }
.foot-promo { font-size: 0.86rem; }

/* ---------------------------------------------------------------- outils du radar (accueil) */
.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool { display: grid; align-content: start; gap: 8px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color 0.18s, transform 0.18s; }
.tool:hover { border-color: var(--signal-text); transform: translateY(-2px); }
.tool-icon { width: 36px; height: 36px; padding: 7px; border-radius: 10px; fill: var(--on-signal); background: var(--signal); }
.tool-title { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: 1.08rem; line-height: 1.15; }
.tool-text { color: var(--muted); font-size: 0.92rem; }

/* ---------------------------------------------------------------- pages du classement */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.pager-btn { font: inherit; font-weight: 700; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.pager-btn:hover:not(:disabled) { border-color: var(--ink); }
.pager-btn[aria-current="page"] { background: var(--signal); color: var(--on-signal); border-color: transparent; }
.pager-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------------------------------------------------------------- analyse ta map */
.checker { display: grid; gap: 8px; max-width: 560px; margin: 6px 0 18px; }
.checker label { font-weight: 700; }
.checker-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checker-row input { flex: 1 1 220px; font-family: var(--font-mono); font-size: 1.1rem; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); min-height: 48px; }
.checker .help { color: var(--muted); font-size: 0.84rem; }
.checker-result:empty, .quiz-result:empty { display: none; }
.checker-wait { color: var(--muted); padding: 8px 0; }
.checker-card { display: grid; gap: 12px; max-width: 900px; margin-bottom: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.checker-card .eyebrow { margin-bottom: 0; }
.checker-card h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); overflow-wrap: break-word; }
.checker-card h3 { margin-top: 6px; }
.checker-by { color: var(--muted); margin-top: -6px; }
.checker-score { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.checker-num { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 2.6rem; line-height: 1; white-space: nowrap; }
.checker-num small { font-size: 0.9rem; color: var(--muted); }
.checker-score.tier-rare .checker-num { color: var(--t-rare); }
.checker-score.tier-top .checker-num { color: var(--t-top); }
.checker-score.tier-ok .checker-num { color: var(--t-ok); }
.checker-label { font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 8px; align-items: baseline; }
.checks li > span:first-child { flex: none; width: 1.2em; font-weight: 900; }
.checks .ok > span:first-child { color: var(--rise); }
.checks .ko > span:first-child { color: var(--danger); }
.checks em { color: var(--muted); font-style: normal; }

/* ---------------------------------------------------------------- quiz */
.quiz { display: grid; gap: 16px; max-width: 860px; margin-bottom: 18px; }
.quiz fieldset { margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.quiz legend { padding: 0 6px; font-family: var(--font-display); font-weight: 800; font-stretch: 115%; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 600; }
.choice span:hover { border-color: var(--ink); }
.choice input:checked + span { background: var(--signal); color: var(--on-signal); border-color: transparent; }
.choice input:focus-visible + span { outline: 3px solid var(--signal-text); outline-offset: 2px; }
.quiz-result h2 { margin-bottom: 12px; }
.quiz-result .note { margin-bottom: 12px; }

/* Bandeau d'annonce réglé dans l'admin (onglet « Bandeau et réseaux ») */
.site-banner { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.92rem; line-height: 1.45; }
.site-banner .wrap { padding-top: 10px; padding-bottom: 10px; }
.site-banner a { font-weight: 700; color: var(--signal-text); }
.site-banner.is-promo { background: var(--signal); color: var(--on-signal); border-bottom-color: transparent; }
.site-banner.is-promo a { color: var(--on-signal); text-decoration: underline; }
.site-banner.is-alerte { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); border-bottom-color: var(--danger); }
.site-banner.is-alerte a { color: var(--ink); text-decoration: underline; }
.foot-social a { font-weight: 600; }

/* Page « Tous les guides » */
.guides-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.guides-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); line-height: 1.45; }
.guides-list a { text-decoration: none; }
.guides-list a:hover strong { text-decoration: underline; }
.guides-count, .guides-intro { color: var(--muted); font-size: 0.88rem; }
