/* ==========================================================================
   Count on Me — site vitrine
   Direction : « la feuille de score » — papier crème, encre marine,
   surligneur cyan. Mode sombre : « l'ardoise ».
   ========================================================================== */

:root {
  --paper: #f6f1e6;
  --paper-2: #ede5d3;
  --card: #fffdf7;
  --ink: #0f1a2e;
  --ink-2: #44506a;
  --ink-3: #6b7489;
  --rule: rgba(14, 116, 168, 0.13);
  --margin: #e5484d;
  --line: rgba(15, 26, 46, 0.14);
  --cyan: #22c3ee;
  --cyan-ink: #0369a1;
  --cyan-soft: rgba(34, 195, 238, 0.32);
  --red: #e5484d;
  --shadow: 0 1px 0 rgba(15, 26, 46, 0.04), 0 18px 40px -18px rgba(15, 26, 46, 0.35);
  --hard: 4px 4px 0 var(--ink);
  /* Contours et ombres dures des éléments « à l'encre » ; le style Néon les remplace par des lueurs. */
  --stroke: #0f1a2e;
  --hard-hover: 6px 6px 0 #0f1a2e;
  --hard-press: 1px 1px 0 #0f1a2e;
  --hard-sm: 3px 3px 0 #0f1a2e;
  --slab: #0f1a2e;
  --slab-ink: #f6f1e6;
  /* Couleur du premier joueur, comme dans l'app (démo du compteur). */
  --player-1: #1d4ed8;

  --f-head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1a2e;
    --paper-2: #14223a;
    --card: #17263f;
    --ink: #f3eee3;
    --ink-2: #b6bfd0;
    --ink-3: #8a94a8;
    --rule: rgba(255, 255, 255, 0.05);
    --line: rgba(243, 238, 227, 0.14);
    --cyan-ink: #5fd4f5;
    --cyan-soft: rgba(34, 195, 238, 0.28);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --hard: 4px 4px 0 #050b16;
  /* Ardoise : contours à l'encre claire, comme dans l'app. */
  --stroke: rgba(243, 238, 227, 0.75);
  --hard-hover: 6px 6px 0 #050b16;
  --hard-press: 1px 1px 0 #050b16;
  --hard-sm: 3px 3px 0 #050b16;
    --slab: #08111f;
    --slab-ink: #f3eee3;
  --player-1: #8fb3ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1a2e;
  --paper-2: #14223a;
  --card: #17263f;
  --ink: #f3eee3;
  --ink-2: #b6bfd0;
  --ink-3: #8a94a8;
  --rule: rgba(255, 255, 255, 0.05);
  --line: rgba(243, 238, 227, 0.14);
  --cyan-ink: #5fd4f5;
  --cyan-soft: rgba(34, 195, 238, 0.28);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --hard: 4px 4px 0 #050b16;
  /* Ardoise : contours à l'encre claire, comme dans l'app. */
  --stroke: rgba(243, 238, 227, 0.75);
  --hard-hover: 6px 6px 0 #050b16;
  --hard-press: 1px 1px 0 #050b16;
  --hard-sm: 3px 3px 0 #050b16;
  --slab: #08111f;
  --slab-ink: #f3eee3;
  --player-1: #8fb3ff;
  color-scheme: dark;
}

/* ==========================================================================
   Style « Néon » (choisi dans l'en-tête, comme dans l'app) : tableau
   d'affichage sombre, couleurs lumineuses, toujours sombre.
   ========================================================================== */
:root[data-style="neon"] {
  --paper: #07070d;
  --paper-2: #11111c;
  --card: #11111c;
  --ink: #f2f3ff;
  --ink-2: #a3a6c2;
  --ink-3: #82869f;
  --rule: rgba(255, 255, 255, 0.04);
  --margin: #ff3dce;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #2ee6ff;
  --cyan-ink: #2ee6ff;
  --cyan-soft: rgba(46, 230, 255, 0.22);
  --red: #ff3dce;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  --hard: 0 0 0 1px rgba(46, 230, 255, 0.45), 0 0 26px rgba(46, 230, 255, 0.28);
  --stroke: rgba(255, 255, 255, 0.12);
  --hard-hover: 0 0 0 1.5px #2ee6ff, 0 0 34px rgba(46, 230, 255, 0.5);
  --hard-press: 0 0 0 1.5px #2ee6ff, 0 0 14px rgba(46, 230, 255, 0.4);
  --hard-sm: 0 0 18px rgba(46, 230, 255, 0.45);
  --slab: #0d0d17;
  --slab-ink: #f2f3ff;
  --f-head: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-hand: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}
