/* ============================================================
   DIRECTION ARTISTIQUE — « Bulletin de quartier »

   Tout le contenu est écrit par des habitant·e·s de Veyrier et parle
   en leur nom. La plateforme qui héberge la pétition n'apparaît que
   dans une ligne de crédit discrète en bas de page (« Publié avec
   Votre Voix ») et sur la feuille A4 avec l'adresse du site ; elle
   n'a ni barre, ni bloc, ni couleur à elle.

   Le site doit se lire comme une page d'opinion bien composée d'un
   journal local, pas comme une campagne commerciale : du papier
   légèrement chaud, une encre presque noire, un seul vert profond
   (celui de l'herbe) réservé aux liens et aux boutons, des filets
   fins, beaucoup de blanc. Aucune photo, aucune icône : la hiérarchie
   repose sur une seule famille, Literata (serif à taille optique,
   variable), qui passe du très grand titre aux notes de bas de page.
   Les quatre raisons sont traitées comme des chapitres, chacune avec son icône.
   Mobile d'abord ; une colonne de lecture de 38 rem ; cibles tactiles
   de 44 px au minimum ; bouton « Je signe » collé en bas sur mobile.
   ============================================================ */

@font-face {
  font-family: "Literata";
  src: url("fonts/Literata-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #faf7f0;
  --papier-2: #f1ede2;
  --encre: #1c1b18;
  --encre-2: #4a4842;
  --vert: #1e5a39;
  --vert-fonce: #16432b;
  --vert-pale: #e4ede4;
  --filet: #d6d0c2;
  --filet-fort: #1c1b18;


  --police: "Literata", Georgia, "Times New Roman", serif;
  --mesure: 38rem;
  --large: 72rem;
  --cible: 2.75rem;
  --marge: 1.25rem;
  --rayon: 4px;
  --barre: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  scroll-padding-bottom: calc(var(--barre) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .notes summary::before {
    transition: none;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.125rem;
  font-weight: 400;
  font-optical-sizing: auto;
  font-variant-numeric: proportional-nums;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--barre) + env(safe-area-inset-bottom));
  text-rendering: optimizeLegibility;
}

body.sans-barre {
  padding-bottom: 0;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--vert);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--vert-fonce);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--vert);
  outline-offset: 3px;
  border-radius: 2px;
}

strong {
  font-weight: 650;
}

em {
  font-style: normal;
  font-weight: 550;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 5.6vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.625rem, 2.2vw + 1rem, 2.25rem);
}

h3 {
  font-size: 1.375rem;
}

p,
ul,
ol,
blockquote,
table,
dl {
  margin: 0 0 1.1em;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.surtitre {
  display: block;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-bottom: 0.85rem;
}

.chapeau {
  font-size: clamp(1.125rem, 1vw + 0.85rem, 1.5rem);
  line-height: 1.42;
  font-weight: 400;
  color: var(--encre);
  max-width: var(--mesure);
}

.discret {
  color: var(--encre-2);
  font-size: 0.9375rem;
}

.mesure {
  max-width: var(--mesure);
}

sup.ref {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: 0.5em;
  font-weight: 500;
}

/* inline (pas inline-block) : aucune coupure de ligne possible entre le
   dernier mot et l'appel de note ; le padding agrandit tout de même la
   zone tactile. */
sup.ref a {
  display: inline;
  text-decoration: none;
  padding: 0.9rem 0.3rem;
  margin: 0 -0.15rem;
  line-height: 0;
  white-space: nowrap;
}

sup.ref a:hover {
  text-decoration: underline;
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--cible);
  min-width: var(--cible);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--vert);
  border-radius: var(--rayon);
  background: var(--vert);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bouton:hover {
  background: var(--vert-fonce);
  border-color: var(--vert-fonce);
  color: #fff;
}

.bouton--second {
  background: transparent;
  color: var(--vert);
}

.bouton--second:hover {
  background: var(--vert-pale);
  color: var(--vert-fonce);
}

/* La couleur du texte d'un bouton ne dépend jamais de son conteneur.
   Les règles de liens des ancêtres (.nav a, .pied a, .appel a…) ont une
   spécificité supérieure à .bouton (0,1,1 contre 0,1,0) : dans l'en-tête,
   « Je signe » s'affichait en noir sur vert. On pose donc la couleur
   explicitement pour chaque état et chaque contexte, et .nav a est limité
   aux liens qui ne sont pas des boutons. */
.bouton:link,
.bouton:visited,
.bouton:focus-visible,
.bouton:active,
.entete .bouton,
.nav .bouton,
.pied .bouton,
.barre-signer .bouton,
.nav .bouton:visited,
.nav .bouton:hover,
.nav .bouton:focus-visible,
.nav .bouton:active,
.pied .bouton:visited,
.pied .bouton:hover,
.pied .bouton:focus-visible,
.pied .bouton:active {
  color: #fff;
  text-decoration: none;
}

.nav .bouton:hover,
.nav .bouton:focus-visible,
.nav .bouton:active,
.pied .bouton:hover,
.pied .bouton:focus-visible,
.pied .bouton:active {
  background: var(--vert-fonce);
  border-color: var(--vert-fonce);
}

.bouton--second:link,
.bouton--second:visited,
.nav .bouton--second,
.pied .bouton--second {
  color: var(--vert);
}

.bouton--second:hover,
.bouton--second:focus-visible,
.bouton--second:active,
.nav .bouton--second:hover,
.nav .bouton--second:focus-visible,
.nav .bouton--second:active,
.pied .bouton--second:hover,
.pied .bouton--second:focus-visible,
.pied .bouton--second:active {
  background: var(--vert-pale);
  border-color: var(--vert);
  color: var(--vert-fonce);
}

.bouton--grand {
  font-size: 1.1875rem;
  padding: 0.95rem 1.9rem;
}

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Structure ---------- */

