/* ============================================================
   Commune urbaine de Macenta — Feuille de style principale

   Charte reprise à l'identique du site du Conseil national de la
   transition (cnt.gov.gn) : mêmes couleurs, mêmes familles de caractères.
   Aucune nuance intermédiaire n'est inventée — les rôles pour lesquels
   le CNT ne définit pas de couleur réutilisent l'une des valeurs
   officielles ci-dessous.
   ============================================================ */
:root {
  --vert-fonce: #144a30;     /* vert institutionnel, couleur principale */
  --or: #cd9933;             /* or, bandeau supérieur et accents */
  --sarcelle: #007481;       /* sarcelle */
  --sarcelle-fonce: #035050; /* sarcelle foncé, liens et survols */
  --encre: #020101;          /* texte courant */
  --gris: #7a7a7a;           /* texte secondaire */
  --gris-ligne: #d1d1d1;     /* bordures */
  --blanc: #ffffff;
  --fond: #ffffff;           /* fond des pages */
  --fond-alt: #f8f8f8;       /* fond des sections alternées */

  /* Alias : le CNT n'emploie qu'un seul vert et un seul or. */
  --vert-nuit: var(--vert-fonce);
  --vert-moyen: var(--sarcelle-fonce);
  --or-vif: var(--or);
  --or-clair: var(--or);
  --vert-pale: var(--fond-alt);

  --rouge-gn: #ce1126;
  --jaune-gn: #fcd116;
  --vert-gn: #009460;
  --ombre: 0 10px 30px rgba(2, 1, 1, 0.13);
  --rayon: 10px;
  /* Mêmes familles que le CNT : Poppins pour les titres, Century Gothic
     pour le corps. Century Gothic étant une police commerciale, elle n'est
     pas embarquée : elle s'affiche chez les visiteurs qui la possèdent
     (postes Windows équipés de Microsoft Office, cas le plus courant),
     et les substituts géométriques prennent le relais ailleurs. */
  --font-display: "Poppins", "Century Gothic", sans-serif;
  --font-body: "Century Gothic", "URW Gothic", "Poppins", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

/* Corps de texte réglé comme celui du CNT : 15 px sur 28 px d'interligne. */
body {
  font-family: var(--font-body);
  color: var(--encre);
  background: var(--fond);
  font-size: 15px;
  line-height: 28px;
  letter-spacing: 0.375px;
}

/* height:auto neutralise le hint de présentation issu de l'attribut height
   du HTML : sans lui, une image à laquelle on donne width/height est étirée. */
img { max-width: 100%; height: auto; display: block; }

/* Réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Lien d'évitement (WCAG 2.4.1) ---------- */
.lien-evitement {
  position: fixed;
  left: 0;
  top: -100px; /* hors écran par le haut : aucun effet sur la largeur du document */
  z-index: 200;
  background: var(--vert-fonce);
  color: var(--blanc);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
}
.lien-evitement:focus { top: 0; }
main:focus { outline: none; }

a { color: var(--vert-moyen); }

/* ============================================================
   En-tête en trois bandes, sur le modèle des sites d'institution
   guinéens (assembleenationale.gov.gn, cnt.gov.gn) :

     1. barre utilitaire    — devise sur or, liens et réseaux sur vert
     2. bande de marque     — armoiries et nom, encart pratique à droite
     3. barre de navigation — rubriques et recherche, collée en haut

   Seule la troisième reste visible au défilement : c'est celle dont le
   visiteur a besoin, les deux autres libèrent de la hauteur d'écran.
   ============================================================ */

/* ---------- 1. Barre utilitaire ---------- */
.barre-utilitaire {
  background: var(--vert-fonce);
  color: var(--blanc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  /* La bande or déborde volontairement du conteneur pour rejoindre le bord
     de l'écran ; sans cette coupe, ce débordement ajouterait une barre de
     défilement horizontale à tout le site. */
  overflow-x: clip;
}
.barre-utilitaire .container {
  width: min(1400px, 96%);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  flex-wrap: wrap;
}
/* La devise occupe un bloc or qui se prolonge jusqu'au bord de l'écran,
   comme la bande des sites officiels, et se termine en biseau sur le vert. */
.barre-utilitaire .devise {
  position: relative;
  background: var(--or);
  color: var(--encre);
  text-transform: uppercase;
  padding: 7px 26px 7px 0;
  display: flex;
  align-items: center;
}
.barre-utilitaire .devise::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background: var(--or);
}
.barre-utilitaire .devise::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 26px;
  background: var(--or);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.barre-utilitaire .liens-utilitaires {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 7px 0;
  margin-left: auto;
}
.barre-utilitaire a { color: var(--blanc); text-decoration: none; }
.barre-utilitaire a:hover { text-decoration: underline; }
.barre-utilitaire .sociaux { display: flex; align-items: center; gap: 9px; }
.barre-utilitaire .sociaux a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.15s, transform 0.15s, color 0.15s;
}
.barre-utilitaire .sociaux a:hover {
  background: var(--or);
  color: var(--encre);
  transform: translateY(-1px);
}
.barre-utilitaire .sociaux svg { width: 12px; height: 12px; fill: currentColor; }

@media (max-width: 900px) {
  /* Le biseau n'a plus de sens quand tout s'empile : fond vert uni, devise en
     blanc. Les pseudo-éléments de débordement sont retirés — c'est le plus sûr
     moyen de ne pas provoquer de défilement horizontal sur un petit écran. */
  .barre-utilitaire .container { flex-direction: column; }
  .barre-utilitaire .devise {
    background: transparent;
    color: var(--blanc);
    padding: 7px 0 0;
    justify-content: center;
    text-align: center;
  }
  .barre-utilitaire .devise::before,
  .barre-utilitaire .devise::after { display: none; }
  .barre-utilitaire .liens-utilitaires {
    margin: 0 auto;
    justify-content: center;
    gap: 14px;
  }
}

