/* S&E — Banderole : feuille de style du thème, portée de maquette/v5/canevas/se.css (valeurs et seuils inchangés).
   Différences : @container site → @media, cqi → vw ; retrait de ce qui ne sert qu'à la maquette (hauteur 100vh, thème sombre, .pretexte, note de planche). */

:root {
  /* Couleurs — thème clair (le seul recommandé pour le site) */
  --encre: #231f20;        /* texte, titres, vagues : 16.3:1 sur papier */
  --papier: #ffffff;       /* fond */
  --lac: #edf3f1;          /* zones calmes (confirmation du formulaire) ; plus jamais de fond derrière une image */
  --gris: #575d5a;         /* dates, légendes : 6.7:1 sur papier, 6.0:1 sur lac */
  --rouge: #e81a3c;        /* « solidarité » : bouton Rejoins-nous ! seulement (blanc dessus : 4.52:1) */
  --rouge-fonce: #c41230;  /* survol du bouton */
  --sur-rouge: #ffffff;
  --vert: #00875e;         /* « écologie » : anneau de focus, marque de page active (4.54:1, éléments non textuels) */
  --lien: #006747;         /* liens dans le texte : 6.9:1 sur papier, 6.2:1 sur lac */
  --filet: #cfd8d4;        /* filets décoratifs */
  --ligne: #7d8783;        /* bords des champs : 3.7:1 */
  --pied: #231f20;         /* fond du pied de page */
  --sur-pied: #ffffff;
  --ombre: rgba(35, 31, 32, 0.14);
  --voile: rgba(35, 31, 32, 0.28);

  /* Typographie */
  --f-affiche: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-texte: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-affiche: clamp(2.5rem, 0.9rem + 7.2vw, 7rem);      /* titre de l'accueil */
  --t-titre: clamp(2.25rem, 1rem + 4.4vw, 4.5rem);         /* titre de page ou d'article */
  --t-titre-long: clamp(1.75rem, 1.05rem + 2.3vw, 3rem);   /* titre de plus de 80 caractères */
  --t-h2: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
  --t-h3: 1.375rem;
  --t-carte: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  --t-chapo: clamp(1.1875rem, 1.06rem + 0.45vw, 1.375rem); /* extrait sous le titre, paragraphe d'accueil */
  --t-texte: 1.125rem;
  --t-meta: 0.9375rem;
  --t-nav: 1.0625rem;
  --t-petit: 0.875rem;

  /* Espacements */
  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 24px;
  --e-6: 32px; --e-7: 48px; --e-8: 64px; --e-9: 96px;

  /* Coins : un rôle, un rayon */
  --r-bouton: 999px;  /* boutons : arrondi plein, comme le lettrage du logo */
  --r-champ: 6px;     /* champs de formulaire */
  --r-image: 0;       /* images : à angles vifs, comme une affiche */

  /* Mise en page */
  --large: 1240px;    /* largeur maximale */
  --texte: 40rem;     /* colonne de lecture, environ 68 signes */
  --gouttiere: clamp(16px, 4vw, 48px);
  --h-entete: 80px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: var(--t-texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
.lecteur { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.evitement { position: absolute; left: var(--e-4); top: -100px; z-index: 30; background: var(--encre); color: var(--papier) !important; padding: var(--e-2) var(--e-4); }
.evitement:focus { top: var(--e-2); }

.enveloppe { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }

/* ———————————————————— En-tête ———————————————————— */
/* L'élément collant est le conteneur de la partie de gabarit (<header>) : il a la hauteur de la page pour coller ; .entete sert de repère aux panneaux */
.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }  /* pied de page au bas de la fenêtre sur un contenu court (404) */
.wp-site-blocks > main { flex: 1 0 auto; }
/* En-tête collant : sous la barre d'administration d'un rédacteur connecté (elle défile avec la page sous 600 px) ;
   une ancre (#contenu, notes #_ftn1…) s'arrête sous l'en-tête au lieu de passer dessous. */
:root { --decalage-admin: var(--wp-admin--admin-bar--height, 0px); scroll-padding-top: calc(var(--decalage-admin) + var(--h-entete) + var(--e-3)); }
@media (max-width: 600px) { :root { --decalage-admin: 0px; } }
.wp-site-blocks > header { position: sticky; top: var(--decalage-admin); z-index: 20; }
.entete { position: relative; background: var(--papier); border-bottom: 1px solid var(--filet); }
.entete-barre { display: flex; align-items: center; gap: var(--e-3); min-height: var(--h-entete); }
.logo { display: flex; align-items: center; flex: 0 0 auto; margin-inline-end: auto; }
.logo img { height: 44px; width: auto; }
.logo .logo-complet { display: none; }
.actions { display: flex; align-items: center; gap: var(--e-2); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2);
  min-height: 44px; padding: 0 var(--e-5);
  border: 0; border-radius: var(--r-bouton);
  background: var(--rouge); color: var(--sur-rouge) !important;
  font-family: var(--f-affiche); font-weight: 700; font-stretch: 87.5%; font-size: var(--t-nav);
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.bouton:hover { background: var(--rouge-fonce); }
.entete .bouton { min-height: 40px; padding: 0 var(--e-4); font-size: var(--t-meta); }

.bouton-menu {
  display: inline-flex; align-items: center; gap: var(--e-2);
  min-height: 44px; padding: 0 var(--e-3);
  border: 1.5px solid var(--encre); border-radius: var(--r-bouton); background: transparent;
  font-family: var(--f-affiche); font-weight: 700; font-stretch: 87.5%; font-size: var(--t-meta); cursor: pointer;
}
.bouton-menu svg { width: 18px; height: 18px; }

.nav-principale { display: none; }
.nav-liste { display: flex; align-items: center; gap: var(--e-1); list-style: none; margin: 0; padding: 0; }
.nav-entree {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 var(--e-3);
  border: 0; background: none; cursor: pointer;
  font-family: var(--f-affiche); font-weight: 600; font-stretch: 87.5%; font-size: var(--t-nav);
  color: var(--encre) !important; text-decoration: none !important;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.nav-entree:hover { border-bottom-color: var(--filet); }
.nav-entree[aria-current="true"], .nav-entree[aria-current="page"] { border-bottom-color: var(--vert); }
.nav-entree svg, .accordeon-bouton svg { width: 14px; height: 14px; transition: transform 160ms ease; }
.nav-entree[aria-expanded="true"] svg, .accordeon-bouton[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Panneau du menu (ordinateur) */
.panneau, .voile { display: none; }
.panneau { position: absolute; top: 100%; left: 0; right: 0; z-index: 21; background: var(--papier); border-top: 1px solid var(--filet); box-shadow: 0 18px 32px var(--ombre); }
/* Quatre colonnes sur une ligne (« Élections » a quatre groupes ; auto-fill n'en logeait que trois sous 1240 px) ; un cinquième groupe passerait à la ligne */
.panneau-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 17rem)); gap: var(--e-6) var(--e-7); padding-block: var(--e-6) var(--e-7); }
/* Lien sans intertitre : aligné sur le premier lien des groupes titrés (intertitre = ligne + retrait + filet + marge, voir .groupe-titre).
   Sans aucun groupe titré dans le panneau, rien à aligner : les liens partent du haut. */
.panneau-grille:has(.groupe-titre) .groupe--sans-titre { padding-top: calc(1.25rem * 1.2 + var(--e-2) + 1px + var(--e-3)); }
/* Hiérarchie : entrée du menu > intertitre de groupe > lien. L'intertitre est plus grand et plus gras que les liens. */
.groupe-titre { margin: 0 0 var(--e-3); padding-bottom: var(--e-2); border-bottom: 1px solid var(--filet); font-family: var(--f-affiche); font-weight: 800; font-stretch: 80%; font-size: 1.25rem; color: var(--encre); line-height: 1.2; }
.groupe-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-1); }
.groupe-liens a { display: inline-block; padding-block: 6px; color: var(--encre); text-decoration: none; font-size: 1.0625rem; line-height: 1.35; }
.groupe-liens a:hover { color: var(--lien); text-decoration: underline; }
.voile { position: absolute; top: 100%; left: 0; right: 0; height: 100vh; z-index: 19; border: 0; padding: 0; background: var(--voile); cursor: default; }

