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

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --navy-900: #070d18;
  --navy-800: #0d1a2e;
  --navy-700: #132240;
  --navy-600: #1b3a57;   /* brand dark blue */
  --blue:     #21618c;   /* brand blue */
  --blue-lit: #2980b9;
  --accent:   #3daee9;
  --gold:     #e8b842;
  --white:    #ffffff;
  --muted:    #8eacc4;
  --border:   rgba(255,255,255,0.08);
  --card-bg:  rgba(19, 34, 64, 0.85);

  --font: 'Inter', system-ui, sans-serif;
  --radius: 14px;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--navy-900);
  background-image:
    /* Halo bleu en haut */
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(33,97,140,0.40) 0%, transparent 65%),
    /* Halo teal bas-droite */
    radial-gradient(ellipse 55% 45% at 95% 95%, rgba(0,131,143,0.12) 0%, transparent 55%),
    /* Halo bleu bas-gauche */
    radial-gradient(ellipse 40% 35% at 5% 90%,  rgba(21,101,192,0.10) 0%, transparent 55%),
    /* Grille de points discrets */
    radial-gradient(circle, rgba(61,174,233,0.13) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  min-height: 100dvh;
  color: var(--white);
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
  position: relative;
  overflow-x: hidden;
}

/* Vague décorative en bas */
body::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath fill='rgba(21,101,192,0.07)' d='M0,80 C180,140 360,20 540,80 C720,140 900,20 1080,80 C1260,140 1350,60 1440,80 L1440,180 L0,180 Z'/%3E%3Cpath fill='rgba(33,97,140,0.05)' d='M0,110 C200,60 400,150 600,110 C800,70 1000,150 1200,110 C1320,85 1380,120 1440,110 L1440,180 L0,180 Z'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

/* Orbe décoratif haut-droite */
body::after {
  content: '';
  position: fixed;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,174,233,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* S'assurer que le contenu passe au-dessus */
.step { position: relative; z-index: 1; }

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.step { display: none; width: 100%; max-width: 400px; }
.step.active { display: block; }

.shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.site-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05) drop-shadow(0 0 14px rgba(61,174,233,0.3));
}

.site-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.badge {
  display: inline-block;
  align-self: center;
  background: rgba(61,174,233,0.12);
  border: 1px solid rgba(61,174,233,0.3);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.hero { display: flex; flex-direction: column; }

.hero.small {
  text-align: center;
  align-items: center;
  width: 100%;
}

.hero.small h1,
.hero.small .hero-sub {
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero.small h1 { font-size: 1.6rem; }

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
.hero-sub strong { color: var(--white); }

/* ─────────────────────────────────────────
   CHECKLIST
───────────────────────────────────────── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.checklist li strong { color: var(--white); }

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(61,174,233,0.15);
  border: 1px solid rgba(61,174,233,0.4);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); opacity: 0.9; }

.btn-icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--blue);
  background: linear-gradient(135deg, var(--blue-lit), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(33,97,140,0.45);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(33,97,140,0.6); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--white); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─────────────────────────────────────────
   CONFIRM BLOCK
───────────────────────────────────────── */
.hidden { display: none !important; }

.confirm-block { display: flex; flex-direction: column; gap: 14px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────
   WHEEL
───────────────────────────────────────── */
.wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 26px solid #e8a000;
  filter:
    drop-shadow(0 0 6px rgba(232,160,0,0.8))
    drop-shadow(0 2px 3px rgba(0,0,0,0.5));
  z-index: 10;
  position: relative;
  margin-bottom: -4px;
}

.wheel-ring {
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #9a6a1a,
    0 0 0 6px #c8933a,
    0 0 0 8px #9a6a1a,
    0 12px 50px rgba(0,0,0,0.55),
    0 0 40px rgba(200,147,58,0.2);
}

#wheelCanvas {
  display: block;
  border-radius: 50%;
}

/* ─────────────────────────────────────────
   RESULT
───────────────────────────────────────── */
.result-hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.result-congrats {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.result-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.result-prize {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.result-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   CODE CARD
───────────────────────────────────────── */
.code-card {
  background: var(--card-bg);
  border: 1px solid rgba(61,174,233,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.code-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.code-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  background: rgba(61,174,233,0.08);
  border: 1px dashed rgba(61,174,233,0.3);
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
}

.code-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  backdrop-filter: blur(12px);
}

.contact-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.contact-links { display: flex; flex-direction: column; gap: 10px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s;
}
.contact-link:hover { color: var(--accent); }
.contact-link svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   TERMS
───────────────────────────────────────── */
.terms {
  font-size: 0.72rem;
  color: rgba(142,172,196,0.5);
  line-height: 1.5;
  text-align: center;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.5rem; }
  #wheelCanvas { width: 270px; height: 270px; }
}
