/* Charte « cases coloriées » (docs/charte/charte.html, validée le 28/11/2026) : cahier à petits carreaux lilas de 24 px,
   tout calé sur la grille (hauteurs de 36 ou 48 px), couleur posée en cases pleines, encre violette, traits de 1,5 px,
   angles droits, aucune ombre, blocs voisins qui partagent leur trait.
   Toujours en clair, quel que soit le réglage du système (choix de Paul, 28/11/2026) : pas de mode nuit automatique.
   Ce fichier porte les jetons et les composants communs ; une page peut ajouter sa feuille (bloc « tete »). */
:root {
  --pas: 24px;
  --papier: #fcfbff;       /* fond de page */
  --grille: #e3ddf3;       /* petits carreaux */
  --carte: #ffffff;        /* fiches, champs */
  --encre: #2b2540;        /* texte, traits */
  --encre-2: #625a7c;      /* texte secondaire */
  --menthe: #bdeccf;       /* peu sélective · plutôt accessible */
  --vanille: #fbe9a0;      /* disputé · atteignable · action principale · « à retenir » */
  --peche: #ffcfb0;        /* très demandé · ambitieux */
  --rose: #f9c4da;         /* ultra demandé · très ambitieux */
  --lilas: #d6cdfa;        /* navigation, choix sélectionné */
  --ciel: #c6e3f8;         /* en-têtes de fiche */
  --sur-pastel: #2b2540;   /* texte posé sur un pastel */
  --focus: #4f86d6;
  --titre: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --chiffres: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --bord: 1.5px;
  color-scheme: light;
}

/* Base -------------------------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--encre);
  background-color: var(--papier);
  background-image: linear-gradient(90deg, var(--grille) 1px, transparent 1px), linear-gradient(0deg, var(--grille) 1px, transparent 1px);
  background-size: var(--pas) var(--pas);
  font: 400 17px/1.55 var(--texte);
  overflow-wrap: break-word;
}
.page { max-width: 1128px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 700; text-wrap: balance; line-height: 1.1; }
h1 { font-size: clamp(32px, 6.5vw, 56px); letter-spacing: -.04em; margin: 24px 0 12px; }
h2 { font-size: clamp(24px, 4.4vw, 34px); letter-spacing: -.035em; margin: 0 0 12px; }
h3 { font-size: 19px; letter-spacing: -.02em; margin: 24px 0 8px; }
a { color: inherit; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
small { color: var(--encre-2); }
.num { font-family: var(--chiffres); font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Composants de la charte ------------------------------------------------------------------------------------- */
/* Case coloriée : le motif de base (24 px, trait d'encre, couleur pleine) */
.carre { display: inline-block; width: var(--pas); height: var(--pas); flex: none; border: var(--bord) solid var(--encre); background: var(--c, var(--ciel)); }
.logo-cases { display: inline-flex; }
.logo-cases .carre + .carre { border-left: 0; }
/* Mot colorié dans un titre : une case pleine posée sur la grille */
.colorie { display: inline-block; line-height: 1; padding: .04em .12em .1em; margin-top: .08em; background: var(--c, var(--ciel)); color: var(--sur-pastel);
  border: var(--bord) solid var(--encre); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.objet { background: var(--carte); border: var(--bord) solid var(--encre); }
.surtitre { font: 700 12px/1.3 var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); margin: 0; }
.chapo { font-size: 19px; max-width: 60ch; margin: 0; }
.aide { font-size: 14px; color: var(--encre-2); line-height: 1.4; }
.note { font-size: 15px; color: var(--encre-2); max-width: 70ch; }
.source { font-size: 13px; color: var(--encre-2); line-height: 1.45; }
/* Phrase de tendance sous un graphique */
.annot { font: 700 16px/1.35 var(--texte); color: var(--encre); margin: 12px 0 0; display: flex; gap: 8px; align-items: baseline; }
.annot::before { content: "↳"; font-family: var(--chiffres); }
/* Encadré « à retenir » : vanille pleine */
.retenir { background: var(--vanille); color: var(--sur-pastel); border: var(--bord) solid var(--encre); padding: 12px 16px; max-width: 72ch; margin: 24px 0; }
.retenir strong { font-family: var(--titre); display: block; margin-bottom: 2px; }
.retenir a { color: var(--sur-pastel); }

