/* ═══════════════════════════════════════════════════════════
   Catalogue de formations — Pôle Formation Ithaque
   Direction : papeterie d'atelier. Fond craie, encre profonde,
   bleu Ithaque institutionnel, ocre sable comme unique accent.
   ═══════════════════════════════════════════════════════════ */

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

/* La règle « [hidden] { display: none } » du navigateur perd contre n'importe
   quelle règle de cette feuille qui pose un display (flex, grid…). Sans ce
   rappel, un élément masqué en JavaScript resterait visible. */
[hidden] { display: none !important; }

:root {
  /* Encres */
  --encre:      #10262e;
  --encre-2:    #3d5560;
  /* Assombri de 10 % le 24/08/2026 : le #6b7f88 d'origine ne donnait
     que 4,19:1 sur blanc et 3,86:1 sur la craie, sous le minimum AA
     de 4,5 pour du petit texte — or il porte les etiquettes de 10 px.
     La tonalite est inchangee, seule la clarte baisse. 5,02 et 4,62. */
  --encre-3:    #60727a;

  /* Bleu institutionnel Ithaque (repris du RA) */
  --ithaque:       #00597b;
  --ithaque-fonce: #003d56;
  --ithaque-clair: #e2eef3;

  /* Accent unique : un ocre sable, dans le registre du papier teinté.
     Déclaré ici seulement — il se propage aux six usages : surlignage des
     titres, filtre actif, badge, cases des objectifs, bouton de contact. */
  --surligne:      #e8c56a;
  --surligne-fonce: #cfa848;   /* survol et filets de la même famille */

  /* Couleurs de famille, reprises du RA 2025 : les deux sites d'Ithaque
     codent leurs familles de la même façon. Elles servent au filet de 3 px
     en tête de carte et au pictogramme. */
  --fam-fondamentaux: #00597b;
  --fam-medicales:    #e07820;
  --fam-publics:      #7b52ab;
  --fam-postures:     #2aaa8a;

  /* Deux de ces teintes sont trop claires pour porter du texte sur blanc :
     l'orange plafonne à 3,05 et le vert à 2,91, pour un minimum lisible de
     4,5. D'où ces variantes assombries, réservées au LIBELLÉ du groupe —
     mesurées à 4,60 et 4,59. Le filet et le pictogramme gardent la teinte
     vive : ce ne sont pas des textes. */
  --fam-medicales-txt: #b35f19;
  --fam-postures-txt:  #20846b;

  /* Supports */
  --craie:  #f5f6f2;
  --blanc:  #ffffff;
  --trait:  #dfe3da;
  --craie-fonce: #eff1ea;   /* fond du bandeau de données des étiquettes */
  --trait-fort: #c3cabb;

  --ombre-m: 0 4px 18px rgba(16,38,46,.10);

  --header-h: 62px;
  --page: 1080px;

  --display: 'Archivo', 'Archivo Expanded', 'Helvetica Neue', Arial, sans-serif;
  --texte:   'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--texte);
  background: var(--craie);
  color: var(--encre);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ithaque); }

/* Le geste signature : un trait de surligneur derrière le texte. */
.surligne {
  background-image: linear-gradient(var(--surligne), var(--surligne));
  background-repeat: no-repeat;
  background-size: 100% .42em;
  background-position: 0 88%;
  padding: 0 .08em;
}

/* ── EN-TÊTE ─────────────────────────────────────────────── */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(245,246,242,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
  z-index: 200;
}

.hd-in {
  max-width: var(--page);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hd-logo img { width: 104px; height: auto; display: block; }
.hd-sep { width: 1px; height: 26px; background: var(--trait-fort); flex-shrink: 0; }

.hd-nom {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  font-variation-settings: 'wdth' 112;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre);
  white-space: nowrap;
}

.hd-liens { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.hd-lien {
  font-size: 14px;
  color: var(--encre-2);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .14s, color .14s;
}
.hd-lien:hover { background: var(--blanc); color: var(--encre); }

.hd-cta {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--blanc);
  background: var(--ithaque);
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .14s;
}
.hd-cta:hover { background: var(--ithaque-fonce); }

/* ── TRAME DE PAGE ───────────────────────────────────────── */

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: calc(var(--header-h) + 52px) 32px 90px;
}

/* ── NAVIGATION DANS LA PAGE ─────────────────────────────── */

/* L'en-tête est fixe : sans ce décalage, un saut d'ancre depuis les liens
   de l'en-tête placerait le titre de section dessous. */
/* L'en-tete est fixe : sans cette marge, une ancre amene la section sous
   l'en-tete et son titre reste cache. Toute nouvelle section visee par
   le menu doit etre ajoutee ici. */
#catalogue, #agenda, #modalites, #documents {
  scroll-margin-top: calc(var(--header-h) + 22px);
}

/* Sommaire de page : masqué par défaut. Il n'apparaît qu'en dessous de 900 px
   (voir la requête média plus bas), quand les ancres de l'en-tête ne tiennent
   plus. Au-dessus, il ferait double emploi. */
