/* base.css — Studio Bangō */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection { background: var(--color-accent); color: var(--color-ink); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

a, button, [role='button'], input, textarea, select {
  transition:
    color var(--transition-interactive),
    background-color var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* style.css — Studio Bangō
   Composé en Oswald (titres), Switzer (texte) et IBM Plex Mono (repères). */

/* ---------- Polices, hébergées sur place : aucun appel tiers ---------- */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/oswald-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/oswald-var-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/switzer-var.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/plexmono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/plexmono-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/plexmono-400-sym.woff2') format('woff2');
  unicode-range: U+23B8-23BD, U+2500-259F; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/plexmono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('../fonts/notojp-sub.woff2') format('woff2');
  unicode-range: U+3046, U+3053-3054, U+306f-3070, U+3093-3094, U+3099, U+4e00, U+4e09, U+4e8c, U+4e94, U+516d, U+53f7, U+56db, U+756a; }

/* ---------- Jetons ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --font-display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;

  --color-accent: #ffe000;              /* le jaune BANGŌ, exact */
  --color-ink: oklch(0.16 0.004 95);    /* encre, constante dans les deux sessions */
  --color-paper: oklch(0.966 0.005 95);
  --color-black: #000;                  /* fond du logo BANGŌ# */

  --radius-sm: 2px;
  --radius-md: 4px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --content-wide: 1360px;
  --header-h: 4rem;
  --sec-pad: clamp(var(--space-16), 9vw, var(--space-32));
}

/* Session de jour */
:root, [data-theme='light'] {
  color-scheme: light;
  --color-bg: var(--color-paper);
  --color-surface: oklch(0.985 0.004 95);
  --color-text: var(--color-ink);
  --color-text-muted: oklch(0.42 0.006 95);
  --color-text-faint: oklch(0.52 0.006 95);
  --color-border: oklch(0.80 0.006 95);
  --color-divider: oklch(0.88 0.006 95);
  --color-focus: var(--color-ink);
  --color-mark: oklch(0.16 0.004 95 / 0.55);
  --color-tile-text: var(--color-accent);
}

/* Session de nuit */
[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: oklch(0.145 0.003 95);
  --color-surface: oklch(0.185 0.003 95);
  --color-text: oklch(0.95 0.004 95);
  --color-text-muted: oklch(0.74 0.005 95);
  --color-text-faint: oklch(0.62 0.005 95);
  --color-border: oklch(0.34 0.004 95);
  --color-divider: oklch(0.25 0.004 95);
  --color-focus: var(--color-accent);
  --color-mark: oklch(0.95 0.004 95 / 0.5);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Socle ---------- */
body { font-feature-settings: 'kern', 'liga', 'calt'; overflow-x: clip; }
.wrap { width: min(100% - 2 * var(--gutter), var(--content-wide)); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; font-feature-settings: 'zero', 'tnum'; }
.jp { font-family: var(--font-jp); font-weight: 300; letter-spacing: 0; text-transform: none; }
ul[role='list'] > li, ol[role='list'] > li { max-width: none; }
.muted { color: var(--color-text-muted); }
.faint { color: var(--color-text-faint); }

.skip { position: absolute; left: var(--space-4); top: var(--space-4); z-index: 100; padding: var(--space-3) var(--space-4);
  background: var(--color-accent); color: var(--color-ink); font-size: var(--text-sm); font-weight: 600; transform: translateY(-300%); }
.skip:focus { transform: none; }

.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: var(--color-text-faint); padding-inline: 0.12em; margin-inline: -0.12em; }
.link:hover { background: var(--color-accent); color: var(--color-ink); text-decoration-color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
  background: var(--color-text); color: var(--color-bg); border: 1px solid var(--color-text); border-radius: var(--radius-sm); }
.btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: transparent; border-color: var(--color-text); color: var(--color-text); }
.btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }

kbd { display: inline-grid; place-items: center; min-width: 1.75em; padding: 0.1em 0.45em; font-family: var(--font-mono); font-size: var(--text-xs);
  border: 1px solid var(--color-border); border-bottom-width: 2px; border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); }

/* ---------- En-tête ---------- */
.head { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive); view-transition-name: head; }
.head.is-stuck { border-bottom-color: var(--color-divider); }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; color: var(--color-text); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.brand__tile { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; background: var(--color-black); color: var(--color-accent);
  font-size: 0.95em; line-height: 1; border-radius: var(--radius-sm); }
[data-theme='dark'] .brand__tile { background: var(--color-accent); color: var(--color-ink); }
.nav { display: none; align-items: center; gap: var(--space-8); }
.nav__list { display: flex; gap: var(--space-8); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-text); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.55rem; height: 2px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition-interactive); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
[data-theme='light'] .nav a::after { background: var(--color-ink); }
.head__tools { display: flex; align-items: center; gap: var(--space-5); padding-left: var(--space-8); border-left: 1px solid var(--color-divider); }
.score { min-width: 2.2em; text-align: right; color: var(--color-text-faint); }
.session { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; color: var(--color-text-muted); }
.session:hover { color: var(--color-text); }
.session__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.menu-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--space-2); margin-right: calc(-1 * var(--space-2)); font-size: var(--text-sm); font-weight: 600; }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn { display: none; } }

/* Menu mobile */
.menu { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: 0; background: var(--color-bg); color: var(--color-text); }
.menu::backdrop { background: var(--color-bg); }
.menu[open] { animation: menu-in 260ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; } }
.menu__in { display: flex; flex-direction: column; height: 100%; padding: 0 var(--gutter) var(--space-8); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu__list { margin-top: var(--space-10); display: grid; }
.menu__list a { display: flex; align-items: baseline; gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--color-divider);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); text-transform: uppercase; text-decoration: none; color: var(--color-text); line-height: 1.15; }
.menu__list a .mono { color: var(--color-text-faint); min-width: 2.2em; }
.menu__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }

/* ---------- Héros : la carte ---------- */
.hero { padding-block: var(--space-8) var(--space-12); }
.sheet { position: relative; display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-h) - var(--space-8) - var(--space-12)); }
.sheet__run { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); color: var(--color-text-muted); }
.sheet__run > :nth-child(2) { display: none; }
@media (min-width: 720px) { .sheet__run > :nth-child(2) { display: block; } }