[data-style="neon"] body::before { display: none; }
[data-style="neon"] h1, [data-style="neon"] h2, [data-style="neon"] h3 { letter-spacing: -0.02em; line-height: 1.08; }
[data-style="neon"] .hero h1 { font-size: clamp(38px, 5.6vw, 72px); }
[data-style="neon"] .mark { background: none; color: var(--cyan); text-shadow: 0 0 22px rgba(46, 230, 255, 0.55); }
[data-style="neon"] .btn--cyan { border-color: transparent; box-shadow: 0 0 24px rgba(46, 230, 255, 0.5); }
[data-style="neon"] .btn--ghost { border-color: rgba(255, 255, 255, 0.18); }
[data-style="neon"] .ticker { border-color: rgba(46, 230, 255, 0.35); box-shadow: 0 0 30px rgba(46, 230, 255, 0.15); }
[data-style="neon"] .ticker__track i.r { color: #ff3dce; }
[data-style="neon"] .hand-fan figure { border-color: rgba(255, 255, 255, 0.14); }
[data-style="neon"] .tldr { transform: none; border-radius: 18px; border: 0; }
[data-style="neon"] .paper::before { display: none; }
[data-style="neon"] .paper { border-radius: 20px; padding-left: clamp(22px, 4vw, 52px); background: var(--card); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* grain de papier */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--cyan); color: #0f1a2e; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
p { margin: 0; }

.hand { font-family: var(--f-hand); font-weight: 600; letter-spacing: 0; }
.mono { font-family: var(--f-mono); }

/* trait de surligneur */
.mark {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(transparent 58%, var(--cyan-soft) 58%, var(--cyan-soft) 92%, transparent 92%);
  padding: 0 0.08em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--card);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 2px solid var(--stroke);
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--hard);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-hover); }
.btn:active { transform: translate(3px, 3px); box-shadow: var(--hard-press); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--cyan { --bg: var(--cyan); --fg: #0f1a2e; }
.btn--ghost { --bg: transparent; border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; transform: none; background: var(--paper-2); }
.btn--lg { padding: 18px 26px; font-size: 18px; border-radius: 16px; }
.btn small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; margin-bottom: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px dashed var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand .brand__icon { width: 40px; height: 40px; border-radius: 11px; transition: transform 0.2s ease; }
.brand:hover .brand__icon { transform: rotate(-8deg) scale(1.05); }
/* Logo texte « count on me » (design system Lunar BHN Prod), rendu au double de sa taille d'affichage. */
.brand .brand__wordmark { height: 28px; width: auto; display: block; }
/* Version claire ou foncée du logo texte selon le fond (thème sombre ou style Néon). */
.brand .wordmark--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .wordmark--light { display: none; }
  :root:not([data-theme="light"]) .brand .wordmark--dark { display: block; }
}
:root[data-theme="dark"] .brand .wordmark--light, :root[data-style="neon"] .brand .wordmark--light { display: none; }
:root[data-theme="dark"] .brand .wordmark--dark, :root[data-style="neon"] .brand .wordmark--dark { display: block; }

/* Sélecteur de style, comme dans l'app : Feuille de score / Néon. */
.header-actions { display: flex; align-items: center; gap: 12px; }
.style-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1.5px solid var(--stroke); border-radius: 999px; background: var(--card); }
.style-switch button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: 600 13px var(--f-display); cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.style-switch button:hover { color: var(--ink); }
.style-switch button[aria-pressed="true"] { background: var(--cyan); color: #0f1a2e; }
[data-style="neon"] .style-switch { border-color: rgba(255, 255, 255, 0.14); }
[data-style="neon"] .style-switch button[aria-pressed="true"] { color: #07070d; box-shadow: 0 0 16px rgba(46, 230, 255, 0.55); }
.style-switch svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 560px) {
  .site-header .header-actions .btn { display: none; }
  .brand .brand__wordmark { height: 22px; }
  .style-switch button span { display: none; }
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink-2); position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 1px; height: 7px;
  background: var(--cyan-soft); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; z-index: -1;
}
.nav a:hover::after { transform: scaleX(1); }
.site-header .btn { padding: 10px 16px; font-size: 14px; border-radius: 12px; box-shadow: var(--hard-sm); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); margin: 22px 0 24px; }
.hero h1 .strike {
  color: var(--ink-3); font-weight: 500;
  text-decoration: line-through var(--red) 0.08em;
  text-decoration-skip-ink: none;
}
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34ch; }
.hero .lede strong { color: var(--ink); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); color: #0f1a2e; font-size: 12px; font-weight: 700; }

