/* ══════════════════════════════════════════════════════════════════════════
   FICHE ÉTABLISSEMENT — les 1 489 fiches publiques (/etablissements/<slug>),
   produites par scripts/fiche/gabarit.mjs (en production le 15/11/2026 ;
   historique de la maquette : design/fiche-etablissement-2026-11/README.md)
   ══════════════════════════════════════════════════════════════════════════
   Un document de travail pour une direction d'hôpital : plat, précis, sans
   ornement. La charte du site (platine.css, nuance Chartreuse) fournit
   toutes les valeurs ; ce fichier n'en ajoute aucune, sinon, sur l'objet
   sombre, les pendants de --bord-objet (blanc à .32) et de --ink-soft
   (blanc à .06).

   Règles tenues (checklists des skills `frontend-design-deslop` et
   `no-ai-slop`, DESIGN.md) :
     · surfaces plates séparées par un filet de 1 px, aucune ombre portée ;
     · un seul rayon de travail (--r, 6 px) ;
     · aucune texture, aucun repère de coupe, aucune barre d'accent ;
     · la couleur tient trois rôles, tous pris à la charte (Signal-Only
       Color Rule) :
       – le surligneur chartreuse marque ce qui sort de la moitié centrale
         des pairs (le curseur, le trait qui le relie à la médiane, le
         qualificatif du portrait) et l'avancement de l'analyse (le temps
         actif, les étapes faites, la barre de progression, comme la barre
         de lecture du site) ;
       – l'ambre, encre de prudence, signale ce qui reste « à instruire » et
         les baisses sur un an (« à surveiller », jamais le rouge du risque) ;
       – le graphite de l'« appareil » (platine.css § 6) porte la section
         cockpit, avec l'accent chartreuse des objets sombres ;
       – la flèche (surligneur cerclé d'encre) désigne l'action suivante,
         une seule à la fois ;
       ni vert ni rouge : une position n'est ni bonne ni mauvaise ;
     · chiffres en Space Mono à chiffres tabulaires, texte en Space Grotesk ;
     · capitales espacées réservées aux en-têtes de tableau.
   ══════════════════════════════════════════════════════════════════════════ */
.fm-page {
  --t-vif: .15s;
  --t-pose: .25s;
  --t-ample: .5s;
  --t-revele: 1.2s;
  --courbe: cubic-bezier(.16, 1, .3, 1);
  --fm-max: 1080px;
  --fm-zone: rgb(var(--ink-rgb) / .05);
  --fm-zone-centre: rgb(var(--ink-rgb) / .13);
}
.fm-page .wrap.fm-wrap { max-width: var(--fm-max); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-top: 24px; padding-bottom: 96px; }
.fm-page .nav, .fm-page footer.pied { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fm-page footer.pied .cols, .fm-page footer.pied .marque { max-width: var(--fm-max); }
.fm-page :focus-visible { outline: 2px solid var(--txt); outline-offset: 3px; }
/* `hidden` l'emporte toujours : sans cela, un `display: grid` d'auteur
   garderait affiché un bloc que le script vient de masquer. */
.fm-page [hidden] { display: none !important; }
.fm-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fm-page .nd { color: var(--faint); }

/* Boutons de la charte : quasi vifs, Space Mono en capitales. Le plein est
   l'encre ; au survol, le surligneur passe dessous (platine.css § 12). */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--fs-tag); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 14px 22px; min-height: 46px; border-radius: var(--r-sharp); border: 1px solid var(--txt); cursor: pointer; text-decoration: none; text-align: center; transition: background var(--t-vif) var(--courbe), color var(--t-vif) var(--courbe), border-color var(--t-vif) var(--courbe); }
