/* =========================================================
   Présidentielle 2027 — sobre, organique, haut de gamme.
   Palette volontairement non partisane : indigo, violet, lumière dorée.
   Aucun rouge, bleu franc ou vert associés à un camp.
   ========================================================= */
:root {
  --night-0: #06081a;
  --night-1: #0a0e26;
  --night-2: #11173a;
  --on-night: #f1f2ff;
  --on-night-2: #aab0d6;
  --on-night-3: #6e769d;
  --night-line: rgba(255, 255, 255, .08);

  --bg: #f5f5f9;
  --surface: #ffffff;
  --surface-2: #f7f7fb;
  --ink: #0f1226;
  --ink-2: #4b506c;
  --ink-3: #8389a3;
  --line: #e6e7ef;
  --line-2: #d6d8e4;

  --a1: #7280ff;   /* indigo */
  --a2: #a77bff;   /* violet */
  --a3: #f3c77a;   /* lumière dorée */
  --accent: #5463f0;
  --grad: linear-gradient(100deg, var(--a1), var(--a2));
  --halo: conic-gradient(from 210deg, transparent 0 52%, var(--a1) 66%, var(--a2) 78%, var(--a3) 88%, transparent 96%);

  --ok: #1f7a52;
  --warn: #9a5b00; --warn-bg: #fdf1dc;
  --bad: #b4283c;  --bad-bg: #fbe5e8;

  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;   /* titres et noms uniquement, en grand */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 16px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --top: 74px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a1c; --surface: #0e1229; --surface-2: #131834;
    --ink: #eef0ff; --ink-2: #b3b8d8; --ink-3: #7d83a8;
    --line: #1d2346; --line-2: #2a3157;
    --accent: #949fff; --ok: #7fd6a8; --warn: #f2c26b; --warn-bg: #33270f; --bad: #ff98a6; --bad-bg: #3a1720;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070a1c; --surface: #0e1229; --surface-2: #131834;
  --ink: #eef0ff; --ink-2: #b3b8d8; --ink-3: #7d83a8;
  --line: #1d2346; --line-2: #2a3157;
  --accent: #949fff; --ok: #7fd6a8; --warn: #f2c26b; --warn-bg: #33270f; --bad: #ff98a6; --bad-bg: #3a1720;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: 0; font-variant-numeric: lining-nums; margin: 0; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 8px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- barre du haut : verre flouté, filet de séparation, ombre douce ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad); color: var(--on-night);
}
/* le verre est porté par un pseudo-élément pour que la mention accrochée dessous puisse flouter elle aussi */
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(9, 12, 34, .82); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .65); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(160,170,255,.16), rgba(170,160,255,.34) 50%, rgba(160,170,255,.16)); }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font: 700 28px/1.05 var(--display); font-variant-numeric: lining-nums; }
.brand-dates { font-size: 12.5px; font-weight: 500; color: #dcdff8; margin-top: 4px; letter-spacing: .01em; }
.brand-dates sup { font-size: .7em; line-height: 0; }
.topnav { display: flex; align-self: stretch; gap: 30px; }
.topnav a { position: relative; z-index: 1; display: flex; align-items: center; text-decoration: none; font: 600 14px/1 var(--font); color: var(--on-night-2); transition: color .25s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--a1), var(--a2));
  box-shadow: 0 0 12px rgba(150,130,255,.75); opacity: 0; transform: scaleX(.3); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.topnav a:hover { color: var(--on-night); }
.topnav a:hover::after { opacity: .4; transform: scaleX(.6); }
.topnav a[aria-current="page"] { color: #fff; }
.topnav a[aria-current="page"]::after { opacity: 1; transform: none; }
.topnav a:focus-visible { outline-offset: -8px; }

/* mention posée sur le fond, juste sous la barre (--top = hauteur de la barre à chaque largeur, + 1 px de filet) :
   elle semble en faire partie, mais défile avec la page. Alignée sur le titre, arrondie en bas seulement. */
.notice { position: absolute; top: calc(var(--top) + 1px); left: var(--pad); max-width: calc(100% - 2 * var(--pad));
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px 7px 12px; border-radius: 0 0 14px 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--night-line); border-top: 0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 13px; color: var(--on-night-2); }
.notice b { color: var(--on-night); font-weight: 600; }
.notice a { color: inherit; }
.notice i { width: 7px; height: 7px; border-radius: 50%; background: var(--a3); flex: none; box-shadow: 0 0 0 4px rgba(243,199,122,.14), 0 0 12px rgba(243,199,122,.6); }

