/* Tomeira Documentation : feuille de style commune à toutes les pages.
   Layout : barre latérale (paramètres + navigation) | article | « Sur cette page ».
   Typo : Inter 16px / 1.7 pour le texte, JetBrains Mono pour le code ; DA tomeira.fr (nuit + menthe). */
:root {
  --bg: hsl(218 41% 11%);
  --card: hsl(218 38% 15%);
  --muted: hsl(218 30% 20%);
  --border: hsl(218 30% 22%);
  --fg: hsl(90 10% 97%);
  --fg-body: hsl(218 20% 86%);
  --fg-muted: hsl(218 15% 65%);
  --primary: hsl(167 60% 47%);
  --primary-fg: hsl(218 41% 11%);
  --primary-soft: hsla(167 60% 47% / .12);
  --code-bg: hsl(220 45% 8%);
  --code-fg: hsl(90 10% 92%);
  --code-comment: hsl(218 15% 58%);
  --var-fg: hsl(167 70% 62%);
  --warn: hsl(38 92% 60%);
  --warn-soft: hsla(38 92% 55% / .12);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: .5rem;
  --topbar-h: 60px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: hsl(90 10% 98%); --card: hsl(0 0% 100%); --muted: hsl(218 20% 94%); --border: hsl(218 15% 88%);
    --fg: hsl(218 41% 11%); --fg-body: hsl(218 25% 22%); --fg-muted: hsl(218 15% 40%);
    --primary: hsl(167 58% 31%); --primary-fg: hsl(0 0% 100%);
    --primary-soft: hsla(167 58% 31% / .09);
    --code-bg: hsl(218 41% 11%); --code-fg: hsl(90 10% 94%); --code-comment: hsl(218 15% 62%); --var-fg: hsl(167 70% 62%);
    --warn: hsl(32 90% 38%); --warn-soft: hsla(38 92% 50% / .12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: hsl(90 10% 98%); --card: hsl(0 0% 100%); --muted: hsl(218 20% 94%); --border: hsl(218 15% 88%);
  --fg: hsl(218 41% 11%); --fg-body: hsl(218 25% 22%); --fg-muted: hsl(218 15% 40%);
  --primary: hsl(167 58% 31%); --primary-fg: hsl(0 0% 100%);
  --primary-soft: hsla(167 58% 31% / .09);
  --code-bg: hsl(218 41% 11%); --code-fg: hsl(90 10% 94%); --code-comment: hsl(218 15% 62%); --var-fg: hsl(167 70% 62%);
  --warn: hsl(32 90% 38%); --warn-soft: hsla(38 92% 50% / .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 24px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg-body); font-family: var(--font-sans);
  font-size: 1rem; line-height: 1.7; font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--primary); color: var(--primary-fg); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 650; font-size: 1.0625rem; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { color: var(--fg-muted); font-weight: 500; font-size: .9375rem; }
.topbar .spacer { flex: 1; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; min-width: 36px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card); color: var(--fg); cursor: pointer; font: 500 .875rem var(--font-sans);
}
.icon-btn:hover { border-color: var(--primary); }
.menu-btn { display: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 280px minmax(0, 1fr) 240px; }
.shell.no-toc { grid-template-columns: 280px minmax(0, 1fr); }
aside.side {
  position: sticky; top: var(--topbar-h); align-self: start; height: calc(100vh - var(--topbar-h)); overflow-y: auto;
  padding: 24px 18px 40px; border-right: 1px solid var(--border);
}
main { min-width: 0; padding: 0 clamp(20px, 4vw, 56px) 80px; }
.article { max-width: 760px; margin: 0 auto; }
.no-toc .article { max-width: 880px; }