.fm-btn:hover { text-decoration: none; }
.fm-btn-plein { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.fm-btn-plein:hover { background: var(--marqueur); color: var(--txt); border-color: var(--txt); }
.fm-btn-creux { background: var(--bg2); color: var(--txt); border-color: var(--bord-objet); }
.fm-btn-creux:hover { border-color: var(--txt); background: var(--bg3); }
.fm-note { font-size: var(--fs-sm); color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.fm-intro { max-width: 68ch; }

/* ── 1. En-tête : l'identité, puis les chiffres clés ────────────────────── */
.fm-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 4px; }
.fm-hero h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
.fm-identite { font-size: var(--fs-md); color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
.fm-lead { font-size: var(--fs-lg); line-height: 1.7; color: var(--muted); margin: 0; max-width: 62ch; }
.fm-lead strong { color: var(--txt); font-weight: 600; }
.fm-hero-action { margin-top: 26px; }
.fm-hero-action .fm-btn { max-width: 100%; }

/* La flèche guide l'œil vers l'action suivante, une seule à la fois : le
   bouton du haut, puis « Lancer la lecture d'ensemble », puis « Voir le
   détail par discipline ». Son disque est celui du curseur et du point de la
   marque, le surligneur cerclé d'encre (platine.css § 11) ; elle pousse vers
   le bouton par à-coups, puis se tait une fois l'action faite. */
.fm-guide { display: flex; align-items: center; gap: 14px; }
.fm-guide .fm-btn { flex: 0 1 auto; min-width: 0; }
.fm-fleche { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--marqueur); border: 1.5px solid var(--txt); animation: fm-pousse 2.8s var(--courbe) infinite; }
.fm-fleche svg { display: block; fill: none; stroke: var(--txt); stroke-width: 2; stroke-linecap: square; }
@keyframes fm-pousse { 0%, 44%, 100% { transform: translateX(0); } 11%, 33% { transform: translateX(6px); } 22% { transform: translateX(0); } }
/* À l'arrivée depuis le bouton du haut, la flèche du comparateur appelle. */
.fm-guide.fm-appel .fm-fleche { animation: fm-appel .9s var(--courbe) 2; }
@keyframes fm-appel { 0%, 100% { transform: translateX(0) scale(1); } 40% { transform: translateX(9px) scale(1.1); } }
/* Le bouton du haut cliqué (ou l'analyse lancée), sa flèche a fait son
   office : seule reste celle de l'action suivante. */
.fm-page:is([data-guide], [data-analyse]) .fm-hero .fm-fleche { visibility: hidden; animation: none; }

.fm-chiffres { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px 14px; }
.fm-chiffres-titre { font-size: var(--fs-lg); font-weight: 600; margin: 0 0 6px; padding: 0; border: 0; }
.fm-chiffres table { width: 100%; border-collapse: collapse; }
.fm-chiffres th, .fm-chiffres td { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-body); text-align: right; background: none; white-space: nowrap; }
.fm-chiffres thead th { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 400; padding-top: 4px; }
.fm-chiffres tbody th { text-align: left; font-weight: 400; color: var(--muted); white-space: normal; padding-right: 12px; font-family: var(--font-head); font-size: var(--fs-body); text-transform: none; letter-spacing: 0; }
.fm-chiffres thead th:nth-child(2) { padding-right: 18px; }
.fm-chiffres td:nth-child(2) { font-family: var(--font-mono); font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; padding-right: 18px; }
.fm-chiffres td:nth-child(3) { font-family: var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.fm-chiffres tbody tr:last-child th, .fm-chiffres tbody tr:last-child td { border-bottom: 0; }
.fm-chiffres-source { font-size: var(--fs-tag); color: var(--faint); margin: 10px 0 0; line-height: 1.5; }
.fm-note-incoherente { display: block; white-space: normal; font-family: var(--font-head); font-weight: 400; color: var(--amber); font-size: var(--fs-tag); line-height: 1.35; }
/* Une baisse sur un an prend l'ambre, l'encre de prudence de la charte
   (« à surveiller », DESIGN.md), sur le modèle de `.priority.p2` du cockpit :
   teinte à .1, filet à .3. Pas le rouge, réservé au risque et « jamais
   banalisé » : une durée de séjour qui baisse n'est pas un risque, et la
   plupart des fiches portent au moins une baisse. Le triangle double la
   couleur pour qui ne la distingue pas. */
.fm-chiffres tr.fm-en-baisse th { color: var(--txt); }
.fm-baisse { color: var(--amber); font-weight: 700; white-space: nowrap; background: rgb(var(--amber-rgb) / .1); border: 1px solid rgb(var(--amber-rgb) / .3); border-radius: var(--r-sharp); padding: 1px 5px; margin-right: -6px; }
.fm-baisse-signe { display: inline-block; width: .6em; height: .5em; margin-right: .4em; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); vertical-align: .08em; }
.fm-legende-baisse { white-space: nowrap; }
.fm-legende-baisse .fm-baisse-signe { color: var(--amber); margin-right: .35em; }

