/* ==========================================================================
   Service d'Oncologie Radiothérapie — HEGP
   Titres en Calibri Light, aucun gras, textes justifiés avec césure française.
   ========================================================================== */

/* ------------------------------------------------------------------ fontes */
/* Calibri Light si la police est installée (postes équipés d'Office) ; sinon
   Lato Light, de la même famille humaniste. Licence OFL : voir
   assets/fonts/LICENSE-Lato.txt. */
@font-face {
  font-family: "Titre HEGP";
  src: local("Calibri Light"), local("CalibriLight"), local("Calibri-Light"),
       url("/assets/fonts/lato-300-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Titre HEGP";
  src: local("Calibri Light"), local("CalibriLight"), local("Calibri-Light"),
       url("/assets/fonts/lato-300-latin-ext.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- variables */
:root {
  /* `only light` (et non `light`) : le mot-clé `only` interdit au navigateur
     d'assombrir lui-même la page. Sans lui, le mode sombre automatique de
     Chrome — que l'utilisateur active dans ses réglages, et qui ne passe pas
     par prefers-color-scheme — inverse le site entier. */
  color-scheme: only light;

  --brand: #0d7490;
  --brand-strong: #0a5a72;
  --brand-soft: #e7f2f6;
  --brand-softer: #f2f9fb;

  --ink: #223037;
  --ink-strong: #0f1e26;
  --ink-muted: #5d7079;
  --ink-faint: #8699a1;
  --bg: #f7f9fa;
  --surface: #ffffff;
  --surface-alt: #eff5f7;
  --line: #e2eaee;
  --line-strong: #c7d6dc;

  --focus: #0d7490;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Titre HEGP", Calibri, Carlito, "Segoe UI", var(--font);

  --shell: 76rem;
  --measure: 70ch;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 39, 48, .04);
  --shadow: 0 2px 6px rgba(16, 39, 48, .05), 0 10px 30px rgba(16, 39, 48, .05);
  --shadow-lg: 0 6px 18px rgba(16, 39, 48, .07), 0 30px 60px rgba(16, 39, 48, .1);

  /* Le verre de l'en-tête : une seule définition, partagée par le cartouche
     et les panneaux du méga-menu, pour qu'ils ne divergent jamais. */
  --glass-bg: rgba(255, 255, 255, .6);
  --glass-edge: rgba(255, 255, 255, .8);
  --glass-blur: saturate(180%) blur(18px);

  --header-h: 4.5rem;
  --header-gap: .7rem;
  /* Hauteur réellement occupée par l'en-tête flottant : la barre plus le
     jeu qui l'écarte des bords. Les ancres et le sommaire s'y calent. */
  --header-total: calc(var(--header-h) + 2 * var(--header-gap));
  --pad-x: clamp(1rem, .4rem + 2.4vw, 2.75rem);
}

/* -------------------------------------------------------- réinitialisation */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
img { border-radius: var(--radius-sm); }

/* Aucun gras : les titres sont en Calibri Light, graisse 300. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.008em;
  color: var(--ink-strong);
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.15rem); letter-spacing: -.021em; }
h2 { font-size: clamp(1.5rem, 1.22rem + 1.25vw, 2.15rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.2rem, 1.08rem + .55vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
li > ul, li > ol { margin-top: .4em; }
li::marker { color: var(--brand); }

a { color: var(--brand); text-decoration-thickness: .06em; text-underline-offset: .2em; }
a:hover { color: var(--brand-strong); }

/* « Pas de gras » : l'emphase passe par une teinte plus soutenue et une
   graisse intermédiaire, jamais par du gras. */
strong, b { font-weight: 500; color: var(--ink-strong); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: var(--surface-alt); font-weight: 500; }

blockquote {
  margin-inline: 0;
  padding: .9rem 1.25rem;
  border-left: 2px solid var(--brand);
  background: var(--brand-softer);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ----------------------------------------------------------- justification */
/* Sans césure, un texte justifié creuse des « rivières » blanches, surtout
   dans une colonne étroite : `hyphens: auto` avec lang="fr" les évite. */
.prose p, .prose li, .prose dd, .prose blockquote,
.page__lede, .hero__lead, .band__head p, .card__text,
.callout p, .notfound p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphenate-limit-chars: 7 4 3;
  /* Une référence bibliographique ou une URL n'offre aucun point de césure :
     sur un écran étroit, elle déborderait de la colonne. */
  overflow-wrap: break-word;
}
/* Un item qui contient lui-même une liste n'a qu'une ligne d'amorce : la
   justifier la disloque. */
.prose li:has(> ul), .prose li:has(> ol) { text-align: left; hyphens: manual; }

/* ------------------------------------------------------------- utilitaires */
/* Une seule largeur de contenant pour tout le site : l'en-tête, l'accueil, les
   pages d'article et le pied de page tombent sur les mêmes marges. */
.wrap { width: min(100% - (2 * var(--pad-x)), var(--shell)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--radius-sm); transition: top .15s;
}
.skip-link:focus { top: .5rem; color: #fff; }

/* ----------------------------------------------------------------- en-tête */
/* L'en-tête ne barre plus la page : c'est un cartouche arrondi translucide,
   en suspension, qui laisse voir le dégradé et le texte défiler dessous. Le
   conteneur sticky reste transparent ; tout l'habillage est sur le cartouche. */
.masthead {
  position: sticky; top: 0; z-index: 50;
  padding: var(--header-gap) 0;
  pointer-events: none;
}
.masthead__inner {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
  padding-inline: clamp(.85rem, 1.5vw, 1.4rem);
}
/* Le verre est porté par ce calque, et non par .masthead__inner lui-même :
   un élément qui filtre son arrière-plan devient la racine d'arrière-plan de
   ses descendants, et le flou des panneaux du méga-menu, calculé à l'intérieur
   du cartouche, ne voyait plus la page — ils restaient transparents et nets,
   donc illisibles. Sur un calque frère, chacun filtre bien la page. */
.masthead__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Même arrondi que les cartes et les panneaux du menu. */
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  /* Le liseré intérieur clair fait la lèvre du verre ; l'ombre portée creuse
     l'écart avec la page et achève de détacher le cartouche. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(16, 39, 48, .04),
    0 1px 2px rgba(16, 39, 48, .04),
    0 10px 28px rgba(16, 39, 48, .1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
/* Le bandeau d'accueil remonte derrière le cartouche : sans cela il flotterait
   sur une bande unie et l'effet de verre n'aurait rien à filtrer. */
.hero {
  margin-top: calc(-1 * var(--header-total));
  padding-top: var(--header-total);
}

/* Taille par défaut de toute icône : sans width ni height, un <svg> retombe
   sur les 300 × 150 px d'un objet remplacé. Les règles ciblées
   (.btn .icon, .icon-btn .icon…) restent prioritaires. */
.icon { width: 1em; height: 1em; flex: none; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name {
  font-family: var(--font-head); font-weight: 300;
  font-size: 1.22rem; letter-spacing: -.012em; color: var(--ink-strong);
}
.brand__sub { font-size: .74rem; color: var(--ink-muted); letter-spacing: .01em; }
.brand__name, .brand__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------- menu principal */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
/* `display: flex` supprime la boîte de ligne du <li>, plus haute que son
   bouton, qui décalerait l'onglet vers le haut par rapport aux actions. */
/* `margin: 0` annule la marge générale des <li>, qui décalerait les onglets
   verticalement par rapport aux actions. */
.nav__item { position: relative; display: flex; align-items: center; margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .6rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 400; color: var(--ink);
  text-decoration: none; white-space: nowrap; border: 0; background: none;
  font-family: inherit; cursor: pointer;
}
.nav__link:hover { background: var(--brand-soft); color: var(--brand-strong); }
.nav__link[aria-current="true"] { color: var(--brand-strong); box-shadow: inset 0 -1px 0 var(--brand); }
.nav__chev { width: .68em; height: .68em; transition: transform .18s; opacity: .6; }
.nav__link[aria-expanded="true"] { background: var(--brand-soft); color: var(--brand-strong); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__panel {
  position: absolute; top: calc(100% + 1rem); left: 50%; translate: -50% 0;
  min-width: 18rem; padding: .65rem;
  /* Exactement le verre du cartouche : mêmes valeurs, même flou. */
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--shadow-lg);
  display: none;
}
.nav__panel[data-open] { display: block; }
/* L'espace entre l'onglet et son panneau n'appartient à aucun élément ; ce
   pont invisible le couvre pour que la souris qui descend ne quitte pas
   l'onglet et ne referme pas le menu. */
.nav__panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1.1rem; height: 1.1rem;
}
.nav__panel--2col { min-width: 35rem; }
.nav__panel--2col .nav__sublist { columns: 2; column-gap: .5rem; }
.nav__sublist { list-style: none; margin: 0; padding: 0; }
.nav__sublist li { margin: 0; break-inside: avoid; }
.nav__sublink {
  display: block; padding: .45rem .65rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.4;
}
.nav__sublink:hover { background: var(--brand-soft); color: var(--brand-strong); }
.nav__sublink[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.nav__all {
  display: block; margin-top: .4rem; padding: .55rem .65rem;
  border-top: 1px solid var(--line); font-size: .87rem;
  color: var(--brand); text-decoration: none; border-radius: var(--radius-sm);
}
.nav__all:hover { background: var(--brand-soft); }
.nav__all .icon { width: .95em; height: .95em; vertical-align: -.1em; }

.header-actions { display: flex; align-items: center; gap: .4rem; flex: none; }
.header-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .7rem; border-radius: var(--radius-sm);
  color: var(--ink-muted); text-decoration: none; font-size: .92rem; white-space: nowrap;
}
.header-link:hover { background: var(--brand-soft); color: var(--brand-strong); }
.header-link .icon { width: 1.05em; height: 1.05em; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-muted);
  cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--brand-soft); border-color: var(--line-strong); color: var(--brand-strong); }
.icon-btn .icon { width: 1.15rem; height: 1.15rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.15rem; border-radius: 999px;
  font-weight: 400; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-strong); }
