/* ============================================================================
   Phoenix Radar — landing minimal
   Doctrine paper+amber (cohérence rapport PDF L8.x)
   --------------------------------------------------------------------------
   Variables centrales : édite ici, jamais inline. Une seule source de vérité.
   ============================================================================ */

:root {
  /* Palette */
  --paper:        #fafaf7;
  --paper-2:      #f3ede0;
  --ink:          #1e293b;
  --ink-2:        #475569;
  --graphite:     #64748b;
  --muted:        #94a3b8;
  --rule:         #e5dfd2;
  --rule-strong:  #d4c9ba;
  --amber:        #b8651a;
  --amber-soft:   #d97706;
  --amber-bg:     #fef7ec;
  --error:        #b91c1c;
  --error-bg:     #fef2f2;

  /* Typographie */
  --font-serif:   'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Aptos, Calibri, Arial, sans-serif;

  /* Échelle */
  --maxw:         640px;
  --pad-x:        24px;
}

/* Reset minimal --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout ---------------------------------------------------------------- */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad-x) 80px;
}

.page--narrow { max-width: 560px; }

/* Header / wordmark ----------------------------------------------------- */

.brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 36px;
}
.brand a { color: inherit; }

/* Titres ---------------------------------------------------------------- */

h1.headline {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 400;
}

h2.subhead {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 400;
}

p.lede {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 520px;
}

p.body { font-size: 15px; color: var(--ink-2); margin: 0 0 18px; }

/* Méta (ref / siren / date) -------------------------------------------- */

.meta-strip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--graphite);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 10px 14px;
  margin: 0 0 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.meta-strip b { color: var(--ink); font-weight: 600; }

/* CTA bouton (lien) ----------------------------------------------------- */

.cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cta:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--paper);
  text-decoration: none;
}
.cta--amber {
  background: var(--amber);
  border-color: var(--amber);
}
.cta--amber:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* Formulaire ------------------------------------------------------------ */

.form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
}
.field label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  font-size: 10.5px;
  margin-left: 4px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 10px 12px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
  background: #fffdf9;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.5;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Actions */

.actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.actions button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 24px;
  background: var(--amber);
  color: var(--paper);
  border: 1px solid var(--amber);
  cursor: pointer;
  transition: background 0.15s;
}
.actions button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.actions button:disabled { opacity: 0.6; cursor: progress; }

/* Status / error -------------------------------------------------------- */

.status {
  margin-top: 8px;
  font-size: 13.5px;
  font-family: var(--font-mono);
  padding: 10px 14px;
  display: none;
}
.status.is-visible { display: block; }
.status.is-error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid #fecaca;
}

/* Mention légale (sous formulaire) -------------------------------------- */

.legal {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--graphite);
}
.legal a { color: var(--graphite); text-decoration: underline; }

/* Footer ---------------------------------------------------------------- */

.foot {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.foot a { color: var(--graphite); }

/* Page merci ------------------------------------------------------------ */

.merci-card {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.merci-card .check {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 12px;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 520px) {
  .page { padding: 40px 18px 60px; }
  h1.headline { font-size: 34px; }
  h2.subhead { font-size: 22px; }
}