/* Boutons : case vanille pleine (action principale), 48 px, toujours une flèche ou un verbe.
   Les étiquettes de niveau, elles, sont blanches avec une seule case colorée à gauche : on ne confond pas. */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1.15 var(--texte); cursor: pointer; text-decoration: none;
  color: var(--sur-pastel); background: var(--vanille); min-height: 48px; padding: 6px 20px; text-align: center;
  border: var(--bord) solid var(--encre); border-radius: 0; transition: background-color .12s; }
.bouton:hover { background: color-mix(in srgb, var(--vanille), var(--encre) 10%); }
.bouton:active { background: color-mix(in srgb, var(--vanille), var(--encre) 18%); }
.bouton.second { background: var(--carte); color: var(--encre); }
.bouton.second:hover { background: color-mix(in srgb, var(--carte), var(--lilas) 45%); }
.bouton.petit { min-height: 36px; padding: 4px 14px; font-size: 15px; }
.puces { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.puce { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1.15 var(--texte); color: var(--encre); text-decoration: none;
  min-height: 36px; padding: 4px 12px; background: var(--carte); border: var(--bord) solid var(--encre); }
a.puce:hover { background: color-mix(in srgb, var(--carte), var(--lilas) 45%); }
.puce small { font-family: var(--chiffres); font-weight: 600; }

/* Sélectivité d'une formation (taux d'accès) : étiquette blanche, une case de couleur à gauche, le mot et le chiffre.
   Mêmes cases pour les niveaux personnels du parcours (.niv), avec en plus des marches. */
.s-large, .niv-acc, .z-acc { --c: var(--menthe); }
.s-dispute, .niv-att, .z-att { --c: var(--vanille); }
.s-tres, .niv-amb, .z-amb { --c: var(--peche); }
.s-ultra, .niv-tres, .z-tres { --c: var(--rose); }
.select, .niv { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; max-width: 100%; padding: 0 12px 0 0; vertical-align: middle;
  background: var(--carte); color: var(--encre); border: var(--bord) solid var(--encre); font: 700 14px/1.15 var(--texte); }
.select::before { content: ""; align-self: stretch; flex: none; width: 33px; min-height: 33px; background: var(--c); border-right: var(--bord) solid var(--encre); }
.select .num { font-size: 13px; font-weight: 600; white-space: nowrap; }
/* Non publié / peu ouverte : case neutre en pointillés */
.select.s-nd, .select.s-inconnu, .niv-autre, .niv-aucun { border-style: dashed; color: var(--encre-2); font-weight: 700; }
.select.s-nd::before, .select.s-inconnu::before { background: var(--carte); border-right-style: dashed; }
.niv-autre::before, .niv-aucun::before { content: ""; align-self: stretch; flex: none; width: 33px; min-height: 33px; border-right: var(--bord) dashed var(--encre); }
/* Marches : une à quatre marches remplies, du plus accessible au plus ambitieux (forme, en plus du mot et de la couleur) */
.marches { align-self: stretch; flex: none; width: 33px; min-height: 33px; display: flex; align-items: flex-end; justify-content: center; gap: 2px;
  padding: 0 0 7px; background: var(--c); border-right: var(--bord) solid var(--encre); }
.marches i { display: block; width: 5px; border: 1.5px solid var(--sur-pastel); background: transparent; }
.marches i:nth-child(1) { height: 6px; } .marches i:nth-child(2) { height: 10px; }
.marches i:nth-child(3) { height: 14px; } .marches i:nth-child(4) { height: 18px; }
.niv-acc .marches i:nth-child(-n+1), .niv-att .marches i:nth-child(-n+2),
.niv-amb .marches i:nth-child(-n+3), .niv-tres .marches i { background: var(--sur-pastel); }
.niv b, .select b { font-family: var(--chiffres); font-size: 15px; font-weight: 600; }

/* En-tête ------------------------------------------------------------------------------------------------------ */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 24px 0; }
.entete-haut { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 23px/1 var(--titre); letter-spacing: -.03em; }
.independant { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; font: 700 11px/1.2 var(--texte); letter-spacing: .06em;
  text-transform: uppercase; color: var(--encre-2); background: var(--carte); border: var(--bord) dashed var(--encre-2); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.onglet { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; font: 700 14px/1.15 var(--texte); text-decoration: none;
  border: var(--bord) solid transparent; }
.onglet:hover { border-color: var(--encre); background: var(--carte); }
.onglet[aria-current="page"], .onglet[aria-current="page"]:hover { background: var(--lilas); color: var(--sur-pastel); border-color: var(--encre); }
.onglet.phare { border-color: var(--encre); background: var(--carte); }
.onglet.phare[aria-current="page"] { background: var(--lilas); }
@media (max-width: 639px) {
  .nav { width: 100%; gap: 0; padding: 0 var(--bord) var(--bord) 0; }
  .onglet { flex: 1 1 auto; justify-content: center; text-align: center; padding: 0 6px; font-size: 13px; border-color: var(--encre); background: var(--carte);
    margin: 0 calc(-1 * var(--bord)) calc(-1 * var(--bord)) 0; }
}

/* Pied --------------------------------------------------------------------------------------------------------- */
.pied { border-top: var(--bord) solid var(--encre); margin-top: 72px; padding: 16px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  font-size: 14px; color: var(--encre-2); display: grid; gap: 6px; }
.pied p { margin: 0; max-width: 80ch; }
.pied strong { color: var(--encre); }

/* Éléments de page --------------------------------------------------------------------------------------------- */
.fil { font-size: 14px; color: var(--encre-2); margin: 24px 0 0; }
.fil a { font-weight: 700; }
.sous-titre { font-weight: 700; color: var(--encre-2); margin: 0 0 6px; }
.rubrique { margin-top: 48px; }
.rubrique > p { max-width: 70ch; }
.rubrique > h2, .deux > div > h2 { display: flex; align-items: flex-start; gap: 12px; }
.rubrique > h2::before, .deux > div > h2::before { content: ""; flex: none; width: var(--pas); height: var(--pas); margin-top: calc((1.1em - var(--pas)) / 2);
  background: var(--ciel); border: var(--bord) solid var(--encre); }
.alerte { background: var(--carte); border: var(--bord) solid var(--encre); padding: 12px 16px; max-width: 70ch; display: flex; gap: 12px; align-items: start; font-weight: 700; }
.alerte::before { content: "!"; flex: none; display: grid; place-items: center; width: var(--pas); height: var(--pas); border: var(--bord) solid var(--encre);
  font: 700 14px/1 var(--chiffres); background: var(--rose); color: var(--sur-pastel); }

/* Tableau : en-tête lilas, lignes fines ; sous 640 px, chaque ligne devient une fiche collée (pas de défilement horizontal) */
.defile { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--carte); border: var(--bord) solid var(--encre); }
.tableau th, .tableau td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--grille); vertical-align: middle; }
.tableau th { font: 700 12px/1.2 var(--texte); letter-spacing: .06em; text-transform: uppercase; color: var(--sur-pastel);
  background: var(--lilas); border-bottom: var(--bord) solid var(--encre); padding-block: 10px; }
