/* Hallmark · shape: booking page (Narrative Workflow swapped, the material has no product workflow) · genre: editorial · theme: Sport (deal 1/3, seed first-aid-fire-prevention-bdb2·ba3d4923·2026-10-31·r0) · redesign: full · job: book · draw: 61addd
 * hero: Ledge (/, /formation-secourisme, /formation-incendie, /nl/opleiding-*), Stage (/a-propos) · nav: edge-aligned, wordmark and four links with one bordered action, a menu sheet on phones · footer: index columns on ink · imagery: photographs, the user's own 5 and 4 service photos, natural
 * axes: light/display-condensed/full-palette · posture: calm (red is the one action colour on paper and ink; the domain colours survive only as the line under the chosen training tab and as the simulator's rate feedback) · contrast: pass · fold: pass · brand: the logo red leads · layout: mobile-first, phone styles are the default · motion: the user asked for animation, so the theme's stillness gives way to the hero video (the trainers' own CPR footage, muted loop, pause control, still for reduced motion) and one reveal · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R3 V4 · weakest: R, four colours is loud for Sport; each colour is pinned to one domain so the colour says which training you are reading */
/* Hallmark · redesign full, course pages (4) · dropped the per-course mailto subjects, [data-dock-hide], #ask-title, #help-title, #how-title · the booking block of / replaces the old request section, its "Écrire un email" body now prefilled with the course; the dock script tolerates no [data-dock-hide] */
/* Hallmark · dismissed 77 · the reviews rail fills with the 12 latest of the live Google Form answers; the headless render shoots before that fetch returns */
/* Hallmark · dismissed 25 · the heartbeat caption under the hero trace is one sentence, so 40ch is a caption measure */
/* Hallmark · waive 39b · button.sim__pad 228px · the CPR pad is the chest you press 110 times a minute with a thumb, so it is sized as a target, not a marketing button */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 64px; --dock-h: 73px; }
@media (min-width: 60rem) { :root { --nav-h: 72px; } }

/* ---------- Native on mobile ----------
 * Each line is here for one phone behaviour; the why sits beside it. */
html {
  -webkit-tap-highlight-color: transparent; /* no grey flash over every tap; :active gives the feedback instead */
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; /* no font inflation in landscape */
}
a, button, summary, label, [role="tab"] { touch-action: manipulation; } /* no double-tap-zoom wait before click */
.btn, button, [role="tab"], summary, .nav__links a, .dock a, .gallery a {
  -webkit-user-select: none; user-select: none; /* long-press on a control never selects its label */
  -webkit-touch-callout: none; /* nor pops the link callout */
}
input, textarea, select { font-size: max(16px, 1rem); } /* under 16px iOS zooms into the field and never zooms back */

body { display: flex; flex-direction: column; min-height: 100svh; }
main { flex: 1; }
h1, h2 { text-transform: uppercase; line-height: 1.02; }
h3 { font-family: var(--font-body); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
h2 { max-width: 18ch; }
.lead { color: var(--color-ink-2); }

/* Tones: one colour per domain, set on a parent and read by the parts */
[data-tone="red"] { --tone: var(--color-accent); --tone-ink: var(--color-accent-ink); --tone-deep: var(--color-accent-deep); }
[data-tone="flame"] { --tone: var(--color-flame); --tone-ink: var(--color-flame-ink); --tone-deep: var(--color-flame-deep); }
[data-tone="sun"] { --tone: var(--color-sun); --tone-ink: var(--color-sun-ink); --tone-deep: var(--color-sun-deep); }
[data-tone="sky"] { --tone: var(--color-sky); --tone-ink: var(--color-sky-ink); --tone-deep: var(--color-sky-deep); }

/* Skip link */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: calc(var(--space-md) + env(safe-area-inset-top, 0px)); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-bar) solid transparent; border-radius: var(--radius-card); font: 500 var(--text-md)/1.1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { border-color: var(--color-ink); color: var(--color-ink); background: transparent; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.on-ink .btn--secondary { border-color: var(--color-paper); color: var(--color-paper); }
.on-ink .btn:focus-visible, .on-ink :focus-visible { outline-color: var(--color-focus-on-ink); }
.btn--primary:active { background: var(--color-ink-2); }
.on-ink .btn--primary:active, .on-ink .btn--secondary:active { background: var(--color-paper); color: var(--color-ink); }

.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:active { text-decoration-color: var(--color-accent-deep); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Nav: wordmark and a menu sheet on phones, inline links from 60rem ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-top: env(safe-area-inset-top, 0px); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-lg); min-height: var(--nav-h); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; color: var(--color-ink); text-decoration: none; }
.wordmark img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.wordmark span { display: grid; line-height: 1.1; }
.wordmark b { font: var(--display-weight) var(--text-xl)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.wordmark small { font-size: var(--text-xs); color: var(--color-muted); }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-card); background: transparent; color: var(--color-ink); font-weight: 500; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.nav__toggle:active { transform: scale(0.97); background: var(--color-paper-2); }
.nav__toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__links { flex-basis: 100%; display: flex; flex-direction: column; margin: 0; padding: 0 0 var(--space-md); list-style: none; max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.nav__links li { border-top: var(--rule-hair) solid var(--color-rule); }
.nav__links a:not(.btn) { display: flex; align-items: center; min-height: 52px; color: var(--color-ink); text-decoration: none; font-weight: 500; font-size: var(--text-lg); }
.nav__links a:not(.btn):active { color: var(--color-accent-deep); }
.nav__links a[aria-current="page"] { color: var(--color-accent-deep); }
.nav__links a:not(.btn):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav__links .btn { width: 100%; margin-top: var(--space-sm); }
.js .nav:not(.is-open) .nav__links { display: none; }
.nav.is-open .nav__links { animation: sheet-in var(--dur-short) var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }
/* Language: FR ⇄ NL, always in the bar; on phones beside the menu button, on computers after the booking button */
.lang { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin-left: auto; margin-right: calc(var(--space-xs) - var(--space-lg)); padding: 0 var(--space-xs); border-radius: var(--radius-card); color: var(--color-ink); font-weight: 500; font-size: var(--text-sm); letter-spacing: 0.04em; text-decoration: underline; text-decoration-thickness: var(--rule-bar); text-decoration-color: var(--color-accent); text-underline-offset: 6px; transition: background-color var(--dur-micro) var(--ease-out); }
.lang:active { background: var(--color-paper-2); }
.lang:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

@media (min-width: 60rem) {
  .nav__toggle { display: none; }
  .nav__bar { flex-wrap: nowrap; }
  .js .nav:not(.is-open) .nav__links, .nav__links { display: flex; flex-direction: row; align-items: center; gap: var(--space-lg); flex-basis: auto; padding: 0; max-height: none; overflow: visible; }
  .nav.is-open .nav__links { animation: none; }
  .nav__links li { border-top: 0; }
  .nav__links a:not(.btn) { min-height: 44px; font-size: var(--text-sm); border-bottom: var(--rule-bar) solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
  .nav__links a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
  .nav__links .btn { width: auto; margin-top: 0; min-height: 44px; font-size: var(--text-md); }
  .lang { order: 3; margin: 0 calc(-1 * var(--space-xs)) 0 calc(var(--space-xs) - var(--space-lg)); }
}

/* ---------- Dock: call and book, under the thumb on phones ---------- */
.dock { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-sm) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule); transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.dock .btn { min-height: 48px; padding: 0 var(--space-sm); }
.js .dock:not(.is-shown) { transform: translateY(100%); opacity: 0; pointer-events: none; }
@media (min-width: 60rem) { .dock { display: none; } }

/* ---------- Hero, Ledge: the photograph is the field, the head rests on the ink at its base ---------- */
.hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-h) - env(safe-area-inset-top, 0px)); }
.hero__photo { flex: 1 1 auto; min-height: 220px; margin: 0; }
.hero__photo > img, .hero__photo > picture > img { object-position: 54% 50%; } /* phones: the three trainers in the middle */
/* The hero photo comes as a <picture>: it fills its slot like a plain <img> */
.hero__photo > picture { position: absolute; inset: 0; z-index: 1; }
.hero__photo > picture > img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo > video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; } /* phones: the adult and child mannequins in the middle */
@media (min-width: 60rem) { .hero__photo > video { object-position: 50% 42%; } } /* on the wide strip, the three trainers side by side */
.hero__pause { position: absolute; z-index: 2; right: var(--gutter); bottom: var(--space-sm); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-paper); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-ink) 55%, transparent); color: var(--color-paper); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.hero__pause:active { transform: scale(0.97); }
.hero__pause:focus-visible { outline: 2px solid var(--color-focus-on-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .hero__pause:hover { background: var(--color-paper); color: var(--color-ink); } }
@media (prefers-reduced-motion: reduce) { .hero__pause { transition: none; } .hero__pause:active { transform: none; } }
@media (min-width: 60rem) { .hero__photo > picture > img { object-position: 50% 85%; } } /* on the wide strip, keep the trainers whole, head to shoes */
.hero__base { position: relative; background: var(--color-ink); color: var(--color-paper); padding-bottom: var(--space-xl); }
.hero__base h1 { max-width: 15em; color: var(--color-paper); }
.hero__base .lead { color: var(--color-paper-3); margin-top: var(--space-md); }
.hero__grid { display: grid; gap: var(--space-lg); }
.actions { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__grid .actions { margin-top: 0; }
@media (min-width: 40rem) {
  .actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 60rem) {
  .hero__base { padding-bottom: var(--space-xl); }
  .hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-lg) var(--gap-columns); align-items: end; }
  .hero__grid .actions { justify-content: flex-end; }
}