.conteneur {
  width: 100%;
  max-width: var(--large);
  margin: 0 auto;
  padding-left: var(--marge);
  padding-right: var(--marge);
}

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--filet);
}

.section--pleine {
  border-top: 0;
}

.entete-section {
  margin-bottom: 2rem;
}

.entete-section h2 {
  margin-bottom: 0.35em;
}

.entete-section p {
  max-width: var(--mesure);
  color: var(--encre-2);
}

/* ---------- En-tête ---------- */

.entete {
  border-bottom: 1px solid var(--filet);
  background: var(--papier);
}

/* Mobile : deux rangées. 1) la marque, petite ; 2) les liens de navigation.
   Sur grand écran, une seule rangée : marque, navigation. Le lien de langue
   est dans le pied de page. */
.entete .conteneur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.15rem;
}

.marque {
  grid-column: 1;
  grid-row: 1;
  font-weight: 650;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--encre);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  max-width: 22rem;
  text-wrap: balance;
}

.marque:hover {
  color: var(--vert);
}

.marque small {
  font-weight: 400;
  color: var(--encre-2);
  margin-left: 0.5rem;
  font-size: 0.9375rem;
}

.nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: -0.6rem;
}

.nav a:not(.bouton) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--cible);
  min-width: var(--cible);
  padding: 0 0.6rem;
  color: var(--encre);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--rayon);
}

/* Les quatre raisons dans l'en-tête : icône + étiquette. Sur petit écran,
   l'étiquette est masquée visuellement (toujours lue par les lecteurs
   d'écran) et seule l'icône reste, cible de 44 px ; dès 40em elle réapparaît. */
.nav .etiquette {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav a:not(.bouton):hover {
  background: var(--papier-2);
  color: var(--vert-fonce);
}

.nav a:not(.bouton)[aria-current="page"] {
  font-weight: 650;
  box-shadow: inset 0 -3px 0 var(--vert);
  border-radius: var(--rayon) var(--rayon) 0 0;
}

.nav .bouton {
  display: none;
}

/* ---------- Accueil : pas de barre d'en-tête ----------
   Sur l'accueil, la navigation (les quatre raisons) passe par les cartes et
   le pied de page ; l'en-tête se réduit à « Je signe », posé en pastille
   translucide dans le coin supérieur droit, par-dessus l'ouverture. Le lien
   de langue vit dans le pied de page. La pastille est
   positionnée en absolu (et non fixe) : elle ne suit pas le défilement ; sous
   56em elle n'est pas affichée, la barre « Je signe » collée en bas joue ce
   rôle. À partir de 56em, l'ouverture garde ses 5rem d'air en haut : la
   pastille ne recouvre ni le surtitre ni le titre. */
.entete--accueil {
  position: absolute;
  top: 0.75rem;
  right: var(--marge);
  z-index: 10;
  /* Sous 56em, la barre « Je signe » collée en bas suffit : pas de pastille. */
  display: none;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid var(--filet);
  border-radius: calc(var(--cible) / 2 + 0.2rem);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(28, 27, 24, 0.06);
}

/* Page de signature : même dépouillement que l'accueil. En haut à gauche, un
   seul lien discret, en pastille, pour revenir à la pétition ; ni navigation,
   ni appel à signer (on y est). L'article reçoit de l'air en haut. */
.entete--retour {
  position: absolute;
  top: 0.75rem;
  left: var(--marge);
  z-index: 10;
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--filet);
  border-radius: calc(var(--cible) / 2 + 0.2rem);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 2px rgba(28, 27, 24, 0.06);
}

.retour-petition {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  padding: 0 0.85rem;
  border-radius: calc(var(--cible) / 2);
  color: var(--encre-2);
  text-decoration: none;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.retour-petition:hover {
  background: var(--papier-2);
  color: var(--vert-fonce);
}

.entete--retour + main .article {
  padding-top: calc(var(--cible) + 2.25rem);
}

/* ---------- Ouverture ---------- */

.ouverture {
  padding: 1.75rem 0 2.5rem;
}

.ouverture h1 {
  margin-bottom: 1rem;
}

.ouverture .chapeau {
  margin-bottom: 0;
}

/* ---------- Photos et dessins ----------
   width/height sont posés sur <img> : le navigateur réserve la place avant
   le chargement, rien ne saute. La légende reste courte et factuelle ; les
   mentions entre crochets ou parenthèses sont à compléter ou à retirer. */

.photo {
  margin: 2rem 0 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rayon);
  background: var(--papier-2);
}

.photo--dessin img {
  border: 1px solid var(--filet);
  background: #fff;
}

.photo figcaption {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--encre-2);
}

.article .corps .photo {
  margin: 1.75rem 0;
}

/* ---------- Faits en bref ---------- */

.faits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--filet-fort);
  border-bottom: 1px solid var(--filet);
}

.fait {
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--filet);
}

.fait:nth-child(odd) {
  border-right: 1px solid var(--filet);
}

.fait:nth-child(even) {
  padding-left: 1rem;
}

.fait:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fait dt {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-2);
  font-weight: 550;
  margin-bottom: 0.25rem;
}

.fait dd {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.fait dd small {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--encre-2);
  margin-top: 0.2rem;
  letter-spacing: 0;
}

/* ---------- Les quatre raisons ---------- */

.raisons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--filet-fort);
}

.raison {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--filet);
  text-decoration: none;
  color: inherit;
}

.raison h3 a {
  color: inherit;
  text-decoration: none;
}

.raison h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.raison:hover h3 a {
  color: var(--vert-fonce);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.raison h3 a:focus-visible::after {
  outline: 3px solid var(--vert);
  outline-offset: 2px;
  border-radius: var(--rayon);
}

.raison sup.ref a {
  position: relative;
  z-index: 1;
}

.raison h3 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  line-height: 1.12;
}

.raison p {
  margin: 0 0 0.75rem;
  color: var(--encre);
}

.raison .lire {
  color: var(--vert);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
}