/* ---------- 2. Bande de marque ---------- */
.bande-marque {
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-ligne);
}
.bande-marque .container {
  width: min(1400px, 96%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--encre);
}
/* Armoiries de la commune. Le monogramme sert de repli si l'image
   ne se charge pas ; il est recouvert par le logo officiel. */
.brand-armoiries {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vert-fonce);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-armoiries::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("/img/logo-112.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.brand-texte .ligne1,
.brand-texte .ligne2 { display: block; }
.brand-texte .ligne1 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gris);
  font-weight: 600;
}
.brand-texte .ligne2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--vert-fonce);
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .brand-texte .ligne2 { font-size: 17px; }
  .brand-armoiries { width: 46px; height: 46px; }
}

/* Encart pratique, à la place des bandeaux publicitaires du modèle */
.encart-entete {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.encart-entete .repere {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--gris);
  line-height: 1.35;
  text-decoration: none;
}
.encart-entete .repere svg {
  width: 26px; height: 26px;
  stroke: var(--vert-fonce);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.encart-entete .repere strong {
  display: block;
  color: var(--vert-fonce);
  font-size: 13.5px;
}
@media (max-width: 1080px) { .encart-entete { display: none; } }

/* ---------- 3. Barre de navigation ---------- */
.barre-nav {
  background: var(--blanc);
  border-bottom: 2px solid var(--vert-fonce);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(2, 1, 1, 0.07);
}
.barre-nav .container {
  width: min(1400px, 96%);
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Marque réduite, révélée seulement quand la barre est collée en haut et
   que la bande de marque a disparu du champ. */
.barre-nav .marque-compacte {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.barre-nav .marque-compacte .brand-armoiries { width: 34px; height: 34px; }
.barre-nav .marque-compacte span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--vert-fonce);
}

.nav-toggle {
  display: none;
  background: var(--vert-fonce);
  color: var(--blanc);
  border: none;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-body);
}
.main-nav { margin-right: auto; min-width: 0; }
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 15px 13px;
  text-decoration: none;
  color: #54595f;
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.actif > a {
  color: var(--vert-fonce);
  border-bottom-color: var(--or);
}
.main-nav li.a-menu > a::after {
  content: " ▾";
  font-size: 11px;
  color: var(--or);
}
.sous-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 262px;
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-top: 3px solid var(--or);
  box-shadow: var(--ombre);
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.main-nav li:hover > .sous-menu,
.main-nav li:focus-within > .sous-menu,
.main-nav li.ouvert > .sous-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sous-menu a {
  display: block;
  padding: 9px 18px;
  text-decoration: none;
  color: var(--gris);
  font-size: 13px;
}
.sous-menu a:hover { background: var(--vert-pale); color: var(--vert-fonce); }
/* Le dernier sous-menu s'aligne à droite pour ne pas sortir de l'écran */
.main-nav > ul > li:last-child > .sous-menu { left: auto; right: 0; }

/* Bouton de recherche carré, à droite de la barre */
.bouton-recherche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--vert-fonce);
  color: var(--blanc);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s;
}
.bouton-recherche:hover { background: var(--sarcelle-fonce); }
.bouton-recherche svg {
  width: 17px; height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* ---------- Conteneurs ---------- */
.container { width: min(1150px, 92%); margin: 0 auto; }

/* ---------- Héros avec grande image ---------- */
.hero {
  position: relative;
  color: var(--blanc);
  overflow: hidden;
  background: linear-gradient(150deg, var(--vert-nuit), var(--vert-fonce));
}
/* Fond défilant du héros : les diapositives se fondent l'une dans
   l'autre, avec un lent mouvement d'approche. */
.hero-diapo { position: absolute; inset: 0; overflow: hidden; }
.diapo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease-in-out;
}
/* La diapositive sortante conserve son animation d'échelle pendant le fondu :
   sans cela, le retrait de « active » annulerait l'animation et l'image
   encore visible sauterait brutalement à son échelle de départ. */
.diapo.active,
.diapo.sortante {
  animation: approche 9s ease-out forwards;
}
.diapo.active { opacity: 0.62; }
@keyframes approche {
  from { transform: scale(1.06); }
  to { transform: scale(1.14); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 74, 48, 0.93) 20%, rgba(20, 74, 48, 0.62) 62%, rgba(20, 74, 48, 0.34));
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 100px 0 110px;
  max-width: 760px;
}
.hero .surtitre {
  display: inline-block;
  background: rgba(205, 153, 51, 0.18);
  border: 1px solid rgba(205, 153, 51, 0.6);
  color: var(--blanc);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(31px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.375px;
  margin-bottom: 12px;
}
.hero h1 em { font-style: normal; color: var(--or); }
.hero .slogan {
  font-family: var(--font-display);
  /* 19 px gras : la devise en or passe alors le seuil de contraste
     applicable aux grands caractères sur le vert institutionnel. */
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--or);
  margin-bottom: 20px;
}
.hero p.chapo {
  font-size: 18px;
  color: #ffffff;
  max-width: 580px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
/* Texte à l'encre du CNT : le vert sur l'or ne donnait que 4,00:1 */
.btn-or { background: var(--or); color: var(--encre); }
/* Assombrissement de l'or officiel plutôt qu'une teinte inventée */
.btn-or:hover { filter: brightness(0.92); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(205,153,51,0.32); }
.btn-contour { background: transparent; color: var(--blanc); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-contour:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-vert { background: var(--vert-fonce); color: var(--blanc); }
.btn-vert:hover { background: var(--vert-moyen); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,1,1,0.28); }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--blanc); border-top: 1px solid var(--gris-ligne); border-bottom: 1px solid var(--gris-ligne); }
.section-vert { background: var(--vert-fonce); color: var(--blanc); }
.section-tete { max-width: 680px; margin-bottom: 42px; }
.section-tete .etiquette {
  display: inline-block;
  color: var(--vert-moyen);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.section-vert .section-tete .etiquette { color: var(--blanc); }
.section-tete h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--vert-fonce);
  line-height: 1.22;
  letter-spacing: 0.375px;
  margin-bottom: 12px;
}
.section-vert .section-tete h2 { color: var(--blanc); }
.section-tete p { color: var(--gris); font-size: 16.5px; }
.section-vert .section-tete p { color: #ffffff; }
.centre { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grilles de cartes ---------- */
.grille { display: grid; gap: 22px; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }

.carte {
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.carte::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--or);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: transparent; }
.carte:hover::after { transform: scaleY(1); }
.carte .icone {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--vert-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 16px;
  color: var(--vert-fonce);
}
.carte .icone svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--vert-fonce);
  margin-bottom: 8px;
}
.carte p { font-size: 14.5px; color: var(--gris); }
/* Vise aussi les <span class="lien"> des cartes non cliquables */
.carte .lien {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--vert-moyen);
  text-decoration: none;
}
.carte a.lien:hover { text-decoration: underline; }
a.carte { text-decoration: none; display: block; }