@media (min-width: 60rem) { .hero__base .container { padding-top: var(--space-xl); } }
.hero__base .container { padding-top: var(--space-lg); }
.hero__call { color: var(--color-paper-3); }
.on-ink .link { color: var(--color-paper); text-decoration-color: var(--color-accent-on-ink); }
.on-ink .link:focus-visible { outline-color: var(--color-focus-on-ink); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-gap); }
.section--s { padding-block: var(--section-gap-s); }
.well { background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
@media (min-width: 60rem) {
  .head { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-md) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
}

/* ---------- Services: a scrolling tab strip on phones, one colour per domain ---------- */
.seg { display: flex; gap: var(--space-xs); margin: 0 calc(-1 * var(--gutter)) var(--space-lg); padding: 0 var(--gutter); border-bottom: var(--rule-hair) solid var(--color-rule); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg [role="tab"] { flex-shrink: 0; scroll-snap-align: start; min-height: 44px; padding: 0 var(--space-md); border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--color-muted); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.seg [role="tab"]:active { transform: scale(0.97); }
.seg [role="tab"][aria-selected="true"] { border-bottom-color: var(--tone); color: var(--color-ink); }
.seg [role="tab"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
html:not(.js) .seg { display: none; }
@media (min-width: 40rem) {
  .seg { flex-wrap: wrap; gap: var(--space-lg); margin-inline: 0; padding-inline: 0; overflow: visible; }
}
.panel { display: grid; gap: var(--space-xl); align-items: start; padding-top: var(--space-lg); }
.panel + .panel { margin-top: var(--space-3xl); }
.js .panel + .panel { margin-top: 0; }
.panel > .photo { order: -1; aspect-ratio: 4 / 3; }
.panel.is-entering > * { animation: panel-in var(--dur-long) var(--ease-out) both; }
.panel.is-entering > :nth-child(2) { animation-delay: 60ms; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.panel h3 { font-size: var(--text-xl); max-width: none; }
.points { margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: var(--space-lg) minmax(0, 1fr); align-items: baseline; padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.points li::before, .mail__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted); transform: translateY(-0.2em); }
.points li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.more { margin-top: var(--space-lg); }
.more summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: var(--color-rule); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.more summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.more[open] summary { margin-bottom: var(--space-sm); }
.more p + p { margin-top: var(--space-sm); }
@media (min-width: 60rem) {
  .panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); }
  .panel > .photo { order: 0; min-height: 440px; aspect-ratio: auto; height: 100%; }
}
/* Computers: the four panels share one cell, so every tab is as tall as the longest programme;
 * the photo fills that height and "En savoir plus" sits at the same place on every tab */
@media (min-width: 60rem) {
  .js [data-switch] { display: grid; grid-template-columns: minmax(0, 1fr); }
  .js [data-switch] > .panel { grid-row: 2; grid-column: 1; align-items: stretch; }
  .js [data-switch] > .panel[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
  .js [data-switch] > .panel > div { display: flex; flex-direction: column; }
  .js [data-switch] > .panel > div > .more { margin-top: auto; padding-top: var(--space-lg); }
}
/* a 1366x768 laptop: the longest programme (Humanitaire) a notch tighter, so the section still holds in the window */
@media (min-width: 60rem) and (max-height: 800px) {
  .js [data-switch] > .panel > div > .more { padding-top: var(--space-sm); }
  .js [data-switch] .points li { padding-block: 6px; }
}

.photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-card); }
.photo--wide { border-radius: 0; }
.caption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }
@media (min-width: 40rem) { .photo--wide { aspect-ratio: 21 / 9; } }

/* ---------- Figures: the red field ---------- */
.field-red { background: var(--color-accent); color: var(--color-accent-ink); --figures-rule: color-mix(in oklab, var(--color-accent-ink) 40%, transparent); }
.field-red h2, .field-red .lead { color: var(--color-accent-ink); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: var(--rule-bar) solid var(--color-accent-ink); }
.figures > div { display: flex; flex-direction: column; padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--figures-rule); }
.figures > div:nth-child(2) { padding-left: var(--space-md); border-left: var(--rule-hair) solid var(--figures-rule); }
.figures dt { order: 2; font-size: var(--text-sm); margin-top: var(--space-xs); }
.figures dd { margin: 0; font: var(--display-weight) var(--text-display)/0.95 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-display); }
.figures .figures__offer { grid-column: 1 / -1; margin-top: var(--space-lg); padding: var(--space-lg); border: 0; border-radius: var(--radius-card); background: var(--color-sun); color: var(--color-sun-ink); }
.figures .figures__offer dd { font-size: var(--text-display-s); text-transform: uppercase; font-variant-numeric: tabular-nums; }
@media (min-width: 60rem) {
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: var(--rule-hair) solid var(--figures-rule); }
  .figures > div { padding: var(--space-lg) var(--space-lg) var(--space-xl); border-bottom: 0; border-left: var(--rule-hair) solid var(--figures-rule); }
  .figures > div:first-child { padding-left: 0; border-left: 0; }
  .figures > div:nth-child(2) { padding-left: var(--space-lg); }
  .figures .figures__offer { grid-column: auto; margin-top: 0; border-radius: 0; border-left: 0; }
}
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } .panel.is-entering > *, .nav.is-open .nav__links { animation: none; } }