.sur-page { display: none; }
.sur-page-lib {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-3);
}
.sur-page a {
  font-size: .95rem;
  color: var(--encre-2);
  text-decoration: none;
  border-bottom: 1px solid var(--trait-fort);
  padding-bottom: 1px;
  transition: color .14s, border-color .14s;
}
.sur-page a:hover { color: var(--ithaque); border-bottom-color: var(--ithaque); }

/* ── ACCROCHE DU CATALOGUE ───────────────────────────────── */

.accroche { margin-bottom: 44px; }

/* Le titre à gauche, la certification à droite : elle occupe l'espace
   que le titre laisse libre au lieu d'être reléguée en bas de page. */
.accroche-tete {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

/* Qualiopi et DPC empilés : deux marques de même nature, elles se lisent
   comme une paire. Une seule largeur pour les deux, sans quoi la plus large
   passerait pour la plus importante. */
.certifs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Les deux fichiers sont fournis sur fond blanc : on l'assume en cartouche
   plutôt que de laisser un rectangle blanc flotter sur le fond craie. */
.certif { max-width: 210px; }
.certif img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 8px;
  padding: 10px 12px;
}
.certif figcaption {
  font-size: .76rem;
  line-height: 1.5;
  color: var(--encre-3);
  margin-top: 12px;
}

/* Le DPC est presque carré (1,51) là où le Qualiopi est un bandeau (2,65) :
   à largeur égale il occupait 76 % de surface en plus et écrasait l'autre.
   Ce retrait ramène les deux marques au même poids visuel — cartouches
   toujours alignés, image un peu plus petite dedans. Mesuré : 99 contre 100. */
.certif-dpc img { padding: 12px 25px; }

.eyebrow {
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ithaque);
  margin-bottom: 18px;
}

/* Variante pour un intitulé qui porte sa propre casse (RdRD, HSA, CAARUD…). */
.eyebrow.terme {
  text-transform: none;
  font-size: 12.5px;
  letter-spacing: .11em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── PICTOGRAMMES ────────────────────────────────────────────
   Dessinés à la main, en SVG dans la page : aucune bibliothèque
   externe, le site ne dépend que des polices. Toujours doublés du
   texte, et donc masqués aux lecteurs d'écran (aria-hidden).
   ──────────────────────────────────────────────────────────── */

.ic { width: 20px; height: 20px; flex-shrink: 0; }

/* Un pictogramme par famille, dans la couleur de son filet de carte. */
[data-theme="Fondamentaux"] .ic              { color: var(--fam-fondamentaux); }
[data-theme="Approches médicales"] .ic       { color: var(--fam-medicales); }
[data-theme="Publics et situations"] .ic     { color: var(--fam-publics); }
[data-theme="Postures professionnelles"] .ic { color: var(--fam-postures); }

/* Le libellé du groupe suit son pictogramme — sur l'étiquette du catalogue
   comme en tête de fiche. Deux familles passent par leur variante lisible. */
[data-theme="Fondamentaux"] .carte-theme,
[data-theme="Fondamentaux"] .eyebrow.terme              { color: var(--fam-fondamentaux); }
[data-theme="Approches médicales"] .carte-theme,
[data-theme="Approches médicales"] .eyebrow.terme       { color: var(--fam-medicales-txt); }
[data-theme="Publics et situations"] .carte-theme,
[data-theme="Publics et situations"] .eyebrow.terme     { color: var(--fam-publics); }
[data-theme="Postures professionnelles"] .carte-theme,
[data-theme="Postures professionnelles"] .eyebrow.terme { color: var(--fam-postures-txt); }

/* Dans le bandeau, ils accompagnent un intitulé de 10 px : plus petits,
   et de la couleur de cet intitulé pour former un bloc avec lui. */
.ic-bd { width: 15px; height: 15px; color: var(--ithaque); }
.bd-lib { display: flex; align-items: center; gap: 6px; }

.accroche h1 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'wdth' 108;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.022em;
  color: var(--encre);
  max-width: 19ch;
}

.accroche .chapo {
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--encre-2);
  max-width: 56ch;
  margin-top: 22px;
}

/* Bandeau de faits — repose sur les données du RA 2025.
   Nombre de colonnes fixé par palier pour que les filets restent alignés. */
.faits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
}

.fait {
  padding: 18px 22px;
  border-left: 1px solid var(--trait);
}
.fait:nth-child(4n+1) { border-left: none; padding-left: 0; }

.fait-val {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 105;
  color: var(--ithaque);
  line-height: 1.1;
}
.fait-lib {
  font-size: .82rem;
  color: var(--encre-3);
  line-height: 1.4;
  margin-top: 3px;
}

/* ── FILTRES ─────────────────────────────────────────────── */

.filtres {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: var(--craie);
  padding: 16px 0 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--trait);
}

