/* =====================================================================
   ALCOOLISME — Archives du lore
   ===================================================================== */

@property --remplissage {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --bg: #100e0b;
  --bg-2: #1b1813;
  --bg-3: #29231b;
  --line: rgba(243, 234, 214, 0.11);
  --text: #f3ead6;
  --muted: #b3a48f;
  --paper: #efe3c6;
  --paper-2: #e2d2aa;
  --ink: #231a11;
  --ink-soft: #5d4c39;
  --red: #d62b1f;
  --red-2: #ff5a4e;
  --amber: #f5a90b;
  --amber-2: #ffcf4a;
  --foam: #fff4d6;
  --yellow: #ffe45c;

  --f-display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --f-type: "Special Elite", "Courier New", Courier, monospace;
  --f-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .08 0 0 0 0 .03 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --grunge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 0 0 0 2.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--noise), radial-gradient(1200px 620px at 50% -12%, #3b2b12 0%, transparent 62%);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 3px; }
#app:focus { outline: none; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--amber); color: #000; padding: .5em 1em; border-radius: 8px;
}
.skip:focus { left: 12px; }

kbd {
  font-family: var(--f-type); color: var(--amber-2);
  background: var(--bg-3); border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 6px; padding: .05em .45em;
}

.noscript { text-align: center; padding: 60px 16px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 20px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(16, 14, 11, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo-mug { font-size: 1.7rem; display: inline-block; transition: transform .3s; }
.logo:hover .logo-mug { transform: rotate(-25deg) scale(1.15); }
.logo-txt { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .06em; line-height: 1; color: var(--amber-2); }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: .45em .9em; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a.actif { color: var(--text); background: var(--bg-3); }

.btn-bourre {
  cursor: pointer; border: 2px solid var(--amber); background: transparent; color: var(--amber-2);
  padding: .38em .9em; border-radius: 999px; font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}
.btn-bourre:hover { transform: rotate(-3deg); }
.btn-bourre[aria-pressed="true"] { background: var(--amber); color: #1a1206; }

/* ---------- Flash info ---------- */
.ticker { display: flex; background: var(--red); color: #fff; font-weight: 700; overflow: hidden; border-bottom: 3px solid #000; }
.ticker-label {
  flex: none; display: flex; align-items: center; padding: .5em 1em; background: #111;
  font-family: var(--f-display); font-weight: 400; letter-spacing: .08em; white-space: nowrap;
}
.ticker-track {
  flex: 1; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-move { display: flex; width: max-content; animation: defiler 45s linear infinite; }
.ticker-move:hover { animation-play-state: paused; }
.ticker-item { white-space: nowrap; padding: .5em 0; text-transform: uppercase; letter-spacing: .02em; }
.ticker-item::after { content: "✦"; margin: 0 1.2em; opacity: .7; }
@keyframes defiler { to { transform: translateX(-50%); } }

/* ---------- Page ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 70px; }

.section { margin-top: clamp(48px, 8vw, 90px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 20px; margin-bottom: 22px; padding-bottom: 10px; border-bottom: 2px dashed var(--line);
}
.section-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: .02em; line-height: 1.05; margin: 0; }
.section-note { font-family: var(--f-type); color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Tampons ---------- */
.stamp {
  display: inline-block;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; line-height: 1;
  color: var(--red); border: .16em solid currentColor; border-radius: .22em;
  padding: .2em .45em .12em;
  transform: rotate(-10deg);
  -webkit-mask-image: var(--grunge); mask-image: var(--grunge);
  -webkit-mask-size: 180px; mask-size: 180px;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.stamp.gris { color: #7a7064; }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; padding-block: clamp(10px, 4vw, 40px) 10px; }
.hero-kicker { font-family: var(--f-type); color: var(--muted); letter-spacing: .08em; font-size: .92rem; margin: 0 0 .7rem; }
.hero-title {
  --remplissage: 0%;
  margin: 0;
  font-family: var(--f-display); font-weight: 400; line-height: .9; letter-spacing: .01em;
  font-size: clamp(3.4rem, 15vw, 11.5rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--foam);
  background-image: linear-gradient(to top,
    var(--amber) 0 var(--remplissage),
    var(--foam) var(--remplissage) calc(var(--remplissage) + 8%),
    transparent calc(var(--remplissage) + 8%));
  -webkit-background-clip: text; background-clip: text;
  animation: remplir 3.2s cubic-bezier(.3, .7, .2, 1) .3s forwards;
}
@keyframes remplir { to { --remplissage: 74%; } }
.hero-sub { max-width: 58ch; font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin: 1.2rem 0 0; }
.hero-sub strong { color: var(--amber-2); }
.hero .stamp { position: absolute; right: clamp(0px, 2vw, 30px); top: clamp(0px, 3vw, 40px); font-size: clamp(1rem, 3vw, 2.2rem); transform: rotate(13deg); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 2rem; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-val { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; color: var(--amber-2); font-variant-numeric: tabular-nums; }
.stat-val.rouge { color: var(--red-2); }
.stat-val.vert { color: #6fd39a; }
.stat-lab { color: var(--muted); font-size: .9rem; margin-top: .35rem; }

@media (max-width: 560px) {
  .topbar { position: static; gap: 8px 10px; padding-block: 8px; }
  .logo-mug { font-size: 1.4rem; }
  .logo-txt { font-size: 1.35rem; }
  .nav { gap: 4px; }
  .nav a { padding: .35em .65em; font-size: .92rem; }
  .btn-bourre { padding: .3em .7em; font-size: .88rem; }
  .hero-kicker { padding-right: 104px; }
}

/* ---------- Cartes des fiches ---------- */
.grid-fiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 30px 22px; }
.card {
  --tilt: 0deg;
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  background-color: var(--paper); background-image: var(--paper-noise);
  border-radius: 6px; padding: 10px 10px 14px;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt));
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 86px; height: 24px; z-index: 5;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 244, 200, .5); box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.card:hover, .card:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 28px 50px -20px rgba(0, 0, 0, .9); }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 4px 0; }
.card-name { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1; letter-spacing: .02em; margin: 0; }
.card-accroche { font-size: .92rem; color: var(--ink-soft); margin: 0; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card .stamp { position: absolute; top: 22px; right: 10px; z-index: 6; font-size: .95rem; transform: rotate(12deg); }

.chip {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--f-type); font-size: .8rem; padding: .2em .6em; border-radius: 999px;
  background: rgba(35, 26, 17, .08); border: 1px solid rgba(35, 26, 17, .22); color: var(--ink);
}
.chip-aura { background: #16110b; border-color: #16110b; color: var(--red-2); }
.chip-aura-pos { color: #6fd39a; }

/* ---------- Intermittents ---------- */
.grid-int { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 26px 18px; }
.card-int { background-color: #e4ddc8; }
.card-int::before { background: rgba(170, 205, 235, .45); }
.card-int .card-name { font-size: 1.45rem; }
.card-int .stamp.gris { color: #4f6b86; }
.card-dechu { filter: grayscale(1); }
.card-dechu:hover, .card-dechu:focus-visible { filter: grayscale(.35); }
.card-dechu .card-name { text-decoration: line-through var(--red) 3px; }
.card-int .mug { animation: intermittence 9s steps(1, end) infinite; animation-delay: var(--delai, 0s); }
.card-name small { font-family: var(--f-type); font-size: .5em; letter-spacing: .02em; color: var(--ink-soft); }
@keyframes intermittence {
  0%, 90%, 100% { opacity: 1; }
  91% { opacity: .15; }
  92.5% { opacity: 1; }
  94% { opacity: .3; }
  95% { opacity: 1; }
}
.slot-name small { display: block; margin-top: .2em; font-family: var(--f-type); font-size: .3em; letter-spacing: .06em; color: var(--muted); }

/* ---------- Photo d'identité judiciaire ---------- */
.mug { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; isolation: isolate; border-radius: 3px; background: linear-gradient(#dedad1, #c7c2b5); font-size: .9rem; }
.mug-chart {
  position: absolute; inset: 0; z-index: 1;
  background-image: repeating-linear-gradient(to bottom, rgba(25, 25, 25, .5) 0 2px, transparent 2px 12.5%);
}
.mug-chart span { position: absolute; right: 6px; font-family: var(--f-type); font-size: .7em; color: rgba(25, 25, 25, .75); transform: translateY(3px); }
.mug-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.mug.has-photo .mug-chart { opacity: .3; mix-blend-mode: multiply; }
.mug-silhouette { position: absolute; left: 50%; bottom: 0; z-index: 2; width: 80%; transform: translateX(-50%); color: #3b362f; }
.mug-plate {
  position: absolute; left: 50%; bottom: 7%; z-index: 3;
  transform: translateX(-50%) rotate(-1deg);
  min-width: 64%; padding: .3em .7em .35em; text-align: center; line-height: 1.15;
  background: #121212; color: #f1f1f1; border: 2px solid #3a3a3a;
  font-family: var(--f-type); box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
.mug-plate b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.3em; letter-spacing: .06em; }
.mug-plate small { display: block; font-size: .72em; letter-spacing: .08em; opacity: .8; }

/* ---------- Accueil : classement + unités ---------- */
.duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-row {
  display: grid; grid-template-columns: 2.4rem minmax(0, 7.5rem) 1fr auto; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.lb-rank { font-family: var(--f-display); font-size: 1.5rem; color: var(--muted); text-align: center; }
.lb-row.champion { border-color: rgba(255, 90, 78, .5); background: linear-gradient(90deg, rgba(214, 43, 31, .18), var(--bg-2) 60%); }
.lb-row.champion .lb-rank { color: var(--red-2); }
.lb-row.flex { border-color: rgba(111, 211, 154, .5); background: linear-gradient(90deg, rgba(47, 125, 79, .2), var(--bg-2) 60%); }
.lb-row.flex .lb-rank { color: #6fd39a; }
.lb-name { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name:hover { color: var(--amber-2); }
.lb-bar { height: 10px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--red-2)); }
.lb-bar.positif i { background: linear-gradient(90deg, #2f7d4f, #6fd39a); }
.lb-val { font-family: var(--f-type); font-size: .9rem; color: var(--muted); white-space: nowrap; }
.lb-val.rouge { color: var(--red-2); }
.lb-val.vert { color: #6fd39a; }
.lb-row.lb-vides { grid-template-columns: 2.4rem minmax(0, 1fr); }
.lb-vides p { margin: 0; color: var(--muted); font-size: .92rem; }
.lb-vides b { color: var(--text); font-weight: 500; }
.lb-vides a { color: var(--muted); text-decoration-color: rgba(179, 164, 143, .4); }
.lb-vides a:hover { color: var(--amber-2); }
@media (max-width: 560px) {
  .lb-row { grid-template-columns: 2rem 1fr auto; row-gap: 6px; }
  .lb-val { grid-row: 1; grid-column: 3; }
  .lb-bar { grid-row: 2; grid-column: 2 / -1; }
}

.unites {
  background-color: var(--paper); background-image: var(--paper-noise); color: var(--ink);
  border-radius: 6px; padding: 18px 20px; box-shadow: var(--shadow); transform: rotate(.7deg);
  font-family: var(--f-type);
}
.unites h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; letter-spacing: .02em; margin: 0 0 .15rem; }
.unites .sous { margin: 0 0 .9rem; font-size: .85rem; color: var(--ink-soft); }
.unites dl { margin: 0; display: grid; gap: 8px; }
.unites dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 7px; border-bottom: 1px dashed rgba(35, 26, 17, .3); }
.unites dt { font-weight: bold; }
.unites dd { margin: 0; text-align: right; }

/* ---------- Qui paye la tournée ---------- */
.slot {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #2e2516, #15110b);
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 38px);
}
.slot-window {
  max-width: 520px; margin: 0 auto 18px; padding: 18px 12px;
  background: #0b0906; border: 3px solid var(--amber); border-radius: 16px;
  box-shadow: inset 0 0 30px rgba(245, 169, 11, .18), 0 0 0 6px rgba(245, 169, 11, .08);
}
.slot-name { font-family: var(--f-display); font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.05; letter-spacing: .03em; color: var(--amber-2); }
.slot.tourne .slot-name { filter: blur(1.4px); }
.slot-reason { min-height: 3.2em; max-width: 48ch; margin: 0 auto 18px; font-size: 1.05rem; }
.btn-big {
  cursor: pointer; border: 0; border-radius: 999px; padding: .6em 1.6em;
  font-family: var(--f-display); font-size: 1.35rem; letter-spacing: .05em;
  background: var(--amber); color: #1a1206; box-shadow: 0 6px 0 #a86f00;
  transition: transform .1s, box-shadow .1s;
}
.btn-big:active { transform: translateY(4px); box-shadow: 0 2px 0 #a86f00; }
.btn-big:disabled { opacity: .65; cursor: progress; }

/* ---------- Fiche membre ---------- */
.fiche-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.back, .pager a { text-decoration: none; color: var(--muted); font-weight: 500; padding: .4em .85em; border-radius: 999px; border: 1px solid var(--line); }
.back:hover, .pager a:hover { color: var(--text); background: var(--bg-3); }
.pager { display: flex; gap: 8px; }

.dossier {
  position: relative; margin-top: 36px;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 90% 8%, transparent 0 50px, rgba(140, 90, 20, .2) 51px 57px, transparent 59px),
    radial-gradient(circle at 92.5% 10.5%, transparent 0 46px, rgba(140, 90, 20, .1) 47px 50px, transparent 52px),
    var(--paper-noise);
  color: var(--ink);
  border-radius: 0 14px 14px 14px;
  padding: clamp(20px, 4vw, 44px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85);
  overflow-x: clip;
}
.dossier-tab {
  position: absolute; top: -34px; left: 0;
  background: var(--paper); color: var(--ink); font-family: var(--f-type); font-size: .95rem; letter-spacing: .06em;
  padding: 8px 22px 10px; border-radius: 10px 10px 0 0;
}
.dossier-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding-bottom: 16px; margin-bottom: 26px; border-bottom: 3px double rgba(35, 26, 17, .5);
}
.dossier-org { font-family: var(--f-type); font-size: .85rem; letter-spacing: .1em; color: var(--ink-soft); margin: 0; }
.dossier-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 8vw, 4.8rem); line-height: .95; letter-spacing: .01em; margin: .25rem 0 0; }
.dossier-title small { display: block; font-family: var(--f-type); font-size: .3em; letter-spacing: .14em; color: var(--ink-soft); margin-top: .6em; }
.dossier-head .stamp { flex: none; margin-top: 12px; font-size: clamp(.95rem, 2.6vw, 1.6rem); }
@media (max-width: 560px) { .dossier-head { flex-direction: column; } .dossier-head .stamp { align-self: flex-end; margin-top: -4px; } }

.dossier-grid { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 46px); align-items: start; }
@media (max-width: 820px) { .dossier-grid { grid-template-columns: minmax(0, 1fr); } .id-col { max-width: 440px; } }

.id-col { display: flex; flex-direction: column; gap: 18px; }
.mug-lg { font-size: 1.05rem; border: 7px solid #fff; transform: rotate(-1.5deg); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); }

.idtable { margin: 0; font-family: var(--f-type); font-size: .96rem; }
.idtable div { padding: 8px 0; border-bottom: 1px dashed rgba(35, 26, 17, .35); }
.idtable dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.idtable dd { margin: 2px 0 0; }

.redact {
  position: relative; display: inline-block; height: 1em; vertical-align: -.12em;
  background: #15110c; border-radius: 2px; cursor: help; user-select: none;
}
.redact:hover::after {
  content: "bien essayé"; position: absolute; left: 50%; bottom: 135%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: .72rem; padding: .2em .5em; border-radius: 4px; white-space: nowrap;
}

.aura-total { background: #15110c; color: var(--foam); border-radius: 10px; padding: 14px 16px; text-align: center; transform: rotate(1deg); }
.aura-total b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.7rem; line-height: 1; color: var(--red-2); font-variant-numeric: tabular-nums; }
.aura-total b.pos { color: #6fd39a; }
.aura-total span { font-family: var(--f-type); font-size: .8rem; letter-spacing: .14em; }

.main-col { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.block-title { display: flex; align-items: center; gap: .55em; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .03em; line-height: 1.1; margin: 0 0 12px; }
.block-title::before { content: ""; flex: none; width: 13px; height: 13px; background: var(--red); transform: rotate(45deg); }

.resume { font-size: 1.12rem; margin: 0; }
mark { color: inherit; padding: 0 .15em; background: linear-gradient(100deg, transparent 0 1%, var(--yellow) 1% 98%, transparent 98%); }

.surnoms { display: flex; flex-wrap: wrap; gap: 10px; }
.surnom {
  font-family: var(--f-type); background: #fff8e4; border: 2px solid var(--ink); border-radius: 6px;
  padding: .25em .7em; box-shadow: 3px 3px 0 var(--ink); transform: rotate(var(--r, -1deg));
}

.jauges { display: grid; gap: 16px; }
.jauge-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .96rem; margin-bottom: 6px; }
.jauge-top span:last-child { font-family: var(--f-type); font-weight: 400; color: var(--red); white-space: nowrap; }
.jauge-track { position: relative; height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(35, 26, 17, .08); }
.jauge-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 8px, #a91d13 8px 16px);
  transition: width 1.3s cubic-bezier(.2, .9, .2, 1);
}
.jauge.over .jauge-fill { background: repeating-linear-gradient(-45deg, #ff2d1f 0 8px, #ffb020 8px 16px); animation: vibrer .12s linear infinite; }
.jauge.zero .jauge-top span:last-child { animation: clignoter 1s steps(2) infinite; }
@keyframes vibrer { 50% { transform: translate(1px, -1px); } }
@keyframes clignoter { 50% { opacity: 0; } }

.compteur { display: flex; align-items: center; gap: 16px; background: #0e0b08; color: var(--foam); border-radius: 12px; padding: 14px 18px; }
.compteur-val {
  flex: none; font-family: "Courier New", monospace; font-weight: 700; font-size: 3rem; line-height: 1;
  color: #ff3b30; background: #1d0f0c; padding: .1em .35em; border-radius: 6px;
  text-shadow: 0 0 12px rgba(255, 59, 48, .8); font-variant-numeric: tabular-nums;
}
.compteur-lab { font-family: var(--f-type); letter-spacing: .05em; }
.compteur-lab small { display: block; color: var(--muted); font-size: .8rem; }

.dossier-full { margin-top: 40px; }

.incidents { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.incident {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px;
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(35, 26, 17, .18); border-left: 5px solid var(--red);
  border-radius: 8px; padding: 16px 18px;
}
.incident-emoji { display: grid; place-items: center; width: 58px; height: 58px; font-size: 2.1rem; line-height: 1; background: var(--paper-2); border-radius: 50%; }
.incident-num { font-family: var(--f-type); font-size: .75rem; letter-spacing: .14em; color: var(--ink-soft); margin: 0; }
.incident h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; line-height: 1.1; margin: .1rem 0 .4rem; }
.incident p { margin: 0; }
.incident-aura {
  display: inline-flex; align-items: baseline; gap: .5em; margin-top: 10px;
  background: #15110c; color: var(--red-2); font-family: var(--f-display); letter-spacing: .04em;
  padding: .2em .7em; border-radius: 6px;
}
.incident-aura.positive { color: #6fd39a; }
.incident-aura small { font-family: var(--f-type); letter-spacing: 0; font-size: .75rem; color: var(--muted); }
@media (max-width: 520px) { .incident { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 24px; }
.piece { margin: 0; background: #fff; padding: 10px 10px 12px; transform: rotate(var(--r, 0deg)); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .55); transition: transform .2s; }
.piece:hover { transform: rotate(0deg) scale(1.03); }
.piece button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.piece img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd; }
.piece figcaption { font-family: var(--f-type); font-size: .86rem; color: var(--ink); margin-top: 8px; }
.piece figcaption b { color: var(--red); font-weight: 400; }

.verdict { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-top: 44px; padding-top: 26px; border-top: 3px double rgba(35, 26, 17, .5); }
.verdict-lab { font-family: var(--f-type); letter-spacing: .2em; color: var(--ink-soft); margin: 0; }
.verdict .stamp { font-size: clamp(2.8rem, 12vw, 6.5rem); opacity: 0; transform: rotate(-8deg) scale(2.4); }
.verdict .stamp.pose { animation: tamponner .45s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes tamponner {
  0% { opacity: 0; transform: rotate(-8deg) scale(2.4); }
  70% { opacity: 1; }
  100% { opacity: .93; transform: rotate(-8deg) scale(1); }
}
.peine { font-family: var(--f-type); margin: 14px 0 0; }

.vide { background: rgba(255, 255, 255, .4); border: 2px dashed rgba(35, 26, 17, .4); border-radius: 10px; padding: 22px; }
.vide-titre { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; letter-spacing: .02em; margin: 0 0 .4rem; }
.vide p { margin: 0 0 .6rem; }
.howto { margin-top: 14px; font-size: .95rem; }
.howto summary { cursor: pointer; font-weight: 700; }
.howto pre { overflow-x: auto; background: #15110c; color: var(--foam); padding: 14px; border-radius: 8px; font-size: .82rem; line-height: 1.5; }
.howto code { font-family: Consolas, "Courier New", monospace; }

/* ---------- Liens entre fiches, vidéos, photo de groupe ---------- */
.lien-membre {
  color: inherit; font-weight: 700;
  text-decoration: underline dotted var(--red); text-underline-offset: 3px;
}
.lien-membre:hover { color: var(--red); }
.piece video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; }

.groupe-photo {
  position: relative; max-width: 860px; margin: 10px auto 0; padding: 14px 14px 18px;
  background: #fff; box-shadow: var(--shadow); transform: rotate(-1.2deg);
}
.groupe-photo::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 28px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 244, 200, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.groupe-photo button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.groupe-photo img { width: 100%; }
.groupe-photo figcaption { font-family: var(--f-type); color: var(--ink); text-align: center; margin-top: 12px; }

/* ---------- Carte des zones ---------- */
.carte-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.carte {
  position: relative; z-index: 0; isolation: isolate;
  height: min(74vh, 760px); min-height: 420px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #0b0f14; box-shadow: var(--shadow);
}
.carte-hs { margin: 0; padding: 24px; font-family: var(--f-type); color: var(--muted); }
.carte-panneau {
  height: min(74vh, 760px); min-height: 420px; overflow-y: auto;
  padding: 20px 20px 24px; border-radius: 14px; box-shadow: var(--shadow);
  background-color: var(--paper); background-image: var(--paper-noise); color: var(--ink);
}
@media (max-width: 900px) {
  .carte-layout { grid-template-columns: minmax(0, 1fr); }
  .carte { height: 58vh; min-height: 320px; }
  .carte-panneau { height: auto; min-height: 0; overflow: visible; scroll-margin-top: 16px; }
}
.carte-intro { margin: 0 0 16px; font-family: var(--f-type); font-size: .9rem; color: var(--ink-soft); }
.carte-panneau .block-title { font-size: 1.3rem; margin-top: 20px; }
.lieux-liste, .qg-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lieux-liste button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 12px; color: var(--ink);
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(35, 26, 17, .2); border-left: 4px solid var(--red); border-radius: 8px;
}
.lieux-liste button:hover { background: #fff8e4; }
.lieux-liste b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .02em; line-height: 1.1; }
.lieux-liste small { font-family: var(--f-type); color: var(--ink-soft); }
.lieu-emoji { font-size: 1.5rem; }
.qg-note { margin: -4px 0 10px; font-family: var(--f-type); font-size: .82rem; color: var(--ink-soft); }
.qg-liste details { padding: 8px 12px; background: rgba(255, 255, 255, .4); border: 1px dashed rgba(35, 26, 17, .35); border-radius: 8px; }
.qg-liste summary { cursor: pointer; font-weight: 700; }
.qg-liste p { margin: 8px 0 0; font-size: .95rem; }
.qg-liste .qg-adresse { font-family: var(--f-type); font-size: .85rem; }
.lieu-retour { cursor: pointer; padding: .3em .8em; font-size: .9rem; color: var(--ink); background: transparent; border: 1px solid rgba(35, 26, 17, .3); border-radius: 999px; }
.lieu-retour:hover { background: #fff8e4; }
.lieu-type { margin: 16px 0 4px; font-family: var(--f-type); font-size: .78rem; letter-spacing: .14em; color: var(--ink-soft); }
.lieu-nom { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: .02em; }
.lieu-aka { margin: 4px 0 0; font-family: var(--f-type); color: var(--red); }
.lieu-texte { margin: 14px 0 0; font-size: 1.02rem; }
.lieu-membres { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.lieu-membres > span { width: 100%; font-family: var(--f-type); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.lieu-membres .chip { text-decoration: none; }
.lieu-membres .chip:hover { background: var(--ink); color: var(--paper); }
.lieu-coords { list-style: none; margin: 16px 0 0; padding: 10px 0 0; border-top: 1px dashed rgba(35, 26, 17, .35); font-family: var(--f-type); font-size: .82rem; color: var(--ink-soft); }

.pin-wrap { background: none; border: 0; }
.pin {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--red); border: 3px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .55);
  transition: background .2s, transform .2s;
}
.pin span { transform: rotate(45deg); font-size: 18px; line-height: 1; }
.pin.actif { background: var(--amber); transform: rotate(-45deg) scale(1.2); }
.pin-secret { width: 26px; height: 26px; background: rgba(21, 17, 12, .85); border-width: 2px; border-color: rgba(255, 244, 214, .55); box-shadow: 0 4px 10px rgba(0, 0, 0, .55); }
.pin-secret span { font-size: 13px; }
.pin-secret:hover { background: var(--amber); }
.leaflet-tooltip.tooltip-lieu {
  padding: 4px 8px; font-family: var(--f-display); font-size: 14px; letter-spacing: .03em;
  color: #fff; background: #111; border: 0; border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.leaflet-tooltip-top.tooltip-lieu::before { border-top-color: #111; }

/* ---------- Citations, lexique, patch notes ---------- */
.citations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 30px 18px; margin-top: 26px; }
.citation {
  position: relative; margin: 0; padding: 20px 20px 16px; border-radius: 12px;
  background: #15110c; color: var(--foam); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6);
}
.citation::before { content: "“"; position: absolute; top: -20px; left: 12px; font-family: var(--f-display); font-size: 4.5rem; line-height: 1; color: var(--amber); }
.citation blockquote { margin: 0; font-family: var(--f-type); font-size: 1.12rem; line-height: 1.45; }
.citation figcaption { margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--amber-2); }
.citation figcaption span { font-weight: 400; color: var(--muted); }
.citation .lien-membre, .maj-notes .lien-membre { color: var(--amber-2); }
.citation mark, .cris mark, .lex-attaque mark, .maj mark { color: #1a1206; }

.hero-mini { padding-block: 0 6px; }
.lexique-titre { font-size: clamp(2.6rem, 8vw, 5rem); }
.lexique-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.lex-carte {
  position: relative; padding: 20px 20px 22px; border-radius: 8px; box-shadow: var(--shadow);
  background-color: var(--paper); background-image: var(--paper-noise); color: var(--ink);
}
.lex-carte > p { margin: 10px 0 0; }
.lex-type { margin: 0; font-family: var(--f-type); font-size: .74rem; letter-spacing: .16em; color: var(--red); }
.lex-nom { margin: 4px 0 0; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1.05; letter-spacing: .02em; overflow-wrap: anywhere; }
.lex-champ b { font-family: var(--f-type); font-weight: 400; color: var(--ink-soft); }
.lex-attaque { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: #15110c; color: var(--foam); }
.lex-attaque .lex-type { color: var(--amber-2); }
.lex-attaque h4 { margin: 4px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; letter-spacing: .02em; }
.lex-attaque p { margin: 0; }
.lex-dechu { filter: grayscale(.85); }
.lex-dechu .stamp { position: absolute; top: 14px; right: 14px; font-size: 1.1rem; transform: rotate(10deg); }
.lex-dechu .lex-nom { padding-right: 70px; }
.lex-dechu .lex-nom s { text-decoration-thickness: 3px; text-decoration-color: var(--red); }
.lex-citation { margin: 14px 0 0; padding: 10px 14px; border-left: 4px solid var(--ink); background: rgba(255, 255, 255, .45); font-family: var(--f-type); }

.cris { padding: clamp(20px, 4vw, 32px); text-align: center; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(120% 140% at 50% 0%, #2e2516, #15110b); }
.cris-regle { max-width: 60ch; margin: 0 auto 18px; font-size: 1.05rem; }
.cris-mots { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cri {
  cursor: pointer; padding: .35em .9em; border: 0; border-radius: 999px;
  font-family: var(--f-display); font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: .04em;
  background: var(--amber); color: #1a1206; box-shadow: 0 6px 0 #a86f00; transition: transform .1s, box-shadow .1s;
}
.cri:active { transform: translateY(4px); box-shadow: 0 2px 0 #a86f00; }
.cris-astuce { margin: 18px 0 0; font-family: var(--f-type); font-size: .85rem; color: var(--muted); }

.majs { display: grid; gap: 22px; margin-top: 28px; }
.maj { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.maj-derniere { border-color: rgba(245, 169, 11, .6); box-shadow: 0 0 0 4px rgba(245, 169, 11, .08); }
.maj-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.maj-version { padding: .1em .55em; border-radius: 6px; font-family: var(--f-display); font-size: 1.1rem; color: #1a1206; background: var(--amber); }
.maj-titre { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }
.maj-date { font-family: var(--f-type); font-size: .85rem; color: var(--muted); }
.maj-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.maj-notes li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.maj-tag {
  display: inline-block; padding: .15em .5em; border-radius: 4px; text-align: center;
  font-family: var(--f-display); font-size: .82rem; letter-spacing: .08em; color: #fff; background: #555;
}
.maj-nouveau { background: #2f7d4f; }
.maj-buff { background: #2f6aa3; }
.maj-nerf { background: var(--red); }
.maj-fix { background: #8a5cc2; }
.maj-retire { background: #6b6257; }
@media (max-width: 520px) {
  .maj-notes li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .maj-notes .maj-tag { justify-self: start; }
}

.bandeau-maj {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 28px; padding: 12px 16px;
  color: var(--text); text-decoration: none;
  background: rgba(245, 169, 11, .06); border: 1px dashed rgba(245, 169, 11, .5); border-radius: 12px;
}
.bandeau-maj:hover { background: rgba(245, 169, 11, .14); }
.bandeau-maj span:nth-child(2) { flex: 1; font-weight: 500; }

/* ---------- Recensement : dossiers d'affaires ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.registre-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.registre-recherche { flex: 1 1 260px; }
.registre-recherche input {
  width: 100%; padding: .7em 1em; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
}
.registre-recherche input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 169, 11, .25); }
.registre-tri { display: flex; align-items: center; gap: 8px; font-family: var(--f-type); font-size: .9rem; color: var(--muted); }
.registre-tri select { padding: .55em .8em; font: inherit; font-family: var(--f-body); color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.registre-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.puce { cursor: pointer; padding: .35em .8em; font-size: .88rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.puce small { opacity: .75; }
.puce:hover { color: var(--text); background: var(--bg-3); }
.puce[aria-pressed="true"] { color: #1a1206; background: var(--amber); border-color: var(--amber); }
.registre-vide { grid-column: 1 / -1; padding: 30px; text-align: center; font-family: var(--f-type); color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

.dossiers {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 48px 20px;
}
.dossiers-palmares { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 18px; }
.dossier-item { display: flex; flex-direction: column; min-width: 0; }
.dossier-etiquette { margin: 0 0 40px; font-family: var(--f-type); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); }
.dossier-affaire {
  --chemise: #dcb872;
  position: relative; flex: 1; display: grid; place-items: center;
  min-height: 150px; padding: 26px 16px 24px;
  text-align: center; text-decoration: none; color: var(--ink);
  background-color: var(--chemise);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, .08)), var(--paper-noise);
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 16px 28px -18px rgba(0, 0, 0, .9), inset 0 -4px 0 rgba(0, 0, 0, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dossier-affaire::after {
  content: ""; position: absolute; top: -7px; left: 46%; right: 14px; height: 7px;
  background: var(--paper); border-radius: 3px 3px 0 0; box-shadow: 0 -1px 0 rgba(0, 0, 0, .1);
}
.dossier-onglet {
  position: absolute; left: 0; bottom: 100%;
  padding: 6px 14px 2px; border-radius: 8px 8px 0 0; white-space: nowrap;
  font-family: var(--f-type); font-size: .78rem; letter-spacing: .08em; color: var(--ink-soft);
  background-color: var(--chemise); background-image: linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .22));
}
.dossier-titre {
  display: block; max-width: 100%; padding: .5em .75em; overflow-wrap: anywhere;
  font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.12; letter-spacing: .02em;
  background: #fbf6e9; border: 1px solid rgba(35, 26, 17, .22); border-radius: 3px;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, .12);
  transform: rotate(-1.2deg);
  transition: color .18s ease;
}
.dossier-item:nth-child(3n + 2) .dossier-titre { transform: rotate(.9deg); }
.dossier-item:nth-child(3n) .dossier-titre { transform: rotate(-.4deg); }
.dossier-affaire:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 26px 34px -18px rgba(0, 0, 0, .95), inset 0 -4px 0 rgba(0, 0, 0, .1); }
.dossier-affaire:hover .dossier-titre { color: var(--red); }
.dossier-affaire:focus-visible { outline-offset: 6px; }
.dossiers-palmares .dossier-affaire { --chemise: #e2a35a; min-height: 170px; }
.dossiers-palmares .dossier-titre { font-size: 1.5rem; }

/* ---------- Page d'une affaire ---------- */
.da-titre { overflow-wrap: anywhere; }
.da-emoji { font-size: .72em; vertical-align: .08em; }
.da-alias { margin-top: 10px; }
.da-meta { margin-top: 12px; font-size: .95rem; }
.fa-meta { margin: 2px 0 0; font-family: var(--f-type); font-size: .88rem; color: var(--ink-soft); }
.fa-meta a { color: var(--red); }
.da-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.da-chiffres div { padding: 12px 14px; text-align: center; color: var(--foam); background: #15110c; border-radius: 10px; }
.da-chiffres b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--amber-2); font-variant-numeric: tabular-nums; }
.da-chiffres b.neg { color: var(--red-2); }
.da-chiffres b.pos { color: #6fd39a; }
.da-chiffres span { display: block; margin-top: 4px; font-family: var(--f-type); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.da-bloc, .dossier-page .dossier-full { margin-top: 34px; }
.da-deroule { list-style: none; counter-reset: etape; display: grid; gap: 10px; margin: 0; padding: 0; }
.da-deroule li {
  counter-increment: etape; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 12px 16px; font-size: 1.04rem;
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(35, 26, 17, .18); border-left: 5px solid var(--red); border-radius: 8px;
}
.da-deroule li::before { content: counter(etape, decimal-leading-zero); font-family: var(--f-display); font-size: 1.5rem; line-height: 1; color: var(--red); }
.da-consequences { margin: 0; padding: 12px 16px; font-size: 1.06rem; background: rgba(214, 43, 31, .08); border-left: 5px solid var(--red); border-radius: 6px; }
.fa-impliques { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; }
.fa-impliques li { display: inline-flex; align-items: center; gap: 6px; }
.fa-impliques .chip { text-decoration: none; }
.fa-impliques a.chip:hover { background: var(--ink); color: var(--paper); }
.fa-aura { font-family: var(--f-display); font-size: .95rem; letter-spacing: .03em; }
.fa-aura.neg { color: var(--red); }
.fa-aura.pos { color: #2f7d4f; }
.fa-ext { font-family: var(--f-type); font-size: .72rem; color: var(--ink-soft); }
.da-inconnu { margin: 0; font-family: var(--f-type); color: var(--ink-soft); }
.da-liste { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.da-sources a { font-family: var(--f-type); color: var(--ink-soft); }
.da-sources a:hover { color: var(--red); }
.da-actions { margin: 36px 0 0; padding-top: 18px; border-top: 3px double rgba(35, 26, 17, .5); }
.da-imprimer {
  cursor: pointer; padding: .45em 1.1em; font: inherit; font-family: var(--f-type); color: var(--ink);
  background: transparent; border: 2px solid var(--ink); border-radius: 999px;
}
.da-imprimer:hover { color: var(--paper); background: var(--ink); }

/* Liens vers un dossier (fiches, carte, lexique) */
.lien-dossier { font-family: var(--f-type); color: var(--red); text-decoration: none; border-bottom: 1px dashed currentColor; }
.lien-dossier:hover { color: var(--ink); }
.incident-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.incident-pied .incident-aura { margin-top: 0; }
.lieu-affaires { margin-top: 16px; }
.lieu-affaires > span { display: block; margin-bottom: 6px; font-family: var(--f-type); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.lieu-affaires ul { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }

@media print {
  body { background: #fff; color: #000; }
  .topbar, .ticker, .footer, .registre-filtres, .registre-puces, .bandeau-maj, .toast, .goutte, .hic, .skip, .fiche-nav, .da-actions { display: none !important; }
  body.bourre #app { filter: none !important; animation: none !important; text-shadow: none !important; }
  .page { max-width: none; padding: 0; }
  .hero-kicker, .section-title, .section-note, .hero-sub, .stat-lab { color: #000; }
  .stat { background: #fff; border-color: #999; }
  .dossier { margin-top: 0; background: #fff; box-shadow: none; }
  .dossier-tab { display: none; }
  .da-chiffres div, .citation { color: #000; background: #fff; border: 1px solid #999; box-shadow: none; }
  .da-chiffres b, .citation figcaption { color: #000; }
  .da-deroule li, .citation { break-inside: avoid; }
  .dossier-affaire { box-shadow: none; border: 1px solid #999; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px 16px; background: rgba(8, 6, 4, .92); }
.lightbox-fig { margin: 0; max-width: min(960px, 100%); }
.lightbox-fig img { width: auto; max-height: 78vh; margin: 0 auto; background: #fff; border: 8px solid #fff; }
.lightbox-fig figcaption { font-family: var(--f-type); color: var(--foam); text-align: center; margin-top: 12px; }
.lightbox-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--foam); color: #000; font-size: 1.2rem; cursor: pointer; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 40px) 40px; text-align: center; color: var(--muted); font-size: .92rem; }
.footer p { max-width: 70ch; margin: .3rem auto; }
.footer-evin { color: var(--text); font-weight: 500; }
.footer-small { font-family: var(--f-type); font-size: .82rem; margin-top: .9rem !important; }

/* ---------- Easter eggs ---------- */
.goutte { position: fixed; top: -70px; z-index: 300; pointer-events: none; font-size: var(--taille, 2rem); animation: tomber var(--duree, 2.4s) linear forwards; }
@keyframes tomber { to { transform: translateY(calc(100vh + 140px)) rotate(var(--rot, 360deg)); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 310; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; text-align: center;
  background: var(--amber); color: #1a1206; font-weight: 700; padding: .7em 1.2em; border-radius: 999px; box-shadow: var(--shadow);
  transition: opacity .25s, transform .25s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Mode bourré */
body.bourre #app, body.bourre .topbar { animation: tituber 3.8s ease-in-out infinite alternate; }
body.bourre #app { filter: blur(.6px) saturate(1.3); text-shadow: 5px 1px 0 rgba(245, 169, 11, .28), -4px -1px 0 rgba(214, 43, 31, .2); }
body.bourre .ticker-move { animation-duration: 9s; }
body.bourre .card { animation: hoquet 2.6s ease-in-out infinite; }
body.bourre .card:nth-child(odd) { animation-delay: 1.1s; }
@keyframes tituber {
  0% { transform: rotate(-1deg) translateX(-8px); }
  50% { transform: rotate(.6deg) translate(4px, 3px); }
  100% { transform: rotate(1.2deg) translateX(10px); }
}
@keyframes hoquet { 0%, 88%, 100% { translate: 0 0; } 93% { translate: 0 -12px; } }

.hic {
  position: fixed; z-index: 305; pointer-events: none; white-space: nowrap;
  font-family: var(--f-display); font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--amber-2);
  text-shadow: 3px 3px 0 #000;
  animation: hic 1.7s ease-out forwards;
}
@keyframes hic {
  0% { opacity: 0; transform: scale(.4) rotate(-12deg); }
  20% { opacity: 1; transform: scale(1.1) rotate(6deg); }
  100% { opacity: 0; transform: translateY(-40px) rotate(-4deg); }
}

/* Petits compléments */
.section { scroll-margin-top: 90px; }
a.btn-big { display: inline-block; text-decoration: none; }
.idtable dd small { font-size: .82em; color: var(--ink-soft); }
.jauge.over .jauge-fill::after { content: "💥"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-size: 1.35rem; }
.dossier.secousse { animation: secousse .35s ease-out; }
@keyframes secousse {
  20% { translate: -6px 3px; }
  40% { translate: 5px -3px; }
  60% { translate: -4px 2px; }
  80% { translate: 2px -1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .ticker-move, body.bourre #app, body.bourre .topbar, body.bourre .card { animation: none !important; }
  .ticker-track { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent; }
}