.btn--light:hover { background: #eaf4f8; color: var(--brand-strong); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--glass {
  background: var(--glass); color: var(--brand-strong);
  border-color: var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { background: var(--surface); color: var(--brand-strong); border-color: var(--brand); }
.btn .icon { width: 1.05em; height: 1.05em; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------- adaptatif */
/* L'en-tête tient la marque, six menus et les actions sur une ligne. Sous
   80rem le menu bascule dans le tiroir ; entre 80 et 92rem le bouton de
   rendez-vous garde son icône mais perd son libellé pour libérer la place. */
@media (max-width: 80rem) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; }
  /* Le menu disparaissant, c'est aux actions de pousser contre le bord droit. */
  .header-actions { margin-left: auto; }
}
@media (max-width: 84rem) {
  .header-actions .btn--primary span { display: none; }
  .header-actions .btn--primary { padding: .65rem .85rem; }
}
@media (max-width: 48rem) {
  /* Le cartouche se resserre sur téléphone : une barre trop haute mangerait
     l'écran, et le jeu latéral suffit à la garder en suspension. */
  :root { --header-h: 3.9rem; --header-gap: .55rem; }
  .masthead__inner { gap: .5rem; padding-inline: .7rem; }
  .header-actions { gap: .25rem; }
  /* Le don reste accessible depuis le tiroir et le pied de page. */
  .header-link { display: none; }
}
@media (max-width: 26rem) {
  /* Sur les écrans les plus étroits (320 px), le nom du service cède la place
     aux boutons plutôt que de pousser l'en-tête hors de la fenêtre. */
  .masthead__inner { padding-inline: .35rem; gap: .35rem; }
  .header-actions { gap: .2rem; }
  .icon-btn { width: 2.3rem; height: 2.3rem; }
  .brand { flex: 0 1 auto; min-width: 0; gap: .5rem; }
  .brand__sub { display: none; }
  .brand__name { font-size: .95rem; }
  .header-actions .btn--primary { padding: .6rem .7rem; }
}