/* ---------- Reviews: a swipeable rail, each card with its colour ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; align-items: start; width: 100%; box-sizing: border-box; scrollbar-width: none; gap: var(--gap-columns); max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) var(--space-md); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.rail > li { scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.rail::-webkit-scrollbar { display: none; } /* the arrows and the count below say where you are */
#avis { background: var(--color-paper-2); }
.rail .score { font-size: var(--text-xl); line-height: 1; letter-spacing: 0.12em; color: var(--color-accent); }
.rail .score .off { color: var(--color-rule); }
.rail blockquote { margin: 0; font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink); }
.rail cite { margin-top: var(--space-xs); font-style: normal; font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); }
.rail-nav { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-md); }
.rail-nav__count { margin-right: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.rail-nav__btn { display: grid; place-items: center; width: 44px; height: 44px; border: var(--rule-hair) solid var(--color-ink); border-radius: 50%; background: var(--color-paper); color: var(--color-ink); font-size: var(--text-lg); line-height: 1; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.rail-nav__btn:active { transform: scale(0.94); background: var(--color-ink); color: var(--color-paper); }
.rail-nav__btn:disabled { opacity: 0.3; cursor: default; transform: none; background: var(--color-paper); color: var(--color-ink); }
.rail-nav__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.rail-nav + .caption { margin-top: var(--space-xs); }
.rail .status { grid-column: 1 / -1; color: var(--color-muted); background: none; border-top: var(--rule-hair) solid var(--color-rule); padding-inline: 0; }
@media (min-width: 40rem) { .rail { grid-auto-columns: minmax(18rem, 45%); } }
@media (min-width: 60rem) { .rail { grid-auto-columns: minmax(18rem, 30%); } }

/* ---------- Booking close ---------- */
.book { display: grid; gap: var(--space-xl); align-items: start; }
.facts { margin: var(--space-xl) 0 0; }
.facts > div { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.facts > div:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: 0; }
.facts .tel { display: inline-flex; align-items: center; min-height: 44px; font: var(--display-weight) var(--text-2xl)/1 var(--font-display); font-variant-numeric: tabular-nums; text-decoration: none; color: var(--color-accent-deep); }
.sessions { margin: 0; padding: 0; list-style: none; }
.sessions li + li { margin-top: var(--space-xs); }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.mail { margin-inline: calc(-1 * var(--gutter)); padding: var(--space-xl) var(--gutter); background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule); }
.mail h3 { font-size: var(--text-xl); }
.mail > p { margin-top: var(--space-sm); color: var(--color-ink-2); }
.mail__list { margin: var(--space-lg) 0; padding: 0; list-style: none; }
.mail__list li { display: grid; grid-template-columns: var(--space-lg) minmax(0, 1fr); align-items: baseline; padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.mail__list li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.mail .btn { width: 100%; }
.mail__address { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
/* The booking close sits on the ink, like the hero and the simulator */
#call-to-action { background: var(--color-ink); color: var(--color-paper); border-top: 0; }
#call-to-action .lead, #call-to-action .facts dt, #call-to-action .mail > p, #call-to-action .mail__address { color: var(--color-paper-3); }
#call-to-action .facts > div, #call-to-action .mail__list li { border-color: var(--color-rule-2); }
#call-to-action .facts .tel { color: var(--color-paper); }
#call-to-action .fill { color: var(--color-paper-3); border-color: color-mix(in oklch, var(--color-paper-3) 60%, transparent); }
#call-to-action .mail { background: var(--color-ink-2); border-color: var(--color-ink-2); }
#call-to-action .mail__list li::before { background: var(--color-paper-3); }
.footer { border-top: var(--rule-hair) solid var(--color-rule-2); }
@media (min-width: 40rem) {
  .mail { margin-inline: 0; padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }
  .mail .btn { width: auto; }
  .facts > div { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: var(--space-md); }
  .facts dt { padding-top: var(--space-3xs); }
}
@media (min-width: 60rem) {
  .book { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); }
}

/* ---------- Footer, index columns on the ink ---------- */
.footer { background: var(--color-ink); color: var(--color-paper); padding-block: var(--space-2xl) calc(var(--space-xl) + var(--dock-h) + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; gap: var(--space-xl) var(--gap-columns); }
.footer .wordmark { color: var(--color-paper); }
.footer .wordmark img { background: var(--color-paper); border-radius: var(--radius-card); padding: var(--space-2xs); }
.footer .wordmark small { color: var(--color-paper); }
.footer__lead p { margin-top: var(--space-md); color: var(--color-paper); max-width: 45ch; }
.footer h2 { font: 500 var(--text-sm)/1.4 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--color-paper); margin-bottom: var(--space-xs); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-paper); text-decoration: none; }
.footer a:active { text-decoration: underline; }
.footer a:focus-visible { outline: 2px solid var(--color-focus-on-ink); outline-offset: 2px; }
.footer__address { padding-block: var(--space-xs); line-height: 1.45; }
.footer address { font-style: normal; }
/* The neighbourhood map (OpenStreetMap), under the tagline; the directions link finds the door */
.footer__map { position: relative; height: 200px; margin-top: var(--space-lg); border-radius: var(--radius-card); overflow: hidden; background: var(--color-ink-2); }
.footer__map { z-index: 0; isolation: isolate; } /* the map's own layers stay under the sticky bar */
.footer__map .leaflet-container, .footer__map.leaflet-container { background: var(--color-ink-2); font: inherit; }
/* OpenStreetMap's map in the site's two colours: its own colours greyed, then tinted a pale blue (white streets, blue-grey blocks) */
.footer__map .leaflet-tile-pane { filter: grayscale(1) sepia(0.4) hue-rotate(185deg) saturate(1.8) contrast(1.1) brightness(0.96); }
.map-pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border: 3px solid var(--color-paper); border-radius: 50% 50% 50% 0; background: var(--color-accent); transform: rotate(-45deg); box-shadow: 0 2px 6px rgb(0 0 0 / 0.45); }
.map-pin span::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--color-paper); }
.footer__map .leaflet-bar { border: 1px solid var(--color-rule-2); box-shadow: none; }
.footer__map .leaflet-bar a { display: block; min-height: 0; width: 32px; height: 32px; line-height: 30px; text-decoration: none; background: var(--color-ink); color: var(--color-paper); border-bottom-color: var(--color-rule-2); }
.footer__map .leaflet-bar a.leaflet-disabled { background: var(--color-ink-2); color: var(--color-rule-2); }
.footer .footer__map .leaflet-control-attribution { background: rgb(255 255 255 / 0.85); color: var(--color-ink); font-size: 10px; } /* the credit OpenStreetMap asks for, kept readable */
.footer .footer__map .leaflet-control-attribution a { display: inline; min-height: 0; color: var(--color-ink); text-decoration: underline; }
.footer__map.is-failed::after { content: "Plan indisponible"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--color-paper-3); font-size: var(--text-sm); }
@media (hover: hover) and (pointer: fine) { .footer__map .leaflet-bar a:hover { background: var(--color-paper); color: var(--color-ink); } }
.footer__maplinks { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-paper); }
.footer .footer__maplinks a { display: inline-flex; min-height: 44px; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; }
.footer__legal { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); color: var(--color-paper); }
.footer__trust { display: block; margin-top: var(--space-2xs); }
.footer .footer__trust a { display: inline; min-height: 0; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; }
/* The SPF Emploi approval, under the opening line; the link goes to the official list where it can be checked */
.approval { margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 500; }
.approval a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 32px; color: inherit; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.approval a::before { content: "✓"; display: inline-grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); font-size: 12px; text-decoration: none; }
.hero__base .approval { color: var(--color-paper); }
.approval a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (min-width: 40rem) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__lead { grid-column: 1 / -1; }
}
@media (min-width: 60rem) {
  .footer { padding-block: var(--space-3xl) var(--space-xl); }
  .footer__grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); }
  .footer__lead { grid-column: auto; }
  .footer a { min-height: 32px; }
}

/* ---------- About ---------- */
.stage { display: grid; gap: var(--space-xl); padding-block: var(--space-xl); }
.stage .lead { margin-top: var(--space-md); }
.stage .photo { aspect-ratio: 4 / 3; }
@media (min-width: 60rem) {
  .stage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; min-height: calc(100svh - var(--nav-h)); }
  .stage .photo { height: min(70svh, 680px); aspect-ratio: auto; }
}

.split { display: grid; gap: var(--space-lg) var(--gap-columns); }
.prose { display: grid; gap: var(--space-md); align-content: start; } /* beside a taller column, the paragraphs stay together */
.prose p:first-child { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink); }
.prose p { color: var(--color-ink-2); }
.split__photo { margin-top: var(--space-lg); aspect-ratio: 4 / 3; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split__photo { margin-top: var(--space-xl); } }