/* Menu (téléphone et tablette) */
.menu-mobile { position: absolute; top: 100%; left: 0; right: 0; z-index: 21; height: calc(100vh - var(--h-entete) - var(--decalage-admin)); height: calc(100dvh - var(--h-entete) - var(--decalage-admin)); overflow-y: auto; background: var(--papier); border-top: 1px solid var(--filet); }
.menu-mobile-liste { list-style: none; margin: 0; padding: var(--e-3) 0 var(--e-7); }
.menu-mobile-liste > li { border-bottom: 1px solid var(--filet); }
.accordeon-bouton {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 60px; padding: var(--e-2) 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--f-affiche); font-weight: 800; font-stretch: 75%; font-size: 1.75rem; line-height: 1.1;
  color: var(--encre) !important; text-decoration: none !important;
}
.accordeon-bouton svg { width: 20px; height: 20px; flex: 0 0 auto; }
.accordeon-contenu { padding: 0 0 var(--e-5); display: grid; gap: var(--e-4); }
.accordeon-contenu .groupe-titre { font-size: 1.375rem; margin-bottom: var(--e-2); }
.accordeon-contenu .groupe-liens a { font-size: 1.0625rem; padding-block: 8px; }

/* Éléments du menu masqués par l'attribut hidden (le JS les ouvre ; sans JS ils restent fermés) */
.panneau[hidden], .voile[hidden], .menu-mobile[hidden], .accordeon-contenu[hidden] { display: none !important; }
.bouton-menu[aria-expanded="true"] .ico-ouvrir, .bouton-menu[aria-expanded="false"] .ico-fermer { display: none; }