.filtres-rangee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.filtres-groupe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filtres-lib {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-right: 2px;
  flex-shrink: 0;
}

.puce {
  font-family: var(--texte);
  font-size: .88rem;
  color: var(--encre-2);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
}
.puce:hover { border-color: var(--trait-fort); color: var(--encre); }
.puce[aria-pressed="true"] {
  background: var(--surligne);
  border-color: var(--surligne);
  color: var(--encre);
  font-weight: 600;
}

.puce-raz {
  margin-left: auto;
  background: none;
  border: none;
  font-size: .85rem;
  color: var(--encre-3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 2px;
}
.puce-raz:hover { color: var(--encre); }
.puce-raz[hidden] { display: none; }

.compteur {
  font-size: .85rem;
  color: var(--encre-3);
  padding: 18px 0 22px;
}

/* ── GRILLE DE FORMATIONS ────────────────────────────────── */

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.carte {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 26px 26px 0;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.carte:hover {
  border-color: var(--ithaque);
  box-shadow: var(--ombre-m);
  transform: translateY(-2px);
}
.carte:focus-visible { outline: 3px solid var(--ithaque); outline-offset: 3px; }

/* Le filet de famille. Il n'est pas la seule indication du groupe — le nom
   est écrit juste dessous — donc la couleur n'est jamais le seul porteur
   de l'information. */
.carte { border-top-width: 3px; }
.carte[data-theme="Fondamentaux"]              { border-top-color: var(--fam-fondamentaux); }
.carte[data-theme="Approches médicales"]       { border-top-color: var(--fam-medicales); }
.carte[data-theme="Publics et situations"]     { border-top-color: var(--fam-publics); }
.carte[data-theme="Postures professionnelles"] { border-top-color: var(--fam-postures); }

/* Pas de text-transform : les thèmes portent leur propre casse
   (RdRD, HSA…) et la majuscule automatique la détruirait. */
.carte-theme {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .11em;
  color: var(--ithaque);
  margin-bottom: 12px;
}
.carte-theme .badge { padding: 3px 7px; font-size: 9.5px; }

.carte h2 {
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 104;
  line-height: 1.17;
  letter-spacing: -.012em;
  color: var(--encre);
}

.carte-res {
  font-size: .95rem;
  line-height: 1.58;
  color: var(--encre-2);
  margin-top: 12px;
  margin-bottom: 22px;
}

/* Pied de carte : la fiche technique, alignée sur toutes les cartes.
   Le bandeau sort du rembourrage de la carte pour toucher ses bords —
   d'où les marges négatives, compensées par le rembourrage des cellules
   d'extrémité, qui aligne les libellés sur le texte du dessus. */
.carte-meta {
  margin: auto -26px 0;
  background: var(--craie-fonce);
  border-top: 1px solid var(--trait);
  border-radius: 0 0 9px 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.carte-meta > div { padding: 14px 10px 16px; }
.carte-meta > div:first-child { padding-left: 26px; }
/* À droite, aucun texte au-dessus ne sert de repère : on peut resserrer
   sans que le décalage se voie, et « À PARTIR DE » tient alors à l'aise. */
.carte-meta > div:last-child  { padding-right: 18px; }
.carte-meta > div + div { border-left: 1px solid var(--trait); }

.cm-lib {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--encre-3);
}
.cm-val {
  font-size: .9rem;
  font-weight: 600;
  color: var(--encre);
  margin-top: 4px;
  line-height: 1.3;
}

.vide {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--encre-2);
  border: 1px dashed var(--trait-fort);
  border-radius: 10px;
}
.vide p { margin-bottom: 14px; }
.vide[hidden] { display: none; }

/* ── AGENDA DES SESSIONS ─────────────────────────────────── */

.agenda { margin-top: 64px; }

.agenda h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 105;
  letter-spacing: -.015em;
  color: var(--encre);
}
.agenda-sous {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--encre-2);
  max-width: 64ch;
  margin-top: 10px;
  margin-bottom: 26px;
}

/* La session la plus proche, promue par js/agenda.js.
   Accent bleu et non jaune : l'accueil a déjà son surligneur. */
.agenda-une {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-left: 4px solid var(--ithaque);
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}
.agenda-une-corps { flex: 1 1 320px; }

.agenda-une-lib {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ithaque);
  margin-bottom: 10px;
}
.agenda-une h3 {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 104;
  line-height: 1.2;
  color: var(--encre);
}
.agenda-une h3 a { color: inherit; text-decoration: none; }
.agenda-une h3 a:hover { color: var(--ithaque); }
.agenda-une-quand {
  font-size: 1.02rem;
  color: var(--encre);
  margin-top: 8px;
}
.agenda-une-quoi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: .92rem;
  color: var(--encre-3);
  margin-top: 8px;
}

/* ── Liste des sessions suivantes ── */

.agenda-liste { list-style: none; }

.agenda-lib {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--trait);
  margin-bottom: 2px;
}

.ag-item { border-bottom: 1px solid var(--trait); }

