/* Palette "Ciel d'astéroïde" (day) / "Nuit étoilée" (night), copied from the app's tokens.css. */
:root {
  --bg: #F7F9FC; --surface: #FFFFFF; --surface-2: #EEF3FA; --ink: #1F2E4D; --ink-soft: #55607A; --line: #DCE3EE;
  --primary: #4A6FA5; --primary-hover: #3C5D8F; --primary-ink: #FFFFFF;
  --soft: #DCE8F5; --powder: #A9C6E8; --rose: #E8B4B8; --rose-soft: #F7E4E6; --rose-ink: #7A3A44;
  --success: #4F7F62; --danger: #B4423F; --star: #4A6FA5;
  --r: 6px; --r-lg: 8px;
  --shadow: 0 1px 2px rgba(31,46,77,.06), 0 8px 24px rgba(31,46,77,.07);
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, sans-serif;
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14213D; --surface: #1D2D50; --surface-2: #24365C; --ink: #EEF1FA; --ink-soft: #A9B4CB; --line: #2E4068;
    --primary: #9DB8EC; --primary-hover: #B4C9F2; --primary-ink: #14213D; --soft: #2C3E66;
    --rose-soft: #3A2F4F; --rose-ink: #F2CDD0; --success: #8FCBA6; --danger: #F0A3A0; --star: #EEF1FA;
    --shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(120% 70% at 50% 0%, var(--soft) 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--ink); font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; color: var(--primary); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sky */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--star); opacity: .35; animation: twinkle 4s ease-in-out infinite; }
.star.s2 { width: 4px; height: 4px; animation-delay: 1.3s; }
.star.s3 { width: 2px; height: 2px; animation-delay: 2.6s; }
.shooting {
  position: absolute; top: 12%; left: 70%; width: 120px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), transparent); opacity: 0;
  transform: rotate(-24deg); animation: shoot 9s ease-in 2s infinite;
}
@keyframes twinkle { 50% { opacity: .9; } }
@keyframes shoot {
  0% { opacity: 0; transform: translate(0,0) rotate(-24deg); }
  3% { opacity: .9; }
  10% { opacity: 0; transform: translate(-320px,140px) rotate(-24deg); }
  100% { opacity: 0; }
}
header, main, footer { position: relative; z-index: 1; }

/* Header */
.top { padding-top: 28px; padding-bottom: 8px; }
.logo { display: block; height: 52px; width: auto; }

/* Hero */
.hero { text-align: center; padding-top: 48px; padding-bottom: 56px; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
h1 { font-size: clamp(40px, 7vw, 72px); }
.ink { position: relative; display: inline-block; white-space: nowrap; }
.ink svg { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .22em; z-index: -1; }
.slogan { margin: 22px 0 0; font: italic 500 clamp(20px, 2.6vw, 26px)/1.3 var(--serif); color: var(--ink); }
.lead { max-width: 620px; margin: 14px auto 0; color: var(--ink-soft); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

.launch { max-width: 620px; margin: 40px auto 0; padding: 28px 24px; }
.launch-title { margin: 0; font-size: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.launch-title strong { font-family: var(--serif); font-weight: 600; }
.badge { display: inline-block; padding: 4px 12px; border-radius: var(--r); background: var(--rose-soft); color: var(--rose-ink); font-size: 13px; font-weight: 600; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 6px; }
.countdown[hidden], .countdown-done[hidden] { display: none; }
.countdown div { background: var(--surface-2); border-radius: var(--r); padding: 12px 4px; }
.countdown span { display: block; font: 600 clamp(26px, 5vw, 36px)/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--primary); }
.countdown small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.countdown-done { margin: 18px 0 0; font: italic 600 22px var(--serif); color: var(--primary); }

/* Form */
.notify { margin-top: 22px; text-align: left; }
.notify-row { display: flex; gap: 8px; }
.input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); color: var(--ink); font: inherit;
}
.input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.btn {
  height: 48px; padding: 0 20px; border: 0; border-radius: var(--r); cursor: pointer;
  background: var(--primary); color: var(--primary-ink); font: 600 16px var(--sans); white-space: nowrap;
  transition: background .15s;
}
.btn:hover { background: var(--primary-hover); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.optin { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.optin input { margin-top: 3px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; }
.notify-msg { margin: 12px 0 0; min-height: 1.5em; font-size: 14px; font-weight: 500; }
.notify-msg.ok { color: var(--success); }
.notify-msg.err { color: var(--danger); }

/* Features */
.features { padding-bottom: 72px; }
.features h2 { text-align: center; font-size: clamp(28px, 4vw, 40px); margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature { padding: 22px; border-top: 3px solid var(--primary); }
.feature.rose { border-top-color: var(--rose); }
.feature h3 { font-size: 20px; }
.feature p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }

/* Footer */
.foot { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink-soft); }
.foot p { margin: 0; }

@media (max-width: 520px) {
  .top { display: flex; justify-content: center; }
  .logo { height: 44px; }
  .hero { padding-top: 32px; }
  .launch { padding: 22px 16px; }
  .notify-row { flex-direction: column; }
  .input { flex: none; width: 100%; }
  .countdown { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .star, .shooting { animation: none; }
  .shooting { display: none; }
}

/* Thank-you page (/merci/, Brevo double opt-in redirect) */
.page-thanks { display: flex; flex-direction: column; }
.page-thanks main { flex: 1; }
.thanks { display: flex; align-items: center; justify-content: center; padding-top: 32px; padding-bottom: 64px; }
.thanks-card { max-width: 600px; width: 100%; padding: 40px 28px; text-align: center; }
.thanks-icon { margin: 0 0 8px; font-size: 44px; line-height: 1; }
.thanks-card h1 { font-size: clamp(36px, 6vw, 52px); }
.thanks-card .lead strong { color: var(--ink); }
.thanks-hint { margin: 18px auto 0; max-width: 480px; font-size: 14px; color: var(--ink-soft); }
.btn-link { display: inline-flex; align-items: center; margin-top: 26px; text-decoration: none; }
