/* ═══════════════════════════════════════════════════════════════
   QUIZ SHOW — 50 ans Raphaël · Émission TV Premium
   ═══════════════════════════════════════════════════════════════ */

:root {
  --violet: #46178F;
  --violet-light: #7B3FE4;
  --violet-glow: rgba(123, 63, 228, 0.55);
  --night: #070014;
  --night-mid: #120828;
  --night-soft: #1E0F3D;
  --gold: #FFD700;
  --gold-soft: #FFE566;
  --electric: #00D4FF;
  --white: #FFFFFF;
  --text-muted: #B8A9D4;
  --kahoot-a: #E21B3C;
  --kahoot-b: #1368CE;
  --kahoot-c: #D89E00;
  --kahoot-d: #26890C;
  --correct: #00E676;
  --correct-glow: rgba(0, 230, 118, 0.65);
  --wrong: #3A3A3A;
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --presenter-h: 52px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --screen-pad-bottom: calc(var(--presenter-h) + var(--safe-bottom) + 8px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--night);
  color: var(--white);
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Ambiance studio TV ─────────────────────────────────────── */
.tv-ambient {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
}

.ambient-grid {
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(123, 63, 228, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 63, 228, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
  to { transform: translate(60px, 60px); }
}

.ambient-spotlight {
  position: absolute;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: spotlightPulse 8s ease-in-out infinite;
}
.ambient-spotlight--left {
  background: radial-gradient(circle, var(--violet-light), transparent 70%);
  top: -20%; left: -15%;
}
.ambient-spotlight--right {
  background: radial-gradient(circle, var(--gold), transparent 70%);
  bottom: -25%; right: -10%;
  animation-delay: -4s;
}

@keyframes spotlightPulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.08); }
}

.ambient-particles .particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 12s ease-in-out infinite;
  box-shadow: 0 0 8px var(--gold);
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.tv-vignette {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1; pointer-events: none;
}

.tv-scanlines {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  z-index: 2; pointer-events: none;
  opacity: 0.4;
}

/* ─── Cadre TV ───────────────────────────────────────────────── */
.tv-frame {
  position: relative;
  width: 100%; height: 100%;
  z-index: 10;
}

.tv-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.tv-header.visible {
  opacity: 1; transform: translateY(0);
}

.tv-logo {
  display: flex; align-items: baseline; gap: 0.5rem;
}
.tv-logo-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
  line-height: 1;
}
.tv-logo-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.tv-live-badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(226, 27, 60, 0.2);
  border: 1px solid var(--kahoot-a);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--kahoot-a);
  border-radius: 50%;
  animation: liveBlink 1.2s ease infinite;
  box-shadow: 0 0 10px var(--kahoot-a);
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── Progress ─────────────────────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 5px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--electric));
  z-index: 300;
  transition: width 0.7s var(--ease-out-expo);
  box-shadow: 0 0 20px var(--gold), 0 2px 10px rgba(255,215,0,0.4);
}

.progress-dots {
  position: fixed; top: 1.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 250;
  opacity: 0;
  transition: opacity 0.4s;
}
.progress-dots.visible { opacity: 1; }

.progress-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.4s var(--ease-out-expo);
}
.progress-dot.done { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.progress-dot.current {
  background: var(--electric);
  transform: scale(1.4);
  box-shadow: 0 0 12px var(--electric);
}

#fx-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
}

/* ─── Rideau transition ──────────────────────────────────────── */
.curtain {
  position: fixed; inset: 0;
  z-index: 900; pointer-events: none;
  display: flex;
}
.curtain-panel {
  flex: 1;
  background: linear-gradient(135deg, var(--violet), var(--night-mid));
  transform: scaleX(0);
  transition: transform 0.55s var(--ease-out-expo);
}
.curtain-panel--left { transform-origin: left; }
.curtain-panel--right { transform-origin: right; }
.curtain.closing .curtain-panel { transform: scaleX(1); }
.curtain.opening .curtain-panel { transform: scaleX(0); }

/* ─── Screens ──────────────────────────────────────────────────── */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  z-index: 50;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.screen.active {
  opacity: 1; visibility: visible;
}
.screen.entering .zoom-seq {
  animation: zoomSeqIn 0.8s var(--ease-out-expo) both;
  animation-delay: var(--d, 0s);
}

