@font-face {
  font-family: "Anton";
  src: url(../fonts/anton.woff2) format("woff2");
  font-display: block;
}
@font-face {
  font-family: "Yellowtail";
  src: url(../fonts/yellowtail.woff2) format("woff2");
  font-display: block;
}

:root {
  --night: #0b0620;
  --pink: #ff3ea5;
  --orange: #ff8a3d;
  --gold: #ffd36b;
  --violet: #b15cff;
  --cyan: #3ef0ff;
  --hud-yellow: #f2c94c;
  --hud-blue: #6cc8ff;
  --hud-green: #6fe38a;
  --silhouette: #14071f;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bar: 6vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; background: #000; color: #fff; overflow: hidden; }
body {
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.screen { position: fixed; inset: 0; overflow: hidden; }

/* ---------- Typographie partagée ---------- */
.neon {
  font-family: var(--script);
  color: #fff1f8;
  line-height: 1.05;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 28px var(--pink), 0 0 56px rgba(255, 62, 165, .8);
}
.neon.cyan { text-shadow: 0 0 4px #fff, 0 0 12px var(--cyan), 0 0 28px var(--cyan), 0 0 56px rgba(62, 240, 255, .7); }
.name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: .95;
  background: linear-gradient(180deg, #ff5fc1 0%, var(--pink) 30%, var(--orange) 68%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .5)) drop-shadow(5px 7px 0 #2a0a3a) drop-shadow(0 0 30px rgba(255, 62, 165, .55));
}

/* ---------- Boutons ---------- */
.btn, .cta {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  border: 0;
  border-radius: 999px;
}
.btn { font-size: clamp(16px, 4.4vw, 21px); padding: .62em 1.3em; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* « Passer » pendant l'intro, « Passer le trailer » pendant la vidéo. */
.skip-btn {
  position: fixed;
  left: 12px;
  top: calc(var(--safe-top) + max(6px, (var(--bar) - 40px) / 2));
  z-index: 30;
  min-height: 40px;
  font: 600 15px/1 var(--ui);
  color: #fff;
  background: rgba(16, 9, 31, .65);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 11px 16px;
  animation: fadein .4s ease;
}

/* ---------- Habillage cinéma ---------- */
.bar { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .9s ease; z-index: 10; }
.bar.top { top: 0; }
.bar.bottom { bottom: 0; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 11; }
.grain {
  position: absolute;
  inset: -10%;
  background-image: var(--grain, none);
  opacity: .045;
  pointer-events: none;
  z-index: 9;
  animation: grain .6s steps(3) infinite;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 7; }

@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-4%, 3%); }
  66% { transform: translate(3%, -2%); }
}
@keyframes fadein { from { opacity: 0; } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 62, 165, .55); }
  70% { box-shadow: 0 0 0 20px rgba(255, 62, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 62, 165, 0); }
}

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