/* ==========================================================================
   Six Clics — design « verre dépoli » sur fond nocturne
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(polices/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(polices/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(polices/inter-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(polices/inter-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(polices/instrument-serif-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(polices/instrument-serif-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(polices/instrument-serif-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(polices/instrument-serif-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }

:root {
  --fond: #070915;
  --fond-2: #0c1024;
  --texte: #eef0fb;
  --texte-2: #b4b9d6;
  --texte-3: #7e84a8;
  --verre: rgba(255, 255, 255, .055);
  --verre-fort: rgba(255, 255, 255, .09);
  --bord: rgba(255, 255, 255, .11);
  --bord-fort: rgba(255, 255, 255, .2);
  --reflet: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .02);
  --ombre: 0 24px 60px -24px rgba(0, 0, 0, .65), 0 2px 10px rgba(0, 0, 0, .18);
  --flou: blur(22px) saturate(165%);

  --cyan: #67e8f9;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --rose: #f9a8d4;
  --or: #fcd34d;
  --or-fonce: #f59e0b;
  --vert: #6ee7b7;
  --rouge: #fda4af;

  --g-moi: linear-gradient(135deg, var(--cyan), var(--indigo));
  --g-adv: linear-gradient(135deg, var(--rose), #c084fc);
  --g-or: linear-gradient(135deg, #fde68a, var(--or-fonce));
  --g-principal: linear-gradient(135deg, #7dd3fc 0%, #818cf8 50%, #c084fc 100%);

  --rayon: 22px;
  --rayon-s: 14px;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --haut-sur: env(safe-area-inset-top, 0px);
  --bas-sur: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
::selection { background: rgba(129, 140, 248, .45); color: #fff; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
em { font-style: italic; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

/* ---------- Fond ---------- */
.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, #141a3d 0%, var(--fond) 60%); }
.halo-fond { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.halo-fond.h1 { width: 55vmax; height: 55vmax; left: -18vmax; top: -16vmax; background: radial-gradient(circle, #5b4dff 0%, transparent 65%); animation: derive1 26s ease-in-out infinite alternate; }
.halo-fond.h2 { width: 48vmax; height: 48vmax; right: -16vmax; top: 10vh; background: radial-gradient(circle, #0ea5e9 0%, transparent 65%); opacity: .42; animation: derive2 32s ease-in-out infinite alternate; }
.halo-fond.h3 { width: 50vmax; height: 50vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle, #db2777 0%, transparent 65%); opacity: .3; animation: derive3 38s ease-in-out infinite alternate; }
@keyframes derive1 { to { transform: translate(14vw, 10vh) scale(1.12); } }
@keyframes derive2 { to { transform: translate(-12vw, 16vh) scale(.92); } }
@keyframes derive3 { to { transform: translate(-16vw, -12vh) scale(1.08); } }
.grille { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 75%); }
.grain { position: absolute; inset: -50%; opacity: .07; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Verre ---------- */
.verre {
  background: linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.03) 60%);
  border: 1px solid var(--bord);
  box-shadow: var(--reflet), var(--ombre);
  backdrop-filter: var(--flou);
  -webkit-backdrop-filter: var(--flou);
  border-radius: var(--rayon);
}

/* ---------- En-tête ---------- */
.entete-site {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + var(--haut-sur)) clamp(16px, 4vw, 40px) 14px;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
body.defile .entete-site { background: rgba(8, 10, 23, .55); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); border-bottom-color: var(--bord); }
body.en-jeu .entete-site { display: none; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; }
.marque img { display: block; filter: drop-shadow(0 4px 14px rgba(103, 232, 249, .35)); }
.marque em { background: var(--g-principal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.entete-droite { display: flex; align-items: center; gap: 10px; }
.en-ligne { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--texte-2); padding: 6px 12px; border-radius: 99px; background: var(--verre); border: 1px solid var(--bord); }
.en-ligne b { color: var(--texte); font-variant-numeric: tabular-nums; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(110, 231, 183, .6); animation: pouls 2s infinite; display: inline-block; }
@keyframes pouls { 70% { box-shadow: 0 0 0 8px rgba(110, 231, 183, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); } }

/* ---------- Boutons ---------- */
.bouton {
  --fond-b: rgba(255,255,255,.07);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; min-height: 44px;
  border-radius: 14px; border: 1px solid var(--bord);
  background: var(--fond-b);
  box-shadow: var(--reflet);
  font-weight: 560; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s, border-color .2s, box-shadow .2s;
}
.bouton:hover { background: rgba(255,255,255,.12); border-color: var(--bord-fort); transform: translateY(-1px); }
.bouton:active { transform: translateY(1px) scale(.985); }
.bouton.grand { padding: 15px 24px; min-height: 54px; font-size: 16px; border-radius: 16px; }
.bouton.petit { padding: 7px 12px; min-height: 34px; font-size: 13.5px; border-radius: 11px; }
.bouton.principal {
  border: 0; color: #0b0d1f; font-weight: 650;
  background: var(--g-principal); background-size: 160% 160%; background-position: 0 50%;
  box-shadow: 0 10px 30px -8px rgba(129, 140, 248, .65), inset 0 1px 0 rgba(255,255,255,.55);
}
.bouton.principal:hover { background-position: 100% 50%; box-shadow: 0 14px 36px -8px rgba(129, 140, 248, .8), inset 0 1px 0 rgba(255,255,255,.55); }
.bouton.or { border: 0; color: #2a1800; font-weight: 650; background: var(--g-or); box-shadow: 0 10px 28px -10px rgba(245, 158, 11, .7), inset 0 1px 0 rgba(255,255,255,.6); }
.bouton.or:hover { filter: brightness(1.06); }
.bouton.discret { background: transparent; border-color: transparent; box-shadow: none; color: var(--texte-2); }
.bouton.discret:hover { color: var(--texte); background: rgba(255,255,255,.06); }
.bouton:disabled { opacity: .5; pointer-events: none; }
.bouton-icone { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--bord); background: var(--verre); color: var(--texte-2); transition: .2s; }
.bouton-icone:hover { color: var(--texte); background: var(--verre-fort); }
.bouton-icone.petit { width: 34px; height: 34px; border-radius: 10px; }
.bouton-icone .ic { width: 19px; height: 19px; }
.ligne-boutons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mini { font-size: 13px; color: var(--texte-3); margin: 0; }

/* ---------- Écrans ---------- */
main { flex: 1; width: 100%; }
.ecran { width: min(1120px, 100%); margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 48px; animation: entree .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes entree { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Accueil ---------- */
.heros { text-align: center; padding: clamp(24px, 7vh, 72px) 0 36px; display: flex; flex-direction: column; align-items: center; }
.sur-titre { margin: 0 0 18px; }
.pastille { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 560; color: var(--texte-2);
  background: rgba(255,255,255,.05); border: 1px solid var(--bord); box-shadow: var(--reflet); }
.pastille .ic { color: var(--or); }
.titre-heros { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 11vw, 116px); line-height: .92; letter-spacing: -.035em; margin: 0;
  text-shadow: 0 10px 50px rgba(103, 102, 241, .25); }
.titre-heros em { background: linear-gradient(100deg, #a5f3fc 0%, #a5b4fc 40%, #f0abfc 80%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .06em; }
.accroche { max-width: 600px; margin: 24px auto 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--texte-2); line-height: 1.6; text-wrap: balance; }
.accroche strong { color: var(--texte); font-weight: 600; }

.demo-chemin { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 30px; min-height: 40px; max-width: 760px; }
.demo-chemin .puce-page { animation: apparait .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.demo-chemin .sep { color: var(--texte-3); animation: apparait .4s both; animation-delay: var(--d); }
.demo-chemin.sortie > * { animation: disparait .4s both !important; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px) scale(.94); filter: blur(4px); } }
@keyframes disparait { to { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }

.puce-page { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 99px; font-size: 14px; font-weight: 520;
  background: rgba(255,255,255,.06); border: 1px solid var(--bord); color: var(--texte); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puce-page.depart { border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .14); }
.puce-page.cible { border-color: rgba(252, 211, 77, .5); background: rgba(252, 211, 77, .13); color: #fef3c7; }
.puce-page .ic { width: 14px; height: 14px; }
.puce-page.squelette { width: 120px; }

.carte-jouer { width: min(460px, 100%); padding: 22px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.champ-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); margin-bottom: 7px; }
.champ { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 16px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--bord); transition: border-color .2s, box-shadow .2s; }
.champ:focus-within { border-color: rgba(129, 140, 248, .7); box-shadow: 0 0 0 4px rgba(129, 140, 248, .18); }
.champ input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; font-weight: 520; padding: 8px 0; }
.champ input::placeholder { color: var(--texte-3); }
.carte-jouer .mini { text-align: center; }
.interrupteur { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.interrupteur input { position: absolute; opacity: 0; pointer-events: none; }
.interrupteur-piste { flex: none; position: relative; width: 42px; height: 24px; border-radius: 99px; background: rgba(0,0,0,.3); border: 1px solid var(--bord-fort); transition: .2s; }
.interrupteur-piste::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--texte-3); transition: .2s; }
.interrupteur input:checked + .interrupteur-piste { background: rgba(252, 211, 77, .25); border-color: rgba(252, 211, 77, .6); }
.interrupteur input:checked + .interrupteur-piste::after { transform: translateX(18px); background: var(--or); }
.interrupteur input:focus-visible + .interrupteur-piste { box-shadow: 0 0 0 4px rgba(252, 211, 77, .2); }
.interrupteur-texte b { display: block; font-size: 14.5px; font-weight: 600; }
.interrupteur-texte small { display: block; font-size: 12.5px; color: var(--texte-3); }

.invitation { margin-top: 16px; width: min(460px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 14px 14px 20px; text-align: left;
  border-color: rgba(249, 168, 212, .4); animation: entree .5s both; }
.invitation b { display: block; }
.invitation span { font-size: 14px; color: var(--texte-2); }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .12em; color: var(--texte); }

.grille-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.mode { padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.mode:hover { transform: translateY(-3px); border-color: var(--bord-fort); }
.mode-defi { grid-column: 1 / -1; background: linear-gradient(140deg, rgba(252, 211, 77, .12), rgba(255,255,255,.035) 45%, rgba(129, 140, 248, .07)); border-color: rgba(252, 211, 77, .22); }
@media (min-width: 900px) { .grille-modes { grid-template-columns: repeat(3, 1fr); } }
.mode-tete { display: flex; align-items: center; gap: 14px; }
.mode-tete h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.mode-icone { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #0b0d1f; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 20px -8px currentColor; }
.mode-icone .ic { width: 22px; height: 22px; color: #0b0d1f; }
.mode-icone.or { background: var(--g-or); color: var(--or-fonce); }
.mode-icone.rose { background: var(--g-adv); color: #ec4899; }
.mode-icone.violet { background: linear-gradient(135deg, #ddd6fe, #a78bfa); color: #8b5cf6; }
.mode-icone.cyan { background: var(--g-moi); color: #22d3ee; }
.mode-icone.grand { width: 64px; height: 64px; border-radius: 20px; }
.mode-icone.grand .ic { width: 30px; height: 30px; }
.mode-texte { margin: 0; color: var(--texte-2); font-size: 14.5px; flex: 1; }
.mode-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.mode-actions .bouton { flex: 1 1 auto; }
.paire { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.paire .puce-page { font-size: 16px; padding: 9px 16px; }
.paire .fleche { color: var(--texte-3); width: 20px; height: 20px; }
.mode-stats { margin: 0; font-size: 14px; color: var(--texte-2); }
.mode-stats b { color: var(--or); font-weight: 650; }
.squelette { position: relative; color: transparent !important; background: rgba(255,255,255,.06) !important; border-color: transparent !important; overflow: hidden; }
.squelette::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: reflet 1.4s infinite; }
@keyframes reflet { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.regles-accueil { margin-top: 64px; }
.titre-section { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.02em; text-align: center; margin: 0 0 24px; }
.etapes-regles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.etapes-regles li { padding: 24px; }
.etapes-regles h3 { margin: 14px 0 6px; font-size: 17px; letter-spacing: -.01em; }
.etapes-regles p { margin: 0; color: var(--texte-2); font-size: 14.5px; }
.numero { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-family: var(--serif); font-size: 22px;
  background: rgba(129, 140, 248, .16); border: 1px solid rgba(129, 140, 248, .35); color: #c7d2fe; }

/* ---------- Attente ---------- */
#ecran-attente { display: grid; place-items: center; min-height: calc(100dvh - 160px); }
.attente { width: min(520px, 100%); padding: 40px 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.attente h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.02em; margin: 18px 0 0; line-height: 1.1; }
.attente-sous { margin: 0 0 10px; color: var(--texte-2); }
.radar { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.radar-logo { width: 62px; height: 62px; position: relative; z-index: 2; filter: drop-shadow(0 6px 24px rgba(103, 232, 249, .5)); animation: flotte 3s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-5px); } }
.onde { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(129, 140, 248, .5); animation: onde 3s cubic-bezier(.2,.6,.3,1) infinite; opacity: 0; }
.onde:nth-child(2) { animation-delay: 1s; } .onde:nth-child(3) { animation-delay: 2s; }
@keyframes onde { from { transform: scale(.35); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
.orbite { position: absolute; inset: 0; animation: tourne 7s linear infinite; }
.orbite i { position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbite.o2 { inset: 22px; animation-duration: 5s; animation-direction: reverse; } .orbite.o2 i { background: var(--rose); box-shadow: 0 0 14px var(--rose); }
.orbite.o3 { inset: 44px; animation-duration: 9s; } .orbite.o3 i { background: var(--or); box-shadow: 0 0 14px var(--or); width: 7px; height: 7px; }
@keyframes tourne { to { transform: rotate(360deg); } }
.alternatives { margin: 8px 0; padding: 16px; border-radius: var(--rayon-s); background: rgba(255,255,255,.04); border: 1px solid var(--bord); animation: entree .4s both; }
.alternatives p { margin: 0 0 12px; color: var(--texte-2); font-size: 14.5px; }
.salon-code { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; }
.salon-code .code { font-family: var(--serif); font-size: 64px; letter-spacing: .18em; line-height: 1; padding-left: .18em;
  background: linear-gradient(100deg, #a5f3fc, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Jeu ---------- */
body.en-jeu .pied-site { display: none; }
#ecran-jeu { padding-top: calc(10px + var(--haut-sur)); padding-bottom: calc(110px + var(--bas-sur)); max-width: 980px; }
.hud { position: sticky; top: calc(8px + var(--haut-sur)); z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 24, 52, .78), rgba(12, 15, 34, .7)); }
.hud-cible { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 12px 6px 6px; border-radius: 14px; border: 1px solid rgba(252, 211, 77, .3);
  background: linear-gradient(135deg, rgba(252, 211, 77, .14), rgba(252, 211, 77, .04)); text-align: left; transition: .2s; justify-self: start; max-width: 100%; }
.hud-cible:hover { border-color: rgba(252, 211, 77, .6); }
.vignette { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(252, 211, 77, .18) center/cover no-repeat; display: grid; place-items: center; color: var(--or); }
.vignette .ic { width: 20px; height: 20px; }
.hud-cible-texte, .hud-adv-texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hud-cible-texte small, .hud-adv-texte small { font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--or); display: flex; gap: 4px; align-items: center; }
.hud-cible-texte small .ic { width: 12px; height: 12px; }
.hud-cible-texte b { font-size: 15px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fef3c7; }
.hud-centre { text-align: center; line-height: 1.1; padding: 0 6px; }
.chrono { font-size: 24px; font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.chrono.urgent { color: var(--rouge); animation: clignote 1s steps(2) infinite; }
@keyframes clignote { 50% { opacity: .55; } }
.compteur { font-size: 13px; color: var(--texte-2); }
.compteur b { color: var(--cyan); font-size: 15px; font-variant-numeric: tabular-nums; }
.compteur b.saut { animation: saut .45s cubic-bezier(.2,1.6,.4,1); display: inline-block; }
@keyframes saut { 40% { transform: scale(1.5); } }
.hud-adv { display: flex; align-items: center; gap: 10px; justify-self: end; min-width: 0; padding: 6px 6px 6px 12px; border-radius: 14px; background: rgba(249, 168, 212, .07); border: 1px solid rgba(249, 168, 212, .22); flex-direction: row-reverse; text-align: right; }
.hud-adv-texte small { color: var(--rose); justify-content: flex-end; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.hud-adv-texte b { font-size: 15px; font-weight: 620; font-variant-numeric: tabular-nums; }
.hud-adv.saut .avatar { animation: saut .45s cubic-bezier(.2,1.6,.4,1); }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #1a0b1a; flex: none; background: var(--g-adv); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.avatar.moi { background: var(--g-moi); color: #06182a; }
.avatar.fantome { background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.etat-adv { font-size: 18px; line-height: 1; }
.etat-adv:empty { display: none; }

.fil { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.fil::-webkit-scrollbar { display: none; }
.fil .puce-page { font-size: 13px; padding: 4px 11px; flex: none; animation: apparait .35s both; }
.fil .puce-page.actuelle { background: rgba(103, 232, 249, .14); border-color: rgba(103, 232, 249, .45); color: #cffafe; }
.fil .puce-page.retour { opacity: .6; font-style: italic; }
.fil .sep { color: var(--texte-3); flex: none; font-size: 12px; }

.bandeau-sursis { margin-top: 10px; padding: 12px 16px; border-radius: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(249, 168, 212, .2), rgba(192, 132, 252, .12)); border: 1px solid rgba(249, 168, 212, .45); font-size: 14.5px; animation: entree .4s both; }
.bandeau-sursis b.temps { font-size: 20px; font-variant-numeric: tabular-nums; margin-left: auto; color: var(--rose); }

.feuille { position: relative; margin-top: 12px; padding: clamp(22px, 5vw, 52px) clamp(18px, 5vw, 60px) 32px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(170deg, rgba(22, 26, 54, .82), rgba(13, 16, 35, .86));
  border: 1px solid var(--bord); box-shadow: var(--reflet), var(--ombre);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); }
.barre-chargement { position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--g-principal); box-shadow: 0 0 14px rgba(129, 140, 248, .8); opacity: 0; transition: opacity .3s; }
.feuille.charge .barre-chargement { opacity: 1; animation: charge 2.4s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes charge { from { width: 0; } to { width: 88%; } }
.feuille.charge .article { opacity: .35; filter: blur(1px); pointer-events: none; }
.feuille-tete { border-bottom: 1px solid var(--bord); padding-bottom: 18px; margin-bottom: 22px; }
.feuille-sur { margin: 0 0 4px; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.feuille-titre { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 58px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.feuille-pied { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--bord); font-size: 12.5px; color: var(--texte-3); }
.feuille-pied a { color: var(--texte-2); }

/* Contenu de l'article */
.article { font-size: 17px; line-height: 1.72; color: #dfe2f3; transition: opacity .25s, filter .25s; overflow-wrap: break-word; }
.article::after { content: ''; display: block; clear: both; }
.article p { margin: 0 0 1em; }
.article h2, .article h3, .article h4 { color: var(--texte); clear: both; }
.article h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -.015em; margin: 1.6em 0 .5em; padding-bottom: 8px; border-bottom: 1px solid var(--bord); }
.article h3 { font-size: 19px; font-weight: 650; margin: 1.5em 0 .5em; letter-spacing: -.01em; }
.article h4, .article h5 { font-size: 16px; font-weight: 650; margin: 1.2em 0 .4em; }
.article .mw-heading { clear: both; }
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 1em; }
.article li { margin: .2em 0; }
.article li::marker { color: var(--texte-3); }
.article blockquote { margin: 1em 0; padding: 4px 18px; border-left: 3px solid rgba(129, 140, 248, .5); color: var(--texte-2); }
.article dl dt { font-weight: 650; margin-top: .6em; }
.article dl dd { margin-left: 1.2em; }
.article small { font-size: .85em; }
.article sup, .article sub { line-height: 0; }
.article hr { border: 0; border-top: 1px solid var(--bord); margin: 1.5em 0; }
.article img { max-width: 100%; height: auto; border-radius: 10px; vertical-align: middle; }
.article .non-lien { color: inherit; }

.article a.lien { color: #a5f3fc; text-decoration: none; font-weight: 520; border-radius: 4px;
  background-image: linear-gradient(90deg, rgba(103, 232, 249, .55), rgba(129, 140, 248, .55)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .2s, color .2s, box-shadow .2s; cursor: pointer; padding: 0 1px; }
.article a.lien:hover, .article a.lien:focus-visible { color: #fff; background-size: 100% 100%; background-image: linear-gradient(90deg, rgba(103, 232, 249, .28), rgba(129, 140, 248, .28)); box-shadow: 0 0 0 2px rgba(103, 232, 249, .12); outline: none; }
.article a.lien.trouve { color: #0b0d1f; background: var(--or); box-shadow: 0 0 0 3px rgba(252, 211, 77, .35); }
.article a.lien.trouve.courant { box-shadow: 0 0 0 3px #fff, 0 0 24px rgba(252, 211, 77, .9); }
.article a.lien.clique { color: #0b0d1f; background: var(--g-moi); background-size: 100% 100%; }

/* Infobox, figures, tableaux de Wikipédia */
.article .infobox_v3, .article .infobox_v2, .article .infobox, .article table.infobox {
  float: right; clear: right; width: 300px; max-width: 100%; margin: 0 0 1.2em 1.6em; padding: 14px; font-size: 13.5px; line-height: 1.45;
  border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--bord); box-shadow: var(--reflet); }
.article .infobox_v3 .entete, .article .infobox_v2 .entete { font-family: var(--serif); font-size: 22px; text-align: center; margin-bottom: 8px; padding: 8px; border-radius: 12px; background: rgba(129, 140, 248, .12); }
.article .infobox_v3 table, .article .infobox_v2 { width: 100%; border-collapse: collapse; }
.article .infobox_v3 th, .article .infobox_v3 td, .article .infobox_v2 th, .article .infobox_v2 td { padding: 5px 6px; border-top: 1px solid rgba(255,255,255,.06); vertical-align: top; text-align: left; }
.article .infobox_v3 th, .article .infobox_v2 th { color: var(--texte-2); font-weight: 600; }
.article .infobox_v3 img, .article .infobox_v2 img { display: block; margin: 6px auto; }
.article .infobox_v3 .images, .article .infobox_v3 .legend { text-align: center; font-size: 12.5px; color: var(--texte-3); }
.article figure, .article .thumb { margin: .4em 0 1.2em; display: table; max-width: 100%; }
.article figure.mw-default-size, .article figure[class*='mw-halign-right'], .article .tright { float: right; clear: right; margin-left: 1.6em; max-width: min(300px, 45%); }
.article .mw-halign-left, .article .tleft { float: left; clear: left; margin-right: 1.6em; max-width: min(300px, 45%); }
.article .mw-halign-center { margin-left: auto; margin-right: auto; }
.article figcaption, .article .thumbcaption { display: table-caption; caption-side: bottom; font-size: 13px; line-height: 1.45; color: var(--texte-3); padding-top: 6px; }
.article .gallery { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; margin: 1em 0; }
.article .gallerybox { width: auto !important; flex: 1 1 140px; max-width: 220px; }
.article .gallerytext { font-size: 12.5px; color: var(--texte-3); line-height: 1.4; }
.article .tableau-defile { overflow-x: auto; margin: 1em 0 1.4em; border-radius: 14px; border: 1px solid var(--bord); clear: both; }
.article .tableau-defile table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.45; }
.article .tableau-defile th, .article .tableau-defile td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; vertical-align: top; }
.article .tableau-defile th { background: rgba(255,255,255,.05); font-weight: 620; }
.article .navbox, .article [class^='navbox'] { font-size: 13px; }
.article .navbox th { color: var(--texte-2); }
.article .hlist ul, .article .hlist ol { padding: 0; margin: 0; }
.article .hlist li { display: inline; }
.article .hlist li:not(:last-child)::after { content: ' · '; color: var(--texte-3); font-weight: 700; }
.article .homonymie, .article .bandeau-homonymie { font-size: 14px; font-style: italic; color: var(--texte-3); padding-left: 1.5em; margin-bottom: 1em; }
.article .plainlist ul { list-style: none; padding: 0; }
.article-vide { text-align: center; color: var(--texte-3); padding: 40px 0; }
.article-erreur { text-align: center; padding: 40px 10px; }

.squelette-article { display: flex; flex-direction: column; gap: 12px; }
.squelette-article span { height: 14px; border-radius: 7px; }

.dock { display: none !important; }
body.en-jeu .dock:not([hidden]) { display: flex !important; }
.dock { position: fixed; left: 50%; bottom: calc(14px + var(--bas-sur)); transform: translateX(-50%); z-index: 25; width: min(720px, calc(100% - 20px));
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 20px; background: linear-gradient(160deg, rgba(24, 28, 58, .82), rgba(12, 15, 34, .8)); }
.bouton-dock { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--texte-2); font-weight: 560; font-size: 14px; transition: .2s; flex: none; }
.bouton-dock:hover { color: var(--texte); background: rgba(255,255,255,.07); }
.bouton-dock.danger:hover { color: var(--rouge); background: rgba(253, 164, 175, .1); }
.bouton-dock:disabled { opacity: .35; pointer-events: none; }
.recherche-liens { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--bord); color: var(--texte-3); transition: .2s; }
.recherche-liens:focus-within { border-color: rgba(252, 211, 77, .6); box-shadow: 0 0 0 4px rgba(252, 211, 77, .12); color: var(--or); }
.recherche-liens input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--texte); font-size: 15px; }
.recherche-liens input::-webkit-search-cancel-button { filter: invert(.7); }
.nb-trouves { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--or); white-space: nowrap; }
.recherche-coupee { display: none; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: 8px; height: 46px; font-size: 13.5px; font-weight: 560; color: var(--texte-3); white-space: nowrap; }
.recherche-coupee .ic { opacity: .6; }
body.sans-recherche .recherche-liens { display: none; }
body.sans-recherche .recherche-coupee { display: flex; }

/* Rideaux (compte à rebours, arrivée) */
.rideau { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(5, 7, 18, .7); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); animation: fondu .35s both; }
.rideau.leger { background: rgba(5, 7, 18, .45); }
@keyframes fondu { from { opacity: 0; } }
.annonce { text-align: center; width: min(760px, 100%); }
.annonce-mode { margin: 0 0 22px; font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); }
.annonce-paire { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.annonce-page { padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: entree .6s cubic-bezier(.2,.8,.2,1) both; min-height: 230px; justify-content: center; }
.annonce-page.cible { animation-delay: .35s; border-color: rgba(252, 211, 77, .45); background: linear-gradient(160deg, rgba(252, 211, 77, .16), rgba(255,255,255,.03)); }
.annonce-page .photo { width: 96px; height: 96px; border-radius: 22px; background: rgba(255,255,255,.08) center/cover no-repeat; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); display: grid; place-items: center; color: var(--texte-3); }
.annonce-page .photo .ic { width: 34px; height: 34px; }
.annonce-page small { font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.annonce-page.cible small { color: var(--or); }
.annonce-page h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 4vw, 34px); line-height: 1.05; letter-spacing: -.01em; }
.annonce-page p { margin: 0; font-size: 13.5px; color: var(--texte-2); line-height: 1.4; }
.annonce-fleche { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--bord); animation: entree .5s .2s both; }
.annonce-contre { margin: 22px 0 0; color: var(--texte-2); font-size: 15px; min-height: 1.5em; }
.annonce-contre b { color: var(--rose); }
.decompte { margin-top: 18px; font-family: var(--serif); font-size: 96px; line-height: 1; height: 96px; background: var(--g-principal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.decompte.tic { animation: tic .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tic { from { transform: scale(1.8); opacity: 0; filter: blur(8px); } 30% { opacity: 1; filter: none; } }
@media (max-width: 560px) {
  .annonce-paire { grid-template-columns: 1fr; gap: 10px; }
  .annonce-page { min-height: 0; flex-direction: row; text-align: left; padding: 14px; }
  .annonce-page .photo { width: 64px; height: 64px; border-radius: 16px; flex: none; }
  .annonce-page > div { display: flex; flex-direction: column; gap: 4px; }
  .annonce-fleche { margin: 0 auto; transform: rotate(90deg); }
  .decompte { font-size: 72px; height: 72px; }
}

.arrive-carte { position: relative; width: min(420px, 100%); padding: 34px 26px 26px; text-align: center; overflow: hidden; display: flex; flex-direction: column; align-items: center; animation: arrive .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes arrive { from { transform: scale(.8); opacity: 0; } }
.arrive-carte h2 { font-family: var(--serif); font-weight: 400; font-size: 46px; margin: 14px 0 4px; }
.arrive-carte p { margin: 0; color: var(--texte-2); }
.confettis { position: absolute; inset: 0; pointer-events: none; }
.confettis i { position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px; animation: tombe 2.2s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes tombe { to { transform: translate(var(--dx), 480px) rotate(var(--r)); opacity: 0; } }

/* ---------- Fin ---------- */
.resultat { text-align: center; padding: clamp(24px, 6vh, 56px) 0 26px; }
.resultat-sur { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); }
.resultat-titre { margin: 8px 0 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 13vw, 128px); line-height: .95; letter-spacing: -.035em; }
.resultat-titre.victoire { background: linear-gradient(100deg, #fde68a, #fbbf24 40%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.resultat-titre.defaite { background: linear-gradient(100deg, #f9a8d4, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.resultat-titre.neutre { background: linear-gradient(100deg, #a5f3fc, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.resultat-texte { margin: 0 auto; max-width: 560px; color: var(--texte-2); font-size: 17px; text-wrap: balance; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.score { padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.score.gagnant { border-color: rgba(252, 211, 77, .5); background: linear-gradient(140deg, rgba(252, 211, 77, .14), rgba(255,255,255,.03)); }
.score .avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 16px; }
.score-texte { flex: 1; min-width: 0; }
.score-texte b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-texte span { font-size: 13.5px; color: var(--texte-2); }
.score-chiffre { text-align: right; line-height: 1; }
.score-chiffre b { font-family: var(--serif); font-size: 46px; font-weight: 400; }
.score-chiffre small { display: block; font-size: 12px; color: var(--texte-3); margin-top: 2px; }
.couronne { color: var(--or); }

.panneau { padding: 20px; margin-bottom: 16px; }
.panneau-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panneau-tete h2 { margin: 0; font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.panneau-tete h2 .ic { color: var(--texte-3); }
.carte { width: 100%; overflow: hidden; border-radius: 16px; background: radial-gradient(ellipse at center, rgba(129, 140, 248, .08), transparent 70%); }
.carte-svg { display: block; width: 100%; height: auto; overflow: visible; }
.carte .trait { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace var(--dur) linear var(--d) forwards; }
.carte .trait-moi { stroke: #7dd3fc; }
.carte .trait-adv { stroke: #f0abfc; }
.carte .trait-fantome { stroke: #94a3b8; }
.carte .trait-perdu { fill: none; stroke-width: 3; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0; animation: apparait-svg .4s var(--d) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.carte .partage { stroke: rgba(252, 211, 77, .6); stroke-width: 1.5; stroke-dasharray: 2 5; opacity: 0; animation: apparait-svg .5s var(--d) forwards; }
.carte .bulle { cursor: pointer; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .55s cubic-bezier(.2,1.5,.4,1) var(--d) forwards; outline: none; }
.carte .bulle .disque { stroke: rgba(255,255,255,.55); stroke-width: 1.2; transition: .2s; }
.carte .bulle .halo { opacity: .22; transition: .2s; }
.carte .bulle:hover .halo, .carte .bulle:focus-visible .halo { opacity: .5; }
.carte .halo-moi { fill: #67e8f9; } .carte .halo-adv { fill: #f9a8d4; } .carte .halo-fantome { fill: #cbd5e1; }
.carte .halo-depart { fill: #a78bfa; } .carte .halo-cible { fill: #fcd34d; }
.carte .bulle-cible .halo { animation: respire 2s ease-in-out infinite; }
@keyframes respire { 50% { opacity: .5; } }
.carte .num { fill: #0b0d1f; font: 700 11px var(--sans); text-anchor: middle; pointer-events: none; }
.carte .etiquette { fill: var(--texte); font: 560 12.5px var(--sans); paint-order: stroke; stroke: rgba(8, 10, 23, .85); stroke-width: 4px; stroke-linejoin: round; }
.carte .bulle:hover .etiquette { fill: #fff; }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes apparait-svg { to { opacity: 1; } }
.legende { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--texte-2); }
.legende span { display: inline-flex; align-items: center; gap: 7px; }
.legende i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.onglets { display: inline-flex; padding: 4px; border-radius: 13px; background: rgba(0,0,0,.25); border: 1px solid var(--bord); gap: 2px; }
.onglets button { border: 0; background: none; padding: 7px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 560; color: var(--texte-2); transition: .2s; }
.onglets button[aria-selected='true'] { background: rgba(255,255,255,.1); color: var(--texte); box-shadow: var(--reflet); }
.etapes { list-style: none; margin: 0; padding: 0; position: relative; }
.etapes::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--violet), var(--cyan), var(--or)); opacity: .35; border-radius: 2px; }
.etape { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 10px 6px; border-radius: 14px; transition: background .2s; animation: entree .45s both; animation-delay: var(--d, 0ms); }
.etape:hover { background: rgba(255,255,255,.035); }
.etape-num { width: 32px; height: 32px; margin: 2px 4px 0; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #0b0d1f; background: var(--g-moi); position: relative; box-shadow: 0 0 0 4px var(--fond-2); }
.etapes.adv .etape-num { background: var(--g-adv); }
.etapes.fantome .etape-num { background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.etape.depart .etape-num { background: linear-gradient(135deg, #c4b5fd, #6366f1); }
.etape.cible .etape-num { background: var(--g-or); }
.etape-img { width: 52px; height: 52px; border-radius: 12px; flex: none; background: rgba(255,255,255,.06) center/cover no-repeat; }
.etape-texte { flex: 1; min-width: 0; }
.etape-texte b { font-size: 15.5px; font-weight: 620; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.etape-texte p { margin: 2px 0 0; font-size: 14px; color: var(--texte-2); line-height: 1.45; }
.etape-texte .temps { font-size: 12px; font-weight: 500; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.etape a.wiki { color: var(--texte-3); display: inline-grid; place-items: center; }
.etape a.wiki:hover { color: var(--cyan); }
.etape a.wiki .ic { width: 14px; height: 14px; }
.badge { font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--texte-2); }
.badge.or { background: rgba(252, 211, 77, .16); color: var(--or); }
.etape-vide { padding: 20px; text-align: center; color: var(--texte-3); }

.actions-fin { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.actions-fin .bouton.attente-revanche { background: rgba(255,255,255,.08); color: var(--texte); box-shadow: var(--reflet); }
.actions-fin .bouton.pulse { animation: pulse-b 1.4s ease-in-out infinite; }
@keyframes pulse-b { 50% { box-shadow: 0 0 0 6px rgba(129, 140, 248, .25), 0 10px 30px -8px rgba(129, 140, 248, .65); } }

/* ---------- Modale ---------- */
.modale { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modale-fond { position: absolute; inset: 0; background: rgba(4, 6, 16, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fondu .25s both; }
.modale-boite { position: relative; width: min(560px, 100%); max-height: min(86dvh, 760px); overflow-y: auto; padding: 26px; border-radius: 26px;
  background: linear-gradient(165deg, rgba(30, 35, 70, .86), rgba(14, 17, 38, .9)); animation: monte .4s cubic-bezier(.2,.9,.3,1.1) both; overscroll-behavior: contain; }
@keyframes monte { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.fermer { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(12, 15, 34, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modale h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.02em; line-height: 1.05; margin: 0 40px 6px 0; }
.modale .sous { margin: 0 0 18px; color: var(--texte-2); font-size: 14.5px; }
.modale-image { width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; background: rgba(255,255,255,.05); display: block; }
.modale-texte { color: var(--texte-2); font-size: 15.5px; line-height: 1.6; }
.modale-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.modale ol.regles { padding-left: 1.2em; color: var(--texte-2); }
.modale ol.regles li { margin: 8px 0; }
.modale ol.regles b { color: var(--texte); }

.classement { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.classement li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid transparent; }
.classement li.moi { border-color: rgba(103, 232, 249, .45); background: rgba(103, 232, 249, .08); }
.classement .rang { width: 30px; text-align: center; font-family: var(--serif); font-size: 22px; color: var(--texte-3); }
.classement li:nth-child(1) .rang { color: var(--or); } .classement li:nth-child(2) .rang { color: #e2e8f0; } .classement li:nth-child(3) .rang { color: #fdba74; }
.classement .qui { flex: 1; min-width: 0; }
.classement .qui b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.classement .qui span { font-size: 12.5px; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.classement .perf { text-align: right; font-variant-numeric: tabular-nums; }
.classement .perf b { font-size: 17px; }
.classement .perf small { display: block; font-size: 12px; color: var(--texte-3); }
.bloc-partage { display: grid; gap: 14px; }
.partage-apercu { margin: 0; padding: 14px 16px; border-radius: var(--rayon-s); background: rgba(0,0,0,.28); border: 1px solid var(--bord); font: 14px/1.55 var(--sans); color: var(--texte-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.bloc-partage .ligne-boutons { justify-content: flex-start; }
.partage-titre { margin: 22px 0 10px; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.malin { padding: 16px; border-radius: 18px; margin-bottom: 16px; background: linear-gradient(140deg, rgba(252, 211, 77, .14), rgba(129, 140, 248, .08)); border: 1px solid rgba(252, 211, 77, .3); }
.malin small { font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--or); display: flex; gap: 6px; align-items: center; }
.malin .chaine { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.malin .chaine .puce-page { font-size: 13px; padding: 4px 10px; }
.malin .chaine .sep { color: var(--texte-3); font-size: 12px; }
.malin p { margin: 8px 0 0; font-size: 13.5px; color: var(--texte-2); }

/* ---------- Divers ---------- */
.pied-site { text-align: center; padding: 26px 20px calc(26px + var(--bas-sur)); font-size: 13px; color: var(--texte-3); }
.pied-site a { color: var(--texte-2); text-decoration: none; border-bottom: 1px solid var(--bord-fort); }
.toast { position: fixed; left: 50%; bottom: calc(90px + var(--bas-sur)); z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 520; max-width: calc(100% - 32px); text-align: center;
  background: rgba(24, 28, 58, .92); border: 1px solid var(--bord-fort); box-shadow: var(--ombre); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); transition: .35s cubic-bezier(.2,.9,.3,1.2); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.erreur { border-color: rgba(253, 164, 175, .55); }
.hors-ligne { position: fixed; top: calc(10px + var(--haut-sur)); left: 50%; transform: translateX(-50%); z-index: 90; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; display: flex; gap: 8px; align-items: center;
  background: rgba(60, 20, 30, .85); border: 1px solid rgba(253, 164, 175, .45); backdrop-filter: blur(12px); }
.hors-ligne .point { background: var(--rouge); }

@media (max-width: 720px) {
  .hud { grid-template-columns: 1fr auto; grid-template-areas: 'cible centre' 'adv adv'; gap: 6px; }
  .hud-cible { grid-area: cible; }
  .hud-centre { grid-area: centre; }
  .hud-adv { grid-area: adv; justify-self: stretch; flex-direction: row; text-align: left; padding: 4px 10px 4px 4px; }
  .hud-adv .avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
  .hud-adv-texte { flex-direction: row; align-items: center; gap: 8px; flex: 1; justify-content: space-between; }
  .hud-adv-texte small { max-width: none; }
  .hud-adv-texte b { font-size: 14px; }
  .chrono { font-size: 21px; }
  .vignette { width: 36px; height: 36px; }
  .feuille { border-radius: 22px; }
  .article { font-size: 16.5px; }
  .article .infobox_v3, .article .infobox_v2, .article .infobox, .article table.infobox { float: none; width: 100%; margin: 0 0 1.2em; }
  .article figure.mw-default-size, .article figure[class*='mw-halign-right'], .article .tright, .article .mw-halign-left, .article .tleft { float: none; margin: 1em auto; max-width: 100%; }
  .bouton-dock span { display: none; }
  .bouton-dock { padding: 0 12px; }
  .actions-fin .bouton { flex: 1 1 calc(50% - 12px); }
  .score-chiffre b { font-size: 38px; }
}
@media (max-width: 420px) {
  .mode-actions .bouton { flex-basis: 100%; }
  .entete-site .en-ligne { font-size: 12px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .carte .bulle, .carte .partage, .carte .trait-perdu { opacity: 1; }
  .carte .trait { stroke-dashoffset: 0; }
}