/* ---------- Priorités en vignettes rondes ---------- */
.ronds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}
.rond {
  text-align: center;
  text-decoration: none;
  display: block;
}
.rond .photo-ronde {
  width: 200px; height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--blanc);
  box-shadow: var(--ombre);
  background: var(--vert-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.rond:hover .photo-ronde { transform: scale(1.05); box-shadow: 0 16px 40px rgba(2,1,1,0.25); }
.rond .photo-ronde img { width: 100%; height: 100%; object-fit: cover; }
.rond .photo-ronde svg {
  width: 80px; height: 80px;
  stroke: var(--vert-fonce);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rond-centre { grid-column: 2; }
@media (max-width: 1120px) {
  .rond-centre { grid-column: auto; }
}
.rond h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--vert-fonce);
  margin-bottom: 8px;
}
.rond p { color: var(--gris); font-size: 15px; max-width: 320px; margin: 0 auto; }

/* ---------- Témoignages (carrousel) ---------- */
.temoignages {
  background: var(--vert-fonce);
  color: var(--blanc);
  padding: 70px 0;
  text-align: center;
}
.temoignages .guillemets {
  font-family: var(--font-display);
  font-size: 70px;
  line-height: 0.5;
  color: var(--or);
  display: block;
  margin-bottom: 24px;
}
.temoin { display: none; max-width: 760px; margin: 0 auto; }
.temoin.visible { display: block; animation: montee 0.5s ease-out; }
.temoin .texte {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 22px;
}
.temoin .nom { font-weight: 700; font-size: 16px; color: var(--blanc); }
.temoin .role { font-size: 13.5px; color: var(--blanc); text-transform: uppercase; letter-spacing: 0.08em; }
.temoignages .points { margin-top: 30px; display: flex; justify-content: center; gap: 10px; }
.temoignages .point {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.temoignages .point.actif { background: var(--or); transform: scale(1.25); }

/* ---------- Actualités ---------- */
.actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.actu {
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.actu:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.actu .visuel {
  height: 180px;
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: rgba(255,255,255,0.85);
}
.actu .visuel img { width: 100%; height: 100%; object-fit: cover; }
.actu .visuel svg {
  width: 58px; height: 58px;
  stroke: rgba(255,255,255,0.9);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.actu .corps { padding: 20px 22px 24px; }
.actu .date {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vert-moyen);
}
.actu h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  color: var(--vert-fonce);
  margin: 6px 0 8px;
  line-height: 1.3;
}
.actu p { font-size: 14.5px; color: var(--gris); }

/* ---------- Lettre d'information ---------- */
.newsletter {
  background: var(--vert-nuit);
  color: var(--blanc);
  padding: 54px 0;
  text-align: center;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 10px;
}
.newsletter p { color: #ffffff; max-width: 540px; margin: 0 auto 26px; }
.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
}
.newsletter .message-envoi { flex: 0 0 100%; margin-top: 18px; color: var(--blanc); font-weight: 600; display: none; }

/* ---------- Bandeau de page intérieure ---------- */
.bandeau {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(205, 153, 51, 0.22), transparent 55%),
    linear-gradient(150deg, var(--vert-nuit), var(--vert-fonce));
  color: var(--blanc);
  padding: 58px 0 54px;
}
.bandeau .fil { font-size: 13px; color: #ffffff; margin-bottom: 12px; }
.bandeau .fil a { color: var(--blanc); text-decoration: underline; }
.bandeau .fil a:hover { text-decoration: underline; }
.bandeau h1 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.375px;
}
.bandeau p.sous-titre { margin-top: 12px; color: #ffffff; max-width: 640px; font-size: 17px; }

/* ---------- Contenu éditorial ---------- */
.prose h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.375px;
  color: var(--vert-fonce);
  margin: 42px 0 14px;
  padding-top: 8px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--vert-fonce);
  margin: 28px 0 10px;
}
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose figure { margin: 24px 0 26px; }
.prose figure img {
  width: 100%;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.prose figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--gris);
  border-left: 3px solid var(--or);
  padding-left: 12px;
}
.prose blockquote {
  border-left: 4px solid var(--or);
  background: var(--blanc);
  padding: 20px 24px;
  margin: 22px 0;
  border-radius: 0 var(--rayon) var(--rayon) 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--vert-fonce);
}