.rows { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.rows > li { display: grid; gap: var(--space-xs) var(--gap-columns); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows h3 { font-size: var(--text-xl); }
.rows p { color: var(--color-ink-2); }
@media (min-width: 40rem) { .rows > li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding-block: var(--space-xl); } }

.field-sky { background: var(--color-paper-2); color: var(--color-ink); border-block: var(--rule-hair) solid var(--color-rule); }
.trio { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.trio > li { padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.trio h3 { font-size: var(--text-xl); }
.trio p { margin-top: var(--space-sm); color: var(--color-ink-2); }
@media (min-width: 60rem) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio > li { padding: var(--space-xl) var(--space-lg) 0; border-bottom: 0; border-left: var(--rule-hair) solid var(--color-rule); }
  .trio > li:first-child { padding-left: 0; border-left: 0; }
}

.team { display: grid; gap: var(--space-xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.team > li { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.team h3 { font-size: var(--text-xl); }
.team p:not(.team__award) { margin-top: var(--space-md); color: var(--color-ink-2); }
.team__photo { aspect-ratio: 4 / 5; margin-bottom: var(--space-lg); }
.team .more { margin-top: var(--space-sm); }
.team .more p { margin-top: var(--space-sm); }
@media (min-width: 60rem) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* photo, name, award, intro and "Lire la suite" share rows across the three trainers, so the links line up */
  .team > li { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .team > li > .more { align-self: start; }
}

/* Gallery: a swipeable rail on phones, a bento from 40rem */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: var(--space-sm); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-xs); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.gallery > li { scroll-snap-align: start; aspect-ratio: 4 / 5; }
.gallery a { position: relative; display: block; width: 100%; height: 100%; border-radius: var(--radius-card); cursor: zoom-in; transition: transform var(--dur-micro) var(--ease-out); }
.gallery a:active { transform: scale(0.98); }
.gallery a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.gallery .photo { height: 100%; aspect-ratio: auto; }
@media (min-width: 40rem) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 260px; gap: var(--space-md); margin: 0; padding: 0; overflow: visible; }
  .gallery > li { aspect-ratio: auto; }
  .gallery > li:nth-child(1) { grid-column: span 12; }
  .gallery > li:nth-child(n+2) { grid-column: span 6; }
}
@media (min-width: 60rem) {
  .gallery { grid-auto-rows: 300px; }
  .gallery > li:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .gallery > li:nth-child(2), .gallery > li:nth-child(3) { grid-column: span 5; }
  .gallery > li:nth-child(4), .gallery > li:nth-child(5) { grid-column: span 6; }
}
.lightbox { width: min(92vw, 1200px); max-height: 92dvh; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-ink); color: var(--color-paper); overscroll-behavior: contain; }
.lightbox::backdrop { background: color-mix(in oklab, var(--color-ink) 82%, transparent); }
.lightbox[open] { animation: panel-in var(--dur-long) var(--ease-out); }
.lightbox img { width: 100%; max-height: 80dvh; object-fit: contain; }
.lightbox__caption { padding: var(--space-sm) var(--space-md) 0; font-size: var(--text-sm); color: var(--color-paper); }
.page-about .lightbox .lightbox__caption { color: var(--color-paper); } /* the About page sets its text to ink; the lightbox is on the ink */
/* The trainers' distinctions: one line under the name, a small ribbon, the certificate in the lightbox */
.team__award { margin-top: var(--space-2xs); font-size: var(--text-sm); }
.team__award a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-xs); min-height: 32px; color: var(--color-ink); text-decoration: none; }
.team__award-name { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 500; }
.team__award-name::before { content: ""; flex-shrink: 0; width: 12px; height: 16px; background: linear-gradient(90deg, #111 0 33%, #f4c430 33% 66%, #d62828 66%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.team__award-more { text-decoration: underline; text-decoration-color: var(--color-ink); text-underline-offset: 0.2em; }
.team__award a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lightbox form { display: flex; justify-content: flex-end; padding: var(--space-sm) var(--space-sm) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } .dock { transition: none; } }

/* ---------- Hover: only where a precise pointer can hover, so a tapped control never stays lit ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--color-ink-2); }
  .btn--secondary:hover { background: var(--color-ink); color: var(--color-paper); }
  .on-ink .btn--primary:hover, .on-ink .btn--secondary:hover { background: var(--color-paper); color: var(--color-ink); }
  .link:hover { text-decoration-color: var(--color-accent-deep); }
  .nav__toggle:hover, .lang:hover { background: var(--color-paper-2); }
  .nav__links a:not(.btn):hover { border-bottom-color: var(--color-accent); }
  .on-ink .link:hover { text-decoration-color: var(--color-paper); }
  .seg [role="tab"][aria-selected="false"]:hover { color: var(--color-ink); border-bottom-color: var(--color-rule); }
  .more summary:hover { text-decoration-color: var(--color-ink); }
  .footer a:hover { text-decoration: underline; }
  .gallery a:hover .photo::after { content: ""; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 3px var(--color-paper); border-radius: var(--radius-card); }
}

/* ---------- CPR simulator: a monitor on the ink ---------- */
.sim-section { background: var(--color-ink); color: var(--color-paper); }
.sim-section h2, .sim-section .lead { color: var(--color-paper); }
.sim-section .lead { color: var(--color-paper-3); }
.sim { display: grid; gap: var(--space-xl); }

.sim__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: var(--rule-hair) solid var(--color-rule-2); }
.sim__steps > li { position: relative; display: grid; grid-template-columns: var(--space-xl) minmax(0, 1fr); gap: var(--space-2xs) var(--space-sm); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); counter-increment: step; color: var(--color-paper-3); transition: opacity var(--dur-short) var(--ease-out); }
.sim__steps > li::before { content: counter(step); grid-row: span 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-paper-3); color: var(--color-paper-3); font: 500 var(--text-md)/1 var(--font-body); }
.sim__steps h3 { color: var(--color-paper); font-size: var(--text-lg); }
.sim__steps p { font-size: var(--text-sm); max-width: 52ch; }
.sim__steps .btn { justify-self: start; margin-top: var(--space-xs); }
.sim__steps > li:not(.is-active):not(.is-done) { opacity: 0.55; }
.sim__steps > li:not(.is-active) .btn { display: none; }
.sim__steps > li.is-active::before { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); }
.sim__steps > li.is-done::before { content: "✓"; }
.sim__steps > li.is-done p { display: none; }
.btn--step { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--step:active { background: var(--color-paper); color: var(--color-ink); }

.sim__stage { display: grid; justify-items: center; gap: var(--space-lg); padding: var(--space-xl) var(--space-md); border-radius: var(--radius-card); background: var(--color-ink-2); text-align: center; }
.sim__readout { display: grid; justify-items: center; gap: var(--space-xs); }
.sim__rate { display: flex; align-items: baseline; gap: var(--space-xs); font: var(--display-weight) var(--text-display)/0.9 var(--font-display); font-variant-numeric: tabular-nums; }
.sim__rate small { font-size: var(--text-lg); color: var(--color-paper-3); }
.sim__verdict { min-height: 32px; display: inline-flex; align-items: center; padding: 0 var(--space-sm); border-radius: var(--radius-card); background: var(--color-rule-2); color: var(--color-paper); font-weight: 500; }
.sim__verdict[data-state="good"] { background: var(--color-go); color: var(--color-go-ink); }
.sim__verdict[data-state="slow"] { background: var(--color-sun); color: var(--color-sun-ink); }
.sim__verdict[data-state="fast"] { background: var(--color-flame); color: var(--color-flame-ink); }
.sim__verdict[data-state="breath"] { background: var(--color-sky); color: var(--color-sky-ink); }

.sim__padwrap { position: relative; display: grid; place-items: center; width: 232px; height: 232px; }
.sim__guide { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--color-paper-3); opacity: 0; pointer-events: none; }
[data-phase="compress"].is-guided.is-running .sim__guide { animation: sim-beat 545ms var(--ease-out) infinite; }
@keyframes sim-beat { 0% { opacity: 0.9; transform: scale(0.82); } 100% { opacity: 0; transform: scale(1.08); } }
.sim__pad { position: relative; display: grid; place-content: center; gap: var(--space-2xs); width: 188px; height: 188px; border: 0; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-xl)/1.1 var(--font-body); cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform 90ms var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.sim__pad small { font: 500 var(--text-sm)/1.2 var(--font-body); text-transform: none; }
.sim__pad.is-pressed { transform: scale(0.9); }
.sim__pad:focus-visible { outline: 3px solid var(--color-focus-on-ink); outline-offset: 6px; }
.sim__pad:disabled { background: var(--color-rule-2); color: var(--color-paper-3); cursor: not-allowed; opacity: 0.55; }
[data-phase="breath"] .sim__pad { background: var(--color-sky); color: var(--color-sky-ink); }

.sim__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.sim__stats > div { display: flex; flex-direction: column; padding-top: var(--space-sm); }
.sim__stats > div + div { border-left: var(--rule-hair) solid var(--color-rule-2); }
.sim__stats dt { order: 2; font-size: var(--text-sm); color: var(--color-paper-3); }
.sim__stats dd { margin: 0; font: var(--display-weight) var(--text-xl)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sim__stats dd b { font-size: var(--text-2xl); }

.sim__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); }
.sim__toggle { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-paper-3); border-radius: var(--radius-card); background: transparent; color: var(--color-paper); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.sim__toggle[aria-pressed="true"] { background: var(--color-paper); color: var(--color-ink); }
.sim__toggle:active { transform: scale(0.97); }
.sim__toggle:focus-visible { outline: 2px solid var(--color-focus-on-ink); outline-offset: 2px; }
.sim__help { font-size: var(--text-sm); color: var(--color-paper-3); max-width: 40ch; }
html:not(.js) .sim__stage { display: none; }
.sim__done { display: grid; gap: var(--space-md); width: 100%; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.sim__done p { font-size: var(--text-lg); }
.sim__done .actions { margin-top: 0; justify-content: center; }
.sim__note { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-paper-3); max-width: 60ch; }

