/* ===== L'anniv de Manu — BD futuriste, bleu qui fond vers le rose ===== */
:root {
  --ink: #0a0a2e;
  --blue: #1e5bff;
  --blue-deep: #0a1a8f;
  --cyan: #19e3ff;
  --violet: #8a5bff;
  --pink: #ff3fa4;
  --pink-soft: #ff9bd2;
  --white: #fff;
  --yellow: #ffe94d;
  --font-comic: 'Bangers', 'Impact', 'Comic Sans MS', sans-serif;
  --font-tech: 'Orbitron', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 6px 6px 0 var(--ink);
  --star: polygon(50.0% 0.0%, 56.6% 12.6%, 67.1% 3.0%, 69.0% 17.1%, 82.1% 11.7%, 79.1% 25.6%, 93.3% 25.0%, 85.7% 37.0%, 99.2% 41.3%, 88.0% 50.0%, 99.2% 58.7%, 85.7% 63.0%, 93.3% 75.0%, 79.1% 74.4%, 82.1% 88.3%, 69.0% 82.9%, 67.1% 97.0%, 56.6% 87.4%, 50.0% 100.0%, 43.4% 87.4%, 32.9% 97.0%, 31.0% 82.9%, 17.9% 88.3%, 20.9% 74.4%, 6.7% 75.0%, 14.3% 63.0%, 0.8% 58.7%, 12.0% 50.0%, 0.8% 41.3%, 14.3% 37.0%, 6.7% 25.0%, 20.9% 25.6%, 17.9% 11.7%, 31.0% 17.1%, 32.9% 3.0%, 43.4% 12.6%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--white); font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  /* bleu profond -> bleu électrique -> violet -> rose */
  background: linear-gradient(180deg, #0a1a8f 0%, #1e5bff 24%, #5b6bff 44%, #b45cff 64%, #ff4fa8 84%, #ff9bd2 100%);
  background-attachment: fixed; background-color: #1e5bff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
b { font-weight: 700; }
.ico { width: 1.1em; height: 1.1em; vertical-align: -0.15em; fill: currentColor; }
[hidden] { display: none !important; }

/* ---------- décor ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fx-dots {
  position: absolute; inset: 0; opacity: .22;
  background-image: radial-gradient(var(--white) 1.6px, transparent 2px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%); mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}
.fx-grid {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%;
  background-image: linear-gradient(rgba(255,255,255,.55) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(25,227,255,.6) 1.5px, transparent 1.5px);
  background-size: 56px 56px; transform: perspective(380px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 60%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, #000 60%, transparent 100%);
  opacity: .5; animation: gridMove 3s linear infinite;
}
@keyframes gridMove { to { background-position: 0 56px, 56px 0; } }
.fx-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(10,10,46,.07) 0 2px, transparent 2px 4px); }
.float { position: absolute; font-family: var(--font-comic); color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); animation: floaty 7s ease-in-out infinite; opacity: .9; }
.f1 { top: 14%; left: 6%; font-size: 34px; } .f2 { top: 30%; right: 5%; font-size: 30px; transform: rotate(10deg); animation-delay: -2s; }
.f3 { top: 52%; left: 4%; font-size: 28px; animation-delay: -4s; color: var(--cyan); } .f4 { top: 70%; right: 7%; font-size: 28px; transform: rotate(-8deg); animation-delay: -1s; color: var(--white); }
.f5 { top: 86%; left: 10%; font-size: 36px; animation-delay: -3s; } .f6 { top: 8%; right: 14%; font-size: 26px; animation-delay: -5s; color: var(--pink-soft); }
@keyframes floaty { 50% { translate: 0 -16px; rotate: 8deg; } }

/* ---------- barre HUD ---------- */
.hud {
  position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: rgba(10,10,46,.72); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink); box-shadow: 0 2px 0 var(--cyan);
  font-family: var(--font-tech); font-size: 12px; letter-spacing: .08em;
}
.hud-logo { font-weight: 900; }
.hud-logo b { color: var(--pink); margin: 0 2px; }
.hud-status { color: var(--cyan); text-shadow: 0 0 10px rgba(25,227,255,.8); }
body.is-open .hud-status { color: #7dffb0; text-shadow: 0 0 10px rgba(125,255,176,.8); }

main, .foot { position: relative; z-index: 2; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 28px 0 36px; text-align: center; }
.hero-bg {
  position: absolute; inset: 0 -16px; z-index: -1; opacity: 0; transition: opacity 1.2s;
  background-size: cover; background-position: center top; filter: blur(3px) saturate(1.2);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.hero-bg.on { opacity: .5; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,91,255,.55), rgba(255,63,164,.45)); mix-blend-mode: multiply; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.avatar-wrap { position: relative; width: 168px; height: 168px; margin-top: 4px; }
.avatar {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 5px solid var(--ink); background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 0 5px var(--white), 8px 8px 0 5px var(--ink), 0 0 36px 8px rgba(25,227,255,.55);
  animation: pulse 3s ease-in-out infinite;
}
.avatar img, .avatar svg { width: 100%; height: 100%; object-fit: cover; }
.avatar-wrap::before { /* anneau HUD qui tourne */
  content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 3px dashed var(--cyan); animation: spin 14s linear infinite; opacity: .9;
}
.avatar-tag {
  position: absolute; bottom: -6px; right: -14px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px;
  font-family: var(--font-comic); font-size: 18px; padding: 0 10px; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--ink); letter-spacing: .04em;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--white), 8px 8px 0 5px var(--ink), 0 0 52px 14px rgba(255,63,164,.6); } }

