/* AD VENTUM : la nuit d'hiver des cases, pour tout le site. Thème sombre unique, assumé. */
:root {
  color-scheme: dark;
  --night: #0d1220;
  --night-2: #151c2e;
  --night-3: #1c2540;
  --line: #263048;
  --field: #34405e;
  --ink: #e9e4d6;
  --muted: #9aa0b4;
  --brass: #d6a85a;
  --brass-2: #a57b35;
  --silver: #c3c9d6;
  --bronze: #c08156;
  --ok: #8fd19e;
  --err: #e58a7a;
  --mine: #3a2f1b;
  --f-display: "Bodoni Moda", "Didot", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: radial-gradient(ellipse at 50% -10%, #1d2742 0%, var(--night) 60%) fixed, var(--night);
  color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5;
}
a { color: var(--brass); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---- Barre du haut ---- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: .1em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { font-style: italic; font-weight: 500; letter-spacing: .03em; color: var(--brass); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--night); background: var(--brass); font-weight: 500; }
.who { display: flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--night); }
.who button { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; row-gap: 8px; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .who { margin-left: auto; }
}

/* ---- Mise en page ---- */
.wrap { max-width: 980px; margin: 0 auto; padding: 28px 16px 56px; display: flex; flex-direction: column; gap: 28px; }
.wrap.narrow { max-width: 680px; }
.hero { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); }
h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 9vw, 72px); letter-spacing: .12em; margin: 0; line-height: 1; text-wrap: balance; }
h1 span { font-style: italic; font-weight: 500; letter-spacing: .04em; color: var(--brass); }
.sub { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--muted); }
h2 { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.card { background: color-mix(in srgb, var(--night-2) 85%, transparent); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.note { color: var(--muted); font-size: 13px; margin: 0; }
.prose p, .prose li { color: var(--ink); max-width: 68ch; }
.prose h3 { font-family: var(--f-display); font-size: 22px; margin: 8px 0 0; }

/* ---- Formulaires ---- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); }
.field input { background: var(--night); border: 1px solid var(--field); color: var(--ink); padding: 10px 12px; border-radius: 6px; min-width: 0; }
.field small { color: var(--muted); font-size: 12px; }
.btn { font-weight: 600; background: var(--brass); color: var(--night); border: 1px solid var(--brass); border-radius: 6px; padding: 10px 16px; cursor: pointer; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.msg { min-height: 1.4em; margin: 0; font-size: 14px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--brass); }