/* Repères de coupe */
.cm { position: absolute; width: 0; height: 0; --l: clamp(8px, 1.3vw, 18px); --g: 5px; pointer-events: none; }
.cm::before, .cm::after { content: ''; position: absolute; background: var(--color-mark); }
.cm::before { width: var(--l); height: 1px; }
.cm::after { width: 1px; height: var(--l); }
.cm--tl { top: 0; left: 0; } .cm--tl::before { right: var(--g); top: 0; } .cm--tl::after { bottom: var(--g); left: 0; }
.cm--tr { top: 0; right: 0; } .cm--tr::before { left: var(--g); top: 0; } .cm--tr::after { bottom: var(--g); right: 0; }
.cm--bl { bottom: 0; left: 0; } .cm--bl::before { right: var(--g); bottom: 0; } .cm--bl::after { top: var(--g); left: 0; }
.cm--br { bottom: 0; right: 0; } .cm--br::before { left: var(--g); bottom: 0; } .cm--br::after { top: var(--g); right: 0; }
.hero .cm { --g: 6px; }

.hero__body { margin-block: auto; padding-block: var(--space-10); }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: min(var(--text-hero), 7rem); line-height: 1.12; letter-spacing: -0.012em; text-transform: uppercase; text-wrap: initial; }
.hero h1 .eyebrow { display: block; margin-bottom: var(--space-6); font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); line-height: 1.5; letter-spacing: 0.04em; color: var(--color-text-muted); }
.hero h1 .l { display: block; }
@media (max-width: 719px) { .hero h1 { line-height: 1.14; } .hero h1 .l { display: inline; } }
.hl { background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 0 46% / 100% 0.94em; color: var(--color-ink); padding-inline: 0.08em; margin-inline: -0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l { animation: line-in 700ms var(--ease-out) both; }
  .hero h1 .l:nth-of-type(2) { animation-delay: 60ms; }
  .hero h1 .l:nth-of-type(3) { animation-delay: 120ms; }
  .hl { animation: hl-in 600ms 420ms var(--ease-out) both; }
}
@keyframes line-in { from { clip-path: inset(0 0 100% 0); opacity: 0.2; } to { clip-path: inset(-10% -2% -10% -2%); opacity: 1; } }
@keyframes hl-in { from { background-size: 0 0.94em; color: inherit; } }

.hero__foot { display: grid; gap: var(--space-8); padding-block: var(--space-6); border-top: 1px solid var(--color-divider); }
.hero__lede { font-size: var(--text-lg); line-height: 1.45; max-width: 44ch; }
@media (min-width: 900px) { .hero__foot { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--space-16); } }

/* Définition */
.def { display: grid; gap: var(--space-2); max-width: 38ch; }
.def__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.def__word { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1; }
.def__jp { font-family: var(--font-jp); font-weight: 300; font-size: var(--text-xl); line-height: 1; }
.def__jp rt { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.1em; color: var(--color-text-faint); }
  .def__head .mono { text-transform: none; }
.def p { font-size: var(--text-sm); color: var(--color-text-muted); }
.def p b { font-weight: 600; color: var(--color-text); }

/* Barre de contrôle */
.proof { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); color: var(--color-text-faint); }
.bar { display: flex; }
.bar i { width: 0.875rem; height: 0.875rem; background: var(--color-text); }
.bar i:nth-child(2) { opacity: 0.7; } .bar i:nth-child(3) { opacity: 0.45; } .bar i:nth-child(4) { opacity: 0.2; }
.bar i:nth-child(5) { background: var(--color-accent); }
.bar i:nth-child(6) { background: transparent; box-shadow: inset 0 0 0 1px var(--color-border); }
.reg { position: relative; width: 0.875rem; height: 0.875rem; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.reg::before, .reg::after { content: ''; position: absolute; background: currentColor; }
.reg::before { left: -4px; right: -4px; top: 50%; height: 1px; margin-top: -0.5px; }
.reg::after { top: -4px; bottom: -4px; left: 50%; width: 1px; margin-left: -0.5px; }
.proof__r { display: flex; align-items: center; gap: var(--space-4); }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec-pad); border-top: 1px solid var(--color-divider); }
.sec__grid { display: grid; gap: var(--space-8); }
.sec__label { display: flex; align-items: baseline; gap: var(--space-3); color: var(--color-text-muted); }
.sec__label .jp { font-size: 1rem; color: var(--color-text); }
@media (min-width: 900px) {
  .sec__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-8); }
  .sec__label { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + var(--space-8)); align-self: start; }
  .sec__main { grid-column: 4 / -1; }
}
.h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.14; letter-spacing: -0.005em; text-transform: uppercase; max-width: 18ch; }
.h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.lede { font-size: var(--text-lg); line-height: 1.5; max-width: 52ch; }
.sec__main > * + * { margin-top: var(--space-8); }
.prose > * + * { margin-top: var(--space-4); }
.prose p { max-width: 62ch; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes rv { from { opacity: 0; } }

/* Repères (faits) */
.facts { display: grid; border-top: 1px solid var(--color-text); }
.facts > div { display: grid; gap: var(--space-1); padding-block: var(--space-5); border-bottom: 1px solid var(--color-divider); }
.facts dt { color: var(--color-text-muted); }
.facts dd { font-size: var(--text-base); max-width: 48ch; }
@media (min-width: 720px) { .facts > div { grid-template-columns: 14rem 1fr; gap: var(--space-8); align-items: baseline; } }

/* Expertises : la feuille de match */
.xp { border-top: 1px solid var(--color-text); }
.xp__row { display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-5); row-gap: var(--space-2); align-items: baseline;
  padding: var(--space-6) var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-bottom: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; }
.xp__num { display: inline-flex; align-items: baseline; gap: var(--space-2); color: var(--color-text-muted); min-width: 3.6em; }
.xp__num .jp { font-size: 0.9375rem; }
.xp__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.14; text-transform: uppercase; }
.xp__desc { grid-column: 2; font-size: var(--text-base); color: var(--color-text-muted); max-width: 46ch; }
.xp__go { grid-column: 2; color: var(--color-text-muted); }
.xp__row:hover { background: var(--color-accent); color: var(--color-ink); border-bottom-color: var(--color-accent); }
.xp__row:hover :is(.xp__num, .xp__desc, .xp__go) { color: var(--color-ink); }
.xp__row :is(.xp__num, .xp__desc, .xp__go) { transition: color var(--transition-interactive); }
@media (min-width: 1100px) {
  .xp__row { grid-template-columns: 4.5rem minmax(0, 1.7fr) minmax(0, 1fr) auto; column-gap: var(--space-8); padding-block: var(--space-8); }
  .xp__desc, .xp__go { grid-column: auto; }
}