/* ----------------------------------------------------------- tiroir mobile */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--surface);
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: 3rem;
}
.drawer[hidden] { display: none; }
.drawer__head {
  position: sticky; top: 0; background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem var(--pad-x); border-bottom: 1px solid var(--line);
}
.drawer__body { padding: 1rem var(--pad-x) 0; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem .25rem; font-family: var(--font-head); font-weight: 300;
  font-size: 1.2rem; color: var(--ink-strong); cursor: pointer; list-style: none;
}
.drawer__summary::-webkit-details-marker { display: none; }
.drawer__summary .icon { width: .8rem; height: .8rem; transition: transform .18s; opacity: .55; }
.drawer__group[open] > .drawer__summary .icon { transform: rotate(180deg); }
.drawer__group[open] > .drawer__summary { color: var(--brand-strong); }
.drawer__links { list-style: none; margin: 0; padding: 0 0 .8rem; }
.drawer__links a {
  display: block; padding: .55rem .25rem .55rem .95rem;
  border-left: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-size: .96rem;
}
.drawer__links a:hover, .drawer__links a[aria-current="page"] {
  border-left-color: var(--brand); color: var(--brand-strong); background: var(--brand-softer);
}
.drawer__cta { display: grid; gap: .6rem; padding: 1.5rem .25rem 0; }
/* --------------------------------------------------------------- recherche */
.search {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10, 25, 31, .5); backdrop-filter: blur(4px);
  display: grid; align-items: start; justify-items: center;
  padding: clamp(1rem, 6vh, 5rem) 1rem 1rem;
}
.search[hidden] { display: none; }
.search__box {
  width: min(100%, 44rem); background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column; max-height: 80vh;
}
.search__field { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.search__field .icon { width: 1.2rem; height: 1.2rem; color: var(--ink-faint); flex: none; }
.search__input {
  flex: 1; border: 0; background: none; font: inherit; font-size: 1.08rem;
  color: var(--ink); padding: .25rem 0;
}
.search__input:focus { outline: none; }
.search__results { list-style: none; margin: 0; padding: .45rem; overflow-y: auto; }
.search__results li { margin: 0; }
.search__results a {
  display: block; padding: .65rem .8rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
}
.search__results a:hover, .search__results a:focus,
.search__results [data-active] a { background: var(--brand-soft); }
.search__title { display: block; font-family: var(--font-head); font-size: 1.14rem; color: var(--ink-strong); }
.search__crumb { font-size: .79rem; color: var(--ink-faint); }
.search__excerpt { font-size: .88rem; color: var(--ink-muted); display: block; margin-top: .2rem; }
.search__empty, .search__hint { padding: 1.1rem 1.3rem; color: var(--ink-muted); font-size: .92rem; }
.search mark { background: color-mix(in srgb, var(--brand) 20%, transparent); color: inherit; border-radius: 3px; padding: 0 .12em; }

/* ------------------------------------------------------------ fil d'Ariane */
.breadcrumb { padding-top: 1.35rem; font-size: .85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem .55rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .55rem; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "›"; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* -------------------------------------------------------------------- page */
.page { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.page__head { padding: 1.6rem 0 2rem; }
.page__head--tight { padding-bottom: .5rem; }
.page__lede { font-size: 1.14em; color: var(--ink-muted); max-width: var(--measure); margin-bottom: 0; }

.layout { display: grid; gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: start; }
/* Sans `min-width: 0`, une référence bibliographique impose sa largeur
   minimale à la colonne et fait déborder la page sur un petit écran. */
.layout > * { min-width: 0; }
@media (min-width: 64rem) {
  .layout--with-toc { grid-template-columns: minmax(0, 1fr) 17rem; }
  .layout--with-toc .toc { order: 2; }
}

/* ---------------------------------------------------------------- sommaire */
.toc {
  position: sticky; top: calc(var(--header-total) + 1.25rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  font-size: .9rem; max-height: calc(100vh - var(--header-total) - 3rem); overflow-y: auto;
}
.toc__title {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-faint); margin-bottom: .7rem;
  list-style: none; cursor: default;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__details > :is(ol, ul) { margin-top: .1rem; }
.toc :is(ol, ul) { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: .34rem 0 .34rem .8rem;
  border-left: 1px solid var(--line); color: var(--ink-muted); text-decoration: none; line-height: 1.45;
}
.toc a:hover { color: var(--brand); border-left-color: var(--line-strong); }
.toc a[aria-current] { color: var(--brand-strong); border-left-color: var(--brand); }
@media (max-width: 63.99rem) {
  .toc { position: static; max-height: none; margin-bottom: 1.75rem; }
  .toc__title {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; margin-bottom: 0; font-size: .82rem; color: var(--ink);
  }
  .toc__title::after {
    content: ""; width: .68rem; height: .68rem; border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor; rotate: 45deg; translate: 0 -25%;
    transition: rotate .18s;
  }
  .toc__details[open] > .toc__title { margin-bottom: .7rem; }
  .toc__details[open] > .toc__title::after { rotate: -135deg; translate: 0 25%; }
}

/* ----------------------------------------------------------------- article */
/* La justification de 70 signes s'applique au corps du texte, pas aux titres :
   « Chefs de clinique des Universités - Assistants Hospitaliers » passait
   sinon sur deux lignes alors que la colonne offre la place. */
.prose { max-width: none; }
.prose > :not(h2):not(h3):not(.section-block),
.prose > .section-block > :not(h2):not(h3) { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin-top: 2em; padding-top: .95em; scroll-margin-top: calc(var(--header-total) + 1rem);
  border-top: 1px solid var(--line);
}
.prose > h2:first-child,
.prose > .section-block:first-child > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.8em; scroll-margin-top: calc(var(--header-total) + 1rem); }
.prose h4 { margin-top: 1.6em; color: var(--ink-muted); }
/* Deux titres qui se suivent ne doivent pas ouvrir une bande vide. */
.prose :is(h2, h3, h4) + :is(h2, h3, h4) { margin-top: .9em; padding-top: 0; border-top: 0; }
.prose img { display: block; margin: 2em auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .87rem; color: var(--ink-muted); text-align: center; margin-top: .65rem; }
.prose a[target="_blank"]::after {
  content: "\2197"; display: inline-block; margin-left: .15em;
  font-size: .8em; vertical-align: .15em; opacity: .55; text-decoration: none;
}
.prose table { display: block; overflow-x: auto; white-space: nowrap; }
@media (min-width: 45rem) { .prose table { display: table; white-space: normal; } }

.section-block { scroll-margin-top: calc(var(--header-total) + 1rem); }

/* ------------------------------------------------------------------ encart */
.callout {
  display: flex; gap: .95rem; padding: 1.15rem 1.35rem; margin: 2em 0;
  background: var(--brand-softer); border: 1px solid var(--line);
  border-left: 2px solid var(--brand); border-radius: var(--radius-sm);
  font-size: .96rem;
}
.callout .icon { width: 1.3rem; height: 1.3rem; color: var(--brand); flex: none; margin-top: .25rem; }
.callout > div > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ cartes */
.cards { display: grid; gap: clamp(.9rem, 1.6vw, 1.4rem); list-style: none; margin: 0; padding: 0; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19.5rem), 1fr)); }
.cards li { margin: 0; }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  text-decoration: none; color: inherit;
  transition: border-color .16s, background-color .16s, transform .16s;
}
.card:hover { border-color: var(--brand); background: var(--brand-softer); transform: translateY(-1px); color: inherit; }
.card__title {
  display: block; font-family: var(--font-head); font-weight: 300;
  font-size: 1.28rem; line-height: 1.25; color: var(--brand-strong); margin-bottom: .45rem;
}
.card__text { font-size: .92rem; color: var(--ink-muted); margin: 0; line-height: 1.6; }
.card__more { margin-top: auto; padding-top: 1rem; font-size: .87rem; color: var(--brand); display: flex; align-items: center; gap: .35rem; }
.card__more .icon { width: 1em; height: 1em; }

