/* ============================================================
   QUIZLOT — feuille de style principale
   ============================================================ */
:root {
  --bg: #09090c;
  --bg-2: #0e0e12;
  --surface: #121217;
  --surface-2: #18181f;
  --line: #24242d;
  --line-2: #33333f;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #8b8b95;
  --accent: #d4ff3a;
  --accent-2: #e6ff85;
  --accent-ink: #0a0a0d;
  --danger: #ff6b6b;
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-display: "Unbounded", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
button { font: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 16px; }

/* ---------- Grain + grille de fond ---------- */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }
.grid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.display {
  margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(42px, 7.4vw, 104px);
}
.h2 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(32px, 4.6vw, 60px); }
.h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 22px; line-height: 1.2; }
.lead { margin: 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
.outline-text { color: var(--accent); }

/* ---------- Boutons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); box-shadow: 0 12px 40px -10px rgba(212, 255, 58, .55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-dark { background: var(--accent-ink); color: var(--text); }
.btn-dark:hover { background: #1c1c22; color: var(--text); }
.btn-lg { min-height: 64px; padding: 0 34px; font-size: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--dim); border-color: var(--line); cursor: not-allowed; box-shadow: none; }
.btn-pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 58, .5); } 70% { box-shadow: 0 0 0 18px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }

/* ---------- Barre de progression de scroll ---------- */
.scroll-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 60; }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track > div { display: flex; gap: 36px; padding: 11px 18px; white-space: nowrap; font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.marquee-track span.star { opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 12, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.ticket-badge { display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.ticket-badge.show { display: inline-flex; }
.ticket-badge b { font-family: var(--font-mono); color: var(--accent); }
.burger { display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost-desk { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; inset: 72px 0 0 0; background: var(--bg); z-index: 49; padding: 32px 24px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .mobile-menu.open { opacity: 1; transform: none; visibility: visible; }
  .mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; }
  .mobile-menu ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
  .mobile-menu .btn { width: 100%; }
}
@media (max-width: 520px) { .nav-cta > .btn-primary { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head > div { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.live-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(255, 107, 107, .6); animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); } }
.hero-title { font-size: clamp(40px, 5.6vw, 84px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
@media (max-width: 420px) { .hero-title .line { white-space: normal; } }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .9s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.countdown { display: flex; flex-direction: column; gap: 12px; }
.countdown-label { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.countdown-units { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-unit { min-width: 82px; padding: 12px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.cd-unit b { display: block; font-family: var(--font-mono); font-size: 34px; font-weight: 700; line-height: 1.05; }
.cd-unit span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cd-unit.tick b { animation: tick .45s var(--ease); }
@keyframes tick { 0% { transform: translateY(-30%); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Carte du lot */
.prize { position: relative; perspective: 1200px; display: flex; justify-content: center; }
.prize-orbit { position: absolute; inset: -6%; z-index: 0; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.prize-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; z-index: 1; width: min(100%, 440px); border-radius: var(--radius-lg); padding: 16px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--angle, 0deg), var(--line-2), var(--accent), var(--line-2) 30%, var(--line-2)) border-box;
  border: 1.5px solid transparent;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .2s ease-out;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8);
  animation: borderSpin 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --angle: 360deg; } }
.prize-media { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #22222b, #111116 70%); transform: translateZ(30px); }
.prize-media img { width: 100%; height: 100%; object-fit: cover; }
.prize-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--dim); font-size: 14px; border: 1.5px dashed var(--line-2); border-radius: 22px; }
.prize-placeholder code { font-family: var(--font-mono); color: var(--muted); background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }
.prize-tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prize-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 18px 8px 6px; transform: translateZ(20px); }
.prize-meta small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.prize-meta strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.prize-price { text-align: right; }
.prize-price strong { font-family: var(--font-mono); color: var(--accent); }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .prize-card { width: min(100%, 340px); }
}

/* ---------- Bande "garanties" ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.trust > div { display: flex; align-items: center; gap: 14px; padding: 26px 24px; border-left: 1px solid var(--line); font-weight: 600; }
.trust > div:first-child { border-left: none; }
.trust svg { flex: none; color: var(--accent); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust > div:nth-child(3) { border-left: none; } .trust > div { border-top: 1px solid var(--line); } .trust > div:nth-child(-n+2) { border-top: none; } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } .trust > div { border-left: none; border-top: 1px solid var(--line); } .trust > div:first-child { border-top: none; } }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 320px; padding: 34px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.step:hover { transform: translateY(-8px); border-color: var(--accent); background: var(--surface-2); }
.step-num { font-family: var(--font-display); font-size: 96px; font-weight: 700; line-height: .85; letter-spacing: -.05em; color: #23232c; transition: color .4s; }
.step:hover .step-num { color: var(--accent); }
.step .h3 { margin-top: auto; }
.step p { margin: 0; color: var(--muted); }
.step-icon { position: absolute; top: 30px; right: 30px; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step-num { font-size: 72px; } }

/* ---------- Démo quiz ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.demo-copy { display: flex; flex-direction: column; gap: 20px; }
.demo-copy ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.demo-copy li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.demo-copy li svg { color: var(--accent); flex: none; }
.kbd { display: inline-flex; min-width: 26px; height: 26px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid var(--line-2); border-bottom-width: 3px; font-family: var(--font-mono); font-size: 12px; color: var(--text); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

/* ---------- Composant quiz (démo + concours) ---------- */
.quiz { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.quiz-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.quiz-progress { display: flex; gap: 6px; }
.quiz-progress span { height: 6px; width: 26px; border-radius: 999px; background: var(--line-2); transition: width .35s var(--ease), background .35s; }
.quiz-progress span.done { background: var(--accent); }
.quiz-progress span.now { width: 44px; background: var(--text); }
.quiz-clock { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quiz-clock.warn { color: var(--danger); border-color: rgba(255, 107, 107, .5); }
.quiz-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.quiz-bar > i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transition: background .3s; }
.quiz-bar.warn > i { background: var(--danger); }
.quiz-meta { margin: 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.quiz-q { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; min-height: 2.4em; }
.quiz-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px; text-align: left;
  border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font-size: 17px; font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s, opacity .2s;
}
.answer:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--accent); }
.answer .key { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--muted); }
.answer[disabled] { cursor: default; }
.answer.picked { border-color: var(--accent); background: #171d08; }
.answer.picked .key { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.answer.good { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.answer.good .key { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.answer.bad { border-color: var(--danger); background: #2a1416; color: #ffd6d6; animation: shake .3s 2; }
.answer.off { opacity: .45; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz-foot { min-height: 52px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-feedback { margin: 0; font-weight: 600; color: var(--muted); }
.quiz-feedback.ok { color: var(--accent); }
.quiz-feedback.ko { color: var(--danger); }
.q-enter { animation: qEnter .45s var(--ease); }
@keyframes qEnter { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .quiz-answers { grid-template-columns: 1fr; } }

/* ---------- Ticket (bloc prix) ---------- */
.ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: var(--radius-lg);
  background: var(--accent); color: var(--accent-ink); overflow: hidden;
  -webkit-mask: radial-gradient(circle 18px at calc(100% - 300px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 18px at calc(100% - 300px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 18px at calc(100% - 300px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 18px at calc(100% - 300px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.ticket-main .h2 { color: var(--accent-ink); }
.ticket-main p { margin: 0; font-size: 18px; max-width: 520px; color: #1d1d1d; }
.ticket-stub { width: 300px; padding: 40px 32px; border-left: 2px dashed rgba(10, 10, 13, .35); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; }
.ticket-price { font-family: var(--font-display); font-size: 112px; font-weight: 700; line-height: .85; letter-spacing: -.06em; }
.ticket-stub small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ticket-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .3em; opacity: .7; }
@media (max-width: 820px) {
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket-stub { width: auto; border-left: none; border-top: 2px dashed rgba(10, 10, 13, .35); }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-weight: 600; font-size: 18px; min-height: 64px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .4s var(--ease), background .3s, border-color .3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: var(--accent-ink); }
.faq .answer-text { padding: 0 26px 24px; color: var(--muted); margin: 0; max-width: 720px; }

/* ---------- Grand CTA final ---------- */
.big-cta { position: relative; overflow: hidden; text-align: center; padding: clamp(96px, 14vw, 180px) 0; }
.big-cta .display { font-size: clamp(48px, 10vw, 150px); }
.big-cta .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 32px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
.footer-grid h2 { margin: 0 0 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { margin: 16px 0 0; color: var(--muted); max-width: 340px; }
.footer-word { font-family: var(--font-display); font-weight: 700; letter-spacing: -.06em; line-height: .8; font-size: clamp(64px, 15vw, 230px); color: #15151b; text-align: center; user-select: none; overflow: hidden; padding-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Révélations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Curseur personnalisé ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200; border-radius: 50%; translate: -50% -50%; opacity: 0; transition: opacity .3s; }
.cursor { width: 40px; height: 40px; border: 1.5px solid rgba(244, 244, 245, .5); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor.hover { width: 72px; height: 72px; background: rgba(212, 255, 58, .12); border-color: var(--accent); }
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: clip-path 1s var(--ease); clip-path: inset(0 0 0 0); }
.intro.out { clip-path: inset(0 0 100% 0); }
.intro-wait .hero-title .line > span, .intro-wait .fade-up { animation-play-state: paused; }
.intro-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 22vw, 260px); line-height: 1; color: var(--text); }
.intro-num.go { color: var(--accent); }
.intro-num.pop { animation: introPop .38s var(--ease); }
@keyframes introPop { from { transform: scale(1.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Pages internes ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.page-hero .h2 { font-size: clamp(38px, 6vw, 76px); }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 600; }
.stepper li.on { border-color: var(--accent); color: var(--accent); }
.stepper li.done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Formulaires */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; padding: 56px 0 120px; }
@media (max-width: 960px) { .form-grid { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); }
.fieldset { border: none; margin: 0 0 36px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.fieldset legend { padding: 0; margin-bottom: 18px; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.fieldset legend .n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: #c4c4cc; }
.input, .textarea, .select { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.textarea { padding: 14px 16px; min-height: 150px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6f6f7a; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212, 255, 58, .12); }
.input.err { border-color: var(--danger); }
.err-msg { margin: 0; font-size: 13.5px; color: var(--danger); min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: #c4c4cc; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }

.qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.qty-ctrl { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); }
.qty-ctrl button { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--text); font-size: 22px; cursor: pointer; transition: background .2s, transform .2s; }
.qty-ctrl button:hover:not([disabled]) { background: var(--line-2); }
.qty-ctrl button.plus { background: var(--accent); color: var(--accent-ink); }
.qty-ctrl button[disabled] { opacity: .35; cursor: not-allowed; }
.qty-ctrl output { min-width: 48px; text-align: center; font-family: var(--font-mono); font-size: 24px; font-weight: 700; }
.packs { display: flex; flex-wrap: wrap; gap: 8px; }
.pack { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: all .2s; }
.pack:hover { color: var(--text); border-color: var(--text); }
.pack[aria-pressed="true"] { background: var(--text); color: var(--accent-ink); border-color: var(--text); }

.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .methods { grid-template-columns: 1fr; } }
.method { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.method input { position: absolute; opacity: 0; }
.method .radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #4a4a55; transition: border .2s; }
.method:has(input:checked) { border-color: var(--accent); background: #151a08; }
.method:has(input:checked) .radio { border: 6px solid var(--accent); }
.method:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.method b { display: block; }
.method small { color: var(--muted); font-size: 13px; }

.summary { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; color: #c4c4cc; }
.summary hr { border: none; height: 1px; background: var(--line); margin: 0; width: 100%; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total b { font-family: var(--font-mono); font-size: 40px; letter-spacing: -.03em; }
.summary .btn { width: 100%; }
.hint { margin: 0; font-size: 13.5px; color: var(--dim); text-align: center; }
.mini-ticket { display: flex; gap: 14px; align-items: center; }
.mini-ticket .thumb { width: 76px; height: 76px; flex: none; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 11px; }
.mini-ticket .thumb img { width: 100%; height: 100%; object-fit: cover; }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(10, 10, 13, .25); border-top-color: currentColor; animation: spin .8s linear infinite; }

/* Succès */
.success { padding: 80px 0 140px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.success-check { width: 110px; height: 110px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; animation: popIn .6s var(--ease); }
.success-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .3s var(--ease) forwards; }
@keyframes popIn { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tickets-stack { display: flex; justify-content: center; padding: 20px 0; min-height: 150px; }
.tk { width: 210px; height: 112px; margin-left: -150px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); opacity: 0; animation: dealIn .6s var(--ease) forwards; border: 1px solid rgba(10, 10, 13, .2); }
.tk:first-child { margin-left: 0; }
.tk small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.tk b { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.tk code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; }
@keyframes dealIn { from { opacity: 0; transform: translateY(-60px) rotate(-14deg); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }

/* Concours */
.arena { min-height: calc(100vh - 140px); display: flex; align-items: center; padding: 56px 0 96px; }
.arena .wrap { max-width: 900px; }
.stage { display: none; flex-direction: column; gap: 26px; }
.stage.on { display: flex; animation: fadeUp .6s var(--ease); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rules > div { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.rules b { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -.03em; color: var(--accent); }
.rules span { color: var(--muted); }
@media (max-width: 700px) { .rules { grid-template-columns: 1fr; } }
.cd-ring { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.cd-ring svg { position: absolute; width: 320px; height: 320px; transform: rotate(-90deg); }
.cd-ring circle.fg { stroke-dasharray: 628; stroke-dashoffset: 0; animation: ring 1s linear infinite; }
@keyframes ring { to { stroke-dashoffset: 628; } }
.cd-big { font-family: var(--font-display); font-size: 170px; font-weight: 700; line-height: 1; }
.cd-big.pop { animation: introPop .5s var(--ease); }
.result-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.result-cards > div { padding: 30px; border-radius: 26px; text-align: left; }
.result-cards small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.result-cards b { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: -.04em; }
.result-cards .score { background: var(--accent); color: var(--accent-ink); }
.result-cards .time { background: var(--surface); border: 1px solid var(--line-2); }
@media (max-width: 600px) { .result-cards { grid-template-columns: 1fr; } }
.empty { text-align: center; flex-direction: column; align-items: center; gap: 22px; }

/* Pages légales */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 64px 0 120px; }
.legal nav { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.legal nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.legal nav a:hover, .legal nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #c4c4cc; }
.prose ul { padding-left: 20px; }
.prose .todo { background: rgba(212, 255, 58, .12); color: var(--accent); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.notice { border: 1px solid rgba(212, 255, 58, .4); background: rgba(212, 255, 58, .06); border-radius: 18px; padding: 18px 22px; color: #e9e9ec; margin-bottom: 40px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; gap: 24px; } .legal nav { position: static; flex-direction: row; flex-wrap: wrap; } }

/* Toast */
.toast:empty { visibility: hidden; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 250; translate: -50% 140%; padding: 14px 22px; border-radius: 999px; background: var(--text); color: var(--accent-ink); font-weight: 600; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); transition: translate .5s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { translate: -50% 0; }

/* 404 */
.nf { min-height: calc(100vh - 72px); display: flex; align-items: center; text-align: center; }
.nf .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.nf-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(140px, 30vw, 360px); line-height: .8; letter-spacing: -.07em; color: var(--accent); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Bento "Pourquoi Quizlot" ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 12px; min-height: 250px; transition: border-color .4s; }
.tile:hover { border-color: var(--line-2); }
.tile p { margin: 0; color: var(--muted); max-width: 420px; }
.tile .h3 { margin-top: auto; }
.tile-a { grid-column: span 4; }
.tile-b { grid-column: span 2; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile-b p { color: #1d1d1d; }
.tile-c, .tile-d, .tile-e { grid-column: span 2; }
.tile-big { font-family: var(--font-display); font-weight: 700; letter-spacing: -.05em; line-height: .85; font-size: clamp(64px, 9vw, 128px); }
.tile-a .tile-big { color: #23232c; transition: color .5s; }
.tile-a:hover .tile-big { color: var(--text); }
.tile-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.loop-arrows { animation: spin 8s linear infinite; transform-origin: center; }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 48px; }
.eq i { width: 9px; border-radius: 3px; background: var(--accent); animation: eq 1.2s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.4s; } .eq i:nth-child(4) { animation-delay: -.6s; } .eq i:nth-child(5) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile-a { grid-column: 1 / -1; } .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile-a, .tile-b, .tile-c, .tile-d, .tile-e { grid-column: 1 / -1; } .tile { min-height: 0; } }

@media (max-width: 480px) {
  .countdown-units { flex-wrap: nowrap; gap: 8px; }
  .cd-unit { min-width: 0; flex: 1; padding: 10px 4px 8px; }
  .cd-unit b { font-size: 28px; }
}
