/* site.css — blackout
 *
 * Thème clair seul : fond blanc et encre noire, des points d'encre (static/scene.js), sans halo ni lavis. Saira (variable, largeur 50–125 %, graisse 100–900) : titres étroits, gras, en
 * capitales, dessinés au trait puis remplis ; texte courant en largeur normale, léger.
 * Les animations ne jouent qu'avec JavaScript (classe .js sur <html>) et sans
 * « prefers-reduced-motion ».
 */

@font-face {
  font-family: "Saira Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(/static/polices/saira-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(/static/polices/saira-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --fond: #ffffff;
  --encre: #111416;
  --encre-2: rgb(17 20 22 / 0.76);
  --encre-3: rgb(17 20 22 / 0.62);
  --filet: rgb(17 20 22 / 0.12);
  --filet-fort: rgb(17 20 22 / 0.3);
  --verre: rgb(255 255 255 / 0.8);
  --police: "Saira Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(16px, 6vw, 96px);
  --entree: cubic-bezier(0.7, 0, 0.2, 1);
  color-scheme: light;
}

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

html {
  background: var(--fond);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--encre); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
::selection { background: var(--encre); color: var(--fond); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--encre); color: var(--fond); padding: 0.6rem 1rem; }
.evitement:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------------------------------------------
 * Typographie
 * ------------------------------------------------------------------------------------------- */

.titre {
  margin: 0;
  font-weight: 700;
  font-stretch: 78%;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.004em;
  text-wrap: balance;
}
.titre > span { display: inline-block; }

.sur-titre {
  margin: 0 0 1.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--encre-3);
  line-height: 1.4;
}

.chapo {
  margin: 1.6rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  color: var(--encre-2);
}

.texte { margin: 1.4rem 0 0; max-width: 34rem; font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--encre-2); }
.texte + .texte { margin-top: 1rem; }

.faits {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.3rem;
  margin: 1.8rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  font-stretch: 92%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
/* Chaque fait est un élément flexible : il passe entier à la ligne suivante, et ne se coupe que s'il
   est plus long qu'une ligne (téléphone). Sans nowrap, sinon il élargirait la page. Le point sépare
   en fin de ligne : un retour à la ligne ne commence pas par lui. */
.faits span:not(:last-child)::after { content: "·"; margin: 0 0.7em; color: var(--encre-3); }

.source { margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--encre-3); }

/* Titre au trait, puis rempli par un balayage de gauche à droite quand sa section est active. */
.js :is(.scene, .heros-institution, .heros-simple) .titre {
  color: transparent;
  -webkit-text-stroke: 1px rgb(17 20 22 / 0.6);
  background: linear-gradient(100deg, var(--encre) 46%, rgb(17 20 22 / 0) 54%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 1.5s var(--entree) 0.45s, -webkit-text-stroke-color 0.8s 1.2s;
}
.js :is(.scene.actif, .heros-institution.actif, .heros-simple) .titre {
  background-position: 0 0;
  -webkit-text-stroke-color: rgb(17 20 22 / 0);
}

/* ---------------------------------------------------------------------------------------------
 * En-tête et menu
 * ------------------------------------------------------------------------------------------- */

.entete {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.6rem var(--marge) 0 calc(var(--marge) - 12px);
  pointer-events: none;
  transition: padding 0.35s var(--entree), background-color 0.35s, box-shadow 0.35s;
}
.entete > * { pointer-events: auto; }
/* Page défilée (classe posée par menu.js) : l'en-tête devient une bande de verre, le texte passe
   dessous sans se mêler à la marque. Pas sur la une au large : ses sections occupent l'écran. */
.defile body:not(.une) .entete {
  padding-top: 0.5rem; padding-bottom: 0.5rem;
  background: var(--verre);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--filet);
  pointer-events: auto;
}

.burger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--encre);
}
.burger-traits, .burger-traits::before {
  display: block; width: 22px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.3s var(--entree);
}
.burger-traits { transform: translateY(-3.5px); }
.burger-traits::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; }
.burger:hover .burger-traits::before { width: 22px; }

.marque {
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-content: center;
  padding: 7rem var(--marge) 2rem;
  background: rgb(255 255 255 / 0.68);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}
.menu.ouvert { opacity: 1; }
.menu[hidden] { display: none; }
.menu-ouvert body { overflow: hidden; }

.fermer {
  position: absolute; top: 1.4rem; right: var(--marge);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--filet-fort); background: none; color: var(--encre); cursor: pointer;
  transition: transform 0.4s var(--entree), border-color 0.3s;
}
.fermer span, .fermer span::before {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.fermer span::before { content: ""; transform: translate(-50%, -50%) rotate(90deg); }
.fermer:hover { transform: rotate(90deg); border-color: var(--encre); }

.menu-dedans {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 76rem;
}
.menu-institutions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2.6vh, 1.8rem); }
.menu-institutions a { display: grid; gap: 0.2rem; text-decoration: none; }
.menu-institutions .sur-titre { margin: 0; }
.menu-institutions > .sur-titre { margin-bottom: 2rem; }
.menu-nom {
  font-weight: 700; font-stretch: 78%; text-transform: uppercase; line-height: 0.95;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  transition: color 0.3s, -webkit-text-stroke-color 0.3s;
  -webkit-text-stroke: 1px transparent;
}
.menu-institutions a:hover .menu-nom, .menu-institutions a:focus-visible .menu-nom {
  color: transparent; -webkit-text-stroke-color: var(--encre);
}
.menu-actions { display: grid; gap: 0.75rem; max-width: 22rem; }