@media (min-width: 40rem) {
  .sim__padwrap { width: 280px; height: 280px; }
  .sim__pad { width: 228px; height: 228px; }
  .sim__stage { padding: var(--space-xl); }
}
@media (min-width: 60rem) {
  .sim { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
  .sim__stage { position: sticky; top: calc(var(--nav-h) + var(--space-lg)); }
}
@media (prefers-reduced-motion: reduce) {
  [data-phase="compress"].is-guided.is-running .sim__guide { animation: none; }
  .sim__pad { transition: background-color var(--dur-short) linear; }
  .sim__pad.is-pressed { transform: none; background: var(--color-ink); }
}
@media (hover: hover) and (pointer: fine) {
  .sim__toggle:hover { background: var(--color-paper); color: var(--color-ink); }
  .btn--step:hover { background: var(--color-paper); color: var(--color-ink); }
  .sim__pad:not(:disabled):hover { box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-paper) 30%, transparent); }
}

/* ---------- Phones: one screen per block ----------
 * Under 60rem each block is sized to the screen that is left once the bar (and, where it shows, the dock) is drawn,
 * so the hero, the four trainings and the CPR simulator each read whole without scrolling down.
 * svh is the screen with the browser bar showing, the smallest it gets, so nothing hides under the bar. */
.sim__progress { display: none; }
@media (max-width: 59.99rem) {
  :root {
    --screen: calc(100svh - var(--nav-h) - env(safe-area-inset-top, 0px));
    --text-section: clamp(1.875rem, 3.2svh + 0.75rem, 2.5rem);
  }
  h2 { max-width: none; }
  .head { gap: var(--space-xs); margin-bottom: var(--space-lg); }
  .head .lead { font-size: var(--text-md); }

  /* Hero: the photograph takes whatever the text leaves, the text never runs past the screen */
  .hero { min-height: var(--screen); }
  .hero__photo { flex: 1 1 0; min-height: 96px; }
  .hero__base { padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); }
  .hero__base h1 { font-size: clamp(2rem, 4.6svh + 0.6rem, 3.25rem); line-height: 0.98; }
  .hero__base .lead { margin-top: var(--space-xs); font-size: var(--text-md); line-height: 1.4; }
  .hero__grid { gap: var(--space-md); }
  .hero__grid .actions { gap: var(--space-sm); }
  .nav__links li:has(> .btn) { display: none; } /* the dock already holds the booking button */

  /* Trainings: the four tabs on one row, nothing cut at the edge; the photo becomes a band */
  #services .head .lead { display: none; }
  .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); margin: 0 0 var(--space-sm); padding: var(--space-sm) 0 0; overflow: visible; }
  .seg [role="tab"] { min-height: 48px; padding: var(--space-2xs); font-size: var(--text-xs); line-height: 1.15; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
  .panel { gap: var(--space-sm); padding-top: 0; }
  .panel > .photo { aspect-ratio: auto; height: clamp(80px, 12svh, 180px); border-radius: 0 0 var(--radius-card) var(--radius-card); }
  .panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the selected tab already names it */
  .points { margin-top: 0; }
  .points li { grid-template-columns: 20px minmax(0, 1fr); padding-block: 6px; font-size: var(--text-sm); line-height: 1.4; }
  .more { margin-top: var(--space-2xs); }

  /* CPR simulator, phones: the pad shows once the steps are done */
  .js .sim__stage[data-phase="locked"] { display: none; }
}

/* ---------- CPR simulator, every size: one step at a time under a progress bar, the pad beside its readout ---------- */
.sim { gap: var(--space-sm); }
.js .sim__progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.sim__progress li { padding-top: var(--space-xs); border-top: 3px solid var(--color-rule-2); font-size: var(--text-xs); color: var(--color-paper-3); white-space: nowrap; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.sim__progress b { font-weight: 500; }
.sim__progress li.is-active, .sim__progress li.is-done { border-top-color: var(--color-accent-on-ink); color: var(--color-paper); }
.sim__progress li.is-done b::after { content: " ✓"; }

.js .sim__steps { border-top: 0; }
.js .sim__steps > li:not(.is-active) { display: none; }
.js .sim__steps > li { display: block; padding: var(--space-md); border: 0; border-radius: var(--radius-card); background: var(--color-ink-2); color: var(--color-paper-3); }
.js .sim__steps > li::before { content: none; }
.js .sim__steps > li.is-active p { display: block; margin-top: var(--space-2xs); }
.js .sim__steps .btn { width: 100%; margin-top: var(--space-md); white-space: normal; text-align: center; line-height: 1.1; }

.sim__stage {
  --pad: min(42vw, 27svh, 232px);
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "pad readout" "pad stats" "controls controls" "help help" "done done";
  align-items: center; justify-items: stretch; gap: var(--space-sm); padding: var(--space-md); text-align: left;
}
.sim__padwrap { grid-area: pad; width: var(--pad); height: var(--pad); }
.sim__pad { width: 81%; height: 81%; font-size: var(--text-lg); }
.sim__readout { grid-area: readout; justify-items: start; align-self: end; gap: var(--space-2xs); }
.sim__rate { font-size: clamp(2.25rem, 5.5svh, 3.5rem); }
.sim__verdict { min-height: 28px; font-size: var(--text-sm); }
.sim__stats { grid-area: stats; grid-template-columns: minmax(0, 1fr); align-self: start; border-top: 0; }
.sim__stats > div { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 var(--space-xs); padding-block: var(--space-2xs); border-top: var(--rule-hair) solid var(--color-rule-2); }
.sim__stats > div + div { border-left: 0; }
.sim__stats dt { order: 0; font-size: var(--text-xs); }
.sim__stats dd { font-size: var(--text-md); }
.sim__stats dd b { font-size: var(--text-xl); }
.sim__controls { grid-area: controls; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs); }
.sim__toggle { padding: 0 var(--space-2xs); font-size: var(--text-xs); line-height: 1.15; }
.sim__help { grid-area: help; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the pad itself says what to do; still read out to screen readers */
.sim__done { grid-area: done; text-align: center; }
.sim__done p { font-size: var(--text-md); }
.sim__note { margin-top: var(--space-md); font-size: var(--text-xs); }

@media (min-width: 60rem) {
  .sim { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-md) var(--space-3xl); }
  .sim__progress { grid-column: 1; grid-row: 1; align-self: end; }
  .sim__steps { grid-column: 1; grid-row: 2; align-self: start; }
  .sim__stage { --pad: min(240px, 30svh); grid-column: 2; grid-row: 1 / span 2; position: static; gap: var(--space-sm) var(--space-xl); padding: var(--space-lg); }
  .sim__help { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; text-align: left; } /* the keyboard hint, for those with one */
}
/* About on phones: the stage fills the first screen, the mission folds after its first paragraph,
 * and the three trainers become a sideways rail, one card to a screen, portrait beside the name */
