/* Roman Lindale : un seul fichier de style pour tout le site (hors poste d'écoute, qui a le sien). */
:root {
  --ink: #161616;
  --ink-soft: #45433F;
  --muted: #55534F;
  --line: #DAD8D3;
  --paper: #FFFFFF;
  --band: #F2F1EE;
  --night: #161616;
  --night-text: #CFCCC6;
  --red: #9E1B16;
  --red-on-night: #E07A72;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2 { margin: 0; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

/* Boutons */
.btn { display: inline-block; font: 700 15px var(--font); text-decoration: none; border-radius: 999px; padding: 14px 23px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.btn-solid { background: var(--ink); color: #FFFFFF; }
.btn-solid:hover { background: #000000; color: #FFFFFF; }
.btn-red { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.btn-red:hover { background: #7E1511; color: #FFFFFF; }
.btn-light { background: var(--band); border-color: var(--band); color: var(--ink); }
.btn-light:hover { background: #FFFFFF; color: var(--ink); }
.btn[aria-disabled="true"] { cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ouverture */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 48px 88px; }
.hero-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.025em; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 48ch; }
.hero figure { flex: 1 1 360px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hero figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { font-size: 13px; color: #6B6862; }

/* Le livre */
.band { background: var(--band); }
.book { display: flex; flex-wrap: wrap; gap: 56px; padding-block: 88px; }
.book-cover { flex: 0 1 340px; max-width: 340px; width: 100%; align-self: flex-start; box-shadow: 0 24px 48px rgba(22, 22, 22, 0.22); }
.book-text { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.book-text h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.book-text p { font-size: 17px; line-height: 1.65; color: #33312E; max-width: 50ch; }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 480px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Feuilleter */
.inside { display: flex; flex-direction: column; gap: 36px; padding-block: 88px; }
.inside-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.inside-head h2 { font-size: 32px; font-weight: 800; }
.inside-head p { font-size: 15px; color: var(--muted); }
.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pages figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pages img { border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(22, 22, 22, 0.10); }
.pages figcaption { font-size: 14px; color: var(--ink-soft); }
.pages strong { color: var(--ink); }

/* Le poste d'écoute */
.night { background: var(--night); color: #F2F1EE; }
.post { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.post img { flex: 1 1 420px; min-width: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-block: 56px; }
.post-text .eyebrow { color: var(--red-on-night); }
.post-text h2 { font-size: 34px; font-weight: 800; }
.post-text p { line-height: 1.7; color: var(--night-text); max-width: 46ch; }
.post-text .btn { align-self: flex-start; }

/* Registre */
.register { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-block: 80px; }
.register-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.register-text h2 { font-size: 30px; font-weight: 800; }
.register-text p { color: var(--muted); }
.register form { flex: 1 1 400px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.register input { flex: 1 1 220px; min-width: 0; font: 16px var(--font); border: 1px solid var(--ink); border-radius: 999px; padding: 14px 20px; }
.register-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pages de texte (mentions légales, 404) */
.prose { max-width: 68ch; padding-block: 48px 88px; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-size: 40px; font-weight: 800; }
.prose h2 { font-size: 22px; font-weight: 800; margin-top: 16px; }
.prose p, .prose li { color: #33312E; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 640px) {
  .pages { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
  .facts dd { font-size: 20px; }
  .hero { padding-block: 24px 64px; gap: 32px; }
  .book, .inside, .register { padding-block: 64px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s, color 0.15s; }
}