/* ── 2. L'analyse ────────────────────────────────────────────────────────── */
.fm-analyse { margin-top: 64px; background: var(--bg2); border: 1px solid var(--border-strong); border-radius: var(--r); padding: 30px 32px 32px; scroll-margin-top: 16px; }
.fm-analyse-tete h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -.015em; margin: 0 0 10px; padding: 0; border: 0; text-wrap: balance; }
.fm-analyse-tete .fm-intro { margin: 0; font-size: var(--fs-md); color: var(--muted); line-height: 1.65; }

/* Les deux temps : une séquence réelle, d'où la numérotation. */
.fm-temps { list-style: none; display: flex; gap: 0; padding: 0; margin: 22px 0 0; border-bottom: 1px solid var(--border); scroll-margin-top: 20px; }
.fm-temps li { margin: 0; display: flex; align-items: center; gap: 10px; padding: 0 22px 12px 0; font-size: var(--fs-body); color: var(--faint); position: relative; }
.fm-temps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: var(--fs-tag); color: var(--muted); }
.fm-temps li.actif { color: var(--txt); font-weight: 600; }
.fm-temps li.actif::after { content: ''; position: absolute; left: 0; right: 22px; bottom: -1px; height: 2px; background: var(--txt); }
.fm-temps li.actif span { border-color: var(--txt); background: var(--marqueur); color: var(--txt); font-weight: 700; }
.fm-temps li.fait span { border-color: var(--txt); color: var(--txt); }

.fm-t1, .fm-t2 { margin-top: 26px; }
.fm-repos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.fm-jauges.apercu { opacity: .55; }
.fm-action .fm-btn { min-width: 260px; }