/* Icônes (dont les trois vagues du bouton Menu, seule reprise du motif du logo) */
.ico { display: block; flex: 0 0 auto; }
.ico rect, .ico path, .ico circle { fill: none; stroke: currentColor; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }

/* ———————————————————— Titres de page ———————————————————— */
.tete-page { padding-block: var(--e-7) var(--e-6); display: grid; gap: var(--e-4); }
.titre-page, .titre-affiche {
  margin: 0; font-family: var(--f-affiche); font-weight: 800; font-stretch: 75%;
  font-size: var(--t-titre); line-height: 1.25; letter-spacing: -0.005em; text-wrap: balance; max-width: 22ch;
  overflow-wrap: break-word; hyphens: manual;
}
.titre-long { font-size: var(--t-titre-long); line-height: 1.28; max-width: 32ch; }
.titre-affiche { font-size: var(--t-affiche); line-height: 1.2; max-width: 15ch; }
/* Banderole : chaque ligne du titre a sa bande pleine (span en ligne, bande clonée à chaque retour à la ligne).
   Encre pour les titres de page et d'article ; le texte est celui du titre, rien d'ajouté. */
.banderole {
  padding: 0.03em 0.28em;
  background: var(--encre); color: var(--sur-rouge);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.chapo { margin: 0; max-width: 36rem; font-size: var(--t-chapo); line-height: 1.5; }
.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e-1) var(--e-3); margin: 0; font-family: var(--f-affiche); font-weight: 600; font-stretch: 87.5%; font-size: var(--t-meta); color: var(--gris); line-height: 1.4; }
.categories { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-3); list-style: none; margin: 0; padding: 0; }
.categories a { font-family: var(--f-affiche); font-weight: 600; font-stretch: 87.5%; font-size: var(--t-meta); color: var(--lien); }