/* ----------------------------------------------------------------- accueil */
/* Bandeau d'accueil : quatre halos pastel sur fond presque blanc, recouverts
   d'un grain fin. Le grain est un bruit SVG en URI de données — aucune requête
   — et il évite les bandes que montrerait un dégradé pur sur grand écran. */
:root {
  --glass: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .92);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

.hero {
  position: relative; isolation: isolate;
  overflow: hidden;
  background:
    /* Voile final : il éteint le dégradé dans le fond de la page plutôt que de
       le laisser s'interrompre net au bas du bloc. */
    linear-gradient(180deg, rgba(247, 249, 250, 0) 58%, var(--bg) 97%),
    radial-gradient(56rem 32rem at 4% -14%, #bfdeee 0%, rgba(191, 222, 238, 0) 64%),
    radial-gradient(48rem 30rem at 88% -8%, #cfe8dd 0%, rgba(207, 232, 221, 0) 62%),
    radial-gradient(42rem 26rem at 76% 88%, #f8ddcd 0%, rgba(248, 221, 205, 0) 60%),
    radial-gradient(36rem 24rem at 20% 96%, #d8def2 0%, rgba(216, 222, 242, 0) 58%),
    linear-gradient(168deg, #eef7fa 0%, #f6fafb 52%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: .5; mix-blend-mode: multiply;
  /* Le masque éteint le grain avec le dégradé ; sinon son arête reste
     visible en travers de la page. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 88%);
}
.hero__inner {
  display: grid; gap: clamp(2rem, 4.5vw, 4rem); align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 62rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .8fr); }
}
.hero h1 { text-wrap: balance; }
.hero__lead { font-size: clamp(1.06rem, 1rem + .4vw, 1.24rem); color: var(--ink-muted); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__facts {
  margin: 0; padding: 1.75rem 1.85rem;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero__facts-title {
  margin: 0 0 1.15rem; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint);
}
.fact + .fact { margin-top: 1.05rem; padding-top: 1.05rem; border-top: 1px solid var(--line); }
.fact dt { font-size: .8rem; color: var(--ink-muted); margin-bottom: .15rem; }
.fact dd { margin: 0; font-size: .98rem; line-height: 1.55; }
.fact dd a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }

.quicklinks {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  list-style: none; margin: clamp(2.25rem, 4.5vw, 3.25rem) 0 0;
  padding: 0 0 clamp(2.25rem, 4.5vw, 3.25rem);
}
/* Les accès rapides appartiennent au bloc d'ouverture et reposent sur la
   partie du dégradé déjà éteinte. */
.quicklinks--float {
  margin-top: 0; position: relative; z-index: 1;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.quicklinks--float .quicklink { box-shadow: var(--shadow); }
.quicklinks li { margin: 0; }
.quicklink {
  display: flex; align-items: center; gap: .8rem; height: 100%;
  padding: 1rem 1.2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-size: .96rem;
  transition: border-color .16s, transform .16s;
}
.quicklink:hover { border-color: var(--brand); transform: translateY(-1px); color: var(--brand-strong); }
.quicklink .icon { width: 1.35rem; height: 1.35rem; color: var(--brand); flex: none; }

.band { padding: clamp(3rem, 6vw, 5rem) 0; }
.band--alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.band__head { max-width: var(--measure); margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.band__head p { color: var(--ink-muted); margin-bottom: 0; }

.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.qlist li { margin: 0; }
.qlist a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem 1.25rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
}
.qlist a:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-softer); }
.qlist .icon { width: 1rem; height: 1rem; color: var(--brand); flex: none; }

.featured {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
  padding: 1.6rem 1.85rem; background: var(--brand-soft);
  border-radius: var(--radius-lg);
}
.featured__label { font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-strong); }
.featured__title { font-family: var(--font-head); font-weight: 300; font-size: 1.4rem; margin: .2rem 0 0; color: var(--ink-strong); }
.featured .btn { margin-left: auto; }

/* ---------------------------------------------------------------- chiffres */
.band--stats {
  background:
    radial-gradient(40rem 22rem at 15% -30%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 62%),
    var(--brand-softer);
  border-block: 1px solid var(--line);
}
.band__head--center { margin-inline: auto; text-align: center; }
.band__head--center p { text-align: center; }

.stats {
  display: grid; gap: clamp(.9rem, 1.8vw, 1.5rem); list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.stat {
  margin: 0; padding: 1.75rem 1.5rem 1.6rem; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.stat__icon {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong);
  margin-bottom: .9rem;
}
.stat__icon .icon { width: 1.3rem; height: 1.3rem; }
.stat__value {
  font-family: var(--font-head); font-weight: 300; line-height: 1;
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.4rem);
  color: var(--brand-strong); margin: 0 0 .5rem;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin: 0; font-size: .95rem; color: var(--ink-muted); line-height: 1.55; }
.stats__note {
  margin: 1.5rem 0 0; text-align: center; font-size: .82rem; color: var(--ink-faint);
}

/* ---------------------------------------------------------- blocs alternés */
.features { display: grid; gap: clamp(3rem, 6vw, 5.5rem); }
.feature {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
@media (min-width: 58rem) {
  .feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .feature--flip .feature__media,
  .feature--flip .steps { order: 2; }
}
.feature__media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--surface-alt);
}
.feature__media img {
  display: block; width: 100%; height: 100%; aspect-ratio: 16 / 11;
  object-fit: cover;
}
.feature__body h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.05rem); line-height: 1.22;
  margin: 0 0 .85rem; color: var(--ink-strong); text-wrap: balance;
}
.feature__body > p {
  color: var(--ink-muted); text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto;
}
.kicker {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand); margin: 0 0 .6rem;
}
.ticks { list-style: none; margin: 1.35rem 0 1.75rem; padding: 0; display: grid; gap: .6rem; }
.ticks li { margin: 0; display: flex; gap: .65rem; align-items: flex-start; font-size: .96rem; }
.ticks .icon { width: 1.1rem; height: 1.1rem; color: var(--brand); flex: none; margin-top: .3rem; }