.raison .lire::after {
  content: " →";
  white-space: pre;
}

/* ---------- Icônes des quatre raisons ----------
   SVG en ligne, dérivés de Lucide (https://lucide.dev, licence ISC, voir
   LISEZMOI « Icônes »), retouchés à la main : grille 24, trait 1,75,
   bouts et jonctions arrondis, une seule surface d'accent (.accent) en vert
   pâle. Décoratifs : aria-hidden, le texte de la carte sert d'étiquette. */

.icone {
  display: block;
  color: var(--vert);
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
}

.icone .accent {
  fill: var(--vert-pale);
}

.icone--carte {
  margin-bottom: 0.6rem;
}

.titre-raison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.icone--titre {
  width: 2.5rem;
  height: 2.5rem;
}

/* Dans la navigation de l'en-tête : petite, monochrome (couleur du lien),
   sans surface d'accent ; l'étiquette texte reste. */
.icone--nav {
  width: 1.125rem;
  height: 1.125rem;
  color: inherit;
}

.icone--nav .accent {
  fill: none;
}

/* ---------- Carte ---------- */

.carte-bloc {
  display: grid;
  gap: 1.5rem;
}

.carte {
  border: 1px solid var(--filet);
  background: #fff;
  border-radius: var(--rayon);
  overflow: hidden;
}

.carte svg {
  width: 100%;
  height: auto;
  display: block;
}

.carte-legende {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}

.carte-legende li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.4;
}

.pastille {
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6rem;
  background: var(--encre);
  margin-top: 0.1rem;
}

.pastille--vert {
  background: var(--vert);
}

.pastille--terre {
  background: #7a5a3a;
}

.pastille--trait {
  background: #c4451c;
}

/* ---------- Témoignages ---------- */

.temoignages {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--filet-fort);
}

.temoignage {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--filet);
  margin: 0;
}

.temoignage p {
  font-size: 1.1875rem;
  line-height: 1.45;
  margin: 0 0 0.75rem;
  text-indent: -0.42em;
}

.temoignage footer {
  font-size: 0.9375rem;
  color: var(--encre-2);
}

.temoignage footer strong {
  color: var(--encre);
  font-weight: 600;
}

/* ---------- Bande « Je signe » ---------- */

.appel {
  background: var(--vert);
  color: #fff;
  padding: 3rem 0;
}

.appel h2 {
  color: #fff;
  max-width: 20ch;
}

.appel p {
  max-width: var(--mesure);
  color: #e8f0e8;
}

.appel a {
  color: #fff;
}

.appel .bouton,
.appel .bouton:link,
.appel .bouton:visited,
.appel .bouton:focus-visible,
.appel .bouton:active {
  background: #fff;
  color: var(--vert-fonce);
  border-color: #fff;
}

.appel .bouton:hover {
  background: var(--vert-pale);
  border-color: var(--vert-pale);
  color: var(--vert-fonce);
}

.appel .bouton--second,
.appel .bouton--second:link,
.appel .bouton--second:visited {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.appel .bouton--second:hover,
.appel .bouton--second:focus-visible,
.appel .bouton--second:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

/* ---------- Formulaires ---------- */

.formulaire {
  display: grid;
  gap: 1.1rem;
  max-width: var(--mesure);
}

.champ {
  display: grid;
  gap: 0.35rem;
}

.champ label,
.champ .etiquette {
  font-weight: 600;
  font-size: 1rem;
}

.champ .aide {
  color: var(--encre-2);
  font-size: 0.9rem;
}

.champ input,
.champ textarea,
.champ select {
  font: inherit;
  font-size: 1.0625rem;
  color: var(--encre);
  background: #fff;
  border: 1.5px solid #8f8a7c;
  border-radius: var(--rayon);
  min-height: var(--cible);
  padding: 0.6rem 0.8rem;
  width: 100%;
}

.champ textarea {
  min-height: 7rem;
  resize: vertical;
}

.champ input:focus,
.champ textarea:focus {
  border-color: var(--vert);
}

.champ input[aria-invalid="true"],
.champ textarea[aria-invalid="true"] {
  border-color: #a4321c;
}

.erreur {
  color: #8c2a16;
  font-size: 0.9375rem;
  font-weight: 550;
}

.ligne {
  display: grid;
  gap: 1.1rem;
}

.case {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.6rem 0;
  min-height: var(--cible);
  cursor: pointer;
}

.case input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.2rem 0 0;
  accent-color: var(--vert);
  cursor: pointer;
}

.case span {
  font-size: 1.0625rem;
  line-height: 1.4;
}

.formulaire .boutons {
  margin-top: 0.5rem;
}

.formulaire .bouton {
  width: 100%;
}

.avis {
  padding: 1rem 1.1rem;
  border: 1px solid var(--filet);
  border-left: 4px solid var(--vert);
  background: var(--papier-2);
  border-radius: var(--rayon);
  font-size: 1rem;
  max-width: var(--mesure);
}

.avis--attention {
  border-left-color: #b8571f;
}

.avis h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}

.succes {
  border: 2px solid var(--vert);
  background: var(--vert-pale);
  border-radius: var(--rayon);
  padding: 1.5rem 1.25rem;
  max-width: var(--mesure);
}

.succes h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.succes pre {
  font: inherit;
  font-size: 0.95rem;
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 0.9rem;
  margin: 1rem 0;
  max-height: 16rem;
  overflow: auto;
}

.succes .boutons {
  margin-top: 1rem;
}

.succes .bouton {
  width: auto;
}

/* ---------- Collecte en ligne ---------- */