/* ———————————————————— Accueil ———————————————————— */
.actus-grille { display: grid; gap: var(--e-6); list-style: none; margin: 0; padding: 0; }
.actu { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--e-4); align-items: start; }
/* Images : leur propre format, jamais rognées, jamais de fond de couleur */
.actu-image { display: block; }
.actu-image img { width: 100%; height: auto; max-height: 24rem; object-fit: contain; object-position: left top; }
.actu-corps { display: grid; gap: var(--e-2); min-width: 0; }
.actu-titre { margin: 0; font-family: var(--f-affiche); font-weight: 800; font-stretch: 80%; font-size: var(--t-carte); line-height: 1.12; }
.actu-titre a { color: var(--encre); text-decoration: none; }
.actu-titre a:hover { text-decoration: underline; text-decoration-color: var(--vert); }
.actu-extrait { margin: 0; font-size: 1rem; line-height: 1.55; }
.actus-grille > li:not(:first-child) .actu-extrait { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.actus-grille > li:first-child > .actu { grid-template-columns: minmax(0, 1fr); }

/* Bandeau Rejoins-nous ! : seul usage du rouge en grand, pleine largeur, le libellé du menu et rien d'autre */
a.appel { display: block; background: var(--rouge); color: var(--sur-rouge); text-decoration: none; }
a.appel:hover { background: var(--rouge-fonce); text-decoration: none; }
a.appel:focus-visible { outline-color: var(--sur-rouge); outline-offset: -8px; border-radius: 0; }
.appel-interieur { display: flex; align-items: center; justify-content: space-between; gap: var(--e-5); padding-block: var(--e-7); }
.appel-texte { font-family: var(--f-affiche); font-weight: 800; font-stretch: 75%; font-size: clamp(2.5rem, 1rem + 7.2vw, 6rem); line-height: 1.05; }
.appel .ico { width: clamp(2rem, 1rem + 4vw, 4.5rem); height: clamp(2rem, 1rem + 4vw, 4.5rem); transition: transform 160ms ease; }
.appel .ico path { stroke-width: 2.4px; }
a.appel:hover .ico { transform: translateX(var(--e-2)); }


/* ———————————————————— Liste d'articles (Actualités, catégories) ———————————————————— */
.liste { padding-block: 0 var(--e-9); }
.cartes { display: grid; gap: var(--e-7) var(--e-6); list-style: none; margin: 0; padding: 0; }
.carte { display: grid; gap: var(--e-3); align-content: start; min-width: 0; }
.carte-image { display: block; }
.carte-image img { width: 100%; height: auto; max-height: 26rem; object-fit: contain; object-position: left top; }
.carte-titre { margin: 0; font-family: var(--f-affiche); font-weight: 800; font-stretch: 80%; font-size: var(--t-carte); line-height: 1.12; }
.carte-titre a { color: var(--encre); text-decoration: none; }
.carte-titre a:hover { text-decoration: underline; text-decoration-color: var(--vert); }
.carte-extrait { margin: 0; font-size: 1rem; line-height: 1.55; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--e-3); margin-top: var(--e-8); padding-top: var(--e-5); border-top: 1px solid var(--filet); font-family: var(--f-affiche); font-weight: 600; font-stretch: 87.5%; font-size: var(--t-nav); }
.pagination a, .pagination span.inerte { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 var(--e-2); }
.pagination a { color: var(--encre); }
.pagination span.courant { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; background: var(--encre); color: var(--papier); border-radius: var(--r-bouton); }
.pagination span.inerte { color: var(--gris); }

/* ———————————————————— Article et page ———————————————————— */
/* Colonne unique centrée : article et pages de texte ; aucune colonne de côté */
.colonne { width: 100%; max-width: var(--texte); margin-inline: auto; }
.colonne .titre-page { font-size: clamp(2rem, 1rem + 3.2vw, 3.5rem); max-width: none; }
.colonne .titre-long { font-size: var(--t-titre-long); }
.colonne .chapo { max-width: none; }
.article-corps { padding-bottom: var(--e-7); }
/* Partage : une ligne discrète en fin d'article, au ras du texte, sans bouton */
.partage { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e-4); margin-top: var(--e-7); padding-top: var(--e-2); border-top: 1px solid var(--filet); font-family: var(--f-texte); font-size: var(--t-petit); color: var(--gris); }
.partage a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gris); }
.partage a:hover { color: var(--encre); }
.page-corps { padding-bottom: var(--e-9); }