.kicker { margin: 10px 0 0; font-family: var(--font-tech); font-size: 12px; letter-spacing: .25em; color: var(--cyan); text-shadow: 0 0 8px rgba(25,227,255,.9); }
.title { margin: 0; font-family: var(--font-comic); font-weight: 400; line-height: .92; text-transform: uppercase; }
.t-line { display: block; font-size: clamp(30px, 9vw, 48px); letter-spacing: .06em; }
.t-big { display: block; font-size: clamp(84px, 27vw, 150px); letter-spacing: .03em; color: var(--white); }
.title span {
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 var(--pink);
}
.t-big { animation: glitch 5s infinite steps(1); }
@keyframes glitch {
  0%, 92%, 100% { transform: none; text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 var(--pink); }
  93% { transform: translateX(-4px) skewX(-6deg); text-shadow: -5px 0 0 var(--cyan), 5px 0 0 var(--pink); }
  95% { transform: translateX(5px); text-shadow: 5px 0 0 var(--cyan), -5px 0 0 var(--pink); }
  97% { transform: translateX(-2px) skewX(4deg); }
}

/* bulle d'explosion */
.burst { display: grid; place-items: center; background: transparent; color: var(--ink); border: 0; position: relative; isolation: isolate; font-family: var(--font-comic); }
.burst::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: var(--star); transform: scale(1.04) translate(3px, 3px); }
.burst::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--yellow); clip-path: var(--star); }
.date-burst { width: 108px; height: 108px; margin-top: -6px; transform: rotate(-8deg); animation: wobble 2.4s ease-in-out infinite; }
.date-burst span { font-size: 44px; line-height: .9; }
.date-burst small { font-size: 20px; line-height: 1; letter-spacing: .08em; }
@keyframes wobble { 50% { transform: rotate(6deg) scale(1.07); } }

/* bulle de dialogue */
.bubble {
  position: relative; max-width: 440px; background: var(--white); color: var(--ink); border: 4px solid var(--ink); border-radius: 22px; padding: 10px 18px;
  font-weight: 700; box-shadow: var(--shadow); margin-top: 6px;
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -22px; width: 26px; height: 22px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 30% 100%); transform: translateX(-30%); }
.bubble::before { content: ''; position: absolute; left: 50%; bottom: -15px; width: 18px; height: 16px; background: var(--white); clip-path: polygon(0 0, 100% 0, 30% 100%); transform: translateX(-30%); z-index: 1; }

