/*
 * VELOCE — pages publiques (présentation, confidentialité, assistance).
 * Mêmes jetons que le jeu (src/styles/tokens.css) : graphite chaud, ivoire, laiton comme seul accent.
 * Aucune ressource externe : polices Saira et Manrope embarquées (OFL, fonts/OFL.txt), aucun script.
 */

@font-face { font-family: 'Saira'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/saira-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Saira'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/saira-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format('woff2'); }

:root {
  --ink-950: #0b0a09;
  --ink-900: #12110f;
  --ink-800: #1a1816;
  --ink-700: #24211e;
  --ivory: #f3ede3;
  --ivory-2: rgba(243, 237, 227, 0.74);
  --ivory-3: rgba(243, 237, 227, 0.56);
  --hair: rgba(255, 244, 228, 0.1);
  --hair-strong: rgba(255, 244, 228, 0.2);
  --wash: rgba(243, 237, 227, 0.05);
  --brass: #c9a35e;
  --brass-hi: #e6cb91;
  --brass-lo: #8c6d36;
  --brass-edge: rgba(201, 163, 94, 0.35);
  --brass-ink: #3a2c12;
  --rarity-common: #a9aeb4;
  --rarity-rare: #6f9cd9;
  --rarity-epic: #a68ad9;
  --rarity-legendary: #d9a54c;
  --rarity-mythic: #cc5b73;
  --font-display: 'Saira', 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  --measure: 720px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 70% at 50% -10%, #1d1a16 0%, #13110f 42%, transparent 78%),
    var(--ink-950);
  background-repeat: no-repeat;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ivory); font-weight: 700; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--ivory); }
p { margin: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 8px; background: var(--ivory); color: var(--ink-950); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Barre du haut -------------------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 8px var(--gutter);
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(11, 10, 9, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.24em; }
.brand:hover { color: var(--ivory); }
.top-end { display: flex; align-items: center; gap: 18px; }
.top-links { display: none; gap: 18px; }
.top-links a, .lang > a, .lang > span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-2);
}
.top-links a:hover, .lang > a:hover { color: var(--ivory); }
.top-links a[aria-current='page'] { color: var(--brass-hi); }
.lang { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--hair-strong); border-radius: 999px; }
.lang > a, .lang > span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 30px; padding: 0 8px; border-radius: 999px; }
.lang > span[aria-current] { background: var(--wash); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--hair-strong); }
@media (min-width: 640px) { .top-links { display: flex; } }

/* ---- Rainure graduée et bille de verre (motif de l’écran de démarrage du jeu) ------------------ */
.groove {
  position: relative;
  width: min(260px, 72%);
  height: 6px;
  margin: 30px 0 0;
  border-radius: 3px;
  background: #070605;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85), inset 0 -1px 0 rgba(255, 244, 228, 0.05), 0 1px 0 rgba(255, 244, 228, 0.06);
}
.groove.is-center { margin-left: auto; margin-right: auto; }
.groove-ticks {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 5px;
  background:
    linear-gradient(90deg, rgba(255, 244, 228, 0.36) 0 1px, transparent 1px) 0 0 / 1px 5px no-repeat,
    linear-gradient(90deg, rgba(255, 244, 228, 0.36) 0 1px, transparent 1px) 50% 0 / 1px 5px no-repeat,
    linear-gradient(90deg, rgba(255, 244, 228, 0.36) 0 1px, transparent 1px) 100% 0 / 1px 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 244, 228, 0.13) 0 1px, transparent 1px 10%) 0 0 / 100% 2px no-repeat;
}
.groove-trail {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 2px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(140, 109, 54, 0.12), rgba(201, 163, 94, 0.6));
  transform-origin: 0 50%;
  transform: scaleX(0.64);
  animation: groove-trail 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.groove-run { position: absolute; inset: 0; }