.bouton-cadre {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--filet-fort);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.bouton-cadre:hover, .bouton-cadre:focus-visible { background: var(--encre); color: var(--fond); border-color: var(--encre); }

/* ---------------------------------------------------------------------------------------------
 * Bouton anneau (« Explorer ») et lien « Défiler »
 * ------------------------------------------------------------------------------------------- */

.anneau {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 8.5rem; height: 8.5rem;
  margin: 2.8rem 0 0 8px;
  border-radius: 50%;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.anneau::before, .anneau::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.anneau::before { inset: 0; border: 1px solid var(--filet-fort); transition: transform 0.6s var(--entree), border-color 0.3s; }
.anneau::after {
  inset: -7px; border: 1px solid transparent; border-top-color: rgb(17 20 22 / 0.7);
  animation: tourne 7s linear infinite;
}
.anneau:hover::before, .anneau:focus-visible::before { transform: scale(1.1); border-color: var(--encre); }
@keyframes tourne { to { transform: rotate(360deg); } }

.defiler {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.8rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--encre-2);
}
.defiler::after {
  content: ""; width: 1px; height: 2.4rem;
  background: linear-gradient(var(--encre), transparent);
  animation: coule 2.2s var(--entree) infinite;
  transform-origin: top;
}
@keyframes coule { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------------------------------------------------------------------------------------------
 * La une : sections plein écran sur un fond de points commun
 * ------------------------------------------------------------------------------------------- */

html:has(> body.une) { scroll-snap-type: y mandatory; }

/* Le fond fait la hauteur du grand viewport (barre d'adresse repliée) : quand la barre d'un
   téléphone se replie ou revient au défilement, la toile garde sa taille au lieu d'être étirée. */
.fond { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 0; background: var(--fond); }
.toile { display: block; width: 100%; height: 100%; }

.une main > :not(.fond, .repere) { position: relative; z-index: 1; }

.scene {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 7rem var(--marge) 6rem;
}
.scene .contenu { width: min(36rem, 42vw); }
/* La colonne est un conteneur : un titre ne dépasse jamais sa largeur (le remplissage par
   background-clip: text ne déborde pas de la boîte, un mot trop long y perdrait ses lettres).
   17cqi : un mot de 12 lettres en Saira étroite (environ 5,6 em) tient dans 95 % de la colonne. */
:is(.scene, .heros-institution) .contenu { container-type: inline-size; }
.scene .titre { font-size: min(clamp(2.6rem, 7.2vw, 7rem), 17cqi); }
.heros-institution .titre { font-size: min(clamp(2.6rem, 5.8vw, 6rem), 17cqi); }
/* De la place pour l'arc tournant de l'anneau, sous la découpe du balayage. */
.scene .contenu { padding-bottom: 10px; }
.heros .contenu { width: min(40rem, 44vw); }
.heros .titre { font-size: min(clamp(3rem, 9.6vw, 9.5rem), 24cqi); }

/* Entrée d'une section : un balayage en biais découvre son texte. */
.js .scene .contenu {
  clip-path: polygon(0 0, 0 0, -30% 100%, 0 100%);
  transform: translateY(18px);
  transition: clip-path 1.2s var(--entree) 0.1s, transform 1.2s var(--entree) 0.1s;
}
.js .scene.actif .contenu { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); transform: none; }
.js .scene .anneau { opacity: 0; transition: opacity 0.8s 0.9s; }
.js .scene.actif .anneau { opacity: 1; }

.repere {
  position: fixed;
  right: calc(var(--marge) / 2 - 4px);
  top: 50%;
  z-index: 30;
  display: grid; justify-items: center; gap: 0.9rem;
  transform: translateY(-50%);
  text-decoration: none;
  transition: opacity 0.5s;
}
.repere-cache { opacity: 0; pointer-events: none; }
.repere-nom {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--encre-2);
}
.repere-anneau { width: 34px; height: 34px; transform: rotate(-90deg); fill: none; stroke-width: 1.2; }
.repere-anneau circle { stroke: var(--filet-fort); }
.repere-anneau .repere-avance {
  stroke: var(--encre);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - 100 * var(--avance, 0));
  transition: stroke-dashoffset 1s var(--entree);
}
.sans-js .repere { display: none; }

.pied {
  position: relative;
  scroll-snap-align: end;
  padding: 4rem var(--marge) 3rem;
  border-top: 1px solid var(--filet);
  font-size: 0.82rem;
  color: var(--encre-3);
  background: var(--fond);
}
.marque-pied { margin: 0 0 1.2rem; font-weight: 800; font-stretch: 88%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre); }
.pied-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }

/* ---------------------------------------------------------------------------------------------
 * Page d'une institution
 * ------------------------------------------------------------------------------------------- */