/* Contenu des pages et articles : blocs WordPress existants, mis en forme par le thème */
.contenu { min-width: 0; }
.contenu > * { max-width: var(--texte); }
.contenu > .alignwide, .contenu > .wp-block-columns { max-width: var(--large); }
.contenu p { margin: 0 0 1.05em; }
.contenu h2 { margin: 1.6em 0 0.6em; font-family: var(--f-affiche); font-weight: 800; font-stretch: 80%; font-size: var(--t-h2); line-height: 1.1; text-wrap: balance; }
.contenu h3 { margin: 1.4em 0 0.5em; font-family: var(--f-affiche); font-weight: 800; font-stretch: 80%; font-size: var(--t-h3); line-height: 1.15; }
.contenu ul, .contenu ol { margin: 0 0 1.05em; padding-left: 1.3em; }
.contenu li { margin-bottom: 0.45em; }
.contenu li::marker { color: var(--vert); }
.contenu figure { margin: 0 0 1.05em; }
.contenu .aligncenter { margin-inline: auto; text-align: center; }
.contenu .aligncenter img { margin-inline: auto; }
.contenu .is-style-tw-rounded-corners img { border-radius: 12px; }
.contenu .lcp_catlist { list-style: none; padding: 0; display: grid; gap: 0; }
.contenu .lcp_catlist li { margin: 0; padding: var(--e-3) 0; border-bottom: 1px solid var(--filet); color: var(--gris); font-size: var(--t-meta); }
.contenu .lcp_catlist a { display: block; font-size: var(--t-texte); }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: var(--e-6); margin-bottom: var(--e-6); }
.wp-block-column { flex: 1 1 100%; min-width: 0; }
.wp-block-column > :last-child { margin-bottom: 0; }

/* ———————————————————— Formulaire (Jetpack, mis en forme par le thème) ———————————————————— */
.formulaire { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-5); max-width: var(--texte); margin-top: var(--e-5); }
.champ { display: grid; gap: var(--e-2); min-width: 0; }
.champ label, .champ legend { font-family: var(--f-affiche); font-weight: 700; font-stretch: 87.5%; font-size: var(--t-nav); line-height: 1.3; padding: 0; }
.champ .requis { font-weight: 600; color: var(--gris); }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--ligne); border-radius: var(--r-champ); background: var(--papier); color: var(--encre);
  font-family: var(--f-texte); font-size: 1.0625rem;
}
.champ textarea { min-height: 140px; resize: vertical; }
.champ input:user-invalid, .champ select:user-invalid, .champ textarea:user-invalid { border-color: var(--rouge); border-width: 2px; }
fieldset.champ { border: 0; margin: 0; padding: 0; }
.choix { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); }
.choix label { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 44px; font-family: var(--f-texte); font-weight: 400; font-stretch: 100%; }
.choix input { width: 20px; height: 20px; accent-color: var(--vert); }
.formulaire .bouton { justify-self: start; }
.merci { display: grid; gap: var(--e-4); max-width: var(--texte); margin-top: var(--e-5); padding: var(--e-5); background: var(--lac); }
.merci h3 { margin: 0; font-family: var(--f-affiche); font-weight: 800; font-stretch: 80%; font-size: var(--t-h3); }
.recap { display: grid; gap: var(--e-2); margin: 0; font-size: 1rem; }
.recap-ligne { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--e-4); }
.recap dt { font-weight: 700; }
.recap dd { margin: 0; overflow-wrap: anywhere; }

/* Liens externes : icône dédiée juste à la suite du lien (pas sur les liens-images ou les icônes, ni sur mailto:).
   Le site est reconnu au DÉBUT de l'adresse : un lien de partage contient le permalien du site en paramètre. */