/* Pot de miel : champ hors écran, jamais vu ni atteint au clavier. */
.champ--site {
  position: absolute;
  left: -999rem;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.facultatif {
  font-weight: 400;
  color: var(--encre-2);
}

.cf-turnstile {
  min-height: 65px; /* hauteur du widget : évite un saut quand il se rend */
}

.erreur--formulaire {
  padding: 0.75rem 1rem;
  border: 1px solid #c9b5ad;
  border-left: 4px solid #a4321c;
  border-radius: var(--rayon);
  background: #fbf3f0;
}

.avis--succes {
  border-left-color: var(--vert);
  background: var(--vert-pale);
}

.compteur {
  font-weight: 600;
  color: var(--vert-fonce);
  font-variant-numeric: tabular-nums;
}

.compteur--ouverture {
  margin-top: 1rem;
  font-size: 1.125rem;
}

/* Sous le bouton « Je signe » : une ligne sur les données, le détail est
   sur /protection-des-donnees (page de la plateforme). */
.mention-donnees {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  color: var(--encre-2);
}

.mention-donnees a {
  color: var(--vert-fonce);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  /* zone tactile de 44 px sans changer la hauteur de ligne */
  display: inline-block;
  padding-block: 0.7rem;
  margin-block: -0.7rem;
}

/* ---------- Liste des signataires (liste.html, derrière Cloudflare Access) ---------- */

.liste-outils {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}

.liste-outils .bouton {
  width: auto;
}

.liste-resume {
  font-weight: 600;
  margin: 1rem 0;
}

/* La liste s'étale sur toute la largeur de l'article (tableau), le reste
   garde la mesure de lecture. */
.article .corps--large {
  max-width: none;
}

.liste-tableau {
  width: 100%;
  max-width: 60rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.liste-tableau th,
.liste-tableau td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--filet);
}

.liste-tableau th {
  border-top: 2px solid var(--filet-fort);
  border-bottom: 1px solid var(--filet-fort);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.liste-tableau td.num {
  color: var(--encre-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.liste-texte {
  max-width: var(--mesure);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 1rem 1.25rem;
  background: #fff;
  margin: 1.5rem 0;
}

.liste-papier {
  max-width: var(--mesure);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 1.25rem;
  margin: 2rem 0;
}

.liste-papier .formulaire {
  margin-top: 1rem;
}

@media print {
  .liste-outils,
  .liste-papier,
  .liste-avis {
    display: none !important;
  }

  .liste-tableau {
    font-size: 10pt;
  }

  .liste-tableau tr {
    break-inside: avoid;
  }

  .liste-tableau thead {
    display: table-header-group;
  }
}

/* ---------- Articles (pages raison) ---------- */

.article {
  padding: 2.5rem 0 3rem;
}

.article .ouverture {
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--filet);
  margin-bottom: 2rem;
}

.article .ouverture h1 {
  max-width: 18ch;
}

.article .corps {
  max-width: var(--mesure);
}

.article .corps h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.article .corps h2:first-child {
  margin-top: 0;
}

.article .corps ul,
.article .corps ol {
  padding-left: 1.25rem;
}

.article .corps li {
  margin-bottom: 0.45em;
}

.article .corps blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--vert);
  color: var(--encre);
}

.article .corps blockquote footer {
  font-size: 0.9375rem;
  color: var(--encre-2);
  margin-top: 0.4rem;
}

.encadre {
  margin: 1.75rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--papier-2);
  border-radius: var(--rayon);
  border: 1px solid var(--filet);
}

.encadre h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.encadre p {
  font-size: 1rem;
}

.chiffres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.chiffre {
  border-top: 2px solid var(--filet-fort);
  padding-top: 0.6rem;
}

.chiffre strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.chiffre span {
  font-size: 0.9375rem;
  color: var(--encre-2);
  display: block;
  margin-top: 0.25rem;
}

/* Notes de bas de page */

.notes {
  max-width: var(--mesure);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--filet-fort);
}

.notes h2 {
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 550;
  color: var(--encre-2);
  margin-bottom: 1rem;
}

/* Les notes sont repliées par défaut (<details>) : le résumé porte le titre
   et le nombre de notes ; un chevron dessiné en CSS tourne à l'ouverture.
   app.js ouvre le pli quand on suit un appel de note ou qu'on arrive avec
   #note-N dans l'adresse ; sans JavaScript, le résumé suffit à l'ouvrir. */
.notes summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--cible);
  cursor: pointer;
  list-style: none;
  border-radius: var(--rayon);
}

.notes summary::-webkit-details-marker {
  display: none;
}

.notes summary::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.2rem;
  border-right: 2px solid var(--encre-2);
  border-bottom: 2px solid var(--encre-2);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.notes details[open] > summary::before {
  transform: rotate(45deg);
}

.notes summary h2 {
  margin: 0;
}

.notes summary:hover h2 {
  color: var(--vert-fonce);
}

.notes summary:focus-visible {
  outline: 3px solid var(--vert);
  outline-offset: 4px;
}

.notes-nombre {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.notes details[open] > ol {
  margin-top: 1rem;
}

.notes ol {
  padding-left: 1.6rem;
  font-size: 0.9375rem;
  color: var(--encre-2);
  line-height: 1.5;
}

.notes li {
  margin-bottom: 0.6em;
  padding-left: 0.2rem;
}

.notes li:target {
  background: var(--vert-pale);
  outline: 0.4rem solid var(--vert-pale);
  border-radius: 2px;
}

.notes a {
  overflow-wrap: anywhere;
}

.notes .retour {
  text-decoration: none;
  margin-left: 0.35rem;
}

/* Navigation entre raisons */

.suite {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
  max-width: var(--mesure);
}

.suite a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.1rem;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  min-height: var(--cible);
}

.suite a:hover {
  border-color: var(--vert);
  background: var(--vert-pale);
}

.suite .surtitre {
  margin-bottom: 0.25rem;
}

.suite strong {
  font-size: 1.125rem;
  color: var(--vert-fonce);
}

/* ---------- Ressources ---------- */

.ressources {
  max-width: 48rem;
}

.ressources h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--filet-fort);
}

.ressources h2:first-of-type {
  margin-top: 0;
}

.ressource {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--filet);
}