.heros-institution {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(18rem, 30rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 7rem calc(var(--marge) / 2) 6rem var(--marge);
}
.heros-institution .chapo { margin-top: 1.2rem; }

.planche { display: grid; gap: 0.6rem; min-width: 0; }
.dessin { position: relative; height: min(68vh, 44rem); min-height: 18rem; }
.dessin .toile { position: absolute; inset: 0; }

/* Hémicycle ou carte : deux mots, un trait sous celui qui est choisi. Le trait se retire vers
   l'autre mot et y repousse : il semble glisser de l'un à l'autre. */
.vues { justify-self: center; display: flex; gap: 2rem; }
.vues[hidden] { display: none; }
.vue {
  position: relative;
  min-height: 2.75rem; padding: 0 0 0 0.24em;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--encre-3);
  transition: color 0.3s;
}
.vue::after {
  content: ""; position: absolute; left: 0.24em; right: 0.24em; bottom: 0.7rem; height: 1px;
  background: var(--encre);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--entree);
}
.vue:last-child::after { transform-origin: left; }
.vue:hover, .vue[aria-pressed="true"] { color: var(--encre); }
.vue[aria-pressed="true"]::after { transform: scaleX(1); }

.legende { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.puce {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--filet); border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  color: var(--encre-2);
  font: inherit; font-size: 0.8rem; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.puce .n { color: var(--encre-3); font-variant-numeric: tabular-nums; }
.puce:hover, .puce:focus-visible, .puce[aria-pressed="true"] { border-color: var(--c, var(--encre)); color: var(--encre); }
.puce[aria-pressed="true"] { background: rgb(17 20 22 / 0.06); }
.pastille {
  display: inline-block; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--c); box-shadow: inset 0 0 0 1px rgb(17 20 22 / 0.2);
}

.aide { margin: 1.4rem 0 0; font-size: 0.8rem; color: var(--encre-3); }
.temoin { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin: 0 0.4rem 0 0; vertical-align: 0.05em; }
.temoin.plein { background: #141414; }
.temoin.creux { background: #b3b3b3; margin-left: 1rem; }

.infobulle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: flex; align-items: center; gap: 0.8rem;
  width: max-content; min-width: 11rem; max-width: 23rem;
  padding: 0.7rem 0.9rem 0.75rem;
  background: var(--verre);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--filet-fort);
  border-radius: 3px;
  font-size: 0.8rem;
  line-height: 1.35;
  transform: translate(-50%, calc(-100% - 16px));
}
.infobulle[hidden] { display: none; }
.infobulle.dessous { transform: translate(-50%, 16px); }
.infobulle .lignes { display: grid; gap: 0.2rem; min-width: 0; }
.infobulle .nom { font-weight: 600; font-size: 0.95rem; }
.infobulle .groupe { display: flex; align-items: center; gap: 0.45rem; color: var(--encre); font-weight: 500; }
.infobulle .precision { color: var(--encre-3); }

/* Portrait officiel, en noir et blanc comme le reste de la page ; dessous, les initiales, qui
   restent seules si l'image manque. */
.portrait {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 3.7rem; height: 3.7rem;
  overflow: hidden; border-radius: 2px;
  background: rgb(17 20 22 / 0.07);
}
.portrait::before {
  content: attr(data-initiales);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em; color: var(--encre-3);
}
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0; transition: opacity 0.25s;
}
.portrait.charge img { opacity: 1; }

/* Bulle d'une zone de la carte : placée par institution.js à côté du pointeur. */
.infobulle.zone { transform: none; align-items: start; max-width: min(34rem, calc(100vw - 16px)); }
.infobulle.zone .lignes { flex: 1; }
.parts { display: flex; gap: 1px; height: 3px; margin-top: 0.4rem; border-radius: 2px; overflow: hidden; }
.parts span { background: var(--c); box-shadow: inset 0 0 0 1px rgb(17 20 22 / 0.12); }
.membres-zone { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; gap: 0.4rem 1.2rem; }
.membres-zone.deux { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.membres-zone li { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.membres-zone .portrait { width: 2.1rem; height: 2.1rem; }
.membres-zone .portrait::before { font-size: 0.62rem; }
.membres-zone .qui { display: grid; min-width: 0; line-height: 1.25; }
.membres-zone .nom-membre { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.membres-zone .detail {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.membres-zone .detail .pastille, .groupes-zone .pastille { width: 0.5rem; height: 0.5rem; }
.groupes-zone { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.78rem; }
.groupes-zone li { display: flex; align-items: center; gap: 0.35rem; font-weight: 500; }
.groupes-zone .n { font-weight: 400; color: var(--encre-3); font-variant-numeric: tabular-nums; }

.heros-institution .defiler { bottom: 1.6rem; }

.bloc { position: relative; padding: clamp(4rem, 9vh, 7rem) var(--marge); max-width: 84rem; }
.titre-bloc {
  margin: 0 0 1.6rem;
  font-weight: 700; font-stretch: 78%; text-transform: uppercase; line-height: 0.95;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}
.bloc .sur-titre { margin-top: 3rem; }
.faits-bloc { margin: 0 0 1.8rem; }

/* Positionné : les éléments absolus du tableau (.visuellement-cache d'un en-tête) restent pris dans
   le défilement, sinon ils élargissent la page entière et le téléphone la dézoome.
   Ombres de bord (fonds « local » qui les couvrent tant qu'il n'y a rien à faire défiler) : un
   tableau plus large que l'écran montre qu'il continue. */
.tableau-defilant {
  position: relative;
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--fond) 30%, rgb(255 255 255 / 0)) left / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--fond) 30%, rgb(255 255 255 / 0)) right / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(17 20 22 / 0.16), rgb(17 20 22 / 0)) left / 0.9rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(17 20 22 / 0.16), rgb(17 20 22 / 0)) right / 0.9rem 100% no-repeat scroll;
}
table.composition { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.composition th, .composition td {
  padding: 0.95rem 0.8rem;
  border-bottom: 1px solid var(--filet);
  text-align: left; vertical-align: top; font-weight: 400;
}
.composition thead th {
  padding-top: 0; padding-bottom: 0.8rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-3);
  vertical-align: bottom;
}
.composition .nombre { text-align: right; white-space: nowrap; }
.composition .part { width: 24%; min-width: 11rem; color: var(--encre-2); white-space: nowrap; }
.part-dedans { display: flex; align-items: center; gap: 0.8rem; }
/* Piste de 0 à 100 % : la part se lit telle quelle, sans être rapportée au plus grand groupe. */
.piste { flex: 1; max-width: 9rem; height: 3px; border-radius: 2px; background: var(--filet); }
.barre {
  display: block; height: 100%; width: var(--part); min-width: 2px; border-radius: 2px;
  background: var(--c, var(--encre-2));
  box-shadow: inset 0 0 0 1px rgb(17 20 22 / 0.12);
}
.part-dedans .valeur { min-width: 3.4rem; text-align: right; font-variant-numeric: tabular-nums; }
.composition tbody th { width: 52%; min-width: 16rem; }