/* Écosystème : la bande noire */
.eco { background: var(--color-black); color: oklch(0.95 0.004 95); border-top: 0; --color-text: oklch(0.95 0.004 95); --color-text-muted: oklch(0.76 0.005 95);
  --color-text-faint: oklch(0.62 0.005 95); --color-divider: oklch(0.26 0.004 95); --color-border: oklch(0.4 0.004 95); --color-focus: var(--color-accent); --color-bg: var(--color-black); --color-surface: oklch(0.16 0.003 95); }
.eco .link:hover { color: var(--color-ink); }
.eco__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.eco__logo { width: 100%; max-width: 13rem; }
.eco__logo img { width: 100%; }
@media (min-width: 900px) { .eco__grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); } .eco__logo { justify-self: center; max-width: 24rem; } }
@media (max-width: 520px) { .tree mark { display: block; width: max-content; margin-left: 4ch; } }
.tree { font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.9; color: var(--color-text-muted); white-space: pre; overflow-x: auto; max-width: 100%; }
.tree b { font-weight: 500; color: var(--color-text); }
.tree mark { background: var(--color-accent); color: var(--color-ink); padding-inline: 0.4em; }

.eco .sec__label { position: static; }
.eco .sec__main { grid-column: auto; }
.sec--flush { border-top: 0; }
.cta__grid > * + *, .person > * + * { margin-top: 0; }
.duo__link { margin-top: var(--space-4); }
.prose > .contact__gap { margin-top: var(--space-10); }

/* Listes numérotées */
.nlist { counter-reset: n; border-top: 1px solid var(--color-text); }
.nlist li { counter-increment: n; display: grid; grid-template-columns: 3.6em 1fr; column-gap: var(--space-5); align-items: baseline; padding-block: var(--space-5); border-bottom: 1px solid var(--color-divider); max-width: none; }
.nlist li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--color-text-muted); }
.nlist b { display: block; font-weight: 600; font-size: var(--text-lg); line-height: 1.3; }
.nlist span { display: block; margin-top: var(--space-1); color: var(--color-text-muted); max-width: 52ch; }

/* Interlocuteur */
.person { display: grid; gap: var(--space-6); }
.person__name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.04; text-transform: uppercase; }

/* Appel final */
.cta .h2 { font-size: var(--text-3xl); max-width: 14ch; line-height: 1; }
.cta__grid { display: grid; gap: var(--space-8); align-items: end; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); } }

/* ---------- Pages intérieures ---------- */
.phead { padding-block: var(--space-8) var(--sec-pad); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); color: var(--color-text-faint); padding-block: var(--space-4) var(--space-8); }
.crumbs a { color: var(--color-text-muted); text-decoration: none; padding-block: var(--space-3); margin-block: calc(-1 * var(--space-3)); }
.crumbs a:hover { color: var(--color-text); }
.crumbs li { max-width: none; }
.crumbs li + li::before { content: '/'; margin-right: var(--space-2); }
.phead__sheet { position: relative; padding-block: var(--space-12) var(--space-10); display: grid; gap: var(--space-8); }
.phead h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 1.12; letter-spacing: -0.008em; text-transform: uppercase; max-width: 16ch; }
.phead__meta { max-width: none; display: flex; justify-content: space-between; gap: var(--space-4); color: var(--color-text-muted); }
@media (min-width: 900px) { .phead__sheet { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-8); } .phead__meta { grid-column: 1 / -1; } .phead h1 { grid-column: 1 / span 8; } .phead .lede { grid-column: 1 / span 7; } }

.relay { display: grid; gap: var(--space-2); padding: var(--space-8) var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-block: 1px solid var(--color-text); color: var(--color-text); text-decoration: none; }
.relay b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.14; text-transform: uppercase; }
.relay .mono { color: var(--color-text-muted); transition: color var(--transition-interactive); }
.relay:hover { background: var(--color-accent); color: var(--color-ink); border-color: var(--color-accent); }
.relay:hover .mono { color: var(--color-ink); }

.duo { display: grid; gap: var(--space-10); }
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; gap: var(--space-12); } }
.duo > div { padding-top: var(--space-5); border-top: 1px solid var(--color-text); }
.duo .h3 { margin-block: var(--space-3) var(--space-3); }


/* Contact */
.contact { display: grid; gap: var(--space-12); }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }
.form { display: grid; gap: var(--space-5); }
.form label { display: grid; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; }
.form :is(input, select, textarea) { width: 100%; min-height: 3rem; padding: var(--space-3) var(--space-4); font-size: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.form textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.form :is(input, select, textarea):hover { border-color: var(--color-text-faint); }
.form :is(input, select, textarea):focus-visible { outline-offset: 0; border-color: var(--color-text); }
.form__note { font-size: var(--text-sm); color: var(--color-text-muted); }
.mail { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.15; text-decoration: none; color: var(--color-text); overflow-wrap: anywhere;
  background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 0 100% / 100% 2px; transition: background-size var(--transition-interactive), color var(--transition-interactive); }
.mail:hover { background-size: 100% 100%; color: var(--color-ink); }

/* ---------- Pied ---------- */
.foot { border-top: 1px solid var(--color-text); padding-block: var(--space-12) var(--space-8); }
.foot__mark { container-type: inline-size; }
.foot__mark p { max-width: none; font-family: var(--font-display); font-weight: 700; font-size: 14.6cqi; line-height: 0.9; letter-spacing: 0.005em; text-transform: uppercase; white-space: nowrap; }
.sign { font: inherit; letter-spacing: inherit; line-height: inherit; color: var(--color-text); background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 50% 55% / 100% 78%; border-radius: 0; padding-inline: 0.04em; }
[data-theme='light'] .sign { color: var(--color-ink); }
[data-theme='dark'] .sign { background: none; color: var(--color-accent); }
.sign.jp { font-family: var(--font-jp); font-weight: 500; font-size: 0.82em; }
.foot__cols { display: grid; gap: var(--space-8); margin-top: var(--space-12); }
@media (min-width: 720px) { .foot__cols { grid-template-columns: repeat(4, 1fr); } }
.foot__cols h2 { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.foot__cols a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-text); text-decoration: none; font-size: var(--text-sm); }
.foot__cols a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.foot__cols li { max-width: none; }
.foot__cols p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 30ch; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-5); border-top: 1px solid var(--color-divider); color: var(--color-text-faint); }
.foot__base .keys { display: none; align-items: center; gap: var(--space-2); min-height: 2.75rem; color: var(--color-text-faint); }
.foot__base .keys:hover { color: var(--color-text); }
@media (hover: hover) and (pointer: fine) { .foot__base .keys { display: inline-flex; } }