/* la feuille de score */
.stage { position: relative; min-height: 560px; }
.sheet {
  position: absolute;
  top: 10px; left: 0;
  width: min(440px, 88%);
  padding: 26px 22px 22px 54px;
  background:
    linear-gradient(90deg, transparent 38px, var(--margin) 38px, var(--margin) 40px, transparent 40px),
    repeating-linear-gradient(transparent 0 37px, var(--rule) 37px 38px),
    #fffdf6;
  background-position: 0 0, 0 22px, 0 0;
  color: #0f1a2e;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 30px 60px -24px rgba(15, 26, 46, 0.45);
  transform: rotate(-4deg);
  font-family: var(--f-hand);
}
.sheet::before { /* scotch */
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(34, 195, 238, 0.35);
  border-left: 1px dashed rgba(15,26,46,.15); border-right: 1px dashed rgba(15,26,46,.15);
}
.sheet h2 { font-family: var(--f-hand); font-weight: 700; font-size: 32px; letter-spacing: 0; line-height: 1; margin-bottom: 12px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 26px; line-height: 38px; }
.sheet th { font-weight: 700; text-align: center; font-size: 24px; border-bottom: 2px solid #0f1a2e; }
.sheet td { text-align: center; color: #26407a; }
.sheet td:first-child, .sheet th:first-child { text-align: left; color: #8b93a3; font-size: 20px; width: 40px; }
.sheet .x { position: relative; color: #9aa3b5; }
.sheet .x::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 2px; background: var(--red); transform: rotate(-12deg); }
.sheet .total td { border-top: 2px solid #0f1a2e; font-weight: 700; color: #0f1a2e; }
.sheet .win { position: relative; }
.sheet .win::before {
  content: ""; position: absolute; inset: 2px -6px; border: 2.5px solid var(--red); border-radius: 50%;
  transform: rotate(-6deg);
}
.sheet .row { opacity: 0; animation: write 0.4s ease forwards; }
.sheet .row:nth-child(1) { animation-delay: 0.3s; }
.sheet .row:nth-child(2) { animation-delay: 0.5s; }
.sheet .row:nth-child(3) { animation-delay: 0.7s; }
.sheet .row:nth-child(4) { animation-delay: 0.9s; }
.sheet .row:nth-child(5) { animation-delay: 1.1s; }
.sheet .row:nth-child(6) { animation-delay: 1.3s; }
@keyframes write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.sheet .smudge { position: absolute; bottom: 18px; right: 22px; font-size: 22px; color: var(--red); transform: rotate(-6deg); }

.phone {
  position: absolute;
  right: 0; bottom: 0;
  width: min(250px, 52%);
  aspect-ratio: 1 / 2;
  border-radius: 34px;
  padding: 9px;
  background: #0f1a2e;
  box-shadow: 0 40px 70px -30px rgba(15, 26, 46, 0.65), inset 0 0 0 2px #26324a;
  transform: rotate(5deg);
  animation: float 6s ease-in-out infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
@keyframes float { 50% { transform: rotate(5deg) translateY(-10px); } }

.note {
  position: absolute;
  font-family: var(--f-hand);
  font-size: 26px;
  line-height: 1.05;
  color: var(--ink-2);
}
.note svg { width: 70px; height: 50px; color: var(--ink-2); }
.note--sheet { left: 4%; bottom: 8px; transform: rotate(-3deg); display: flex; align-items: flex-end; gap: 4px; }
.note--sheet svg { transform: scaleX(-1) rotate(-30deg); margin-bottom: 18px; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { min-height: 520px; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .stage { min-height: 470px; }
  .sheet { padding: 20px 14px 18px 46px; width: 92%; }
  .sheet table { font-size: 22px; }
  .sheet h2 { font-size: 27px; }
  .phone { width: 46%; border-radius: 26px; padding: 7px; }
  .phone img { border-radius: 20px; }
  .note--sheet { display: none; }
}

/* ---------- Bandeau de jeux ---------- */
.ticker {
  background: var(--slab);
  color: var(--slab-ink);
  border-block: 2px solid var(--stroke);
  transform: rotate(-1.2deg);
  margin: 0 -20px;
  overflow: hidden;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker__track span {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 16px 14px;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap;
}
.ticker__track i { font-style: normal; color: var(--cyan); font-size: 0.8em; }
.ticker__track i.r { color: #ff6b70; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head h2 { font-size: clamp(38px, 5.4vw, 68px); margin-top: 16px; max-width: 14ch; }
.section__head p { max-width: 38ch; color: var(--ink-2); }
@media (max-width: 760px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Main de cartes (captures) ---------- */
.hand-fan {
  --n: 7;
  position: relative;
  height: 560px;
  display: flex;
  justify-content: center;
}
.hand-fan figure {
  --mid: calc((var(--n) - 1) / 2);
  --off: calc(var(--i) - var(--mid));
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 240px;
  margin: 0 0 0 -120px;
  aspect-ratio: 1 / 2;
  border-radius: 22px;
  border: 2px solid var(--stroke);
  background: #0f1a2e;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-origin: 50% 160%;
  transform: rotate(calc(var(--off) * 10deg)) translateY(calc(var(--off) * var(--off) * 6px));
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.hand-fan:hover figure { transform: rotate(calc(var(--off) * 14deg)) translateY(calc(var(--off) * var(--off) * 8px)); }
.hand-fan figure:hover {
  transform: rotate(calc(var(--off) * 14deg)) translateY(calc(var(--off) * var(--off) * 8px - 50px)) scale(1.04);
  z-index: 10;
  box-shadow: 0 40px 60px -20px rgba(15,26,46,.6);
}
.hand-fan img { width: 100%; height: 100%; object-fit: cover; }
.hand-fan figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1.5px solid var(--stroke);
}
.fan-hint { text-align: center; margin-top: 8px; font-size: 24px; color: var(--ink-3); }

@media (max-width: 900px) {
  .hand-fan {
    height: auto;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px var(--gutter) 30px;
    margin: 0 calc(var(--gutter) * -1);
    scrollbar-width: none;
  }
  .hand-fan::-webkit-scrollbar { display: none; }
  .hand-fan figure, .hand-fan:hover figure, .hand-fan figure:hover {
    position: relative; left: auto; bottom: auto; margin: 0; flex: none;
    width: 200px; transform: rotate(calc(var(--off) * 1.2deg)); scroll-snap-align: center;
  }
  .fan-hint .desk { display: none; }
}
@media (min-width: 901px) { .fan-hint .touch { display: none; } }

/* ---------- Fonctionnalités : cartes comme dans l'app ---------- */
.deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Feuille : carte papier à l'encre et ombre dure ; Néon : tuile sombre au halo de sa couleur. */
.pcard {
  --accent: var(--cyan);
  position: relative;
  min-height: 280px;
  padding: 26px 26px 24px;
  background: var(--card);
  border: 1.5px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pcard:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-hover); }
.pcard__tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--stroke); background: var(--paper);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.pcard__tag svg { width: 15px; height: 15px; color: var(--ink); }
.pcard h3 { font-size: 26px; }
.pcard p { color: var(--ink-2); font-size: 16px; }
.pcard .art { margin: auto 0 0; padding-top: 10px; font-family: var(--f-hand); font-size: 24px; color: var(--cyan-ink); line-height: 1.1; }

[data-style="neon"] .pcard { border: 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
[data-style="neon"] .pcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--accent), 0 0 34px color-mix(in srgb, var(--accent) 40%, transparent); }
[data-style="neon"] .pcard__tag { border: 0; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
[data-style="neon"] .pcard__tag svg { color: var(--accent); }
[data-style="neon"] .pcard .art { font-size: 15px; font-weight: 700; color: var(--accent); }
[data-style="neon"] .pcard.c-pink { --accent: #ff3dce; }
[data-style="neon"] .pcard.c-lime { --accent: #b8ff3d; }
[data-style="neon"] .pcard.c-amber { --accent: #ffb020; }

/* carte sur toute la largeur (dernière ligne) */
.pcard--wide { grid-column: 1 / -1; min-height: 0; }
.pcard--wide p { max-width: 72ch; }

/* carte avec la démo du compteur */
.pcard--play { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.pcard--play > div:first-of-type { display: flex; flex-direction: column; gap: 12px; height: 100%; }

/* Démo du compteur, deux présentations comme dans l'app : feuille de score (Feuille) et tuile (Néon). */
.demo { width: 300px; font-family: var(--f-display); }
.demo--tile { display: none; }
[data-style="neon"] .demo--sheet { display: none; }
[data-style="neon"] .demo--tile { display: block; }

.demo--sheet {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 38px, var(--margin) 38px, var(--margin) 40px, transparent 40px) var(--card);
  border: 1.5px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--hard);
  color: var(--ink);
}
.demo--sheet .demo__head {
  display: flex; justify-content: space-between; padding: 12px 14px 8px 52px;
  border-bottom: 1.5px solid var(--stroke);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.demo--sheet .demo__line { padding: 12px 14px 14px 0; }
.demo--sheet .demo__row { display: flex; align-items: center; }
.demo--sheet .demo__rank { width: 40px; text-align: center; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.demo--sheet .demo__name { flex: 1; padding-left: 12px; font-family: "Caveat", cursive; font-weight: 700; font-size: 30px; line-height: 1; color: var(--player-1); }
.demo--sheet .demo__score { font-family: var(--f-mono); font-size: 32px; font-weight: 500; padding: 0 6px; font-variant-numeric: tabular-nums; }
.demo--sheet .demo__score.lead { background: var(--cyan-soft); }
.demo--sheet .demo__steps { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-left: 52px; }
.demo--sheet .demo__steps button {
  flex: 1; height: 44px; border-radius: 10px; border: 1.5px solid var(--stroke);
  background: var(--paper); color: var(--ink); font: 500 14px var(--f-mono); cursor: pointer;
}
.demo--sheet .demo__steps button.plus { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo--sheet .demo__round { min-width: 40px; text-align: center; font-family: var(--f-mono); font-size: 15px; color: var(--cyan-ink); }

.demo--tile {
  padding: 16px;
  border-radius: 24px;
  background: #11111c;
  color: #f2f3ff;
  box-shadow: 0 0 0 1.5px #2ee6ff, 0 0 30px rgba(46, 230, 255, 0.4);
}
.demo--tile .demo__row { display: flex; justify-content: space-between; align-items: center; }
.demo--tile .demo__name { font-weight: 700; font-size: 18px; color: #2ee6ff; }
.demo--tile .demo__rank { font-family: "Unbounded", sans-serif; font-size: 12px; color: #a3a6c2; }
.demo--tile .demo__score {
  text-align: center; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 64px; line-height: 1.1; margin-top: 12px;
  text-shadow: 0 0 20px rgba(46, 230, 255, 0.75); font-variant-numeric: tabular-nums;
}
.demo--tile .demo__round { text-align: center; font-weight: 600; font-size: 14px; color: #2ee6ff; margin: 2px 0 14px; }
.demo--tile .demo__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo--tile .demo__steps button {
  height: 50px; border: 0; border-radius: 14px; background: #191928; color: #f2f3ff;
  font: 700 18px "Unbounded", sans-serif; cursor: pointer;
}
.demo--tile .demo__steps button.plus { background: #2ee6ff; color: #07070d; }
.demo--tile .demo__steps button.big { color: #2ee6ff; font-size: 15px; }

.demo button { transition: transform 0.1s ease; }
.demo button:active { transform: scale(0.92); }
.demo__score.bump { animation: bump 0.25s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }
.demo__log { margin-top: 10px; min-height: 22px; font-family: var(--f-hand); font-size: 20px; color: var(--ink-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-style="neon"] .demo__log { font-size: 13px; }

@media (max-width: 980px) {
  .deck { grid-template-columns: repeat(2, 1fr); }
  .pcard--play { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .deck { grid-template-columns: 1fr; gap: 20px; }
  .pcard { min-height: 0; }
  .pcard--play { grid-template-columns: 1fr; }
  .demo { width: 100%; }
}

/* ---------- Bloc vie privée ---------- */
/* Une carte comme les autres : à l'encre et ombre dure en Feuille, tuile au halo en Néon. */
.slab {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--stroke);
  border-radius: 20px;
  box-shadow: var(--hard);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.slab .kicker { color: var(--ink-2); }
.slab h2 { font-size: clamp(38px, 5.4vw, 68px); margin: 16px 0 20px; max-width: 16ch; }
.slab > p { color: var(--ink-2); max-width: 56ch; font-size: 18px; }
.zeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1.5px solid var(--stroke); }
.zeros div { padding: 26px 24px 0 0; }
.zeros div + div { padding-left: 24px; border-left: 1px solid var(--line); }
/* Chiffres comme le total du leader dans l'app : police des scores et surligneur. */
.zeros b { display: inline-block; font-family: var(--f-mono); font-weight: 500; font-size: clamp(52px, 7vw, 92px); line-height: 1; color: var(--ink); letter-spacing: -0.04em; padding: 0 0.08em; background: linear-gradient(transparent 55%, var(--cyan-soft) 55%, var(--cyan-soft) 92%, transparent 92%); }
.zeros span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.stamp {
  position: absolute; top: clamp(24px, 4vw, 48px); right: clamp(24px, 4vw, 48px);
  padding: 10px 18px; border: 3px solid var(--red); border-radius: 10px;
  color: var(--red); font-family: var(--f-mono); font-weight: 500; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  transform: rotate(8deg); opacity: 0.9; z-index: 1;
}
[data-style="neon"] .slab { border: 0; box-shadow: 0 0 0 1.5px rgba(46, 230, 255, 0.55), 0 0 40px rgba(46, 230, 255, 0.18); }
[data-style="neon"] .zeros { border-top-color: rgba(255, 255, 255, 0.1); }
[data-style="neon"] .zeros b { font-family: var(--f-head); font-weight: 800; color: var(--cyan); background: none; text-shadow: 0 0 26px rgba(46, 230, 255, 0.55); }
[data-style="neon"] .stamp { text-shadow: 0 0 12px rgba(255, 61, 206, 0.6); }
@media (max-width: 760px) {
  .zeros { grid-template-columns: 1fr; }
  .zeros div, .zeros div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stamp { position: static; display: inline-block; margin-bottom: 18px; transform: rotate(-3deg); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq h2 { font-size: clamp(38px, 5.4vw, 68px); margin-top: 16px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-weight: 700; font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border: 2px solid var(--ink); border-radius: 50%; font-family: var(--f-mono); font-size: 22px; font-weight: 500;
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq details[open] summary::after { content: "−"; background: var(--cyan); color: #0f1a2e; border-color: var(--stroke); }
.faq details p { padding: 0 56px 26px 0; color: var(--ink-2); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq details p { padding-right: 0; } }

/* ---------- CTA final ---------- */
.final { text-align: center; padding: clamp(80px, 10vw, 140px) 0 clamp(90px, 10vw, 150px); position: relative; }
.final h2 { font-size: clamp(48px, 9vw, 120px); max-width: 12ch; margin: 18px auto 24px; }
.final p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 38px; font-size: 19px; }
.tally { display: flex; justify-content: center; gap: 22px; margin-bottom: 8px; color: var(--ink); }
.tally svg { width: 74px; height: 64px; }
.tally path { stroke-dasharray: 80; stroke-dashoffset: 80; }
.is-visible .tally path { animation: draw 0.25s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--slab); color: #b6bfd0; padding: 44px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand { color: var(--slab-ink); }
/* Mention de l'éditeur : logo Lunar BHN Prod, version foncée à l'accent du projet (cyan). */
/* Hauteur 48 px : le mot « lunar » y dépasse les 28 px minimum du design system. */
.made-by { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 14px; color: #b6bfd0; white-space: nowrap; }
.made-by img { height: 48px; width: auto; display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: #b6bfd0; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .sig { font-family: var(--f-hand); font-size: 22px; color: var(--slab-ink); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Page Politique de confidentialité
   ========================================================================== */
.legal-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.legal-hero h1 { font-size: clamp(44px, 7vw, 88px); margin: 18px 0 18px; max-width: 13ch; }
.legal-hero .meta { font-family: var(--f-mono); font-size: 14px; color: var(--ink-2); }

.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(80px, 10vw, 130px); }
.toc { position: sticky; top: 100px; }
.toc p { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 12px; padding: 9px 0; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; line-height: 1.3;
  border-bottom: 1px dashed var(--line);
}
.toc a::before { content: counter(toc); font-family: var(--f-hand); font-size: 22px; line-height: 0.9; color: var(--cyan-ink); width: 14px; flex: none; }
.toc a:hover, .toc a.active { color: var(--ink); }
.toc a.active::before { color: var(--red); }

.tldr {
  position: relative;
  background: var(--cyan);
  color: #0f1a2e;
  border: 2px solid var(--stroke);
  border-radius: 6px;
  padding: 28px 28px 24px;
  box-shadow: var(--hard);
  transform: rotate(-1deg);
  margin-bottom: 48px;
}
.tldr h2 { font-family: var(--f-hand); font-size: 34px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tldr li { display: flex; gap: 12px; font-weight: 600; }
.tldr li::before { content: "→"; font-family: var(--f-mono); }

.paper {
  position: relative;
  background:
    linear-gradient(90deg, transparent 52px, color-mix(in srgb, var(--margin) 70%, transparent) 52px, color-mix(in srgb, var(--margin) 70%, transparent) 54px, transparent 54px),
    repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px),
    var(--card);
  border: 2px solid var(--stroke);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 52px) clamp(28px, 4vw, 52px) clamp(72px, 9vw, 96px);
  box-shadow: var(--shadow);
}
.paper::before { /* trous de classeur */
  content: ""; position: absolute; left: 18px; top: 40px; bottom: 40px; width: 14px;
  background: radial-gradient(circle at 7px 7px, var(--paper) 6px, rgba(15,26,46,.25) 6.5px, transparent 7.5px) 0 0 / 14px 180px repeat-y;
}
.paper section + section { margin-top: 48px; padding-top: 40px; border-top: 1px dashed var(--line); }
.paper h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; scroll-margin-top: 100px; }
.paper h2 .n { font-family: var(--f-hand); font-size: 1.5em; color: var(--red); font-weight: 700; line-height: 0.6; }
.paper p, .paper li { color: var(--ink-2); font-size: 17px; }
.paper p + p, .paper p + ul, .paper ul + p { margin-top: 14px; }
.paper strong { color: var(--ink); }
.paper ul { padding: 0; margin: 14px 0 0; list-style: none; display: grid; gap: 10px; }
.paper ul li { position: relative; padding-left: 28px; }
.paper ul li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cyan-ink); }
.paper a { color: var(--cyan-ink); font-weight: 600; text-underline-offset: 3px; }
.paper .boxed { background: var(--paper-2); border-radius: 12px; padding: 18px 20px; border: 1px solid var(--line); }
.paper .boxed p + p { margin-top: 8px; }
.ident { margin: 0 0 18px; display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.ident div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 18px; }
.ident div + div { border-top: 1px dashed var(--line); }
.ident dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); padding-top: 3px; }
.ident dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 520px) { .ident div { grid-template-columns: 1fr; gap: 2px; } }
.mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 14px 20px; border: 2px solid var(--stroke); border-radius: 14px;
  background: var(--card); box-shadow: var(--hard);
  font-family: var(--f-mono); font-size: 16px; color: var(--ink) !important; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mail:hover { transform: translate(-2px, -2px); box-shadow: var(--hard-hover); }
.mail svg { width: 20px; height: 20px; color: var(--cyan-ink); }

@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
}
@media (max-width: 520px) {
  .toc ol { grid-template-columns: 1fr; }
  .paper { padding-left: 52px; background:
    linear-gradient(90deg, transparent 36px, color-mix(in srgb, var(--margin) 70%, transparent) 36px, color-mix(in srgb, var(--margin) 70%, transparent) 38px, transparent 38px),
    repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px), var(--card); }
  .paper::before { left: 10px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