@keyframes zoomSeqIn {
  from { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ─── Thèmes manches ───────────────────────────────────────────── */
.theme-childhood {
  --accent: #FFD700;
  --accent-glow: rgba(255, 215, 0, 0.4);
  --bg: radial-gradient(ellipse at 30% 20%, #3D2E00 0%, var(--night) 65%);
}
.theme-casseroles {
  --accent: #FF6B35;
  --accent-glow: rgba(255, 107, 53, 0.45);
  --bg: radial-gradient(ellipse at 70% 30%, #4A1500 0%, var(--night) 65%);
}
.theme-true {
  --accent: #7B3FE4;
  --accent-glow: rgba(123, 63, 228, 0.5);
  --bg: radial-gradient(ellipse at 50% 40%, #2A1050 0%, var(--night) 70%);
}
.theme-friends {
  --accent: #00E676;
  --accent-glow: rgba(0, 230, 118, 0.4);
  --bg: radial-gradient(ellipse at 20% 60%, #0A3020 0%, var(--night) 65%);
}
.theme-finale {
  --accent: #FFD700;
  --accent-glow: rgba(255, 215, 0, 0.5);
  --bg: radial-gradient(ellipse at center, #2A0845 0%, #000 80%);
}
.theme-bonus {
  --accent: #00D4FF;
  --accent-glow: rgba(0, 212, 255, 0.45);
  --bg: radial-gradient(ellipse at center, #0A2840 0%, var(--night) 75%);
}
.theme-intro, .theme-podium {
  --accent: var(--gold);
  --accent-glow: rgba(255, 215, 0, 0.4);
  --bg: radial-gradient(ellipse at 50% 30%, var(--violet) 0%, var(--night) 70%);
}

.screen[data-theme] { background: var(--bg, var(--night)); }
#screen-round, #screen-question { background: var(--bg, var(--night-mid)); }

/* ─── INTRO ────────────────────────────────────────────────────── */
.intro-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.intro-rays {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(255,215,0,0.03) 30deg, transparent 60deg,
    rgba(123,63,228,0.04) 90deg, transparent 120deg);
  animation: raysSpin 30s linear infinite;
}
@keyframes raysSpin { to { transform: rotate(360deg); } }

.intro-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}
.intro-badge {
  display: inline-block;
  background: rgba(255,215,0,0.12);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 0.5rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(255,215,0,0.2);
}
.intro-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 0 80px var(--violet-glow), 0 4px 0 rgba(0,0,0,0.4);
  margin-bottom: 0.8rem;
}
.intro-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--gold), var(--electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255,215,0,0.3));
}
.intro-tagline {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.intro-desc {
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}
.intro-music-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0.7;
}

/* ─── RÈGLES ───────────────────────────────────────────────────── */
.rules-stage {
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}
.rules-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--gold);
  margin-bottom: 2.5rem;
  text-shadow: 0 0 40px rgba(255,215,0,0.3);
}
.rules-list {
  list-style: none;
  text-align: left;
  margin-bottom: 3rem;
}
.rules-list li {
  display: flex; align-items: center; gap: 1.2rem;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(-30px);
  animation: ruleSlideIn 0.6s var(--ease-out-expo) forwards;
}
.rules-list li::before {
  content: attr(data-icon);
  font-size: 1.8rem;
  flex-shrink: 0;
}
.rules-footer {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}
@keyframes ruleSlideIn {
  to { opacity: 1; transform: none; }
}

/* ─── Lower third ──────────────────────────────────────────────── */
.lower-third {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent, var(--gold)), transparent);
  padding: 0.4rem 2rem 0.4rem 1rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent, var(--gold));
}
.lower-third-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

/* ─── ROUND SPLASH ─────────────────────────────────────────────── */
.round-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.round-burst {
  position: absolute;
  width: 120vmax; height: 120vmax;
  background: conic-gradient(from 0deg, transparent, var(--accent-glow, rgba(255,215,0,0.15)), transparent);
  animation: burstSpin 4s linear infinite;
  opacity: 0.6;
}
@keyframes burstSpin { to { transform: rotate(360deg); } }

