/* Les jetons : couleurs, polices, espaces et mouvement s'écrivent ici et nulle part
 * ailleurs, un test refuse toute valeur en dur dans une autre feuille ou un script
 * (DESIGN.md). Servie en tête de chaque surface (config.SURFACES).
 */

@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url(/polices/anybody.woff2) format("woff2");
}
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/polices/chivo.woff2) format("woff2");
}
@font-face {
  font-family: "Chivo";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/polices/chivo-italique.woff2) format("woff2");
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/polices/martian-mono.woff2) format("woff2");
}

:root {
  /* Couleurs. Le jaune et le noir de l'affiche ne changent jamais. */
  --fluo: #e4ff1a;
  --fluo-profond: #b9d400;
  --noir: #111;
  --blanc: #fff;
  --bleu: #a9bedc;
  --bleu-encre: #4b6690;
  --rouge: #e5a9a1;
  --blanc-casse: #f2f3f0;
  --papier: #f2f3f0;
  --papier-creux: #e7e9e4;
  --encre: #16181b;
  --encre-douce: #5c6167;
  --encre-aide: #43474c;
  --trait: #d3d6d0;
  /* Bande tricolore pastel, identique en clair et en sombre. */
  --tricolore-bleu: #a9bedc;
  --tricolore-blanc: #f2f3f0;
  --tricolore-rouge: #e5a9a1;
  /* Transparences : voile sous le rideau, filets, appui en jaune sur noir. */
  --voile: rgb(17 17 17 / 0.42);
  --fluo-filet: rgb(228 255 26 / 0.18);
  --fluo-appui: rgb(228 255 26 / 0.1);

  /* Polices, servies par le site (ag/polices/). */
  --vote-fond: #fff;
  --vote-encre: #16181b;
  --vote-doux: #6b6f68;
  --vote-trait: #dcded8;
  --vote-creux: #f2f3f0;
  --vote-bleu: #a9bedc;
  --vote-rouge: #e5a9a1;
  --vote-vert: #2fa35b;
  --vote-delai: 1000ms;
  --vote-faible: #e08a1e;

  --display: "Anybody", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, monospace;
  --texte: "Chivo", system-ui, sans-serif;

  --marge: 26px;
  --large: 1040px;
  --colonne: 732px;
  --barre: 52px;
  /* Un pixel de texte : 1 px à la taille par défaut (1rem = 17 px), plus quand le
     téléphone agrandit le texte. En fraction de rem pour tomber juste. */
  --px: calc(1rem / 17);
  /* Centre de l'écran de démarrage : demarrage.js le corrige sur iPhone, où la page
     installée est plus courte que l'écran. */
  --centre-ecran: 50vh;

  /* Mouvement. Le JavaScript lit ces valeurs (app/js/jetons.js), il n'en a aucune. */
  --t-instant: 90ms;
  --t-rapide: 160ms;
  --t-base: 240ms;
  --t-ample: 420ms;
  --t-scene: 640ms;
  /* Écran de démarrage de l'app installée : premier lancement, puis les suivants. */
  --t-demarrage: 900ms;
  --t-demarrage-court: 300ms;
  /* Temps de lecture d'un court message (« Lien copié ») : ne passe pas à zéro quand le
     mouvement est réduit. */
  --t-lecture: 2400ms;
  /* Bandeau de la prochaine AG : durée pour avancer d'un signe, vitesse constante quelle
     que soit la longueur du texte (composants.PALIERS). */
  --t-defile: 160ms;
  --c-sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --c-entree: cubic-bezier(0.55, 0, 1, 0.45);
  --c-ressort: cubic-bezier(0.34, 1.28, 0.64, 1);
  --cascade: 30ms;
  --monte: 12px;
  /* Autocollant soulevé au survol : hauteur de montée, et donc de descente à l'appui. */
  --decale: 2px;
  /* Détourage d'un autocollant : marge jaune, même épaisseur que le bord des boutons. */
  --detourage: 2px;
  --pression: 0.96;
  /* Tour lent de l'étoile de l'affiche en cours. */
  --t-tour: 12000ms;
  /* App (fil.css, app/js/) : hauteur des barres, délais des gestes (double appui, appui
     long, lus par geste.js), seuil de fermeture de la feuille tirée vers le bas
     (--feuille-seuil). */
  --haut-app: 46px;
  --barre-app: 62px;
  --geste-double: 300ms;
  --geste-long: 480ms;
  --feuille-seuil: 110px;
  /* Le fil tiré vers le bas se rafraîchit au-delà de cette course. */
  --tirer-seuil: 72px;

  color-scheme: light dark;
}
/* Ressort (amorti 0,55, dépassement de 12 %) là où le navigateur sait le dessiner (Safari
   17.2, Chrome 113, Firefox 112). */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --c-ressort: linear(0, 0.056 4%, 0.194 8%, 0.372 12%, 0.559 16%, 0.731 20%, 0.875 24%,
      0.985 28%, 1.061 32%, 1.106 36%, 1.125 40%, 1.119 46%, 1.09 52%, 1.043 60%, 1.001 70%,
      0.985 80%, 0.986 90%, 1);
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #15171a;
    --papier-creux: #1e2126;
    --encre: #ecede9;
    --encre-douce: #9aa0a7;
    --encre-aide: #bcc1c7;
    --trait: #2b2f35;
    --bleu: #8fa9cc;
    --bleu-encre: #aac3e5;
    --rouge: #d9968d;
    --fluo-profond: #d3f000;
  }
}
/* Mouvement réduit : tout arrive sans bouger, rien ne défile seul. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-instant: 0ms;
    --t-rapide: 0ms;
    --t-base: 0ms;
    --t-ample: 0ms;
    --t-scene: 0ms;
    --t-demarrage: 0ms;
    --t-demarrage-court: 0ms;
    --t-defile: 0ms;
    --cascade: 0ms;
    --monte: 0px;
    --pression: 1;
    --t-tour: 0ms;
  }
}
@media (max-width: 680px) {
  :root { --marge: 20px; }
}

/* Composants partagés par le site et l'app : socle, étiquette, champ jaune, bande
 * tricolore, annonce d'une AG, boutons, étapes, liseré, interrupteur, feuille,
 * ligne de notification. Leur HTML sort de ag/composants.py. Chacun est montré
 * dans chaque état sur /app/catalogue ; `data-etat` force un état que le
 * catalogue ne sait pas simuler (survol, focus).
 */