/* décompte */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 460px; margin-top: 22px; }
.cell {
  background: var(--ink); border: 4px solid var(--white); border-radius: 14px; box-shadow: 5px 5px 0 var(--pink), 0 0 22px rgba(25,227,255,.45);
  padding: 10px 4px 6px; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden;
}
.cell:nth-child(odd) { transform: rotate(-1.5deg); } .cell:nth-child(even) { transform: rotate(1.5deg); }
.cell::before, .cell::after { content: ''; position: absolute; width: 10px; height: 10px; border: 2px solid var(--cyan); }
.cell::before { top: 4px; left: 4px; border-right: 0; border-bottom: 0; } .cell::after { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }
.num { font-family: var(--font-tech); font-weight: 900; font-size: clamp(30px, 10.5vw, 52px); line-height: 1.05; color: var(--cyan); text-shadow: 0 0 12px rgba(25,227,255,.9), 0 0 2px #fff; font-variant-numeric: tabular-nums; }
.num.tick { animation: tick .35s ease-out; }
@keyframes tick { 0% { transform: translateY(-40%) scale(1.1); opacity: .3; } 100% { transform: none; opacity: 1; } }
.lab { font-family: var(--font-comic); font-size: 15px; letter-spacing: .08em; color: var(--pink-soft); }

.loader { width: 100%; max-width: 460px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-top: 8px; font-family: var(--font-tech); font-size: 11px; letter-spacing: .12em; }
.loader-lab { color: var(--cyan); }
.loader-pct { color: var(--white); font-weight: 800; }
.loader-bar { grid-column: 1 / -1; height: 16px; border: 3px solid var(--ink); border-radius: 10px; background: rgba(10,10,46,.7); overflow: hidden; box-shadow: 3px 3px 0 var(--ink); }
.loader-fill { height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--cyan) 0 10px, var(--pink) 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; transition: width 1s linear; }
@keyframes stripes { to { background-position: 28px 0; } }
.tiny { margin: 0; font-size: 13px; opacity: .92; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font-family: var(--font-comic); font-size: 22px; letter-spacing: .05em; line-height: 1; padding: 13px 22px; min-height: 48px;
  border: 4px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, .chip-btn:focus-visible, .tile:focus-visible { outline: 4px solid var(--cyan); outline-offset: 3px; }
.btn-main { background: var(--yellow); }
.btn-ghost { background: var(--white); font-size: 19px; }
.btn-wa { background: #25d366; width: 100%; font-size: 21px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
#ctaQuiz { margin-top: 10px; }

/* ---------- sections ---------- */
.section { padding: 38px 0 6px; }
.section-head { text-align: center; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-tech); font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.chip-open { background: #7dffb0; color: var(--ink); } .chip-lock { background: var(--pink); color: var(--white); }
.h2 { font-family: var(--font-comic); font-weight: 400; font-size: clamp(34px, 9vw, 54px); line-height: 1; margin: 14px 0 6px; text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.h2 em { font-style: normal; color: var(--yellow); }
.h3 { font-family: var(--font-comic); font-weight: 400; font-size: 32px; line-height: 1; margin: 0 0 8px; letter-spacing: .03em; }
.h3.center { text-align: center; color: var(--white); text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.lead { margin: 0; font-size: 17px; text-shadow: 0 1px 0 rgba(10,10,46,.35); }

/* carte BD (case blanche) */
.comic-card {
  position: relative; background: var(--white); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); padding: 20px 18px 22px;
  background-image: radial-gradient(rgba(30,91,255,.1) 1.4px, transparent 1.8px); background-size: 12px 12px;
}
.comic-card .lead { text-shadow: none; }

/* ---------- questionnaire ---------- */
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.quiz-step { font-family: var(--font-comic); font-size: 22px; background: var(--blue); color: var(--white); padding: 2px 12px; border: 3px solid var(--ink); border-radius: 8px; transform: rotate(-2deg); letter-spacing: .05em; }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); background: var(--white); transition: .2s; }
.quiz-dots i.on { background: var(--pink); transform: scale(1.2); } .quiz-dots i.done { background: var(--cyan); }
.qstep { border: 0; margin: 0; padding: 0; min-width: 0; animation: panelIn .35s ease-out; }
@keyframes panelIn { from { opacity: 0; transform: translateX(24px) rotate(1deg); } }
.q { font-family: var(--font-comic); font-size: 30px; line-height: 1.05; padding: 0; margin-bottom: 10px; color: var(--blue); letter-spacing: .02em; }
.hint { margin: 0 0 12px; font-size: 14px; opacity: .75; }
.field { display: block; margin: 12px 0; }
.field > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=password], textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #f2f5ff; border: 3px solid var(--ink); border-radius: 12px; padding: 12px 14px; box-shadow: inset 3px 3px 0 rgba(30,91,255,.14);
}
textarea { resize: vertical; min-height: 64px; }
::placeholder { color: rgba(10,10,46,.45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-col { flex-direction: column; }
.chip-btn {
  font: inherit; font-weight: 700; font-size: 16px; text-align: left; cursor: pointer; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 12px;
  padding: 10px 14px; min-height: 46px; box-shadow: 3px 3px 0 var(--ink); transition: .12s;
}
.chip-btn:hover { transform: translate(-1px, -1px); }
.chip-btn[aria-pressed=true] { background: var(--pink); color: var(--white); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; text-align: center; color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 6px; box-shadow: 4px 4px 0 var(--ink); transition: .12s;
}
.tile .e { font-size: 32px; line-height: 1.1; }
.tile:hover { transform: translate(-1px, -1px) rotate(-1deg); }
.tile[aria-pressed=true] { background: var(--blue); color: var(--white); transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); position: relative; }
.tile[aria-pressed=true]::after { content: '✓'; position: absolute; top: -10px; right: -8px; background: var(--yellow); color: var(--ink); width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 14px; }
.form-error { margin: 12px 0 0; padding: 8px 12px; background: #ffe3ee; border: 3px solid var(--ink); border-radius: 10px; font-weight: 700; color: #b0003f; }
.quiz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.quiz-nav .btn-main { margin-left: auto; }

.thanks { text-align: center; margin-top: 0; }
.thanks-burst { width: 130px; height: 130px; margin: -50px auto 6px; transform: rotate(-6deg); animation: wobble 2s ease-in-out infinite; }
.thanks-burst span { font-size: 34px; }
.thanks .h3 { color: var(--blue); font-size: 40px; }
.thanks p { margin: 6px 0; }
.thanks .btn { margin-top: 12px; }

/* ---------- cadenas ---------- */
.locks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lock-card {
  position: relative; text-align: center; padding: 22px 14px 18px; border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  background: linear-gradient(160deg, rgba(10,10,46,.92), rgba(40,20,110,.92)); color: var(--white);
}
.lock-card::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,63,164,.12) 0 12px, transparent 12px 24px); }
.lock-card > * { position: relative; }
.lock-card:nth-child(2) { transform: rotate(1.2deg); } .lock-card:nth-child(1) { transform: rotate(-1.2deg); }
.lock-card h3 { font-family: var(--font-comic); font-weight: 400; font-size: 28px; margin: 8px 0 0; letter-spacing: .05em; }
.lock-card p { margin: 2px 0 12px; font-size: 14px; opacity: .85; }
.padlock { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--pink); border: 4px solid var(--white); box-shadow: 0 0 22px rgba(255,63,164,.8); animation: shake 4s infinite; }
.padlock svg { width: 34px; height: 34px; fill: var(--white); }
@keyframes shake { 0%, 90%, 100% { transform: none; } 92% { transform: rotate(-12deg); } 94% { transform: rotate(10deg); } 96% { transform: rotate(-8deg); } 98% { transform: rotate(5deg); } }
.lock-tag { display: inline-block; font-family: var(--font-tech); font-size: 10px; letter-spacing: .12em; padding: 4px 8px; border: 2px dashed var(--cyan); color: var(--cyan); border-radius: 6px; }