.prose .more { margin-top: 0; }
.prose .more p + p { margin-top: var(--space-md); }
@media (min-width: 60rem) { .prose .more > summary { display: none; } }
@media (max-width: 59.99rem) {
  .stage { display: flex; flex-direction: column; gap: var(--space-lg); min-height: var(--screen); padding-block: var(--space-xl) var(--space-lg); }
  .stage .actions { margin-top: var(--space-lg); }
  .stage .photo { flex: 1 1 0; min-height: 180px; aspect-ratio: auto; }

  .split { gap: var(--space-md); }
  .split__photo { margin-top: var(--space-md); aspect-ratio: auto; height: clamp(110px, 17svh, 200px); } /* a band, so the card still holds the text */
  .prose p:first-child { font-size: var(--text-md); line-height: 1.5; }
  .prose .more { margin-top: calc(-1 * var(--space-xs)); }
  .prose .more p { font-size: var(--text-sm); }
  .prose .more p + p { margin-top: var(--space-sm); }

  .rows > li { gap: var(--space-2xs); padding-block: var(--space-sm); }
  .rows p, .head .lead:has(+ .rows), .trio p { font-size: var(--text-sm); line-height: 1.45; }

  .trio > li { padding-block: var(--space-md); }
  .trio p { margin-top: var(--space-2xs); }

  .team { grid-auto-flow: column; grid-auto-columns: 88%; gap: var(--space-sm); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-xs); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
  .team > li { scroll-snap-align: start; display: grid; grid-template-columns: 104px minmax(0, 1fr); align-content: start; gap: var(--space-sm) var(--space-md); padding: var(--space-md); border: 0; border-radius: var(--radius-card); background: var(--color-paper-2); }
  .team__photo { grid-row: 1 / span 2; grid-column: 1; margin: 0; }
  .team .team__award { grid-row: 2; grid-column: 2; align-self: start; margin-top: 0; font-size: var(--text-xs); }
  .team h3 { grid-row: 1; grid-column: 2; align-self: end; }
  .team p:not(.team__award), .team .more { grid-column: 1 / -1; }
  .team > li > p:not(.team__award) { margin-top: 0; font-size: var(--text-sm); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; line-clamp: 9; overflow: hidden; }
  .team > li:has(.more[open]) > p { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; } /* "Lire la suite" gives the whole text back */
  .team .more { margin-top: calc(-1 * var(--space-xs)); }
  .team .more p { font-size: var(--text-sm); }
  .team .more summary + p { margin-top: 0; }
}
@media (min-width: 40rem) and (max-width: 59.99rem) { .team { grid-auto-columns: 46%; } }

/* Short phones (an SE, a landscape tilt): the leads give way first */
/* Phones shorter than 700px: the mission photo gives way so the text and its "Lire la suite" stay above the dock */
@media (max-width: 59.99rem) and (max-height: 700px) {
  .split__photo { display: none; }
  .stage { gap: var(--space-md); padding-block: var(--space-lg) var(--space-md); }
  .stage .photo { min-height: 110px; }
  .stage .actions { margin-top: var(--space-md); }
  /* the footer tightens so it still fits one screen */
  .footer[data-card] { padding-top: var(--space-lg); }
  .footer[data-card] .footer__grid { gap: var(--space-sm) var(--gap-columns); }
  .footer__lead p { margin-top: var(--space-xs); }
  .footer a { min-height: 32px; }
  .footer__address { padding-block: var(--space-2xs); }
  .footer__map, .footer__maplinks { display: none; } /* too short a screen: the address in Contact still opens the map */
  .footer[data-card] .footer__legal { margin-top: var(--space-sm); padding-top: var(--space-sm); }
}
@media (max-width: 59.99rem) and (max-height: 640px) {
  .hero__base .lead, #rcp .head .lead { display: none; }
  /* once the pad is live, the progress bar and the pad's own label carry the step */
  .sim:has(.sim__stage:not([data-phase="locked"])) .sim__steps { display: none; }
}

/* ---------- Phones: the page as a stack of full-screen cards ----------
 * Under 60rem the page scrolls as any page does (the smoothest scroll a phone has) and always comes to rest on a card
 * ([data-card]): never between two, but a quick fling may pass several (no scroll-snap-stop).
 * Cards are sized to the screen with the browser bar showing (svh), so nothing hides under the bar; when the bar slides
 * away the next card shows a little at the bottom.
 * A card fills the screen under the bar; its content sits in the middle, clear of the dock where the dock shows.
 * Cards whose content changes height (a training tab, a CPR step, a "Lire la suite") start at the top instead
 * ([data-card-top]), so what is above the change never moves. The footer is the last card, full screen too.
 * A card that grows past the screen (a "Lire la suite" opened, the longest training) scrolls freely inside before the next stop. */
@media (max-width: 59.99rem) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
  .nav { border-bottom: 0; box-shadow: 0 1px 0 var(--color-rule); } /* a line that takes no height, so the bar is exactly --nav-h and the cards meet it */
  .seg [role="tab"] { scroll-snap-align: none; } /* the tabs are a grid here, not a strip: they must not become stops of the page */
  [data-card] { --dock-space: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); min-height: var(--screen); scroll-snap-align: start; }
  [data-card="full"] { --dock-space: 0px; } /* the dock hides over the simulator and the booking */
  [data-card]:not([data-card="bare"]):not([data-card="photo"]) {
    display: flex; flex-direction: column; justify-content: center;
    padding-block: var(--space-lg) calc(var(--space-lg) + var(--dock-space));
  }
  [data-card]:not([data-card="bare"]):not([data-card="photo"])[data-card-top] { justify-content: flex-start; padding-top: var(--space-xl); }
  /* Footer: a full-screen card; the wordmark on top, the links spread through the middle, the legal line on the bottom */
  .footer[data-card] { display: flex; flex-direction: column; padding-block: var(--space-xl) calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); } /* the dock hides over it */
  /* The footer is the last card, so the page cannot scroll past it: when the browser bar slides away and the screen grows,
     a footer sized to the smaller screen could not reach the top, and the card before it would show above. It follows the
     screen as it is (dvh) instead; being last, its growing moves nothing above it. */
  .footer[data-card] { min-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px)); }
  .footer[data-card] > .container { flex: 1; display: flex; flex-direction: column; }
  .footer[data-card] .footer__grid { flex: 1; align-content: space-evenly; }
  .footer[data-card] .footer__legal { margin-top: var(--space-lg); }
  .footer__social { grid-column: 1 / -1; }
  .footer__social ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); } /* the three networks on one line */
  .footer__tagline { display: none; } /* on phones the map takes its place */
  .footer[data-card] .footer__legal { margin-top: var(--space-md); }
  .footer__map { height: clamp(96px, 12svh, 180px); margin-top: var(--space-md); }
  .footer .footer__maplinks a { min-height: 36px; }

  /* Booking: its two halves are a card each */
  #call-to-action { padding-block: 0; }
  #call-to-action .book { gap: 0; }
  #call-to-action .facts { margin-top: var(--space-lg); }
  .mail { border-top: 0; }
  #call-to-action .mail { background: transparent; } /* a card of its own here: the same ink as the card before it */

  /* The certificates photo fills its card */
  [data-card="photo"] { display: flex; flex-direction: column; padding-block: 0 calc(var(--space-md) + var(--dock-space)); }
  [data-card="photo"] .photo { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }

  /* Figures: the three numbers on one row, the offer under them */
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures > div { padding: var(--space-md) var(--space-sm) var(--space-md) 0; }
  .figures > div:nth-child(2), .figures > div:nth-child(3) { padding-left: var(--space-sm); border-left: var(--rule-hair) solid var(--figures-rule); }
  .figures dd { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .figures .figures__offer { margin-top: var(--space-md); padding: var(--space-md); }

  /* Reviews: one to a screen, edge to edge of the text column; the arrows below move between them */
  .rail { grid-auto-columns: 100%; padding-bottom: 0; }

  /* Footer: the last card, two columns of links */
  .footer { padding-top: var(--space-xl); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
  .footer__lead { grid-column: 1 / -1; }
  .footer a { min-height: 36px; }
}

/* ---------- Reviews and the certificates photo, one card ----------
 * Phones: the photo as a band on top, then the reviews one at a time. Computers: the photo on the left, the reviews on the right. */
.avis__grid { display: grid; gap: var(--space-lg); }
.avis__photo { aspect-ratio: auto; height: clamp(120px, 22svh, 220px); }
.avis__caption { margin-top: var(--space-xs); }
.avis__body { min-width: 0; }
.avis__body .head { margin-bottom: var(--space-md); }
.avis .rail { max-width: none; margin: 0; padding-inline: 0; scroll-padding-inline: 0; align-items: stretch; } /* every review card as tall as the tallest */
.avis .rail cite { margin-top: auto; } /* the names line up at the bottom of the cards */
/* A long review folds (seven lines on computers, four on phones), with "Lire tout" to open it */
.avis blockquote:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.avis .rail-more { align-self: flex-start; min-height: 44px; margin: calc(-1 * var(--space-xs)) 0; padding: 0; border: 0; background: none; color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule); text-decoration-thickness: 2px; text-underline-offset: 0.2em; cursor: pointer; }
.avis .rail-more:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 59.99rem) {
  .avis__grid { gap: var(--space-md); }
  .avis__caption, .avis .head .lead { display: none; } /* the photo's alt and the title say it; the card keeps to one screen */
  .avis__photo { height: clamp(100px, 18svh, 200px); }
  .avis .rail > li { padding: var(--space-md); gap: var(--space-xs); }
  .avis .rail blockquote { font-size: var(--text-md); }
  .avis .rail .score { font-size: var(--text-lg); }
  .avis .rail-nav { margin-top: var(--space-sm); }
  /* a long review folds to four lines so one essay does not push the arrows off the screen */
  .avis blockquote:not(.is-open) { -webkit-line-clamp: 4; line-clamp: 4; }
}
@media (max-width: 59.99rem) and (max-height: 700px) {
  .avis__photo { height: clamp(96px, 17svh, 160px); }
  .avis [data-reviews-total] { display: none; }
  .avis blockquote:not(.is-open) { -webkit-line-clamp: 3; line-clamp: 3; }
}
@media (min-width: 60rem) {
  .avis__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
  /* the photo keeps its own wide frame (ceiling and floor cut) instead of stretching to the reviews' height */
  .avis__photo { aspect-ratio: 3 / 2; height: auto; }
  .avis__body { display: flex; flex-direction: column; justify-content: center; }
  .avis__body .head { grid-template-columns: minmax(0, 1fr); }
  .avis .rail { grid-auto-columns: calc((100% - var(--gap-columns)) / 2); }
}