/* la scène sombre passe sous la barre, pour que le verre ait quelque chose à flouter */
#app > .stage:first-child { margin-top: calc(-1 * var(--top)); padding-top: var(--top); }

/* ---------- scène sombre : façade floutée, pans lumineux, horizon ---------- */
.stage { position: relative; overflow: hidden; color: var(--on-night); isolation: isolate;
  background: radial-gradient(120% 70% at 50% 0%, #121a44 0%, var(--night-1) 45%, var(--night-0) 100%); }
.monument { position: absolute; left: 50%; top: 10px; width: min(1100px, 120vw); transform: translateX(-50%); z-index: -3; pointer-events: none;
  opacity: .16; filter: blur(5px); color: #c9cff5;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 85%); mask: linear-gradient(180deg, #000 30%, transparent 85%); }
.glow { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 50% at 8% 95%, rgba(114,128,255,.45), transparent 70%),
    radial-gradient(35% 45% at 98% 80%, rgba(167,123,255,.40), transparent 70%),
    radial-gradient(30% 30% at 75% 10%, rgba(243,199,122,.10), transparent 70%); }
.wedge { position: absolute; z-index: -2; pointer-events: none; width: 34vw; height: 120%; top: -10%; }
.wedge.l { left: -22vw; transform: skewX(-22deg); background: linear-gradient(180deg, transparent 30%, rgba(114,128,255,.22) 75%, rgba(114,128,255,.45)); border-right: 1px solid rgba(160,170,255,.25); }
.wedge.r { right: -24vw; transform: skewX(-22deg); background: linear-gradient(180deg, transparent 20%, rgba(167,123,255,.20) 65%, rgba(201,162,255,.40)); border-left: 1px solid rgba(201,162,255,.25); }
.horizon { position: absolute; left: -10%; right: -10%; bottom: -160px; height: 260px; z-index: -1; pointer-events: none; border-radius: 50%;
  border-top: 1px solid rgba(160,170,255,.35);
  background: radial-gradient(50% 60% at 50% 0%, rgba(114,128,255,.28), transparent 70%); }
.grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.home-stage { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.home { padding-block: 28px 70px; }
.home-top { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.rail-nav { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.03); color: var(--on-night); display: grid; place-items: center; transition: background .25s, border-color .25s, transform .2s var(--ease-out); }
.round:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }
.round:active { transform: scale(.94); }

/* ---------- rail de cartes ---------- */
.rail { --w: 236px; list-style: none; margin: 0; padding: 70px var(--pad) 26px; display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
          mask: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); }
.rail::-webkit-scrollbar { display: none; }
.rail li { flex: none; scroll-snap-align: start; }
.progress { position: relative; height: 2px; margin: 10px var(--pad) 0; max-width: 320px; margin-inline: auto; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.progress i { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; border-radius: 2px; background: var(--grad); }

.card { --c: var(--a1); position: relative; display: block; width: var(--w); height: 552px; text-decoration: none; color: var(--on-night); -webkit-tap-highlight-color: transparent; }
.card-streak { /* trait de lumière oblique, à la manière des références */
  position: absolute; left: 10px; top: 40px; width: 3px; height: 230px; border-radius: 3px; z-index: 0;
  background: linear-gradient(180deg, transparent, var(--c) 45%, transparent); transform: skewX(-24deg); opacity: .55;
  filter: drop-shadow(0 0 8px var(--c)); transition: opacity .5s var(--ease-out), height .6s var(--ease-out); }
/* Panneau sans cadre : deux filets verticaux et un fond qui se fondent en haut et en bas. */
.card-panel { position: absolute; inset: 130px 0 0; z-index: 0;
  border-inline: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(26,33,84,.45), rgba(12,16,46,.7) 55%, rgba(8,11,32,.55));
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 32%, #000 68%, transparent 100%);
          mask: linear-gradient(180deg, transparent 0, #000 32%, #000 68%, transparent 100%);
  transition: border-color .5s var(--ease-out), top .6s var(--ease-out); }
.card-panel::before, .card-panel::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease-out); }
.card-panel::before { /* fond plus présent au survol */
  background: linear-gradient(180deg, rgba(34,42,104,.5), rgba(16,21,60,.75) 55%, rgba(10,14,40,.6)); }