/* -- le socle ------------------------------------------------------------- */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 17 px par défaut ; sur iPhone et iPad, la taille du texte choisie dans les
   réglages (Dynamic Type), que l'app installée ne suit pas autrement. Toute taille
   de texte s'écrit en --px, sauf dans les barres à hauteur fixe. */
html { background: var(--papier); font-size: 106.25%; -webkit-text-size-adjust: 100%; }
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: calc(17 * var(--px));
  line-height: 1.62;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible,
[data-etat="focus"] { outline: 3px solid var(--bleu-encre); outline-offset: 3px; }
.wrap { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }
.etroit { max-width: var(--colonne); }

/* -- l'étiquette : sur-titre en chasse fixe, capitales espacées ------------ */

.oeil {
  margin: 0;
  font-family: var(--mono);
  font-size: calc(12 * var(--px));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -- le champ jaune en tête ---------------------------------------------- */

.champ { background: var(--fluo); color: var(--noir); overflow: hidden; }
.champ .wrap { padding-top: 44px; padding-bottom: 34px; }
h1 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 900;
  font-size: clamp(34 * var(--px), 7vw, 88 * var(--px));
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.chapo {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: calc(18 * var(--px));
  font-weight: 700;
  line-height: 1.4;
}
.infos {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: calc(12 * var(--px));
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
/* Bande tricolore pastel, la même que le liseré du pied. */
.bande {
  height: 26px;
  margin: 30px 0 0;
  background: linear-gradient(90deg, var(--tricolore-bleu) 0 33.34%, var(--tricolore-blanc) 33.34% 66.67%,
    var(--tricolore-rouge) 66.67% 100%);
}
.champ a { text-decoration-thickness: 2px; }

/* -- l'annonce d'une AG, en négatif : la date forte de l'affiche ---------- */

.prochaine { background: var(--noir); color: var(--fluo); }
.prochaine .wrap { padding-top: 34px; padding-bottom: 38px; }
.quand {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: calc(13 * var(--px));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.quand span {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-variation-settings: "wdth" 114;
  font-weight: 900;
  font-size: clamp(46 * var(--px), 10vw, 104 * var(--px));
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.prochaine .quoi {
  margin: 18px 0 0;
  color: var(--blanc-casse);
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 800;
  font-size: clamp(18 * var(--px), 2.4vw, 24 * var(--px));
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.prochaine .ou {
  margin: 8px 0 0;
  color: var(--blanc-casse);
  font-family: var(--mono);
  font-size: calc(12 * var(--px));
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* -- les boutons carrés, sur fond noir : plein jaune, ou cercle ----------- */

.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.bouton {
  display: inline-block;
  padding: 14px 20px;
  border: 2px solid var(--fluo);
  background: var(--fluo);
  color: var(--noir);
  font-family: var(--mono);
  font-size: calc(12.5 * var(--px));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.bouton.creux { background: none; color: var(--fluo); }
.bouton:hover,
.bouton[data-etat="survol"] { background: var(--blanc-casse); border-color: var(--blanc-casse); color: var(--noir); }

/* -- l'autocollant : le survol et l'appui de tout bouton -----------------
 * Au repos, à plat. Au survol (souris seulement) il monte d'un cran, sans ombre ;
 * à l'appui (partout) il redescend et se presse un peu, puis revient d'un ressort.
 * `--bord` : largeur du détourage jaune, aucun par défaut, présent à chaque état.
 */
.bouton,
.ag-bouton {
  --bord: 0px;
  box-shadow: 0 0 0 var(--bord) var(--fluo);
  transition: transform var(--t-base) var(--c-ressort), background-color var(--t-rapide) var(--c-sortie), border-color var(--t-rapide) var(--c-sortie),
    color var(--t-rapide) var(--c-sortie);
}
@media (hover: hover) and (pointer: fine) {
  .bouton:hover,
  .ag-bouton:hover {
    transform: translateY(calc(-1 * var(--decale)));
    transition-duration: var(--t-rapide);
    transition-timing-function: var(--c-sortie);
  }
}
.bouton[data-etat="survol"],
.ag-bouton[data-etat="survol"] { transform: translateY(calc(-1 * var(--decale))); }
.bouton:active,
.ag-bouton:active,
.bouton[data-etat="appui"],
.ag-bouton[data-etat="appui"] {
  transform: scale(var(--pression));
  transition-duration: var(--t-instant);
  transition-timing-function: var(--c-sortie);
}

/* -- les étapes : des gestes numérotés, l'icône du téléphone en négatif ---- */

.etapes {
  margin: 22px 0 0;
  padding: 0;
  border-top: 3px solid var(--encre);
  list-style: none;
  counter-reset: etape;
}
.etapes li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--trait);
  counter-increment: etape;
}
.etape-icone {
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--noir);
  fill: none;
  stroke: var(--fluo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.etapes strong {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 800;
  font-size: calc(19 * var(--px));
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.etapes strong::before {
  content: counter(etape) ". ";
  font-family: var(--mono);
  font-size: calc(13 * var(--px));
  font-weight: 700;
  vertical-align: 2px;
}
.etapes small {
  display: block;
  margin-top: 3px;
  color: var(--encre-douce);
  font-size: calc(15 * var(--px));
  line-height: 1.4;
}

/* -- le bandeau de la prochaine AG : une bande jaune sous le bandeau noir --
 * Le texte défile à gauche, `Je participe` reste fixe à droite. Sans script,
 * deux cases à cocher (cachées, mais atteintes au clavier) portent l'état :
 * `.ag-oui` montre le pouce, la cloche et `Être notifié` ; `.ag-doute` propose
 * en plus `Je ne participe plus`, qui efface les deux. bandeau.js ne fait que
 * s'en souvenir (`data-souvenir`).
 */

.bandeau-ag {
  background: var(--fluo);
  color: var(--noir);
  border-bottom: 3px solid var(--noir);
}
.ag-va { position: relative; margin: 0; }
.ag-oui,
.ag-doute {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
/* Seule la case dont le libellé se voit est atteinte au clavier. */
.ag-doute,
.ag-oui:checked,
.ag-oui:checked ~ .ag-doute:checked { visibility: hidden; }
.ag-oui:checked ~ .ag-doute { visibility: visible; }

/* Texte à fond perdu à gauche, boutons alignés sur la colonne. */
.ag-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--barre);
  padding: 4px max(var(--marge), calc((100% - var(--large)) / 2 + var(--marge))) 4px 0;
}
.ag-defile {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.ag-piste {
  display: flex;
  flex: none;
  animation: ag-defile calc(var(--periode) * var(--t-defile)) linear infinite;
}
/* Chaque copie a la même largeur, en signes : un tour = une copie. */
.ag-copie {
  flex: none;
  width: calc(var(--periode) * (1ch + 0.08em));
  overflow: hidden;
}
.ag-p48 { --periode: 48; }
.ag-p64 { --periode: 64; }
.ag-p80 { --periode: 80; }
.ag-p96 { --periode: 96; }
.ag-p112 { --periode: 112; }
.ag-p128 { --periode: 128; }
.ag-p144 { --periode: 144; }
@keyframes ag-defile {
  to { transform: translateX(-25%); }
}
/* Pause pour lire : au doigt, au focus, et au survol là où il existe. */
.ag-defile:active .ag-piste,
.ag-defile:focus-visible .ag-piste { animation-play-state: paused; }
@media (hover: hover) {
  .ag-defile:hover .ag-piste { animation-play-state: paused; }
}
.ag-defile:focus-visible { outline-offset: -3px; }

.ag-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.ag-bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 2px solid var(--noir);
  border-radius: 0;
  background: var(--noir);
  color: var(--fluo);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
/* Détourage jaune : invisible sur la bande, il détache le bouton noir du bandeau noir
   quand il monte. */
.bandeau-ag .ag-bouton { --bord: var(--detourage); }
.ag-plus { background: none; color: var(--noir); }
.ag-pouce-image { width: 18px; height: 18px; flex: none; fill: currentColor; }
.ag-cloche {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--noir);
}
.ag-cloche svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  transform-origin: 50% 12%;
}
.ag-cloche { transition: transform var(--t-base) var(--c-ressort); }
.ag-cloche:active { transform: scale(var(--pression)); transition-duration: var(--t-instant); }

.ag-pouce,
.ag-plus { display: none; }
.ag-oui:checked ~ .ag-ligne .ag-je { display: none; }
.ag-oui:checked ~ .ag-ligne .ag-pouce,
.ag-oui:checked ~ .ag-ligne .ag-cloche { display: inline-flex; }
.ag-oui:checked ~ .ag-doute:checked ~ .ag-ligne .ag-pouce { display: none; }
.ag-oui:checked ~ .ag-doute:checked ~ .ag-ligne .ag-plus { display: inline-flex; }
.ag-oui:focus-visible ~ .ag-ligne .ag-je,
.ag-doute:focus-visible ~ .ag-ligne .ag-pouce { outline: 3px solid var(--bleu-encre); outline-offset: 3px; }

/* Le bouton s'élargit d'un ressort, le pouce entre en tournant ; la cloche glisse, puis
   sonne deux fois, une seule fois. */
.ag-pouce .ag-pouce-image {
  transition: transform var(--t-base) var(--c-ressort);
  animation: ag-pouce var(--t-ample) var(--c-ressort) backwards;
}
@keyframes ag-pouce {
  from { width: 0; margin-right: -8px; transform: rotate(-12deg) scale(0.4); }
}
.ag-cloche { animation: ag-glisse var(--t-base) var(--c-sortie) backwards; }
.ag-cloche svg { animation: ag-sonne var(--t-scene) var(--c-sortie) var(--t-base) backwards; }
/* Au survol : le pouce se relève d'un cran, la cloche tinte une fois. */
@media (hover: hover) and (pointer: fine) {
  .ag-pouce:hover .ag-pouce-image { transform: rotate(-14deg) translateY(-1px); }
  .ag-cloche:hover svg { animation: ag-tinte var(--t-ample) var(--c-sortie); }
}
.ag-pouce[data-etat="survol"] .ag-pouce-image { transform: rotate(-14deg) translateY(-1px); }
.ag-cloche[data-etat="survol"] svg { animation: ag-tinte var(--t-ample) var(--c-sortie); }
@keyframes ag-tinte {
  25% { transform: rotate(10deg); }
  55% { transform: rotate(-7deg); }
  80% { transform: rotate(3deg); }
}
@keyframes ag-glisse {
  from { opacity: 0; transform: translateX(calc(-1 * var(--monte))); }
}
@keyframes ag-sonne {
  20% { transform: rotate(16deg); }
  40% { transform: rotate(-14deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-6deg); }
}

/* `Être notifié` se déplie sous la bande. */
.ag-notifie {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--t-ample) var(--c-sortie), visibility var(--t-ample);
}
.ag-notifie p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  padding-right: max(var(--marge), calc((100% - var(--large)) / 2 + var(--marge)));
  text-align: right;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--t-ample) var(--c-sortie);
}
.ag-notifie .ag-bouton { margin: 2px 0 10px; }
.ag-oui:checked ~ .ag-notifie { grid-template-rows: 1fr; visibility: visible; }
.ag-oui:checked ~ .ag-notifie p { clip-path: inset(0); }

/* État retrouvé d'une page à l'autre : rien ne se rejoue ; `Être notifié` ne se déplie
   qu'au moment du choix. */
.bandeau-ag[data-souvenir] .ag-actions *,
.bandeau-ag[data-souvenir] .ag-notifie * { animation: none !important; transition: none !important; }
.bandeau-ag[data-souvenir] .ag-notifie { display: none; }

@media (prefers-reduced-motion: reduce) {
  /* Rien ne défile seul : le texte se lit d'un bloc, sur deux lignes au besoin. */
  .ag-piste { flex: 1; min-width: 0; animation: none; }
  .ag-defile { padding-left: var(--marge); white-space: normal; }
  .ag-copie { flex: 1; width: auto; padding: 6px 0; }
  .ag-copie + .ag-copie { display: none; }
}
@media (max-width: 680px) {
  .ag-ligne { gap: 6px; }
  .ag-bouton { padding: 0 11px; font-size: 11px; letter-spacing: 0.04em; }
  .ag-defile { font-size: 11px; }
}

/* -- le bouton Partager : caché sans script (partager.js le montre) -------- */

.partager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid currentColor;
  border-radius: 0;
  background: none;
  color: inherit;
  font-family: var(--mono);
  font-size: calc(12.5 * var(--px));
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--t-instant) var(--c-sortie);
}
.partager[hidden] { display: none; }
.partager svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.partager:active { transform: scale(var(--pression)); }
.partager-copie,
.partager.copie .partager-libelle { display: none; }
.partager.copie .partager-copie { display: inline; }
.prochaine .partager { color: var(--fluo); }
.partage { margin: 26px 0 0; }