.round-splash { text-align: center; position: relative; z-index: 2; padding: 2rem; }
.round-icon {
  font-size: clamp(5rem, 14vw, 9rem);
  margin-bottom: 1rem;
  animation: iconPop 0.7s var(--ease-spring) both;
  filter: drop-shadow(0 0 30px var(--accent-glow));
}
@keyframes iconPop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.round-label {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.35em;
  color: var(--accent, var(--gold));
  font-weight: 800;
  margin-bottom: 0.5rem;
  animation: textReveal 0.6s var(--ease-out-expo) 0.2s both;
}
.round-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 60px var(--accent-glow);
  animation: textReveal 0.7s var(--ease-out-expo) 0.35s both;
}
.round-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--text-muted);
  font-style: italic;
  animation: textReveal 0.6s var(--ease-out-expo) 0.5s both;
}
.round-progress-bar {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin: 2rem auto 0;
  overflow: hidden;
}
.round-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent, var(--gold));
  border-radius: 4px;
  animation: roundFill 3s linear forwards;
  box-shadow: 0 0 10px var(--accent-glow);
}
@keyframes roundFill { to { width: 100%; } }
@keyframes textReveal {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ─── QUESTION LAYOUT ──────────────────────────────────────────── */
.question-layout {
  display: grid;
  grid-template-columns: minmax(240px, 28%) 1fr;
  gap: 2rem;
  width: 100%;
  height: 100%;
  padding: 5rem 2.5rem 5.5rem;
  align-items: stretch;
}

.question-side {
  display: flex; flex-direction: column;
  gap: 0.8rem;
  transition: visibility 0.5s ease, opacity 0.6s var(--ease-out-expo);
}
.question-side.spoiler-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.question-side.spoiler-visible {
  visibility: visible;
  opacity: 1;
}
.illustration-frame {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 40px var(--accent-glow, var(--violet-glow)),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
}
.illustration-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
#q-illustration-inner {
  width: 100%; height: 100%;
  min-height: 200px;
  animation: illuFloat 6s ease-in-out infinite;
}
#q-illustration-inner svg { width: 100%; height: 100%; display: block; }
@keyframes illuFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.visual-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  opacity: 0.7;
}

.question-main {
  display: flex; flex-direction: column;
  min-height: 0;
}

.question-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.question-round-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, var(--text-muted));
  box-shadow: 0 0 20px var(--accent-glow, transparent);
}
.question-round-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--accent-glow, transparent));
}

.timer-ring {
  position: relative;
  width: 100px; height: 100px;
  flex-shrink: 0;
}
.timer-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.timer-ring circle { fill: none; stroke-width: 5; }
.timer-bg { stroke: rgba(255,255,255,0.08); }
.timer-progress {
  stroke: var(--accent, var(--gold));
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
  filter: drop-shadow(0 0 10px var(--accent-glow, rgba(255,215,0,0.5)));
}
.timer-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
}
.timer-value.urgent {
  color: var(--kahoot-a);
  animation: timerPulse 0.5s ease infinite;
}
@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.question-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--accent, var(--gold));
  line-height: 1;
  text-shadow: 0 0 30px var(--accent-glow);
}
.question-number span {
  font-size: 0.3em;
  color: var(--text-muted);
  vertical-align: super;
  font-family: var(--font-body);
}

.question-text {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1.2rem;
  padding: 0 0.5rem;
  animation: qTextIn 0.6s var(--ease-out-expo) both;
}
@keyframes qTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Kahoot answer grid */
.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  flex: 1;
  max-height: 340px;
}
.answer-btn {
  display: flex; align-items: center; gap: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--white);
  cursor: default;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  transform: skewX(-2deg);
  transition: transform 0.35s var(--ease-spring), filter 0.4s, opacity 0.4s, box-shadow 0.4s;
  animation: answerPop 0.5s var(--ease-spring) both;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.answer-btn > * { transform: skewX(2deg); }
.answer-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.answer-btn:nth-child(1) { animation-delay: 0.08s; background: var(--kahoot-a); }
.answer-btn:nth-child(2) { animation-delay: 0.16s; background: var(--kahoot-b); }
.answer-btn:nth-child(3) { animation-delay: 0.24s; background: var(--kahoot-c); color: var(--night); }
.answer-btn:nth-child(4) { animation-delay: 0.32s; background: var(--kahoot-d); }