.ag-item > a {
  display: grid;
  grid-template-columns: 132px 1fr 104px 84px 18px;
  align-items: center;
  gap: 18px;
  padding: 15px 10px 15px 0;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  transition: background .13s;
}
.ag-item > a:hover { background: var(--blanc); }

.ag-date {
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ithaque);
  white-space: nowrap;
}
.ag-date b { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

.ag-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--encre);
  line-height: 1.35;
}
.ag-titre .badge { padding: 3px 7px; font-size: 9.5px; }
.ag-suite { font-weight: 400; color: var(--encre-3); font-size: .9rem; }

.ag-duree, .ag-tarif { font-size: .92rem; color: var(--encre-2); white-space: nowrap; }
.ag-tarif { font-weight: 600; color: var(--encre); }
.ag-fleche { color: var(--trait-fort); font-size: 1rem; }
.ag-item > a:hover .ag-fleche { color: var(--ithaque); }

.agenda-vide {
  background: var(--ithaque-clair);
  border-radius: 10px;
  padding: 22px 26px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ithaque-fonce);
}

/* ── FICHE FORMATION ─────────────────────────────────────── */

.retour {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  color: var(--encre-2);
  text-decoration: none;
  margin-bottom: 26px;
}
.retour:hover { color: var(--ithaque); }

/* Ligne d'identification : thème, et le cas échéant une distinction. */
.fiche-tete-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.fiche-tete-meta .eyebrow { margin-bottom: 0; }

/* Réservé à une vraie distinction (habilitation réglementaire), pas
   à un argument commercial : c'est le seul aplat de surligneur de la page. */
.badge {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre);
  background: var(--surligne);
  border-radius: 4px;
  padding: 5px 10px;
}

.fiche-tete h1 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'wdth' 106;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  /* Mesuré dans la fonte du titre, pas dans celle du corps de texte. */
  max-width: 17ch;
}

/* Un intitulé réglementaire ne se raccourcit pas : on réduit le corps
   plutôt que de le laisser occuper sept lignes. */
.fiche-tete h1.long {
  font-size: clamp(1.65rem, 3.1vw, 2.3rem);
  line-height: 1.14;
  max-width: 27ch;
}

.fiche-chapo {
  font-size: 1.1rem;
  line-height: 1.66;
  color: var(--encre-2);
  max-width: 62ch;
  margin-top: 20px;
}

/* Le bandeau de modalités : lecture en un coup d'œil */
.bandeau {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 10px;
  margin: 34px 0 24px;
  overflow: hidden;
}

.bandeau > div {
  padding: 18px 22px;
  border-right: 1px solid var(--trait);
}
.bandeau > div:last-child { border-right: none; }

.bd-lib {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 5px;
}
.bd-val {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
  font-variation-settings: 'wdth' 103;
  color: var(--encre);
  line-height: 1.24;
}
.bd-note { font-size: .8rem; color: var(--encre-3); margin-top: 3px; line-height: 1.4; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

.btn {
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 12px 22px;
  border-radius: 7px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-plein { background: var(--ithaque); color: var(--blanc); }
.btn-plein:hover { background: var(--ithaque-fonce); }
.btn-vide { background: var(--blanc); color: var(--encre); border-color: var(--trait-fort); }
.btn-vide:hover { border-color: var(--ithaque); color: var(--ithaque); }

/* Téléchargement du catalogue papier, sous le chapô. Creux et non plein :
   la page EST le catalogue, le PDF n'en est qu'une copie à faire circuler.
   Un bouton plein ici concurrencerait « Nous contacter » dans l'en-tête. */
.accroche-actions { margin-top: 26px; }
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.ic-dl { width: 17px; height: 17px; color: var(--encre-3); }
.btn-pdf:hover .ic-dl { color: var(--ithaque); }

/* Corps de fiche : sommaire collant + contenu */
.fiche-corps {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 52px;
  margin-top: 56px;
  align-items: start;
}

.sommaire { position: sticky; top: calc(var(--header-h) + 30px); }

.sommaire-lib {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--trait);
  margin-bottom: 4px;
}

.sommaire a {
  display: block;
  font-size: .9rem;
  color: var(--encre-2);
  text-decoration: none;
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  transition: color .14s, border-color .14s;
}
.sommaire a:hover { color: var(--encre); }
.sommaire a.actif {
  color: var(--ithaque);
  font-weight: 600;
  border-left-color: var(--ithaque);
}

.bloc { margin-bottom: 52px; scroll-margin-top: calc(var(--header-h) + 26px); }
.bloc:last-child { margin-bottom: 0; }

.bloc h2 {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 104;
  letter-spacing: -.01em;
  color: var(--encre);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--encre);
  margin-bottom: 22px;
}

.bloc p { font-size: 1rem; line-height: 1.76; color: var(--encre); margin-bottom: 14px; }
.bloc p:last-child { margin-bottom: 0; }