a[href^="http"]:not([href^="https://www.solidarite-ecologie.org"]):not([href^="http://www.solidarite-ecologie.org"]):not([href^="https://solidarite-ecologie.org"]):not([href^="http://solidarite-ecologie.org"]):not([href^="http://localhost"]):not(:has(> img)):not(:has(> svg))::after {
  content: ""; display: inline-block; width: 0.78em; height: 0.78em; margin-inline-start: 0.3em; vertical-align: -0.02em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2h5v5M14 2L7.5 8.5M12 9.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2h5v5M14 2L7.5 8.5M12 9.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ———————————————————— Pied de page ———————————————————— */
.pied { background: var(--pied); color: var(--sur-pied); padding-block: var(--e-7) var(--e-6); }
.pied a { color: var(--sur-pied); }
.pied-grille { display: grid; gap: var(--e-5); }
.pied-marque { width: 48px; height: auto; filter: invert(1); }
.pied-liens { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-5); list-style: none; margin: 0; padding: 0; font-family: var(--f-affiche); font-weight: 600; font-stretch: 87.5%; font-size: var(--t-nav); }
.pied-liens a { display: inline-flex; align-items: center; min-height: 44px; }
/* Réseaux en icônes : cible de 44 × 44 px, blanc sur le pied (16,6:1), anneau de focus vert (3,6:1) ; survol = trait de 2 px, comme le soulignement des liens */
.pied-reseau a { justify-content: center; min-width: 44px; border-bottom: 2px solid transparent; }
.pied-reseau a:hover { border-bottom-color: currentColor; }
.pied-reseau .ico { width: 24px; height: 24px; }
.pied-droits { margin: 0; font-size: var(--t-meta); }

/* ———————————————————— Tablette (≥ 700 px) ———————————————————— */
@media (min-width: 700px) {
  :root { --h-entete: 96px; }
  .logo img { height: 56px; }
  .logo .logo-marque { display: none; }
  .logo .logo-complet { display: block; }
  .entete .bouton { min-height: 44px; padding: 0 var(--e-5); font-size: var(--t-nav); }
  .tete-page { padding-block: var(--e-8) var(--e-7); }
  .actus-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-7) var(--e-6); }
  .actu { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .actus-grille > li:first-child { grid-column: 1 / -1; }
  .actus-grille > li:first-child > .actu { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--e-6); align-items: center; }
  .actus-grille > li:first-child .actu-titre { font-size: var(--t-h2); }
  .actus-grille > li:first-child .actu-extrait { font-size: var(--t-texte); }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formulaire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formulaire .plein { grid-column: 1 / -1; }
  .pied-grille { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--e-6); }
  .pied-droits { grid-column: 2; }
}

/* Colonnes WordPress : côte à côte dès 782 px, comme le cœur de WordPress */
@media (min-width: 782px) {
  .wp-block-columns { flex-wrap: nowrap; }  /* reprend .wp-container-core-columns-is-layout-7387b849 et -c0d75745 */
  .wp-block-column { flex: 1 1 0; }
  .wp-block-column.is-vertically-aligned-center { align-self: center; }
}

/* ———————————————————— Ordinateur (≥ 1100 px) ———————————————————— */
@media (min-width: 1100px) {
  :root { --h-entete: 112px; }
  .logo img { height: 68px; }
  .nav-principale { display: block; }
  .bouton-menu, .menu-mobile { display: none; }
  .actus-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .actus-grille > li:not(:first-child) > .actu { grid-template-columns: minmax(0, 1fr); }
  .panneau, .voile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-entree svg, .accordeon-bouton svg, .appel .ico { transition: none; }
}

/* Règles générées par WordPress au rendu, recopiées telles qu'en production (docs/07-import-local.md) */
.wp-container-core-columns-is-layout-7387b849{flex-wrap:nowrap;}
.wp-container-core-columns-is-layout-c0d75745{flex-wrap:nowrap;}
.wp-container-core-buttons-is-layout-3e41869c{justify-content:center;}
.wp-container-jetpack-contact-form-is-layout-0c8bae84{justify-content:flex-start;align-items:flex-start;}
/* Équivalent du « wrap !important » du cœur sous 782 px : la règle wp-container ci-dessus (nowrap, sans condition) ne doit pas l'emporter */
@media (max-width: 781px) {
  .wp-block-columns { flex-wrap: wrap !important; }
}