@keyframes answerPop {
  from { opacity: 0; transform: skewX(-2deg) scale(0.85) translateY(30px); }
  to { opacity: 1; transform: skewX(-2deg) scale(1) translateY(0); }
}

.answer-shape {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.answer-text { text-align: left; line-height: 1.2; flex: 1; }

.answer-btn.correct {
  background: var(--correct) !important;
  color: var(--night) !important;
  transform: skewX(-2deg) scale(1.05);
  box-shadow: 0 0 50px var(--correct-glow), 0 12px 30px rgba(0,0,0,0.3);
  animation: correctPulse 0.8s var(--ease-spring);
  z-index: 2;
}
.answer-btn.wrong {
  background: var(--wrong) !important;
  opacity: 0.35;
  filter: grayscale(0.7) brightness(0.7);
  transform: skewX(-2deg) scale(0.97);
}
@keyframes correctPulse {
  0% { box-shadow: 0 0 0 var(--correct-glow); transform: skewX(-2deg) scale(1); }
  50% { box-shadow: 0 0 80px var(--correct-glow); transform: skewX(-2deg) scale(1.08); }
  100% { box-shadow: 0 0 50px var(--correct-glow); transform: skewX(-2deg) scale(1.05); }
}

/* Reveal */
.reveal-panel {
  display: none;
  align-items: center; gap: 1.2rem;
  margin-top: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  animation: revealIn 0.7s var(--ease-out-expo) both;
  box-shadow: 0 0 30px rgba(255,215,0,0.1);
}
.reveal-panel.visible { display: flex; }
.reveal-icon { font-size: 2rem; flex-shrink: 0; }
.reveal-anecdote {
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold-soft);
  font-style: italic;
}
.presenter-prompt {
  display: block;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 215, 0, 0.25);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 700;
  font-style: normal;
  color: var(--gold);
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

.question-actions {
  display: flex; gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Boutons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: none; border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #FF9500 100%);
  color: var(--night);
  box-shadow: 0 10px 40px rgba(255,215,0,0.35);
}
.btn-glow { box-shadow: 0 0 40px rgba(255,215,0,0.3), 0 10px 40px rgba(255,215,0,0.25); }
.btn-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  animation: btnShine 3s ease infinite;
}
@keyframes btnShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-reveal {
  background: linear-gradient(135deg, var(--violet-light), var(--violet));
  color: var(--white);
  box-shadow: 0 8px 30px var(--violet-glow);
}
.btn-next {
  background: linear-gradient(135deg, var(--correct), #00C853);
  color: var(--night);
  box-shadow: 0 8px 30px var(--correct-glow);
}

/* ─── OUTRO ────────────────────────────────────────────────────── */
#screen-outro { background: #000; }

.outro-photo-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 2.5s ease;
}
.outro-photo-wrap.visible { opacity: 0.2; }
.outro-photo {
  width: 45vmin; height: 45vmin;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 100px var(--violet-glow);
}
.outro-photo-placeholder {
  width: 45vmin; height: 45vmin;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--night-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
  border: 3px solid var(--gold);
}

.outro-lines {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}
.outro-line {
  font-size: clamp(1.3rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.outro-line.visible { opacity: 1; transform: none; }
.outro-line:first-child {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold);
  text-shadow: 0 0 60px rgba(255,215,0,0.4);
}
.outro-line.emphasis {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold-soft);
}
.outro-line.final {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--gold);
  font-weight: 800;
  margin-top: 1.5rem;
  text-shadow: 0 0 40px rgba(255,215,0,0.3);
}
.outro-actions {
  position: relative; z-index: 3;
  margin-top: 2rem;
}