.ressource h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.ressource p {
  margin: 0 0 0.6rem;
  color: var(--encre-2);
  font-size: 0.9375rem;
}

.ressource .liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

.ressource .liens a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  overflow-wrap: anywhere;
}

/* ---------- Participer ---------- */

.aider {
  max-width: var(--mesure);
}

.aider h2 {
  margin-bottom: 0.5em;
}

.aider-contact {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.aider-contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
}

/* ---------- Bloc « Agir » : partager, imprimer, aider ----------
   Rendu par app.js (rendreAgir) dans chaque [data-bloc-agir] : page
   « Merci » de signer.html, section « Participer » de l'accueil, page
   aider.html. Un titre, une phrase, puis trois étapes numérotées (Partagez,
   Imprimez, Aidez) séparées par un filet, chacune avec son grand numéro à
   gauche, un titre court, une ligne d'explication et ses commandes. Les
   boutons de partage portent le logo du service (SVG inline, couleur de la
   marque) et son libellé ; sous 40em ils deviennent des ronds avec le logo
   seul, le libellé restant pour les lecteurs d'écran. */

.agir {
  margin-top: 1.5rem;
}

.agir-titre {
  margin: 0 0 0.4rem;
}

h3.agir-titre {
  font-size: 1.375rem;
}

.agir-intro {
  color: var(--encre-2);
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
}

.etapes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.etape {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 0.75rem;
  align-items: start;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--filet);
  margin: 0;
}

.etape:last-child {
  border-bottom: 1px solid var(--filet);
}

.etape-numero {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--vert);
  font-variant-numeric: lining-nums;
  margin-top: -0.15rem;
}

.etape-corps {
  min-width: 0;
}

.etape-titre {
  margin: 0 0 0.3rem;
}

h3.etape-titre {
  font-size: 1.5rem;
}

h4.etape-titre {
  font-size: 1.25rem;
}

.etape-texte {
  color: var(--encre-2);
  font-size: 1.0625rem;
  margin: 0 0 1rem;
  max-width: 40rem;
}

.etape--aidez {
  background: var(--vert-pale);
  border-radius: var(--rayon);
  padding-left: 1rem;
  padding-right: 1rem;
  border-top: 0;
  margin-top: 0.75rem;
}

.etape--aidez:last-child {
  border-bottom: 0;
}

.etape--aidez .etape-texte {
  color: var(--encre);
  font-weight: 500;
}

.agir .bouton {
  width: auto;
}

/* Choix du message (Court / Long) et aperçu du texte envoyé. */
.partage-choix {
  max-width: 40rem;
  margin: 0 0 0.9rem;
}

.partage-versions {
  display: inline-flex;
  border: 1px solid var(--filet);
  border-radius: 999px;
  padding: 0.2rem;
  background: #fff;
  margin-bottom: 0.6rem;
}

.partage-version {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--encre-2);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  min-height: 2.25rem;
  cursor: pointer;
}

.partage-version:hover,
.partage-version:focus-visible {
  color: var(--encre);
}

.partage-version:focus-visible {
  outline: 2px solid var(--vert);
  outline-offset: 1px;
}

.partage-version[aria-pressed="true"] {
  background: var(--vert);
  color: #fff;
}

.partage-apercu {
  margin: 0;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--filet);
  border-left: 4px solid var(--vert);
  border-radius: var(--rayon);
  color: var(--encre);
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.partage-indication {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--encre-2);
  font-size: 0.9375rem;
}

.partage-indication--fait {
  color: var(--vert);
  font-weight: 550;
}

/* Rangée de pastilles de partage. */
.partage {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.partage li {
  margin: 0;
}

.bouton--partage {
  background: #fff;
  border-color: var(--filet);
  color: var(--encre);
  gap: 0.6rem;
  padding: 0.6rem 1.1rem 0.6rem 0.85rem;
  font-size: 1rem;
  font-weight: 550;
}

.bouton--partage:link,
.bouton--partage:visited {
  color: var(--encre);
}

.bouton--partage:hover,
.bouton--partage:focus-visible,
.bouton--partage:active {
  background: var(--vert-pale);
  border-color: var(--vert);
  color: var(--encre);
}

.partage-icone {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--vert);
}

@media (max-width: 39.99em) {
  .bouton--partage {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .partage-icone {
    width: 1.625rem;
    height: 1.625rem;
  }

  /* Libellé masqué à l'écran, conservé pour les lecteurs d'écran. */
  .partage-libelle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 40em) {
  .etape {
    grid-template-columns: 3.75rem 1fr;
    column-gap: 1rem;
    padding: 2rem 0 2.25rem;
  }

  .etape-numero {
    font-size: 3.25rem;
    margin-top: -0.25rem;
  }

  .etape--aidez {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Grille de pastilles alignées, trois ou quatre par rangée. */
  .partage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    max-width: 40rem;
  }

  .partage .bouton--partage {
    width: 100%;
    justify-content: flex-start;
    white-space: nowrap;
  }
}

/* ---------- Page « Merci » (signer.html, en/sign.html) ----------
   Section qui remplace tout l'article après l'enregistrement en ligne ou la
   confirmation du courriel : grand « Merci ! », phrase d'état, bloc « Agir »
   en pleine largeur de lecture, deux liens discrets en bas. */

.merci {
  padding: 2.5rem 0 3rem;
}

.entete--retour + main .merci {
  padding-top: calc(var(--cible) + 2.25rem);
}

.merci .conteneur {
  max-width: 46rem;
}

.merci-ouverture {
  padding: 0 0 1.5rem;
}

.merci-ouverture h1 {
  color: var(--vert);
}

/* Le titre reçoit le focus à l'ouverture (lecteurs d'écran) : pas de
   cadre, il n'est pas interactif. */
.merci-ouverture h1:focus {
  outline: none;
}

.merci-ouverture .chapeau {
  max-width: none;
}

.merci .agir {
  margin-top: 0.5rem;
}

.merci .agir-titre {
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
}

.merci-liens {
  margin: 2rem 0 0;
  color: var(--encre-2);
  font-size: 1rem;
}

.lien-discret {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--vert);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.lien-discret:hover,
.lien-discret:focus-visible {
  color: var(--vert-fonce);
}

/* Avis au-dessus du formulaire rouvert depuis l'étape « Ajouter » de la
   page « Merci » (même adresse déjà remplie). */
.avis--meme-adresse {
  margin: 1rem 0 0;
}

.avis--meme-adresse p {
  margin: 0;
}

.avis--meme-adresse p + p {
  margin-top: 0.4rem;
}

/* Bloc « Ressources » de l'accueil : un titre, une phrase, un lien. */
.ressources-accueil {
  border-top: 2px solid var(--filet-fort);
  padding-top: 1.5rem;
  max-width: var(--mesure);
}

.ressources-accueil h2 {
  margin: 0.25rem 0 0.6rem;
}

.ressources-accueil p {
  margin: 0 0 0.75rem;
}

.ressources-accueil .lien-suite {
  font-weight: 600;
  color: var(--vert-fonce);
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
}

/* ---------- Pied de page ---------- */

.pied {
  border-top: 2px solid var(--filet-fort);
  padding: 2.5rem 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--encre-2);
}