/* ---------- Couches discrètes ---------- */
.keysdlg { width: min(100% - 2 * var(--gutter), 30rem); margin: auto; padding: var(--space-8); border: 1px solid var(--color-text); border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); }
.keysdlg::backdrop { background: oklch(0.16 0.004 95 / 0.45); }
.keysdlg[open] { animation: dlg-in 280ms var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px); } }
.keysdlg h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); text-transform: uppercase; }
.keysdlg dl { margin-top: var(--space-5); border-top: 1px solid var(--color-divider); }
.keysdlg dl > div { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--color-divider); font-size: var(--text-sm); }
.keysdlg dt { display: flex; gap: var(--space-1); }
.keysdlg p { margin-top: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.keysdlg form { margin-top: var(--space-6); }

.gridlay { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: none; }
.gridlay.is-on { display: block; }
.gridlay__cols { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--space-4); height: 100%; }
.gridlay__cols i { background: oklch(0.9 0.19 102 / 0.22); border-inline: 1px solid oklch(0.75 0.17 100 / 0.5); }
.gridlay__cols i:nth-child(n + 5) { display: none; }
@media (min-width: 900px) { .gridlay__cols { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-8); } .gridlay__cols i:nth-child(n + 5) { display: block; } }
.gridlay__tag { position: absolute; left: var(--gutter); bottom: var(--space-4); padding: var(--space-1) var(--space-2); background: var(--color-ink); color: var(--color-accent); }

.toast { position: fixed; left: 50%; bottom: var(--space-8); z-index: 95; translate: -50% 0; width: max-content; max-width: calc(100% - 2 * var(--gutter)); padding: var(--space-3) var(--space-5);
  background: var(--color-ink); color: oklch(0.95 0.004 95); border: 1px solid var(--color-accent); border-radius: var(--radius-sm); font-size: var(--text-sm);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in); }
.toast.is-on { opacity: 1; transform: none; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }

.inter { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; align-content: center; gap: var(--space-4); background: var(--color-accent); color: var(--color-ink);
  opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-in), visibility 0s 320ms; text-align: center; }
.inter.is-on { opacity: 1; visibility: visible; transition: opacity 220ms var(--ease-out); }
.inter .jp { font-size: clamp(6rem, 26vw, 20rem); line-height: 1; font-weight: 300; }
.inter p { max-width: none; }

/* 404 */
.out { min-height: calc(100dvh - var(--header-h)); display: grid; align-content: center; gap: var(--space-6); padding-block: var(--space-16); }
.out h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-hero); line-height: 0.95; text-transform: uppercase; }
.out__line { height: 2px; background: var(--color-text); position: relative; max-width: 28rem; }
.out__line::after { content: ''; position: absolute; left: calc(100% + 1.25rem); top: -0.45rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 1px var(--color-ink); }

/* ---------- Planches photo ---------- */
.psec { padding-block: 0 var(--sec-pad); }
.psec--band { padding-block: var(--space-4) var(--sec-pad); }
.plate { position: relative; display: grid; gap: var(--space-3); }
.plate__img { position: relative; background: var(--color-divider); }
.plate__img .cm { display: none; --g: 6px; }
.plate img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.plate figcaption { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-6); color: var(--color-text-muted); }
.plate figcaption > :first-child { color: var(--color-text); }
.psec--band .plate img { object-position: 50% 42%; }
@media (min-width: 720px) { .psec--band .plate img { aspect-ratio: 12 / 5; } }
@media (min-width: 900px) {
  .plate--grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--space-8); align-items: start; }
  .plate--grid .plate__img { grid-column: 4 / -1; grid-row: 1; }
  .plate--grid .plate__img :is(.cm--tl, .cm--tr) { display: block; }
  .plate--grid figcaption { grid-column: 1 / span 3; grid-row: 1; flex-direction: column; justify-content: flex-start; gap: var(--space-1); }
}
.plates { display: grid; gap: var(--space-8); }
@media (min-width: 720px) { .plates { grid-template-columns: 1fr 1fr; } }