/* ─── PODIUM ───────────────────────────────────────────────────── */
.podium-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.podium-rays {
  position: absolute; inset: 0;
  background: conic-gradient(from 180deg at 50% 100%,
    transparent, rgba(255,215,0,0.08), transparent, rgba(123,63,228,0.06), transparent);
  animation: raysSpin 20s linear infinite;
}
.podium-content { text-align: center; position: relative; z-index: 2; }
.podium-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.podium-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 50px rgba(255,215,0,0.4);
}
.podium-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.podium-visual {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.podium-place {
  display: flex; flex-direction: column; align-items: center;
  animation: podiumRise 0.9s var(--ease-out-expo) both;
}
.podium-place:nth-child(1) { animation-delay: 0.3s; }
.podium-place:nth-child(2) { animation-delay: 0s; }
.podium-place:nth-child(3) { animation-delay: 0.6s; }
.podium-place--first .podium-block { box-shadow: 0 0 40px rgba(255,215,0,0.5); }
.podium-medal { font-size: 3rem; margin-bottom: 0.5rem; }
.podium-block {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--night);
}
.podium-block-1 { width: 130px; height: 170px; background: linear-gradient(180deg, #FFD700, #FF9500); font-size: 3.5rem; }
.podium-block-2 { width: 110px; height: 130px; background: linear-gradient(180deg, #E8E8E8, #A0A0A0); font-size: 2.8rem; }
.podium-block-3 { width: 110px; height: 100px; background: linear-gradient(180deg, #CD7F32, #8B4513); font-size: 2.2rem; }
@keyframes podiumRise {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.podium-hint {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ─── Presenter bar ────────────────────────────────────────────── */
.presenter-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(7, 0, 20, 0.92);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.65rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  z-index: 500;
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease-out-expo);
}
.presenter-bar.hidden { transform: translateY(100%); }
.presenter-note {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.presenter-progress {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  min-width: 90px;
  letter-spacing: 0.05em;
}
.presenter-shortcuts {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}
.sound-hint {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-right: 0.8rem;
}

/* ─── Utilities ────────────────────────────────────────────────── */
.shake { animation: shake 0.5s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.bonus-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--electric);
  color: var(--electric);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

/* ─── Responsive ───────────────────────────────────────────────── */

/* Tablette */
@media (max-width: 1000px) {
  .question-layout {
    grid-template-columns: 1fr;
    padding: 4.5rem 1.5rem var(--screen-pad-bottom);
    height: auto;
    min-height: 100%;
  }
  .question-side.spoiler-hidden { display: none; }
  .question-side.spoiler-visible {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .illustration-frame { width: 100%; min-height: 140px; flex: none; }
  #q-illustration-inner { min-height: 140px; }
  .answers-grid { max-height: none; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --presenter-h: 72px;
    --screen-pad-bottom: calc(var(--presenter-h) + var(--safe-bottom) + 12px);
  }

  /* Écrans scrollables */
  .screen {
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(var(--safe-top) + 0.5rem);
    padding-bottom: var(--screen-pad-bottom);
  }

  .tv-header {
    padding: calc(var(--safe-top) + 0.4rem) 0.75rem 0.4rem;
  }
  .tv-logo-num { font-size: 1.4rem; }
  .tv-logo-text { font-size: 0.6rem; letter-spacing: 0.15em; }
  .tv-live-badge { padding: 0.25rem 0.6rem; font-size: 0.6rem; }
  .progress-dots { top: calc(var(--safe-top) + 2.8rem); gap: 4px; }
  .progress-dot { width: 6px; height: 6px; }

  /* Intro */
  .intro-content {
    padding: 1.25rem 1rem var(--screen-pad-bottom);
    min-height: min(100%, 100dvh);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .intro-title { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .intro-tagline { font-size: clamp(1.1rem, 5vw, 1.5rem); margin-bottom: 1rem; }
  .intro-desc { font-size: 0.95rem; margin-bottom: 1rem; }
  .intro-music-hint { font-size: 0.8rem; margin-bottom: 1.5rem; }

  /* Règles — bouton toujours visible */
  .rules-stage {
    width: 100%;
    max-width: none;
    padding: 3.5rem 1rem 0;
    min-height: min(100%, 100dvh);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .rules-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
    margin-bottom: 1.25rem;
  }
  .lower-third { margin-bottom: 1rem; }
  .rules-list {
    flex: 1;
    margin-bottom: 0.5rem;
  }
  .rules-list li {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
  }
  .rules-list li::before { font-size: 1.4rem; }
  .rules-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 1rem 0 calc(var(--presenter-h) + var(--safe-bottom) + 4px);
    margin-top: auto;
    background: linear-gradient(to top, var(--night) 55%, transparent);
  }
  .rules-footer .btn {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
  }

  /* Manche */
  .round-splash { padding: 3rem 1rem var(--screen-pad-bottom); }
  .round-icon { font-size: clamp(3.5rem, 18vw, 5rem); }
  .round-title { font-size: clamp(2rem, 10vw, 3rem); }
  .round-tagline { font-size: 1rem; }

  /* Question */
  #screen-question { padding-bottom: 0; }
  .question-layout {
    padding: 3.5rem 0.85rem var(--screen-pad-bottom);
    gap: 1rem;
    height: auto;
    min-height: min(100%, 100dvh);
  }
  .question-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }
  .question-round-badge {
    order: 1;
    flex: 1 1 100%;
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
    justify-content: center;
  }
  .question-round-icon { font-size: 1.3rem; }
  .timer-ring {
    order: 2;
    width: 72px;
    height: 72px;
  }
  .timer-value { font-size: 1.8rem; }
  .question-number {
    order: 3;
    font-size: clamp(2rem, 10vw, 2.8rem);
    margin-left: auto;
  }
  .question-text {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    margin-bottom: 0.75rem;
  }
  .answers-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .answer-btn {
    min-height: 56px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transform: none;
  }
  .answer-btn > * { transform: none; }
  .answer-btn.correct,
  .answer-btn.wrong { transform: none; }
  .answer-shape { width: 40px; height: 40px; font-size: 1.2rem; }
  .reveal-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .question-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0 calc(var(--presenter-h) + var(--safe-bottom) + 4px);
    margin-top: 0.5rem;
    background: linear-gradient(to top, var(--night) 60%, transparent);
  }
  .question-actions .btn {
    width: 100%;
    min-height: 50px;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
  }

  /* Outro & Podium */
  .outro-lines { padding: 3rem 1rem var(--screen-pad-bottom); }
  .outro-line { font-size: clamp(1rem, 4.5vw, 1.4rem); }
  .outro-line:first-child { font-size: clamp(2rem, 12vw, 3.5rem); }
  .outro-actions {
    padding: 0 1rem var(--screen-pad-bottom);
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #000 50%, transparent);
  }
  .outro-actions .btn { width: 100%; min-height: 50px; }
  .podium-content { padding: 3rem 1rem var(--screen-pad-bottom); }
  .podium-title { font-size: clamp(2rem, 10vw, 3rem); }
  .podium-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .podium-block-1 { width: 90px; height: 120px; font-size: 2.2rem; }
  .podium-block-2 { width: 75px; height: 95px; font-size: 1.8rem; }
  .podium-block-3 { width: 75px; height: 75px; font-size: 1.5rem; }
  .podium-medal { font-size: 2rem; }

  /* Boutons globaux */
  .btn {
    min-height: 48px;
    touch-action: manipulation;
  }

  /* Barre animateur compacte */
  .presenter-bar {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0.45rem 0.75rem calc(0.45rem + var(--safe-bottom));
    gap: 0.25rem 0.5rem;
  }
  .presenter-progress {
    font-size: 0.72rem;
    min-width: 56px;
    flex-shrink: 0;
  }
  .presenter-note {
    flex: 1 1 100%;
    order: 3;
    white-space: normal;
    font-size: 0.72rem;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
  }
  .presenter-controls {
    margin-left: auto;
    order: 2;
  }
  .presenter-shortcuts, .sound-hint { display: none; }

}

/* Dock mobile — masqué sur desktop */
.mobile-nav {
  display: none;
  position: fixed;
  right: 0.75rem;
  bottom: calc(var(--presenter-h) + var(--safe-bottom) + 8px);
  z-index: 450;
  flex-direction: column;
  gap: 0.45rem;
}
@media (max-width: 768px) {
  .mobile-nav.mobile-nav--visible {
    display: flex;
  }
}
.mobile-nav-btn {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(123, 63, 228, 0.9);
  color: var(--white);
  font-size: 1.35rem;
  box-shadow: 0 4px 20px var(--violet-glow);
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.2s var(--ease-spring);
}
.mobile-nav-btn:active { transform: scale(0.92); }
.mobile-nav-btn.primary {
  background: linear-gradient(135deg, var(--gold), #FF9500);
  color: var(--night);
  width: 58px;
  height: 58px;
  font-size: 1.5rem;
}

@media (max-width: 480px) {
  .intro-badge { font-size: 0.75rem; padding: 0.35rem 1rem; letter-spacing: 0.1em; }
  .rules-list li { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}