/* ---------- Mise en page avec sommaire latéral ---------- */
.page-2col {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  align-items: start;
}
/* Sans ceci, min-width:auto étire la piste 1fr à la largeur minimale des
   tableaux : .tableau-cadre ne défile jamais et c'est la page entière qui
   déborde horizontalement sur téléphone. */
.page-2col > * { min-width: 0; }
.sommaire {
  position: sticky;
  top: 110px;
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon);
  padding: 20px;
}
.sommaire .titre {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gris);
  font-weight: 700;
  margin-bottom: 12px;
}
.sommaire ul { list-style: none; }
.sommaire a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--encre);
  text-decoration: none;
  border-radius: 6px;
  border-left: 3px solid transparent;
}
.sommaire a:hover { background: var(--vert-pale); color: var(--vert-fonce); border-left-color: var(--or); }

/* ---------- Fiches de l'exécutif communal ---------- */
.profils {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 26px 0 10px;
}
.profil {
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.profil:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.profil .photo {
  height: 200px;
  background: var(--vert-pale);
  overflow: hidden;
}
.profil .photo img { width: 100%; height: 100%; object-fit: cover; }
.profil .infos { padding: 20px 20px 24px; }
.profil h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--vert-fonce);
  margin-bottom: 2px;
}
.profil .fonction {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vert-moyen);
  background: var(--vert-pale);
  border-radius: 20px;
  padding: 4px 14px;
  margin: 8px 0 12px;
}
.profil p.attributions { font-size: 14px; color: var(--gris); margin-bottom: 12px; }
.profil ul.contact {
  list-style: none;
  font-size: 13.5px;
  color: var(--gris);
  border-top: 1px solid var(--gris-ligne);
  padding-top: 12px;
}
.profil ul.contact li { margin-bottom: 4px; }
.profil ul.contact a { color: var(--vert-moyen); text-decoration: none; }
.profil ul.contact a:hover { text-decoration: underline; }
.profil-large { grid-column: 1 / -1; }
@media (min-width: 701px) {
  .profil-large { display: flex; text-align: left; }
  .profil-large .photo { width: 240px; height: auto; flex-shrink: 0; }
  .profil-large .infos { padding: 26px 30px; }
}
@media (max-width: 1120px) {
  .profils { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .profils { grid-template-columns: 1fr; }
}

/* ---------- Tableaux ---------- */
.tableau-cadre { overflow-x: auto; }
table.tableau {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(2,1,1,0.08);
  font-size: 15px;
}
table.tableau th {
  background: var(--vert-fonce);
  color: var(--blanc);
  text-align: left;
  padding: 13px 16px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.tableau td { padding: 12px 16px; border-bottom: 1px solid var(--gris-ligne); }
table.tableau tr:last-child td { border-bottom: none; }
table.tableau tr:nth-child(even) td { background: #f8f8f8; }

/* ---------- Chiffres clés ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.chiffre {
  text-align: center;
  padding: 28px 12px;
  border-radius: var(--rayon);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
}
.chiffre .valeur {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--or);
  line-height: 1;
}
.chiffre .legende {
  margin-top: 10px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

/* ---------- Étapes de démarche ---------- */
.etapes { list-style: none; counter-reset: etape; }
.etapes li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 26px 58px;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--vert-fonce);
  color: var(--blanc);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.etapes li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18.5px; top: 42px; bottom: 4px;
  width: 1.5px;
  background: var(--gris-ligne);
}
.etapes li strong { color: var(--vert-fonce); }

/* ---------- Encadrés ---------- */
.encadre {
  border-radius: var(--rayon);
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 15px;
}
.encadre-info { background: var(--vert-pale); border: 1px solid #d1d1d1; }
.encadre-or { background: #f8f8f8; border: 1px solid #cd9933; }
.encadre .titre-encadre {
  font-weight: 700;
  color: var(--vert-fonce);
  margin-bottom: 6px;
  display: block;
}

/* ---------- FAQ (accordéon) ---------- */
.faq details {
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--vert-fonce);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--vert-moyen);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details .reponse { padding: 0 22px 18px; color: var(--gris); font-size: 15px; }

/* ---------- Formulaires ---------- */
.formulaire {
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon);
  padding: 32px;
}
.champ { margin-bottom: 18px; }
.champ label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--vert-fonce);
}
.champ input, .champ textarea, .champ select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gris-ligne);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--fond);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: none;
  border-color: var(--vert-moyen);
  box-shadow: 0 0 0 3px rgba(3, 80, 80, 0.18);
  background: var(--blanc);
}
.champ textarea { min-height: 140px; resize: vertical; }
/* Se replie selon la place réellement disponible, et non selon la largeur
   de la fenêtre : le formulaire est lui-même dans une grille à deux colonnes. */
.champs-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.btn-petit { padding: 9px 18px; font-size: 13.5px; }
.btn-gris { background: #f8f8f8; color: var(--encre); }
.btn-gris:hover { background: #d1d1d1; transform: translateY(-2px); }

/* ---------- Message écrit ou vocal ---------- */
.onglets { display: flex; gap: 8px; margin-bottom: 14px; }
.onglet {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--gris-ligne);
  background: var(--fond);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--gris);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.onglet:hover { border-color: var(--vert-moyen); color: var(--vert-fonce); }
.onglet.actif { background: var(--vert-fonce); color: var(--blanc); border-color: var(--vert-fonce); }
.onglet svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -3px; margin-right: 7px;
}
.mode-message { display: none; }
.mode-message.actif { display: block; }