.marble {
  position: absolute;
  left: calc(64% - 6px);
  animation: groove-run 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  top: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  background: radial-gradient(circle at 50% 50%, rgba(152, 196, 214, 0.35) 0 50%, rgba(36, 66, 78, 0.9) 82%, #0d1d24 100%);
}
.marble-core {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(58, 120, 176, 0.95) 0 14%, rgba(150, 214, 236, 0.2) 22% 36%, rgba(58, 120, 176, 0.95) 44% 62%, rgba(150, 214, 236, 0.2) 70% 86%, rgba(58, 120, 176, 0.95) 94%);
  transform: rotate(560deg);
  animation: groove-spin 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.marble-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 252, 244, 0.95) 0 9%, rgba(255, 252, 244, 0) 24%),
    radial-gradient(circle at 66% 82%, rgba(255, 214, 150, 0.45) 0, rgba(255, 214, 150, 0) 34%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 244, 228, 0.25);
}
@keyframes groove-run { from { left: 0; } }
@keyframes groove-trail { from { transform: scaleX(0); } }
@keyframes groove-spin { from { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) {
  .marble, .groove-trail, .marble-core { animation: none; }
}

/* ---- Libellés -------------------------------------------------------------------------------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.kicker::before { content: ''; flex: none; width: 22px; height: 1px; background: currentColor; }
.ui {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86em;
  letter-spacing: 0.05em;
  color: var(--ivory);
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- Pages de lecture (confidentialité, assistance) ------------------------------------------ */
.doc { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--gutter) clamp(56px, 9vw, 104px); }
.doc h1 { margin-top: 14px; font-size: clamp(31px, 6.6vw, 54px); line-height: 1.02; letter-spacing: 0.01em; }
.lead { margin-top: 18px; font-size: clamp(17px, 2vw, 19.5px); line-height: 1.55; color: var(--ivory-2); }
.date { margin-top: 14px; font-size: 13.5px; color: var(--ivory-3); }
sup { font-size: 0.72em; line-height: 0; }
.doc p, .doc li { color: var(--ivory-2); }
.doc p { margin-top: 14px; }
.doc section { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--hair); }
.doc h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(21px, 3.2vw, 27px); line-height: 1.15; letter-spacing: 0.02em; }
.doc h2 .n { flex: none; font-weight: 600; font-size: 0.62em; letter-spacing: 0.12em; color: var(--brass); font-variant-numeric: tabular-nums; }
.doc h3 { margin-top: 26px; font-weight: 600; font-size: 12.5px; letter-spacing: 0.16em; color: var(--brass); }
.doc ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.doc ul li, .brief li { position: relative; padding-left: 22px; }
.doc ul li::before, .brief li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 252, 244, 0.95) 0 14%, rgba(255, 252, 244, 0) 34%),
    radial-gradient(circle at 50% 55%, var(--brass-hi) 0, var(--brass) 45%, var(--brass-lo) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.brief {
  margin-top: 34px;
  padding: 22px clamp(18px, 4vw, 28px) 24px;
  border-radius: 18px;
  border: 1px solid var(--brass-edge);
  background: radial-gradient(80% 120% at 0% 0%, rgba(201, 163, 94, 0.1), transparent 70%), var(--ink-900);
}
.brief h2 { font-size: 15px; letter-spacing: 0.16em; color: var(--brass-hi); }
.brief ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.brief li { color: var(--ivory-2); }
.note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--wash);
  border: 1px solid var(--hair-strong);
}
.doc .note { color: var(--ivory); }

/* ---- Assistance : contact, sommaire, questions dépliables -------------------------------------- */
.contact { scroll-margin-top: 76px; }
.contact p { margin-top: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass-ink);
  background: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 55%, #ad8a47 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.55), inset 0 -1px 0 rgba(58, 44, 18, 0.35), 0 6px 18px rgba(0, 0, 0, 0.45);
}
.btn:hover { color: var(--brass-ink); filter: brightness(1.05); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: var(--wash);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
}
.chips a:hover { border-color: var(--brass-edge); color: var(--brass-hi); }
.doc details { border-bottom: 1px solid var(--hair); }
.doc h2 + details { margin-top: 10px; }
.doc summary {
  position: relative;
  padding: 17px 40px 17px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(16.5px, 2vw, 18px);
  line-height: 1.4;
  color: var(--ivory);
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--brass), var(--brass)) 50% 50% / 14px 1.5px no-repeat,
    linear-gradient(var(--brass), var(--brass)) 50% 50% / 1.5px 14px no-repeat;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.doc details[open] summary::after { transform: rotate(45deg); }
.doc summary:hover { color: var(--brass-hi); }
.doc details > :not(summary) { margin-top: 0; margin-bottom: 12px; }
.doc details > :last-child { margin-bottom: 22px; }
@media (prefers-reduced-motion: reduce) { .doc summary::after { transition: none; } }

/* ---- Présentation (index) -------------------------------------------------------------------- */
.hero { max-width: 980px; margin: 0 auto; padding: clamp(36px, 8vw, 88px) var(--gutter) clamp(30px, 5vw, 56px); text-align: center; }
.hero-logo { width: clamp(132px, 30vw, 184px); margin: 0 auto; border-radius: 22%; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.7)); }
.hero .kicker { justify-content: center; margin-top: 28px; }
.hero .kicker::after { content: ''; flex: none; width: 22px; height: 1px; background: currentColor; }
.hero h1 { margin: 16px auto 0; max-width: 15ch; font-size: clamp(32px, 7.4vw, 66px); line-height: 1; letter-spacing: 0.01em; }
.hero .lead { max-width: 40em; margin-left: auto; margin-right: auto; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-2);
}
.band { max-width: 1080px; margin: 0 auto; padding: clamp(44px, 7vw, 80px) var(--gutter) 0; }
.band-head { max-width: var(--measure); }
.band h2 { margin-top: 12px; font-size: clamp(26px, 4.6vw, 42px); line-height: 1.04; letter-spacing: 0.01em; }
.band-head p { margin-top: 14px; color: var(--ivory-2); }