.composition details summary { display: flex; align-items: baseline; gap: 0.6rem; cursor: pointer; list-style: none; }
.composition details summary::-webkit-details-marker { display: none; }
.composition summary .pastille { align-self: center; }
.composition summary .sigle { font-weight: 600; white-space: nowrap; }
.composition summary .nom-groupe { color: var(--encre-3); font-size: 0.88rem; }
.composition summary::after { content: "+"; margin-left: auto; padding-left: 1rem; color: var(--encre-3); font-weight: 300; }
.composition details[open] summary::after { content: "–"; }
.composition .sous-titre { margin: 1.2rem 0 0.4rem; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-3); }
.membres, .partis { list-style: none; margin: 0; padding: 0; font-size: 0.84rem; }
.membres { columns: 15rem auto; column-gap: 2rem; }
.membres li, .partis li { break-inside: avoid; padding: 0.12rem 0; }
.membres a { text-decoration: none; }
.membres a:hover { text-decoration: underline; }
.partis li { display: flex; gap: 0.4rem; }
.partis .n { margin-left: auto; color: var(--encre-2); }
.muet { color: var(--encre-3); }

.vacants { margin-top: 3rem; font-size: 0.88rem; color: var(--encre-2); }
.vacants .sur-titre { margin: 0 0 0.8rem; }
.vacants ul { margin: 0; padding-left: 1.1rem; }

.liste-chiffres { list-style: none; margin: 0; padding: 0; max-width: 40rem; font-size: 0.9rem; }
.liste-chiffres li { display: flex; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--filet); }
.liste-chiffres .n { margin-left: auto; font-variant-numeric: tabular-nums; }

.pied-institution { display: grid; gap: 2.5rem; padding-top: 3rem; }
.pied-source { margin: 0; }
.suivante { display: grid; gap: 0.6rem; text-decoration: none; color: var(--encre); justify-self: start; }
.suivante .sur-titre { margin: 0; }
.suivante .titre { font-size: clamp(2.4rem, 7vw, 6.5rem); transition: color 0.3s; -webkit-text-stroke: 1px transparent; }
.suivante:hover .titre, .suivante:focus-visible .titre { color: transparent; -webkit-text-stroke-color: var(--encre); }

/* ---------------------------------------------------------------------------------------------
 * Page d'un groupe : la couleur du groupe (--c, sur <body>) pour ses marques seulement, le texte
 * reste à l'encre.
 * ------------------------------------------------------------------------------------------- */

/* Sans équilibrage des lignes : sur ces pages, text-wrap: balance fait planter le rendu de
   Chromium (relevé sous Playwright 1.55 sur les périodes passées ; LIMITATIONS.md). */
.heros-groupe .titre { text-wrap: wrap; }
/* Période passée : pas de dessin qui arrive, le titre est écrit d'emblée. */
.js .heros-groupe.sans-dessin .titre { color: var(--encre); background: none; -webkit-text-stroke: 0; transition: none; }

.lien-groupe { width: 2.5rem; text-align: right; }
.lien-groupe a { display: inline-block; padding: 0 0.3rem; text-decoration: none; font-weight: 500; }