.enregistreur {
  border: 1.5px dashed var(--gris-ligne);
  border-radius: var(--rayon);
  padding: 26px 20px;
  text-align: center;
  background: var(--fond);
}
.btn-micro {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: none;
  background: var(--vert-fonce);
  color: var(--blanc);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.btn-micro:hover { background: var(--vert-moyen); transform: scale(1.05); }
.btn-micro svg {
  width: 30px; height: 30px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.btn-micro.enregistre { background: var(--rouge-gn); animation: pulsation 1.3s infinite; }
@keyframes pulsation {
  0% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0.4); }
  70% { box-shadow: 0 0 0 18px rgba(206, 17, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 17, 38, 0); }
}
.enregistreur .duree {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--vert-fonce);
  margin: 12px 0 4px;
}
.enregistreur .indication-micro, .enregistreur .erreur-micro, .erreur-vide {
  font-size: 13.5px;
  color: var(--gris);
}
.enregistreur .erreur-micro, .erreur-vide { color: var(--rouge-gn); font-weight: 600; }
.erreur-vide { margin: -8px 0 14px; }
.enregistreur .lecture audio { width: 100%; margin-top: 6px; }
.enregistreur .actions-audio {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Ligne du temps (réalisations) ---------- */
.frise { position: relative; padding-left: 34px; }
.frise::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--or), var(--vert-fonce));
}
.frise-item { position: relative; padding-bottom: 30px; }
.frise-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--or);
  border: 3px solid var(--fond);
  box-shadow: 0 0 0 2px var(--or);
}
.frise-item .date {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vert-moyen);
}
.frise-item h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--vert-fonce);
  margin: 4px 0 6px;
}
.frise-item p { color: var(--gris); font-size: 15px; }

/* ---------- Badges d'état ---------- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
}
.badge-cours { background: var(--or); color: var(--encre); }
.badge-fini { background: var(--fond-alt); color: var(--vert-fonce); border: 1px solid var(--gris-ligne); }

/* ---------- Pied de page ---------- */
/* Sarcelle foncé pleine largeur, colonnes de liens à puces et barre de
   mentions claire en bas : la disposition des portails d'institution. */