/* ---------- Impression : la carte, pour de vrai ---------- */
@media print {
  :root { --color-bg: #fff; --color-text: #000; --color-text-muted: #333; --color-text-faint: #555; }
  .head, .menu, .keysdlg, .gridlay, .toast, .inter, .foot__base .keys, .skip { display: none !important; }
  .sheet { min-height: 0; }
  .sec { padding-block: 2rem; break-inside: avoid; }
  .eco { background: #fff; color: #000; --color-text: #000; --color-text-muted: #333; }
  .eco__logo { display: none; }
  .plate { break-inside: avoid; } .psec { padding-block: 0 2rem; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* Écrans tactiles : zone d'appui élargie autour des liens de texte, rendu identique. */
@media (pointer: coarse) {
  .link { position: relative; }
  .link::after { content: ""; position: absolute; inset: -0.75em -0.4em; }
}

/* mag.css — Bango Mag. Complète style.css (socle commun avec Studio Bangō). */

/* ---------- Caractère de lecture, hébergé sur place ---------- */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/sourceserif-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/sourceserif-var-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('../fonts/sourceserif-italic-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('../fonts/sourceserif-italic-var-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('../fonts/notojp-mag.woff2') format('woff2');
  unicode-range: U+3046, U+3053-3054, U+3070, U+3093, U+4e00, U+4e03, U+4e09, U+4e8c, U+4e94, U+516d, U+53f7, U+56db, U+756a; }

/* ---------- Réglages de lecture ---------- */
:root {
  --font-read: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --read-font: var(--font-read);
  --read-size: clamp(1.125rem, 1.04rem + 0.38vw, 1.25rem);
  --read-lh: 1.66;
  --measure: 39rem;
}
[data-face='sans'] { --read-font: var(--font-body); --read-lh: 1.62; }
[data-size='0'] { --read-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem); --measure: 34rem; }
[data-size='2'] { --read-size: clamp(1.25rem, 1.14rem + 0.5vw, 1.4375rem); --measure: 44rem; }

/* ---------- En-tête ---------- */
.head__in { gap: var(--space-5); }
.head__tools { margin-left: auto; padding-left: 0; border-left: 0; gap: var(--space-3); }
.head__session { display: none; }
.nav { flex: 1; justify-content: flex-end; }
/* Neuf entrées dont sept « Bango … » : corps resserré, et le libellé de session ne s'affiche qu'à partir de 1440px. */
.nav__list { gap: var(--space-4); }
.nav a { white-space: nowrap; font-size: 0.875rem; }
.head .brand, .head__tools { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1279px) { .nav { display: none; } .menu-btn { display: inline-flex; } }
@media (min-width: 1280px) {
  .head__in { gap: var(--space-4); }
  .head__tools { margin-left: 0; padding-left: var(--space-4); border-left: 1px solid var(--color-divider); gap: var(--space-4); }
  .head__session { display: inline-flex; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .head__session [data-session-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 1440px) { .nav__list { gap: var(--space-5); } }
/* Barre de défilement classique (15 à 17px) : la largeur utile est plus courte que celle de la media query. */
@media (min-width: 1280px) and (max-width: 1339px) { .nav__list { gap: var(--space-3); } .nav a { font-size: 0.8125rem; } }
/* Article : le bouton « Aa » s'ajoute aux outils ; le libellé de session attend 1500px. */
@media (min-width: 1440px) { .head--art .nav__list { gap: var(--space-4); } }
@media (min-width: 1440px) and (max-width: 1499px) {
  .head--art .head__session [data-session-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.aa { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; font-family: var(--font-read); font-size: 1.125rem; font-weight: 600; line-height: 1;
  color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.aa:hover { border-color: var(--color-text); }
.left { display: none; color: var(--color-text-muted); white-space: nowrap; }

/* Titre courant : il remplace le menu une fois la lecture engagée */
.head__run { display: none; flex: 1; min-width: 0; align-items: baseline; gap: var(--space-5); max-width: none; }
.head__run .mono { color: var(--color-text-muted); white-space: nowrap; }
.head__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: 0.01em; text-transform: uppercase; }
.head.is-reading .nav { display: none; }
.head.is-reading .left { display: inline; }
@media (min-width: 720px) { .head.is-reading .head__run { display: flex; animation: run-in 320ms var(--ease-out); } }
@media (max-width: 719px) { .head__run .mono { display: none; } }
@media (max-width: 479px) { .head.is-reading .brand > span:first-child { display: none; } }
@keyframes run-in { from { opacity: 0; transform: translateY(6px); } }

.prog { position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; pointer-events: none; }
.prog i { display: block; height: 100%; background: var(--color-accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
[data-theme='light'] .prog i { box-shadow: 0 1px 0 var(--color-ink); }

/* ---------- La une ---------- */
.une .sheet { min-height: 0; }
.une__mast { display: grid; gap: var(--space-8); padding-block: var(--space-8) var(--space-10); border-bottom: 1px solid var(--color-divider); }
.une__mast h1 { font-size: clamp(2.25rem, 0.9rem + 4.6vw, 5rem); line-height: 1.1; }
@media (min-width: 900px) { .une__mast { grid-template-columns: 7fr 5fr; gap: var(--space-16); align-items: end; } }

.cover { position: relative; display: grid; gap: var(--space-6); padding-block: var(--space-10) var(--space-8); }
.cover__img { display: block; overflow: hidden; background: var(--color-divider); }
.cover__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 700ms var(--ease-out); }
.cover:hover .cover__img img { transform: scale(1.02); }
.cover__txt { display: grid; gap: var(--space-4); align-content: end; }
.cover__t { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.125rem); line-height: 1.14; letter-spacing: -0.005em; text-transform: uppercase; text-wrap: balance; }
.cover__t a { color: inherit; text-decoration: none; }
.cover__t a::after { content: ''; position: absolute; inset: 0; }
.cover:hover .cover__t a { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.16em; }
.cover__dek { font-size: var(--text-lg); line-height: 1.45; max-width: 46ch; }
@media (min-width: 900px) { .cover { grid-template-columns: 7fr 5fr; gap: var(--space-12); align-items: end; } }
.cover--rub { padding-top: 0; }

/* ---------- Cartes ---------- */
.sec__top { margin-bottom: var(--space-8); }
.sec__top .sec__label { position: static; }
.cards { display: grid; gap: var(--space-12) var(--space-8); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: var(--space-3); align-content: start; }
.card__img { overflow: hidden; background: var(--color-divider); margin-bottom: var(--space-1); }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card:hover .card__img img { transform: scale(1.03); }
.card__meta { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); max-width: none; color: var(--color-text-muted); }
.card__meta span { white-space: nowrap; }
.card__meta span:not(:last-child)::after { content: '·'; margin-left: var(--space-2); color: var(--color-text-faint); }
.card__t { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem); line-height: 1.2; text-transform: uppercase; text-wrap: balance; }
.card__t a { color: var(--color-text); text-decoration: none; padding-inline: 0.08em; margin-inline: -0.08em;
  background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 0 50% / 0 0.96em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 260ms var(--ease-out), color var(--transition-interactive); }
.card__t a::after { content: ''; position: absolute; inset: 0; }
.card:hover .card__t a, .card__t a:focus-visible { background-size: 100% 0.96em; color: var(--color-ink); }
.card__dek { color: var(--color-text-muted); max-width: 54ch; }

/* ---------- Sommaire ---------- */
.phead--tight { padding-bottom: var(--space-8); }
.phead--tight .phead__sheet { padding-block: var(--space-10) var(--space-8); }
.sec--som { border-top: 0; padding-top: 0; }
.toc { border-top: 1px solid var(--color-text); }
.toc .row { max-width: none; }
.row a { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: 'n rub m' 't t t'; column-gap: var(--space-4); row-gap: var(--space-2); align-items: baseline;
  padding: var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-bottom: 1px solid var(--color-divider); color: var(--color-text); text-decoration: none; }
.row__n { grid-area: n; } .row__rub { grid-area: rub; } .row__m { grid-area: m; justify-self: end; } .row__t { grid-area: t; }
.row__d { display: none; }
.row .mono { color: var(--color-text-muted); white-space: nowrap; transition: color var(--transition-interactive); }
.row__t { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.4375rem); line-height: 1.22; text-transform: uppercase; text-wrap: balance; }
.row a:hover { background: var(--color-accent); color: var(--color-ink); border-bottom-color: var(--color-accent); }
.row a:hover .mono { color: var(--color-ink); }
.row__img { display: none; }
@media (min-width: 900px) {
  .row a { grid-template-columns: 5.25rem minmax(0, 1fr) 6.5rem 6.5rem 3.75rem; grid-template-areas: 'n t rub d m'; column-gap: var(--space-6); padding-block: var(--space-5); }
  .row__d { display: block; grid-area: d; }
}
.sec__main .toc .row a { grid-template-columns: 5.25rem minmax(0, 1fr) auto; grid-template-areas: 'n t m'; }
.sec__main .toc :is(.row__rub, .row__d) { display: none; }
@media (max-width: 599px) { .sec__main .toc .row a { grid-template-columns: auto 1fr; grid-template-areas: 'n m' 't t'; } }

.filters { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-5) var(--space-8); margin-bottom: var(--space-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-4); font-size: var(--text-sm); font-weight: 500; white-space: nowrap;
  color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.chip .mono { color: var(--color-text-faint); }
.chip:hover { border-color: var(--color-text); }
.chip[aria-pressed='true'] { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.chip[aria-pressed='true'] .mono { color: inherit; opacity: 0.7; }
.year { margin-top: var(--space-10); }
.year[hidden] { display: none; }
.year__t { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); font-weight: 400; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.year__t span:first-child { color: var(--color-text); }
.empty { margin-top: var(--space-10); }

/* Planche-contact */
#toc[data-view='planche'] .toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: var(--space-8) var(--space-6); border-top: 1px solid var(--color-text); padding-top: var(--space-6); }
#toc[data-view='planche'] .row[hidden] { display: none; }
#toc[data-view='planche'] .row a { grid-template-columns: auto 1fr; grid-template-areas: 'img img' 'n rub' 't t'; row-gap: var(--space-2); padding: 0; margin: 0; border: 0; height: 100%; align-content: start; }
#toc[data-view='planche'] .row a:hover { background: none; color: var(--color-text); }
#toc[data-view='planche'] .row a:hover .mono { color: var(--color-text-muted); }
#toc[data-view='planche'] .row__img { display: block; grid-area: img; overflow: hidden; background: var(--color-divider); margin-bottom: var(--space-1); }
#toc[data-view='planche'] .row__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 700ms var(--ease-out); }
#toc[data-view='planche'] .row a:hover .row__img img { transform: scale(1.03); }
#toc[data-view='planche'] .row__rub { justify-self: end; }
#toc[data-view='planche'] :is(.row__d, .row__m) { display: none; }
#toc[data-view='planche'] .row__t { font-size: 1.0625rem; line-height: 1.25; }
#toc[data-view='planche'] .row a:hover .row__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--color-accent); }
[data-theme='light'] #toc[data-view='planche'] .row a:hover .row__t { text-decoration-color: var(--color-ink); }

/* ---------- Rubriques (bande noire) ---------- */
@media (min-width: 900px) { .rubs .sec__main { grid-column: 4 / -1; } }
.rubs .xp__go { white-space: nowrap; }
@media (min-width: 900px) { .rubs .xp__row { grid-template-columns: 4.5rem minmax(0, 1.5fr) minmax(0, 1fr) 6.5rem; } .rubs .xp__go { text-align: right; } }

/* ---------- Longues lectures ---------- */
.longs { border-top: 1px solid var(--color-text); }
.long { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-6); border-bottom: 1px solid var(--color-divider); }
.long > div { display: grid; gap: var(--space-3); }
.long__min { display: grid; align-content: start; gap: var(--space-2); max-width: none; }
.long__min b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 0.9; }
.long__min .mono { color: var(--color-text-muted); }
@media (min-width: 720px) { .long { grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-8); padding-block: var(--space-8); } }

/* ---------- Article ---------- */
.art__head { padding-top: var(--space-8); }
.art__sheet { position: relative; display: grid; gap: var(--space-6); padding-block: var(--space-10) var(--space-10); }
.art__sheet h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.05rem + 3.5vw, 4.25rem); line-height: 1.12; letter-spacing: -0.008em; text-transform: uppercase; max-width: 24ch; }
.art__chapo { font-size: var(--text-lg); line-height: 1.45; max-width: 54ch; }
.art__by { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); max-width: none; color: var(--color-text-muted); }
.art__by time::before { content: '·'; margin-right: var(--space-3); color: var(--color-text-faint); }
.art__hero { display: grid; gap: var(--space-3); }
.art__hero img { width: 100%; max-height: min(82vh, 52rem); object-fit: cover; background: var(--color-divider); }
.art__hero figcaption { max-width: none; color: var(--color-text-muted); }