/* Objectifs : une liste de compétences visées, cochée */
.objectifs { list-style: none; display: grid; gap: 10px; }
.objectifs li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  line-height: 1.6;
}
.objectifs li::before {
  content: '';
  position: absolute;
  left: 0; top: .46em;
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--surligne);
  border: 1px solid var(--surligne-fonce);
}

/* ── ILLUSTRATIONS ───────────────────────────────────────── */

.illus { margin: 28px 0; }

.illus img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--trait);
  cursor: zoom-in;
  transition: opacity .15s;
}
.illus img:hover { opacity: .9; }

.illus figcaption {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--encre-3);
  margin-top: 10px;
}

/* Une photo en hauteur prise au téléphone occuperait sinon toute la
   colonne de lecture : on la borne et on la centre. */
.illus.portrait { max-width: 400px; margin-left: auto; margin-right: auto; }

/* Deux photos d'un même atelier, côte à côte et recadrées à la même hauteur. */
.illus-paire { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.illus-paire img { height: 240px; object-fit: cover; }
.illus-paire figcaption { grid-column: 1 / -1; }

/* Une illustration qui suit le déroulé a besoin de s'en détacher. */
.deroule + .illus { margin-top: 38px; }

/* ── VISIONNEUSE ─────────────────────────────────────────── */

#loupe {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 38, 46, .88);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
#loupe.ouvert { display: flex; }
#loupe img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}
#loupe-fermer {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--craie);
  font-size: 30px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  opacity: .75;
}
#loupe-fermer:hover { opacity: 1; }

/* ── SIGNATURE : LE DÉROULÉ DES MODULES ──────────────────── */

.deroule { position: relative; padding-left: 4px; }

/* Le filet qui relie les étapes */
.deroule::before {
  content: '';
  position: absolute;
  left: 15px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--trait);
}

.etape { position: relative; padding-left: 52px; padding-bottom: 26px; }
.etape:last-child { padding-bottom: 0; }

.etape-num {
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blanc);
  border: 2px solid var(--encre);
  color: var(--encre);
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Ouverture et clôture : jalons, pas des modules numérotés */
.etape.jalon .etape-num {
  background: var(--craie);
  border-color: var(--trait-fort);
  border-style: dashed;
  color: var(--encre-3);
  font-size: .78rem;
}

.etape h3 {
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 600;
  font-variation-settings: 'wdth' 103;
  color: var(--encre);
  line-height: 1.35;
  padding-top: 4px;
}
.etape.jalon h3 { color: var(--encre-2); font-weight: 600; }

/* Certains modules sont décrits en prose plutôt qu'en points. */
.etape p {
  font-size: .96rem;
  line-height: 1.62;
  color: var(--encre-2);
  margin-top: 9px;
  margin-bottom: 0;
}

/* Séparateur de partie à l'intérieur du déroulé (théorie / pratique).
   La pastille de fond interrompt le filet vertical à cet endroit. */
.deroule-partie {
  position: relative;
  padding-left: 52px;
  margin: 4px 0 22px;
}
.deroule-partie::before {
  content: '';
  position: absolute;
  left: 8px; top: -6px; bottom: 2px;
  width: 16px;
  background: var(--craie);
}
.deroule-partie span {
  display: block;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-3);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--trait);
}

.etape ul { list-style: none; margin-top: 9px; display: grid; gap: 5px; }
.etape li {
  position: relative;
  padding-left: 16px;
  font-size: .96rem;
  line-height: 1.55;
  color: var(--encre-2);
}
.etape li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 1px;
  background: var(--trait-fort);
}

/* ── TABLEAU DES MODALITÉS ───────────────────────────────── */

.modalites {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 10px;
  overflow: hidden;
  font-size: .96rem;
}
.modalites th, .modalites td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--trait);
  vertical-align: top;
}
.modalites tr:last-child th, .modalites tr:last-child td { border-bottom: none; }
.modalites th {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--encre-3);
  white-space: nowrap;
  width: 190px;
  background: #fbfcf9;
}
.modalites td { color: var(--encre); line-height: 1.62; }

/* ── SESSIONS ────────────────────────────────────────────── */

.sessions { display: grid; gap: 12px; margin-bottom: 18px; }

.session {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--ithaque);
  border-radius: 0 8px 8px 0;
  padding: 15px 20px;
}
.session-num {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ithaque);
  flex-basis: 76px;
}
.session-dates { font-size: 1rem; font-weight: 600; color: var(--encre); }

/* ── ENCART ──────────────────────────────────────────────── */

.encart {
  background: var(--ithaque-clair);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 22px 0;
}
.encart p { font-size: .97rem; line-height: 1.68; color: var(--ithaque-fonce); margin: 0; }
.encart p + p { margin-top: 10px; }

/* ── RÉSULTATS ET VERBATIMS ──────────────────────────────── */

.resultats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.resultat {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: 22px;
}
.resultat-val {
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 104;
  color: var(--ithaque);
  line-height: 1;
}
.resultat-lib {
  font-size: .92rem;
  color: var(--encre-2);
  line-height: 1.5;
  margin-top: 9px;
}