.tableau th.n { text-align: right; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau td.n { text-align: right; font-family: var(--chiffres); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau td.num { font-weight: 600; }
.tableau tbody tr:hover { background: color-mix(in srgb, var(--carte), var(--lilas) 22%); }
.tableau a { font-weight: 700; }
.tableau small { display: inline-block; }
@media (max-width: 639px) {
  .tableau th, .tableau td { padding: 8px 6px; }
  .tableau.fiches, .tableau.fiches tbody { display: block; border: 0; background: none; }
  .tableau.fiches thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau.fiches tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 16px;
    background: var(--carte); border: var(--bord) solid var(--encre); }
  .tableau.fiches tr + tr { margin-top: calc(-1 * var(--bord)); }
  .tableau.fiches td { display: block; padding: 0; border: 0; text-align: left; }
  .tableau.fiches td.large { grid-column: 1 / -1; }
  .tableau.fiches td[data-l]::before { content: attr(data-l); display: block; font: 700 11px/1.3 var(--texte); letter-spacing: .06em;
    text-transform: uppercase; color: var(--encre-2); margin-bottom: 2px; }
}

/* Accueil ------------------------------------------------------------------------------------------------------ */
.une { display: grid; gap: 24px; padding-top: 48px; }
.une h1 { font-size: clamp(38px, 7.5vw, 76px); line-height: 1.14; margin: 0; max-width: 16ch; }
.une .colorie { --c: var(--menthe); }
.entree { display: grid; gap: 12px; justify-items: start; margin-top: 48px; padding: 24px 16px; text-decoration: none; max-width: 820px;
  transition: background-color .12s; }
.entree:hover { background: color-mix(in srgb, var(--carte), var(--lilas) 18%); }
.entree .surtitre { display: inline-flex; align-items: center; min-height: var(--pas); padding: 0 8px; background: var(--lilas); color: var(--sur-pastel);
  border: var(--bord) solid var(--encre); }
.entree-titre { font: 700 clamp(26px, 6vw, 40px)/1.1 var(--titre); letter-spacing: -.03em; text-wrap: balance; }
.entree-texte { max-width: 56ch; }
.entree .bouton { pointer-events: none; }
@media (min-width: 640px) { .entree { padding: 24px 32px 32px; } }
.recherche { display: grid; gap: 8px; max-width: 720px; }
.recherche label { font: 700 17px/1.2 var(--titre); }
.recherche input { width: 100%; min-height: 48px; font: 400 18px/1.2 var(--texte); color: var(--encre); padding: 8px 16px; background: var(--carte);
  border: var(--bord) solid var(--encre); border-radius: 0; }
.recherche input::placeholder { color: var(--encre-2); }
.resultats, .voisines { list-style: none; padding: 0; margin: 12px 0 0; display: grid; max-width: 720px; }
.resultats li, .voisines li { display: grid; gap: 6px; justify-items: start; background: var(--carte); border: var(--bord) solid var(--encre); padding: 12px 16px; }
.resultats li + li, .voisines li + li { margin-top: calc(-1 * var(--bord)); }
.resultats li a, .voisines a { font-weight: 700; }
.resultats li .meta, .voisines .meta { color: var(--encre-2); font-size: 14px; }
.familles { display: grid; }
.familles details { background: var(--carte); border: var(--bord) solid var(--encre); }
.familles details + details { margin-top: calc(-1 * var(--bord)); }
.familles summary { cursor: pointer; min-height: 48px; padding: 10px 16px; font: 700 19px/1.3 var(--titre); letter-spacing: -.02em; }
.familles summary:hover { background: color-mix(in srgb, var(--carte), var(--ciel) 35%); }
.familles details[open] > summary { background: var(--ciel); color: var(--sur-pastel); border-bottom: var(--bord) solid var(--encre); }
.familles summary small { font: 600 14px/1 var(--chiffres); letter-spacing: 0; }
.filieres { list-style: none; margin: 0; padding: 8px 16px 16px; }
.filieres li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--grille); }
.filieres li small { font-family: var(--chiffres); font-weight: 600; white-space: nowrap; }
@media (min-width: 640px) { .filieres { columns: 2; column-gap: 32px; } }