.art__body { padding-block: var(--space-12) var(--sec-pad); }
.aside { display: none; }
@media (min-width: 1100px) {
  .art__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-8); align-items: start; }
  .aside { display: grid; gap: var(--space-8); grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + var(--space-8)); max-height: calc(100dvh - var(--header-h) - var(--space-12)); overflow-y: auto; padding-right: var(--space-2); }
  .prose-mag { grid-column: 4 / -1; }
}
.aside__toc ol { margin-top: var(--space-3); border-top: 1px solid var(--color-text); }
.aside__toc li { max-width: none; border-bottom: 1px solid var(--color-divider); }
.aside__toc a { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--space-2); align-items: baseline; padding-block: var(--space-3); font-size: var(--text-sm); line-height: 1.35; color: var(--color-text-muted); text-decoration: none; }
.aside__toc a .mono { justify-self: start; padding-inline: 0.2em; margin-left: -0.2em; }
.aside__toc a:hover { color: var(--color-text); }
.aside__toc a.is-on { color: var(--color-text); font-weight: 500; }
.aside__toc a.is-on .mono { background: var(--color-accent); color: var(--color-ink); }
.aside__tools { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Le texte */
.prose-mag { font-family: var(--read-font); font-size: var(--read-size); line-height: var(--read-lh); counter-reset: sec; font-feature-settings: 'kern', 'liga', 'onum' 0; hanging-punctuation: first; }
[data-theme='dark'] .prose-mag { color: oklch(0.9 0.004 95); }
@media (max-width: 1099px) { .prose-mag { max-width: var(--measure); margin-inline: auto; } }
.prose-mag > * + * { margin-top: 1.15em; }
.prose-mag > :is(p, ul, ol, h2, h3, .quote, .ext, .art__foot) { max-width: var(--measure); }
.prose-mag p { text-wrap: pretty; }
.prose-mag strong, .prose-mag b { font-weight: 650; }
.prose-mag a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--color-text-faint); }
.prose-mag a:hover { background: var(--color-accent); color: var(--color-ink); text-decoration-color: transparent; }
.prose-mag code { font-family: var(--font-mono); font-size: 0.86em; }
.prose-mag sup { font-size: 0.7em; line-height: 0; }

/* Lettrine : le surligneur des titres */
.prose-mag > p:first-of-type::first-letter { float: left; margin: 0.06em 0.14em 0 0; padding: 0.1em 0.2em 0.06em; font-family: var(--font-display); font-weight: 700; font-size: 3.25em; line-height: 0.86; text-transform: uppercase;
  background: var(--color-accent); color: var(--color-ink); }

