/* app.css — piste A « Le bracelet de naissance » (choisie le 23/11/2026 ; le bracelet du site en bleu, seul
 * sur la page, le 24/11) : jaune layette, pressions
 * blanches, courbes vert canard, police Lexend hébergée ici, toujours clair. Téléphone d'abord (390 et 320 px). */
@font-face {
  font-family: "Lexend";
  src: url("/lexend.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --fond: #f6f4ee; --carte: #fff; --encre: #1e2230; --doux: #565c6a; --trait: #e6e1d5;
  --jaune: #f3c64a; --jaune-fonce: #ecbd3e; --bleu: #9ccbec; --bleu-fonce: #8fc0e4; --vert: #2b6a5f; --vert-pale: #e2efe9; --ocre: #8a6a12;
  --rayon: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 400 1rem/1.55 "Lexend", system-ui, sans-serif;
}
a { color: var(--vert); text-underline-offset: .18em; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; margin-top: 1.4rem; }
sup { font-size: .62em; }

main { display: grid; gap: 14px; padding: 0 16px 24px; max-width: 1180px; margin: 0 auto; }
.maternite, .departement, .classements { display: grid; gap: 14px; }
#autour h2 a { color: inherit; }
.carte { background: var(--carte); border-radius: var(--rayon); padding: 20px 18px; box-shadow: 0 1px 2px rgb(30 34 48 / .06); min-width: 0; }
.carte > * + * { margin-top: .7rem; }

/* Le bracelet du site : une bande bleue, deux pressions, une fenêtre où l'on écrit, des trous de réglage. */
.bracelet {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  padding: 6px 14px 6px 9px; border-radius: 999px; color: var(--encre); text-decoration: none;
  background: repeating-linear-gradient(90deg, var(--bleu) 0 9px, var(--bleu-fonce) 9px 10px);
  box-shadow: inset 0 -3px 0 rgb(20 70 120 / .2), inset 0 2px 0 rgb(255 255 255 / .5), 0 2px 6px rgb(30 34 48 / .12);
}
.pressions { display: flex; flex: none; gap: 5px; }
.pressions i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fff 0 30%, #ece6d8 33% 100%); box-shadow: 0 1px 2px rgb(30 34 48 / .35); }
.fenetre { display: flex; flex-direction: column; min-width: 0; padding: 4px 14px 6px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px rgb(30 34 48 / .14); }
.fenetre small { color: var(--doux); font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.fenetre b, .fenetre h1 { font-size: 1.12rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.trous { display: flex; flex: none; gap: 8px; margin-left: 4px; }
.trous i { width: 8px; height: 8px; border-radius: 50%; background: var(--fond); box-shadow: inset 0 1px 2px rgb(30 34 48 / .5); }
a.bracelet:hover { color: var(--encre); filter: brightness(1.03); }

/* Le titre d'une page (maternité, département) : l'étiquette en petites capitales, le nom en grand. */
.titre-page small { display: block; color: var(--doux); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.titre-page h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }

.tete { max-width: 1180px; margin: 0 auto; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* La recherche, en haut de chaque page : un champ, et la liste des réponses dessous. */
.recherche { position: relative; flex: 1 1 280px; max-width: 480px; }
.recherche label { display: block; font-size: .8rem; font-weight: 700; color: var(--doux); margin-bottom: 4px; }
.recherche input { width: 100%; min-height: 44px; padding: 10px 14px; border: 2px solid var(--encre); border-radius: 12px; background: #fff; color: var(--encre); font: inherit; }
#resultats { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgb(30 34 48 / .18); max-height: 70vh; overflow-y: auto; }
#resultats a { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; color: var(--encre); text-decoration: none; }
#resultats a:hover, #resultats a:focus-visible { background: var(--fond); }
#resultats span { color: var(--doux); font-size: .85rem; }
#resultats .ancien { font-style: italic; }
#resultats .vide { padding: 8px 10px; color: var(--doux); }

/* Le haut de la page d'une maternité. */
.lieu { color: var(--doux); font-weight: 600; }
.etablissement { font-weight: 600; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.puces li { padding: 4px 12px; border-radius: 999px; background: var(--fond); font-size: .9rem; font-weight: 600; }
.puces a { color: var(--encre); }
.grand { font-size: 1.05rem; font-weight: 600; }
.grand b { display: block; font-size: 2.9rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.phrase { color: var(--encre); }
.titre { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.note { color: var(--doux); font-size: .92rem; }
.source { color: var(--doux); font-size: .82rem; }

/* Les courbes (server/courbe.ts) : attributs de dessin ici, rien dans la page. */
.courbe { display: block; width: 100%; height: auto; overflow: visible; }
.courbe.large { display: none; }
#nombre-france .courbe, .departement #nombre .courbe { max-width: 760px; }
.deux > div > * + * { margin-top: .7rem; }
.deux > div + div { margin-top: 1rem; }
.c-grille { stroke: var(--trait); stroke-width: 1; }
.c-axe { fill: var(--doux); font: 500 13px "Lexend", system-ui, sans-serif; }
.c-valeur { fill: var(--encre); font: 700 15px "Lexend", system-ui, sans-serif; }
.c-aire { fill: var(--vert-pale); }
.c-ligne { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.c-trou { fill: none; stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; }
.c-point { stroke: #fff; stroke-width: 1.5; }
.c-ligne.c-a, .c-trou.c-a { stroke: var(--vert); }
.c-point.c-a { fill: var(--vert); }
.c-ligne.c-b, .c-trou.c-b { stroke: var(--ocre); stroke-width: 2; stroke-dasharray: 6 5; }
.c-point.c-b { fill: var(--ocre); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--doux); }
.legende span::before { content: ""; display: inline-block; width: 22px; height: 0; margin: 0 6px 4px 0; border-top: 3px solid var(--vert); vertical-align: middle; }
.legende .l-b::before { border-top: 2px dashed var(--ocre); }

details { border-top: 1px solid var(--trait); padding-top: .6rem; }
summary { cursor: pointer; font-weight: 600; color: var(--vert); min-height: 44px; display: flex; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--trait); }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--doux); font-weight: 600; font-size: .8rem; }

.noms { list-style: none; padding: 0; display: grid; gap: 4px; }
.noms span { display: inline-block; min-width: 7.5em; color: var(--doux); font-variant-numeric: tabular-nums; }

/* Les césariennes. */
.comparer { list-style: none; padding: 0; display: grid; gap: 6px; }
.comparer li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--fond); }
.comparer b { font-variant-numeric: tabular-nums; }

/* Lits, salles et séjours : une carte par chiffre, ses repères dessous. */
.ratios { list-style: none; padding: 0; display: grid; gap: 8px; }
.ratios li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--fond); }
.ratios .r-nom { font-weight: 600; }
.ratios b { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ratios .r-rep { font-size: .88rem; font-variant-numeric: tabular-nums; }
.ratios .r-def { color: var(--doux); font-size: .8rem; }
/* Les légendes : la réponse courte, la jauge (le hasard en bande, la légende en point), les tableaux. */
.legendes { display: grid; gap: 14px; }
.reponse { font-size: 1.35rem; font-weight: 800; margin: .2rem 0 .4rem; }
.jauge { display: block; width: 100%; max-width: 520px; height: auto; margin: .3rem 0; }
.j-axe { stroke: var(--trait); stroke-width: 2; }
.j-marge { fill: #d9d4c7; }
.j-cent { stroke: var(--doux); stroke-width: 1.5; stroke-dasharray: 3 3; }
.j-point { fill: var(--ocre); stroke: #fff; stroke-width: 2; }
.j-texte { fill: var(--doux); font: 500 11px "Lexend", system-ui, sans-serif; }
.j-legende { color: var(--doux); font-size: .88rem; margin: 0 0 .4rem; }
.j-l-point { color: var(--ocre); }
.j-l-marge { color: #b9b2a2; }
.tempetes { padding-left: 1.1rem; display: grid; gap: 4px; }
table.semaine td { text-align: right; }
.deux { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
/* Le personnel : le tableau d'un département (sa ligne de repère), les classements dépliables par type. */
table.personnel td { text-align: right; }
table.personnel tr.repere { border-top: 2px solid var(--trait); color: var(--doux); }
#personnel-sages-femmes details, #personnel-auxiliaires details { border-top: 1px solid var(--trait); padding: 6px 0; }
#personnel-sages-femmes summary, #personnel-auxiliaires summary { cursor: pointer; font-weight: 600; color: var(--vert); padding: 6px 0; }
#personnel-sages-femmes h4, #personnel-auxiliaires h4 { margin: .6rem 0 .3rem; }

/* Les prénoms : deux colonnes, le rang de l'année d'avant en flèche. */
.prenoms-deux { display: grid; gap: 16px; }
.prenoms { padding-left: 1.6rem; display: grid; gap: 4px; margin: .4rem 0 0; }
.prenoms li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.ecritures { flex-basis: 100%; color: var(--doux); font-size: .8rem; line-height: 1.35; }
details.ecritures { border-top: 0; padding-top: 0; }
details.ecritures summary { display: inline-block; min-height: 0; padding: 2px 0; font-weight: 400; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
details.ecritures[open] summary { margin-bottom: .1rem; }
.prenoms-suite { margin-top: .5rem; }
.prenoms-suite summary { cursor: pointer; color: var(--vert); font-weight: 600; padding: 6px 0; }
/* Les deux vues des prénoms, sans script : deux boutons radio, la vue cochée seule montrée. */
.prenoms-vues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .3rem; }
.vue-choix { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vue-choix + label { border: 1.5px solid var(--vert); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; color: var(--vert); font-size: .9rem; }
.vue-choix:checked + label { background: var(--vert); color: #fff; }
.vue-choix:focus-visible + label { outline: 2px solid var(--encre); outline-offset: 2px; }
.prenoms-vues > .prenoms-deux { flex-basis: 100%; }
.prenoms-vues > .vue-regroupees, #vue-regroupees:checked ~ .vue-telles { display: none; }
#vue-regroupees:checked ~ .vue-regroupees { display: grid; }
.versus { flex-basis: 100%; color: var(--doux); font-size: .8rem; }
/* Classements : maternités ou prénoms, puis la zone comparée, en pastilles. */
.onglets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 .7rem; }
.onglets a { border: 1.5px solid var(--vert); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--vert); font-size: .9rem; text-decoration: none; }
.onglets a[aria-current="page"] { background: var(--vert); color: #fff; }
.deps-prenoms a[aria-current="page"] { outline: 2px solid var(--vert); }
.prenoms .eff { color: var(--doux); font-variant-numeric: tabular-nums; margin-left: auto; }
.rg { position: relative; min-width: 4.2em; text-align: right; color: var(--doux); font-size: .85rem; font-variant-numeric: tabular-nums; }
.rg.monte { color: var(--vert); font-weight: 600; }
.lecteur { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* La carte (server/carte.ts) : départements jaune pâle, un rond vert par maternité, celle de la page en ocre. */
.carte-svg { display: block; width: 100%; height: auto; }
#autour .carte-svg { max-width: 560px; margin-inline: auto; }
.c-dep { fill: #fbefc6; stroke: #fff; stroke-width: .7; stroke-linejoin: round; fill-rule: evenodd; }
.c-dep-choisi { fill: var(--jaune); }
.carte-departement .c-dep:not(.c-dep-choisi) { fill: #efe9db; }
.c-cadre { fill: none; stroke: var(--trait); stroke-width: 1; }
.c-cadre.c-fond { fill: var(--fond); stroke: none; }
.c-cadre.c-bord { stroke: var(--doux); }
.c-zone { fill: none; stroke: var(--doux); stroke-width: .8; pointer-events: none; }
.c-texte { fill: var(--doux); font: 500 17px "Lexend", system-ui, sans-serif; }
.c-rond, .c-rond-legende { fill: var(--vert); fill-opacity: .7; stroke: #fff; stroke-width: .7; }
.c-rond.c-voisin { fill-opacity: .3; }
.c-rond.c-choisi { fill: var(--ocre); fill-opacity: 1; stroke: var(--encre); stroke-width: 1.5; }
.c-lien:hover .c-rond, .c-lien:focus-visible .c-rond { fill: var(--encre); fill-opacity: 1; }
/* Carte de France : on touche un département ; les ronds, le cadre agrandi et la légende laissent passer le doigt. */
.c-lien-dep:hover .c-dep, .c-lien-dep:focus-visible .c-dep { fill: var(--jaune); }
.c-encadre .c-dep { stroke-width: 1.6; }
.c-encadre .c-dep-autour { fill: #efe9db; }
.c-ronds, .c-legende, .c-num, .c-encadre .c-cadre, .c-encadre .c-texte { pointer-events: none; }
/* Le choix d'une maternité là où les ronds se serrent (src/carte-choix.ts) : un panneau posé sur la carte. */
.carte-boite { position: relative; }
.carte-choix { position: absolute; z-index: 5; width: min(320px, calc(100% - 16px)); max-height: 55vh; overflow: auto; background: #fff; border: 1.5px solid var(--vert); border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); padding: 8px 10px; }
.choix-tete { display: flex; justify-content: space-between; align-items: center; margin: 0 0 4px; font-weight: 700; }
.choix-fermer { border: 0; background: none; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--encre); padding: 0 6px; }
.carte-choix ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.carte-choix li a { display: block; padding: 6px 6px; border-radius: 8px; text-decoration: none; color: var(--encre); }
.carte-choix li a:hover, .carte-choix li a:focus-visible { background: var(--fond); }
.carte-choix b { display: block; }
.carte-choix span { display: block; font-size: .8rem; color: var(--doux); }
.choix-dep { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--trait); font-weight: 600; }
.c-num { fill: var(--encre); font: 700 20px "Lexend", system-ui, sans-serif; paint-order: stroke; stroke: #fbefc6; stroke-width: 4; stroke-linejoin: round; }
@media (min-width: 700px) { .c-texte { font-size: 13px; } .c-num { font-size: 15px; } }

/* Les classements : une ligne par maternité, son nombre à droite. */
.classement { padding-left: 1.6rem; display: grid; gap: 8px; }
.classement li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom nombre" "ville ville"; column-gap: 12px; }
.classement li > a { grid-area: nom; font-weight: 600; color: var(--encre); }
.classement .ville { grid-area: ville; color: var(--doux); font-size: .85rem; }
.classement b { grid-area: nombre; font-variant-numeric: tabular-nums; text-align: right; }
.classement small { color: var(--doux); font-weight: 400; }
.fermetures { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 6px; }
.fermetures li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 10px; background: var(--fond); font-variant-numeric: tabular-nums; }

.type-lien { color: inherit; text-decoration: underline dotted; text-underline-offset: .2em; cursor: help; }

/* Les maternités du département : une barre par maternité, la page en cours soulignée. */
.barres { list-style: none; padding: 0; display: grid; gap: 10px; }
.barres li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom nombre" "ville ville" "barre barre"; column-gap: 12px; padding: 8px 10px; border-radius: 12px; }
.barres li.ici { background: #fdf3d4; box-shadow: inset 0 0 0 2px var(--jaune); }
.barres a { grid-area: nom; font-weight: 600; color: var(--encre); }
.barres .ville { grid-area: ville; color: var(--doux); font-size: .85rem; }
.barres b { grid-area: nombre; font-variant-numeric: tabular-nums; }
.barre { grid-area: barre; width: 100%; height: 8px; margin-top: 6px; }
.barre rect { fill: var(--vert); }
.barre rect.fond { fill: var(--fond); }
.parties { padding-left: 1.1rem; display: grid; gap: 6px; }

/* Les types. */
.types { list-style: none; padding: 0; display: grid; gap: 8px; }
.types li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--fond); }
.types li.ici { background: #fdf3d4; box-shadow: inset 0 0 0 2px var(--jaune); }

/* L'accueil provisoire. */
.departements details { border-top: 1px solid var(--trait); }
.departements summary span { color: var(--doux); font-weight: 400; margin-left: .4em; }
.departements ul { list-style: none; padding: 0 0 10px; display: grid; gap: 6px; }
.departements li { display: flex; justify-content: space-between; gap: 12px; }

.pied { max-width: 1180px; margin: 0 auto; padding: 8px 16px 32px; color: var(--doux); font-size: .85rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.pied-liens a { color: var(--doux); padding: 6px 0; }
.pied-liens a[aria-current] { color: var(--encre); font-weight: 700; text-decoration: none; }

/* Les pages d'information (server/page-methode.ts, server/page-infos.ts) : une colonne qui se lit. */
.infos { display: grid; gap: 14px; max-width: 760px; }
.infos .carte > p + h2 { margin-top: 1.4rem; }
.regles { padding-left: 1.2em; display: grid; gap: 4px; }
.liste-sources { list-style: none; padding: 0; display: grid; gap: 12px; }
.liste-sources li { display: grid; gap: 2px; }
.liste-sources span { color: var(--doux); font-size: .9rem; overflow-wrap: anywhere; }

@media (max-width: 420px) {
  .trous i:nth-child(n+3), .pressions i:nth-child(2) { display: none; }
  .bracelet { gap: 8px; padding-right: 10px; }
  .fenetre { padding-inline: 10px; }
  .fenetre b { font-size: 1.02rem; }
  .titre-page h1 { font-size: 1.55rem; }
  .grand b { font-size: 2.5rem; }
  .carte { padding: 18px 14px; }
  table { font-size: .8rem; }
  th, td { padding: 6px 2px; }
}

@media (min-width: 600px) {
  .courbe.etroit { display: none; }
  .courbe.large { display: block; }
}

/* Ordinateur : la page en deux colonnes, le haut et la courbe côte à côte. */
@media (min-width: 900px) {
  main { padding: 0 24px 32px; }
  .tete { padding: 20px 24px; }
  .maternite { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .maternite > .heros { grid-column: 1; align-self: stretch; }
  .maternite > #courbe { grid-column: 2; }
  .maternite > #cesariennes, .maternite > #ratios, .maternite > #personnel { grid-column: 1 / -1; }
  .ratios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deux { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px; align-items: start; }
  .deux > div + div { margin-top: 0; }
  .maternite > #autour, .maternite > #type { grid-column: 1 / -1; }
  .maternite > #autour .barres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maternite > .sources { grid-column: 1 / -1; }
  .types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prenoms-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .maternite > #prenoms { grid-column: 1 / -1; }
  .classements { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .classements > .heros, .classements > #nombre-france, .classements > #type, .classements > .sources { grid-column: 1 / -1; }
  .departement { display: grid; gap: 14px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .departement > #autour, .departement > #personnel, .departement > #prenoms, .departement > #type, .departement > .sources { grid-column: 1 / -1; }
  .carte { padding: 24px; }
  .grand b { font-size: 3.4rem; }
}

/* La page des prénoms d'un département (server/page-prenoms-dep.ts, src/prenom-courbe.ts). Couleurs des 3 prénoms
 * comparés : validées ensemble (daltonisme, contraste ≥ 3:1), et un trait différent pour chacune. */
:root { --p1: #00876f; --p2: #cc5f22; --p3: #5d4fd0; }
.bascule { display: flex; flex-wrap: wrap; gap: 8px; }
.bascule > .vue-f, .bascule > .vue-g { flex-basis: 100%; display: none; }
.bascule > .vue-choix:nth-of-type(1):checked ~ .vue-f, .bascule > .vue-choix:nth-of-type(2):checked ~ .vue-g { display: block; }
.bascule > div > * + * { margin-top: .7rem; }
ol.monte { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: 4px; }
ol.monte li { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; align-items: center; gap: 4px 10px; padding: 6px 10px; border-radius: 10px; background: var(--fond); }
ol.monte b { overflow-wrap: anywhere; }
ol.monte .chiffres { font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--doux); text-align: right; white-space: nowrap; }
ol.monte .tag { grid-column: 1 / -1; color: var(--ocre); font-size: .78rem; font-weight: 600; }
.mini-courbe { width: 84px; height: 30px; overflow: visible; }
.mini-courbe polyline { fill: none; stroke: var(--vert); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sous10 { fill: #efece4; }
table.frise { border-collapse: separate; border-spacing: 2px; table-layout: fixed; max-width: 640px; font-size: .85rem; }
table.frise thead th:first-child, table.frise tbody th { width: 96px; }
table.frise thead th { font-size: .7rem; color: var(--doux); font-weight: 600; text-align: left; border: 0; padding: 0 0 2px; }
table.frise tbody th { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; padding: 0 4px 0 0; }
table.frise td { height: 20px; padding: 0; border: 0; border-radius: 4px; }
.n0 { background: #f2efe8; } .n1 { background: #dcebe4; } .n2 { background: #a9cfc0; } .n3 { background: #6fa898; } .n4 { background: #3d7f71; } .n5 { background: #1f574c; } .n6 { background: #103a33; }
.legende-frise { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--doux); align-items: center; }
.legende-frise span { display: inline-flex; gap: 5px; align-items: center; }
.legende-frise i { width: 16px; height: 12px; border-radius: 3px; }
.legende-frise i.n0 { box-shadow: inset 0 0 0 1px var(--trait); }
.vp-lien { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--vert); text-decoration: underline dotted; text-underline-offset: .2em; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cherche-prenom { position: relative; max-width: 420px; }
.cherche-prenom label { display: block; font-size: .8rem; font-weight: 700; color: var(--doux); margin-bottom: 4px; }
.cherche-prenom input { width: 100%; min-height: 44px; padding: 10px 14px; border: 2px solid var(--encre); border-radius: 12px; background: #fff; color: var(--encre); font: inherit; }
#vp-suggestions, .fp-sugg { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgb(30 34 48 / .18); }
#vp-suggestions button, .fp-sugg button { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
#vp-suggestions button:hover, #vp-suggestions button:focus-visible, .fp-sugg button:hover, .fp-sugg button:focus-visible { background: var(--fond); }
#vp-suggestions span, #vp-suggestions .vide, .fp-sugg span, .fp-sugg .vide { color: var(--doux); font-size: .88rem; }
#vp-suggestions .vide, .fp-sugg .vide { padding: 8px 10px; }
.vp-choisis { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-note { margin: 8px 0 0; color: var(--doux); font-size: .9rem; }
.vp-note:empty { display: none; }
/* Après un prénom touché dans une liste plus bas : le chemin du retour, sous les prénoms choisis. */
.vp-retour { display: block; margin: 8px 0 0; min-height: 32px; font-size: .9rem; font-weight: 600; }
.vp-retour[hidden] { display: none; }
.vp-choisi { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--fond); }
.vp-choisi small { color: var(--doux); }
.vp-choisi button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--encre); font: inherit; font-size: 1.1rem; cursor: pointer; }
.vp-choisi i, .pastille { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.vp-choisi i { margin-right: 0; }
.vp-choisi.c1 i, i.pastille.c1 { background: var(--p1); } .vp-choisi.c2 i, i.pastille.c2 { background: var(--p2); } .vp-choisi.c3 i, i.pastille.c3 { background: var(--p3); }
.choix-ans { display: flex; flex-wrap: wrap; gap: 6px; }
.choix-ans button { min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--vert); border-radius: 999px; background: #fff; color: var(--vert); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.choix-ans button[aria-pressed="true"] { background: var(--vert); color: #fff; }
/* Le bouton de /umami-off (src/umami-off.ts) : même allure que les choix d'années. */
#bascule-suivi { min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--vert); border-radius: 999px; background: #fff; color: var(--vert); font: inherit; font-weight: 600; cursor: pointer; }
.vp-lecture { min-height: 1.5em; color: var(--doux); font-size: .9rem; font-variant-numeric: tabular-nums; }
.vp-graphe { touch-action: pan-y; }
.vp-graphe svg { display: block; width: 100%; height: auto; overflow: visible; }
.vp-graphe .grille { stroke: var(--trait); }
.vp-graphe .axe { fill: var(--doux); font-size: 11px; }
.vp-graphe .nom { fill: var(--encre); font-size: 12px; font-weight: 700; }
.vp-graphe .ligne { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.vp-graphe .ligne.c1 { stroke: var(--p1); } .vp-graphe .ligne.c2 { stroke: var(--p2); stroke-dasharray: 7 4; } .vp-graphe .ligne.c3 { stroke: var(--p3); stroke-dasharray: 2 4; }
.vp-graphe circle.c1 { fill: var(--p1); } .vp-graphe circle.c2 { fill: var(--p2); } .vp-graphe circle.c3 { fill: var(--p3); }
.vp-graphe .curseur { stroke: var(--encre); stroke-width: 1; opacity: 0; }
.vp-graphe .curseur.vu { opacity: .35; }
.vp-graphe .toucher { fill: transparent; cursor: crosshair; }
@media (max-width: 480px) {
  ol.monte li { grid-template-columns: minmax(0, 1fr) 72px; }
  ol.monte .chiffres { grid-column: 1 / -1; text-align: left; }
  .mini-courbe { width: 72px; }
  .vp-choisi { gap: 6px; padding-left: 10px; font-size: .92rem; }
  .vp-choisi button { width: 32px; height: 32px; }
}

/* Le menu des 4 rubriques (server/gabarit.ts, 24/11/2026) : une barre en bas de l'écran du
 * téléphone, toujours sous le pouce ; sur ordinateur, des liens en haut à droite. */
.menu-bas { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: 0 -2px 10px rgb(30 34 48 / .12); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.menu-bas a { display: grid; place-items: center; gap: 3px; min-height: 52px; color: var(--doux); font-size: .8rem; font-weight: 700; text-decoration: none; }
.menu-bas a::before { content: ""; width: 22px; height: 6px; border-radius: 999px; background: var(--trait); }
.menu-bas a[aria-current="page"] { color: var(--vert); }
.menu-bas a[aria-current="page"]::before { background: var(--vert); }
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  .menu-bas { position: static; margin-left: auto; display: flex; gap: 20px; padding: 0; background: none; box-shadow: none; }
  .menu-bas a { min-height: 44px; font-size: .95rem; }
  .menu-bas a::before { display: none; }
  .menu-bas a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
  body { padding-bottom: 0; }
}
/* L'accueil : le titre et la carte côte à côte sur ordinateur ; trois portes d'entrée ; les départements repliés. */
.duo { display: grid; gap: 14px; }
@media (min-width: 900px) { .duo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
/* Deux portes par ligne au téléphone, la dernière seule en pleine largeur (pas de trou) ; toutes sur une ligne à l'ordinateur
 * (audit « fait pro » point 10). */
.portes { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portes a:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .portes { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .portes a:last-child:nth-child(odd) { grid-column: auto; }
}
.portes a { display: block; padding: 12px 14px; border-radius: 14px; background: var(--fond); color: var(--encre); font-weight: 700; text-decoration: none; }
.portes a:hover { box-shadow: inset 0 0 0 2px var(--vert); }
.portes small { display: block; color: var(--doux); font-weight: 400; }
details.tous-deps > summary, details.soignants > summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; }
/* Le titre et sa phrase l'un sous l'autre : la règle commune des summary (flex en ligne) les mettait côte à côte, le titre
 * écrasé dans une colonne étroite sur téléphone (audit « fait pro », 28/11/2026). */
details.soignants > summary { flex-direction: column; align-items: flex-start; justify-content: center; }
details.soignants > summary small { display: block; margin-top: 2px; color: var(--doux); font-weight: 400; font-size: .9rem; }
details.soignants > section { box-shadow: none; padding: 14px 0 0; }
details.fermees { margin-top: .7rem; }
details.fermees > summary { cursor: pointer; font-weight: 700; }
.type-court { color: var(--doux); font-size: .95rem; }
/* La porte des prénoms : les départements par région. */
.deps-prenoms { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.deps-prenoms a { display: block; padding: 8px 10px; border-radius: 10px; background: var(--fond); color: var(--encre); font-weight: 600; text-decoration: none; }
.deps-prenoms span { color: var(--doux); font-weight: 400; }
/* Les autres écritures comptées avec un prénom (« aussi Lyam, Liham »). */
ol.monte .qui { display: grid; min-width: 0; }
small.aussi { color: var(--doux); font-size: .78rem; font-weight: 400; }
details.prenoms-liste { margin-top: .7rem; }
details.prenoms-liste > summary { cursor: pointer; font-weight: 700; color: var(--vert); }
details.prenoms-liste > * + * { margin-top: .7rem; }
/* Audit « fait pro », retouches validées sur maquettes 390 et 1366 px. Le fil d'Ariane en tête de la première carte, la
 * date des chiffres en bas (point 16) ; les listes soulignées au passage seulement (13) ; « Touchez » au téléphone,
 * « Cliquez sur » à la souris (9). */
.ariane { display: flex; gap: .35em; font-size: .82rem; color: var(--doux); margin: 0 0 6px; white-space: nowrap; }
.ariane > a { flex: none; }
.ariane [aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ariane a { color: var(--doux); }
.maj { font-size: .82rem; color: var(--doux); margin: 10px 0 0; }
ol.classement a, .departements a, .barres a { text-decoration: none; }
ol.classement a:hover, ol.classement a:focus-visible, .departements a:hover, .departements a:focus-visible, .barres a:hover, .barres a:focus-visible { text-decoration: underline; }
.souris { display: none; }
@media (hover: hover) and (pointer: fine) { .tactile { display: none; } .souris { display: inline; } }

/* « Votre prénom, de 1946 à aujourd'hui » (server/page-votre-prenom.ts, src/prenom-fiche-ecran.ts). */
.bouton-lien { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--vert); color: #fff; font-weight: 700; text-decoration: none; }
.choix-ans[hidden], .fp-autre[hidden] { display: none; }
.fiche-prenom .cherche-prenom { margin: .5rem 0 .2rem; }
.fp-nom { font-size: 2rem; line-height: 1.1; margin: .8rem 0 .4rem; overflow-wrap: anywhere; }
.fp-nom small { font-size: .95rem; font-weight: 600; color: var(--doux); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .6rem; }
.etiquettes:empty { display: none; }
.etiquette { background: var(--jaune); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .92rem; }
.etiquette.epoque { background: var(--vert-pale); }
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tuile { background: var(--fond); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.tuile small { display: block; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; font-weight: 700; color: var(--doux); }
.tuile b { display: block; font-size: 1.7rem; line-height: 1.15; margin: .15rem 0; font-variant-numeric: tabular-nums; }
.tuile span { font-size: .88rem; color: var(--doux); }
.fp-autre { margin: 0 0 .7rem; font-size: .9rem; }
.fp-autre select { min-height: 40px; max-width: 100%; padding: 6px 10px; border: 1.5px solid var(--vert); border-radius: 10px; background: #fff; color: var(--encre); font: inherit; }
.fp-graphe { position: relative; max-width: 900px; margin-top: .6rem; }
.fp-graphe .point { fill: #fff; stroke: var(--encre); stroke-width: 3; }
.bulle { position: absolute; left: var(--x); top: var(--y); transform: translate(0, -125%); max-width: 62%; margin: 0; padding: 5px 9px; border-radius: 8px; background: var(--encre); color: #fff; font-size: .85rem; line-height: 1.3; pointer-events: none; font-variant-numeric: tabular-nums; }
.bulle.gauche { transform: translate(-100%, -125%); }
.bulle.dessous { transform: translate(0, 25%); }
.bulle.gauche.dessous { transform: translate(-100%, 25%); }
.bulle[hidden] { display: none; }
/* Pendant la lecture au doigt, l'étiquette du meilleur rang s'efface : la bulle la couvrirait. */
.fp-graphe svg.lu .meilleur { opacity: .15; }
@media (min-width: 900px) { .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* L’exemple du départ et les prénoms à essayer (02/12/2026, option A). */
.fp-exemple { margin: .7rem 0 0; padding: 10px 12px; border-radius: 14px; background: var(--vert-pale); }
.fp-exemple p { margin: 0; font-size: .95rem; }
.fp-exemple .fp-essais { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fp-essais a { display: inline-block; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--vert); font-weight: 700; text-decoration: none; border: 1.5px solid var(--vert); }
.fiche-prenom .cherche-prenom label { font-size: .95rem; color: var(--encre); }
.fp-nom small.fp-ex { display: inline-block; vertical-align: middle; padding: 2px 10px; border-radius: 999px; background: var(--vert-pale); color: var(--vert); font-size: .8rem; font-weight: 700; }
