/* PAIBWS design tokens. Brand colours come from the association's own site and logo
   (#4678a2 blue, #7d8173 olive, #e3e699 lime, #dae4ec panel). Contrast of every text pair
   used below was checked against WCAG 2.1 AA (4.5:1 text, 3:1 large text and UI). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Inter-700.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/raleway-regular.woff") format("woff"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/raleway-semibold.woff") format("woff"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/raleway-bold.woff") format("woff"); }

/* Fallback faces sized to match the web fonts (measured with scripts/font-metrics.mjs). Text keeps its
   line breaks, and the page does not jump, when the real fonts finish loading. */
@font-face { font-family: "Inter Fallback"; font-weight: 400 500; src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 106.3%; ascent-override: 91.3%; descent-override: 22.6%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Liberation Sans Bold"), local("Helvetica Neue Bold"), local("Helvetica-Bold"); size-adjust: 100.8%; ascent-override: 96.2%; descent-override: 23.8%; line-gap-override: 0%; }
@font-face { font-family: "Raleway Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Liberation Sans Bold"), local("Helvetica Neue Bold"), local("Helvetica-Bold"); size-adjust: 99.3%; ascent-override: 92.6%; descent-override: 25.2%; line-gap-override: 0%; }

:root {
  --ink: #17222e;
  --muted: #4a5866;
  --line: #cfd9e2;
  --line-soft: #e4ebf1;
  --paper: #ffffff;
  --tint: #eef3f7;
  --panel: #dae4ec;

  --blue-900: #0f2f4f;
  --blue-800: #14406b;
  --blue-700: #1d5a94; /* links: 7.1:1 on white */
  --blue-600: #336699;
  --blue-500: #4678a2;
  --olive: #7d8173;
  --olive-700: #5f6355; /* small labels: 6.2:1 on white */
  --lime: #e3e699;
  --lime-200: #f0f2c9;
  --error: #a33a2a;
  --ok: #2c6e49;

  --font-display: "Raleway", "Raleway Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 73.75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 5px;
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

/* Big monitors: the whole layout is in rem, so raising the root size makes everything grow together
   instead of leaving a small column in the middle of a large screen. */
@media (min-width: 1800px) { html { font-size: 112.5%; } }
@media (min-width: 2300px) { html { font-size: 137.5%; } }
@media (min-width: 3000px) { html { font-size: 175%; } }
@media (min-width: 4000px) { html { font-size: 225%; } }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-h, var(--header-h)) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--font-body);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 { margin: 0; color: var(--blue-900); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.012em; font-feature-settings: "lnum" 1; }
h1 { font-size: clamp(2.15rem, 1.35rem + 3.1vw, 3.6rem); line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); line-height: 1.15; text-wrap: balance; }
h3 { font: 600 1.2rem/1.3 var(--font-body); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; color: var(--blue-900); }

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

main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 0.7rem 1rem; background: var(--blue-900); color: #fff; font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
}
.skip-link:focus { top: 0; }

.eyebrow {
  margin: 0 0 0.9rem;
  font: 600 0.8rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-700);
}

.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 46rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: 1.2rem; }

a[href^="tel:"] { white-space: nowrap; }

.more { font-weight: 600; text-decoration: none; }
.more::after {
  content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.5em;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-0.1em);
  transition: transform 0.15s ease;
}
.more:hover { text-decoration: underline; }
.more:hover::after { transform: rotate(45deg) translate(0.12em, -0.22em); }