/* navigation (gauche) */
nav.nav a.module-link { display: block; margin: 22px 0 6px; padding: 4px 10px; text-decoration: none; color: var(--fg-muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
nav.nav a.module-link:hover, nav.nav a.module-link[aria-current="page"] { color: var(--primary); background: none; }
.muted { color: var(--fg-muted); font-size: .9375rem; }
.side-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); margin: 0 0 8px; font-weight: 600; line-height: 1.4; }
nav.nav ol { list-style: none; margin: 0; padding: 0; }
nav.nav li { margin: 0; }
nav.nav a { display: block; text-decoration: none; color: var(--fg-muted); padding: 6px 10px; border-radius: 6px; font-size: .9375rem; line-height: 1.4; }
nav.nav a:hover { color: var(--fg); background: var(--muted); }
nav.nav a.page { display: flex; gap: 10px; }
nav.nav a.page .n { color: var(--primary); font: 600 .8125rem var(--font-mono); padding-top: 2px; flex: none; width: 2.2em; }
nav.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--fg); font-weight: 600; }
nav.nav ol.sub { margin: 2px 0 10px 22px; border-left: 1px solid var(--border); padding-left: 8px; }
nav.nav ol.sub a { font-size: .875rem; padding: 4px 8px; }
nav.nav ol.sub a.active { color: var(--primary); }

/* sur cette page (droite) */
aside.toc {
  position: sticky; top: var(--topbar-h); align-self: start; max-height: calc(100vh - var(--topbar-h)); overflow-y: auto;
  padding: 40px 16px 40px 8px;
}
aside.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
aside.toc a { display: block; text-decoration: none; color: var(--fg-muted); font-size: .8125rem; line-height: 1.45; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; }
aside.toc a:hover { color: var(--fg); }
aside.toc a.active { color: var(--primary); border-left-color: var(--primary); }

/* ---------- accueil ---------- */
.hero { padding: 56px 0 36px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--fg-muted); border: 1px solid var(--border); background: var(--card); padding: 4px 12px; border-radius: 999px; }
.pill b { color: var(--primary); font-weight: 600; }
.hero h1 { color: var(--fg); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -.03em; margin: 18px 0 14px; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 1.125rem; color: var(--fg-muted); max-width: 62ch; margin: 0 0 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .875rem; color: var(--fg-muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 22px; height: 14px; border-radius: 3px; }
.legend i.c { background: var(--code-bg); border: 1px solid var(--border); }
.legend i.g { background: var(--primary-soft); border: 1px solid var(--primary); }

.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 8px 0 32px; }
.tp-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s; }
.tp-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.tp-card .k { font: 600 .8125rem var(--font-mono); color: var(--primary); }
.tp-card .t { font-weight: 600; line-height: 1.35; font-size: 1.0625rem; }
.tp-card .m { font-size: .875rem; color: var(--fg-muted); line-height: 1.5; }

/* ---------- page de TP ---------- */
.breadcrumb { margin: 32px 0 0; font-size: .875rem; color: var(--fg-muted); }
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.page-head { padding: 12px 0 8px; }
.page-head .eyebrow { display: inline-block; font: 600 .8125rem var(--font-mono); color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; margin: 0; }
.page-head h1 { color: var(--fg); font-size: clamp(1.875rem, 3.2vw, 2.375rem); letter-spacing: -.025em; line-height: 1.2; margin: 14px 0 12px; font-weight: 700; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .875rem; color: var(--fg-muted); margin-bottom: 20px; }
.meta b { color: var(--fg); font-weight: 600; }

/* titres de contenu */
.prose h2 {
  color: var(--fg); font-size: 1.5rem; letter-spacing: -.015em; line-height: 1.3; font-weight: 650; text-wrap: balance;
  margin: 3.25rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.prose h2 .p { display: block; width: max-content; font: 600 .75rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.prose h3 { color: var(--fg); font-size: 1.1875rem; line-height: 1.4; margin: 2rem 0 .5rem; font-weight: 600; letter-spacing: -.01em; }
.prose h4 { color: var(--fg); font-size: 1rem; line-height: 1.5; margin: 1.5rem 0 .25rem; font-weight: 600; }
.prose h2 a.anchor, .prose h3 a.anchor { margin-left: 8px; color: var(--fg-muted); text-decoration: none; opacity: 0; font-weight: 400; transition: opacity .15s; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor, .prose a.anchor:focus { opacity: 1; }

.prose p { margin: .85em 0; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: .85em 0; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--fg-muted); }
code.i { font-family: var(--font-mono); font-size: .875em; background: var(--muted); color: var(--fg); padding: .1em .4em; border-radius: 4px; overflow-wrap: anywhere; }
strong { font-weight: 600; color: var(--fg); }

/* tables */
.tbl { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); font-weight: 600; background: var(--muted); }
tr:last-child td { border-bottom: 0; }
td code, th code { font-family: var(--font-mono); font-size: .8125rem; }

/* chemin dans l'interface */
.gui { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 1rem 0; padding: 10px 12px; border-radius: 8px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent); font-size: .9375rem; line-height: 1.5; }
.gui::before { content: "Interface"; font: 600 .6875rem var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-right: 6px; }
.gui span { background: var(--card); color: var(--fg); border: 1px solid var(--border); border-radius: 5px; padding: 1px 8px; font-weight: 500; }
.gui span + span::before { content: "›"; color: var(--primary); margin: 0 8px 0 -2px; font-weight: 700; display: inline-block; transform: translateX(-10px); width: 0; }
.gui span + span { margin-left: 10px; }