.card-panel::after { /* lueur de couleur, discrète */
  background: radial-gradient(90% 45% at 50% 38%, color-mix(in srgb, var(--c) 30%, transparent), transparent 72%); }
.card-photo { position: absolute; left: 0; right: 0; top: 12px; z-index: 1; aspect-ratio: 4 / 5; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 56%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 56%, transparent 96%);
  mask-composite: intersect; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1) contrast(1.06) brightness(.97);
  transform-origin: 50% 85%; transition: filter .6s var(--ease-out), transform .8s var(--ease-out); }
.card-photo .initials { position: absolute; left: 50%; top: 170px; transform: translateX(-50%); width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font: 700 28px var(--display); color: var(--on-night-2); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.card-line { position: absolute; left: 0; top: 318px; width: 3px; height: 58px; border-radius: 3px; z-index: 2; background: var(--c); box-shadow: 0 0 14px var(--c); transition: height .5s var(--ease-out); }
.card-body { position: absolute; left: 22px; right: 18px; top: 306px; z-index: 2; }
.card h3 { font: 700 27px/1 var(--display); font-variant-numeric: lining-nums; }
.card h3 span { display: block; }
.card-party { margin: 8px 0 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--on-night-2); }
.card-meta { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.09); display: grid; gap: 5px; }
.card-meta li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; color: var(--on-night-2); }
.card-meta .ico { width: 14px; height: 14px; margin-top: 1px; color: var(--on-night-3); }
.card-go { position: absolute; left: 22px; bottom: 20px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); transition: background .3s, border-color .3s, transform .35s var(--ease-out); }
.card-go .ico { width: 16px; height: 16px; }
.valid { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 10px; font-size: 11px; font-weight: 600; color: var(--a3); }
.valid .ico { width: 12px; height: 12px; stroke-width: 2.4; }

@media (hover: hover) {
  .card:hover .card-photo img { filter: none; transform: scale(1.035); }
  .card:hover .card-panel { top: 118px; border-color: color-mix(in srgb, var(--c) 60%, transparent); }
  .card:hover .card-panel::before, .card:hover .card-panel::after { opacity: 1; }
  .card:hover .card-streak { opacity: 1; height: 290px; }
  .card:hover .card-line { height: 84px; }
  .card:hover .card-go { background: var(--on-night); color: var(--night-0); border-color: var(--on-night); transform: translateX(4px); }
}
.card:focus-visible { outline: none; }
.card:focus-visible .card-panel, .card[aria-current="true"] .card-panel { top: 118px; border-color: var(--c); }
.card:focus-visible .card-photo img, .card[aria-current="true"] .card-photo img { filter: none; }
.card:focus-visible .card-panel::before, .card:focus-visible .card-panel::after,
.card[aria-current="true"] .card-panel::before, .card[aria-current="true"] .card-panel::after { opacity: 1; }
.card[aria-current="true"] .card-go { background: var(--on-night); color: var(--night-0); border-color: var(--on-night); }
.rail.has-sel .card:not([aria-current="true"]) .card-body, .rail.has-sel .card:not([aria-current="true"]) .card-photo { opacity: .55; transition: opacity .4s var(--ease-out); }
/* au survol (ou au clavier), une carte estompée redevient pleinement opaque, comme la carte sélectionnée */
@media (hover: hover) {
  .rail.has-sel .card:not([aria-current="true"]):hover .card-body, .rail.has-sel .card:not([aria-current="true"]):hover .card-photo { opacity: 1; }
}
.rail.has-sel .card:not([aria-current="true"]):focus-visible .card-body, .rail.has-sel .card:not([aria-current="true"]):focus-visible .card-photo { opacity: 1; }

