@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('fonts/BarlowCondensed-800i.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 900; font-display: swap; src: url('fonts/BarlowCondensed-900i.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Inter-700.woff2') format('woff2'); }

/* Couleurs et polices de l'app NL/SL Live (public/styles.css) */
:root {
  --bg: #0b1220;
  --bg-2: #111a2c;
  --card: #141f34;
  --card-2: #1a2740;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f8;
  --muted: #9aa6bb;
  --faint: #8290a8;
  --ice: #7fd3ff;
  --ice-ink: #06223a;
  --goal: #ff3b4f;
  --gold: #ffc94a;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
::selection { background: var(--gold); color: var(--bg); }
a { color: var(--ice); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.display {
  font-family: var(--display); font-style: italic; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.9;
  margin: 0; text-wrap: balance;
}

/* ---------- Bouton principal ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 28px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--gold); color: var(--bg); text-decoration: none;
  font: italic 900 24px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  box-shadow: 0 14px 34px -10px rgba(255, 201, 74, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.14);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, filter 200ms ease;
}
.cta:active { transform: scale(0.97); }
.cta[disabled] { filter: saturate(0.4) brightness(0.8); cursor: progress; }
.cta svg { width: 22px; height: 22px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .cta:hover { box-shadow: 0 18px 40px -10px rgba(255, 201, 74, 0.75), inset 0 -3px 0 rgba(0, 0, 0, 0.14); }
}

/* ---------- Patinoire en fond ---------- */
.rink {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(127, 211, 255, 0.16), transparent 65%),
    radial-gradient(70% 40% at 50% 100%, rgba(255, 59, 79, 0.10), transparent 70%);
}
.rink::before, .rink::after { content: ''; position: absolute; left: -10%; right: -10%; }
/* ligne rouge du centre et lignes bleues, à peine visibles comme sous la glace */
.rink::before { top: 62%; height: 3px; background: rgba(255, 59, 79, 0.28); box-shadow: 0 0 22px rgba(255, 59, 79, 0.25); }
.rink::after {
  top: 62%; height: 280px; transform: translateY(-50%);
  border-top: 2px solid rgba(127, 211, 255, 0.12); border-bottom: 2px solid rgba(127, 211, 255, 0.12);
}
.rink i {
  position: absolute; left: 50%; top: 62%; width: 230px; height: 230px; transform: translate(-50%, -50%);
  border: 2px solid rgba(127, 211, 255, 0.10); border-radius: 50%;
}

/* ---------- Pied de page ---------- */
.foot {
  padding: 36px var(--gutter) calc(36px + var(--safe-b));
  border-top: 1px solid var(--line); text-align: center; color: var(--faint); font-size: 13px;
}
.foot p { margin: 0 auto 8px; max-width: 34em; }
.foot a { color: var(--muted); }

/* ---------- Pages simples (validation, désinscription, confidentialité) ---------- */
.page {
  position: relative; isolation: isolate; min-height: 100svh;
  display: flex; flex-direction: column;
}
.page main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px var(--gutter); text-align: center;
}
.page .icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 28px; box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.7); }
.page h1 { font-size: clamp(44px, 13vw, 76px); max-width: 9em; }
.page h1 em { font-style: inherit; color: var(--ice); }
.page .lead { margin: 18px auto 0; max-width: 26em; color: var(--muted); font-size: 17px; }
.page .lead strong { color: var(--text); font-weight: 600; }
.page .actions { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 9px 16px; border-radius: 999px; background: var(--gold); color: var(--bg);
  font: italic 900 19px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em;
}
.badge.outline { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.spinner {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto;
  border: 3px solid rgba(127, 211, 255, 0.2); border-top-color: var(--ice);
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

.appear { animation: appear 520ms var(--ease-out) both; }
@keyframes appear { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

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