/* Fiche formation ---------------------------------------------------------------------------------------------- */
/* En-tête de fiche : case ciel ; les chiffres clés se collent dessous en partageant le trait */
.fiche-tete { display: grid; gap: 8px; justify-items: start; margin-top: 24px; padding: 16px; background: var(--ciel); color: var(--sur-pastel);
  border: var(--bord) solid var(--encre); }
.fiche-tete .surtitre { color: color-mix(in srgb, var(--sur-pastel) 78%, transparent); }
.fiche-tete h1 { margin: 0; font-size: clamp(30px, 6vw, 48px); overflow-wrap: anywhere; }
.fiche-tete .sous-titre { color: color-mix(in srgb, var(--sur-pastel) 82%, transparent); margin: 0; }
.fiche-tete .libelle { color: color-mix(in srgb, var(--sur-pastel) 82%, transparent); margin: 0; max-width: 70ch; }
@media (min-width: 640px) { .fiche-tete { padding: 24px; } }
.fiche .chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bord); margin: 24px 0 8px;
  background: var(--encre); border: var(--bord) solid var(--encre); }
.fiche-tete + .chiffres { margin-top: calc(-1 * var(--bord)); }
@media (min-width: 640px) { .fiche .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fiche .chiffre { background: var(--carte); padding: 12px; min-width: 0; display: grid; grid-template-columns: var(--pas) minmax(0, 1fr); column-gap: 12px; align-items: start; }
.fiche .chiffre::before { content: ""; grid-row: span 2; width: var(--pas); height: calc(var(--pas) * 2); border: var(--bord) solid var(--encre);
  background: linear-gradient(0deg, var(--encre) var(--bord), transparent var(--bord)) 0 0 / 100% var(--pas), var(--c, var(--ciel)); }
.fiche .chiffre:nth-child(2) { --c: var(--lilas); }
.fiche .chiffre:nth-child(3) { --c: var(--carte); }
.fiche .chiffre .v { font: 600 clamp(24px, 6vw, 30px)/1 var(--chiffres); font-variant-numeric: tabular-nums; }
.fiche .chiffre .l { font-size: 14px; color: var(--encre-2); margin-top: 6px; line-height: 1.25; }
@media (max-width: 340px) { .fiche .chiffre { grid-template-columns: minmax(0, 1fr); } .fiche .chiffre::before { display: none; } }
.aide-lien { display: inline-grid; place-items: center; width: var(--pas); height: var(--pas); margin-left: 2px; border: var(--bord) solid var(--encre);
  background: var(--carte); font: 700 12px/1 var(--chiffres); text-decoration: none; color: var(--encre); vertical-align: middle; }
.aide-lien:hover { background: var(--lilas); }
.deux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 760px) { .deux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.deux > div > h2 { font-size: clamp(21px, 4vw, 26px); }

/* Petits graphiques (calculs.svg_courbe) : une ligne d'encre, des points carrés, la valeur écrite au-dessus */
.graph { width: 100%; max-width: 456px; height: auto; display: block; overflow: visible; background: var(--carte); border: var(--bord) solid var(--encre); }
.graph .repere { stroke: var(--grille); stroke-width: 1; }
.graph .ligne { fill: none; stroke: var(--encre); stroke-width: 2.5; stroke-linejoin: miter; }
.graph .point { fill: var(--carte); stroke: var(--encre); stroke-width: 2.5; }
.graph .point.dernier { fill: var(--ciel); }
.graph text { font: 500 15px var(--chiffres); fill: var(--encre-2); }
.graph .val { fill: var(--encre); font-size: 16px; font-weight: 600; }

/* Jauges : 10 cases de 10 %, coloriées en ciel (la couleur de niveau reste réservée à la sélectivité) */
.jauges { display: grid; gap: 8px; max-width: 640px; }
.jauges h3 { margin: 24px 0 4px; font-size: 17px; }
.jauges h3:first-child { margin-top: 0; }
.cles + .jauges { margin-top: 48px; }
.jauges .note { margin: 0 0 4px; }
.jauge-ligne { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr) 3.6em; gap: 12px; align-items: center; font-size: 15px; line-height: 1.25; }
.jauge-ligne .num { text-align: right; font-weight: 600; }
.jauge { position: relative; height: 12px; border: var(--bord) solid var(--encre); background: var(--carte); }
.jauge i { display: block; height: 100%; background: var(--ciel); }
.jauge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--encre) 1px, transparent 1px) 0 0 / 10% 100%; opacity: .3; pointer-events: none; }
.cles { list-style: none; padding: 0; margin: 12px 0 0; display: grid; font-size: 15px; max-width: 640px; }
.cles li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--grille); padding-block: 6px; }
.cles li span:last-child { font-family: var(--chiffres); font-weight: 600; white-space: nowrap; }
.officiel { display: grid; gap: 12px; justify-items: start; margin-top: 48px; padding: 16px; }
.officiel p { margin: 0; }
@media (min-width: 640px) { .officiel { padding: 24px; } }

