/* ============================================================
   LE PASSEPORT SECRET — Charte graphique
   Direction : « carte au trésor nocturne » — bleu nuit profond,
   or antique, parchemin. Typo : Boska (display) + Switzer (corps).
   ============================================================ */

:root,
[data-theme='dark'] {
  --color-bg: #0B1120;
  --color-surface: #121A2E;
  --color-surface-2: #18223C;
  --color-surface-offset: #0E1526;
  --color-divider: rgba(239, 231, 212, 0.09);
  --color-border: rgba(201, 168, 76, 0.22);
  --color-text: #EFE7D4;
  --color-text-muted: #A79E87;
  --color-text-faint: #6B6553;
  --color-text-inverse: #1A1508;
  --color-primary: #C9A84C;
  --color-primary-hover: #DDBC66;
  --color-primary-active: #8B6914;
  --color-primary-highlight: rgba(201, 168, 76, 0.13);
  --color-success: #7FA653;
  --color-error: #C96A5C;
  --font-display: 'Boska', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 14px 40px oklch(0 0 0 / 0.45);
  --glow-gold: 0 0 24px rgba(201, 168, 76, 0.35);
}

[data-theme='light'] {
  --color-bg: #F3ECDB;
  --color-surface: #FAF5E8;
  --color-surface-2: #FFFDF5;
  --color-surface-offset: #EDE4CF;
  --color-divider: rgba(34, 29, 18, 0.10);
  --color-border: rgba(139, 105, 20, 0.30);
  --color-text: #241E10;
  --color-text-muted: #6E6450;
  --color-text-faint: #9A9078;
  --color-text-inverse: #FAF5E8;
  --color-primary: #8B6914;
  --color-primary-hover: #6E5210;
  --color-primary-active: #54400D;
  --color-primary-highlight: rgba(139, 105, 20, 0.12);
  --color-success: #4A7023;
  --color-error: #A1442F;
  --shadow-sm: 0 1px 2px oklch(0.3 0.03 80 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.3 0.03 80 / 0.12);
  --shadow-lg: 0 14px 40px oklch(0.3 0.03 80 / 0.16);
  --glow-gold: 0 0 24px rgba(139, 105, 20, 0.20);
}

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;

  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-xl: 1.4rem; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-golden: cubic-bezier(0.16, 1, 0.3, 1);
  --content: 560px;
}

/* ---------- Structure générale ---------- */
body { overflow-x: hidden; }
#app { min-height: 100dvh; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

.screen { min-height: 100dvh; animation: screen-in 0.55s var(--ease-golden); }
.screen[hidden] { display: none !important; }
@keyframes screen-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page {
  max-width: var(--content);
  margin-inline: auto;
  padding: calc(var(--space-16) + var(--space-4)) var(--space-5) calc(var(--space-20) + var(--space-8));
}
.page-flush { padding-top: 0; }

.kicker {
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600; margin-bottom: var(--space-2);
}
.h-display {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500;
  line-height: 1.08; margin-bottom: var(--space-3);
}
.h-display em, .brand-text em, .splash-title em { font-style: italic; color: var(--color-primary); }
.lede { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border-radius: var(--radius-full); font-weight: 600; font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6); min-height: 48px;
  border: 1px solid transparent; text-decoration: none;
}
.btn-gold {
  background: linear-gradient(160deg, var(--color-primary-hover), var(--color-primary) 55%, var(--color-primary-active));
  color: #fff; box-shadow: var(--shadow-md), var(--glow-gold);
}
[data-theme='light'] .btn-gold { color: #fff; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-ghost {
  border-color: var(--color-border); color: var(--color-text);
  background: var(--color-surface);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.app-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  padding-top: calc(var(--space-3) + env(safe-area-inset-top));
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--color-text); margin-inline: auto; }
.brand-mark { width: 34px; height: 34px; color: var(--color-primary); }
.brand-text { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.header-back {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text); border: 1px solid var(--color-divider);
}
.header-back:hover { color: var(--color-primary); border-color: var(--color-border); }
.theme-toggle {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); border: 1px solid var(--color-divider);
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-border); }
[data-theme='dark'] .icon-sun { display: block; } [data-theme='dark'] .icon-moon { display: none; }
[data-theme='light'] .icon-sun { display: none; } [data-theme='light'] .icon-moon { display: block; }