.js-only { display: none; }
.js .js-only { display: revert; }

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

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
  flex-wrap: wrap;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: clamp(9.5rem, 22vw, 14.5rem); height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-left: auto; }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.site-nav__link {
  display: block; padding: 0.55rem 0.7rem;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem;
  border-radius: 3px;
  box-shadow: inset 0 -3px 0 transparent;
}
.site-nav__link:hover { color: var(--blue-900); box-shadow: inset 0 -3px 0 var(--line); text-decoration: none; }
.site-nav__link[aria-current="page"] { color: var(--blue-900); font-weight: 600; box-shadow: inset 0 -3px 0 var(--blue-600); }
.site-nav__end { display: flex; align-items: center; gap: 0.9rem; }
.lang-link {
  font-weight: 600; font-size: 0.95rem; padding: 0.45rem 0.1rem; text-decoration: none; color: var(--blue-700);
  border-bottom: 2px solid var(--line);
}
.lang-link:hover { border-bottom-color: var(--blue-600); }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.8rem; background: transparent; color: var(--blue-900);
  border: 1.5px solid var(--blue-800); border-radius: var(--radius);
  font: 600 0.95rem var(--font-body); cursor: pointer;
}
.nav-toggle__x { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__x { display: block; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { display: none; }

/* Below this width the menu folds behind a button. The row of links needs about 1170px on one line in French,
   the longer language (measured), so the fold starts a little above that. */
@media (max-width: 1200px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 0.5rem 0 1rem; margin-left: 0; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; }
  .js .site-nav__link { padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--line-soft); box-shadow: none; }
  .js .site-nav__link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue-600); padding-left: 0.9rem; }
  .js .site-nav__end { justify-content: space-between; padding-top: 0.5rem; }
  /* An open menu taller than the window scrolls inside the header instead of running off the screen. */
  .js .site-header.is-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  /* Without JavaScript the nav simply wraps under the logo, and is too tall to pin to the top of the window. */
  .site-nav { width: 100%; margin-left: 0; }
  html:not(.js) .site-header { position: static; }
}
/* A pinned header is a convenience. On a short window (a phone on its side, a browser zoomed to 400%) or a very
   narrow one it would take half the screen, so it scrolls away with the page instead. */
@media (max-height: 520px), (max-width: 359px) {
  .site-header { position: static; }
  .js .site-header.is-open { max-height: none; overflow: visible; }
}

/* ---------- Preview notice (added by site.js on addresses other than the real domain) ---------- */
.preview-bar {
  padding: 0.6rem var(--gutter); background: var(--lime-200); color: var(--ink);
  border-bottom: 1px solid #d4d884; font-size: 0.92rem; line-height: 1.45; text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; min-height: 44px;
  background: var(--blue-800); color: #fff;
  border: 2px solid var(--blue-800); border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--blue-900); border-color: var(--blue-900); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--blue-800); }