/* ---------- après minuit ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 12px 0 28px; }
.shot { position: relative; padding: 0; cursor: zoom-in; background: var(--white); border: 4px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; aspect-ratio: 3 / 4; animation: popIn .5s backwards; }
.shot:nth-child(3n+1) { transform: rotate(-1.5deg); } .shot:nth-child(3n+2) { transform: rotate(1.2deg); } .shot:nth-child(3n) { transform: rotate(-.6deg); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.ph { display: grid; place-items: center; cursor: default; background: linear-gradient(135deg, rgba(30,91,255,.9), rgba(255,63,164,.9)); color: var(--white); font-family: var(--font-comic); font-size: 26px; text-align: center; padding: 12px; }
@keyframes popIn { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
.thank-note { margin: 0 0 28px; } .thank-note .h3 { color: var(--pink); }
.thank-note p { margin: 6px 0; } .sign { font-family: var(--font-comic); font-size: 24px; color: var(--blue); text-align: right; }
.wa-card { margin-bottom: 10px; }
.wa-card .h3 { color: #129a4a; font-size: 34px; margin-top: 18px; }
.wa-burst { position: absolute; top: -36px; right: -10px; width: 96px; height: 96px; transform: rotate(12deg); }
.wa-burst span { font-size: 26px; }
.wa-card .chip-btn { font-size: 15px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10,10,46,.92); padding: 20px; }
.lightbox img { max-height: 88vh; border: 4px solid var(--white); border-radius: 10px; box-shadow: 0 0 40px rgba(25,227,255,.6); object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); font-size: 20px; cursor: pointer; font-weight: 900; }

body.is-open .loader, body.is-open #countdown, body.is-open .tiny { display: none; }
body.is-open #locked { display: none; }
body.is-open .bubble { background: var(--yellow); }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
.foot { text-align: center; padding: 20px 16px 36px; font-size: 14px; }
.foot p { margin: 0; text-shadow: 0 1px 0 rgba(10,10,46,.5); }

/* flash BOOM plein écran au déverrouillage */
.boom { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(10,10,46,.85); animation: boomBg 2.6s forwards; pointer-events: none; }
.boom .burst { width: min(86vw, 420px); height: min(86vw, 420px); animation: boomIn 2.6s forwards; }
.boom .burst span { font-size: clamp(54px, 18vw, 104px); line-height: .95; text-align: center; }
@keyframes boomIn { 0% { transform: scale(.1) rotate(-40deg); } 22% { transform: scale(1.1) rotate(6deg); } 35%, 80% { transform: scale(1) rotate(-3deg); } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes boomBg { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .countdown { gap: 7px; } .cell { border-width: 3px; box-shadow: 3px 3px 0 var(--pink); }
  .q { font-size: 27px; } .tiles { grid-template-columns: repeat(2, 1fr); }
  .quiz-nav .btn { font-size: 19px; padding: 12px 16px; } .btn-main { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===== v2 : fond vidéo flou, nom barré mystérieux, Grand Roi, musique ===== */
.bgvid { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .6; pointer-events: none; filter: saturate(1.15) contrast(1.05); }
.bgvid-tint { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,26,143,.62) 0%, rgba(30,91,255,.3) 35%, rgba(180,92,255,.35) 65%, rgba(255,63,164,.55) 100%); }
.hero-bg { display: none; }
@media (prefers-reduced-motion: reduce) { .bgvid { display: none; } }

.crown { width: 74px; height: auto; margin: 6px 0 -6px; filter: drop-shadow(0 0 14px rgba(255,233,77,.85)); animation: crownFloat 3.2s ease-in-out infinite; }
@keyframes crownFloat { 50% { transform: translateY(-6px) rotate(-3deg); } }
.title .t-line { text-shadow: 3px 3px 0 var(--ink) !important; }
.t-line { font-size: clamp(24px, 7.2vw, 40px) !important; line-height: 1 !important; max-width: 14em; margin: 0 auto; letter-spacing: .05em !important; }
.t-big { position: relative; display: inline-block; margin-top: 4px; }
.redact { display: inline-block; animation: flick 5s infinite steps(1); }
@keyframes flick { 0%, 58%, 62%, 100% { opacity: 1; } 59% { opacity: .35; } 60% { opacity: 1; } 61% { opacity: .5; } }
.stamp { font-family: var(--font-tech); font-weight: 900; font-size: 11px; letter-spacing: .2em; color: var(--pink-soft); border: 3px solid var(--pink); border-radius: 6px; padding: 5px 12px; transform: rotate(-4deg); background: rgba(10,10,46,.6); text-shadow: 0 0 10px rgba(255,63,164,.95); box-shadow: 0 0 16px rgba(255,63,164,.45); margin-top: 4px; transition: .6s; }
body.is-open .stamp { color: #7dffb0; border-color: #7dffb0; text-shadow: 0 0 10px rgba(125,255,176,.95); box-shadow: 0 0 16px rgba(125,255,176,.45); }
body.is-open .redact { animation: none; }

.music-btn { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-family: var(--font-tech); font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--white); background: rgba(10,10,46,.85); border: 3px solid var(--cyan); border-radius: 999px; padding: 10px 14px; min-height: 46px; box-shadow: 0 0 18px rgba(25,227,255,.6), 4px 4px 0 var(--ink); backdrop-filter: blur(8px); }
.music-btn:not(.on) { animation: musicPulse 1.8s infinite; }
.music-btn.on .music-lab { display: none; }
.music-btn:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
@keyframes musicPulse { 50% { box-shadow: 0 0 30px rgba(255,63,164,.95), 4px 4px 0 var(--ink); border-color: var(--pink); } }

/* ondulations de la musique sur les bords + écran d'entrée */
.wave { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(30,91,255,.82), rgba(10,10,46,.96)); backdrop-filter: blur(14px); transition: opacity .6s; }
.gate.out { opacity: 0; pointer-events: none; }
.gate-box { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 420px; }
.gate-title { margin: 0; font-family: var(--font-comic); font-weight: 400; font-size: clamp(46px, 14vw, 78px); line-height: .95; letter-spacing: .04em; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 var(--pink); }
.gate-sub { margin: 0 0 6px; font-size: 17px; }
.gate .btn { font-size: 26px; padding: 16px 30px; animation: musicPulse 1.8s infinite; }