.site-footer {
  background: var(--sarcelle-fonce);
  color: #ffffff;
  padding: 54px 0 0;
  font-size: 14px;
}
.site-footer .container { width: min(1400px, 96%); }
.footer-grille {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer h4 {
  font-family: var(--font-body);
  color: var(--blanc);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 15px;
  line-height: 1.5;
}
/* Puces rondes, comme sur les portails de l'État */
.site-footer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--or);
}
.site-footer .sans-puce li { padding-left: 0; }
.site-footer .sans-puce li::before { display: none; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { color: var(--or); text-decoration: underline; }

.footer-marque { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-marque .brand-armoiries { width: 46px; height: 46px; font-size: 16px; }
.footer-marque .nom {
  font-family: var(--font-display);
  color: var(--blanc);
  font-size: 17px;
  line-height: 1.25;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-devise {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--or);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Réseaux sociaux en pastilles, sous la colonne « Contact » */
.footer-sociaux { display: flex; gap: 9px; margin-top: 16px; }
.footer-sociaux a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--blanc);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.footer-sociaux a:hover {
  background: var(--or);
  color: var(--encre);
  transform: translateY(-2px);
}
.footer-sociaux svg { width: 14px; height: 14px; fill: currentColor; }

.footer-meg {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 13px;
  color: #ffffff;
}
.logo-meg {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--blanc);
  color: var(--sarcelle-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
/* Barre de mentions claire, détachée du bloc coloré */
.footer-legal {
  background: var(--blanc);
  color: var(--sarcelle-fonce);
  padding: 18px 0;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}
.footer-legal a { color: var(--sarcelle-fonce); text-decoration: underline; }
.footer-legal a:hover { color: var(--vert-fonce); }

/* ---------- Animations d'apparition ---------- */
@keyframes montee {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { animation: montee 0.7s ease-out both; }
.anim-1 { animation-delay: 0.08s; }
.anim-2 { animation-delay: 0.18s; }
.anim-3 { animation-delay: 0.28s; }
.anim-4 { animation-delay: 0.38s; }

/* Révélation au défilement. Une fois « visible » posée, plus aucune règle
   .reveler ne déclare de transform : les effets de survol des cartes
   retrouvent la main (sinon .reveler.visible les écrasait). */
.reveler {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveler:not(.visible) {
  opacity: 0;
  transform: translateY(26px);
}
.carte.visible, .actu.visible, .profil.visible {
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.6s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { animation: none; opacity: 1; transform: none; transition: none; }
  .reveler { transition: none; }
  .reveler:not(.visible) { opacity: 1; transform: none; }
  .diapo.active, .diapo.sortante { animation: none; transform: none; }
}

/* Accessibilité clavier — indicateur bicolore. L'or seul restait sous le
   seuil de 3:1 sur fond clair et devenait invisible sur la moitié dorée de
   la barre supérieure ; le vert nuit porte le contraste sur les fonds
   clairs, le halo or clair sur les fonds vert foncé. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--vert-nuit);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--or-clair);
}
/* .champ …:focus pose outline:none avec une spécificité supérieure :
   sans cette règle les champs n'auraient aucun indicateur clavier. */
.champ input:focus-visible,
.champ textarea:focus-visible,
.champ select:focus-visible {
  outline: 3px solid var(--vert-nuit);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--or-clair);
}

/* ---------- Bouton retour en haut ---------- */
.haut-page {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--vert-fonce);
  color: var(--blanc);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--ombre);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
  z-index: 90;
}
.haut-page.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.haut-page:hover { background: var(--vert-moyen); }

/* ---------- Responsive ---------- */
/* Marque (260 px) et sept rubriques (924 px) réclament 1202 px : les
   rubriques s'affichent donc en clair sur tout écran d'ordinateur, à
   partir de 1260 px. Le menu compact est réservé aux tablettes et aux
   téléphones, en dessous de cette largeur. */
@media (max-width: 1259px) {
  .nav-toggle { display: block; }
  /* La barre collée porte alors l'identité, la bande de marque ayant défilé */
  .barre-nav .marque-compacte { display: flex; }
  .barre-nav .container { padding: 8px 0; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--gris-ligne);
    box-shadow: var(--ombre);
    display: none;
    /* Hauteur réellement disponible, du bas de l'en-tête au bas de l'écran.
       Elle varie au défilement, d'où la variable mise à jour en JavaScript ;
       le repli couvre le pire cas mesuré sur un écran de 320 px. */
    max-height: var(--nav-dispo, calc(100vh - 270px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav.ouvert { display: block; }
  .main-nav > ul { flex-direction: column; padding: 10px 4%; }
  .sous-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--vert-pale);
    margin-left: 14px;
    display: none;
  }
  .main-nav li.ouvert > .sous-menu { display: block; }
  .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .ronds { grid-template-columns: repeat(2, 1fr); }
  .actus { grid-template-columns: repeat(2, 1fr); }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .page-2col { grid-template-columns: 1fr; }
  .sommaire { position: static; }
  .footer-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 699px) {
  .grille-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grille-3, .grille-4 { grid-template-columns: 1fr; }
  .ronds { grid-template-columns: 1fr; }
  .champs-2 { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .footer-grille { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 0 70px; }
  .section { padding: 50px 0; }
}

/* ============================================================
   Éléments complémentaires : mentions d'attente, fiches de l'exécutif,
   retours du formulaire de contact
   ============================================================ */

/* --- Logo officiel, quand la mairie en dépose un --- */
.brand-logo {
  width: 56px; height: 56px; object-fit: contain;
  background: var(--blanc); border-radius: 8px; padding: 3px;
  flex: 0 0 auto;
}
.footer-marque .brand-logo { width: 48px; height: 48px; }
.footer-meg img { height: 34px; width: auto; object-fit: contain; }

/* --- Mentions secondaires --- */
.mention-discrete {
  color: var(--gris); font-size: 13.5px; line-height: 1.55;
}
.chiffre .precision {
  color: rgba(255, 255, 255, 0.72); font-size: 12.5px; margin-top: 4px;
}

/* --- Fiche pratique : coût, délai, guichet --- */
.fiche-pratique {
  border: 1px solid var(--gris-ligne); border-left: 4px solid var(--vert-fonce);
  border-radius: var(--rayon); background: var(--fond-alt);
  padding: 14px 18px; margin: 18px 0 22px;
}
.ligne-fiche {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 7px 0; border-bottom: 1px solid var(--gris-ligne);
}
.ligne-fiche:last-child { border-bottom: none; }
.intitule-fiche {
  flex: 0 0 132px; font-weight: 700; color: var(--vert-fonce); font-size: 14px;
}
.valeur-fiche { flex: 1 1 200px; font-size: 15px; }
.valeur-fiche.a-confirmer { color: var(--gris); font-style: italic; }

/* --- Documents non encore fournis --- */
.lien.indisponible { color: var(--gris); cursor: default; }

/* --- Listes de la page Contact --- */
.liste-don { list-style: none; color: var(--gris); font-size: 15px; margin-bottom: 12px; }
.liste-don li { margin-bottom: 8px; }

/* --- Avancement d'un chantier --- */
.barre-avancement {
  height: 9px; border-radius: 6px; background: var(--gris-ligne);
  overflow: hidden; margin: 10px 0 4px;
}
.barre-avancement span {
  display: block; height: 100%; background: var(--vert-fonce); border-radius: 6px;
}
.illustration-realisation {
  width: 100%; height: auto; border-radius: var(--rayon); margin: 10px 0 12px;
}

/* --- Actualité --- */
.chapo-actu { font-size: 18px; font-weight: 600; color: var(--vert-fonce); }

/* --- Retours du formulaire --- */
.encadre-succes { background: #f1f8f3; border: 1px solid var(--vert-fonce); }
.encadre-erreur { background: #fdf3f3; border: 1px solid #b23b3b; }
.encadre-erreur .titre-encadre { color: #b23b3b; }
.liste-erreurs { margin: 6px 0 0 18px; }
.erreur-champ {
  display: block; color: #b23b3b; font-size: 13.5px; font-weight: 600; margin-top: 5px;
}
.aide-champ {
  display: block; color: var(--gris); font-size: 13px; margin-top: 5px;
}
.champ input[aria-invalid="true"], .champ .erreur-champ + input { border-color: #b23b3b; }

/* Piège à robots : hors écran, jamais visible ni annoncé aux lecteurs d'écran. */
.champ-piege {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
/* Champ de fichier alimenté par l'enregistreur : masqué, l'interface étant le micro. */
.champ-vocal { display: none; }
/* ============================================================
   Motifs repris des portails d'institution guinéens
   ============================================================ */

/* ---------- Titres de section : filet or sous le titre ---------- */
.section-tete h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  background: var(--or);
  margin-top: 14px;
}
.section-tete.centre h2 { text-transform: uppercase; }
.section-tete.centre h2::after { margin-left: auto; margin-right: auto; }
.section-vert .section-tete h2::after { background: var(--blanc); }

/* ---------- Bloc à deux colonnes de la page d'accueil ---------- */
.accueil-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}
/* Panneau latéral : encadré au liseré vert, titre centré et filet or */
.panneau {
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-top: 4px solid var(--vert-fonce);
  border-radius: var(--rayon);
  padding: 24px 22px 26px;
  margin-bottom: 24px;
}
.panneau > h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--vert-fonce);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 18px;
}
.panneau > h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--or);
  margin: 12px auto 0;
}
.panneau ul { list-style: none; }
.panneau li { border-bottom: 1px solid var(--gris-ligne); }
.panneau li:last-child { border-bottom: none; }
.panneau li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  text-decoration: none;
  color: var(--encre);
  font-size: 14px;
  transition: color 0.15s, padding-left 0.15s;
}
.panneau li a:hover { color: var(--vert-fonce); padding-left: 5px; }
.panneau li svg {
  width: 18px; height: 18px;
  stroke: var(--vert-moyen);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.panneau .mention { font-size: 13px; color: var(--gris); }

/* Encadré « Mot du Maire », dans la colonne principale */
.mot-du-maire { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
.mot-du-maire .portrait {
  border-radius: var(--rayon);
  overflow: hidden;
  border: 1px solid var(--gris-ligne);
}
.mot-du-maire .portrait img { width: 100%; height: auto; display: block; }
.mot-du-maire .texte p { margin-bottom: 12px; text-align: justify; }
.mot-du-maire .signature {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--vert-fonce);
}
.mot-du-maire .signature span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13.5px;
  color: var(--gris);
}
/* Les deux appels à l'action du mot du Maire restent groupés et passent à la
   ligne ensemble plutôt que de déborder de la colonne. */
.mot-du-maire .actions-mot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .accueil-2col { grid-template-columns: 1fr; }
  .mot-du-maire { grid-template-columns: 1fr; }
  .mot-du-maire .portrait { max-width: 220px; }
}