/* Filière, ville ----------------------------------------------------------------------------------------------- */
.villes { margin-top: 4px; }

/* Méthode ------------------------------------------------------------------------------------------------------ */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 48px; display: flex; align-items: flex-start; gap: 12px; }
.prose h2::before { content: ""; flex: none; width: var(--pas); height: var(--pas); margin-top: calc((1.1em - var(--pas)) / 2); background: var(--ciel); border: var(--bord) solid var(--encre); }
.prose a { overflow-wrap: anywhere; }
.prose li { margin: 6px 0; }
.echelle-sel { list-style: none; padding: 0; margin: 12px 0; display: grid; background: var(--carte); border: var(--bord) solid var(--encre); }
.echelle-sel li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; margin: 0; padding: 12px 16px; }
.echelle-sel li + li { border-top: 1px solid var(--grille); }
@media (min-width: 560px) { .echelle-sel li { grid-template-columns: 296px minmax(0, 1fr); align-items: center; gap: 16px; } }

@media (prefers-reduced-motion: reduce) { .bouton, .entree { transition: none; } }

/* Téléphone : tout ce qui se touche fait au moins 44 px de haut (onglets, puces, petits boutons, liens de liste) */
@media (max-width: 639px) {
  .onglet, .puce, .bouton.petit, .logo { min-height: 44px; }
  .fil a { display: inline-block; padding: 10px 0; }
  .filieres li { padding: 0; align-items: center; }
  .filieres li a { display: inline-block; padding: 10px 0; }
  .resultats li a, .voisines li a { display: inline-block; padding: 6px 0; }
  .aide-lien { width: 32px; height: 32px; }
  .tableau.fiches td a { display: inline-block; padding: 8px 0; }
  /* tableau des rangs de la fiche : le groupe passe sous le chiffre, les en-têtes se resserrent (plus de défilement de côté) */
  .tableau th { letter-spacing: .02em; font-size: 11px; }
  .tableau td.n small { display: block; white-space: normal; font-size: 12px; line-height: 1.2; }
}