/* ---------- Écran accueil ---------- */
.screen-splash { position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.splash-bg { position: absolute; inset: 0; }
.splash-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: hero-drift 24s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-2%); } }
.splash-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--color-bg) 4%, oklch(0.16 0.03 265 / 0.55) 42%, oklch(0.16 0.03 265 / 0.15) 75%);
}
.splash-content {
  position: relative; z-index: 2; width: 100%; max-width: var(--content); margin-inline: auto;
  padding: var(--space-6) var(--space-5) calc(var(--space-10) + env(safe-area-inset-bottom));
}
.nfc-detect {
  display: inline-flex; align-items: center; gap: var(--space-2); position: relative;
  font-size: var(--text-xs); color: var(--color-primary);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4); margin-bottom: var(--space-5);
  background: oklch(0.16 0.03 265 / 0.55); backdrop-filter: blur(8px);
}
.nfc-pulse { position: absolute; inset: -1px; border-radius: var(--radius-full); border: 1px solid var(--color-primary); animation: nfc-pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes nfc-pulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.splash-kicker { font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; margin-bottom: var(--space-3); }
.splash-title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; line-height: 1.02; color: #F5EEDC; margin-bottom: var(--space-3); }
.splash-sub { color: #CDC4AC; font-size: var(--text-base); margin-bottom: var(--space-8); max-width: 40ch; }
.splash-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.audio-inline {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: #CDC4AC; font-size: var(--text-sm); font-weight: 500;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); align-self: flex-start;
}
.audio-inline:hover { color: var(--color-primary); }
.audio-dot {
  width: 38px; height: 38px; border-radius: var(--radius-full); flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); color: var(--color-primary);
  background: oklch(0.16 0.03 265 / 0.5);
}
.audio-inline.playing .audio-dot { background: var(--color-primary); color: #fff; box-shadow: var(--glow-gold); }
.splash-hints { display: flex; gap: var(--space-5); }
.hint { display: flex; align-items: center; gap: var(--space-2); color: #B4AB94; font-size: var(--text-xs); }
.hint .ic { color: var(--color-primary); }

.reveal-1, .reveal-2, .reveal-3, .reveal-4, .reveal-5 { opacity: 0; animation: rise 0.9s var(--ease-golden) forwards; }
.reveal-1 { animation-delay: 0.9s; } .reveal-2 { animation-delay: 1.05s; } .reveal-3 { animation-delay: 1.2s; }
.reveal-4 { animation-delay: 1.4s; } .reveal-5 { animation-delay: 1.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Parcours ---------- */
.parcours-hero { display: flex; gap: var(--space-5); margin-bottom: var(--space-8); align-items: flex-start; }
.parcours-medal {
  width: 108px; height: 108px; border-radius: var(--radius-full); object-fit: cover; flex: none;
  border: 2px solid var(--color-border); box-shadow: var(--shadow-md);
}
.progress-line { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.progress-ring { position: relative; width: 56px; height: 56px; flex: none; }
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--color-divider); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--color-primary); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 125.6; stroke-dashoffset: 125.6; transition: stroke-dashoffset 0.8s var(--ease-golden); }
.progress-ring span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums;
}
.progress-label { font-size: var(--text-xs); color: var(--color-text-muted); }

.timeline { position: relative; display: flex; flex-direction: column; gap: var(--space-4); }
.timeline::before {
  content: ''; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(var(--color-primary), var(--color-divider)); opacity: 0.5;
}
.step-card {
  position: relative; display: flex; gap: var(--space-4); align-items: stretch;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-3); text-decoration: none; color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.step-card:not(.locked):hover { border-color: var(--color-border); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.step-num {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: var(--radius-full); flex: none;
  display: flex; align-items: center; justify-content: center; align-self: center;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  color: var(--color-primary); font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
}
.step-card.done .step-num { background: var(--color-primary); color: var(--color-text-inverse); }
.step-thumb { width: 84px; height: 84px; border-radius: var(--radius-md); object-fit: cover; flex: none; align-self: center; }
.step-info { flex: 1; min-width: 0; align-self: center; }
.step-info h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; line-height: 1.15; }
.step-info p { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.step-status { align-self: center; color: var(--color-text-faint); flex: none; }
.step-card.done .step-status { color: var(--color-success); }
.step-card.locked { opacity: 0.55; pointer-events: none; }
.step-card.locked .step-thumb { filter: grayscale(0.7) brightness(0.75); }

/* ---------- Étape détail ---------- */
.etape-hero { position: relative; margin-bottom: var(--space-6); }
.etape-hero img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; }
.etape-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--color-bg) 2%, transparent 45%);
}
.etape-hero-top {
  position: absolute; inset: 0 0 auto; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--space-16) + var(--space-2)) var(--space-5) var(--space-4);
}
.etape-chip {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary); background: oklch(0.16 0.03 265 / 0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: var(--space-2) var(--space-4);
}
.etape-body { padding-inline: var(--space-5); margin-top: calc(var(--space-16) * -1 + var(--space-6)); position: relative; z-index: 2; }
.etape-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-4); }
.etape-story { color: var(--color-text-muted); font-size: var(--text-base); margin-bottom: var(--space-6); }
.etape-story strong { color: var(--color-text); font-weight: 600; }