/* -- le liseré tricolore du pied ----------------------------------------- */

.lisere { display: flex; height: 6px; margin-top: 40px; }
.lisere i { flex: 1; }
.lisere .b { background: var(--bleu); }
.lisere .w { background: var(--papier-creux); }
.lisere .r { background: var(--rouge); }

/* -- l'interrupteur : une piste carrée, le curseur noir qui glisse --------- */

.interrupteur {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 12px 0;
  border-bottom: 1px solid var(--trait);
  cursor: pointer;
}
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur strong { display: block; font-weight: 700; line-height: 1.3; }
.interrupteur small { display: block; color: var(--encre-douce); font-size: calc(15 * var(--px)); line-height: 1.4; }
.interrupteur i {
  position: relative;
  width: 52px;
  height: 30px;
  border: 2px solid var(--encre);
  background: var(--papier-creux);
  transition: background var(--t-rapide) var(--c-sortie);
}
.interrupteur i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--encre);
  transition: translate var(--t-base) var(--c-ressort);
}
.interrupteur input:checked + span + i { background: var(--fluo); }
.interrupteur input:checked + span + i::after { translate: 22px 0; background: var(--noir); }
.interrupteur input:focus-visible + span + i,
.interrupteur input[data-etat="focus"] + span + i { outline: 3px solid var(--bleu-encre); outline-offset: 3px; }
.interrupteur input:disabled + span { opacity: 0.55; }