/* Bouton « Une idée ? » et sa fenêtre (toutes les pages) ------------------------------------------------------- */
.idee-bouton { position: fixed; right: 16px; bottom: 16px; z-index: 30; min-height: 48px; padding: 0 16px;
  font: 700 15px/1 var(--titre); color: var(--encre); background: var(--lilas); border: var(--bord) solid var(--encre);
  border-radius: 0; cursor: pointer; }
.idee-bouton:hover { background: color-mix(in srgb, var(--lilas), var(--encre) 10%); }
/* sur le parcours, une barre d'actions colle au bas de l'écran : le bouton passe au-dessus */
body:has(.barre-actions, .barre-gardees) .idee-bouton { bottom: 96px; }
.idee { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; color: var(--encre);
  background: var(--carte); border: var(--bord) solid var(--encre); border-radius: 0; }
.idee::backdrop { background: rgb(43 37 64 / .35); }
.idee-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.idee h2 { margin: 0; font: 700 22px/1.2 var(--titre); }
.idee label { font-weight: 700; }
.idee textarea { width: 100%; box-sizing: border-box; min-height: 144px; padding: 12px; font: 16px/1.4 var(--texte);
  color: var(--encre); background: var(--carte); border: var(--bord) solid var(--encre); border-radius: 0; resize: vertical; }
.idee-note { margin: 0; font-size: 14px; color: var(--encre-2, var(--encre)); }
.idee-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.idee-etat { margin: 0; min-height: 1.4em; font-weight: 700; }
.idee-etat.ok::before { content: "✓ "; }
.idee-etat.erreur::before { content: "! "; }
.idee-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.idee .lien-bouton { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--encre);
  text-decoration: underline; cursor: pointer; }
@media print { .idee-bouton, .idee { display: none; } }
/* Sur téléphone, le bouton se réduit à son crayon (48 px) pour masquer le moins de texte possible. Dans le parcours, il
   cachait le « Détails » des lignes, la carte et les barres collées en bas : il se range en bas de page, après le pied. */
@media (max-width: 639px) {
  .idee-bouton { width: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .idee-bouton .idee-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body:has(.parcours) .idee-bouton { position: static; display: flex; width: auto; padding: 0 16px; margin: -24px 16px calc(24px + env(safe-area-inset-bottom, 0px)) auto; }
  body:has(.parcours) .idee-bouton .idee-texte { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .idee-form { padding: 16px; }
  .idee .lien-bouton { min-height: 44px; }
  .idee { max-height: calc(100dvh - 32px); }
}