.audio-card {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-6); box-shadow: var(--shadow-sm);
}
.audio-btn {
  width: 52px; height: 52px; border-radius: var(--radius-full); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--color-primary-hover), var(--color-primary-active));
  color: #fff; box-shadow: var(--shadow-md);
}
.audio-btn:active { transform: scale(0.95); }
.audio-info { flex: 1; min-width: 0; }
.audio-info b { display: block; font-size: var(--text-sm); font-weight: 600; }
.audio-info span { font-size: var(--text-xs); color: var(--color-text-muted); }
.audio-bar { height: 3px; border-radius: 3px; background: var(--color-divider); margin-top: var(--space-2); overflow: hidden; }
.audio-bar i { display: block; height: 100%; width: 0%; background: var(--color-primary); transition: width 0.25s linear; }

.ar-banner {
  display: flex; align-items: center; gap: var(--space-4); text-decoration: none;
  border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-8);
  background: linear-gradient(120deg, var(--color-primary-highlight), transparent 60%), var(--color-surface-2);
  border: 1px solid var(--color-border); color: var(--color-text); box-shadow: var(--shadow-sm);
}
.ar-banner:hover { box-shadow: var(--shadow-md), var(--glow-gold); border-color: var(--color-primary); }
.ar-banner .ic { width: 34px; height: 34px; color: var(--color-primary); }
.ar-banner b { display: block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.ar-banner span { font-size: var(--text-xs); color: var(--color-text-muted); }

.quiz-card {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-6);
}
.quiz-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.quiz-card .quiz-q { font-size: var(--text-base); margin-bottom: var(--space-4); }
.quiz-options { display: flex; flex-direction: column; gap: var(--space-2); }
.quiz-opt {
  display: flex; align-items: center; gap: var(--space-3); text-align: left;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); font-weight: 500;
  background: var(--color-surface-2); color: var(--color-text); min-height: 48px;
}
.quiz-opt:hover { border-color: var(--color-border); }
.quiz-opt .opt-letter {
  width: 26px; height: 26px; border-radius: var(--radius-full); flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); font-size: var(--text-xs); font-weight: 700; color: var(--color-primary);
}
.quiz-opt.correct { border-color: var(--color-success); background: color-mix(in oklab, var(--color-success) 14%, var(--color-surface)); }
.quiz-opt.correct .opt-letter { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.quiz-opt.wrong { border-color: var(--color-error); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.quiz-feedback { font-size: var(--text-sm); margin-top: var(--space-3); min-height: 1.4em; }
.quiz-feedback.ok { color: var(--color-success); font-weight: 600; }
.quiz-feedback.ko { color: var(--color-error); }

.secret-reveal {
  border-radius: var(--radius-xl); padding: var(--space-6); text-align: center; margin-bottom: var(--space-6);
  background: radial-gradient(120% 140% at 50% 0%, var(--color-primary-highlight), transparent 60%), var(--color-surface-2);
  border: 1px solid var(--color-primary); box-shadow: var(--glow-gold), var(--shadow-md);
  animation: secret-pop 0.7s var(--ease-golden);
}
@keyframes secret-pop { 0% { opacity: 0; transform: scale(0.85); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
.secret-reveal .secret-icon { width: 54px; height: 54px; margin-inline: auto; color: var(--color-primary); margin-bottom: var(--space-3); }
.secret-reveal .kicker { margin-bottom: var(--space-1); }
.secret-reveal h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--space-4); }

/* ---------- Écran AR ---------- */
.screen-ar { position: relative; background: radial-gradient(140% 100% at 50% 0%, var(--color-surface-2), var(--color-bg) 70%); }
#ar-viewer { width: 100%; height: 100dvh; --poster-color: transparent; }
.ar-cta { position: absolute; bottom: calc(238px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.ar-caption {
  position: absolute; inset: auto 0 0 0; z-index: 3; pointer-events: none;
  padding: var(--space-5) var(--space-5) calc(var(--space-20) + var(--space-6));
  background: linear-gradient(to top, var(--color-bg) 62%, transparent);
}
.ar-caption .h-display { font-size: var(--text-lg); }
.ar-hint { font-size: var(--text-xs); color: var(--color-text-muted); max-width: 46ch; }

/* ---------- Collection ---------- */
.secrets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: var(--space-4); }
.secret-tile {
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-3); text-align: center;
  background: var(--color-surface); border: 1px solid var(--color-divider);
}
.secret-tile .ic { width: 38px; height: 38px; margin-inline: auto; margin-bottom: var(--space-3); color: var(--color-text-faint); }
.secret-tile h3 { font-size: var(--text-sm); font-weight: 600; font-family: var(--font-body); }
.secret-tile p { font-size: var(--text-xs); color: var(--color-text-muted); }
.secret-tile.unlocked {
  background: radial-gradient(120% 130% at 50% 0%, var(--color-primary-highlight), transparent 65%), var(--color-surface-2);
  border-color: var(--color-border);
}
.secret-tile.unlocked .ic { color: var(--color-primary); filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.5)); }