/* ===== v3 : nom en lettres futuristes + double trait scanner ===== */
.title .t-big { font-family: var(--font-tech); font-weight: 900; font-size: clamp(60px, 20vw, 112px); line-height: 1; letter-spacing: .16em; margin: 10px -.16em 2px 0; padding: 0 .04em; animation: none; text-transform: uppercase;
  -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; filter: drop-shadow(0 0 16px rgba(25,227,255,.65)) drop-shadow(4px 4px 0 var(--ink)); }
.title .redact { position: relative; display: inline-block; animation: none; -webkit-text-stroke: 0; text-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #d9f3ff 45%, #ffc2e3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
/* reflets décalés (cyan et rose) qui glitchent par tranches */
.title .redact::before, .title .redact::after { content: attr(data-text); position: absolute; left: 0; top: 0; background: none; -webkit-text-stroke: 0; text-shadow: none; mix-blend-mode: screen; pointer-events: none; }
.title .redact::before { -webkit-text-fill-color: #19e3ff; transform: translate(-3px, 0); animation: sliceA 4.2s infinite steps(1); }
.title .redact::after { -webkit-text-fill-color: #ff3fa4; transform: translate(3px, 0); animation: sliceB 4.2s infinite steps(1); }
@keyframes sliceA { 0%, 100% { clip-path: inset(0 0 100% 0); } 8% { clip-path: inset(10% 0 62% 0); transform: translate(-7px, 0); } 12% { clip-path: inset(0 0 100% 0); } 46% { clip-path: inset(58% 0 12% 0); transform: translate(-5px, 0); } 50% { clip-path: inset(0 0 100% 0); } 81% { clip-path: inset(34% 0 40% 0); transform: translate(-9px, 0); } 84% { clip-path: inset(0 0 100% 0); } }
@keyframes sliceB { 0%, 100% { clip-path: inset(0 0 100% 0); } 9% { clip-path: inset(55% 0 20% 0); transform: translate(7px, 0); } 13% { clip-path: inset(0 0 100% 0); } 47% { clip-path: inset(12% 0 66% 0); transform: translate(6px, 0); } 51% { clip-path: inset(0 0 100% 0); } 82% { clip-path: inset(62% 0 8% 0); transform: translate(9px, 0); } 85% { clip-path: inset(0 0 100% 0); } }
/* double trait lumineux qui barre le nom */
.t-big::before, .t-big::after { content: ''; position: absolute; left: -9%; right: -3%; z-index: 3; border-radius: 3px; transform-origin: left center; transition: scale .9s cubic-bezier(.7,0,.3,1), opacity .9s; pointer-events: none; }
.t-big::after { top: 48%; height: 4px; background: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent); box-shadow: 0 0 8px #fff, 0 0 20px var(--cyan), 0 0 34px var(--cyan); transform: rotate(-3deg); animation: strikeFlick 5s infinite steps(1); }
.t-big::before { top: calc(48% + 13px); height: 2px; left: 6%; right: -9%; background: linear-gradient(90deg, transparent, var(--pink) 15%, var(--pink) 85%, transparent); box-shadow: 0 0 10px var(--pink), 0 0 22px var(--pink); transform: rotate(-3deg); transform-origin: right center; }
@keyframes strikeFlick { 0%, 70%, 74%, 100% { opacity: 1; } 71% { opacity: .25; } 72% { opacity: 1; translate: 6px 0; } 73% { opacity: .5; } }
body.is-open .t-big::before, body.is-open .t-big::after { scale: 0 1; opacity: 0; animation: none; }
body.is-open .title .redact::before, body.is-open .title .redact::after { animation: none; clip-path: inset(0 0 100% 0); }

/* ===== v4 : page d'accueil épurée, nom complètement flouté ===== */
.fx-scan, .float { display: none; }
.fx-dots { opacity: .12; }
.fx-grid { opacity: .2; animation: none; }
.hud { padding: 12px max(18px, env(safe-area-inset-left)); font-size: 11px; letter-spacing: .14em; }
.hud-status { text-transform: lowercase; letter-spacing: .08em; font-size: 12px; }

.hero { padding: 40px 0 52px; }
.hero-inner { gap: 20px; }
.avatar { position: relative; width: 124px; height: 124px; border: 4px solid #fff; box-shadow: 0 0 0 1px rgba(10,10,46,.5), 0 10px 40px rgba(10,10,46,.45); animation: none; }
.avatar::before { display: none; }

.title { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 6px; }
.title .t-line { font-size: clamp(25px, 7.6vw, 38px) !important; letter-spacing: .06em !important; max-width: 13em; -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 3px 0 var(--ink) !important; }
.title .t-big { margin: 2px 0 0; padding: 0; font-size: clamp(76px, 25vw, 136px); letter-spacing: .1em; filter: none; transition: filter 2.6s cubic-bezier(.2,.7,.2,1); }
.title .t-big::before, .title .t-big::after { display: none; }
/* le nom est entièrement flouté : une brume lumineuse, illisible */
.title .redact { color: #fff; -webkit-text-fill-color: transparent; filter: blur(22px); opacity: .92; animation: mist 7s ease-in-out infinite; transition: filter 2.6s cubic-bezier(.2,.7,.2,1), opacity 2.6s; will-change: filter; }
.title .redact::before, .title .redact::after { display: none; }
@keyframes mist { 50% { filter: blur(28px); opacity: .7; } }
/* à minuit : la brume se dissipe */
body.is-open .title .redact { animation: none; filter: blur(0); opacity: 1; }
body.is-open .title .t-big { filter: drop-shadow(0 0 16px rgba(25,227,255,.65)) drop-shadow(4px 4px 0 var(--ink)); }

.countdown { gap: 8px; max-width: 430px; margin-top: 10px; }
.cell { transform: none !important; background: rgba(10,10,46,.5); border: 1.5px solid rgba(255,255,255,.3); border-radius: 16px; box-shadow: none; padding: 12px 4px 9px; backdrop-filter: blur(8px); }
.cell::before, .cell::after { display: none; }
.num { font-size: clamp(28px, 9.4vw, 46px); text-shadow: 0 0 14px rgba(25,227,255,.55); }
.lab { font-family: var(--font-body); font-size: 11.5px; letter-spacing: .02em; color: rgba(255,255,255,.78); }

.loader { max-width: 430px; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; margin-top: 2px; }
.loader-bar { grid-column: 1; height: 7px; border: 0; border-radius: 99px; background: rgba(255,255,255,.2); box-shadow: none; }
.loader-fill { background: linear-gradient(90deg, var(--cyan), var(--pink)); animation: none; border-radius: 99px; }
.loader-pct { font-size: 12px; letter-spacing: .04em; opacity: .85; }
.tiny { font-size: 14px; opacity: .88; margin-top: -4px; }
#ctaQuiz { margin-top: 8px; font-size: 20px; }
body.is-open .loader, body.is-open #countdown { display: none; }

/* nom : halo lumineux bien présent mais illisible */
.title .redact { background: none; -webkit-text-fill-color: #fff; color: #fff; filter: blur(15px); opacity: 1; text-shadow: 0 0 30px rgba(255,255,255,.9), 0 0 60px rgba(255,63,164,.9); animation: mist 6s ease-in-out infinite; }
@keyframes mist { 50% { filter: blur(21px); opacity: .78; } }
body.is-open .title .redact { background: linear-gradient(180deg, #ffffff 0%, #d9f3ff 45%, #ffc2e3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: blur(0); opacity: 1; animation: none; }