/* -- le lien vers l'app, sous son nom long ---------------------------------- */

.vers-app {
  margin: 40px 0 0;
  padding-top: 14px;
  border-top: 3px solid var(--encre);
  font-weight: 700;
}
.vers-app a { text-decoration-thickness: 2px; }

/* -- la feuille : monte du bas, au-dessus d'un voile ----------------------- */

.feuille {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: var(--colonne);
  max-height: 88vh;
  margin: 0 auto;
  padding: 26px var(--marge) calc(26px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 6px solid var(--fluo);
  background: var(--noir);
  color: var(--blanc-casse);
  overflow: auto;
}
.feuille[open] { animation: feuille-monte var(--t-ample) var(--c-sortie); }
.feuille::backdrop { background: var(--voile); }
.feuille .oeil { color: var(--fluo); }
.feuille h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 900;
  font-size: clamp(26 * var(--px), 6vw, 36 * var(--px));
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.feuille p { margin: 14px 0 0; }
.feuille .bouton { cursor: pointer; }
.feuille [hidden] { display: none; }
@keyframes feuille-monte {
  from { translate: 0 100%; }
}

/* -- une notification envoyée (onglet Notifs) ----------------------------- */

.envois { margin: 18px 0 0; padding: 0; border-top: 3px solid var(--encre); }
.envoi { padding: 16px 0; border-bottom: 1px solid var(--trait); list-style: none; }
.envoi .oeil { color: var(--encre-douce); }
.envoi-titre {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 800;
  font-size: calc(20 * var(--px));
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.envoi-titre:hover { text-decoration: underline; }
.envoi-texte { margin: 4px 0 0; }

@media (max-width: 680px) {
  /* Un mot long tient sur la ligne : la police se resserre plutôt que de couper. */
  h1 { font-variation-settings: "wdth" 96; font-size: clamp(30 * var(--px), 8.6vw, 44 * var(--px)); }
}

/* Affiche de mobilisation : jaune fluo et noir, titres larges en capitales,
 * étiquettes en chasse fixe, filets fins, aucune carte arrondie. Direction
 * reprise, avec accord écrit, de 17octobregiletjaune.net (DESIGN.md).
 * Pages du site seulement : valeurs dans jetons.css, composants partagés avec
 * l'app dans composants.css ; les trois feuilles sont servies ensemble sous
 * /style.css (config.SURFACES).
 */

/* -- le bandeau noir, comme les onglets de l'affiche --------------------- */

.bandeau { background: var(--noir); color: var(--fluo); }
.bandeau .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 26px; }
.onglets { display: flex; flex-wrap: wrap; column-gap: 20px; margin: 0; padding: 0; list-style: none; }
.onglets a { display: block; }
.bandeau a {
  padding: 15px 0 13px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.bandeau a:hover,
.bandeau a[aria-current="page"] { border-bottom-color: var(--fluo); }
.bandeau .nom:hover { border-bottom-color: transparent; }
/* Onglet App, le dernier : autocollant jaune posé de biais. */
.onglets .app { display: flex; align-items: center; }
.bandeau .onglets .app a {
  padding: 5px 9px 4px;
  border: 0;
  background: var(--fluo);
  color: var(--noir);
  transform: rotate(-3deg);
  transition: transform var(--t-base) var(--c-ressort);
}
.bandeau .onglets .app a[aria-current="page"] { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .bandeau .onglets .app a:hover {
    transform: rotate(0deg) translateY(calc(-1 * var(--decale)));
  }
}
.bandeau .onglets .app a:active {
  transform: rotate(0deg) scale(var(--pression));
  transition-duration: var(--t-instant);
}

/* App installée : le bandeau passe sous la barre d'état de l'iPhone, le pied remonte au-
   dessus de la barre d'accueil. Sans effet dans un navigateur. */
@media (display-mode: standalone) {
  .bandeau { padding-top: env(safe-area-inset-top); }
  footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* -- sur téléphone, le rideau : la barre noire se déroule vers le bas ------
 * Popover natif, sans script. Fermé, le rideau ne montre que la ligne de la
 * barre (nom, bouton au même endroit) ; ouvert, il descend jusqu'à la bande
 * tricolore, le texte montant ligne à ligne. Sans popover : onglets en ligne.
 */

.bascule,
.rideau { display: none; }
.bascule {
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin: 0 -10px 0 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--fluo);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}
/* Deux traits ; dans le rideau ouvert, ils se croisent. */
.bascule { transition: transform var(--t-base) var(--c-ressort); }
.bascule:active { transform: scale(var(--pression)); transition-duration: var(--t-instant); }
.bascule i { position: relative; width: 18px; height: 8px; }
.bascule i::before,
.bascule i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-ample) var(--c-sortie);
}
.bascule i::before { top: 0; }
.bascule i::after { bottom: 0; }

