@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0a0e14;
  --surface: #11161f;
  --line-2: #2f3b4d;
  --text: #e6ebf2;
  --text-dim: #a4adbb;
  --muted: #8a94a6;
  --accent: oklch(0.79 0.13 195);
  --accent-ink: #04141a;
  --negative: oklch(0.76 0.16 25);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(60rem 34rem at 50% -10%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(640px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

.marque { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); }
.marque-signe { width: 40px; height: 40px; }
.marque-nom { color: var(--text); font-weight: 500; font-size: 15px; letter-spacing: .24em; }

h1 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.accroche { margin: 0; max-width: 30rem; color: var(--text-dim); font-size: clamp(16px, 2.4vw, 18px); text-wrap: pretty; }

.formulaire { display: flex; gap: 8px; width: 100%; max-width: 30rem; margin-top: 8px; }

input, button { min-height: 48px; border-radius: 8px; font: inherit; }

input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
}
input::placeholder { color: var(--muted); }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--negative); }

button {
  flex: 0 0 auto;
  padding: 0 20px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
button:hover { filter: brightness(1.08); }
button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: progress; }

.anti-robot { max-width: 30rem; width: 100%; }
.anti-robot:empty { display: none; }

.message { margin: 0; max-width: 30rem; color: var(--accent); font-weight: 500; }
.message[data-etat="erreur"] { color: var(--negative); }

.mention { margin: 16px 0 0; max-width: 30rem; color: var(--muted); font-size: 13px; line-height: 1.5; text-wrap: pretty; }

.masque { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }

@media (max-width: 480px) {
  .formulaire { flex-direction: column; }
  input, button { width: 100%; flex: 0 0 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page > * { animation: entree .5s ease-out both; }
  @keyframes entree { from { opacity: 0; transform: translateY(6px); } }
}