/* Le parcours de soin est une suite d'étapes : le bloc les numérote au lieu
   d'afficher une photographie. */
.steps {
  list-style: none; margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 0;
  background: var(--brand-softer); border: 1px solid var(--line);
  border-radius: var(--radius-lg); counter-reset: etape;
}
.steps li {
  margin: 0; counter-increment: etape;
  display: grid; grid-template-columns: 2.1rem 1fr; gap: .9rem;
  padding: .85rem 0; font-size: .97rem; line-height: 1.5;
}
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(etape);
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--brand-strong); font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.steps li span { align-self: center; }

/* ------------------------------------------------------------ bande finale */
/* L'appel final n'occupe plus toute la largeur : c'est une carte turquoise
   posée sur le fond de la page, entre l'article mis en avant et le pied de
   page pastel. */
.closing { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.closing__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.5rem clamp(2rem, 5vw, 4rem); justify-content: space-between;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.25rem);
  border-radius: var(--radius-lg);
  color: #e8f4f8;
  box-shadow: var(--shadow);
  background:
    radial-gradient(34rem 18rem at 90% -50%, rgba(255, 255, 255, .2), transparent 62%),
    linear-gradient(105deg, var(--brand) 0%, var(--brand-strong) 100%);
}
.closing h2 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.05rem); }
.closing p { margin: 0; max-width: 46ch; color: #d3e9f1; }
.closing__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------ apparition au défilement */
/* Sans JavaScript la classe `js` n'existe pas et tout reste visible. */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .8, .3, 1);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------- article d'accueil */
/* Vidéo à la une. Le format est vertical : la colonne qui l'accueille reste
   étroite, et le texte occupe la largeur restante plutôt que de s'étirer
   sous une image de 1 080 pixels de haut. */