.verbatims { display: grid; gap: 14px; }

blockquote.verbatim {
  border-left: 2px solid var(--surligne);
  padding: 2px 0 2px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--encre-2);
  font-style: italic;
}

/* ── CONTACT ─────────────────────────────────────────────── */

.contact {
  background: var(--encre);
  border-radius: 12px;
  padding: 40px 44px;
  margin-top: 72px;
  color: var(--craie);
}
.contact h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 106;
  letter-spacing: -.015em;
  color: var(--blanc);
  margin-bottom: 12px;
  border: none;
  padding: 0;
}
.contact p {
  font-size: 1rem;
  line-height: 1.7;
  color: #b9c6cc;
  max-width: 54ch;
  margin-bottom: 22px;
}
.contact .btn-plein { background: var(--surligne); color: var(--encre); }
.contact .btn-plein:hover { background: var(--surligne-fonce); }
.contact .btn-vide { background: transparent; color: var(--craie); border-color: #3d5560; }
.contact .btn-vide:hover { border-color: var(--craie); color: var(--blanc); }

.contact.avec-photo {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}
.contact.avec-photo p { margin-bottom: 24px; }
.contact-photo img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.contact-photo figcaption {
  font-size: .8rem;
  color: #8fa2aa;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── MODALITÉS PRATIQUES (accueil) ───────────────────────── */

/* Nom « pratique » et non « modalites » : .modalites est déjà le tableau
   des fiches. Même rythme vertical que .agenda et .documents, entre
   lesquels ce bloc s'intercale. */
.pratique { margin-top: 64px; }

.pratique h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 105;
  letter-spacing: -.015em;
  color: var(--encre);
  margin-bottom: 22px;
}

/* Deux colonnes et un gouttière de 12 px, comme .doc-liste juste en
   dessous : les deux blocs doivent donner la même trame. */
.pr-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pr-carte {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 9px;
  padding: 20px 22px;
}

/* Reprend .bd-lib, l'étiquette du bandeau des fiches : même rôle,
   même dessin. */
.pr-lib {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Couleur de .ic-bd, l'equivalent sur les fiches, mais 18 px et non 15 :
   ces cartes sont plus aerees que le bandeau, ou cinq cellules se serrent. */
.ic-pr { width: 18px; height: 18px; color: var(--ithaque); }

.pr-txt {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--encre-2);
}

/* L'aplat sans filet reprend .agenda-vide : c'est le seul autre endroit du
   site où un texte est posé sur le bleu clair. */
.pr-engagement {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--ithaque-clair);
  border-color: transparent;
}
.pr-engagement .pr-lib { color: var(--ithaque); }
.pr-engagement .pr-txt { color: var(--ithaque-fonce); }

/* ── DOCUMENTS DU PÔLE ───────────────────────────────────── */

.documents { margin-top: 64px; }

.documents h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variation-settings: 'wdth' 105;
  letter-spacing: -.015em;
  color: var(--encre);
  margin-bottom: 22px;
}

.doc-liste {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.doc-liste a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 9px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .14s, box-shadow .14s;
}
.doc-liste a:hover { border-color: var(--ithaque); box-shadow: var(--ombre-m); }

.doc-type {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--encre-3);
  border: 1px solid var(--trait-fort);
  border-radius: 3px;
  padding: 3px 6px;
  flex-shrink: 0;
}
.doc-nom { font-size: 1rem; font-weight: 600; color: var(--encre); line-height: 1.35; flex: 1; }
.doc-fleche { color: var(--trait-fort); flex-shrink: 0; }
.doc-liste a:hover .doc-fleche { color: var(--ithaque); }

/* ── PIED DE PAGE ────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--trait);
  margin-top: 72px;
}
.ft-in {
  max-width: var(--page);
  margin: 0 auto;
  padding: 30px 32px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  align-items: flex-start;
  font-size: .86rem;
  color: var(--encre-3);
}
.ft-in a { color: var(--encre-2); text-decoration: none; }
.ft-in a:hover { color: var(--ithaque); text-decoration: underline; }

.ft-contact { line-height: 1.7; }
.ft-contact strong { color: var(--encre); font-weight: 600; }

.ft-certifs { margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
/* Même cartouche que dans l'accroche : le fichier Qualiopi est fourni sur fond
   blanc, l'encadrer vaut mieux que de laisser un rectangle blanc flotter sur
   la craie. Les 160 px restent la largeur totale, padding compris. */
.ft-certifs img {
  width: 160px;
  height: auto;
  display: block;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 8px;
  padding: 8px 10px;
}
.ft-mention { font-size: .78rem; color: var(--encre-3); line-height: 1.45; max-width: 30ch; }

/* Mentions administratives : lisibles, mais elles ne doivent pas
   concurrencer les coordonnées juste au-dessus. */