/* ———————————————————— Sorties des blocs du cœur WordPress ———————————————————— */
.chapo p, .carte-extrait p { margin: 0; }
.categories .wp-block-post-terms__separator { display: none; }
.cartes > li { min-width: 0; margin: 0; }
.cartes figure, .carte > * { margin: 0; }
.page-corps > :last-child { margin-bottom: 0; }
/* Article : la ligne de partage ferme la colonne */
.colonne > .partage { margin-bottom: var(--e-7); }
/* Page large : gabarit pleine largeur ou contenu ouvert sur des colonnes larges (comme l'écran Mathilde de la maquette) */
.se-large .colonne { max-width: none; margin-inline: 0; }
.se-large .colonne .titre-page { font-size: var(--t-titre); max-width: 22ch; }

/* ———————————————————— Accueil : page 30 + cinq articles récents ———————————————————— */
/* Le contenu de la page (post-content) passe en display: contents : ses blocs deviennent des éléments de la grille de l'accueil */
.accueil { display: grid; gap: var(--e-5); padding-block: var(--e-7) var(--e-9); }
.accueil > .contenu { display: contents; }
.accueil .contenu > .wp-block-columns { max-width: none; margin: 0; }
.accueil .contenu > .wp-block-columns:first-child .wp-block-column { flex: 1 1 100% !important; max-width: 38rem; }
.accueil .contenu > .wp-block-columns:first-child p { margin: 0; font-size: var(--t-chapo); line-height: 1.5; }
.accueil .contenu > .wp-block-columns:nth-child(2) { margin-top: var(--e-3); padding-top: var(--e-7); border-top: 1px solid var(--filet); }
.accueil .contenu > .wp-block-columns:nth-child(2) .wp-block-column { padding-bottom: var(--e-6); }
.accueil .contenu > .wp-block-columns:nth-child(2) h2 {
  display: inline; margin: 0; padding: 0.03em 0.28em; text-align: left !important; text-wrap: balance;
  background: var(--vert); color: var(--sur-rouge); line-height: 1.35;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.accueil > .wp-block-query { min-width: 0; }
.actu-extrait p { margin: 0; }
.actus-grille > li { min-width: 0; margin: 0; }
.actu-image { margin: 0; }
.actu-corps > * { margin: 0; }
@media (min-width: 1100px) {
  .accueil { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--e-6); padding-block: var(--e-8) var(--e-9); }
  .accueil > .titre-affiche { grid-column: 1 / span 11; }
  .accueil .contenu > .wp-block-columns:first-child { grid-column: 5 / span 8; }
  .accueil .contenu > .wp-block-columns:nth-child(2), .accueil > .wp-block-query { grid-column: 1 / -1; }
}

/* Couleurs Twenty Twenty choisies par les rédacteurs dans le contenu (173, 280, 1399, 1401) : accent -> vert des liens (6,9:1),
   primaire -> encre, fond « background » -> papier. Tailles : theme.json (proportions de la production). En attente des valeurs de
   production : texte « background » (blanc) et fonds « buttons-background », « buttons-text », « light-background » (feuille externe non relevée) */
.has-accent-color { color: var(--lien) !important; }
.has-primary-color { color: var(--encre) !important; }
.has-background-background-color { background-color: var(--papier) !important; }

/* Liste d'articles CoBlocks de « Prises de position » (871) : HTML enregistré en local, bloc dynamique rendu par CoBlocks en production
   (même balisage ; à reprendre avant de retirer CoBlocks). Le texte, lisible et dans l'ordre ; les images de fond ne s'affichent pas */
.contenu .wp-block-coblocks-posts__inner { display: grid; gap: 0; }
.contenu .wp-block-coblocks-posts__item { display: grid; gap: 2px; padding: var(--e-3) 0; border-bottom: 1px solid var(--filet); }
.contenu .wp-block-coblocks-posts__image { display: none; }
.contenu .wp-block-coblocks-posts__date { color: var(--gris); font-size: var(--t-meta); }

/* Pagination du cœur (core/query-pagination-numbers) : numéros seulement, mêmes valeurs que la maquette */
.pagination .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: var(--e-1); order: 3; width: 100%; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 var(--e-2); color: var(--encre); }
.pagination .page-numbers.current { background: var(--encre); color: var(--papier); border-radius: var(--r-bouton); }
.pagination .page-numbers.dots { color: var(--gris); }
@media (min-width: 700px) {
  .pagination .wp-block-query-pagination-numbers { order: 0; width: auto; }
}