/* ---------- onglets (comparateur) ---------- */
.tabs { position: sticky; top: var(--top); z-index: 20; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 0 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 14px 13px; font-size: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: color .2s; }
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs .ink { position: absolute; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); left: 0; width: 0; transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }

/* ---------- éléments partagés ---------- */
.prop { margin: 0 0 14px; }
.prop:last-child { margin-bottom: 0; }
.prop p { margin: 0 0 3px; }
.prop-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.meta { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; }
.src { font-size: 11.5px; color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.src:hover { color: var(--accent); border-color: var(--accent); }
.date { font-size: 11.5px; color: var(--ink-3); }
.warn { font-size: 12.5px; color: var(--warn); margin: 4px 0 0; }
.empty { color: var(--ink-3); font-size: 13.5px; margin: 0; }
.pill { font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; line-height: 20px; white-space: nowrap; }
.p-definitive { color: var(--bad); background: var(--bad-bg); }
.p-non-definitive { color: var(--warn); background: var(--warn-bg); }
.p-a-verifier { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 14px; margin: 0 0 10px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.srctable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.srctable th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.srctable td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.srctable tr:last-child td { border-bottom: 0; }
.srctable a { color: var(--accent); text-decoration: none; font-weight: 500; }
.srctable .sub { display: block; color: var(--ink-3); font-size: 12.5px; }
.srctable .num { white-space: nowrap; color: var(--ink-2); }

/* ---------- fiche affichée sous les cartes : toujours sombre, dans la continuité de la scène ---------- */
.sheet-zone { background: #0b1122; }   /* pas d'éclair clair pendant l'apparition */
.fiche {
  /* Palais Bourbon, domaine public (Wikimedia Commons). Chargé à distance pour le moment. */
  --palais: url("https://thumb.wikimedia.org/wikipedia/commons/thumb/9/9c/Palais_Bourbon%2C_Paris_7e%2C_NW_View_140402_1.jpg/1920px-Palais_Bourbon%2C_Paris_7e%2C_NW_View_140402_1.jpg");
  --bg: #0b1122; --surface: #121a38; --ink: #eef0ff; --ink-2: #b3b8d8; --ink-3: #8f96bd; --line: rgba(150,165,255,.14); --line-2: rgba(150,165,255,.28);
  --accent: #aab5ff; --warn: #f2c26b; --warn-bg: #33270f; --bad: #ff98a6; --bad-bg: #3a1720;
  color-scheme: dark; background: var(--bg); color: var(--on-night); }
.fiche .gut { padding-inline: var(--pad); }
/* récapitulatif d'identité, au-dessus du parcours */
.fiche .recap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-block: 18px 20px; }
.fiche .recap-name { margin: 0; font: 700 30px/1.1 var(--display); font-variant-numeric: lining-nums; color: #fff; }
.fiche .recap dl { display: flex; flex-wrap: wrap; gap: 12px 0; margin: 0; }
.fiche .recap dl > div { padding-inline: 24px; border-left: 1px solid rgba(150,165,255,.28); }
.fiche .recap dt { font-size: 11.5px; color: #8f96bd; }
.fiche .recap dd { margin: 0; font-size: 14px; color: #eef0ff; }
.fiche .recap .nc dd { color: #aab0d6; font-style: italic; }
.fiche .fiche-alert { display: flex; gap: 10px; align-items: flex-start; max-width: 80ch; margin: 20px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #f6d197; background: rgba(243,199,122,.09); border: 1px solid rgba(243,199,122,.3); }
.fiche .fiche-alert .ico { margin-top: 3px; }
.fiche .blk { position: relative; border-top: 1px solid rgba(140,155,255,.28); background: linear-gradient(105deg, #0b1225 0%, #121a38 55%, #0e1630 100%); }
.fiche .blk.alt { background: linear-gradient(255deg, #0a1022 0%, #0f1630 55%, #0b1226 100%); }
.fiche .pad-blk { padding-block: 40px 46px; }
.fiche h2 { font-size: 31px; color: #fff; line-height: 1.1; }
.fiche h2::after { content: ""; display: block; width: 60px; height: 3px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, #62b0ff, #8b59d9); }
.fiche-sub { margin: 30px 0 0; font: 600 12px/1.4 var(--font); letter-spacing: .18em; text-transform: uppercase; color: #9fabf5; }
.fiche .src, .fiche .date { color: #99a0c8; }
.fiche .meta .src:hover { color: #fff; }

.fiche .line { list-style: none; margin: 20px 0 0; padding: 0; }
.fiche .line li { position: relative; padding: 0 0 24px 38px; }
.fiche .line li:last-child { padding-bottom: 0; }
.fiche .line li::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #8f9bff; z-index: 1; }
.fiche .line li:not(:last-child)::after { content: ""; position: absolute; left: 4.75px; top: 14px; bottom: -6px; width: 1.5px; background: rgba(135,148,255,.45); }
.fiche .line .when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15.5px; font-weight: 600; color: #7fa2ff; }
.fiche .line .when em { font-style: normal; font-size: 12px; font-weight: 400; color: #8f96bd; }
.fiche .line .what { display: block; max-width: 80ch; font-size: 14px; line-height: 1.5; color: #d5d9f0; }
.fiche .line h3 { margin: 4px 0 8px; font-size: 21px; line-height: 1.25; color: #fff; }
.fiche .line .kv { margin: 0 0 8px; }
.fiche .line .kv dd { color: #d5d9f0; }
.fiche .line .meta { margin-top: 3px; }
.fiche .nodata { margin: 20px 0 0; font-size: 14px; color: #858cb3; }
.fiche .nodata small { display: block; margin-top: 2px; font-size: 12.5px; }

.fiche .band { display: grid; grid-template-columns: minmax(0, 1fr) 38%; min-height: 392px; }
.fiche .slice { position: relative; }
.fiche .slice .img { position: absolute; inset: 0; background: var(--palais) 60% 50% / cover no-repeat; filter: grayscale(.6) brightness(.86) contrast(1.02);
  -webkit-clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%); }
.fiche .slice .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(70,100,200,.28), rgba(20,30,70,.5)); }
.fiche .slice .blue { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(90,130,255,.65), rgba(100,90,220,.45));
  -webkit-clip-path: polygon(100% 34%, 100% 66%, 80% 100%, 62% 100%); clip-path: polygon(100% 34%, 100% 66%, 80% 100%, 62% 100%); }

.fiche .prog { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fiche .prog > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-content: start; padding: 26px 44px 26px 0; border-bottom: 1px solid var(--line); }
.fiche .prog > li:nth-child(even) { padding: 26px 0 26px 44px; border-left: 1px solid rgba(150,165,255,.22); }
.fiche .prog > li:nth-last-child(-n+2) { border-bottom: 0; }
.fiche .prog svg { width: 48px; height: 48px; fill: none; stroke: #aab5ff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.fiche .prog h3 { font-size: 21px; line-height: 1.2; color: #fff; margin: 2px 0 8px; }
.fiche .prog .prop p { font-size: 14px; line-height: 1.55; color: #d5d9f0; }
.fiche .prog .prop-label { color: #8f9bff; }
.fiche .prog .prop .warn { font-size: 12.5px; color: #f6d197; }
.fiche .prog > li.vide svg { stroke: #5d6590; }
.fiche .prog > li.vide h3 { color: #9aa1c9; margin-bottom: 2px; }
.fiche .prog > li.vide p { margin: 0; font-size: 13.5px; color: #858cb3; }

.fiche .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fiche .pair > div { padding-block: 40px 46px; }
.fiche .pair > div:first-child { padding-inline: var(--pad) 44px; }
.fiche .pair > div:last-child { padding-inline: 44px var(--pad); border-left: 1px solid rgba(150,165,255,.22); }

.fiche .srcwrap { margin-top: 18px; }
.fiche .srctable td, .fiche .srctable th { padding-left: 0; padding-right: 18px; }
.fiche .credit { margin: 20px 0 0; font-size: 12px; color: #858cb3; }
.fiche .foot { padding-bottom: 70px; }

@media (max-width: 1100px) {
  .fiche .band { grid-template-columns: minmax(0, 1fr) 28%; }
}
@media (max-width: 860px) {
  .fiche .band, .fiche .prog, .fiche .pair { grid-template-columns: minmax(0, 1fr); }
  .fiche .slice { display: none; }
  .fiche .recap dl { flex-direction: column; }
  .fiche .recap dl > div { padding-inline: 14px 0; }
  .fiche .prog > li, .fiche .prog > li:nth-child(even) { padding: 22px 0; border-left: 0; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .fiche .prog > li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .fiche .prog svg { width: 36px; height: 36px; }
  .fiche .pair > div:first-child, .fiche .pair > div:last-child { padding-inline: var(--pad); }
  .fiche .pair > div:last-child { border-left: 0; border-top: 1px solid rgba(150,165,255,.22); }
}

/* ---------- comparer ---------- */
.page-head { position: relative; padding-block: 40px 34px; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; }
.page { padding-block: 34px 80px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255,255,255,.04); color: var(--on-night-2); font-size: 13.5px; font-weight: 500; transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease-out); }
.chip:hover { color: var(--on-night); border-color: rgba(255,255,255,.2); }
.chip:active { transform: scale(.96); }
.chip .av { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--on-night-3); background: linear-gradient(180deg, #1b2152, #0d1030); }
.chip .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1); transition: filter .3s; }
.chip[aria-pressed="true"] { background: var(--on-night); color: var(--night-0); border-color: var(--on-night); }
.chip[aria-pressed="true"] .av img { filter: none; }
.picks-actions { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; }
.picks-actions button { border: 0; background: none; padding: 0; color: var(--on-night-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--night-line); }
.picks-actions button:hover { color: var(--on-night); }

.board-wrap { max-height: calc(100vh - var(--top) - 100px); overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overscroll-behavior: contain; }
.board { --label-w: 190px; --col-w: 270px; display: grid; grid-template-columns: var(--label-w) repeat(var(--n, 1), var(--col-w)); width: max-content; min-width: 100%; }
.row { display: contents; }
.cell { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); font-size: 14px; min-width: 0; }
.rowlabel { position: sticky; left: 0; z-index: 4; background: var(--surface-2); font: 700 13px/1.35 var(--font); }
.chead { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.chead .av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-night-3); background: linear-gradient(180deg, #1b2152, #0d1030); }
.chead .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.chead b { font: 700 19px/1.1 var(--display); font-variant-numeric: lining-nums; }
.chead small { display: block; color: var(--ink-3); font-size: 12px; }
.chead:hover b { color: var(--accent); }
.corner { position: sticky; top: 0; left: 0; z-index: 8; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.hint { padding: 56px 24px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* ---------- méthode ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.prose td, .prose th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- apparitions (parcimonieuses) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rail li { animation: reveal .8s var(--ease-out) both; animation-delay: calc(80ms + var(--i) * 50ms); }
  @keyframes reveal { from { opacity: 0; transform: translateY(22px); } }
  .fiche { animation: fadein .5s var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  :root { --top: 62px; }
  body { font-size: 14.5px; }
  .topbar { gap: 8px; padding: 0 14px; }
  .brand { flex: none; white-space: nowrap; }
  .brand-title { font-size: 20px; }
  .brand-dates { font-size: 10.5px; }
  .topnav { gap: 9px; }
  .topnav a { font-size: 12px; }
  .home { padding-block: 20px 36px; }
  .notice { left: 14px; max-width: calc(100% - 28px); font-size: 12px; align-items: flex-start; }
  .notice i { margin-top: 5px; }
  .rail { --w: 66vw; gap: 14px; padding-top: 40px; }
  .rail-nav { display: none; }
  .home-top { margin-bottom: 8px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 6px; }
  .board { --label-w: 92px; --col-w: 72vw; }
  .board-wrap { scroll-snap-type: x mandatory; scroll-padding-left: 92px; }
  .chead { scroll-snap-align: start; }
  .rowlabel { font-size: 12px; }
  .srctable thead { display: none; }
  .srctable tr { display: block; padding: 10px 18px; border-bottom: 1px solid var(--line); }
  .srctable td { display: block; padding: 1px 0; border: 0; }
}