/* formulaires de l'interface */
dl.form { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 0; margin: 1rem 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: .9375rem; line-height: 1.55; }
dl.form dt, dl.form dd { margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--border); }
dl.form dt { color: var(--fg-muted); background: var(--muted); font-weight: 500; }
dl.form dd { min-width: 0; overflow-wrap: anywhere; }
dl.form dt:nth-last-of-type(1), dl.form dd:last-child { border-bottom: 0; }
dl.form dd code { font-family: var(--font-mono); font-size: .8125rem; }
dl.form .tab { grid-column: 1 / -1; background: var(--card); color: var(--primary); font: 600 .75rem var(--font-sans); text-transform: uppercase; letter-spacing: .08em; padding: 9px 14px 7px; border-bottom: 1px solid var(--border); }

/* blocs de code */
.code { position: relative; margin: 1rem 0 1.25rem; border-radius: 10px; background: var(--code-bg); border: 1px solid var(--border); }
.code .bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; border-bottom: 1px solid hsla(218 30% 40% / .25); }
.code .lang { font: 600 .6875rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--code-comment); }
.code .where { font: 500 .75rem var(--font-sans); color: var(--code-comment); margin-left: 8px; text-transform: none; letter-spacing: 0; }
.copy { font: 600 .75rem var(--font-sans); color: var(--code-fg); background: hsla(218 30% 40% / .25); border: 1px solid hsla(218 30% 50% / .35); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--var-fg); color: var(--var-fg); }
.copy.ok { background: hsl(167 60% 47%); color: hsl(218 41% 11%); border-color: transparent; }
.code pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font: 400 .875rem/1.65 var(--font-mono); color: var(--code-fg); tab-size: 4; }
.code pre .c { color: var(--code-comment); font-style: italic; }

/* encadrés */
.note, .warn, .tip { margin: 1.25rem 0; padding: 12px 16px; border-radius: 8px; font-size: .9375rem; line-height: 1.65; border: 1px solid var(--border); border-left-width: 4px; background: var(--card); }
.note p, .warn p, .tip p { margin: 4px 0; }
.note::before, .warn::before, .tip::before { display: block; font: 700 .6875rem var(--font-sans); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.note::before { content: "À savoir"; color: var(--fg-muted); }
.note { border-left-color: var(--fg-muted); }
.tip { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); border-left-color: var(--primary); }
.tip::before { content: "Astuce"; color: var(--primary); }
.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, transparent); border-left-color: var(--warn); }
.warn::before { content: "Attention"; color: var(--warn); }

details.answers { margin: 1.25rem 0; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
details.answers summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--fg); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.answers summary::-webkit-details-marker { display: none; }
details.answers summary::after { content: "+"; color: var(--primary); font-weight: 700; }
details.answers[open] summary::after { content: "–"; }
details.answers .in { padding: 0 18px 14px; border-top: 1px solid var(--border); }
details.answers h4 { margin: 1rem 0 .25rem; font-size: .9375rem; }
details.answers p, details.answers li { font-size: .9375rem; color: var(--fg-muted); }

.deliv { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0; padding: 0; list-style: none; }
.prose .deliv { padding-left: 0; }
.deliv li { margin: 0 !important; font-size: .8125rem; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--fg-muted); }