.pied .colonnes {
  display: grid;
  gap: 1.5rem;
}

.pied h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 550;
  color: var(--encre-2);
  margin-bottom: 0.6rem;
}

.pied ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pied li {
  margin-bottom: 0.3rem;
}

.pied a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
  /* « Coût », « Santé » : libellés courts, zone tactile de 44 px tout de même */
  min-width: var(--cible);
}

.pied li {
  margin-bottom: 0;
}

.pied .mention {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
  font-size: 0.875rem;
}

/* Deux lignes : indépendance + crédit « Publié avec Votre Voix », puis
   cookies + date. Seule la première porte le filet. */
.pied .mention + .mention {
  margin-top: 0.4rem;
  padding-top: 0;
  border-top: 0;
}

.pied .mention a {
  display: inline;
  min-height: 0;
  /* zone tactile de 44 px sans changer la hauteur de ligne */
  padding-block: 0.7rem;
  margin-block: -0.7rem;
}

/* Lien vers l'autre langue (English / Français) : dans le pied de page, à
   côté du crédit Votre Voix, même style que les autres liens du pied. */
/* Le même paragraphe porte le lien « Contact » (courriel de la pétition). */
.pied .mention--langue {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: 0;
}

.pied .mention--langue a {
  padding-block: 0.8rem;
  margin-block: -0.8rem;
}

/* ---------- Barre « Je signe » collée (mobile) ---------- */

.barre-signer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 0.6rem var(--marge) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 240, 0.96);
  border-top: 1px solid var(--filet);
  backdrop-filter: blur(6px);
}

.barre-signer .bouton {
  width: 100%;
  font-size: 1.125rem;
  min-height: 3.25rem;
}

/* ---------- Feuille de signatures A4 ---------- */

.feuille-outils {
  padding: 1.5rem 0;
}

.feuille {
  background: #fff;
  color: #000;
  width: 100%;
  max-width: 210mm;
  margin: 0 auto 2rem;
  padding: 14mm 14mm 12mm;
  overflow-x: auto;
  border: 1px solid var(--filet);
  box-shadow: 0 1px 0 var(--filet);
  font-size: 11pt;
  line-height: 1.35;
}

.feuille h1 {
  font-size: 21pt; /* tient sur une ligne à côté du code QR (colonne de 155 mm) */
  max-width: none;
  margin-bottom: 4mm;
}

.feuille .objet {
  margin-bottom: 4mm;
}

/* En-tête : titre et objet à gauche, code QR vers la signature en ligne à
   droite (images/qr-votrevoix-foot.svg, généré par tools/generer-qr.mjs).
   Le bloc QR (21 mm + légende sur deux lignes + 0,8 mm d'air, 27,1 mm en
   tout) remplace exactement la hauteur que titre et objet occupaient avant
   lui : le filet du texte de la pétition et le tableau restent à la même
   hauteur (tests/feuille.test.mjs le vérifie). La marge haute du texte de la
   pétition est reprise par ce bloc. */
.feuille-entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4mm;
  margin-bottom: 0;
}

.feuille .feuille-entete + .texte-petition {
  margin-top: 0;
}

.feuille-titre {
  flex: 1 1 auto;
  min-width: 0;
}

.feuille-qr {
  flex: 0 0 auto;
  width: 23mm;
  margin: 0;
  padding-bottom: 0.8mm;
  text-align: center;
  font-size: 6.5pt;
  line-height: 1.05;
  color: #000;
}

.feuille-qr img {
  display: block;
  width: 21mm;
  height: 21mm;
  margin: 0 auto;
}

.feuille-qr p {
  margin: 0.5mm 0 0;
  max-width: none;
}

.feuille-qr strong {
  white-space: nowrap;
}

.feuille .objet p {
  margin: 0 0 1.5mm;
  font-size: 9.5pt;
}

.feuille .texte-petition {
  margin: 3mm 0 2.5mm;
  padding: 2.5mm 0 1mm;
  border-top: 0.6pt solid #000;
  border-bottom: 0.6pt solid #000;
}

.feuille .texte-petition p {
  font-size: 10pt;
  line-height: 1.32;
  margin: 0 0 1.8mm;
  text-wrap: pretty;
}

.feuille .consigne {
  font-size: 9pt;
  margin: 0 0 1mm;
}

.feuille .adresse-feuille {
  white-space: nowrap;
}

.feuille table {
  width: 100%;
  min-width: 150mm;
  border-collapse: collapse;
  margin-top: 4mm;
  table-layout: fixed;
}