.rideau {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  width: auto;
  max-width: none;
  height: auto;
  max-height: 100dvh;
  margin: 0;
  padding: env(safe-area-inset-top) 0 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--noir);
  color: var(--fluo);
  clip-path: inset(0 0 calc(100% - var(--barre) - env(safe-area-inset-top)) 0);
  transition: clip-path var(--t-base) var(--c-entree),
              display var(--t-base) allow-discrete, overlay var(--t-base) allow-discrete;
}
.rideau::backdrop {
  background: var(--voile);
  opacity: 0;
  transition: opacity var(--t-base), display var(--t-base) allow-discrete, overlay var(--t-base) allow-discrete;
}
.rideau:popover-open {
  clip-path: inset(0);
  transition-duration: var(--t-scene);
  transition-timing-function: var(--c-sortie);
}
.rideau:popover-open::backdrop { opacity: 1; transition-duration: var(--t-scene); }
@starting-style {
  .rideau:popover-open { clip-path: inset(0 0 calc(100% - var(--barre) - env(safe-area-inset-top)) 0); }
  .rideau:popover-open::backdrop { opacity: 0; }
}
.rideau:popover-open .bascule i::before { transform: translateY(3px) rotate(45deg); }
.rideau:popover-open .bascule i::after { transform: translateY(-3px) rotate(-45deg); }
@starting-style {
  .rideau:popover-open .bascule i::before,
  .rideau:popover-open .bascule i::after { transform: none; }
}