.sections { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 0 clamp(20px, 4vw, 48px); counter-reset: sec; }
.sections li { position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--hair); counter-increment: sec; }
.sections li::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 17px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.sections li::after { content: ''; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: var(--brass); }
.sections b { display: block; text-transform: uppercase; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; color: var(--ivory); }
.sections span { display: block; margin-top: 2px; font-size: 15px; color: var(--ivory-2); }
@media (min-width: 720px) { .sections { grid-template-columns: 1fr 1fr; } }

.steps { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.card {
  padding: 20px 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(36, 33, 30, 0.6), rgba(18, 17, 15, 0.6));
}
.card h3 { font-weight: 700; font-size: 15px; letter-spacing: 0.12em; }
.card h3 small { display: block; margin-bottom: 6px; font-weight: 600; font-size: 11.5px; letter-spacing: 0.16em; color: var(--brass); }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--ivory-2); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.features { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

.rarities { margin: 28px 0 0; display: grid; gap: 14px; }
.rarity { display: grid; gap: 8px; align-content: start; }
.rarity-name { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.rarity ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rarity li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.14em;
}
.rarity li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 252, 244, 0.95) 0 9%, rgba(255, 252, 244, 0) 26%),
    radial-gradient(circle at 50% 55%, transparent 0 34%, rgba(10, 9, 8, 0.55) 100%),
    conic-gradient(from 30deg, var(--c) 0 18%, rgba(243, 237, 227, 0.18) 26% 40%, var(--c) 48% 66%, rgba(243, 237, 227, 0.18) 74% 88%, var(--c) 96%);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 228, 0.22), 0 1px 3px rgba(0, 0, 0, 0.7);
}
@media (min-width: 720px) { .rarities { grid-template-columns: repeat(5, auto); justify-content: start; gap: 18px 28px; } }

.plate {
  margin-top: 30px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
  border: 1px solid var(--brass-edge);
  background: radial-gradient(70% 120% at 100% 0%, rgba(201, 163, 94, 0.1), transparent 70%), var(--ink-900);
}
.plate p { max-width: 68ch; margin-top: 12px; color: var(--ivory-2); }
.plate p:first-child { margin-top: 0; }
.plate .quote { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; color: var(--ivory); }
.links { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.links a { display: block; height: 100%; text-decoration: none; color: inherit; }
.links a:hover h3 { color: var(--brass-hi); }
.links .card h3::after { content: ' ›'; color: var(--brass); }
@media (min-width: 720px) { .links { grid-template-columns: 1fr 1fr; } }
.publisher > * { max-width: var(--measure); }
.publisher p { margin-top: 12px; color: var(--ivory-2); }

/* ---- Pied de page ---------------------------------------------------------------------------- */
.foot {
  margin-top: clamp(56px, 8vw, 96px);
  padding: 28px var(--gutter) max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  color: var(--ivory-3);
  font-size: 14px;
}
.foot-in { max-width: calc(1080px - 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 10px; }
.foot-brand { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.22em; color: var(--ivory); }
.foot-brand span { margin-left: 10px; font-weight: 600; letter-spacing: 0.1em; color: var(--ivory-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { color: var(--ivory-2); text-decoration: none; }
.foot a:hover { color: var(--ivory); text-decoration: underline; }

/* Raretés (couleurs du jeu) et notes sous les bandeaux. */
.rarity.is-common { --c: var(--rarity-common); }
.rarity.is-rare { --c: var(--rarity-rare); }
.rarity.is-epic { --c: var(--rarity-epic); }
.rarity.is-legendary { --c: var(--rarity-legendary); }
.rarity.is-mythic { --c: var(--rarity-mythic); }
.band-note { max-width: var(--measure); margin-top: 22px; font-size: 15px; color: var(--ivory-3); }
.band-note a { color: var(--ivory-2); }
.rarity li { text-transform: uppercase; }
/* Le sommaire de l’assistance n’hérite pas des listes de lecture (puces et grille). */
.doc .chips { display: flex; gap: 8px; margin-top: 28px; }
.doc .chips li { padding-left: 0; }
.doc .chips li::before { content: none; }