/* ---------- Récompense ---------- */
.reward-hero { text-align: center; padding: var(--space-8) 0 var(--space-6); }
.reward-hero img { width: 190px; height: 190px; border-radius: var(--radius-full); object-fit: cover; margin-inline: auto; border: 3px solid var(--color-primary); box-shadow: var(--glow-gold), var(--shadow-lg); margin-bottom: var(--space-5); }
.reward-locked { text-align: center; padding-top: var(--space-10); }
.reward-locked .ic { width: 52px; height: 52px; margin-inline: auto; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.offer-card {
  display: flex; gap: var(--space-4); align-items: center;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-4); margin-bottom: var(--space-3); box-shadow: var(--shadow-sm);
}
.offer-card .ic { width: 30px; height: 30px; color: var(--color-primary); flex: none; }
.offer-card b { display: block; font-size: var(--text-sm); }
.offer-card span { font-size: var(--text-xs); color: var(--color-text-muted); }
.reward-note { font-size: var(--text-xs); color: var(--color-text-faint); text-align: center; margin-top: var(--space-6); }

/* ---------- Navigation basse ---------- */
.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: flex; justify-content: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--color-bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-divider);
}
.nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 84px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-lg);
  color: var(--color-text-muted); text-decoration: none; font-size: var(--text-xs); font-weight: 500;
}
.nav-item.active { color: var(--color-primary); background: var(--color-primary-highlight); }
.nav-badge {
  position: absolute; top: 4px; right: 18px; min-width: 17px; height: 17px; border-radius: var(--radius-full);
  background: var(--color-primary); color: var(--color-text-inverse);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding-inline: 4px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text);
  border-radius: var(--radius-full); padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm); font-weight: 500; box-shadow: var(--shadow-lg);
  transition: opacity 0.3s var(--ease-golden), transform 0.3s var(--ease-golden);
  max-width: min(92vw, 420px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Confettis dorés ---------- */
.gold-burst { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.gold-burst i {
  position: absolute; top: 38%; left: 50%; width: 8px; height: 8px; border-radius: 2px;
  background: var(--color-primary); animation: burst 1.1s var(--ease-golden) forwards;
}
@keyframes burst {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .screen-splash { align-items: center; }
  .splash-content { padding-bottom: var(--space-10); }
  .etape-hero img { aspect-ratio: 3/2.4; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
}
