@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/InstrumentSerif-Italic.ttf') format('truetype'); font-style: italic; font-display: swap; }

/* Mêmes couleurs que l'app (src/theme/colors.ts) : un fond, une lavande, un blanc cassé. */
:root {
  --bg: #0b0d14;
  --accent: #b9c2ff;
  --text: #f2f3f7;
  --text-2: rgba(242, 243, 247, 0.64);
  --text-3: rgba(242, 243, 247, 0.5);
  --hairline: rgba(242, 243, 247, 0.1);
  --surface: #1b1d24;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 20px; }

header.top { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 500; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.help { color: var(--text); text-decoration: none; border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

.hero { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 32px 0 48px; }
.lens { width: min(62vw, 260px); aspect-ratio: 1; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(42px, 9vw, 72px); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.lede { color: var(--text-2); font-size: 19px; max-width: 30ch; margin: 0; }

.countdown { display: flex; gap: 10px; justify-content: center; }
.unit { min-width: 76px; padding: 14px 8px 10px; border: 1px solid var(--hairline); border-radius: 16px; background: rgba(27, 29, 36, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.unit b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.unit span { font-size: 12px; color: var(--text-3); text-transform: lowercase; }
.launch { color: var(--text-2); font-size: 15px; margin: -12px 0 0; }

section { padding: 56px 0; border-top: 1px solid var(--hairline); }
h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 36px; line-height: 1.1; margin: 0 0 12px; }
section p { color: var(--text-2); margin: 0 0 12px; }

.beta form { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.beta input { flex: 1 1 220px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); font: inherit; letter-spacing: 0.06em; text-transform: uppercase; }
.beta input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--bg); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.message { min-height: 24px; margin-top: 14px; font-size: 15px; }
.message.ok { color: var(--accent); }
.message.err { color: var(--text); }
.steps { margin: 18px 0 0; padding-left: 20px; color: var(--text-2); }
.steps li { margin-bottom: 6px; }

.features { display: grid; gap: 12px; margin-top: 20px; }
.feature { padding: 18px 20px; border: 1px solid var(--hairline); border-radius: 16px; background: rgba(27, 29, 36, 0.55); }
.feature b { display: block; font-weight: 500; margin-bottom: 2px; }
.feature span { color: var(--text-2); font-size: 15px; }

.urgent { padding: 20px; border: 1px solid var(--hairline); border-radius: 16px; background: rgba(27, 29, 36, 0.55); }
.urgent a { color: var(--text); font-weight: 500; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Pages de texte (confidentialité, assistance). */
.doc { padding: 24px 0 48px; }
.doc h1 { font-size: clamp(40px, 8vw, 56px); margin: 16px 0 8px; }
.doc .updated { color: var(--text-3); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 28px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.draft { display: inline-block; font-size: 13px; color: var(--accent); border: 1px solid rgba(185, 194, 255, 0.3); border-radius: 999px; padding: 4px 12px; }

@media (prefers-reduced-motion: reduce) {
  .lens { transition: none; }
}