.rideau ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
  border-top: 1px solid var(--fluo-filet);
}
.rideau li { overflow: hidden; border-bottom: 1px solid var(--fluo-filet); }
.rideau li a {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: baseline;
  padding: 17px var(--marge) 15px;
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 900;
  font-size: clamp(24px, 7.4vw, 32px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  text-wrap: balance;
  white-space: normal;
  border: 0;
}
.rideau li a::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.55;
}
.rideau li a:active { background: var(--fluo-appui); }
/* Page courante : en négatif, comme la dernière AG. */
.rideau li a[aria-current="page"] { background: var(--fluo); color: var(--noir); }
/* App : autocollant jaune, comme dans la barre. */
.rideau li.app { padding: 14px var(--marge) 16px; }
.rideau li.app a {
  display: inline-grid;
  padding: 12px 16px 10px;
  background: var(--fluo);
  color: var(--noir);
  transform: rotate(-2deg);
}
.rideau:popover-open li a { transition: transform var(--t-scene) var(--c-sortie); }
.rideau:popover-open li:nth-child(1) a { transition-delay: var(--t-instant); }
.rideau:popover-open li:nth-child(2) a { transition-delay: calc(var(--t-instant) + 1 * var(--cascade)); }
.rideau:popover-open li:nth-child(3) a { transition-delay: calc(var(--t-instant) + 2 * var(--cascade)); }
.rideau:popover-open li:nth-child(4) a { transition-delay: calc(var(--t-instant) + 3 * var(--cascade)); }
.rideau:popover-open li:nth-child(5) a { transition-delay: calc(var(--t-instant) + 4 * var(--cascade)); }
.rideau:popover-open li:nth-child(6) a { transition-delay: calc(var(--t-instant) + 5 * var(--cascade)); }
.rideau:popover-open li:nth-child(n+7) a { transition-delay: calc(var(--t-instant) + 6 * var(--cascade)); }
@starting-style {
  .rideau:popover-open li a { transform: translateY(105%); }
}
.rideau .bande { height: 8px; margin: 0; transform-origin: left; }
.rideau:popover-open .bande { transition: transform var(--t-scene) var(--c-sortie) var(--t-base); }
@starting-style {
  .rideau:popover-open .bande { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rideau,
  .rideau::backdrop,
  .rideau *,
  .rideau *::before,
  .rideau *::after { transition: none !important; }
}

/* Intertitre de page, aussi fort que ceux d'un compte rendu. */
.partie {
  margin: 0 0 26px;
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 900;
  font-size: clamp(26 * var(--px), 4.4vw, 40 * var(--px));
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* -- le menu des infos pratiques : chaque page en gros bouton noir -------- */

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Un seul bouton (l'app, sur /suivre) prend toute la largeur. */
.menu:has(> li:only-child) { grid-template-columns: 1fr; }
.menu a {
  display: block;
  height: 100%;
  padding: 20px 20px 22px;
  background: var(--noir);
  color: var(--fluo);
  text-decoration: none;
}
.menu strong {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 900;
  font-size: calc(23 * var(--px));
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.menu span { display: block; margin-top: 10px; color: var(--blanc-casse); font-size: calc(14.5 * var(--px)); line-height: 1.45; }
.menu a:hover strong { text-decoration: underline; text-decoration-thickness: 3px; }
/* Survol et appui : comme les boutons (composants.css). */
.menu a { transition: transform var(--t-base) var(--c-ressort); }
@media (hover: hover) and (pointer: fine) {
  .menu a:hover {
    transform: translateY(calc(-1 * var(--decale)));
    transition-duration: var(--t-rapide);
    transition-timing-function: var(--c-sortie);
  }
}
.menu a:active {
  transform: scale(calc(1 - (1 - var(--pression)) / 2));
  transition-duration: var(--t-instant);
}

/* -- la liste des AG, comme le calendrier de l'affiche ------------------- */

.suite { padding-top: 52px; padding-bottom: 10px; }
.chapeau,
.suite h2 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: calc(10.5 * var(--px));
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.cal { list-style: none; margin: 0 0 46px; padding: 0; border-top: 3px solid var(--encre); }
.cal a,
.cal .ev {
  display: grid;
  grid-template-columns: minmax(110px, 170px) 1fr;
  gap: 10px 26px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--trait);
  text-decoration: none;
}
.cal .d {
  font-family: var(--display);
  font-variation-settings: "wdth" 114;
  font-weight: 900;
  font-size: clamp(38 * var(--px), 6vw, 60 * var(--px));
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cal .d span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: calc(12 * var(--px));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cal strong {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 800;
  font-size: clamp(18 * var(--px), 2.4vw, 24 * var(--px));
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.cal a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
/* À l'appui, la ligne est poussée d'un cran puis revient d'un ressort. */
.cal a { transition: transform var(--t-base) var(--c-ressort); }
.cal a:active { transform: translateX(var(--decale)); transition-duration: var(--t-instant); }
.cal .s { display: block; margin: 4px 0 0; font-size: calc(15.5 * var(--px)); line-height: 1.5; color: var(--encre-douce); }
/* Dernière AG en négatif : noir et jaune, comme la date forte. */
.cal li:first-child a,
.cal li:first-child .ev { background: var(--noir); color: var(--fluo); padding-inline: 20px; border-bottom: 0; }
.cal li:first-child .s { color: var(--blanc-casse); }
/* Dates passées : en retrait, sans négatif. */
.cal.passe { border-top-width: 1px; opacity: 0.62; }
.cal.passe li:first-child .ev { background: none; color: inherit; padding-inline: 0; border-bottom: 1px solid var(--trait); }
.cal.passe li:first-child .s { color: var(--encre-douce); }
.cal.passe .d { font-size: clamp(28 * var(--px), 4vw, 40 * var(--px)); }
.abonnement { padding-top: 0; margin-bottom: 46px; }
.vide { margin: 0 0 46px; color: var(--encre-douce); }
@media (max-width: 560px) {
  .cal a,
  .cal .ev { grid-template-columns: 1fr; gap: 8px; }
}

/* -- le compte rendu ----------------------------------------------------- */

.texte { padding: 44px 0 20px; overflow-wrap: break-word; }
.texte > :first-child { margin-top: 0; }
.texte p { margin: 0 0 18px; }
.texte h2 {
  margin: 44px 0 20px;
  color: var(--encre);
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 900;
  font-size: clamp(26 * var(--px), 4.4vw, 40 * var(--px));
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.texte h3 {
  margin: 30px 0 12px;
  font-family: var(--mono);
  font-size: calc(12 * var(--px));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.texte strong { font-weight: 700; }
.texte a { text-decoration-thickness: 2px; }
.texte ul { margin: 0 0 18px; padding-left: 1.3em; }
.texte ul li { margin: 0 0 6px; }
.texte li::marker { color: var(--encre-douce); }
/* Liste numérotée : lignes et filet, numéro en chasse fixe. */
.texte ol { list-style: none; counter-reset: n; margin: 6px 0 26px; padding: 0; border-top: 2px solid var(--encre); }
.texte ol li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--trait);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-weight: 700;
  font-size: calc(18 * var(--px));
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.texte ol li::before {
  counter-increment: n;
  content: counter(n);
  padding-top: 3px;
  font-family: var(--mono);
  font-size: calc(12 * var(--px));
  color: var(--encre-douce);
}
.texte .adresse {
  display: block;
  grid-column: 2;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--papier-creux);
  font-family: var(--mono);
  font-size: calc(13 * var(--px));
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  user-select: all;
}
.texte hr { border: 0; border-top: 1px solid var(--trait); margin: 36px 0; }

/* Parole rapportée : italique, trait noir épais à gauche sorti dans la marge pour que le
   texte ne bouge pas. */
.texte blockquote {
  margin: 22px 0 22px -20px;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--encre);
  font-style: italic;
  font-size: calc(18.5 * var(--px));
}
.texte blockquote p { margin: 0; }

/* Votes : le tableau de l'affiche. Il défile seul, jamais la page. */
.tableau { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--trait); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: calc(15 * var(--px)); }
th, td { padding: 13px 16px; text-align: left; vertical-align: baseline; border-top: 1px solid var(--trait); }
thead th {
  border-top: 0;
  background: var(--papier-creux);
  font-family: var(--mono);
  font-size: calc(10 * var(--px));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-douce);
  white-space: nowrap;
}
td {
  font-family: var(--mono);
  font-size: calc(12.5 * var(--px));
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* La première colonne (la motion) se replie, les chiffres jamais. */
td:first-child {
  min-width: calc(192 * var(--px));
  white-space: normal;
  font-family: var(--texte);
  font-size: calc(15 * var(--px));
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

/* Revendications : liste numérotée, source en étiquette dessous. */
.texte .source {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: calc(11 * var(--px));
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* Schémas et images d'une rubrique : fond blanc même en sombre, ils ont été dessinés sur
   du blanc. */
.texte figure { margin: 28px 0; background: var(--blanc); border: 1px solid var(--trait); }
.texte figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.texte .ref { margin-top: -6px; font-size: calc(13 * var(--px)); line-height: 1.5; color: var(--encre-douce); }

/* Infos pratiques en collage : la liste qui suit chaque intertitre (groupe WhatsApp,
   comptes du mouvement) devient un jeu de papiers collés de travers, chacun avec son
   autocollant étoile (ag/images/). Le compte de Paul Sabatier passe devant : plus grand,
   plus haut, en noir ; les autres sont cerclés, plus petits, décalés. Sur téléphone
   l'étoile rentre dans la colonne, rien ne déborde à droite. */
.texte-infos #le-groupe-whatsapp,
.texte-infos #reseaux {
  display: inline-block;
  margin-top: 56px;
  padding: 9px 14px 6px;
  background: var(--encre);
  color: var(--papier);
  font-size: clamp(22 * var(--px), 3.4vw, 30 * var(--px));
  transform: rotate(-2deg);
}
.texte-infos #reseaux { transform: rotate(1.5deg); }
.texte-infos #le-groupe-whatsapp + ul,
.texte-infos #reseaux + ul { margin: 0 0 30px; padding: 0; list-style: none; }
.texte-infos #le-groupe-whatsapp + ul li,
.texte-infos #reseaux + ul li {
  position: relative;
  margin: 0;
  font-family: var(--mono);
  font-size: calc(12 * var(--px));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--t-base) var(--c-sortie);
}
.texte-infos #le-groupe-whatsapp + ul li:hover,
.texte-infos #reseaux + ul li:hover { transform: rotate(0deg); }
.texte-infos #le-groupe-whatsapp + ul a,
.texte-infos #reseaux + ul a {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 88;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: break-word;
}
.texte-infos #le-groupe-whatsapp + ul a:hover,
.texte-infos #reseaux + ul a:hover { text-decoration: underline; text-decoration-thickness: 4px; }
/* Autocollant : étoile jaune, logo noir, posée à cheval sur le bord. */
.texte-infos #le-groupe-whatsapp + ul li::after,
.texte-infos #reseaux + ul li:first-child::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  background: center / contain no-repeat;
  pointer-events: none;
}