.periodes {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.85rem;
  margin: 1.6rem 0 0; font-size: 0.8rem; font-variant-numeric: tabular-nums;
}
.periodes-nom {
  margin-right: 0.2rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--encre-3);
}
.periodes a {
  padding: 0.3rem 0; border-bottom: 1px solid transparent;
  text-decoration: none; color: var(--encre-3); white-space: nowrap;
}
.periodes a:hover { color: var(--encre); }
.periodes a[aria-current="page"] { color: var(--encre); font-weight: 500; border-bottom-color: var(--encre); }
a.puce { text-decoration: none; }
.puce[aria-current="page"] { border-color: var(--c, var(--encre)); color: var(--encre); background: rgb(17 20 22 / 0.06); }

/* Période passée : la part de chaque groupe, celui de la page en couleur pleine. */
.bande { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; height: 2.6rem; align-self: center; }
.bande li { min-width: 2px; border-radius: 2px; background: var(--c); opacity: 0.25; box-shadow: inset 0 0 0 1px rgb(17 20 22 / 0.12); }
.bande li.choisi { opacity: 1; }

.trombinoscope {
  list-style: none; margin: 2.4rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.9rem 1.8rem;
}
.trombinoscope a { display: flex; align-items: center; gap: 0.75rem; min-width: 0; text-decoration: none; }
.trombinoscope a:hover .nom-membre { text-decoration: underline; }
.trombinoscope .qui { display: grid; min-width: 0; line-height: 1.3; }
.trombinoscope .nom-membre { font-weight: 500; font-size: 0.9rem; }
.trombinoscope .detail { font-size: 0.74rem; color: var(--encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Comme .portrait, l'image visible d'emblée (chargée par le navigateur, sans script). */
.vignette {
  position: relative; flex: none; display: grid; place-items: center;
  width: 3rem; height: 3rem; overflow: hidden; border-radius: 2px; background: rgb(17 20 22 / 0.07);
}
.vignette::before { content: attr(data-initiales); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--encre-3); }
.vignette img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%; filter: grayscale(1) contrast(1.05);
}

.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0 3rem; }
.liste-chiffres.paire { margin-top: 0.4rem; }
.liste-chiffres li > .muet { margin-left: 0.2rem; }

/* Une barre par mois, du plus ancien au plus récent ; hauteur rapportée au plus grand mois. */
.graphe-mois { width: min(100%, max(16rem, calc(var(--n) * 0.95rem))); margin: 0 0 1.6rem; }
.mois {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: flex-end; gap: 2px; height: 5.5rem;
  border-bottom: 1px solid var(--filet-fort);
}
.mois li {
  flex: 1 1 0; height: var(--h); min-height: 1px;
  border-radius: 2px 2px 0 0; background: var(--c, var(--encre-2));
  box-shadow: inset 0 0 0 1px rgb(17 20 22 / 0.12);
}
.mois li:hover { opacity: 0.6; }
.mois-bornes {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 0.4rem 0 0; font-size: 0.7rem; color: var(--encre-3); font-variant-numeric: tabular-nums;
}

.accords { list-style: none; margin: 0; padding: 0; max-width: 40rem; font-size: 0.9rem; }
.accords li {
  display: grid; grid-template-columns: minmax(5rem, 9rem) minmax(0, 1fr) 4.2rem; align-items: center; gap: 1rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--filet);
}
.accords a { text-decoration: none; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.accords a:hover { text-decoration: underline; }
.accords .piste { max-width: none; }
.accords .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--encre-2); }

table.donnees td { font-size: 0.88rem; }
.donnees tbody th { width: auto; min-width: 12rem; }
.donnees .objet { min-width: 18rem; }
.donnees .objet a { text-decoration: none; }
.donnees .objet a:hover { text-decoration: underline; }
.donnees .date, .textes .date { color: var(--encre-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.donnees td .pastille { width: 0.5rem; height: 0.5rem; margin-right: 0.2rem; }

.textes { list-style: none; margin: 0; padding: 0; max-width: 60rem; font-size: 0.9rem; }
.textes li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--filet); }
.textes a { text-decoration: none; }
.textes a:hover { text-decoration: underline; }

/* Pages d'erreur */
.heros-simple { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: start; padding: 7rem var(--marge); }
.heros-simple .erreur { margin: 1.4rem 0 0; max-width: 46rem; font-size: 0.78rem; color: var(--encre-3); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------------------------------
 * Petits écrans : le dessin au-dessus, le texte dessous
 * ------------------------------------------------------------------------------------------- */

@media (max-width: 899px) {
  /* Sur la une aussi : le défilement par proximité s'arrête entre deux sections. */
  .defile .entete {
    padding-top: 0.5rem; padding-bottom: 0.5rem;
    background: var(--verre);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--filet);
    pointer-events: auto;
  }
  html:has(> body.une) { scroll-snap-type: y proximity; }
  /* Le texte juste sous le dessin, dont la boîte fait 38 % de la toile (accueil.js). */
  .scene { align-items: flex-start; padding-top: calc(76px + 38vh + 1.5rem); padding-top: calc(76px + 38lvh + 1.5rem); padding-bottom: 4.5rem; }
  .heros { padding-top: calc(76px + 56vh + 1.5rem); padding-top: calc(76px + 56lvh + 1.5rem); }
  .scene .contenu, .heros .contenu { width: 100%; }
  .heros .defiler { display: none; }
  .anneau { width: 7rem; height: 7rem; margin-top: 2rem; }
  .repere { display: none; }

  .heros-institution { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 5.5rem 16px 5rem; gap: 0.5rem; }
  .heros-institution > :is(.dessin, .planche) { order: -1; }
  .heros-institution .dessin { height: 64vw; min-height: 14rem; max-height: 26rem; }
  /* La carte fixe elle-même sa hauteur (institution.js) : France et encarts ne tiennent pas en 64vw. */
  .heros-institution .dessin[data-vue="carte"] { max-height: none; margin-bottom: 1rem; }
  .heros-institution .defiler { display: none; }
  .menu-dedans { grid-template-columns: minmax(0, 1fr); align-self: start; }
  .menu { padding-top: 6rem; align-content: start; }
  .composition tbody th { min-width: 13rem; }
  .composition .part { min-width: 6rem; }
  .textes li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .accords li { grid-template-columns: minmax(4rem, 6rem) minmax(0, 1fr) 3.6rem; gap: 0.6rem; }
}
@media (max-width: 899px) and (max-aspect-ratio: 3/4) {
  .heros-institution .dessin { height: 54vw; }
}