.ft-legal {
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px 32px 40px;
  border-top: 1px solid var(--trait);
  font-size: .76rem;
  line-height: 1.6;
  color: var(--encre-3);
}
.ft-legal p + p { margin-top: 4px; }

/* ── ACCESSIBILITÉ ───────────────────────────────────────── */

.hors-ecran {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--ithaque); outline-offset: 2px; }

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ithaque);
  color: var(--blanc);
  padding: 12px 20px;
  z-index: 500;
  border-radius: 0 0 6px 0;
}
.saut-contenu:focus { left: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 900px) {
  /* En dessous de 880 px, les trois ancres ne tiennent plus dans l'en-tête
     à côté du logo et du bouton. */
  .hd-liens .hd-lien { display: none; }

  /* …le sommaire de page prend alors le relais. */
  .sur-page {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    padding: 16px 0 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--trait);
  }
  .accroche { margin-bottom: 26px; }
  .accroche-tete { grid-template-columns: 1fr; gap: 28px; }
  .certif { max-width: 170px; }
  .contact.avec-photo { grid-template-columns: 1fr; gap: 28px; }
  .contact-photo img { max-height: 220px; }
  .faits { grid-template-columns: repeat(2, 1fr); }
  .fait:nth-child(4n+1) { border-left: 1px solid var(--trait); padding-left: 22px; }
  .fait:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .fait:nth-child(-n+2) { border-bottom: 1px solid var(--trait); }
  .fiche-corps { grid-template-columns: 1fr; gap: 34px; }
  .sommaire { position: static; }
  .sommaire-liens { display: flex; flex-wrap: wrap; gap: 4px; }
  .sommaire a { border-left: none; padding: 6px 12px; background: var(--blanc); border-radius: 999px; border: 1px solid var(--trait); }
  .sommaire a.actif { border-color: var(--ithaque); }
}

@media (max-width: 720px) {
  html { font-size: 15.5px; }
  main { padding-left: 20px; padding-right: 20px; padding-top: calc(var(--header-h) + 34px); }
  .hd-in { padding: 0 20px; gap: 12px; }
  .hd-liens .hd-lien { display: none; }
  .hd-nom { font-size: 11.5px; }
  .hd-logo img { width: 92px; }
  .contact { padding: 30px 24px; }
  .bandeau > div { border-right: none; border-bottom: 1px solid var(--trait); }
  .bandeau > div:last-child { border-bottom: none; }
  .fait { border-right: none; border-bottom: 1px solid var(--trait); padding-left: 0 !important; min-width: 100%; }
  .fait:last-child { border-bottom: none; }
  .modalites th { width: auto; display: block; border-bottom: none; padding-bottom: 2px; }
  .modalites td { display: block; padding-top: 0; }
  .ft-certifs { margin-left: 0; }
  .filtres-lib { flex-basis: 100%; margin-bottom: 2px; }
  .puce-raz { margin-left: 0; }
  .faits { grid-template-columns: 1fr; }
  .fait { border-left: none !important; padding-left: 0 !important; border-bottom: 1px solid var(--trait); }
  .fait:last-child { border-bottom: none; }
  .illus-paire { grid-template-columns: 1fr; }
  .illus-paire img { height: auto; }
  .doc-liste { grid-template-columns: 1fr; }
  /* Une seule colonne : il faut aussi annuler le placement explicite
     de la carte d'engagement, sinon elle recree une 2e colonne. */
  .pr-grille { grid-template-columns: 1fr; }
  .pr-engagement { grid-column: 1; grid-row: auto; }
  .ft-certifs { margin-left: 0; }
  .ft-in { gap: 22px; }
  .ag-item > a {
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
    padding: 16px 0;
  }
  .ag-date { grid-column: 1 / -1; }
  .ag-titre { grid-column: 1 / -1; }
  .ag-duree { grid-column: 1; }
  .ag-tarif { grid-column: 2; text-align: right; }
  .ag-fleche { display: none; }
  .agenda-une { padding: 20px 22px; }
  .illus.portrait { max-width: 100%; }
  .ft-certifs { margin-left: 0; }
}

/* Sous cette largeur, le logo et le bouton d'action priment :
   le nom du pôle est déjà porté par le titre de la page. */