/* ---------- Le saviez-vous ? ----------
 * The original page's words on the ink, its red bar kept as a rule beside the text; then the articles as a rail like the reviews. */
.know-intro { background: var(--color-ink); color: var(--color-paper); }
.know > * { max-width: 62ch; }
.know h1 { color: var(--color-paper); }
.know__lead { margin-top: var(--space-md); font: var(--display-weight) var(--text-xl)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.know__body { margin-top: var(--space-lg); padding-left: var(--space-lg); border-left: var(--rule-tone) solid var(--color-accent); display: grid; gap: var(--space-sm); }
.know__motto { margin-top: var(--space-lg); font: var(--display-weight) var(--text-xl)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.know__motto b { color: var(--color-accent-on-ink); font-weight: inherit; }
.news { background: var(--color-paper-2); }
.news .rail { max-width: none; margin: 0; padding-inline: 0; scroll-padding-inline: 0; align-items: stretch; } /* every article card as tall as the tallest */
.news__item h3 { font-size: var(--text-lg); }
.news__item > p:not(.news__source) { color: var(--color-ink-2); }
.news__source { font-size: var(--text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent-deep); }
.news__item .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 59.99rem) {
  .know h1 { font-size: var(--text-section); }
  .know__lead, .know__motto { font-size: var(--text-lg); }
  .know__body { margin-top: var(--space-md); padding-left: var(--space-md); gap: var(--space-xs); }
  .know__body p { font-size: var(--text-sm); line-height: 1.5; }
  .know__motto { margin-top: var(--space-md); }
}
@media (max-width: 59.99rem) and (max-height: 700px) {
  .know h1 { font-size: var(--text-2xl); }
  .know__lead, .know__motto { margin-top: var(--space-sm); font-size: var(--text-md); }
  .know__body { margin-top: var(--space-sm); gap: 6px; }
  .know__body p { font-size: var(--text-xs); line-height: 1.45; }
}
@media (min-width: 60rem) and (max-height: 760px) {
  .know__lead { font-size: var(--text-xl) !important; }
  .know__body { margin-top: var(--space-md); gap: var(--space-xs); }
  .know__motto { margin-top: var(--space-md); }
}
@media (min-width: 60rem) {
  .know__lead { font-size: var(--text-2xl); }
  .news .rail { grid-auto-columns: calc((100% - 2 * var(--gap-columns)) / 3); }
}

/* ---------- Permis B ----------
 * The old page's sections as cards: the law on the ink, then the certificate, the two ways to ask, the timing and who to call.
 * Ticks and step numbers in the action red, the one accent. */
.permis-intro { background: var(--color-ink); color: var(--color-paper); }
.permis > * { max-width: 64ch; }
.permis h1 { color: var(--color-paper); max-width: 18ch; }
.permis__kicker { font-size: var(--text-sm); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent-on-ink); }
.permis h1 + .permis__sub, .permis__kicker + h1 { margin-top: var(--space-sm); }
.permis__sub { margin-top: var(--space-lg); font-size: var(--text-xl); color: var(--color-paper); }
.permis p:not(.permis__kicker) { margin-top: var(--space-sm); }
.permis__text { margin-top: var(--space-md); color: var(--color-ink-2); }
.checks { display: grid; gap: var(--space-sm); margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 0.2em; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); font-size: 12px; font-weight: 500; }
.permis-split { display: grid; gap: var(--space-xl); align-items: start; }
.permis .lead { color: var(--color-paper-3); } /* course pages: the lead sits on the ink */
.course-how { margin-top: var(--space-xl); }
.callout { padding: var(--space-lg); border-left: var(--rule-tone) solid var(--color-accent); border-radius: 0 var(--radius-card) var(--radius-card) 0; background: var(--color-paper-2); }
.callout h3 { font-size: var(--text-lg); }
.callout p { margin-top: var(--space-xs); color: var(--color-ink); }
.ways { display: grid; gap: var(--space-md); }
.ways.rail { max-width: none; margin: 0; padding: 0; scroll-padding-inline: 0; align-items: stretch; } /* phones swipe between the two ways; computers see both */
.ways > .way { scroll-snap-align: start; }
.way { padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }
.way h3 { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-lg); }
.way__n { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); }
.way > p { margin-top: var(--space-sm); }
.way__mail { font-weight: 500; overflow-wrap: anywhere; }
.way__label { font-weight: 500; }
.dots { margin: var(--space-xs) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.dots li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: baseline; }
.dots li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); transform: translateY(-0.2em); }
.steps { margin: var(--space-sm) 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--space-xs); }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-sm); font-weight: 500; }
.permis-ways { background: var(--color-paper-2); }
.help { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-ink); color: var(--color-paper); }
.help h3 { font-size: var(--text-lg); color: var(--color-paper); }
.help > p { margin-top: var(--space-xs); color: var(--color-paper); }
.help__list { margin: var(--space-sm) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.help__list a { display: inline-flex; align-items: center; min-height: 40px; color: var(--color-paper); text-decoration: underline; text-decoration-color: var(--color-accent-on-ink); text-underline-offset: 0.2em; }
.help__list li:last-child { padding-top: var(--space-xs); }
@media (max-width: 59.99rem) {
  .permis h1 { font-size: var(--text-section); }
  .permis p, .permis .checks li { font-size: var(--text-sm); line-height: 1.5; }
  .permis__sub { margin-top: var(--space-md); font-size: var(--text-lg); }
  .permis-split { gap: var(--space-lg); }
  .callout, .way, .help { padding: var(--space-md); }
  .permis-ways .head .lead { font-size: var(--text-sm); }
  .way { font-size: var(--text-sm); }
  .ways { gap: var(--space-sm); }
}
@media (min-width: 60rem) {
  .permis-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
  .ways.rail { grid-auto-columns: calc((100% - var(--space-lg)) / 2); gap: var(--space-lg); }
}
/* Eight links in the bar: closer together, and a size smaller below 70rem, so they keep to one line */
@media (min-width: 60rem) and (max-width: 80rem) { .nav__links { gap: var(--space-md) !important; } }
@media (min-width: 60rem) and (max-width: 70rem) { .nav__links { gap: 10px !important; } .nav__links a:not(.btn) { font-size: var(--text-xs) !important; } .nav__links .btn { padding-inline: var(--space-sm); } }
@media (min-width: 60rem) { .nav__links a { white-space: nowrap; } .wordmark { flex-shrink: 0; } .wordmark span { white-space: nowrap; } }
/* The language link joins the bar: under 70rem the bar's own gaps close up so the Dutch labels, a little longer, still fit */
@media (min-width: 60rem) and (max-width: 70rem) { .nav__bar { column-gap: var(--space-md); } .lang { margin-left: calc(var(--space-2xs) - var(--space-md)); } }
@media (max-width: 59.99rem) and (max-height: 700px) {
  .permis h1 { font-size: var(--text-2xl); }
  .permis__sub { margin-top: var(--space-sm); font-size: var(--text-md); }
  .permis p, .permis .checks li { font-size: var(--text-xs); }
  .permis p:not(.permis__kicker) { margin-top: var(--space-xs); }
  .checks { gap: var(--space-xs); margin-top: var(--space-sm); }
  .permis-split { gap: var(--space-md); }
  .help > p { display: none; }
  .help__list a { min-height: 32px; }
  .help, .callout { padding: var(--space-sm) var(--space-md); }
  .permis__text { margin-top: var(--space-sm); font-size: var(--text-sm); }
  .way { padding: var(--space-sm) var(--space-md); }
  .steps, .dots { gap: 4px; }
  .steps li::before { width: 22px; height: 22px; }
}
@media (min-width: 60rem) and (max-height: 760px) {
  .permis h1 { font-size: var(--text-section); }
  .permis__sub { margin-top: var(--space-md); }
}

/* ---------- Computers: the same stack of full-screen cards ----------
 * From 60rem each section fills the window under the bar and the scroll comes to rest on one, as on phones.
 * The booking close is one card here (its two halves sit side by side); the dock does not exist. */
@media (min-width: 60rem) {
  :root { --screen: calc(100svh - var(--nav-h)); }
  html { scroll-snap-type: y mandatory; scroll-padding-top: var(--nav-h); }
  .nav { border-bottom: 0; box-shadow: 0 1px 0 var(--color-rule); }
  [data-card], #call-to-action { min-height: var(--screen); scroll-snap-align: start; }
  .book > [data-card] { min-height: 0; scroll-snap-align: none; }
  :is([data-card]:not([data-card="bare"]):not([data-card="photo"]), #call-to-action):not(.book > *) {
    display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-xl);
  }
  [data-card]:not([data-card="bare"]):not([data-card="photo"])[data-card-top] { justify-content: flex-start; padding-top: var(--space-2xl); }
  .head { margin-bottom: var(--space-xl); }

  /* The certificates photo fills its card, the caption under it */
  [data-card="photo"] { display: flex; flex-direction: column; padding-block: 0 var(--space-lg); }
  [data-card="photo"] .photo { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }

  /* Footer: the last card; the wordmark and the link columns in the middle, the legal line on the bottom */
  .footer[data-card] { display: flex; flex-direction: column; padding-block: var(--space-2xl) var(--space-xl); }
  .footer[data-card] > .container { flex: 1; display: flex; flex-direction: column; }
  .footer[data-card] .footer__grid { flex: 1; align-content: center; }
  .footer__map { height: clamp(180px, 30svh, 320px); }

  /* What it takes for each section to hold in one window, down to a 1366x768 laptop */
  :is([data-card], #call-to-action) h2 { max-width: none; }
  [data-card]:not([data-card="bare"]):not([data-card="photo"])[data-card-top] { padding-top: var(--space-xl); }
  .hero__photo { min-height: 120px; }
  .panel { padding-top: 0; }
  .panel > .photo { min-height: 0; height: auto; align-self: stretch; }
  .points li { padding-block: var(--space-xs); }
  .facts > div { padding-block: var(--space-sm); }
  .rows > li { padding-block: var(--space-md); }
  .team__photo { aspect-ratio: auto; height: clamp(140px, 22svh, 260px); margin-bottom: var(--space-md); }
  .team p:not(.team__award) { margin-top: var(--space-sm); }
  .team > li > p:not(.team__award) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
  .team > li:has(.more[open]) > p { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; } /* "Lire la suite" gives the whole text back */
  .gallery { grid-auto-rows: clamp(140px, 27svh, 320px); }
  .gallery > li:nth-child(1) { grid-column: span 6; grid-row: span 2; }
  .gallery > li:nth-child(n+2) { grid-column: span 3; grid-row: auto; }
}
/* Items that snap inside their own strip on phones are not page stops where the strip is a plain grid */
.seg [role="tab"] { scroll-snap-align: none; }
@media (min-width: 40rem) { .gallery > li { scroll-snap-align: none; } }
/* Short computer windows (a 1366x768 laptop, 1280x720): everything a notch tighter so each section still holds */
@media (min-width: 60rem) and (max-height: 760px) {
  :root { --text-section: clamp(2rem, 1.6vw + 1rem, 2.75rem); --text-display: clamp(2.75rem, 3.6vw + 1rem, 4.25rem); }
  :is([data-card]:not([data-card="bare"]):not([data-card="photo"]), #call-to-action):not(.book > *) { padding-block: var(--space-lg); }
  [data-card]:not([data-card="bare"]):not([data-card="photo"])[data-card-top] { padding-top: var(--space-lg); }
  .head { margin-bottom: var(--space-lg); }
  .head .lead, .prose p:first-child { font-size: var(--text-md); }
  .seg { margin-bottom: var(--space-md); }
  .points li { padding-block: 6px; font-size: var(--text-sm); }
  .rail blockquote { font-size: var(--text-md); }
  .rail > li { padding: var(--space-md); }
  .rail-nav { margin-top: var(--space-sm); }
  .team__photo { height: clamp(120px, 20svh, 200px); }
  .team > li > p:not(.team__award) { -webkit-line-clamp: 5; line-clamp: 5; }
  .sim__note { margin-top: var(--space-sm); }
}

/* ---------- About: the original type, in ink and white ----------
 * The About page keeps the original capital display h3 and buttons, the band and the trainer bars,
 * in two colours only: the ink and the paper. Every text is ink on the light ground, paper on the ink;
 * the red stays only on the action buttons. The phone layout (cards, rail, folds) stays. */
.page-about h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.2; text-transform: uppercase; }
.page-about .btn { font: var(--display-weight) var(--text-lg)/1 var(--font-display); text-transform: uppercase; }
.page-about main :is(.lead, p, h3, cite, .caption) { color: var(--color-ink); }
.page-about .well { background: var(--color-paper); border-top: var(--rule-bar) solid var(--color-ink); }
.page-about .rows { border-top: var(--rule-bar) solid var(--color-ink); }
.page-about .rows h3 { font-size: var(--text-2xl); }
.page-about .field-ink { background: var(--color-ink); color: var(--color-paper); }
.page-about .field-ink :is(h2, p, .lead, summary) { color: var(--color-paper); }
.page-about .field-ink .more summary { text-decoration-color: var(--color-paper); }
.page-about .field-sky { background: var(--color-ink); color: var(--color-paper); border-block: 0; }
.page-about .field-sky :is(h2, h3, p, .lead) { color: var(--color-paper); }
.page-about .trio { border-top: var(--rule-bar) solid var(--color-paper); }
.page-about .trio > li { border-color: var(--color-rule-2); }
.page-about .trio h3 { font-size: var(--text-section); }
.page-about .team > li { border-top: var(--rule-tone) solid var(--color-ink); }
.page-about .team h3 { font-size: var(--text-2xl); }
.page-about .more summary { text-decoration-color: var(--color-ink); }
@media (max-width: 59.99rem) {
  .page-about .rows h3, .page-about .team h3 { font-size: var(--text-xl); }
  .page-about .team > li { background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-top: var(--rule-tone) solid var(--color-ink); }
  .page-about .trio h3 { font-size: var(--text-2xl); }
}

/* ---------- Course pages: the Ledge hero of /, the programme beside its photograph, who on the ink, the photographs, the booking of / ---------- */
.course-prog { display: grid; gap: var(--space-xl); }
.course-prog .callout { margin-top: var(--space-lg); }
.course-prog__photo { aspect-ratio: 4 / 3; }
@media (min-width: 60rem) {
  .course-prog { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: stretch; }
  .course-prog__photo { aspect-ratio: auto; height: 100%; min-height: 480px; }
}
.course-who { background: var(--color-ink); color: var(--color-paper); }
.course-who :is(h2, h3) { color: var(--color-paper); }
.course-who :is(.lead, .rows p) { color: var(--color-paper-3); }
.course-who .rows, .course-who .rows > li { border-color: var(--color-rule-2); }
.course-who__more { margin-top: var(--space-lg); }
@media (min-width: 40rem) {
  .gallery--pair { grid-auto-rows: 360px; }
  .gallery--pair > li:nth-child(n) { grid-column: span 6; grid-row: auto; }
}
@media (min-width: 60rem) {
  .gallery--trio > li:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .gallery--trio > li:nth-child(n+2) { grid-column: span 5; }
}