/* ---------------------------------------------------------------------------------------------
 * Moins de mouvement
 * ------------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .scene .contenu { clip-path: none; transform: none; }
  .js .scene .anneau { opacity: 1; }
  .js :is(.scene, .heros-institution, .heros-simple) .titre {
    color: var(--encre); background: none; -webkit-text-stroke: 0;
  }
}

/* Page d'un membre : le portrait à côté du nom. */
.heros-membre .identite { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.4rem; }
.heros-membre .vignette { width: 6rem; height: 7.5rem; }
.heros-membre .identite .titre { margin: 0; }

/* ---------------------------------------------------------------------------------------------
 * Explorer une assemblée : listes de scrutins, de dossiers et de textes, et leurs pages
 * ------------------------------------------------------------------------------------------- */

:root {
  --pour: #2a78d6;
  --contre: #e34948;
  --abstention: #e8a33d;
}

.heros-liste { padding: 7.5rem var(--marge) 0; max-width: 84rem; }
.heros-liste .contenu { container-type: inline-size; }
.heros-liste .titre { font-size: min(clamp(2.6rem, 5.8vw, 6rem), 17cqi); text-wrap: wrap; }

/* Les quatre entrées d'une assemblée (membres, scrutins, dossiers, textes). */
.onglets {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem;
  margin: 1.8rem 0 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.onglets a {
  padding: 0.55rem 0; border-bottom: 1px solid transparent;
  text-decoration: none; color: var(--encre-3); white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.onglets a:hover { color: var(--encre); }
.onglets a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--encre); }
.heros-institution .onglets { margin-top: 2rem; }

.filtres {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.2rem 1.6rem;
  margin: 2.6rem 0 0;
}
.champ { display: grid; gap: 0.35rem; min-width: 9rem; }
.champ-recherche { flex: 1 1 18rem; max-width: 30rem; }
.champ-nom {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--encre-3);
}
.champ input, .champ select {
  width: 100%; min-height: 2.6rem; padding: 0.4rem 0.1rem;
  border: 0; border-bottom: 1px solid var(--filet-fort); border-radius: 0;
  background: transparent; color: var(--encre);
  font: inherit; font-size: 0.95rem; font-weight: 400;
}
.champ select { padding-right: 1.4rem; cursor: pointer; }
.champ input:focus, .champ select:focus { outline: none; border-bottom-color: var(--encre); }
.champ input:focus-visible, .champ select:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.filtres .bouton-cadre { padding: 0.8rem 1.3rem; background: none; color: var(--encre); font: inherit; font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.16em; cursor: pointer; }
.js .filtres .bouton-cadre { display: none; }
.js .filtres:has(input[type="search"]) .bouton-cadre { display: block; }

.bloc-liste { padding-top: 2.6rem; }
.liste-scrutins .date, .liste-textes .date { width: 7rem; }
.donnees .numero, .donnees .dossier, .donnees .sous-ligne { display: block; font-size: 0.78rem; }
.donnees .dossier { margin-top: 0.2rem; }
.donnees td.objet { line-height: 1.45; }
mark { background: rgb(232 163 61 / 0.35); color: inherit; border-radius: 1px; padding: 0 0.05em; }

.pages {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  margin: 2.4rem 0 0; max-width: 40rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.pages a { text-decoration: none; padding: 0.6rem 0; }
.pages a:hover { text-decoration: underline; }
.pages a[rel="next"] { justify-self: end; }
.pages .page-n { color: var(--encre-3); }

/* Résultat d'un vote : un mot, la pastille de la position qui l'emporte. */
.resultat { white-space: nowrap; }
.resultat::before {
  content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.45rem; border-radius: 50%;
  background: var(--encre-3); vertical-align: 0.05em;
}
.resultat.adopte::before { background: var(--pour); }
.resultat.rejete::before { background: var(--contre); }

/* Répartition des sièges d'un groupe entre les positions. */
.repartition { display: flex; gap: 1px; width: 100%; max-width: 12rem; height: 0.55rem; border-radius: 2px; overflow: hidden; }
.repartition span { background: var(--c); box-shadow: inset 0 0 0 1px rgb(17 20 22 / 0.1); }
.votes-groupes .part { width: 14%; min-width: 7rem; vertical-align: middle; }
.votes-groupes tbody th { min-width: 10rem; width: auto; }
.votes-groupes .nom-groupe { display: block; font-size: 0.78rem; }
.votes-groupes th a { text-decoration: none; font-weight: 500; }
.votes-groupes th a:hover { text-decoration: underline; }

.position-titre { display: flex; align-items: center; gap: 0.5rem; }
.position-titre .pastille { width: 0.55rem; height: 0.55rem; }
.votants { columns: 16rem auto; }
.votants li { padding: 0.18rem 0; }

.texte-amendement { max-width: 46rem; margin: 1.6rem 0 0; font-size: 0.95rem; color: var(--encre-2); }
.texte-amendement p { margin: 0 0 0.7rem; }
.sous-titre-texte {
  font-size: 0.64rem !important; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--encre-3) !important;
}
.liste-chiffres .n a { text-decoration: none; }
.liste-chiffres .n a:hover { text-decoration: underline; }
.liste-chiffres li > .n { text-align: right; }