/* Le calcul : les étapes à gauche, ce qu'elles produisent à droite. */
.fm-calcul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.fm-progres { height: 4px; background: rgb(var(--ink-rgb) / .08); margin: 0 0 18px; border-radius: 2px; overflow: hidden; }
.fm-progres i { display: block; height: 100%; width: 100%; background: var(--marqueur); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .25); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-revele) var(--courbe); }
.fm-etapes { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.fm-etape { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; margin: 0; color: var(--faint); }
.fm-etape-icone { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgb(var(--ink-rgb) / .3); margin-top: 2px; position: relative; }
.fm-etape[data-etat="encours"] .fm-etape-icone { border-color: rgb(var(--ink-rgb) / .15); border-top-color: var(--txt); animation: fm-tourne .9s linear infinite; }
.fm-etape[data-etat="fait"] .fm-etape-icone { background: var(--marqueur); border-color: var(--txt); }
.fm-etape[data-etat="fait"] .fm-etape-icone::after { content: ''; position: absolute; left: 4px; top: 1px; width: 3.5px; height: 7px; border: solid var(--txt); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@keyframes fm-tourne { to { transform: rotate(360deg); } }
.fm-etape-titre { display: block; font-size: var(--fs-body); line-height: 1.4; }
.fm-etape[data-etat="encours"] .fm-etape-titre, .fm-etape[data-etat="fait"] .fm-etape-titre { color: var(--txt); font-weight: 600; }
.fm-etape-detail, .fm-etape-aide { display: block; font-size: var(--fs-sm); line-height: 1.5; margin-top: 2px; }
.fm-etape-detail { color: var(--muted); }
.fm-etape-detail b { font-family: var(--font-mono); font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; }
.fm-etape-aide { color: var(--muted); }
/* Une étape à venir ne montre que son titre ; seule l'étape en cours explique
   ce qu'elle fait : on lit une chose à la fois. */
.fm-etape[data-etat="attente"] .fm-etape-detail, .fm-etape[data-etat="attente"] .fm-etape-aide { display: none; }
.fm-etape[data-etat="fait"] .fm-etape-aide { display: none; }
.fm-passer { margin-top: 12px; background: none; border: 0; padding: 4px 0; font-size: var(--fs-sm); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fm-passer:hover { color: var(--txt); }

/* Le nuage : un point par établissement du panel. */
.fm-nuage { margin: 0; min-width: 0; position: relative; }
.fm-nuage svg { display: block; width: 100%; height: auto; overflow: visible; }
.fm-nuage figcaption { font-size: var(--fs-tag); color: var(--muted); margin-top: 8px; line-height: 1.5; }
.n-point { fill: var(--txt); opacity: .12; transition: opacity var(--t-pose) var(--courbe); }
.n-point.on { opacity: .42; }
.n-axe, .n-graduation { stroke: rgb(var(--ink-rgb) / .3); stroke-width: 1; }
.n-texte { font-family: var(--font-mono); font-size: 10px; fill: var(--muted); }
.n-texte-fort { font-family: var(--font-mono); font-size: 11px; font-weight: 700; fill: var(--txt); }
.n-repere { opacity: 0; transition: opacity var(--t-ample) var(--courbe); }
.n-repere.visible { opacity: 1; }
.n-bande { fill: rgb(var(--ink-rgb) / .06); }
.n-mediane { stroke: rgb(var(--ink-rgb) / .6); stroke-width: 1.5; }
.n-moi { opacity: 0; transition: opacity var(--t-ample) var(--courbe); }
.n-moi.visible { opacity: 1; }
.n-moi-tige { stroke: var(--txt); stroke-width: 1.5; }
.n-moi-anneau { fill: var(--bg2); }
.n-moi-point { fill: var(--marqueur); stroke: var(--txt); stroke-width: 2; }
.n-avant { fill: none; stroke: var(--txt); stroke-width: 1.5; opacity: 0; transition: opacity var(--t-ample) var(--courbe); }
.n-avant.visible { opacity: .7; }
.fm-infobulle { position: absolute; z-index: 20; pointer-events: none; background: var(--txt); color: var(--bg2); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; padding: 6px 9px; border-radius: var(--r-sharp); max-width: 260px; }

/* Le chantier du second calcul : chaque indicateur reçoit son curseur. */
.fm-chantier { display: grid; gap: 9px; }
.fm-chantier-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.fm-chantier .fm-curseur { opacity: 0; transition: opacity var(--t-pose) var(--courbe), transform var(--t-ample) var(--courbe); }
.fm-chantier .fm-curseur.place { opacity: 1; }

/* ── 3. La jauge : un axe, un curseur ────────────────────────────────────── */
.fm-jauges { display: grid; gap: 4px; }
.fm-jauge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1.2fr); gap: 22px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.fm-jauges > .fm-jauge:last-of-type { border-bottom: 0; }
.fm-jauge-nom { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fm-jauge-titre { font-size: var(--fs-md); font-weight: 600; color: var(--txt); line-height: 1.3; }
.fm-jauge-mesure { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.fm-jauge-lecture { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fm-jauge-valeur { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; line-height: 1.25; }
.fm-jauge-phrase { font-size: var(--fs-sm); color: var(--txt); line-height: 1.4; }
.fm-jauge-evol { font-size: var(--fs-tag); color: var(--muted); line-height: 1.5; }
.fm-jauge-med { color: var(--muted); white-space: nowrap; }
.fm-jauge.compacte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.3fr); padding: 9px 0; gap: 16px; }
.fm-jauge.compacte .fm-jauge-titre { font-size: var(--fs-body); font-weight: 400; }
.fm-jauge.compacte .fm-jauge-valeur { font-size: var(--fs-body); }
.fm-jauge.compacte .fm-jauge-lecture { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.fm-jauge.compacte .fm-jauge-phrase { color: var(--muted); }
.fm-jauge.sans-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.fm-piste { position: relative; height: 14px; border-radius: 7px; background: var(--fm-zone); }
.fm-piste-centre { position: absolute; top: 0; bottom: 0; left: 25%; width: 50%; background: var(--fm-zone-centre); }
.fm-piste-mediane { position: absolute; z-index: 1; top: -4px; bottom: -4px; left: 50%; width: 2px; margin-left: -1px; background: rgb(var(--ink-rgb) / .6); }
/* Le curseur se pose à sa place (`left`), puis glisse depuis la médiane par
   une transformation : on n'anime que transform et opacity. */
.fm-curseur { position: absolute; z-index: 2; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--txt); box-shadow: 0 0 0 2px var(--bg2); transition: transform var(--t-revele) var(--courbe); }
.fm-curseur.hors { background: var(--marqueur); }
.fm-ecart { position: absolute; top: 3px; bottom: 3px; background: rgb(var(--ink-rgb) / .28); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-revele) var(--courbe); }
.fm-ecart.gauche { transform-origin: 100% 50%; }
.fm-ecart.hors { background: var(--marqueur); box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .35); }
.fm-resultat.vu .fm-ecart { transform: scaleX(1); }
.fm-jauge.compacte .fm-ecart { top: 2px; bottom: 2px; }
.fm-surligne { color: var(--txt); background-image: linear-gradient(transparent 60%, var(--marqueur) 60%, var(--marqueur) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
/* Dans un titre, le trait est plus fin, comme les mots-clés des titres du
   site (platine.css § 10). */
h2 .fm-surligne { background-image: linear-gradient(transparent 70%, var(--marqueur) 70%, var(--marqueur) 90%, transparent 90%); }
.fm-a-instruire { color: var(--amber); }
.fm-curseur-fantome { border-style: dashed; border-color: rgb(var(--ink-rgb) / .45); background: var(--bg2); }
.fm-piste.mini { height: 8px; }
.fm-piste.mini .fm-piste-mediane { top: -3px; bottom: -3px; }
.fm-piste.mini .fm-curseur, .fm-jauge.compacte .fm-curseur { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-width: 1.5px; }
.fm-jauge.compacte .fm-piste { height: 8px; }
.fm-jauge.compacte .fm-piste-mediane { top: -3px; bottom: -3px; }

.fm-echelle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1.2fr); gap: 22px; margin-top: 4px; }
.fm-echelle-piste { display: flex; justify-content: space-between; font-size: var(--fs-tag); color: var(--muted); }
.fm-echelle-piste i { font-style: normal; }

.fm-resultat:focus { outline: none; }
.fm-resultat.apparait { animation: fm-apparait var(--t-ample) var(--courbe) both; }
@keyframes fm-apparait { from { opacity: 0; } to { opacity: 1; } }
.fm-portrait { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--txt); font-weight: 500; margin: 0 0 18px; max-width: 70ch; text-wrap: pretty; }
.fm-note-profil { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg3); font-size: var(--fs-sm); line-height: 1.55; color: var(--txt); max-width: 80ch; }
.fm-lire { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; margin: 16px 0 0; max-width: 80ch; }
.fm-suite-t2 { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; }
.fm-suite-t2 p { margin: 0; font-size: var(--fs-md); color: var(--txt); line-height: 1.55; max-width: 60ch; }
.fm-suite-t2 .fm-guide { grid-row: span 2; }
.fm-suite-t2 .fm-note { grid-column: 1; margin: 0; }