.prose-mag h2 { counter-increment: sec; margin-top: 2.4em; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); line-height: 1.16; text-transform: uppercase; scroll-margin-top: calc(var(--header-h) + var(--space-8)); color: var(--color-text); }
.prose-mag h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: var(--space-3); font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); letter-spacing: 0.04em; color: var(--color-text-muted); }
.prose-mag h3 { margin-top: 1.9em; font-family: var(--font-body); font-weight: 600; font-size: 1.12em; line-height: 1.3; color: var(--color-text); scroll-margin-top: calc(var(--header-h) + var(--space-8)); }
.prose-mag :is(h2, h3) + * { margin-top: 0.75em; }
.prose-mag :is(ul, ol) { padding-left: 1.3em; }
.prose-mag li { max-width: none; padding-left: 0.2em; }
.prose-mag li + li { margin-top: 0.45em; }
.prose-mag ul li::marker { content: '#  '; font-family: var(--font-display); font-weight: 600; font-size: 0.8em; color: var(--color-text-muted); }
.prose-mag ol li::marker { font-family: var(--font-mono); font-size: 0.78em; color: var(--color-text-muted); }

/* Images */
.prose-mag .fig { margin-block: 2.2em; display: grid; gap: var(--space-3); }
.prose-mag .fig img, .prose-mag .fig video { width: 100%; height: auto; background: var(--color-divider); }
.prose-mag .fig--portrait { max-width: 27rem; }
.prose-mag .fig--small { max-width: min(100%, var(--w, 30rem)); }
.prose-mag figcaption { max-width: 62ch; padding-left: var(--space-3); border-left: 2px solid var(--color-accent); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.45; color: var(--color-text-muted); }
[data-theme='light'] .prose-mag figcaption { border-left-color: var(--color-ink); }
@media (max-width: 719px) {
  .prose-mag .fig:not(.fig--portrait, .fig--small) { margin-inline: calc(-1 * var(--gutter)); }
  .prose-mag .fig:not(.fig--portrait, .fig--small) figcaption { margin-inline: var(--gutter); }
}

/* Citations */
.prose-mag .pull { margin-block: 2.4em; padding-left: clamp(1rem, 2.4vw, 1.75rem); border-left: 0.5rem solid var(--color-accent); max-width: 50rem; }
.prose-mag .pull p { max-width: 26ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem); line-height: 1.2; letter-spacing: -0.005em; text-wrap: balance; color: var(--color-text); }
.prose-mag .pull p:has(br) { max-width: 30ch; }
.prose-mag :is(.pull, .quote) cite { display: block; margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.prose-mag .quote { padding-left: 1.2em; border-left: 2px solid var(--color-text); font-style: italic; }
.prose-mag .quote p + p { margin-top: 0.8em; }

/* Respiration entre deux parties */
.prose-mag hr { border: 0; width: 3.5rem; height: 0.5rem; margin-block: 2.6em; max-width: none;
  background: linear-gradient(90deg, var(--color-text) 0 14.28%, transparent 0 42.85%, var(--color-text) 0 57.14%, transparent 0 85.71%, var(--color-accent) 0); }
[data-theme='light'] .prose-mag hr { background: linear-gradient(90deg, var(--color-text) 0 14.28%, transparent 0 42.85%, var(--color-text) 0 57.14%, transparent 0 85.71%, var(--color-accent) 0); box-shadow: none; }

/* Tableaux, vidéos, liens externes */
.prose-mag .tbl { margin-block: 2.2em; display: grid; gap: var(--space-3); }
.tbl__in { overflow-x: auto; border-top: 1px solid var(--color-text); }
.tbl table { min-width: 34rem; font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.45; }
.tbl :is(th, td) { padding: var(--space-3) var(--space-4) var(--space-3) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-divider); }
.tbl th { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.prose-mag .vid { margin-block: 2.2em; max-width: 50rem; }
.vid a { position: relative; display: grid; gap: var(--space-2); text-decoration: none; }
.prose-mag .vid a:hover { background: none; color: inherit; }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-black); }
.vid__play { position: absolute; left: var(--space-5); top: var(--space-5); width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 1px var(--color-ink); }
.vid__play::after { content: ''; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 0.6rem 0 0.6rem 0.95rem; border-color: transparent transparent transparent var(--color-ink); }
.vid__t { margin-top: var(--space-1); font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; line-height: 1.3; }
.vid__src { color: var(--color-text-muted); }
.vid a:hover .vid__t { text-decoration: underline; text-underline-offset: 0.2em; }
.prose-mag .ext { padding-block: var(--space-4); border-block: 1px solid var(--color-divider); font-family: var(--font-body); font-size: var(--text-base); }
.prose-mag .ext .mono { margin-right: var(--space-3); color: var(--color-text-muted); }

/* Fin d'article */
.endmark { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-left: 0.45em; vertical-align: -0.12em; font-family: var(--font-display); font-weight: 700; font-size: 0.78em; line-height: 1; font-style: normal;
  background: var(--color-black); color: var(--color-accent); border-radius: var(--radius-sm); }
[data-theme='dark'] .endmark { background: var(--color-accent); color: var(--color-ink); }
.prose-mag .art__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: 3.2em; padding-top: var(--space-5); border-top: 1px solid var(--color-text); color: var(--color-text-muted); }
.art__foot .chip { margin-left: auto; font-family: var(--font-body); letter-spacing: 0; text-transform: none; }

/* Tourner la page */
.turn { border-top: 1px solid var(--color-text); }
.turn__in { display: grid; }
.turn__a { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-8) var(--space-4); margin-inline: calc(-1 * var(--space-4)); color: var(--color-text); text-decoration: none; }
.turn__a b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.16; text-transform: uppercase; text-wrap: balance; max-width: 26ch; }
.turn__a .mono { color: var(--color-text-muted); transition: color var(--transition-interactive); }
a.turn__a:hover { background: var(--color-accent); color: var(--color-ink); }
a.turn__a:hover .mono { color: var(--color-ink); }
.turn__a--off { color: var(--color-text-faint); }
.turn__a + .turn__a { border-top: 1px solid var(--color-divider); }
@media (min-width: 720px) {
  .turn__in { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); }
  .turn__a { padding-block: var(--space-10); margin-inline: 0; padding-inline: var(--space-6); }
  .turn__a:first-child { margin-left: calc(-1 * var(--space-6)); }
  .turn__a + .turn__a { border-top: 0; border-left: 1px solid var(--color-divider); margin-right: calc(-1 * var(--space-6)); }
}

