/* NEURAL.RE · feuille de style du journal
   Couleurs : charte NeuroSound (noir, blanc, rose). Typographie : Newsreader (titres et lecture),
   Familjen Grotesk (interface), IBM Plex Mono (repères). Thèmes : clair (défaut), sombre et sépia au choix du lecteur. */

:root {
  /* Charte NeuroSound : noir, blanc et rose, façon Klarna. */
  --ink: #000000;
  --ink-2: #1f1f1f;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --line: #e1e1e1;
  --line-2: #c9c9c9;
  --paper: #ffffff;
  --paper-2: #fef8f9;
  --paper-3: #ebebeb;
  --accent: #e8737c;
  --accent-ink: #e03e4b;
  --accent-soft: #fbe8e9;
  --accent-2: #f7cacd;
  --night: #000000;
  --night-2: #141414;
  --warn: #9a5600;
  --ok: #0a7a4a;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1240px;
  --read: 690px;
  --radius: 999px;
  --radius-box: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -12px rgba(0, 0, 0, .16);
  --logo-accent: #e8737c;
  --logo-tile: #ffffff;
  --logo-bars: #e8737c;
  --logo-brain: #000000;
  color-scheme: light;
}

/* Fond clair par défaut, quel que soit le réglage de l'ordinateur ; le lecteur peut choisir le thème sombre. */
:root[data-theme="dark"] {
  --ink: #f3f3f3; --ink-2: #d6d6d6; --muted: #a3a3a3; --faint: #7a7a7a; --line: #2a2a2a; --line-2: #3a3a3a;
  --paper: #0d0d0d; --paper-2: #161616; --paper-3: #1f1f1f; --accent: #e8737c; --accent-ink: #f09aa1; --accent-soft: #2a1520;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
:root[data-theme="sepia"] {
  --ink: #2b2118; --ink-2: #44372a; --muted: #75654f; --faint: #9a8a73; --line: #e4d8c3; --line-2: #d6c7ad;
  --paper: #f6efe2; --paper-2: #efe5d3; --paper-3: #e7dbc5; --accent: #c2507a; --accent-ink: #a63c64; --accent-soft: #f3dcd9;
  --logo-tile: #fffaf0; --logo-brain: #2b2118;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
::selection { background: var(--accent-2); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 200; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- Repères typographiques ---------- */
.kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--kc, var(--accent-ink)); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 14px; height: 2px; background: currentColor; display: inline-block; }
.kicker:hover { color: var(--kc, var(--accent-ink)); opacity: .8; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.meta .dot::before { content: "·"; margin-right: 14px; color: var(--faint); }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--ink);
  padding-top: 12px; margin: 0 0 22px;
}
.section-title h2 { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.section-title a { font-size: 13px; color: var(--muted); text-decoration: none; }
.section-title a:hover { color: var(--accent-ink); }

/* ---------- En-tête ---------- */
.topbar { background: var(--accent-2); color: #000; font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { color: #000; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; color: #000; }
.topbar .links { display: flex; gap: 18px; align-items: center; }
.topbar .date { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; font-size: 11px; color: rgba(0,0,0,.7); }
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 18px; }
.brand { display: block; color: var(--ink); text-decoration: none; justify-self: center; }
.brand .logo-full { height: 62px; width: auto; display: block; }
.brand:hover { color: var(--ink); }
.mh-left, .mh-right { display: flex; align-items: center; gap: 10px; }
.mh-right { justify-content: flex-end; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--sans); letter-spacing: .01em;
  padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { background: #2b2b2b; border-color: #2b2b2b; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.accent { background: var(--accent-2); border-color: var(--accent-2); color: #000; }
.btn.accent:hover { background: #f2a9ae; border-color: #f2a9ae; color: #000; }
.btn.sm { padding: 9px 13px; font-size: 13px; }
.btn.lg { padding: 15px 24px; font-size: 15px; }
.nav { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(10px); }
.nav .wrap { display: flex; align-items: center; gap: 4px; min-height: 50px; }
.nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a.nl {
  display: block; padding: 15px 12px 13px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a.nl:hover, .nav a.nl[aria-current="page"] { color: var(--ink); border-bottom-color: var(--kc, var(--accent)); }
.nav .mini-brand { display: none; color: var(--ink); width: 104px; flex: none; }
.nav.stuck .mini-brand { display: block; }
.nav .mini-brand svg { width: 100%; height: auto; display: block; }
.searchbar { display: none; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.searchbar.open { display: block; }
.searchbar form { display: flex; gap: 10px; padding: 16px 0; }
.searchbar input { flex: 1; }

/* ---------- Champs ---------- */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; font: 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: block; }
.field { margin-bottom: 18px; }
.field label { margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: 14.5px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }

/* ---------- Messages ---------- */
.flash { border-radius: var(--radius-box); padding: 13px 16px; margin: 18px 0; font-size: 14.5px; border: 1px solid; }
.flash.ok { background: #e9f7ee; border-color: #b7e2c4; color: #1f5f2f; }
.flash.err { background: #fdeeea; border-color: #f3c3b5; color: #8a3418; }
[data-theme="dark"] .flash.ok { background: #0f2a1c; border-color: #1f5236; color: #a6e5bb; }
[data-theme="dark"] .flash.err { background: #2e1610; border-color: #5c2a1d; color: #f5b8a4; }

/* ---------- Cartes d'articles ---------- */
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--paper-3); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb img { transform: scale(1.035); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.005em; margin: 2px 0 0; font-variation-settings: "opsz" 36; }
.card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card h3 a:hover { color: var(--ink); background-size: 100% 1px; }
.card p.dek { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.card.small h3 { font-size: 18.5px; }
.card.row { flex-direction: row; gap: 16px; align-items: flex-start; }
.card.row .thumb { width: 120px; flex: none; aspect-ratio: 1; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 26px; }

/* ---------- Accueil ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.lead .thumb { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--paper-3); display: block; }
.lead .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.018em; font-weight: 600; margin: 14px 0 16px; font-variation-settings: "opsz" 72; }
.lead h2 a { text-decoration: none; }
.lead h2 a:hover { color: var(--ink); }
.lead p.dek { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 20px; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 46px 0 20px; }
.home-cols aside .sticky { position: sticky; top: 76px; }
.popular ol { list-style: none; counter-reset: p; margin: 0; padding: 0; }
.popular li { counter-increment: p; display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.popular li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent-ink); font-weight: 600; padding-top: 3px; }
.popular a { font-family: var(--serif); font-size: 17.5px; line-height: 1.3; font-weight: 600; text-decoration: none; }
.rubric-block { margin: 54px 0 0; }
.rubric-block .section-title { border-top-color: var(--kc, var(--ink)); }
.rubric-block .section-title h2 { color: var(--ink); }
.rubric-block .layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.rubric-block .layout .stack { display: flex; flex-direction: column; gap: 22px; }
.empty-state { text-align: center; padding: 90px 20px; border: 1px dashed var(--line-2); border-radius: 10px; margin: 40px 0; }
.empty-state h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 10px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }

/* ---------- Bandeau lettre ---------- */
.letter-band { background: var(--accent-2); color: #000; margin: 70px 0 0; position: relative; overflow: hidden; }
.letter-band::before {
  content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background: radial-gradient(600px 260px at 85% 20%, rgba(255, 255, 255, .55), transparent 70%), radial-gradient(500px 300px at 10% 110%, rgba(232, 115, 124, .35), transparent 70%);
}
.letter-band .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.letter-band h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin: 12px 0 14px; font-weight: 500; letter-spacing: -.01em; }
.letter-band p { color: #1f1f1f; margin: 0; font-size: 16.5px; }
.letter-band .kicker { color: #000; }
.wave { display: block; width: 100%; height: 46px; color: rgba(0, 0, 0, .45); margin-top: 24px; }
.subform { display: grid; gap: 12px; }
.subform .row { display: flex; gap: 10px; }
.subform input[type=email] { background: #fff; border-color: #000; color: #000; padding: 15px 18px; border-radius: 999px; }
.subform input[type=email]::placeholder { color: #8a8a8a; }
.subform .opts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.subform .check { color: #000; font-size: 14px; }
.subform .btn { background: #000; border-color: #000; color: #fff; }
.subform .btn:hover { background: #2b2b2b; border-color: #2b2b2b; color: #fff; }
.subform .legal { font-size: 12px; color: #3d3d3d; }
.subform .msg { font-size: 14.5px; color: #000; font-weight: 600; min-height: 1em; }
.light-sub .subform input[type=email] { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.light-sub .subform .check { color: var(--ink-2); }
.light-sub .subform .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.light-sub .subform .msg { color: var(--accent-ink); }
.light-sub .subform .legal { color: var(--muted); }

/* ---------- Pages de liste ---------- */
.page-head { padding: 46px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; margin: 10px 0 12px; font-variation-settings: "opsz" 72; }
.page-head p { font-family: var(--serif); font-size: 19px; color: var(--ink-2); max-width: 720px; margin: 0; }
.page-head .count { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 16px; letter-spacing: .06em; text-transform: uppercase; }
.author-head { display: flex; gap: 26px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent-ink); display: inline-grid; place-items: center; font: 700 15px var(--sans); flex: none; overflow: hidden; }
.avatar.lg { width: 104px; height: 104px; font-size: 32px; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 56px 0 10px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 14px; padding: 0 12px; }
.pager span.cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.big-search { display: flex; gap: 10px; max-width: 640px; margin-top: 18px; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 120; transition: width .08s linear; }
.art-head { max-width: 900px; margin: 0 auto; padding: 50px 24px 26px; text-align: center; }
.art-head h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 62px); line-height: 1.04; letter-spacing: -.022em; font-weight: 600; margin: 18px 0 20px; font-variation-settings: "opsz" 72; text-wrap: balance; }
.art-head .dek { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink-2); margin: 0 auto 26px; max-width: 760px; font-weight: 400; text-wrap: pretty; }
.byline { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.byline .who { text-align: left; font-size: 14px; line-height: 1.35; }
.byline .who a { font-weight: 700; text-decoration: none; }
.byline .who span { color: var(--muted); display: block; font-size: 13px; }
.art-tools { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font: 600 12.5px var(--sans); cursor: pointer; text-decoration: none; }
.tool:hover { border-color: var(--ink); color: var(--ink); }
.tool svg { width: 15px; height: 15px; }
.art-cover { max-width: 1180px; margin: 10px auto 0; padding: 0 24px; }
.art-cover img { width: 100%; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-3); }
.art-cover figcaption, .prose figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.art-cover figcaption .credit { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-left: 6px; }
.art-body { display: grid; grid-template-columns: 1fr minmax(0, var(--read)) 1fr; gap: 0 48px; padding: 46px 24px 20px; max-width: 1300px; margin: 0 auto; }
.art-body > .main { grid-column: 2; min-width: 0; }
.art-body > .side { grid-column: 3; min-width: 0; }
.toc { position: sticky; top: 84px; max-width: 250px; font-size: 13.5px; }
.toc h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--accent); }
.essentials { border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--paper-2); padding: 20px 24px 8px; border-radius: 0 0 var(--radius-box) var(--radius-box); margin: 0 0 38px; }
.essentials h2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; color: var(--accent-ink); }
.essentials ul { margin: 0; padding: 0; list-style: none; }
.essentials li { position: relative; padding: 0 0 12px 24px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.essentials li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

.prose { font-family: var(--serif); font-size: var(--prose-size, 20px); line-height: 1.68; color: var(--ink); font-variation-settings: "opsz" 18; hyphens: auto; -webkit-hyphens: auto; }
.prose > * { margin: 0 0 1.05em; }
.prose > p:first-of-type::first-letter { float: left; font-size: 4.1em; line-height: .82; font-weight: 600; margin: .08em .1em 0 0; color: var(--ink); font-variation-settings: "opsz" 72; }
.prose h2 { font-family: var(--serif); font-size: 1.5em; line-height: 1.18; font-weight: 600; letter-spacing: -.012em; margin: 1.9em 0 .65em; font-variation-settings: "opsz" 48; }
.prose h3 { font-family: var(--sans); font-size: .85em; line-height: 1.3; font-weight: 700; letter-spacing: .005em; margin: 1.7em 0 .5em; }
.prose h4 { font-family: var(--mono); font-size: .62em; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); margin: 1.6em 0 .5em; }
.prose a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 1.1em; border-left: 3px solid var(--accent); font-size: 1.12em; line-height: 1.45; font-style: italic; color: var(--ink-2); }
.prose blockquote p { margin: 0 0 .5em; }
.prose blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .62em; color: var(--muted); letter-spacing: .02em; margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent-ink); }
.prose figure { margin: 2em 0; }
.prose figure.wide { margin-left: -60px; margin-right: -60px; }
.prose figure img { border-radius: 4px; width: 100%; }
.prose img { border-radius: 4px; margin: 1.5em 0; }
.prose figure img { margin: 0; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; }
.prose hr::after { content: "∿  ∿  ∿"; color: var(--accent); letter-spacing: .4em; font-size: .9em; }
.prose aside, .prose .note { font-family: var(--sans); font-size: .8em; line-height: 1.6; background: var(--accent-soft); border-radius: var(--radius-box); padding: 18px 22px; margin: 2em 0; color: var(--ink-2); }
.prose aside h3, .prose aside h4 { margin-top: 0; font-family: var(--mono); font-size: .78em; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); }
.prose aside > :last-child { margin-bottom: 0; }
.prose aside.warn { background: #fdf1e8; }
.prose .video, .prose figure.video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: #000; border-radius: 4px; overflow: hidden; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose video, .prose audio { width: 100%; margin: 1.5em 0; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .76em; margin: 2em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.prose code { font-family: var(--mono); font-size: .8em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.prose sup { line-height: 0; }

.art-foot { margin-top: 46px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.tags a { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); }
.tags a:hover { border-color: var(--accent); color: var(--accent-ink); }
.refs { border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 34px; }
.refs h2, .source h2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.refs ol { margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.refs li { margin-bottom: 8px; padding-left: 4px; word-break: break-word; }
.refs li::marker { font-family: var(--mono); color: var(--accent-ink); font-size: 12px; }
.source { background: var(--paper-2); border-radius: var(--radius-box); padding: 16px 20px; margin-bottom: 34px; font-size: 14px; color: var(--ink-2); }
.source h2 { margin-bottom: 6px; }
.author-box { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.author-box .avatar { width: 72px; height: 72px; font-size: 22px; }
.author-box h3 { margin: 2px 0 2px; font-size: 18px; }
.author-box h3 a { text-decoration: none; }
.author-box .role { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.author-box p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.inline-sub { border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; margin: 10px 0 50px; background: var(--paper); box-shadow: var(--shadow); }
.inline-sub h3 { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 8px 0 8px; font-weight: 600; }
.inline-sub p { color: var(--ink-2); margin: 0 0 16px; font-size: 15px; }
.related { background: var(--paper-2); border-top: 1px solid var(--line); padding: 50px 0 60px; margin-top: 30px; }
.preview-bar { background: #fff3cd; color: #6b4e00; text-align: center; font-size: 14px; padding: 10px 16px; border-bottom: 1px solid #f0dc96; }
.preview-bar a { font-weight: 700; }

/* ---------- Mode lecture ---------- */
.reader-panel { display: none; position: fixed; right: 20px; bottom: 20px; z-index: 130; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; gap: 6px; align-items: center; }
body.reader .reader-panel { display: flex; }
.reader-panel button { height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 700 13px var(--sans); cursor: pointer; }
.reader-panel button:hover, .reader-panel button.on { border-color: var(--accent); color: var(--accent-ink); }
.reader-panel .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.reader-panel .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-block; }
body.reader .topbar, body.reader .masthead, body.reader .nav, body.reader .searchbar, body.reader .site-foot, body.reader .letter-band,
body.reader .related, body.reader .art-body > .side, body.reader .inline-sub, body.reader .art-tools .share { display: none !important; }
body.reader .art-body { grid-template-columns: 1fr minmax(0, 720px) 1fr; }
body.reader .art-head { padding-top: 70px; }
body.reader .prose { --prose-size: var(--reader-size, 21px); }

/* ---------- Pages simples, formulaires publics ---------- */
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 30px; background: var(--paper); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.charter { background: var(--paper-2); border-radius: var(--radius-box); padding: 18px 22px; font-size: 14.5px; color: var(--ink-2); margin: 0 0 22px; }
.charter ul { margin: 8px 0 0; padding-left: 20px; }
.charter li { margin-bottom: 5px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 36px; }
.perk { border-top: 2px solid var(--accent); padding-top: 14px; }
.perk h3 { font-size: 15px; margin: 0 0 6px; }
.perk p { margin: 0; color: var(--muted); font-size: 14px; }
.message-page { text-align: center; padding: 90px 24px 100px; max-width: 640px; margin: 0 auto; }
.message-page h1 { font-family: var(--serif); font-size: 44px; line-height: 1.08; margin: 14px 0 14px; font-weight: 600; }
.message-page p { font-size: 17px; color: var(--ink-2); }
.message-page .actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.author-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s, transform .15s; }
.author-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.author-card .avatar { width: 58px; height: 58px; font-size: 18px; }
.author-card h3 { margin: 0 0 3px; font-size: 16.5px; }
.author-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--night); color: #cfcfcf; padding: 60px 0 30px; margin-top: 0; font-size: 14px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-foot .brand-f { color: #fff; display: block; width: 240px; max-width: 100%; margin-bottom: 18px; --logo-accent: #e8737c; }
.site-foot .brand-f svg { width: 100%; height: auto; }
.site-foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 4px 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { color: #cfcfcf; text-decoration: none; }
.site-foot a:hover { color: var(--accent-2); }
.site-foot .bottom { border-top: 1px solid #2a2a2a; margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #9a9a9a; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border: 1px solid #3a3a3a; border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { border-color: var(--accent-2); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1180px) {
  .art-body { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--read) + 48px); }
  .art-body > .main { grid-column: 1; }
  .art-body > .side { display: none; }
  .prose figure.wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cols { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .home-cols aside .sticky { position: static; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .lead { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 24px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .rubric-block .layout { grid-template-columns: minmax(0, 1fr); }
  .letter-band .wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .masthead .wrap { grid-template-columns: auto 1fr auto; padding-top: 14px; padding-bottom: 12px; }
  .brand .logo-full { height: 46px; }
  .mh-left .btn, .mh-right .btn { display: none; }
  .perks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .topbar .date { display: none; }
  .topbar .wrap { justify-content: center; }
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .brand .logo-full { height: 40px; }
  .card.row .thumb { width: 96px; }
  .card h3 { font-size: 20px; }
  .art-head { padding: 30px 16px 20px; }
  .art-cover { padding: 0; }
  .art-cover img { border-radius: 0; }
  .art-cover figcaption { padding: 0 16px; }
  .art-body { padding: 32px 16px 10px; }
  .prose { --prose-size: 18.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .subform .row { flex-direction: column; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
  .author-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .reader-panel { left: 12px; right: 12px; bottom: 12px; justify-content: center; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .masthead, .nav, .site-foot, .letter-band, .related, .art-tools, .side, .inline-sub, .progress, .reader-panel { display: none !important; }
  .prose { font-size: 12pt; }
  .art-body { display: block; padding: 0; }
}