.spotlight { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
.spotlight__video {
  display: block; width: 100%; max-width: 19rem; margin-inline: auto;
  aspect-ratio: 9 / 16; background: #0a2229; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.spotlight__text h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.1rem);
  line-height: 1.22; margin: 0 0 1.1rem; color: var(--ink-strong);
}
.spotlight__text .tag { margin-bottom: .9rem; }
.spotlight__text p {
  text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;
  hyphenate-limit-chars: 7 4 3;
}
.spotlight__cta { margin: 1.5rem 0 0; text-align: left; }
@media (min-width: 56rem) {
  .spotlight { grid-template-columns: 19rem minmax(0, 1fr); }
  .spotlight__video { margin-inline: 0; }
}

.home-article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.home-article h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.1rem);
  line-height: 1.22; margin: 0 0 1.1rem; color: var(--ink-strong);
}
.home-article p {
  text-align: justify; text-justify: inter-word;
  hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;
  hyphenate-limit-chars: 7 4 3;
}
.home-article p:last-child { margin-bottom: 0; }
.home-article .tag { margin-bottom: .9rem; }

/* -------------------------------------------------------------- pagination */
.pager { display: grid; gap: .85rem; margin-top: 3.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.pager a {
  display: block; padding: 1.05rem 1.25rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit;
}
.pager a:hover { border-color: var(--brand); background: var(--brand-softer); }
.pager__dir { font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.pager__title { display: block; font-family: var(--font-head); font-size: 1.14rem; color: var(--brand-strong); margin-top: .15rem; }
.pager a.is-next { text-align: right; }

/* ------------------------------------------------------------ pied de page */
.footer {
  position: relative; isolation: isolate; overflow: hidden;
  /* Redéfini ici : sur ce fond pastel, le gris habituel des libellés et de
     la ligne de bas de page passait sous le seuil de contraste AA. */
  --ink-muted: #465861;
  color: var(--ink);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; margin-top: auto;
  background:
    radial-gradient(46rem 26rem at 6% 118%, rgba(216, 222, 242, .72) 0%, rgba(216, 222, 242, 0) 60%),
    radial-gradient(42rem 24rem at 92% 112%, rgba(248, 221, 205, .7) 0%, rgba(248, 221, 205, 0) 58%),
    radial-gradient(52rem 28rem at 62% 140%, rgba(191, 222, 238, .72) 0%, rgba(191, 222, 238, 0) 62%),
    linear-gradient(180deg, var(--bg) 0%, #eff7fa 38%, #e9f2f6 100%);
}
.footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 180px 180px;
  opacity: .36; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
}
.footer a { color: var(--brand-strong); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.footer a:hover { color: #07485d; text-decoration-color: currentColor; }
.footer__grid { display: grid; gap: 2.25rem clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer h2 {
  font-family: var(--font); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.footer li { margin-bottom: .5rem; }
.footer address { font-style: normal; font-size: .93rem; line-height: 1.75; }
.footer__bottom {
  margin-top: 2.75rem; padding-top: 1.35rem; border-top: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: var(--ink-muted);
}

/* ------------------------------------------------------------------ divers */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.tag {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.sitemap-cols { columns: 2; column-gap: 2.75rem; }
@media (min-width: 55rem) { .sitemap-cols { columns: 3; } }
.sitemap-cols > * { break-inside: avoid; margin-bottom: 1.75rem; }
.sitemap-cols h2 { font-size: 1.28rem; margin-bottom: .6rem; }
.sitemap-cols ul { list-style: none; padding: 0; font-size: .95rem; }
.sitemap-cols a, .prose a { overflow-wrap: break-word; }
.sitemap-cols li { margin-bottom: .35rem; }

.notfound { text-align: center; padding: clamp(3.5rem, 11vh, 8rem) 0; }
.notfound h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
.notfound p { max-width: 48ch; margin-inline: auto; }

kbd {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .85em;
  padding: .1em .4em; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--surface-alt);
}

@media print {
  .masthead, .footer, .toc, .pager, .search, .drawer, .skip-link, .callout { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
}