@media (max-width: 899px) {
  .heros-liste { padding: 5.5rem 16px 0; }
  .filtres { gap: 1rem; }
  .champ { flex: 1 1 calc(50% - 1rem); min-width: 0; }
  .champ-recherche { flex-basis: 100%; max-width: none; }
  .liste-scrutins .date, .liste-textes .date { width: auto; }
}

/* Page d'un dossier, d'un texte : un titre long, plus petit. */
.heros-fiche { padding-bottom: 1rem; }
.heros-liste .titre.titre-long { font-size: min(clamp(1.9rem, 3.6vw, 3.4rem), 12cqi); line-height: 1; max-width: 62rem; }
.heros-liste .titre.titre-tres-long { font-size: min(clamp(1.6rem, 2.8vw, 2.6rem), 10cqi); }

.actes { list-style: none; margin: 0; padding: 0; max-width: 64rem; font-size: 0.9rem; }
.actes li {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--filet);
}
.actes .date { color: var(--encre-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.actes li.niveau-0 { padding-top: 1.4rem; }
.actes li.niveau-0 .acte { font-size: 1rem; }
.actes li.niveau-1 .acte { padding-left: 1.2rem; }
.actes li.niveau-2 .acte { padding-left: 2.4rem; color: var(--encre-2); }
.actes li.niveau-3 .acte { padding-left: 3.6rem; color: var(--encre-2); }
.actes a, .etapes a { text-decoration: none; }
.actes a:hover, .etapes a:hover { text-decoration: underline; }
.etapes .resultat { margin-left: 0.3rem; }
.textes .sous-ligne { display: block; margin-top: 0.15rem; font-size: 0.82rem; }
.divisions { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin-top: 0.35rem; font-size: 0.8rem; }
.divisions a { color: var(--encre-2); }

@media (max-width: 899px) {
  .actes li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .actes li .acte { padding-left: 0 !important; }
}

/* Liste des textes : l'extrait autour de la recherche. */
.liste-textes .extrait { display: block; margin-top: 0.4rem; font-size: 0.84rem; color: var(--encre-2); line-height: 1.5; }
.references { margin-top: 1.6rem; }
.references .n { max-width: 70%; }

/* Lecture d'un texte. */
.bloc-lecture { padding-top: 2rem; }
.replie { max-width: 46rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--filet); }
.replie summary {
  padding: 0.7rem 0; cursor: pointer;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--encre-2);
}
.replie summary:hover { color: var(--encre); }
.sommaire, .parties { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: 0.88rem; line-height: 1.5; }
.sommaire li, .parties li { padding: 0.12rem 0; }
.sommaire a, .parties a, .occurrences a { text-decoration: none; }
.sommaire a:hover, .parties a:hover, .occurrences a:hover { text-decoration: underline; }
.sommaire .n1 { font-weight: 600; margin-top: 0.6rem; }
.sommaire .n2 { font-weight: 500; padding-left: 0.8rem; }
.sommaire .n3 { padding-left: 1.6rem; }
.sommaire .n4 { padding-left: 2.4rem; }
.sommaire .n5 { padding-left: 3.2rem; color: var(--encre-2); }
.occurrences-bloc .faits-bloc { margin-bottom: 0.8rem; }
.occurrences { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin: 0 0 1.6rem; font-size: 0.84rem; font-variant-numeric: tabular-nums; }