/* ---------- Réglages de lecture, lecture seule ---------- */
.readdlg dt { gap: var(--space-2); align-items: center; }
.readdlg .session { min-height: 2.75rem; }
.unfocus { display: none; position: fixed; right: var(--gutter); bottom: var(--space-5); z-index: 60; align-items: center; gap: var(--space-3); min-height: 2.75rem; padding: 0 var(--space-4);
  background: var(--color-bg); color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.unfocus:hover { color: var(--color-text); border-color: var(--color-text); }
[data-focus] .unfocus { display: inline-flex; }
[data-focus] .head { background: transparent; border-bottom-color: transparent; height: 0; }
[data-focus] .head__in { display: none; }
[data-focus] .prog { position: fixed; top: 0; bottom: auto; }
[data-focus] :is(.aside, .crumbs, .turn, .foot, .art ~ .sec) { display: none; }
[data-focus] .art__body { display: block; }
[data-focus] .prose-mag { max-width: var(--measure); margin-inline: auto; }
[data-focus] .art__sheet { max-width: calc(var(--measure) + 8rem); margin-inline: auto; }
[data-focus] .art__sheet .cm { display: none; }
@media (max-width: 719px) { .unfocus kbd { display: none; } }

@media print {
  .prog, .aside, .turn, .unfocus, .art ~ .sec, .crumbs, .filters { display: none !important; }
  .prose-mag { font-size: 11pt; max-width: none; }
  .art__body { display: block; padding-block: 1rem; }
}

/* Surligneur : la bande couvre toute la hauteur des capitales, y compris en session de nuit */
.hl { background-position: 0 62%; background-size: 100% 1em; }
@media (prefers-reduced-motion: no-preference) { .hl { animation-name: hl-mag; } }
@keyframes hl-mag { from { background-size: 0 1em; color: inherit; } }
/* Sur petit écran, le titre de une coule sur plusieurs lignes : il s'affiche d'un bloc */
@media (max-width: 719px) { .une__mast h1 .l { animation: none; } }
/* Page introuvable : le titre tient sur une ligne, la balle reste dans le cadre */
.out h1 { font-size: min(var(--text-hero), 15vw); }
.out__line { max-width: min(28rem, calc(100% - 2.75rem)); }
@media (max-width: 599px) { .une .sheet__run { flex-wrap: wrap; row-gap: var(--space-1); } .une .sheet__run span { white-space: nowrap; } }

/* ==========================================================================
   WordPress : barre d'administration, contenus de l'éditeur, pages, recherche
   ========================================================================== */

/* Barre d'administration (visible des seuls comptes connectés) */
.admin-bar .head { top: 32px; }
.admin-bar .aside { top: calc(var(--header-h) + var(--space-8) + 32px); }
@media (max-width: 782px) { .admin-bar .head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .head { top: 0; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Pages simples : même colonne de texte, sans lettrine */
.prose-mag--page { max-width: var(--measure); }
.prose-mag--page > p:first-of-type::first-letter { float: none; margin: 0; padding: 0; font: inherit; text-transform: none; background: none; color: inherit; }

/* Blocs laissés tels quels par la mise en page (galeries, colonnes, lecteurs, boutons) */
.prose-mag > :is(h4, h5, h6, dl, pre, details, .wp-block-buttons, .wp-block-file, .pages) { max-width: var(--measure); }
.prose-mag :is(h4, h5, h6) { margin-top: 1.7em; font-family: var(--font-body); font-weight: 600; font-size: 1em; line-height: 1.3; }
.prose-mag pre { overflow-x: auto; padding: var(--space-4); border: 1px solid var(--color-divider); font-family: var(--font-mono); font-size: 0.82em; line-height: 1.5; }
.prose-mag :is(.wp-block-image, .wp-caption, .wp-block-gallery, .wp-block-video, .wp-block-audio, .embed, .wp-block-embed, .wp-block-columns, .wp-block-media-text, .wp-block-cover) { margin-block: 2.2em; margin-inline: 0; max-width: 100%; float: none; }
.prose-mag :is(.wp-block-image, .wp-caption) img { width: 100%; height: auto; }
.prose-mag .wp-caption { width: auto !important; }
.prose-mag :is(.wp-caption-text, .wp-element-caption) { margin-top: var(--space-3); }
.prose-mag :is(.embed, .wp-block-embed) iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.prose-mag :is(.embed, .wp-block-embed).is-type-video iframe, .prose-mag iframe[src*='youtube'], .prose-mag iframe[src*='vimeo'] { height: auto; aspect-ratio: 16 / 9; }
.prose-mag .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-3); }
.prose-mag .wp-block-gallery figure { margin: 0; }
.prose-mag .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; }
.prose-mag .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: var(--space-3) var(--space-6); border: 1px solid var(--color-text); border-radius: 0; background: var(--color-text); color: var(--color-bg); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; text-decoration: none; }
.prose-mag .wp-block-button__link:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink); }
.prose-mag :is(audio, video) { width: 100%; }
.prose-mag .vid__ph { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--color-black); }
.prose-mag .pages { color: var(--color-text-muted); }

/* Repli : contenu que la mise en page n'a pas pu recomposer */
.prose-mag blockquote:not(.pull, .quote) { padding-left: 1.2em; border-left: 2px solid var(--color-text); font-style: italic; max-width: var(--measure); }
.prose-mag blockquote:not(.pull, .quote) p + p { margin-top: 0.8em; }
.prose-mag .wp-block-pullquote { margin-block: 2.4em; margin-inline: 0; padding: 0 0 0 clamp(1rem, 2.4vw, 1.75rem); border: 0; border-left: 0.5rem solid var(--color-accent); text-align: left; }
.prose-mag .wp-block-pullquote blockquote { padding: 0; border: 0; font-style: normal; }
.prose-mag .wp-block-pullquote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem); line-height: 1.2; }
.prose-mag > .wp-block-table, .prose-mag > table { display: block; overflow-x: auto; font-family: var(--font-body); font-size: var(--text-sm); }
.prose-mag table:not(.tbl table) :is(th, td) { padding: var(--space-3) var(--space-4) var(--space-3) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-divider); }

/* Extensions greffées sous l'article (partage, articles liés) */
.prose-mag > :is(.sharedaddy, .jp-relatedposts, .wpl-likebox) { max-width: var(--measure); font-family: var(--font-body); font-size: var(--text-sm); }

/* Pagination des archives */
.turn--pager { margin-top: var(--space-12); }

/* Recherche */
.seek { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); max-width: 40rem; }
.seek__in { flex: 1 1 14rem; min-height: 3rem; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-text); border-radius: 0; background: transparent; color: var(--color-text); font-family: var(--font-body); font-size: var(--text-base); }
.seek__in::placeholder { color: var(--color-text-faint); }

/* Figure dont l'image ne se charge pas : retirée de la colonne, sans laisser de blanc. */
.prose-mag [hidden] { display: none !important; }
