/* Nightpass — DA reprise de shop.nightpass.fr : fond noir, texte blanc,
   violet #725ADF pour l'action, DM Sans. */
:root {
  --bg: #000;
  --surface: #121212;
  --line: #2a2a2a;
  --text: #fff;
  --muted: #a3a3a3;
  --accent: #725adf;
  --accent-hi: #8a75ff;
  --star: #f2c300;
  --error: #ff6b6b;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(90% 55% at 50% -10%, rgba(114, 90, 223, .45) 0%, rgba(114, 90, 223, 0) 70%),
    radial-gradient(70% 40% at 50% 110%, rgba(114, 90, 223, .22) 0%, rgba(114, 90, 223, 0) 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 16px 24px;
  -webkit-font-smoothing: antialiased;
}

main { width: 100%; max-width: 440px; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo { width: 88px; height: auto; margin-bottom: 28px; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 28px; font-size: 1rem; }
[hidden] { display: none !important; }
.accent { color: var(--accent-hi); white-space: nowrap; }
.sub--center { text-align: center; margin-bottom: 8px; }
.sub--ok { margin: 24px 0 0; color: var(--text); }
.form-code { margin-top: 28px; }
#step-note, #step-details, #step-merci, #email-ok { width: 100%; }

/* Accroche */
.badge {
  display: inline-block; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(114, 90, 223, .18); border: 1px solid rgba(138, 117, 255, .5); color: #d9d1ff;
}
.hero { font-size: clamp(1.6rem, 7vw, 2rem); font-weight: 800; line-height: 1.15; margin: 0 0 28px; }
.hero__gain {
  display: block; margin-top: 4px;
  font-size: clamp(1.9rem, 9vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em;
  background: linear-gradient(100deg, #b7a8ff 0%, #8a75ff 40%, #f2c300 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(114, 90, 223, .45));
}

.hero__amount { display: block; font-size: 2.3em; line-height: 1; letter-spacing: -0.03em; }

/* Étoiles */
.stars-card {
  width: 100%; padding: 18px 12px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
.stars-hint { margin: 0 0 6px; font-size: .95rem; color: var(--muted); }
.stars { display: flex; gap: 4px; justify-content: center; }
.star {
  background: none; border: 0; padding: 4px; cursor: pointer;
  font-size: clamp(2.6rem, 13vw, 3.3rem); line-height: 1; color: #3a3a46;
  transition: transform .15s, color .15s, text-shadow .15s;
}
.star:hover, .star:focus-visible { transform: scale(1.15); }
.star.on { color: var(--star); text-shadow: 0 0 18px rgba(242, 195, 0, .55); }
.star:focus-visible { outline: 2px solid var(--accent); border-radius: 8px; }
.star-label { min-height: 1.4em; color: var(--muted); font-size: .95rem; margin: 12px 0 20px; }

/* Vague dorée qui invite à cliquer, jusqu'au premier choix */
.stars--invite .star { animation: invite 2.4s ease-in-out infinite; }
.stars--invite .star:nth-child(2) { animation-delay: .12s; }
.stars--invite .star:nth-child(3) { animation-delay: .24s; }
.stars--invite .star:nth-child(4) { animation-delay: .36s; }
.stars--invite .star:nth-child(5) { animation-delay: .48s; }
@keyframes invite {
  0%, 60%, 100% { color: #3a3a46; transform: none; }
  25% { color: var(--star); transform: translateY(-4px) scale(1.08); text-shadow: 0 0 16px rgba(242, 195, 0, .5); }
}
.stars--invite:hover .star, .stars--invite .star.on { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .stars--invite .star { animation: none; }
}

/* Formulaire */
form { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
label { font-size: .9rem; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px 20px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--ghost { background: transparent; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface); }

.error { color: var(--error); font-size: .9rem; min-height: 1.2em; margin: 0; }

/* Code promo : l'élément à mettre en avant */
.promo {
  width: 100%; margin: 4px 0 24px; padding: 28px 20px;
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 50% 0%, #3b2b8f 0%, #1a1340 55%, #0d0a20 100%);
  border: 1px solid var(--accent);
  box-shadow: 0 0 40px rgba(114, 90, 223, .35);
}
.promo__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: #c9bfff; margin: 0 0 8px; font-weight: 700; }
.promo__amount { font-size: clamp(2.4rem, 13vw, 3.4rem); white-space: nowrap; font-weight: 800; line-height: 1; margin: 0; }
.promo__cond { font-size: 1.1rem; margin: 8px 0 0; font-weight: 500; }
.promo__note { font-size: .85rem; color: #c9bfff; margin: 12px 0 0; }
.promo__slot { margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(201, 191, 255, .35); }
.promo__code {
  margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; user-select: all; word-break: break-all;
}
.promo__code--flou { filter: blur(5px); opacity: .7; user-select: none; }
.promo__timer { margin: 0; font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.promo .btn { margin-top: 14px; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: #e9e5ff; }
main > .btn + .btn { margin-top: 10px; }
#step-merci .promo { margin-top: 20px; }

.steps { list-style: none; padding: 0; margin: 0 0 20px; width: 100%; text-align: left; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.steps b { color: var(--text); }
.steps .n {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; color: var(--text);
}

.ok { font-size: 2.6rem; margin-bottom: 8px; }

/* Liens réseaux et shop */
.links { width: 100%; max-width: 440px; margin-top: 36px; display: grid; gap: 10px; }
.links__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.links .btn { font-size: .95rem; padding: 13px 16px; font-weight: 500; }
.links svg { width: 18px; height: 18px; fill: currentColor; }
footer { margin-top: 24px; color: #5c5c5c; font-size: .8rem; }

/* Envoi du code par email (page 4-5 étoiles) */
.form-email { margin-top: 18px; gap: 8px; }
.form-email label { color: #c9bfff; text-align: center; }
.form-email__ligne { display: flex; gap: 8px; }
.form-email__ligne input { flex: 1; min-width: 0; padding: 12px 14px; }
.form-email__ligne .btn { width: auto; margin: 0; padding: 12px 18px; font-size: .95rem; }