/* ---------- Cartes d'actualité, version institutionnelle ---------- */
/* Titre en sarcelle, filet séparateur, ligne de méta discrète en bas. */
.actu h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--sarcelle);
  line-height: 1.5;
  margin: 0 0 10px;
}
.actu:hover h3 { color: var(--vert-fonce); }
.actu .corps { display: flex; flex-direction: column; flex: 1; }
.actu p { flex: 1; }
.actu .date {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gris-ligne);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--gris);
}

/* ---------- Grille de portraits (exécutif, conseil) ---------- */
.grille-portraits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px;
}
.portrait-membre { text-align: center; text-decoration: none; display: block; }
.portrait-membre img,
.portrait-membre .cadre {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rayon);
  border: 1px solid var(--gris-ligne);
  background: var(--fond-alt);
  display: block;
}
.portrait-membre .nom {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vert-fonce);
  line-height: 1.3;
}
.portrait-membre .role {
  display: block;
  font-size: 12px;
  color: var(--gris);
}

/* ---------- Page de recherche ---------- */
.barre-recherche {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 34px;
}
.barre-recherche input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--gris-ligne);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--encre);
}
.barre-recherche input:focus {
  outline: none;
  border-color: var(--vert-fonce);
  box-shadow: 0 0 0 3px rgba(20, 74, 48, 0.14);
}
.resultats { list-style: none; }
.resultats li {
  border-bottom: 1px solid var(--gris-ligne);
  padding: 18px 0;
}
.resultats li:last-child { border-bottom: none; }
.resultats .rubrique {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--or);
  margin-bottom: 6px;
}
.resultats h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 5px;
}
.resultats h3 a { color: var(--sarcelle); text-decoration: none; }
.resultats h3 a:hover { color: var(--vert-fonce); text-decoration: underline; }
.resultats p { font-size: 14.5px; color: var(--gris); }

/* ============================================================
   Adaptation aux petits écrans

   La majorité des visiteurs de la commune consultent le site depuis
   un téléphone d'entrée de gamme, souvent en 320 à 400 px de large.
   Les règles ci-dessous relèvent d'un audit mené de 320 à 1440 px.
   ============================================================ */

/* Les zones tactiles de la barre utilitaire sont trop basses par défaut :
   28 px, alors qu'un doigt en réclame 40. */
@media (max-width: 900px) {
  .barre-utilitaire .liens-utilitaires a:not(.sociaux a) {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
  }
  .barre-utilitaire .sociaux a { width: 34px; height: 34px; }
  .barre-utilitaire .devise { font-size: 12.5px; }
  /* Repères de lecture : rien en dessous de 12 px sur un téléphone */
  .brand-texte .ligne1 { font-size: 12px; }
  .footer-devise { font-size: 12px; }
}

@media (max-width: 1259px) {
  .barre-nav .marque-compacte { min-height: 42px; }
  .bouton-recherche { width: 42px; height: 42px; }
  .nav-toggle { min-height: 42px; }
  /* Rubriques du menu déroulant : une ligne par doigt */
  .main-nav > ul > li > a { padding: 13px 12px; }
  .sous-menu a { padding: 11px 18px; }
}

/* Le sommaire latéral tient à côté du texte dès 1000 px : le replier
   jusqu'à 1259 px, palier choisi pour le menu, gaspillait la largeur
   des tablettes et des petits portables. */
@media (min-width: 1000px) {
  .page-2col { grid-template-columns: 250px minmax(0, 1fr); }
  .sommaire { position: sticky; top: 96px; }
}
@media (max-width: 999px) {
  .page-2col { grid-template-columns: 1fr; }
  .sommaire { position: static; }
}

/* Une grille de deux cartes tient dès 700 px. Seules les grilles qui
   contiennent le formulaire de contact doivent s'empiler plus tôt :
   deux colonnes y écrasent les champs. */
@media (min-width: 700px) {
  .grille-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .grille-formulaire { grid-template-columns: 1fr; }
}

/* Barre de recherche : sous 420 px, le bouton ne tient plus sur la ligne. */
@media (max-width: 420px) {
  .barre-recherche { flex-wrap: wrap; }
  .barre-recherche input { flex: 1 1 100%; }
  .barre-recherche .btn { width: 100%; text-align: center; }
}