.lecture { max-width: 44rem; font-size: 1.04rem; line-height: 1.7; color: var(--encre); font-weight: 350; }
.lecture p { margin: 0.75rem 0; overflow-wrap: anywhere; }
.passage { scroll-margin-top: 5rem; }
.lecture :is(h2, h3, h4, h5, h6) { font-weight: 600; line-height: 1.35; letter-spacing: 0.01em; }
.lecture .titre-1, .lecture .titre-2, .lecture .titre-3 { text-align: center; text-transform: uppercase; font-stretch: 88%; }
.lecture .titre-1 { font-size: 1.3rem; margin: 2.8rem 0 1.2rem; }
.lecture .titre-2 { font-size: 1.15rem; margin: 2.3rem 0 1rem; }
.lecture .titre-3 { font-size: 1.05rem; margin: 1.8rem 0 0.8rem; }
.lecture .titre-4 { font-size: 1.04rem; margin: 1.6rem 0 0.6rem; }
.lecture .titre-5 { font-size: 1rem; font-style: italic; margin: 1.3rem 0 0.4rem; }
.lecture .titre-6 { font-size: 1.04rem; margin: 2rem 0 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--filet); }
.lecture .intitule { display: block; margin-top: 0.2rem; font-weight: 400; text-transform: none; }
.lecture .rubrique { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-2); margin: 1.3rem 0 0.4rem; }
.lecture .cite { border-left: 2px solid var(--filet-fort); padding-left: 1rem; }
.lecture .titre-cite { font-weight: 600; }
.lecture .legende { display: block; margin: 0.4rem 0; font-size: 0.86rem; color: var(--encre-2); }
.lecture .encadre { background: rgb(17 20 22 / 0.04); padding: 0.6rem 1.2rem; margin: 1.4rem 0; }
.lecture .encadre-titre { font-weight: 600; }
.lecture .liste { position: relative; padding-left: 1.2rem; }
.lecture .liste::before { content: "–"; position: absolute; left: 0; color: var(--encre-3); }
.lecture .sommaire-texte { list-style: none; padding-left: 0; font-size: 0.86rem; color: var(--encre-2); margin: 1.2rem 0 1.8rem; }
.lecture .sommaire-texte li { padding: 0.1rem 0; }
.lecture .sommaire-texte .n2 { margin-left: 0.8rem; }
.lecture .sommaire-texte .n3 { margin-left: 1.6rem; }
.lecture .sommaire-texte .n4 { margin-left: 2.4rem; }
.lecture .sommaire-texte .n5 { margin-left: 3.2rem; }
.lecture .enum { padding-left: 1.25rem; text-indent: -1.25rem; }
.lecture .enum.cite { padding-left: 2.2rem; }
.lecture p.n1 { margin-left: 1.2rem; }
.lecture p.n2 { margin-left: 2.2rem; }
.lecture .note { font-size: 0.86rem; color: var(--encre-2); }
.lecture .didascalie { font-style: italic; color: var(--encre-2); }
.lecture .renvoi { color: var(--encre-2); }
.lecture .orateur { font-weight: 600; }
.lecture .couverture { text-align: center; color: var(--encre-2); margin-bottom: 2.4rem; }
.lecture .couverture p { margin: 0.2rem 0; }
.lecture hr { border: 0; border-top: 1px solid var(--filet-fort); width: 30%; margin: 1.6rem auto; }
.page-pdf { margin: 1.6rem 0 0.4rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-3); }
.page-pdf a { text-decoration: none; }
table.texte-tableau { border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; line-height: 1.45; }
.texte-tableau td { padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
.texte-tableau td.nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  .references .n { max-width: none; }
  .lecture { font-size: 1rem; }
}
.replie-votants { max-width: none; margin-top: 2.6rem; border-bottom: 0; }
.replie-votants summary { display: flex; align-items: center; gap: 0.5rem; color: var(--encre-3); }
.replie-votants summary .pastille { width: 0.55rem; height: 0.55rem; }
.replie-votants[open] summary { margin-bottom: 1rem; }

/* Petits écrans : une ligne d'un tableau .empile devient un bloc. L'intitulé (et la date, l'objet)
   sur leurs lignes, puis les nombres à la suite, chacun précédé de son libellé (data-libelle). Les
   autres tableaux resserrent leurs cellules et défilent dans leur cadre. */
@media (max-width: 599px) {
  .empile thead { display: none; }
  .empile, .empile :is(tbody, tr, th, td) { display: block; }
  .empile tr { padding: 0.9rem 0; border-bottom: 1px solid var(--filet); }
  .composition.empile :is(th, td) { width: auto; min-width: 0; padding: 0.12rem 0; border: 0; }
  .empile td.date .numero, .empile td.date .sous-ligne { display: inline; margin-left: 0.5rem; }
  .empile :is(td.nombre, td.part, td.position, td.lien-groupe) { display: inline-block; margin-right: 1rem; text-align: left; vertical-align: middle; }
  .empile td:is(.nombre, .position, .lien-groupe):empty { display: none; }
  .empile td[data-libelle]::before { content: attr(data-libelle) " "; color: var(--encre-3); }
  .empile td.part { width: 8.5rem; }
  .empile .lien-groupe a { padding: 0.3rem 0.5rem; }
  .empile summary .pastille { align-self: flex-start; margin-top: 0.55rem; }
  .donnees .objet { min-width: 0; }
  .onglets { gap: 0.2rem 1.1rem; letter-spacing: 0.14em; }
  /* Le nom à côté du portrait : un mot plus long que sa colonne se coupe plutôt que de déborder. */
  .heros-membre .identite { gap: 1rem; }
  .heros-membre .vignette { width: 4.5rem; height: 5.6rem; }
  .heros-membre .identite .titre { min-width: 0; overflow-wrap: anywhere; }

  .composition th, .composition td { padding: 0.75rem 0.5rem; }
  .composition :is(th, td):first-child { padding-left: 0; }
  .composition :is(th, td):last-child { padding-right: 0; }
  .donnees tbody th { min-width: 9rem; }
}