@media (max-width: 560px) {
  .hd-sep, .hd-nom { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .carte:hover { transform: none; }
}

/* ── IMPRESSION (une fiche formation doit pouvoir se poser sur un bureau) ── */

/* ── BOUTON D'IMPRESSION DE LA FICHE ─────────────────────────
   Injecte par js/fiche.js en haut et en bas de chaque fiche. */

.impression { margin-top: 18px; }
/* Celui du bas ferme le contenu : il lui faut plus d'air au-dessus. */
.fiche-corps + .impression { margin-top: 40px; }

.btn-impr {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.ic-impr { width: 17px; height: 17px; color: var(--encre-3); }
.btn-impr:hover .ic-impr { color: var(--ithaque); }

@media print {
  /* Sans cette regle, les marges dependent du navigateur et du poste :
     la meme fiche ne tient pas sur le meme nombre de feuillets. */
  @page { margin: 16mm 14mm; }

  /* Tout ce qui suppose un clic disparaît. Le pied de page, lui, RESTE :
     c'est le seul endroit d'une fiche imprimée qui porte l'adresse, le
     courriel et la mention Qualiopi. */
  .filtres, .actions, .sommaire, .retour, .contact, .sur-page,
  .saut-contenu, #loupe, .ag-fleche, .impression { display: none !important; }

  /* Une fiche imprimee part en dossier de financement : elle doit porter
     le nom de l'emetteur des la premiere page, et pas seulement dans le
     pied de page en derniere. On retablit donc l'en-tete, debarrasse de
     sa navigation, de son fond et de sa position fixe. */
  header {
    position: static;
    height: auto;
    background: none;
    backdrop-filter: none;
    border-bottom: 1px solid #000;
  }
  .hd-in { max-width: none; height: auto; padding: 0 0 9px; }
  header + * { margin-top: 16px; }
  .hd-liens { display: none !important; }
  .hd-logo img { width: 34mm; }

  body { background: #fff; color: #000; }
  main { padding: 0; max-width: none; }
  .fiche-corps { display: block; }

  /* « break-inside: avoid » portait sur .bloc, c'est-a-dire sur des sections
     entieres : des qu'une section ne tenait pas dans la place restante, elle
     basculait tout entiere a la page suivante. La fiche des Fondamentaux
     sortait ainsi sur 7 feuillets, dont plusieurs aux trois quarts vides.
     On ne protege plus que les petites unites, et on empeche un titre de
     rester seul en bas de page. */
  .etape, .carte, .ag-item, .session, .resultat { break-inside: avoid; }
  /* La propriete heritee doublonne la moderne : Firefox ne gere que
     partiellement « break-after », les moteurs Blink la respectent. */
  .bloc h2, .bloc h3 { break-after: avoid; page-break-after: avoid; }
  .bloc p, .bloc li, .modalites tr { orphans: 3; widows: 3; }
  .bloc { margin-bottom: 26px; }
  .carte, .bandeau, .modalites, .session, .resultat, .agenda-une { box-shadow: none; }

  /* Un aplat de couleur coûte de l'encre et ressort mal : on le remplace
     par un filet, y compris pour le surligneur et le badge. */
  .surligne { background: none; padding: 0; font-style: italic; }
  .badge {
    background: none;
    border: 1px solid #000;
    color: #000;
  }
  .encart, .agenda-vide { background: none; border-left: 2px solid #000; padding-left: 14px; }
  /* Un aplat gris sur douze étiquettes, c'est une cartouche pour rien. */
  .carte-meta { background: none; }
  /* Les pictogrammes s'impriment, mais en noir : la couleur de famille
     ne veut rien dire sur une feuille en niveaux de gris. */
  .ic { color: #000; }

  /* Aucune photo sur la version imprimee : la fiche part en dossier de
     financement, ou seul le contenu pedagogique compte. La legende s'en
     va avec l'image qu'elle decrit. */
  .illus, .illus-paire, .contact-photo { display: none !important; }

  /* Le catalogue s'imprime en deux colonnes plutôt qu'en trois. */
  .grille { grid-template-columns: 1fr 1fr; }

  footer { border-top: 1px solid #000; margin-top: 24px; }
  .ft-in { padding: 12px 0; display: block; font-size: 9pt; line-height: 1.5; }
  .ft-in a { color: #000; text-decoration: none; }
  .ft-in span, .ft-in a { display: inline; }
  /* Le separateur ne vaut qu'entre elements sur une meme ligne. Le bloc de
     contact etant suivi d'un retour a la ligne, son « · » se retrouvait seul
     sur une ligne, juste au-dessus du logo Qualiopi. */
  .ft-in > *::after { content: none; }
  /* Le logo reste imprimé : le nom « Qualiopi » n'existe nulle part ailleurs
     dans le pied de page, il ne vit que dans la marque. */
  .ft-certifs { display: block; margin-top: 8px; }
  /* Le cartouche est un effet d'écran : sur papier, il coûte de l'encre et
     rétrécit le logo dans les 42 mm. La fiche imprimée reste comme avant. */
  .ft-certifs img { width: 42mm; background: none; border: 0; padding: 0; }
  .ft-mention { display: block; max-width: none; margin-top: 4px; }
  .ft-certifs::after { content: none; }

  /* Une page A4 fait environ 794 px de large : la regle de repli a 900 px
     s'y declenche et empile le tableau des modalites, doublant sa hauteur.
     On lui rend ses deux colonnes. */
  .modalites th {
    display: table-cell;
    width: 150px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--trait);
  }
  .modalites td { display: table-cell; padding-top: 14px; }
  .modalites tr:last-child th { border-bottom: none; }

  /* L'adresse de destination d'un lien externe, invisible sur papier. */
  .fiche-chapo a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