/* captures et schémas */
figure.shot { margin: 1.25rem 0 1.5rem; }
figure.shot img, .gallery img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: zoom-in; }
figure.shot figcaption { margin-top: 8px; font-size: .875rem; line-height: 1.5; color: var(--fg-muted); }
.src { display: block; font-size: .75rem; color: var(--fg-muted); opacity: .85; font-weight: 400; }
.src a { color: inherit; }
.gallery-wrap { margin: 1.25rem 0 1.5rem; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.gallery-title { margin: 0 0 12px !important; font-weight: 600; color: var(--fg); font-size: .9375rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 6px; font: 600 .75rem var(--font-mono); color: var(--fg-muted); text-align: center; }
.gallery img { aspect-ratio: 700 / 510; object-fit: cover; object-position: top left; }
.gallery a:hover img, figure.shot a:hover img { border-color: var(--primary); }

dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / .8); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px; background: #fff; }
dialog.lightbox p { margin: 8px 0 0; color: #e8ecef; font-size: .875rem; text-align: center; }
dialog.lightbox button { position: fixed; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .15); color: #fff; font-size: 1.25rem; cursor: pointer; }

/* écran scindé : énoncé à gauche, solution à droite */
.article.wide { max-width: 1280px; }
.split-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 8px; font-size: .8125rem; color: var(--fg-muted); }
.step-grid { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.solution > :first-child { margin-top: 0; }
.enonce {
  position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100vh - var(--topbar-h) - 32px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 10px;
  padding: 14px 18px 16px; font-size: .9375rem; line-height: 1.6;
}
.enonce p { margin: .6em 0; }
.enonce ul, .enonce ol { margin: .4em 0 .8em; padding-left: 1.25rem; }
.enonce li { margin: .3em 0; }
.enonce .tbl { margin: .8em 0; }
.enonce table { font-size: .8125rem; }
.enonce th, .enonce td { padding: 6px 10px; }
.enonce .note, .enonce .tip, .enonce .warn { font-size: .875rem; margin: .8em 0; padding: 8px 12px; }
.enonce-label { margin: 0 0 6px !important; font: 700 .6875rem var(--font-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.enonce-h { margin: 1em 0 .2em !important; font-weight: 600; color: var(--fg); font-size: .875rem; }
.enonce .objectif { color: var(--fg); }
.enonce .attendus li::marker { content: "✓  "; color: var(--primary); }
.enonce .questions li { padding-left: 2px; }
.enonce .capture { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 8px; background: var(--muted); font-size: .875rem; }
.enonce .capture span { font: 700 .6875rem var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); }
.enonce .hors-sujet { font-style: italic; color: var(--fg-muted); }
.prose .checklist { list-style: none; padding-left: 0; }
.checklist label { display: flex; gap: 8px; align-items: baseline; cursor: pointer; }
.checklist input { accent-color: var(--primary); }
.checklist input:checked + * , .checklist label:has(input:checked) { color: var(--fg-muted); text-decoration: line-through; }
body.hide-enonce .enonce { display: none; }
body.hide-enonce .step-grid { grid-template-columns: minmax(0, 1fr); }
body.hide-enonce .article.wide { max-width: 880px; }
@media (max-width: 1180px) {
  .step-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .enonce { position: static; max-height: none; }
}

/* précédent / suivant */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--fg); transition: border-color .15s; }
.pager a:hover { border-color: var(--primary); }
.pager a.next { text-align: right; grid-column: 2; }
.pager small { color: var(--fg-muted); font-size: .8125rem; }
.pager span { font-weight: 600; line-height: 1.4; }

footer.foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--fg-muted); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .shell, .shell.no-toc { grid-template-columns: 260px minmax(0, 1fr); }
  aside.toc { display: none; }
}
@media (min-width: 1201px) {
  .shell:not(.no-toc) nav.nav ol.sub { display: none; }
}
@media (max-width: 960px) {
  .shell, .shell.no-toc { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  aside.side {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; bottom: 0; height: auto; z-index: 25;
    background: var(--bg); border-right: 0; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; padding: 16px;
  }
  body.nav-open aside.side { transform: none; visibility: visible; }
  main { padding-inline: 16px; }
  .brand small { display: none; }
}
@media (max-width: 560px) {
  dl.form { grid-template-columns: minmax(0, 1fr); }
  dl.form dt { border-bottom: 0; padding-bottom: 2px; }
  .hero { padding-top: 32px; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: 1; }
  .prose h2 { font-size: 1.375rem; }
}

/* ---------- lien de retour vers le site principal ---------- */
.back-link { text-decoration: none; white-space: nowrap; }
.back-short { display: none; }
@media (max-width: 560px) { .back-long { display: none; } .back-short { display: inline; } }
