/*
 * Geek and Chill — feuille de style unique du site.
 * Mêmes couleurs, mêmes composants (cartes, puces, badges, fenêtre de fiche) que la
 * Bibliothèque du Hub. Le site s'ouvre en thème clair (data-theme="light" sur <html>) ;
 * le thème sombre, celui du Hub, reste au choix du lecteur.
 */

/* ---------- Couleurs et mesures ---------- */
:root {
  --bg: #0d0f14;
  --bg-2: #12151c;
  --panel: #171b24;
  --panel-2: #1d2230;
  --line: #262c3a;
  --line-2: #323a4c;
  --text: #e8ebf2;
  --text-2: #a9b1c3;
  --muted: #7d869b;
  --accent: #8c9aff;
  --accent-2: #5b6cf0;
  --ok: #4ad295;
  --warn: #f2b84b;
  --err: #ff6b6b;
  --note: #f08a24;
  --m-pc: #a7b3ff;
  --m-ps: #4f8cff;
  --m-xb: #6fd03a;
  --m-nin: #ff5a5f;
  --m-vr: #4aa3ff;
  --m-other: #a9b1c3;
  --chip-bg: rgba(255, 255, 255, .07);
  --chip-line: rgba(255, 255, 255, .1);
  --badge-bg: rgba(0, 0, 0, .35);
  --shadow: 0 4px 14px rgba(0, 0, 0, .35);
  --radius: 12px;
  /* Pleine largeur, comme le Hub : seule la marge latérale grandit avec l'écran. */
  --wrap: none;
  --pad: clamp(16px, 2.4vw, 44px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4f8;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef0f6;
  --line: #e1e4ec;
  --line-2: #cfd4e0;
  --text: #171a22;
  --text-2: #4a5263;
  --muted: #6b7386;
  --accent: #4f5ce6;
  --accent-2: #4752d6;
  --ok: #138a55;
  --warn: #a86a12;
  --err: #d64545;
  --note: #c9650a;
  --m-pc: #4752d6;
  --m-ps: #1f5fd6;
  --m-xb: #2f8a14;
  --m-nin: #d62f35;
  --m-vr: #0064e0;
  --m-other: #4a5263;
  --chip-bg: rgba(20, 30, 60, .05);
  --chip-line: rgba(20, 30, 60, .12);
  --badge-bg: rgba(255, 255, 255, .92);
  --shadow: 0 3px 10px rgba(20, 30, 60, .14);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.ok { color: var(--ok); stroke-width: 2.4; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--accent-2); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 10px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- En-tête ---------- */
.top { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; gap: 18px; }
.brand { flex: none; }
.brand img { height: 46px; width: auto; }
.top-search { flex: 1; max-width: 560px; margin-left: auto; position: relative; height: 42px; }
.top-actions { display: flex; gap: 6px; }
.top .top-burger { display: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 2px; height: 36px; }
.lang-switch > a, .lang-switch > span { display: grid; place-items: center; width: 36px; height: 100%; border-radius: 7px; }
.lang-switch .flag-icon { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang-switch > a .flag-icon { opacity: .5; filter: saturate(.6); transition: opacity .15s, filter .15s; }
.lang-switch > a:hover { background: var(--panel); }
.lang-switch > a:hover .flag-icon { opacity: 1; filter: none; }
.lang-switch > .on { background: var(--panel-2); }
.lang-notice { margin: 14px 28px 0; padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--text); font-size: 14px; }
.lang-notice a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.article .lang-notice, .page .lang-notice { margin: 0 auto 18px; max-width: 860px; }
.card-lang { position: absolute; top: 7px; right: 7px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; display: grid; place-items: center; background: rgba(10, 12, 16, .78); color: #fff; backdrop-filter: blur(6px); }
:root:not([data-theme="light"]) .i-moon, :root[data-theme="light"] .i-sun { display: none; }
.top-nav { border-top: 1px solid var(--line); }
.top-nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 calc(var(--pad) - 10px); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.top-nav-in::-webkit-scrollbar { display: none; }
.tnav { display: inline-flex; align-items: center; gap: 7px; padding: 10px; color: var(--text-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; border-bottom: 2px solid transparent; }
.tnav .nav-dot { background: var(--c); margin: 0; }
.tnav:hover { color: var(--text); }
.tnav.active { color: var(--text); border-bottom-color: var(--c, var(--accent)); }

/* ---------- Recherche, sélecteurs, boutons, puces ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 8px 0 14px; height: 46px; color: var(--muted);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; color: var(--text); height: 100%; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  max-height: 420px; overflow-y: auto; padding: 6px;
}
.suggest-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: 8px; padding: 7px 8px; color: var(--text); }
.suggest-item:hover, .suggest-item.on { background: var(--panel-2); }
.suggest-thumb { width: 34px; height: 51px; border-radius: 5px; overflow: hidden; background: var(--panel-2); flex: none; }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.suggest-text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-text em { font-style: normal; font-size: 12px; color: var(--muted); }
.suggest-empty { padding: 10px; color: var(--muted); font-size: 13px; }

.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.select {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 0 4px 0 10px; height: 34px; color: var(--muted); max-width: 100%;
}
.select.on { border-color: var(--accent); color: var(--accent); }
.select select { background: none; border: 0; outline: none; color: var(--text); padding: 0 6px 0 0; height: 100%; cursor: pointer; max-width: 210px; }
.select select option { background: var(--panel); color: var(--text); }
.sel-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.pfilter { display: flex; gap: 4px; padding: 0 4px; }
.ptoggle { background: none; border: 0; padding: 2px; border-radius: 7px; }
.ptoggle.on { box-shadow: 0 0 0 2px var(--accent); }
.size { width: 90px; accent-color: var(--accent); }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { background: none; border: 0; border-radius: 7px; padding: 5px 8px; color: var(--muted); display: grid; place-items: center; }
.seg button.on { background: var(--panel-2); color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover:not(:disabled) { background: var(--line); border-color: var(--muted); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--accent-2); border-color: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #6a7af5; border-color: #9aa6ff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn-icon { width: 36px; padding: 0; }
.btn-flat { background: none; border: 0; width: 30px; height: 30px; color: var(--muted); }
.btn-small { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-big { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.link { background: none; border: 0; color: var(--accent); padding: 6px 0; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.link:hover { text-decoration: underline; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; padding: 2px 10px; border-radius: 99px;
  background: var(--chip-bg); border: 1px solid var(--chip-line);
  font-size: 12.5px; color: var(--text-2); white-space: nowrap;
}
a.chip:hover { border-color: var(--muted); color: var(--text); }
.chip strong { color: var(--text); }
.chip-machine { color: var(--text); }
.chip-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.chip-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.chip-genre { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.chip-genre2 { color: var(--text); }
.chip-on { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip-small { min-height: 23px; font-size: 12px; padding: 1px 8px; }
.chip .nav-dot { margin: 0; }

.pbadge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 18px; padding: 0 6px; border-radius: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .6px; white-space: nowrap;
  border: 1px solid currentColor; background: var(--badge-bg); color: var(--m-other);
}
.pbadge.large { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.pbadge.dim { opacity: .35; }
.pbadge-m-pc { color: var(--m-pc); } .pbadge-m-ps { color: var(--m-ps); } .pbadge-m-xb { color: var(--m-xb); }
.pbadge-m-nin { color: var(--m-nin); } .pbadge-m-vr { color: var(--m-vr); } .pbadge-m-other { color: var(--m-other); }
.mdot-pc { background: var(--m-pc); } .mdot-ps { background: var(--m-ps); } .mdot-xb { background: var(--m-xb); }
.mdot-nin { background: var(--m-nin); } .mdot-vr { background: var(--m-vr); } .mdot-other { background: var(--m-other); }

.nav-dot { width: 9px; height: 9px; border-radius: 50%; margin: 0 4px; flex: none; display: inline-block; }
.title-dot { width: 12px; height: 12px; margin: 0 10px 2px 0; vertical-align: middle; }
.cat-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cat-chip .nav-dot { margin-left: 0; }
.kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: color-mix(in srgb, var(--k, var(--accent)) 72%, var(--text)); }

/* ---------- Mise en page : sections, fil d'Ariane, pagination ---------- */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 19px; margin: 0; }
.page { margin: 22px auto 56px; padding: 0 var(--pad); }
.page-wide { max-width: var(--wrap); }
.page-title { margin: 0; font-size: 24px; }
.page-title small { font-size: 15px; font-weight: 500; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }
.pager-pages { display: flex; gap: 4px; align-items: center; }
.pager-page { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.pager-page:hover { border-color: var(--muted); color: var(--text); }
.pager-page.on { background: var(--panel-2); color: var(--text); border-color: var(--accent); }
.pager-gap { color: var(--muted); }
.empty { max-width: 560px; margin: 8vh auto; text-align: center; color: var(--text-2); }
.empty h1, .empty h2 { color: var(--text); font-size: 22px; margin: 14px 0 8px; }
.empty p { margin: 0 0 20px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.empty .search { max-width: 460px; margin: 0 auto; }

/* ---------- Bibliothèque ---------- */
.lib { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0 26px; padding: 0 var(--pad) 56px; }
.lib-side { padding: 18px 0; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; scrollbar-width: thin; }
.lib-main { min-width: 0; padding-top: 18px; }
.lib-head { margin-bottom: 4px; }
.lib-intro { margin: 6px 0 0; color: var(--text-2); max-width: 80ch; }
.lib-head .filters { margin-top: 12px; }
.nav {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 8px 10px; margin: 1px 0; background: none; border: 0; border-radius: 9px;
  color: var(--text-2); text-align: left; font-size: 14px;
}
.nav span:not(.nav-dot) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav:hover { background: var(--panel); color: var(--text); }
.nav.active { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav.active em { color: var(--text-2); }
.nav-small { font-size: 13px; padding: 6px 10px; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 16px 10px 6px; }
.nav-sep:first-child { padding-top: 2px; }
.nav-children { margin: 1px 0 4px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
html:not(.js) .nav-children { display: none; }

.toolbar {
  position: sticky; top: 0; z-index: 5; margin: 10px 0 0; padding: 12px 0;
  display: flex; flex-direction: column; gap: 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.toolbar .filters:empty { min-height: 34px; }
html:not(.js) .toolbar { display: none; }
.status { padding: 9px 0 14px; font-size: 12.5px; color: var(--muted); }
[data-more] { text-align: center; margin-top: 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card, 170px), 1fr)); gap: 18px 16px; }
.card { display: block; text-align: left; content-visibility: auto; contain-intrinsic-size: auto calc(var(--card, 170px) * 1.5 + 54px); }
.card-art {
  display: block; position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover .card-art, .card:focus-visible .card-art { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .55), 0 0 0 2px var(--accent); }
.card:focus-visible { outline: none; }
.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-fallback {
  display: flex; align-items: flex-end; padding: 12px;
  background: linear-gradient(160deg, hsl(var(--h1) 45% 32%), hsl(var(--h2) 50% 16%));
  font-weight: 700; font-size: 15px; line-height: 1.2; color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5); word-break: break-word;
}
.card-flags { position: absolute; top: 7px; left: 7px; display: flex; gap: 4px; }
.flag { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(10, 12, 16, .78); backdrop-filter: blur(6px); color: #fff; }
.flag-pad.partial { color: #a9b1c3; }
.card-note {
  position: absolute; left: 7px; bottom: 7px; height: 24px; min-width: 30px; padding: 0 7px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; background: #f08a24; color: #1b0d00; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.card-note small { font-size: 10px; font-weight: 700; opacity: .72; margin-left: 1px; }
.side-card .rv-note::after, .suggest-item .rv-note::after { content: "/10"; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.card-body { display: block; padding: 8px 2px 0; }
.card-title { display: block; margin: 0; font-weight: 600; font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-plats { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; min-height: 18px; }
.card-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.list { display: flex; flex-direction: column; }
.list-head, .row { display: grid; grid-template-columns: 46px minmax(200px, 1fr) 110px 62px 150px 110px; align-items: center; gap: 12px; }
.list-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 0 10px 8px; }
.row { padding: 6px 10px; border-radius: 9px; color: var(--text-2); content-visibility: auto; contain-intrinsic-size: auto 76px; }
.row:hover { background: var(--panel); }
.rv-cover { width: 46px; height: 69px; border-radius: 5px; overflow: hidden; background: var(--panel-2); }
.rv-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-title { display: flex; flex-direction: column; min-width: 0; }
.row-title strong { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-note { font-weight: 800; color: var(--note); font-variant-numeric: tabular-nums; }
.row-small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Rails, cartes larges, listes d'actus ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rail .card { scroll-snap-align: start; content-visibility: visible; }
.rail-small { grid-auto-columns: 112px; }
.wide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px 18px; }
.wide-grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.wide { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.wide:hover { border-color: var(--line-2); transform: translateY(-2px); }
.wide-art { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.wide-img { width: 100%; height: 100%; object-fit: cover; }
.wide-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wide-title { margin: 0; font-size: 16.5px; line-height: 1.3; }
.wide-title a:hover { color: var(--accent); }
.wide-excerpt { margin: 0; color: var(--text-2); font-size: 13.5px; }
.wide-meta { margin: auto 0 0; padding-top: 2px; color: var(--muted); font-size: 12.5px; }
.news-list { display: flex; flex-direction: column; }
.news-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.news-row:first-child { border-top: 0; padding-top: 2px; }
.news-row time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-title { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.news-title a:hover { color: var(--accent); }
.side-cards { display: flex; flex-direction: column; gap: 8px; }
.side-card { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px 7px 7px; }
.side-card:hover { border-color: var(--accent); }
.side-card-art { width: 44px; height: 66px; border-radius: 5px; overflow: hidden; background: var(--panel-2); flex: none; }
.side-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.side-card-body strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-card-date { font-size: 12px; color: var(--muted); }

/* ---------- Accueil ---------- */
.home { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--pad) 56px; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.home-head h1 { font-size: 21px; margin: 0; }
.home-head h1 span { color: var(--text-2); font-weight: 500; font-size: 15px; margin-left: 8px; }
.home-stats { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 440px); gap: 26px 32px; align-items: start; }
.home-side .section-head:not(:first-child) { margin-top: 22px; }
.lead { position: relative; border-radius: 16px; overflow: hidden; background: #0a0c10; border: 1px solid var(--line); aspect-ratio: 16 / 9; min-height: 360px; max-height: 560px; width: 100%; display: flex; align-items: flex-end; color: #fff; }
.lead-art { position: absolute; inset: 0; }
.lead-img { width: 100%; height: 100%; object-fit: cover; }
.lead::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 12, 16, 0) 30%, rgba(10, 12, 16, .7) 66%, rgba(10, 12, 16, .95) 100%); }
.lead-body { position: relative; z-index: 1; display: flex; gap: 18px; align-items: flex-end; padding: 24px; width: 100%; }
.lead-cover { width: 110px; flex: none; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.lead-text { flex: 1; min-width: 0; }
.lead-text .kicker { color: color-mix(in srgb, var(--k, var(--accent)) 60%, #fff); }
.lead-text h2 { font-size: 30px; margin: 4px 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.lead-text h2 a:hover { text-decoration: underline; }
.lead-sub { margin: 0 0 6px; font-size: 16.5px; color: rgba(255, 255, 255, .88); }
.lead .wide-meta { color: rgba(255, 255, 255, .66); }
.lead .rv-bignote { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.lead .rv-bignote small { color: rgba(255, 255, 255, .72); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, 240px); gap: 16px; align-items: start; }
.about-text { color: var(--text-2); max-width: 75ch; }
.about-text p { margin: 0 0 10px; }
.about-word { font-size: 15px; color: var(--text); border-left: 3px solid var(--accent); padding-left: 14px; margin-bottom: 12px; }
.about-word p { margin: 0 0 6px; text-align: left !important; }
.team-card { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.team-card:hover { border-color: var(--accent); }
.team-card span:last-child { display: flex; flex-direction: column; min-width: 0; }
.team-card em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.tile .icon { color: color-mix(in srgb, var(--c) 72%, var(--text)); }
.tile:hover { border-color: var(--c); }
.tile em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.avatar { width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--accent-2), #c06cff); color: #fff; font-weight: 700; font-size: calc(var(--s, 44px) * .36); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fiche : Présentation / Critique ---------- */
.sheet-page { margin: 18px auto 56px; padding: 0 var(--pad); }
.sheet { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: clip; }
.hero { position: relative; background: #0a0c10; min-height: 320px; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 21, 28, .15) 0%, rgba(18, 21, 28, .7) 55%, var(--bg-2) 100%); }
.hero-compact { min-height: 0; background: var(--bg-2); }
.hero-compact .hero-content { padding-top: 28px; }
.hero-compact .hero-shade { display: none; }
:root[data-theme="light"] .hero { background-color: #dfe3ec; }
:root[data-theme="light"] .hero-shade { background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .8) 58%, var(--bg-2) 100%); }
.hero-content { position: relative; display: flex; gap: 24px; align-items: flex-end; padding: 96px 28px 20px; width: 100%; }
.hero-cover { width: 150px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; flex: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); background: var(--panel); }
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 { margin: 0 0 4px; font-size: 32px; line-height: 1.15; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
:root[data-theme="light"] .hero-text h1 { text-shadow: 0 1px 10px rgba(255, 255, 255, .8); }
.hero-sub { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.hero-meta { color: var(--text-2); margin: 0 0 12px; }
.hero-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-bignote { font-size: 56px; font-weight: 800; line-height: 1; margin: 0; padding: 0 6px 6px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); white-space: nowrap; }
.rv-bignote small { font-size: 14px; color: var(--text-2); font-weight: 600; text-shadow: none; }
:root[data-theme="light"] .sheet .rv-bignote { color: var(--text); text-shadow: none; }
.sheet-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 20px; border-block: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 4; }
.sheet-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 8px; color: var(--text-2); font-weight: 600; }
.sheet-tabs a:hover { color: var(--text); }
.sheet-tabs a.on { background: var(--panel-2); color: var(--text); }
.sheet-tabs em { font-style: normal; color: var(--note); font-weight: 800; }
.sheet-tabs .sheet-full { margin-left: auto; font-weight: 500; font-size: 13px; }
.sheet-page .sheet-full { display: none; }
.sheet-panel { padding: 8px 28px 28px; }
.sheet-panel + .sheet-panel { border-top: 1px solid var(--line); padding-top: 20px; }
.sheet.is-paged .sheet-panel:not(.on) { display: none; }
.sheet.is-paged .sheet-panel { border-top: 0; }
.sheet-panel h2, .article-side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 24px 0 10px; font-weight: 700; }
.sheet > .section { padding: 0 28px 24px; margin-top: 4px; border-top: 1px solid var(--line); }
.sheet > .section .section-head { margin-top: 20px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 420px); gap: 30px 40px; }
.col-main > :first-child, .col-side > :first-child { margin-top: 18px; }

.rv-card { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--note); border-radius: 11px; padding: 14px 16px; margin-top: 18px; }
.rv-card:hover { border-color: var(--line-2); border-left-color: var(--note); background: var(--panel-2); }
.rv-card-note { font-size: 30px; font-weight: 800; line-height: 1; min-width: 68px; text-align: center; color: var(--note); }
.rv-card-note small { font-size: 13px; color: var(--muted); font-weight: 600; }
.rv-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rv-card-head strong { font-size: 16px; }
.rv-card-excerpt { color: var(--text-2); font-size: 14px; }
.entry-sub { font-size: 12.5px; color: var(--muted); }

.fiche { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fiche th, .fiche td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.fiche th { color: var(--muted); width: 42%; font-weight: 400; }
.fiche a { color: var(--accent); }
.infos { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.info-row { display: flex; gap: 12px; align-items: center; }
.info-block h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.info-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pegi { width: 46px; height: 54px; border-radius: 6px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; line-height: 1; color: #fff; }
.pegi small { font-size: 9px; letter-spacing: .5px; font-weight: 700; margin-bottom: 2px; }
.pegi-3, .pegi-7 { background: #5aa832; } .pegi-12, .pegi-16 { background: #f0a400; } .pegi-18 { background: #d6202f; }
.langs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.langs th { font-weight: 600; font-size: 11.5px; color: var(--muted); text-align: center; padding: 4px; }
.langs td, .langs tbody th { padding: 6px 4px; border-top: 1px solid var(--line); text-align: center; color: var(--text-2); }
.langs tbody th { text-align: left; color: var(--text); font-size: 13.5px; font-weight: 400; }
.langs tr.hl > * { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.langs:not(.all) tr.more { display: none; }
.warn-line { display: flex; gap: 6px; align-items: center; color: var(--warn); font-size: 13.5px; margin: 8px 0 0; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 10px; }
.yt { position: relative; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #000; display: block; width: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .15s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 12, 16, .7); color: #fff; backdrop-filter: blur(4px); }
.yt-play .icon { fill: currentColor; margin-left: 4px; }
.yt iframe, .media-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-video { position: static; border-radius: 10px; aspect-ratio: 16 / 9; background: #000; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shot { display: block; border-radius: 7px; overflow: hidden; background: var(--panel); cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .2s; }
.shot:hover img { transform: scale(1.04); }
.media-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.rv-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.rv-points h3, .rv-points h4 { margin: 0 0 6px; font-size: 13.5px; text-transform: none; letter-spacing: 0; display: flex; align-items: center; gap: 6px; }
.rv-points .ok { color: var(--ok); } .rv-points .ko { color: var(--err); }
.rv-points ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.rv-points li { margin-bottom: 5px; }

/* Lecture : critique, dossier, actu, page */
.reading { max-width: 760px; margin: 0 auto; }
.reading-meta { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; margin: 18px 0; }
.reading-meta a { color: var(--text); font-weight: 600; }
.reading-meta a:hover { color: var(--accent); }
.md { font-size: 17px; line-height: 1.75; color: color-mix(in srgb, var(--text) 90%, var(--bg)); overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0 0 1.15em; }
/* Textes justifiés ; la césure automatique (langue fr) évite les grands blancs entre les mots. */
.md p, .md li, .rv-conclusion p, .author-bio, .article-chapo { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.md p[style*="center"] { text-align: center; }
/* Les tests occupent toute la largeur de la fiche. */
.sheet .reading { max-width: none; }
.md h2 { color: var(--text); margin: 1.7em 0 .5em; font-size: 23px; text-transform: none; letter-spacing: 0; font-weight: 700; }
.md h3 { color: var(--text); margin: 1.4em 0 .4em; font-size: 19px; }
.md h2 em, .md h3 em { font-style: normal; }
.md a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.md a:hover { text-decoration-thickness: 2px; }
.md img { border-radius: 10px; margin: 1.2em auto; height: auto; }
.md figure { margin: 1.4em 0; max-width: 100%; }
.md figcaption, .md .wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }
.md .wp-caption { max-width: 100%; }
.md blockquote { margin: 1.3em 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--text); font-size: 18px; }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.md li { margin-bottom: .35em; }
.md iframe, .md video, .md embed { max-width: 100%; border-radius: 10px; }
.md iframe[src*="youtube"], .md iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.md table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 12px 16px; margin: 0 0 22px; font-size: 14.5px; }
.toc summary { cursor: pointer; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.toc ol { margin: 10px 0 2px; padding-left: 20px; color: var(--text-2); }
.toc li { margin-bottom: 4px; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.rv-conclusion { margin-top: 30px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; border-top: 3px solid var(--note); }
.rv-conclusion-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.rv-conclusion h2 { margin: 0 0 4px; }
.rv-conclusion h3 { margin: 0; font-size: 21px; }
.rv-conclusion p { color: var(--text-2); margin: 0 0 10px; font-size: 16px; line-height: 1.65; }
.rv-note-box { display: flex; flex-direction: column; align-items: center; margin: 0 !important; flex: none; }
.rv-note-box strong { font-size: 40px; line-height: 1; color: var(--note); font-weight: 800; }
.rv-note-box small { font-size: 14px; color: var(--muted); font-weight: 600; }
.rv-note-box span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.rv-conclusion .rv-points h4 { font-size: 14px; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 0; font-size: 13px; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.author-box p { margin: 0; }
.author-role { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.author-name { font-size: 18px; font-weight: 700; }
.author-name a:hover { color: var(--accent); }
.author-bio { color: var(--text-2); font-size: 14px; margin: 4px 0 2px !important; }
.source { font-size: 14px; color: var(--text-2); margin-top: 18px; }
.source a { color: var(--accent); text-decoration: underline; }

/* ---------- Article (dossier, actu), page auteur ---------- */
.article-head { max-width: 860px; margin: 0 auto 20px; }
.article-head h1 { font-size: 38px; line-height: 1.12; margin: 6px 0 10px; }
.article-news .article-head h1 { font-size: 32px; }
.article-chapo { font-size: 20px; line-height: 1.45; color: var(--text-2); margin: 0 0 6px; }
.article-hero { margin: 0 auto; max-width: 1400px; }
.article-hero img { max-height: 620px; }
.article-hero img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cols { display: flex; gap: 44px; justify-content: center; margin-top: 26px; align-items: flex-start; }
.article-cols .reading { flex: 0 1 760px; min-width: 0; margin: 0; }
.article-side { flex: 0 0 clamp(300px, 22vw, 380px); position: sticky; top: 18px; }
.article-side h2:first-child { margin-top: 4px; }
.article-medias { margin-top: 26px; }
.article-medias h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 10px; }
.author-head { display: flex; gap: 24px; align-items: center; margin-bottom: 10px; }
.author-head h1 { margin: 0 0 4px; font-size: 32px; }
.author-bio-long { max-width: 760px; margin: 14px 0 0; }
.page > .reading > h1 { font-size: 34px; margin: 4px 0 18px; }

/* ---------- Fenêtre de fiche (popup) et visionneuse ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 9, .74); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 28px; animation: fade .15s ease; }
:root[data-theme="light"] .modal-back { background: rgba(30, 36, 50, .5); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.985); opacity: 0; } }
.modal { position: relative; width: min(1440px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .18s ease; }
.modal-content { overflow-y: auto; overscroll-behavior: contain; min-height: 240px; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 6; background: rgba(10, 12, 16, .62); border-color: rgba(255, 255, 255, .18); color: #fff; }
.modal .sheet { border: 0; border-radius: 0; background: none; }
.modal .crumbs { display: none; }
.rv-loading { padding: 90px 30px; text-align: center; color: var(--muted); }
.rv-loading .spin { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(5, 6, 9, .92); overscroll-behavior: contain; touch-action: pinch-zoom; cursor: zoom-out; }
.md img { cursor: zoom-in; }
body.lb-open { overflow: hidden; }
.lb-stage { position: absolute; inset: 58px 72px 64px; display: grid; place-items: center; pointer-events: none; }
.lb-media { grid-area: 1 / 1; display: block; max-width: none; border-radius: 10px; background: #000 center / cover no-repeat; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); object-fit: contain; transform-origin: center; will-change: transform; pointer-events: auto; cursor: default; }
.lb-video iframe { width: 100%; height: 100%; border: 0; border-radius: inherit; display: block; }
.lb-bar { position: absolute; left: 72px; right: 72px; bottom: 18px; margin: 0; display: flex; gap: 14px; justify-content: center; align-items: baseline; color: rgba(255, 255, 255, .78); font-size: 13.5px; pointer-events: none; }
.lb-count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .55); }
.lb-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox .btn { position: absolute; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; z-index: 1; }
.lightbox .btn:hover { background: rgba(255, 255, 255, .2); }
.yt { cursor: zoom-in; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 10px 16px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: pop .2s ease; }

/* ---------- Pied de page ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 20px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 34px var(--pad) 18px; display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 1fr)); gap: 30px; }
.foot-brand img { height: 52px; width: auto; }
.foot-brand p { color: var(--text-2); font-size: 14px; max-width: 46ch; margin: 12px 0 0; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.foot h2 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--text-2); }
.foot-col:first-of-type ul { grid-template-columns: 1fr 1fr; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad) 26px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1100px) {
  .lib { grid-template-columns: minmax(0, 1fr); }
  .lib-side { display: none; }
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-text { grid-column: 1 / -1; }
  .article-cols { flex-direction: column; }
  .article-cols .reading { flex-basis: auto; width: 100%; margin: 0 auto; }
  .article-side { position: static; flex-basis: auto; width: 100%; max-width: 760px; margin: 0 auto; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .list-head, .row { grid-template-columns: 46px minmax(0, 1fr) 62px; }
  .row > :nth-child(n + 4), .list-head > :nth-child(n + 4), .row > :nth-child(3), .list-head > :nth-child(3) { display: none; }
  .row > .rv-note { display: block; }
}
@media (max-width: 760px) {
  :root { --pad: 14px; }
  body { font-size: 15px; }
  .top-in { flex-wrap: wrap; gap: 10px 12px; }
  .brand img { height: 38px; }
  .top-actions { margin-left: auto; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .top .top-burger { display: inline-flex; }
  .top-nav { display: none; }
  .top-nav.open { display: block; }
  .top-nav-in { flex-direction: column; padding: 6px var(--pad) 10px; gap: 0; }
  .tnav { padding: 11px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .tnav.active { border-bottom-color: var(--line); color: var(--accent); }
  .home-head h1 span { display: block; margin: 2px 0 0; }
  .lead { min-height: 340px; }
  .lead-body { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .lead-cover { display: none; }
  .lead-text h2 { font-size: 23px; }
  .lead .rv-bignote { font-size: 40px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .card { contain-intrinsic-size: auto 220px; }
  .size, .toolbar .seg, .toolbar .spacer { display: none; }
  .toolbar { position: static; }
  .toolbar .select { flex: 1 1 150px; min-width: 0; }
  .toolbar .select select { max-width: none; width: 100%; min-width: 0; }
  .rail { grid-auto-columns: 124px; gap: 10px; }
  .wide-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet-page { padding: 0; margin-top: 0; }
  .sheet { border-radius: 0; border-inline: 0; }
  .hero { min-height: 260px; }
  .hero-content { gap: 12px; padding: 70px 14px 14px; flex-wrap: wrap; }
  .hero-cover { width: 92px; }
  .hero .crumbs li[aria-current] { display: none; }
  .hero-text { flex-basis: 180px; }
  .hero-text h1 { font-size: 24px; }
  .hero-sub { font-size: 15px; }
  .rv-bignote { font-size: 40px; padding: 0; }
  .sheet-tabs { padding: 6px 10px; }
  .sheet-tabs .sheet-full span { display: none; }
  .sheet-panel { padding: 4px 14px 22px; }
  .sheet > .section { padding: 0 14px 20px; }
  .rv-card { flex-wrap: wrap; }
  .rv-card .btn { width: 100%; }
  .rv-points { grid-template-columns: minmax(0, 1fr); }
  .md { font-size: 16.5px; }
  .article-head h1 { font-size: 28px; }
  .article-chapo { font-size: 17.5px; }
  .author-head { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
  .modal-back { padding: 0; }
  .modal { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .lightbox { padding: 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; }
  .lightbox-prev { transform: rotate(180deg); }
  .lb-stage { inset: 56px 8px 64px; }
  .lb-bar { left: 60px; right: 60px; bottom: 20px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media print {
  .top, .foot, .toolbar, .lib-side, .sheet-tabs, .share, .modal-back, .rail { display: none !important; }
  body { background: #fff; color: #000; }
}