.feuille th,
.feuille td {
  border: 1px solid #000;
  padding: 0 2mm;
  height: 10mm; /* treize lignes ; 10 mm reste confortable pour écrire à la main */
  text-align: left;
  vertical-align: middle;
  font-size: 9.5pt;
}

.feuille th {
  height: 8mm;
  font-weight: 650;
  background: #f0ede4;
}

.feuille th:first-child,
.feuille td.n {
  text-align: right;
  color: #666;
  white-space: nowrap;
  padding: 0 1.5mm;
}

.feuille .pied-feuille {
  margin-top: 3mm;
  font-size: 8.5pt;
  color: #333;
}

.feuille .pied-feuille + .pied-feuille {
  margin-top: 1.5mm;
}

.feuille .credit-feuille {
  margin-top: 2mm;
  font-size: 8.5pt;
  color: #333;
}

/* ---------- Matériel de collecte : carte téléphone (feuille.html) ---------- */

.materiel {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--filet);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.materiel h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.materiel p {
  margin: 0 0 0.75rem;
}

.materiel .boutons {
  margin-top: 1rem;
}

.materiel-note {
  font-size: 0.9rem;
  color: var(--encre-2);
  margin-top: 1rem;
}

.materiel-apercu {
  margin: 0;
  justify-self: start;
}

.materiel-apercu img {
  display: block;
  width: 8.5rem;
  height: auto;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}

.materiel-apercu figcaption {
  font-size: 0.85rem;
  color: var(--encre-2);
  margin-top: 0.5rem;
}

@media (min-width: 40em) {
  .materiel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .materiel-apercu {
    order: 2;
  }
}

/* ---------- Carte à montrer sur son téléphone (carte.html, en/card.html) ----------
   Même composition que l'image carte-telephone-{fr,en}.png : photo en haut,
   surtitre, titre, code QR (SVG en ligne, le même que la feuille A4) dans
   un cadre blanc, « Signer en ligne : votrevoix.ch/foot », ligne des
   personnes domiciliées. Pleine hauteur sur téléphone (360–430 px), carte
   centrée de 30 rem (480 px) au plus sur grand écran. Aucun script, aucune ressource
   hors de ce dossier : la page reste lisible une fois ajoutée à l'écran
   d'accueil. tests/carte.test.mjs vérifie qu'à 390 × 844 le code QR fait au
   moins 60 % de la largeur et tient à l'écran sans défiler. */

body.tel-corps {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

.tel-carte {
  width: 100%;
  max-width: 30rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--papier);
  padding-bottom: env(safe-area-inset-bottom);
}

.tel-photo {
  display: block;
  width: 100%;
  height: clamp(7.5rem, 27vh, 15rem);
  margin: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.tel-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tel-texte {
  padding: 0.9rem 1.25rem 0;
}

.tel-surtitre {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vert);
}

.tel-titre {
  margin: 0;
  max-width: none;
  font-size: clamp(1.375rem, 6.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tel-titre::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0.55rem auto 0;
  background: var(--vert);
}

.tel-cadre {
  margin: clamp(0.7rem, 2.5vh, 1.5rem) auto 0;
  padding: clamp(0.6rem, 3vw, 1rem);
  background: #fff;
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
}

.tel-qr {
  display: block;
  width: min(64vw, 38vh, 18rem);
  height: auto;
  aspect-ratio: 1;
}

.tel-appel {
  margin: clamp(0.6rem, 2vh, 1rem) 0 0;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--vert);
}

.tel-adresse {
  margin: 0;
  font-size: clamp(1.75rem, 8.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.tel-adresse a {
  color: var(--vert);
  text-decoration: none;
}

.tel-mention {
  width: calc(100% - 2.5rem);
  margin: auto 1.25rem 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--filet);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--encre-2);
}

.tel-liens {
  margin: 0;
  padding: 0.1rem 1rem 0.5rem;
  font-size: 0.8rem;
  color: var(--encre-2);
}

.tel-liens a {
  display: inline-block;
  min-height: var(--cible);
  line-height: var(--cible);
  padding: 0 0.3rem;
  color: var(--encre-2);
}

@media (min-width: 30em) and (min-height: 40em) {
  body.tel-corps {
    padding: 2rem 1rem;
    background: var(--papier-2);
  }

  .tel-carte {
    min-height: 0;
    border: 1px solid var(--filet);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 6%);
    overflow: hidden;
  }

  .tel-photo {
    height: 12.5rem;
  }

  .tel-qr {
    width: 17rem;
  }

  .tel-mention {
    margin-top: 1.5rem;
  }
}

/* ---------- Classes utilitaires (remplacent les anciens attributs
   style="" : la CSP du déploiement n'autorise pas les styles en ligne) ---------- */

.sans-haut {
  padding-top: 0;
}

.carte--accueil {
  margin: 0;
}

.carte--article {
  margin: 0 0 1rem;
}

.appel .surtitre {
  color: #cfe0cf;
}

fieldset.champ {
  border: 0;
  padding: 0;
  margin: 0;
}

.notes--nu {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.haut-1 {
  margin-top: 1rem;
}

.haut-1-5 {
  margin-top: 1.5rem;
}

.haut-2 {
  margin-top: 2rem;
}

.haut-3 {
  margin-top: 3rem;
}

/* ---------- Le texte de la pétition (signer.html) ----------
   La page est la pétition : étiquette « Texte de la pétition », destinataire,
   les quatre paragraphes officiels tels quels, puis « Je signe ». Le bloc
   est traité comme un document sur fond blanc, filet vert en tête. */

.petition {
  background: #fff;
  border: 1px solid var(--filet);
  border-top: 3px solid var(--vert);
  border-radius: var(--rayon);
  padding: 1.5rem 1.35rem 1.4rem;
  max-width: var(--mesure);
}

.article .corps .petition-etiquette {
  font-family: var(--police-titre, inherit);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert-fonce);
  margin: 0 0 0.9rem;
}

.petition-destinataire {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--filet);
}