/* Le détail : une discipline par bloc, comme dans un rapport. */
.fm-t2-resultat h3 { font-size: var(--fs-h3); margin: 0 0 6px; }
.fm-t2-resultat > .fm-intro { margin: 0 0 8px; font-size: var(--fs-md); color: var(--muted); line-height: 1.6; }
.fm-discipline { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.fm-discipline-tete h4 { font-size: var(--fs-label); font-family: var(--font-mono); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fm-verdict { font-size: var(--fs-lg); font-weight: 600; color: var(--txt); line-height: 1.4; margin: 0; text-wrap: balance; }
.fm-discipline-corps { min-width: 0; display: grid; gap: 12px; }
.fm-faits { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fm-faits li { font-size: var(--fs-body); color: var(--muted); line-height: 1.6; margin: 0; }
.fm-faits li b { color: var(--txt); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-evol-ligne { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.fm-question { margin: 0; font-size: var(--fs-body); color: var(--txt); line-height: 1.55; }
.fm-tous { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--r); }
.fm-tous > summary { cursor: pointer; padding: 12px 16px; font-size: var(--fs-body); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.fm-tous-corps { padding: 0 16px 10px; }
.fm-famille h5 { margin: 14px 0 0; font-size: var(--fs-label); font-family: var(--font-mono); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fm-renvoi { margin: 22px 0 0; }
.fm-renvoi a { font-weight: 600; color: var(--txt); text-decoration: underline; text-underline-offset: 3px; }

/* ── 4. Le cockpit ───────────────────────────────────────────────────────── */
/* La section cockpit est l'« appareil » de la page : le même graphite que le
   film de /pilotage (platine.css § 6), ses jetons sombres, et l'accent
   chartreuse que la charte donne aux objets sombres. Avec le pied de page,
   ce sont les deux seuls objets sombres de la fiche. */
.fm-cockpit { margin-top: 40px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); gap: 40px; align-items: center; scroll-margin-top: 16px; padding: 34px; border-radius: var(--r); color-scheme: dark;
  --txt: #E9EBEF; --muted: #AEB3BB; --faint: #9097A0; --border: rgba(255,255,255,.1); --border-strong: rgba(255,255,255,.18);
  background: #14171C; color: var(--txt); }
.fm-cockpit :focus-visible { outline-color: var(--marqueur); }
.fm-cockpit .fm-accent { color: var(--marqueur); }
.fm-cockpit .fm-btn-plein { background: var(--marqueur); color: #121B24; border-color: var(--marqueur); }
.fm-cockpit .fm-btn-plein:hover { background: #E9EBEF; border-color: #E9EBEF; color: #121B24; }
.fm-cockpit .fm-btn-creux { background: transparent; color: var(--txt); border-color: rgba(255,255,255,.32); }
.fm-cockpit .fm-btn-creux:hover { background: rgba(255,255,255,.06); border-color: var(--txt); }
/* Les deux boutons ne tiennent pas côte à côte dans la colonne : empilés,
   ils prennent la même largeur. */
.fm-cockpit .fm-actions .fm-btn { flex: 1 1 auto; }
.fm-cockpit h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 14px; padding: 0; border: 0; text-wrap: balance; }
.fm-cockpit-texte > p { font-size: var(--fs-md); line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.fm-cockpit-liste { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--border); }
.fm-cockpit-liste li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-body); color: var(--muted); line-height: 1.5; }
.fm-cockpit-liste strong { color: var(--txt); font-weight: 600; }
.fm-cockpit-texte > p.fm-cockpit-fichiers { font-size: var(--fs-sm); color: var(--txt); }
.fm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.fm-cockpit-visuel { margin: 0; min-width: 0; }
.fm-cockpit-visuel img { display: block; width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: var(--r); background: #F2F4F7; }
.fm-cockpit-visuel figcaption { font-size: var(--fs-tag); color: var(--muted); margin-top: 8px; line-height: 1.5; }

.fm-diagnostic { margin-top: 40px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg3); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: center; }
.fm-diagnostic h2 { font-size: var(--fs-h4); margin: 0 0 6px; padding: 0; border: 0; }
.fm-diagnostic p { margin: 0; font-size: var(--fs-body); color: var(--muted); line-height: 1.6; max-width: 72ch; }

/* ── 5. Le reste de la fiche ─────────────────────────────────────────────── */
.fm-section { margin-top: 64px; }
.fm-section > h2:first-child { margin-top: 0; }
.fm-details { border: 1px solid var(--border); border-radius: var(--r); background: var(--bg2); margin: 10px 0 0; }
.fm-details > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 14px 18px; min-height: 44px; }
.fm-details > summary::-webkit-details-marker { display: none; }
.fm-details > summary h3 { margin: 0; font-size: var(--fs-md); font-weight: 600; color: var(--txt); }
.fm-details > summary .fm-resume { grid-column: 1; font-size: var(--fs-sm); color: var(--muted); }
.fm-details > summary::after { content: ''; grid-column: 2; grid-row: 1 / span 2; width: 8px; height: 8px; border: solid var(--txt); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform var(--t-pose) var(--courbe); }
.fm-details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.fm-details[open] > summary { border-bottom: 1px solid var(--border); }
.fm-details > .fm-details-corps { padding: 6px 18px 16px; }
.fm-details .tableau { margin: 10px 0 0; background: var(--bg2); }
.fm-limites { margin-top: 18px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg2); }
.fm-limites h3 { font-size: var(--fs-md); margin: 0 0 4px; }
.fm-limites ul { margin: 6px 0 0; padding-left: 18px; }
.fm-limites li { font-size: var(--fs-body); }

.fm-page .faq { margin: 0; border-top: 1px solid var(--border); }
.fm-page .faq dt { margin: 0; padding: 16px 0 6px; }
.fm-page .faq dd { padding-bottom: 16px; border-bottom: 1px solid var(--border); max-width: 72ch; }

.fm-comparables { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--border); }
.fm-comparables li { margin: 0; }
.fm-page .fm-comparables a.fm-comparable { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--border); color: var(--txt); text-decoration: none; min-height: 44px; }
.fm-page .fm-comparables a.fm-comparable:hover { background: var(--bg3); }
.fm-comparable .c-nom { font-weight: 600; font-size: var(--fs-body); text-decoration: underline; text-decoration-color: rgb(var(--ink-rgb) / .35); text-underline-offset: 3px; }
.fm-comparable .c-dep { font-size: var(--fs-sm); color: var(--muted); }
.fm-comparable .c-score { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: var(--fs-tag); color: var(--txt); }
.fm-comparable .barre { height: 4px; background: rgb(var(--ink-rgb) / .08); }
.fm-comparable .barre i { display: block; height: 100%; background: var(--txt); }

.fm-dep { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--border); }
.fm-dep li { margin: 0; display: grid; grid-template-columns: 32px minmax(0, 1.4fr) minmax(0, 1fr) 88px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-body); }
.fm-dep .d-rang { font-family: var(--font-mono); font-size: var(--fs-tag); color: var(--faint); text-align: right; }
.fm-dep .d-nom { min-width: 0; overflow-wrap: anywhere; }
.fm-dep .d-nom a { color: var(--txt); }
.fm-dep .d-barre { height: 8px; background: rgb(var(--ink-rgb) / .05); }
.fm-dep .d-barre i { display: block; height: 100%; background: rgb(var(--ink-rgb) / .28); }
.fm-dep .d-val { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fm-dep li.moi .d-nom, .fm-dep li.moi .d-val, .fm-dep li.moi .d-rang { color: var(--txt); font-weight: 700; }
.fm-dep li.moi .d-barre i { background: var(--marqueur); box-shadow: inset 0 0 0 1.5px var(--txt); }
.fm-dep li.ellipse { grid-template-columns: 1fr; color: var(--faint); font-family: var(--font-mono); font-size: var(--fs-label); }

/* ── Mise en page étroite ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .fm-hero, .fm-cockpit { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fm-calcul { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fm-discipline { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 760px) {
  .fm-cockpit { padding: 22px 16px; }
  .fm-analyse { padding: 22px 16px 24px; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)) + 8px); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)) + 8px); }
  .fm-jauge, .fm-jauge.compacte { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .fm-jauge .fm-piste { grid-column: 1 / -1; grid-row: 2; }
  .fm-jauge .fm-jauge-lecture { grid-column: 1 / -1; grid-row: 3; }
  .fm-jauge.sans-panel .fm-jauge-lecture { grid-row: auto; }
  .fm-echelle { grid-template-columns: minmax(0, 1fr); }
  .fm-echelle > span:first-child, .fm-echelle > span:last-child { display: none; }
  .fm-suite-t2, .fm-diagnostic { grid-template-columns: minmax(0, 1fr); }
  .fm-suite-t2 .fm-guide { grid-row: auto; }
  .fm-guide .fm-btn { flex: 1 1 auto; width: auto; min-width: 0; }
  .fm-temps li { padding-right: 14px; font-size: var(--fs-sm); }
  .fm-page .fm-comparables a.fm-comparable { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fm-dep li { grid-template-columns: 26px minmax(0, 1fr) 76px; }
  .fm-dep .d-barre { grid-column: 2 / -1; grid-row: 2; }
}

/* Moins d'animations : la règle couvre tout (DESIGN.md). Les durées des
   étapes restent : ce sont des temps de LECTURE, pas des mouvements. */
@media (prefers-reduced-motion: reduce) {
  .fm-page *, .fm-page *::before, .fm-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