/* Groupe WhatsApp : papier noir, ombre jaune, étoile en haut à droite. */
.texte-infos #le-groupe-whatsapp + ul li {
  margin-top: 46px;
  padding: 36px 210px 32px 26px;
  background: var(--noir);
  color: var(--blanc-casse);
  box-shadow: 10px 10px 0 var(--fluo);
  font-size: clamp(13 * var(--px), 2.2vw, 16 * var(--px));
  letter-spacing: -0.02em;
  text-transform: none;
  overflow-wrap: anywhere;
  transform: rotate(-1.4deg);
}
.texte-infos #le-groupe-whatsapp + ul a {
  margin-bottom: 18px;
  color: var(--fluo);
  font-size: clamp(30 * var(--px), 6.2vw, 56 * var(--px));
  text-transform: uppercase;
}
.texte-infos #le-groupe-whatsapp + ul li::after {
  top: -66px;
  right: -40px;
  width: 230px;
  background-image: url(/images/autocollant-whatsapp.svg);
}

/* Paul Sabatier en tête : toute la largeur, étoile à gauche, nom en bas à droite. */
.texte-infos #reseaux + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
  margin-top: 8px;
}
.texte-infos #reseaux + ul li:first-child {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  min-height: 290px;
  margin-top: 70px;
  padding: 26px 26px 30px;
  background: var(--noir);
  color: var(--blanc-casse);
  box-shadow: -10px 10px 0 var(--fluo);
  text-align: right;
  transform: rotate(1.2deg);
}
.texte-infos #reseaux + ul li:first-child a { color: var(--fluo); font-size: clamp(30 * var(--px), 7vw, 62 * var(--px)); }
.texte-infos #reseaux + ul li:first-child::after {
  top: -84px;
  left: -46px;
  width: 270px;
  background-image: url(/images/autocollant-instagram.svg);
}
/* Autres comptes : cercles à filet épais, plus petits, en quinconce. */
.texte-infos #reseaux + ul li:not(:first-child) {
  align-self: start;
  padding: 18px 18px 20px;
  border: 3px solid var(--encre);
  background: var(--papier);
  color: var(--encre-douce);
}
.texte-infos #reseaux + ul li:not(:first-child) a { margin-bottom: 10px; color: var(--encre); font-size: clamp(21 * var(--px), 3vw, 28 * var(--px)); }
.texte-infos #reseaux + ul li:nth-child(2) { margin-top: 6px; transform: rotate(-2deg); }
.texte-infos #reseaux + ul li:nth-child(3) { margin-top: 36px; transform: rotate(1.8deg); }

@media (max-width: 560px) {
  .texte-infos #le-groupe-whatsapp + ul li { margin-top: 30px; padding: 86px 18px 26px; font-size: calc(11 * var(--px)); letter-spacing: -0.04em; }
  .texte-infos #le-groupe-whatsapp + ul li::after { top: -44px; right: -4px; width: 136px; }
  .texte-infos #le-groupe-whatsapp + ul a { font-size: clamp(26 * var(--px), 8vw, 34 * var(--px)); }
  .texte-infos #reseaux + ul { grid-template-columns: 1fr; gap: 18px; }
  /* L'étoile prend le haut : le nom puis l'étiquette se tassent en bas. */
  .texte-infos #reseaux + ul li:first-child {
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    min-height: 230px;
    margin-top: 54px;
    padding: 22px 18px 24px;
  }
  .texte-infos #reseaux + ul li:first-child a { font-variation-settings: "wdth" 80; font-size: clamp(26 * var(--px), 7.4vw, 34 * var(--px)); }
  .texte-infos #reseaux + ul li:first-child::after { top: -58px; left: -4px; width: 150px; }
  .texte-infos #reseaux + ul li:nth-child(2) { margin: 4px 16% 0 0; }
  .texte-infos #reseaux + ul li:nth-child(3) { margin: 2px 0 0 16%; }
}

/* Sommaire d'une longue rubrique : liste numérotée plus serrée. */
.sommaire { padding-top: 40px; }
.sommaire .oeil { margin-bottom: 12px; color: var(--encre-douce); }
.sommaire ol { list-style: none; counter-reset: n; margin: 0; padding: 0; border-top: 3px solid var(--encre); }
.sommaire li { border-bottom: 1px solid var(--trait); }
.sommaire a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 11px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(17 * var(--px));
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
}
.sommaire a::before {
  counter-increment: n;
  content: counter(n);
  padding-top: 2px;
  font-family: var(--mono);
  font-size: calc(12 * var(--px));
  color: var(--encre-douce);
}
.sommaire a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.texte h2[id] { scroll-margin-top: 16px; }

/* Tableau des effets du gaz : du texte dans chaque case, qui se replie. */
.texte-lacrymo table { min-width: 0; }
.texte-lacrymo th,
.texte-lacrymo td { padding: 11px 12px; white-space: normal; }
.texte-lacrymo td {
  font-family: var(--texte);
  font-size: calc(14.5 * var(--px));
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}
.texte-lacrymo td:first-child { min-width: 0; font-weight: 700; }
@media (max-width: 560px) {
  .texte-lacrymo th,
  .texte-lacrymo td { padding: 9px 7px; font-size: calc(13 * var(--px)); hyphens: auto; }
}