/* Bandeau d'accueil : sur un écran étroit et court, la hauteur fixe
   reléguait les deux boutons d'appel à l'action hors du champ. */
@media (max-width: 600px) {
  .hero-inner { padding: 54px 0 60px; }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* Fiches de l'exécutif et panneaux latéraux : marges resserrées */
@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .carte { padding: 22px 18px; }
  .panneau { padding: 20px 16px 22px; }
  .chiffre { padding: 20px 8px; }
  .chiffre .valeur { font-size: 30px; }
  .bandeau { padding: 40px 0 38px; }
  .container { width: 92%; }
  .barre-nav .container,
  .bande-marque .container,
  .barre-utilitaire .container { width: 92%; }
}

/* Tableaux : sur téléphone, ils défilent dans leur cadre. Une ombre
   latérale signale qu'il reste du contenu à droite, sans quoi le
   défilement passe inaperçu. */
.tableau-cadre {
  background:
    linear-gradient(to right, var(--blanc) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(255, 255, 255, 0), var(--blanc) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(2, 1, 1, 0.16), rgba(2, 1, 1, 0)),
    radial-gradient(farthest-side at 100% 50%, rgba(2, 1, 1, 0.16), rgba(2, 1, 1, 0)) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* Formulaire de contact : les onglets écrit/vocal passent en pleine
   largeur plutôt que de se chevaucher. */
@media (max-width: 420px) {
  .onglets { flex-wrap: wrap; }
  .onglets .onglet { flex: 1 1 100%; justify-content: center; }
  .actions-audio { flex-wrap: wrap; }
  .actions-audio .btn { flex: 1 1 auto; }
}

/* Actualités : trois colonnes sur ordinateur, deux sur tablette, une seule
   sur téléphone — une carte pleine largeur y reste lisible. */
@media (max-width: 699px) {
  .actus { grid-template-columns: 1fr; }
}

/* ============================================================
   Texte enrichi saisi dans l'administration

   L'éditeur du tableau de bord ne produit que les balises
   dessinées plus haut par « .prose » : titres, listes, citation,
   lien. Restent l'image posée au fil du texte et les trois
   couleurs de la charte, seules teintes que la barre d'outils
   propose — le rédacteur ne peut donc pas sortir de la charte.
   ============================================================ */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  margin: 10px 0;
}

/* La réinitialisation de Tailwind retire les puces de toutes les listes du
   site. La marge était rétablie plus haut, mais pas la puce elle-même : une
   énumération s'affichait donc décalée et sans repère. */
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.teinte-vert { color: var(--vert-fonce); }
.teinte-or { color: var(--or); }
.teinte-sarcelle { color: var(--sarcelle); }

/* Texte enrichi affiché dans une carte — description d'une réalisation.
   La barre d'outils y est allégée : ni titre de section, ni image. Restent le
   gras, l'italique, les listes et le lien, qui doivent garder leurs marges
   malgré la réinitialisation de Tailwind. */
.texte-riche p { margin-bottom: 10px; }
.texte-riche p:last-child { margin-bottom: 0; }
.texte-riche ul { list-style: disc; margin: 0 0 10px 20px; }
.texte-riche ol { list-style: decimal; margin: 0 0 10px 20px; }
.texte-riche li { margin-bottom: 4px; }
.texte-riche a { color: var(--sarcelle); text-decoration: underline; }

/* ============================================================
   Partage et commentaires d'une actualité
   ============================================================ */

.partage {
  margin: 34px 0 10px;
  padding: 18px 20px;
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-left: 4px solid var(--or);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}
.partage-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--vert-fonce);
}
.partage-boutons { display: flex; flex-wrap: wrap; gap: 9px; }
.partage-bouton {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--gris-ligne);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--encre);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.partage-bouton:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
/* Les couleurs officielles de chaque réseau : un partage se reconnaît d'un
   coup d'œil, sans avoir à lire l'étiquette. */
.partage-whatsapp:hover { background: #25d366; border-color: #25d366; color: var(--blanc); }
.partage-facebook:hover { background: #1877f2; border-color: #1877f2; color: var(--blanc); }
.partage-x:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.partage-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: var(--blanc); }
.partage-lien:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); color: var(--blanc); }
/* IconeReseau ne pose pas de dimensions : elles viennent d'ici, comme pour
   les icônes de l'en-tête et du pied de page. */
.partage-bouton svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }

.commentaires { margin-top: 40px; }
.commentaires-titre {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--vert-fonce);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--or);
}
.commentaires-sous-titre {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--vert-fonce);
  margin: 30px 0 6px;
}
.commentaires-liste { list-style: none; margin: 20px 0 0; padding: 0; }
.commentaire {
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--blanc);
  border: 1px solid var(--gris-ligne);
  border-radius: var(--rayon);
}
.commentaire p { margin: 0 0 8px; }
.commentaire p:last-child { margin-bottom: 0; }
.commentaire-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.commentaire-nom {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--vert-fonce);
}
.commentaire-date { font-size: 13px; color: var(--gris); }
/* La réponse de la mairie se distingue du commentaire : le lecteur doit voir
   au premier regard qui parle. */
.commentaire-reponse {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--fond-alt, #f8f8f8);
  border-left: 3px solid var(--sarcelle);
  border-radius: 0 8px 8px 0;
}
.commentaire-reponse .commentaire-nom {
  display: block;
  margin-bottom: 6px;
  color: var(--sarcelle-fonce, #035050);
  font-size: 14px;
}

@media (max-width: 599px) {
  .partage-boutons { display: grid; grid-template-columns: 1fr 1fr; }
  .partage-bouton { justify-content: center; }
}