.petition-destinataire span {
  font-weight: 400;
  color: var(--encre-2);
}

.petition-texte p {
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.1875rem);
  line-height: 1.5;
  margin: 0 0 0.9rem;
  text-wrap: pretty;
}

.petition-texte p:last-child {
  margin-bottom: 1.1rem;
}

.petition-traduction {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--encre-2);
  margin: 0 0 0.6rem;
}

.petition-mention {
  font-size: 0.9375rem;
  color: var(--encre-2);
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--filet);
}

/* Page de signature : en dessous de 64em, texte puis formulaire, l'un sous
   l'autre, à la mesure de lecture ; à partir de 64em, le texte à gauche
   (34 ch au moins, la mesure au plus) et le formulaire à droite (22 rem au
   moins), hauts alignés. Le titre de la page reste au-dessus des deux ;
   « Sur papier aussi » revient en dessous, à la mesure. */
.article .corps--signer {
  max-width: none;
}

.signer-texte,
.signer-formulaire,
.signer-suite {
  max-width: var(--mesure);
}

/* Les boutons « Je signe » mènent à #signer-titre : sur mobile, le texte de
   la pétition occupe deux écrans avant le formulaire et la page, qui reprend
   le titre de l'accueil, semblait ne pas avoir changé. On arrive donc sur le
   titre du formulaire, avec un peu d'air au-dessus. */
#signer-titre {
  scroll-margin-top: 1.25rem;
}

/* « Sur papier aussi » ouvre son bloc : la règle h2:first-child du corps ne
   doit pas lui retirer son air au-dessus. */
.article .corps .signer-suite > h2:first-child {
  margin-top: 3rem;
}

@media (min-width: 64em) {
  .signer-grille {
    display: grid;
    grid-template-columns: minmax(34ch, var(--mesure)) minmax(22rem, 1fr);
    column-gap: 4rem;
    align-items: start;
  }

  .signer-formulaire {
    max-width: none;
  }

  .article .corps .signer-formulaire .haut-2 {
    margin-top: 0;
  }

  .signer-formulaire .formulaire {
    max-width: none;
  }
}

/* Accueil : résumé adapté de la demande, juste sous l'ouverture */
.demande {
  max-width: var(--mesure);
  padding: 1.75rem 0 0.5rem;
  border-top: 2px solid var(--filet-fort);
}

.demande h2 {
  margin: 0.25rem 0 0.75rem;
}

.demande p {
  margin: 0 0 0.75rem;
}

.demande .lien-suite {
  font-weight: 600;
  color: var(--vert-fonce);
  display: inline-flex;
  align-items: center;
  min-height: var(--cible);
}

@media (min-width: 40em) {
  .petition {
    padding: 2rem 2.25rem 1.75rem;
  }
}

.feuille-outils .titre-outil {
  font-size: 2rem;
  max-width: none;
}

.feuille .col-n {
  width: 10mm;
}

.feuille .col-nom,
.feuille .col-signature {
  width: 30mm;
}

.feuille .col-prenom {
  width: 28mm;
}

.mention--nu {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Écrans plus larges ---------- */

@media (min-width: 40em) {
  :root {
    --marge: 2rem;
  }

  .formulaire .bouton {
    width: auto;
  }

  .ligne--2 {
    grid-template-columns: 1fr 1fr;
  }

  .ligne--npa {
    grid-template-columns: 8rem 1fr;
  }

  .faits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fait,
  .fait:nth-child(even) {
    padding: 1.25rem 1.25rem 1.25rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--filet);
  }

  .fait:not(:first-child) {
    padding-left: 1.25rem;
  }

  .fait:last-child {
    border-right: 0;
  }

  .suite {
    grid-template-columns: 1fr 1fr;
  }

  .chiffres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pied .colonnes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav .etiquette {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}

@media (min-width: 56em) {
  body {
    font-size: 1.1875rem;
    padding-bottom: 0;
  }

  .barre-signer {
    display: none;
  }

  .nav .bouton {
    display: inline-flex;
    margin-left: 0.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 1.1rem;
    font-size: 1rem;
  }

  .entete--accueil {
    display: inline-flex;
    top: 1rem;
  }

  .entete--accueil .bouton {
    min-height: var(--cible);
    padding: 0.5rem 1.1rem;
    font-size: 1rem;
    border-radius: calc(var(--cible) / 2);
  }

  .entete--retour {
    top: 1rem;
  }

  .entete--retour + main .article {
    padding-top: 5.5rem;
  }

  .entete .conteneur {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    min-height: 3.75rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .marque {
    font-size: 1rem;
    min-height: var(--cible);
  }

  .nav {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }

  .ouverture {
    padding: 5rem 0 4rem;
  }

  .ouverture h1 {
    margin-bottom: 1.25rem;
  }

  .surtitre {
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .raisons {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .raison {
    padding: 2rem 0 2.25rem;
  }

  .icone {
    width: 2.75rem;
    height: 2.75rem;
  }

  .icone--titre {
    width: 3rem;
    height: 3rem;
  }

  .carte-bloc {
    grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr);
    gap: 3rem;
    align-items: start;
  }

  .temoignages {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .article {
    padding: 4rem 0 4rem;
  }

  .article .ouverture {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

/* ---------- Impression ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
    font-size: 11pt;
  }

  .entete,
  .barre-signer,
  .appel,
  .feuille-outils,
  .pied,
  .icone,
  .non-imprime {
    display: none !important;
  }

  a {
    color: #000;
  }

  /* Les notes repliées s'impriment ouvertes (app.js ouvre aussi le pli
     sur beforeprint ; ceci couvre les navigateurs sans JavaScript). */
  .notes details::details-content {
    content-visibility: visible;
    display: block;
  }

  .notes summary::before {
    display: none;
  }

  .feuille {
    border: 0;
    box-shadow: none;
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  @page {
    size: A4 portrait;
    margin: 14mm;
  }
}