/* -- le formulaire des doléances : angles droits, filets épais ------------ */

.formulaire { margin: 30px 0 0; padding: 26px 0 0; border-top: 3px solid var(--encre); }
.formulaire label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: calc(11 * var(--px));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.formulaire textarea,
.formulaire input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--encre);
  border-radius: 0;
  background: var(--papier);
  color: var(--encre);
  font: inherit;
}
.formulaire textarea { min-height: 12em; resize: vertical; }
.formulaire .aide { margin: 8px 0 26px; font-size: calc(14.5 * var(--px)); color: var(--encre-douce); }
.formulaire button {
  padding: 15px 26px;
  border: 0;
  border-radius: 0;
  background: var(--noir);
  color: var(--fluo);
  font-family: var(--mono);
  font-size: calc(13 * var(--px));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.formulaire button {
  transition: transform var(--t-base) var(--c-ressort), background-color var(--t-rapide) var(--c-sortie);
}
@media (hover: hover) and (pointer: fine) {
  .formulaire button:hover {
    transform: translateY(calc(-1 * var(--decale)));
    transition-duration: var(--t-rapide);
    transition-timing-function: var(--c-sortie);
  }
}
.formulaire button:active {
  transform: scale(var(--pression));
  transition-duration: var(--t-instant);
}
/* Champ piège : hors de l'écran, jamais vu ni atteint au clavier. */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* -- pied (le liseré est un composant) ------------------------------------ */

.mentions { padding-top: 30px; padding-bottom: 46px; }
.mentions p {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: calc(10.5 * var(--px));
  line-height: 1.8;
  letter-spacing: -0.03em;
  color: var(--encre-douce);
}
.mentions .dernier { display: flex; flex-wrap: wrap; gap: 0 18px; }
.mentions .suggerer { margin-left: auto; }

/* Barre de lecture d'un compte rendu : liée au défilement de la page, sans
   script, là où le navigateur sait le faire ; absente ailleurs. */
.progression-page { display: none; }
@supports (animation-timeline: scroll()) {
  .progression-page {
    display: block;
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 3px;
    background: var(--fluo);
    transform-origin: left;
    animation: progression-page linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progression-page {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* -- l'affichette à imprimer -------------------------------------------------
 * A4 et A5 ont les mêmes proportions : tout est mesuré en largeur de feuille
 * (cqi), même mise en page à l'écran et sur papier. Toujours en clair.
 */
.affichette { padding: 34px var(--marge) 60px; }
.feuillet {
  display: flex;
  flex-direction: column;
  width: min(100%, 210mm);
  aspect-ratio: 210 / 297;
  margin: 0 auto;
  container-type: inline-size;
  overflow: hidden;
  outline: 1px solid var(--trait);
  background: var(--blanc);
  color: var(--noir);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.feuillet-a5 { width: min(100%, 148mm); }
.feuillet .champ { flex: none; }
.feuillet .champ .wrap { max-width: none; padding: 7cqi 7cqi 4.5cqi; }
.feuillet .oeil { font-size: 2.6cqi; }
/* La règle du téléphone (wdth 96) ne vaut pas pour une feuille. */
.feuillet h1 { margin-top: 3cqi; font-variation-settings: "wdth" 118; font-size: 8.2cqi; hyphens: manual; }
.feuillet .chapo { max-width: none; margin-top: 4cqi; font-size: 3.9cqi; line-height: 1.3; }
.feuillet .infos { margin-top: 2.4cqi; font-size: 2.5cqi; }
.feuillet .bande { height: 3.4cqi; margin-top: 4.5cqi; }
.feuillet-qr {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 2cqi 0 3cqi;
}
/* Le QR prend la place qui reste, sans pousser le pied hors de la feuille. */
.feuillet-qr img { display: block; flex: 0 1 auto; width: auto; max-width: 42cqi; height: auto; min-height: 0; aspect-ratio: 1; }
.feuillet-qr .scan { margin: 2.4cqi 0 0; font-size: 4cqi; font-weight: 700; }
.feuillet-qr .adresse {
  margin: 1cqi 0 0;
  font-family: var(--mono);
  font-size: 3cqi;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.feuillet .lisere { flex: none; height: 1.4cqi; margin: 0; }
.feuillet .lisere .b { background: var(--tricolore-bleu); }
.feuillet .lisere .w { background: var(--tricolore-blanc); }
.feuillet .lisere .r { background: var(--tricolore-rouge); }
.feuillet-mention {
  margin: 0;
  padding: 2.4cqi 7cqi 3.4cqi;
  font-family: var(--mono);
  font-size: 2cqi;
  font-weight: 700;
  letter-spacing: -0.03em;
}
@page a4 { size: A4; margin: 0; }
@page a5 { size: A5; margin: 0; }
@media print {
  body:has(> .affichette) { background: var(--blanc); }
  body:has(> .affichette) > :not(.affichette) { display: none; }
  .affichette { padding: 0; }
  .feuillet { width: 210mm; height: 297mm; aspect-ratio: auto; outline: 0; page: a4; }
  .feuillet-a5 { width: 148mm; height: 210mm; page: a5; }
}

@media (max-width: 680px) {
  body { font-size: calc(16 * var(--px)); }
  .bandeau a { font-size: 10.5px; padding: 11px 0 8px; }
  .bandeau .wrap { padding-bottom: 4px; }
  .onglets { column-gap: 16px; }
  /* Le nom du site est déjà dans la barre : le champ ne le répète pas. */
  .oeil:has(> .repete) { display: none; }
  .oeil:has(> .repete) + h1 { margin-top: 0; }
  @supports selector(:popover-open) {
    .onglets { display: none; }
    .bandeau .wrap {
      flex-wrap: nowrap;
      align-items: center;
      min-height: var(--barre);
      padding-bottom: 0;
    }
    .bandeau .nom { padding: 13px 0; border: 0; font-size: 11.5px; }
    .bascule { display: flex; }
    .rideau:popover-open { display: block; }
    html:has(.rideau:popover-open) { overflow: hidden; }
  }
  .texte blockquote { margin-left: 0; }
}