.btn--ghost:hover { background: var(--blue-800); color: #fff; }
.btn--light { background: #fff; color: var(--blue-900); border-color: #fff; }
.btn--light:hover { background: var(--lime); border-color: var(--lime); color: var(--blue-900); }
.btn--small { padding: 0.5rem 1rem; min-height: 40px; font-size: 0.95rem; }
.btn[aria-current="page"] { background: var(--blue-900); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.linklike {
  background: none; border: 0; padding: 0; margin-left: 0.75rem; font: inherit; color: var(--blue-700);
  text-decoration: underline; cursor: pointer;
}
[data-print] { display: none; }
.js [data-print] { display: inline; }

/* ---------- Chips (filters) ---------- */
.filter-bar { display: none; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.js .filter-bar { display: flex; }
.filter-bar__label { font-weight: 600; color: var(--muted); font-size: 0.9rem; margin-right: 0.2rem; }
.chip {
  padding: 0.45rem 1rem; min-height: 40px;
  background: #fff; color: var(--blue-900);
  border: 1.5px solid var(--blue-800); border-radius: 999px;
  font: 600 0.95rem var(--font-body); cursor: pointer;
}
.chip:hover { background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--blue-800); color: #fff; }

/* ---------- Notice ---------- */
.notice {
  margin: 0 0 1.75rem; padding: 1rem 1.25rem;
  background: var(--tint); border-left: 4px solid var(--blue-600); border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 60rem;
}
.notice p { margin: 0; }

/* ---------- Level badges and legend ---------- */
.lvl {
  display: inline-block; min-width: 2.4em; padding: 0.18rem 0.55rem; border-radius: 3px;
  font: 600 0.8rem/1.3 var(--font-body); text-align: center; letter-spacing: 0.02em; white-space: nowrap;
}
.lvl--hl { background: var(--blue-800); color: #fff; }
.lvl--sl { background: var(--panel); color: var(--blue-900); }
.lvl--ab { background: var(--lime-200); color: var(--ink); box-shadow: inset 0 0 0 1px #d4d884; }
.lvl--self { background: #fff; color: var(--olive-700); box-shadow: inset 0 0 0 1px var(--olive); }
.lvl--core { background: var(--blue-600); color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 0 0 2.5rem; padding: 0; }
.legend > div { display: flex; align-items: center; gap: 0.6rem; }
.legend dt, .legend dd { margin: 0; }
.legend dd { color: var(--muted); font-size: 0.95rem; }

.tag {
  display: inline-block; padding: 0.05rem 0.4rem; margin-left: 0.2rem;
  font: 600 0.7rem/1.4 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--olive-700); border: 1px solid var(--olive); border-radius: 3px; vertical-align: 0.1em;
}

/* ---------- Forms ---------- */
.field { margin: 0 0 1.35rem; }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--blue-900); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.85rem; min-height: 46px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--olive); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue-800); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-800);
}
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error { margin: 0.4rem 0 0; color: var(--error); font-weight: 500; font-size: 0.95rem; }
.field--trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.form-status { margin-top: 1.25rem; }
/* Keep the status line in the page even when empty: some screen readers miss the first message of a live region that appears already filled. */
.form-status:empty { margin: 0; }
.form-status--error {
  padding: 1rem 1.25rem; border: 2px solid var(--error); border-radius: var(--radius); color: var(--ink); background: #fbf1ef;
}
.form-status--error strong { color: var(--error); }
.form-status--ok {
  padding: 1.25rem 1.5rem; border: 2px solid var(--ok); border-radius: var(--radius); background: #f0f7f3;
}
.form-status--ok h2 { font: 700 1.35rem/1.2 var(--font-display); color: var(--ok); margin-bottom: 0.4rem; }
.form-status--busy { color: var(--muted); }
.error-summary { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 2px solid var(--error); border-radius: var(--radius); background: #fbf1ef; }
.error-summary h2 { font: 700 1.1rem/1.3 var(--font-body); color: var(--error); margin-bottom: 0.5rem; }
.error-summary ul { padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--blue-900); color: #c9d8e6; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.site-footer a:hover { color: var(--lime); text-decoration-color: var(--lime); }
.site-footer :focus-visible { outline-color: var(--lime); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem 3rem; padding-block: clamp(2.5rem, 5vw, 4rem) 2.5rem; }
.site-footer__brand img { width: 15.6rem; height: auto; margin-bottom: 1.1rem; }
.site-footer__brand p { max-width: 24rem; margin: 0; }
.site-footer__h { font: 600 0.78rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: #a9bfd3; margin: 0 0 1rem; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer__person { color: #fff; font-weight: 600; margin-bottom: 0.6rem; }
.site-footer__person span { font-weight: 400; color: #c9d8e6; }
.site-footer__base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; justify-content: space-between;
  padding-block: 1.25rem 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9rem;
}
.site-footer__base p { margin: 0; }
.site-footer__base ul { display: flex; gap: 1.25rem; }
.site-footer__base li + li { margin-top: 0; }
.site-footer__credit { color: #a9bfd3; }
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Dark band ---------- */
.band { background: var(--blue-800); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.band h2 { color: #fff; margin-bottom: 0.6rem; }
.band p { color: #d9e5f0; max-width: 40rem; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; }
.band :focus-visible { outline-color: var(--lime); }

/* ---------- Windows High Contrast / forced colours ---------- */
/* States drawn only with a background or a box-shadow disappear when the system replaces colours. */
@media (forced-colors: active) {
  .chip[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .site-nav__link[aria-current="page"], .btn[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
  .field [aria-invalid="true"] { outline: 2px solid LinkText; outline-offset: 1px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--flush { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-foot { margin-top: 2rem; }

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(0.5rem, 2vw, 1.25rem); border-bottom: 1px solid var(--line-soft); }
.page-head__inner { padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.page-head h1 { max-width: 20ch; margin-bottom: 1.1rem; }
.page-head .lede { margin: 0; }

/* ---------- Home: hero + map ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
/* The French association name is much longer than the English one. */
html[lang="fr"] .hero h1 { font-size: clamp(1.85rem, 1.05rem + 2.3vw, 3rem); }
.hero .lede { margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 2.25rem; }
.facts { display: flex; gap: 0; margin: 0; padding: 0; }
.facts > div { display: flex; flex-direction: column-reverse; padding-right: 1.75rem; margin-right: 1.75rem; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { margin: 0; font: 700 clamp(2rem, 1.6rem + 1.4vw, 2.7rem)/1 var(--font-display); color: var(--blue-800); font-feature-settings: "lnum" 1; }
.hero__map { min-width: 0; }

.map { display: block; width: 100%; height: auto; overflow: visible; }
.map__land { fill: #f0f4f8; stroke: #fff; stroke-width: 1.5; fill-rule: evenodd; }
.map__prov { fill: var(--panel); stroke: #fff; stroke-width: 2.5; fill-rule: evenodd; stroke-linejoin: round; }
.map__lake { fill: #fff; fill-rule: evenodd; }
.map__region { font: 600 12px var(--font-body); letter-spacing: 0.3em; fill: var(--olive-700); }
.map__pin { cursor: pointer; text-decoration: none; outline: none; }
.map__halo { fill: var(--blue-800); opacity: 0; transition: opacity 0.15s ease; }
.map__dot { fill: var(--blue-800); stroke: #fff; stroke-width: 3; transition: fill 0.15s ease; }
.map__count { font: 700 14px var(--font-body); fill: #fff; pointer-events: none; }
.map__city { font: 700 19px var(--font-display); fill: var(--blue-900); paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; font-feature-settings: "lnum" 1; }
.map__sub { font: 500 13px var(--font-body); fill: var(--muted); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.map__pin:hover .map__halo { opacity: 0.16; }
.map__pin:focus-visible .map__halo { opacity: 1; fill: rgba(20, 64, 107, 0.14); stroke: var(--blue-800); stroke-width: 3; }
.map__pin:hover .map__dot { fill: var(--blue-600); }
.map__pin:focus-visible .map__dot { stroke: var(--lime); stroke-width: 4; }
.map__pin:focus-visible .map__city { text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .map__city { font-size: 32px; stroke-width: 9px; }
  .map__sub { display: none; }
  .map__region { font-size: 22px; letter-spacing: 0.2em; }
  .map__dot { r: 22px; }
  .map__halo { r: 34px; }
  .map__count { font-size: 22px; }
  .map__count { transform: translateY(4px); }
}

/* ---------- Home: what we do ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.split__head { position: sticky; top: calc(var(--sticky-h, var(--header-h)) + 2rem); }
.steps { list-style: none; counter-reset: step; border-bottom: 1px solid var(--line); }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1.25rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; font: 700 1.7rem/1 var(--font-display); color: var(--blue-500); font-feature-settings: "lnum" 1; padding-top: 0.15rem; }
.steps h3 { margin-bottom: 0.4rem; color: var(--blue-900); }
.steps p { margin: 0; color: var(--ink); max-width: 38rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
}

/* ---------- Home: school ledger ---------- */
.ledger { list-style: none; border-top: 2px solid var(--blue-800); }
.ledger__row {
  display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr) auto; gap: 0.5rem 2.5rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.ledger__city { text-decoration: none; color: var(--blue-900); }
.ledger__city span { display: block; font: 700 1.6rem/1.15 var(--font-display); }
.ledger__city small { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--muted); }
.ledger__city:hover span { text-decoration: underline; text-decoration-thickness: 2px; }
.ledger__schools { margin: 0; }
.ledger__sep { color: var(--olive); }
.ledger__count { margin: 0; color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 760px) {
  .ledger__row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ---------- Home: audience ---------- */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 6vw, 5rem); }
.audience__col { border-top: 4px solid var(--blue-800); padding-top: 1.25rem; }
.audience__col h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 0.7rem; }
.audience__col p { max-width: 30rem; }
.link-list { list-style: none; margin-top: 1rem; }
.link-list li + li { margin-top: 0.55rem; }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list a::after {
  content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.55em;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-0.1em);
}
.link-list a:hover { text-decoration: underline; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Directory ---------- */
.region { margin-top: clamp(2rem, 4vw, 3rem); }
.region:first-of-type { margin-top: 0; }
.region[hidden] { display: none; }
.region__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--blue-800); padding-bottom: 0.6rem; }
.region__head p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.school {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3.4fr); gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.school__name { font: 700 1.3rem/1.25 var(--font-display); color: var(--blue-900); margin-bottom: 0.2rem; font-feature-settings: "lnum" 1; }
.school__prog { margin: 0 0 0.6rem; color: var(--olive-700); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.02em; }
.school__addr { font-style: normal; color: var(--ink); margin-bottom: 0.7rem; }
.school__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; font-size: 0.95rem; }
.school dl { margin: 0; }
.school dt { font: 600 0.74rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-700); margin-bottom: 0.3rem; }
.school dd { margin: 0; }
.school__role { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 0.1rem; }
.school__contact > div + div { margin-top: 0.9rem; }
/* Addresses break at the <wbr> points (after "@" and before dots); break-word is only the last resort. */
.email { overflow-wrap: break-word; }
.tbc { font-style: italic; color: var(--muted); }
.cell-note { display: block; font-size: 0.85rem; font-weight: 400; color: var(--muted); }
@media (max-width: 900px) {
  .school { grid-template-columns: 1fr 1fr; }
  .school__main { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .school { grid-template-columns: 1fr; }
}

/* ---------- Coordinators table ---------- */
.people-block { margin-top: clamp(2rem, 4vw, 3rem); }
.people-block:first-child { margin-top: 0; }
.people-block h2 { margin-bottom: 1rem; }
.people { width: 100%; border-collapse: collapse; }
.people thead th {
  text-align: left; padding: 0.75rem 1rem 0.75rem 0; font: 600 0.74rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--olive-700); border-bottom: 2px solid var(--blue-800);
}
.people tbody th, .people tbody td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.people tbody th { font-weight: 600; color: var(--blue-900); }
@media (max-width: 760px) {
  .people thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .people, .people tbody, .people tr, .people th, .people td { display: block; }
  .people tr { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
  .people tbody th, .people tbody td { padding: 0.15rem 0; border: 0; }
  .people td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--olive-700); font-size: 0.85rem; }
  html[lang="fr"] .people td::before { content: attr(data-label) "\00a0: "; }
  .people tbody th { font-size: 1.1rem; }
}

/* ---------- Courses ---------- */
.course-block { margin-top: clamp(2rem, 4vw, 3rem); }
.course-block:first-of-type { margin-top: 0; }
.course-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.course-filter { display: none; align-items: center; gap: 0.6rem; flex-wrap: wrap; max-width: 100%; min-width: 0; }
.js .course-filter { display: flex; }
.course-filter label { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.course-filter select { min-height: 42px; padding: 0.4rem 0.8rem; font: inherit; border: 1.5px solid var(--blue-800); border-radius: var(--radius); background: #fff; color: var(--ink); min-width: 0; width: min(100%, 26rem); }
.table-wrap { overflow-x: auto; }
.courses { width: 100%; border-collapse: collapse; min-width: 0; }
.courses thead th {
  text-align: left; vertical-align: bottom; padding: 0.7rem 0.9rem 0.7rem 0; font: 600 0.9rem/1.25 var(--font-body); color: var(--blue-900);
  border-bottom: 2px solid var(--blue-800);
}
.courses tbody th, .courses tbody td { text-align: left; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; font-weight: 400; }
.courses tbody th { font-weight: 600; color: var(--ink); }
.courses td.is-empty { color: var(--olive); }
.courses tbody tr:hover { background: var(--tint); }
.courses [hidden] { display: none; }
@media (max-width: 720px) {
  .courses thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .courses, .courses tbody, .courses tr, .courses th, .courses td { display: block; }
  .courses tr { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .courses tbody th, .courses tbody td { border: 0; padding: 0.2rem 0; }
  .courses tbody th { font-size: 1.05rem; color: var(--blue-900); margin-bottom: 0.25rem; }
  .courses td { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
  .courses td::before { content: attr(data-label); color: var(--muted); font-size: 0.92rem; }
  .courses td.is-empty { display: none; }
  .courses tbody tr:hover { background: transparent; }
}

/* ---------- Recognition ---------- */
.recog { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.recog__aside { background: var(--tint); padding: 1.5rem 1.6rem; border-radius: var(--radius); }
.recog__aside h2 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.plain-list { list-style: none; margin: 0 0 1rem; }
.plain-list li { padding: 0.45rem 0 0.45rem 1.25rem; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 0.5rem; height: 0.5rem; background: var(--blue-500); border-radius: 50%; }
.uni-group + .uni-group { margin-top: 2.5rem; }
.uni-group h2 { font-size: 1.6rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--blue-800); }
.uni-list { list-style: none; }
.uni-list > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.4rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.uni-links { list-style: none; display: grid; gap: 0.45rem; }
.uni-list__name { font-weight: 600; color: var(--blue-900); }
@media (max-width: 860px) { .recog { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .uni-list > li { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.5fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-form { max-width: 40rem; }
.contact-card { background: var(--tint); padding: 1.75rem 1.9rem; border-radius: var(--radius); border-top: 4px solid var(--blue-800); }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.contact-card__name { font-weight: 700; color: var(--blue-900); margin-bottom: 1rem; }
.contact-card__name span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.contact-card dl { margin: 0 0 1.2rem; }
.contact-card dt { font: 600 0.74rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-700); margin-bottom: 0.2rem; }
.contact-card dd { margin: 0 0 0.9rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Prose pages ---------- */
.prose-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.prose-grid__head h2 { position: sticky; top: calc(var(--sticky-h, var(--header-h)) + 2rem); }
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin: 2.25rem 0 0.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li + li { margin-top: 0.5rem; }
.defs { margin: 0; }
.defs > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font: 700 1.05rem/1.4 var(--font-display); color: var(--blue-900); }
.defs dd { margin: 0; }
.person__name { font: 700 1.5rem/1.2 var(--font-display); color: var(--blue-900); margin-bottom: 0.3rem; }
.person__role { color: var(--muted); }
@media (max-width: 860px) {
  .prose-grid { grid-template-columns: 1fr; }
  .prose-grid__head h2 { position: static; }
  .defs > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- News ---------- */
.news-list { list-style: none; max-width: 46rem; }
.news-item { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.news-item time { display: block; font-size: 0.85rem; color: var(--olive-700); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.3rem; }
.news-item h2, .news-item h3 { font: 700 1.4rem/1.25 var(--font-display); margin-bottom: 0.4rem; }

@media print {
  @page { margin: 1.6cm; }
  html { font-size: 11pt; }
  body { color: #000; background: #fff; }
  .preview-bar, .site-header, .nav-toggle, .skip-link, .filter-bar, .course-filter, .band, .site-footer__grid, [data-print], .hero__cta, .map { display: none !important; }
  .site-footer { background: none; color: #000; margin-top: 1.5rem; }
  .site-footer__base { border-top: 1px solid #999; color: #000; padding-block: 0.5rem; }
  .site-footer a, .site-footer__credit { color: #000; }
  .page-head { border: 0; padding-block: 0 1rem; }
  .section, .section--flush { padding-block: 0.5rem; }
  .school, .people tr, .courses tr, .uni-list li { break-inside: avoid; }
  .region__head, .people-block h2, .course-block__head { break-after: avoid; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]:not(.email)::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  .lvl { box-shadow: inset 0 0 0 1px #000; background: none !important; color: #000 !important; }
  /* A printed page is narrower than the phone breakpoint, so undo the stacked phone layout explicitly. */
  .people thead, .courses thead { position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
  .people, .courses { display: table; }
  .people tbody, .courses tbody { display: table-row-group; }
  .people thead, .courses thead { display: table-header-group; }
  .people tr, .courses tr { display: table-row; padding: 0; }
  .people th, .people td, .courses th, .courses td { display: table-cell; }
  .people td::before, .courses td::before { content: none !important; }
  .people { font-size: 9.5pt; table-layout: fixed; }
  .people tbody th, .people tbody td, .people thead th { padding: 0.45rem 0.6rem 0.45rem 0; }
  .people thead th:nth-child(1) { width: 15%; }
  .people thead th:nth-child(2) { width: 16%; }
  .people thead th:nth-child(3) { width: 20%; }
  .people thead th:nth-child(4) { width: 17%; }
  .people thead th:nth-child(5) { width: 32%; }
  .email { overflow-wrap: normal; }
  .people-block { break-inside: avoid; }
  .courses thead a::after, .people a::after, .school a::after, .uni-list a::after { content: none !important; }
  .school__links { display: none; }
  .school { grid-template-columns: 5fr 4fr 3.4fr; padding: 0.8rem 0; gap: 0.5rem 1.2rem; }
  .school__main { grid-column: auto; }
  .courses { font-size: 9.5pt; }
  .courses td { display: table-cell; justify-content: initial; }
  .courses td.is-empty { display: table-cell; }
}
