/* Association LERNA — feuille commune à la maquette et au thème WordPress.
   Les sélecteurs visent le DOM des blocs natifs (figure.wp-block-image, .wp-block-button…) :
   la maquette locale produit exactement ce DOM, une seule feuille sert donc aux deux.
   Palette et mesures relevées sur la référence, ramenée à 1440 px. */

:root {
  --blanc: #ffffff;
  --noir: #141414;
  --or: #c49434;
  --or-appuye: #b0832a;
  --perle: #f8f8f4;
  --sable: #f8f4f0;
  --trait: #ecece8;
  --texte: #1b1b1b;
  --texte-doux: #2e2e2e;
  --rayon: 14px;
  --rayon-grand: 18px;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --police-titres: "Montserrat", "Inter", system-ui, sans-serif;
  --entete-h: 123px;
  --espace: 88px;
  --ombre-survol: 0 24px 44px -26px rgba(20, 20, 20, .34);
  --fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='m13 5 7 7-7 7'/%3E%3C/svg%3E");
  --coeur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
  --coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.75;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
body a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0), filet de sécurité à spécificité nulle. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image, figure.wp-block-post-featured-image { margin: 0; }

.enveloppe { width: min(100% - 112px, 1328px); margin-inline: auto; }
.invisible, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Icônes au trait : la classe ico-* choisit le dessin, chaque composant le place. */
.ico-beneficiaires { --ico: url(img/icones/beneficiaires.svg); }
.ico-projets { --ico: url(img/icones/projets.svg); }
.ico-creation { --ico: url(img/icones/creation.svg); }
.ico-terrain { --ico: url(img/icones/terrain.svg); }
.ico-sante { --ico: url(img/icones/sante.svg); }
.ico-education { --ico: url(img/icones/education.svg); }
.ico-sensibilisation { --ico: url(img/icones/sensibilisation.svg); }
.ico-communaute { --ico: url(img/icones/communaute.svg); }
.ico-formation { --ico: url(img/icones/formation.svg); }
.ico-emploi { --ico: url(img/icones/emploi.svg); }
.ico-insertion { --ico: url(img/icones/insertion.svg); }
.ico-avenir { --ico: url(img/icones/avenir.svg); }
.ico-cible { --ico: url(img/icones/cible.svg); }
.ico-vision { --ico: url(img/icones/vision.svg); }
.ico-coeur { --ico: url(img/icones/coeur.svg); }
.ico-pousse { --ico: url(img/icones/pousse.svg); }
.ico-feuille { --ico: url(img/icones/feuille.svg); }
.ico-coordination { --ico: url(img/icones/coordination.svg); }
.ico-partenariat { --ico: url(img/icones/partenariat.svg); }
.ico-entreprise { --ico: url(img/icones/entreprise.svg); }
.ico-lieu { --ico: url(img/icones/lieu.svg); }
.ico-telephone { --ico: url(img/icones/telephone.svg); }
.ico-courriel { --ico: url(img/icones/courriel.svg); }
.ico-utilisateur { --ico: url(img/icones/utilisateur.svg); }
.ico-objet { --ico: url(img/icones/objet.svg); }
.ico-message { --ico: url(img/icones/message.svg); }
.ico-maison { --ico: url(img/icones/maison.svg); }
.ico-journal { --ico: url(img/icones/journal.svg); }
.ico-don { --ico: url(img/icones/don.svg); }
.ico-visage { --ico: url(img/icones/visage.svg); }

/* ---------- Boutons et liens ---------- */

.wp-block-button.btn .wp-block-button__link, input.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  width: auto; height: 42px; padding: 0 36px;
  border: 0; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; line-height: 1; letter-spacing: .045em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.wp-block-button.btn--noir .wp-block-button__link, input.btn--noir, button.btn--noir { background: var(--noir); color: #fff; }
.wp-block-button.btn--noir .wp-block-button__link:hover, input.btn--noir:hover { background: #2b2b2b; }
.wp-block-button.btn--or .wp-block-button__link, input.btn--or, button.btn--or { background: var(--or); color: #fff; }
.wp-block-button.btn--or .wp-block-button__link:hover, input.btn--or:hover { background: var(--or-appuye); }
.wp-block-button.btn--clair .wp-block-button__link { color: var(--noir); background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .14); }
.wp-block-button.btn--clair .wp-block-button__link:hover { background: var(--blanc); box-shadow: inset 0 0 0 1px var(--or); }
.wp-block-button.btn.btn--clair .wp-block-button__link::after { background: var(--or); }
.wp-block-button.btn--grand .wp-block-button__link, input.btn--grand { height: 56px; padding: 0 30px; font-size: 14.5px; letter-spacing: .06em; }
.wp-block-button.btn--fleche .wp-block-button__link::after, .wp-block-button.btn--coeur .wp-block-button__link::after {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--fleche) center / contain no-repeat; mask: var(--fleche) center / contain no-repeat;
  transition: transform .2s ease;
}
.wp-block-button.btn--coeur .wp-block-button__link::after { -webkit-mask-image: var(--coeur); mask-image: var(--coeur); }
.wp-block-button.btn--fleche .wp-block-button__link:hover::after { transform: translateX(3px); }

/* mêmes règles que le « layout flex » de WordPress, pour que maquette et site calculent pareil */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; }
.wp-block-button { margin: 0; }

p.lien-fleche { display: flex; }
.lien-fleche a, a.lien-fleche {
  display: inline-flex; align-items: center; gap: 12px; width: auto;
  font-size: 15px; font-weight: 600; line-height: 24px; color: var(--or);
}
.lien-fleche a::after, a.lien-fleche::after {
  content: ""; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: var(--fleche) center / contain no-repeat; mask: var(--fleche) center / contain no-repeat;
  transition: transform .2s ease;
}
.lien-fleche a:hover::after, a.lien-fleche:hover::after { transform: translateX(4px); }

/* ---------- Titres de section ---------- */

.surtitre {
  font-size: 13.5px; font-weight: 700; line-height: 20px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--or);
}
.titre-section {
  font-family: var(--police-titres);
  font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: -.005em; color: var(--noir);
  text-wrap: balance;
}
.tete-section { text-align: center; }
.tete-section .titre-section { margin-top: 8px; }
.tete-section .chapeau { max-width: 640px; margin: 12px auto 0; font-size: 17px; line-height: 28px; color: var(--texte-doux); }
.tete-section + * { margin-top: 40px; }

/* ---------- En-tête : fixe, transparent au-dessus de la photo, blanc dès qu'on défile ---------- */

.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.entete--defile, .entete.menu-ouvert {
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 rgba(20, 20, 20, .05), 0 14px 30px -22px rgba(20, 20, 20, .35);
}
.entete-int {
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 88px, 1366px); height: var(--entete-h); margin-inline: auto;
  transition: height .25s ease;
}

.logo { display: flex; align-items: center; gap: 6px; color: var(--noir); }
.logo-marque { flex: none; width: 59px; height: 59px; line-height: 0; transition: width .25s ease, height .25s ease; }
.wp-block-site-logo.logo-marque img { width: 100%; height: 100%; object-fit: contain; }
.logo-texte { display: flex; flex-direction: column; }
.logo-nom { font-family: var(--police-titres); font-size: 49px; font-weight: 700; line-height: 38px; transition: font-size .25s ease, line-height .25s ease; }
.logo-sous {
  /* « ASSOCIATION » a exactement la largeur de « LERNA » : même bord gauche (retrait), même bord droit (espacement des
     lettres). Les deux valeurs sont en em : elles suivent la taille du logo à tous les formats d'écran. */
  margin-bottom: 6px; margin-right: -.3366em; padding-left: .238em;
  font-family: var(--police-titres); font-size: 16.5px; font-weight: 600; line-height: 14px; letter-spacing: .3366em; text-transform: uppercase; color: var(--or);
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav-liste { display: flex; align-items: center; gap: 30px; }
.nav-liste > li { position: relative; display: flex; align-items: center; }
.nav-lien {
  position: relative; padding: 14px 0;
  font-size: 16px; font-weight: 500; line-height: 24px; color: var(--texte); white-space: nowrap;
  transition: color .2s ease;
}
.nav-lien::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px;
  background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-lien:hover::after, .nav-lien.actif::after { transform: scaleX(1); }
.nav-chevron {
  width: 22px; height: 22px; margin-left: 6px; padding: 0; border: 0; background: var(--texte); cursor: pointer;
  -webkit-mask: var(--chevron) center / 16px no-repeat; mask: var(--chevron) center / 16px no-repeat;
  transition: transform .2s ease;
}
.sous-menu {
  position: absolute; left: -22px; top: 100%; min-width: 236px; padding: 10px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: 0 18px 40px -18px rgba(20, 20, 20, .22);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-parent:hover .sous-menu, .nav-parent:focus-within .sous-menu, .nav-parent.ouvert .sous-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-parent:hover .nav-chevron, .nav-parent.ouvert .nav-chevron { transform: rotate(180deg); }
.sous-menu a {
  display: block; padding: 8px 14px; border-radius: 9px; white-space: nowrap;
  font-size: 15px; font-weight: 500; line-height: 24px;
  transition: background-color .15s ease, color .15s ease;
}
.sous-menu a:hover { background: var(--perle); color: var(--or); }
/* pictogramme devant chaque entrée du menu et des sous-menus (maquette et bloc Navigation de WordPress) */
.nav-liste li[class*="ico-"] > a::before,
.wp-block-navigation.nav-lerna .wp-block-navigation-item[class*="ico-"] > .wp-block-navigation-item__content::before {
  content: ""; display: inline-block; width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px;
  background: var(--ico) center / contain no-repeat; transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.nav-liste li[class*="ico-"] > a:hover::before,
.wp-block-navigation.nav-lerna .wp-block-navigation-item[class*="ico-"] > .wp-block-navigation-item__content:hover::before { transform: translateY(-2px) scale(1.12); }

.wp-block-button.entete-don .wp-block-button__link { height: 47px; padding: 0 22px; gap: 16px; }
.wp-block-button.entete-don .wp-block-button__link::after { background: var(--or); }

@media (min-width: 1181px) {
  .entete--defile .entete-int { height: 84px; }
  .entete--defile .logo-marque { width: 46px; height: 46px; }
  .entete--defile .logo-nom { font-size: 38px; line-height: 30px; }
  .entete--defile .logo-sous { margin-bottom: 4px; font-size: 12.8px; line-height: 11px; }
}

.menu-bouton {
  display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: var(--noir); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-bouton span { width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */

.hero { position: relative; height: clamp(700px, 50vw, 880px); overflow: hidden; background: #efe8e1; }
/* la photo est décalée vers la droite : le groupe occupe la moitié droite, le titre reste lisible à gauche ;
   son bord gauche se fond dans le fond du hero */
.wp-block-image.hero-photo {
  position: absolute; top: 0; left: 14%; width: 106%; max-width: none; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
.wp-block-image.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform-origin: 55% 60%; animation: hero-derive 22s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88) 0, rgba(255, 255, 255, .6) 9%, rgba(255, 255, 255, .2) 17%, rgba(255, 255, 255, 0) 25%),
    linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .84) 20%, rgba(255, 255, 255, .62) 33%, rgba(255, 255, 255, .3) 43%, rgba(255, 255, 255, .08) 51%, rgba(255, 255, 255, 0) 58%);
}
/* le voile est léger pour laisser voir la photo : un halo clair garde le titre et le texte lisibles sur les personnages */
.hero-titre { text-shadow: 0 0 22px rgba(255, 255, 255, .95), 0 0 8px rgba(255, 255, 255, .85), 0 0 2px rgba(255, 255, 255, .9); }
.hero-texte { text-shadow: 0 0 14px #fff, 0 0 6px #fff, 0 0 2px #fff; }
.hero-int {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  width: min(100% - 128px, 1312px); height: 100%; margin-inline: auto; padding: calc(var(--entete-h) + 20px) 0 76px;
}
.hero-titre {
  font-family: var(--police-titres);
  font-size: 50px; font-weight: 700; line-height: 60px; letter-spacing: -.015em; color: var(--noir);
  hyphens: none;
}
.hero-titre em {
  font-style: normal; color: var(--or);
  background: linear-gradient(rgba(196, 148, 52, .26), rgba(196, 148, 52, .26)) 0 90% / 0 .26em no-repeat;
  animation: surligne 1s 1.25s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero-texte { margin-top: 22px; max-width: 470px; font-size: 17px; line-height: 28px; color: #1f1f1f; }
.hero-etiquette {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 16px 6px 12px;
  font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: .03em; color: var(--noir);
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(196, 148, 52, .45); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-etiquette::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--or); animation: pouls 2.4s ease-out infinite; }
.hero .wp-block-buttons { gap: 14px; margin-top: 30px; }

/* entrée en scène : étiquette, titre, texte et boutons montent l'un après l'autre (bandeaux des pages intérieures compris) */
.hero-int > *, .bandeau-int > * { animation: monte .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-int > :nth-child(1), .bandeau-int > :nth-child(1) { animation-delay: .15s; }
.hero-int > :nth-child(2), .bandeau-int > :nth-child(2) { animation-delay: .3s; }
.hero-int > :nth-child(3), .bandeau-int > :nth-child(3) { animation-delay: .5s; }
.hero-int > :nth-child(4), .bandeau-int > :nth-child(4) { animation-delay: .7s; }
.chiffres-grille { animation: monte .9s .9s cubic-bezier(.2, .7, .2, 1) both; }
/* reflet qui traverse le bouton principal */
.hero .btn--or .wp-block-button__link { position: relative; overflow: hidden; }
.hero .btn--or .wp-block-button__link::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg); animation: reflet 5.5s 2.2s ease-in-out infinite;
}
@keyframes hero-derive { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.2%, -.8%); } }
@keyframes monte { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes surligne { to { background-size: 100% .26em; } }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(196, 148, 52, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(196, 148, 52, 0); } }
@keyframes reflet { 0% { left: -60%; } 26%, 100% { left: 130%; } }
.hero .wp-block-button__link, .bandeau .wp-block-button__link { box-shadow: 0 12px 24px -10px rgba(150, 108, 26, .6); }

/* ---------- Chiffres ---------- */

.chiffres { position: relative; z-index: 2; margin-top: -58px; }
.chiffres-grille {
  display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 1200px); margin-inline: auto; padding: 30px 12px 32px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-grand); box-shadow: 0 30px 60px -36px rgba(20, 20, 20, .38);
}
.chiffre { position: relative; padding: 0 16px; text-align: center; }
.chiffre::before { content: ""; display: block; width: 45px; height: 45px; margin-inline: auto; background: var(--ico) center / contain no-repeat; }
.chiffre + .chiffre::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--trait); }
.chiffre-nombre {
  margin-top: 10px;
  font-family: var(--police-titres); font-size: 34px; font-weight: 700; line-height: 40px; letter-spacing: -.01em; color: var(--noir);
  font-variant-numeric: tabular-nums;
}
.chiffres--mots .chiffre-nombre { font-size: 27px; line-height: 34px; }
.chiffre-libelle { margin-top: 6px; font-size: 16px; line-height: 24px; color: var(--texte-doux); }

/* ---------- Domaines d'intervention ---------- */

.domaines-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.domaines-grille--3 { grid-template-columns: repeat(3, 1fr); }
.domaines-grille--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }
.carte {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #f8f8f6; border: 1px solid #efefeb; border-radius: var(--rayon);
}
.wp-block-image.carte-photo, .wp-block-post-featured-image.actu-photo { overflow: hidden; }
.wp-block-image.carte-photo img { width: 100%; height: 229px; object-fit: cover; }
.wp-block-image.carte-photo img, .wp-block-post-featured-image.actu-photo img, .wp-block-image.galerie-photo img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.carte:hover .carte-photo img, .actu:hover .actu-photo img, .galerie-photo:hover img { transform: scale(1.06); }
.carte, .actu, .pilier, .etape, .temoignage, .encart, .partenaire-carte, .constat-point { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
.carte:hover, .actu:hover, .pilier:hover, .etape:hover, .temoignage:hover, .encart:hover, .partenaire-carte:hover { transform: translateY(-5px); box-shadow: var(--ombre-survol); }
.constat-point:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .12); border-color: rgba(196, 148, 52, .7); }
.pilier::before, .encart::before, .constat-point::before, .etape-numero { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.pilier:hover::before, .encart:hover::before, .constat-point:hover::before { transform: scale(1.12) rotate(-6deg); }
.etape-numero { transform-origin: left center; }
.etape:hover .etape-numero { transform: scale(1.14); }
.etape:hover, .partenaire-carte:hover { border-color: var(--or); }
.carte::before {
  content: ""; position: absolute; left: 22px; top: 175px; z-index: 1; width: 73px; height: 73px;
  background: var(--ico) center / 36px no-repeat var(--blanc); border-radius: 50%; box-shadow: 0 4px 12px rgba(20, 20, 20, .06);
}
.carte-corps { display: flex; flex: 1; flex-direction: column; padding: 38px 26px 27px; }
.carte-titre { font-size: 20px; font-weight: 700; line-height: 28px; color: var(--noir); }
.carte-texte { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--texte-doux); }
.carte .lien-fleche { margin-top: auto; padding-top: 18px; }

/* ---------- Encart Solar Perspectives de l’accueil ---------- */

.phare-carte {
  display: grid; grid-template-columns: 44.5% 55.5%; min-height: 443px; overflow: hidden;
  background: var(--perle); border-radius: var(--rayon-grand);
}
.phare-texte { position: relative; z-index: 1; padding: 28px 0 35px 38px; }
.phare-titre { margin-top: 10px; font-family: var(--police-titres); font-size: 39px; font-weight: 700; line-height: 48px; letter-spacing: -.005em; color: var(--noir); }
.phare-intro { margin-top: 10px; max-width: 480px; font-size: 17px; line-height: 28px; color: var(--texte-doux); }
.phare-intro + .phare-intro { margin-top: 14px; }
.phare-atouts { display: flex; gap: 38px; margin-top: 24px; }
.phare-atout { font-size: 14px; line-height: 22px; color: #2b2b2b; white-space: nowrap; }
.phare-atout::before { content: ""; display: block; width: 36px; height: 36px; margin-bottom: 12px; background: var(--ico) center / contain no-repeat; }
.phare .wp-block-buttons { margin-top: 28px; }
.wp-block-image.phare-visuel { position: relative; }
.wp-block-image.phare-visuel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
/* variante « affiche » : le visuel est une affiche à lire, on la montre en entier ; elle n'a pas de fond et se pose sur la carte */
.phare--affiche .phare-carte { grid-template-columns: 46% 54%; align-items: center; }
.phare--affiche .phare-texte { padding-block: 44px; }
.phare--affiche .wp-block-image.phare-visuel { padding: 36px 40px 36px 28px; }
.phare--affiche .wp-block-image.phare-visuel img {
  position: static; display: block; width: 100%; height: auto; object-fit: contain; -webkit-mask-image: none; mask-image: none;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.phare--affiche .phare-carte:hover .phare-visuel img { transform: scale(1.025); }

/* ---------- Actualités (boucle d'articles) ---------- */

.wp-block-post-template.actus-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.actus-grille > li { margin: 0; }
.actu {
  position: relative; height: 100%; overflow: hidden;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
}
.wp-block-post-featured-image.actu-photo a { display: block; }
/* vignette au format photo (3:2), cadrée vers le haut : les visages restent dans le cadre */
.wp-block-post-featured-image.actu-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
.actu-date {
  position: absolute; left: 0; top: 0; display: grid; place-content: center;
  width: 77px; height: 72px; text-align: center; color: #fff;
  background: var(--or); border-radius: 0 0 10px 0;
}
.actu-jour { font-family: var(--police-titres); font-size: 22px; font-weight: 700; line-height: 27px; }
.actu-mois { font-size: 12px; font-weight: 700; line-height: 17px; letter-spacing: .07em; text-transform: uppercase; }
.actu-corps { padding: 22px 28px 20px; }
.actu-rubrique { margin-bottom: 6px; font-size: 12.5px; font-weight: 700; line-height: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--or); }
.wp-block-post-title.actu-titre { max-width: 350px; font-size: 20px; font-weight: 700; line-height: 28px; color: var(--noir); text-wrap: balance; }
.actu-corps a.lien-fleche { margin-top: 18px; }
.wp-block-buttons.actus-suite { display: flex; justify-content: center; margin-top: 36px; }
.actus-liste .wp-block-post-template.actus-grille { row-gap: 36px; margin-top: 30px; }
.wp-block-query-pagination.actus-pages { gap: 10px; margin-top: 36px; font-weight: 600; }
.actus-pages .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--trait); border-radius: 999px; }
.actus-pages .page-numbers.current { color: #fff; background: var(--noir); border-color: var(--noir); }

.wp-block-buttons.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wp-block-button.filtre .wp-block-button__link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  font-size: 14.5px; font-weight: 600; line-height: 1; color: var(--texte);
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.wp-block-button.filtre .wp-block-button__link:hover { color: var(--or); border-color: var(--or); }
.wp-block-button.filtre.actif .wp-block-button__link { color: #fff; background: var(--noir); border-color: var(--noir); }
.actus-vide { padding: 48px 0 8px; text-align: center; font-size: 17px; color: var(--texte-doux); }

/* ---------- Appel au don ---------- */

.appel-carte {
  position: relative; display: flex; align-items: center; min-height: 215px; padding-left: 31px; overflow: hidden;
  color: #fff; background: var(--noir); border-radius: var(--rayon-grand);
}
.appel-carte::before {
  content: ""; position: relative; z-index: 1; flex: none; width: 118px; height: 118px;
  background: url(img/icones/embleme-don.svg) center / contain no-repeat;
}
.wp-block-image.appel-visuel { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; }
.wp-block-image.appel-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.wp-block-image.appel-visuel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--noir) 0%, rgba(20, 20, 20, .62) 14%, rgba(20, 20, 20, .14) 34%, rgba(20, 20, 20, 0) 55%);
}
.appel-texte { position: relative; z-index: 1; flex: none; width: 345px; margin-left: 28px; }
.appel-titre { margin-top: 4px; font-family: var(--police-titres); font-size: 30px; font-weight: 700; line-height: 38px; color: #fff; white-space: nowrap; }
.appel-p { margin-top: 8px; font-size: 16px; line-height: 26px; color: #f2f2f2; }
.appel .wp-block-buttons { position: relative; z-index: 1; margin-left: 46px; }
/* appel propre à chaque page intérieure : sans photo, un halo doré à la place */
.appel--sobre .appel-carte { padding-right: 46px; background: radial-gradient(60% 170% at 100% 50%, rgba(196, 148, 52, .3), transparent 64%) var(--noir); }
.appel--sobre .appel-texte { flex: 1; width: auto; }
.appel--sobre .appel-titre { white-space: normal; text-wrap: balance; }
.appel--sobre .wp-block-buttons { flex: none; }

/* ---------- Partenaires ---------- */

.partenaires { text-align: center; }
.partenaires-rangee {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 72px; margin-top: 24px; padding-inline: 78px;
}
/* le logo est une image de fond ; le nom, masqué à l'œil, reste lu par les lecteurs d'écran */
.partenaire { flex: none; width: 184px; height: 68px; background: var(--sigle) center / contain no-repeat; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.partenaire-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sigle-solafrica { --sigle: url(img/partenaires/solafrica.png); }
.sigle-sethi { --sigle: url(img/partenaires/sethi.png); }
.sigle-kekeli-miig { --sigle: url(img/partenaires/kekeli-miig.png); }
.sigle-viinnim-soo { --sigle: url(img/partenaires/viinnim-soo.png); }
.sigle-fhnw { --sigle: url(img/partenaires/fhnw.png); }
.sigle-lii-moy-solar { --sigle: url(img/partenaires/lii-moy-solar-v2.png); }
/* logos très allongés : un cadre plus large, pour un poids visuel comparable aux autres */
.partenaires-piste .sigle-fhnw, .partenaires-piste .sigle-viinnim-soo { width: 206px; }
.partenaires-piste { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 64px; width: 100%; }
.partenaires-piste .partenaire:hover { transform: scale(1.08); }

/* défilement infini (classe posée par app.js, qui a recopié la piste) : les logos entrent par la droite, sans fin */
.partenaires-rangee.defile {
  justify-content: flex-start; padding-inline: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.defile .partenaires-piste { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: defilement 36s linear infinite; }
.defile .partenaires-piste .partenaire { margin-right: 76px; }
.partenaires-rangee.defile:hover .partenaires-piste { animation-play-state: paused; }
@keyframes defilement { to { transform: translateX(-50%); } }

.partenaires-grille { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.partenaire-carte { flex: 0 1 calc((100% - 56px) / 3); padding: 26px 28px 30px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); }
.partenaire-carte .partenaire { width: 200px; max-width: 100%; height: 64px; background-position: left center; }
.partenaire-titre { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--trait); font-size: 20px; font-weight: 700; line-height: 28px; color: var(--noir); }
.partenaire-desc { margin-top: 6px; font-size: 16px; line-height: 26px; color: var(--texte-doux); }

/* ---------- Newsletter ---------- */

.lettre-bande {
  display: flex; align-items: center; min-height: 132px; padding: 0 100px 0 76px;
  background: var(--sable); border-radius: var(--rayon-grand) var(--rayon-grand) 0 0;
}
.lettre-bande::before { content: ""; flex: none; width: 73px; height: 73px; background: url(img/icones/lettre.svg) center / contain no-repeat; }
.lettre-texte { margin-left: 46px; }
.lettre-titre { font-size: 20.5px; font-weight: 800; line-height: 26px; letter-spacing: .02em; text-transform: uppercase; color: var(--noir); }
.lettre-p { max-width: 460px; margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--texte-doux); }
.lettre-bande .wpcf7 { flex: none; width: 538px; margin-left: auto; }
.lettre-form { position: relative; display: flex; height: 42px; background: var(--blanc); border-radius: 999px; }
.lettre-form .wpcf7-form-control-wrap { display: block; flex: 1; min-width: 0; }
.lettre-form input:not(.btn) {
  width: 100%; height: 42px; padding: 0 28px; border: 0; border-radius: 999px 0 0 999px; outline-offset: -2px;
  font-size: 15px; color: var(--texte); background: transparent;
}
.lettre-form input::placeholder { color: #9a9a9a; }
.lettre-form input.btn { flex: none; width: 179px; padding: 0; }

/* ---------- Formulaires (Contact Form 7) ---------- */

.wpcf7 form { margin: 0; }
.wpcf7-spinner { display: none; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13.5px; line-height: 18px; color: #b3261e; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--trait); border-radius: 10px; font-size: 14.5px; line-height: 22px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--or); }
.lettre-form .wpcf7-response-output, .lettre-form .wpcf7-not-valid-tip { position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); }

/* ---------- Pages intérieures : bandeau ---------- */

.bandeau { position: relative; overflow: hidden; background: #efe8e1; }
.wp-block-image.bandeau-photo { position: absolute; inset: 0; }
.wp-block-image.bandeau-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: hero-derive 24s ease-in-out infinite alternate; }
.wp-block-image.bandeau-photo.cadre-haut img { object-position: 50% 16%; }
.wp-block-image.bandeau-photo.cadre-bas img { object-position: 50% 64%; }
/* sujet à droite de la photo : resté visible quand l'écran étroit rogne les côtés */
.wp-block-image.bandeau-photo.cadre-droite img { object-position: 78% 16%; }
/* photo retournée quand son sujet tombe sous le texte */
.wp-block-image.bandeau-photo.miroir { transform: scaleX(-1); }
.bandeau::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .72) 14%, rgba(255, 255, 255, .3) 30%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .82) 24%, rgba(255, 255, 255, .56) 42%, rgba(255, 255, 255, .16) 60%, rgba(255, 255, 255, 0) 72%);
}
.bandeau-int {
  position: relative; z-index: 1; width: min(100% - 128px, 1312px); margin-inline: auto;
  padding: calc(var(--entete-h) + 60px) 0 78px;
}
.bandeau-titre {
  max-width: 680px; margin-top: 16px;
  font-family: var(--police-titres);
  font-size: 46px; font-weight: 700; line-height: 56px; letter-spacing: -.015em; color: var(--noir);
  hyphens: none; text-wrap: balance;
}
.bandeau-texte { max-width: 540px; margin-top: 18px; font-size: 17px; line-height: 28px; color: #1f1f1f; }
.bandeau .wp-block-buttons { margin-top: 28px; }
/* en-tête sans photo : fond sable et halos dorés, quand la page montre déjà des visages */
.bandeau--clair {
  background:
    radial-gradient(48% 130% at 100% 0%, rgba(196, 148, 52, .26), transparent 62%),
    radial-gradient(36% 90% at 0% 100%, rgba(196, 148, 52, .13), transparent 60%),
    var(--sable);
}
.bandeau--clair::after { content: none; }
/* le surtitre devient la même étiquette que sur l'accueil */
.bandeau-int > .surtitre {
  display: flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 16px 6px 12px;
  font-size: 12.5px; letter-spacing: .07em; color: var(--noir);
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(196, 148, 52, .45); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bandeau-int > .surtitre::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--or); animation: pouls 2.4s ease-out infinite; }
/* quand la carte de chiffres chevauche le bandeau, on lui fait de la place */
.bandeau:has(+ .chiffres) .bandeau-int { padding-bottom: 136px; }

/* ---------- Pages intérieures : sections ---------- */

.section, .phare, .appel, .partenaires, .lettre { padding-top: var(--espace); }
/* bande teintée : elle porte son propre espace bas, la section suivante garde le sien */
.section.bande { margin-top: var(--espace); padding-bottom: var(--espace); background: var(--perle); }
.bande .pilier { background: var(--blanc); }
/* deux fonds colorés qui se suivent se touchent, sans liseré blanc entre eux */
.constat + .section.bande, .section.bande + .constat, .section.bande + .section.bande { margin-top: 0; }
.bandeau + .paiement { margin-top: 0; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.duo--inverse .duo-visuel { order: -1; }
.duo-titre {
  margin-top: 8px;
  font-family: var(--police-titres); font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: -.005em; color: var(--noir);
  text-wrap: balance;
}
.duo-texte > p:not([class]) { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--texte-doux); }
/* accroche : un texte mis en avant, filet doré à gauche et mots-clés surlignés */
.duo-texte .duo-accroche {
  margin-top: 22px; padding: 2px 0 2px 24px; font-size: 19px; line-height: 33px; color: var(--texte);
  border-left: 3px solid var(--or);
}
.duo-accroche strong {
  font-weight: 600; color: var(--noir);
  background: linear-gradient(rgba(196, 148, 52, .3), rgba(196, 148, 52, .3)) 0 90% / 100% .32em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (max-width: 600px) { .duo-texte .duo-accroche { padding-left: 18px; font-size: 17px; line-height: 30px; } }
.duo-texte .wp-block-buttons, .duo-texte .lien-fleche { margin-top: 28px; }
.wp-block-image.duo-visuel { overflow: hidden; border-radius: var(--rayon-grand); transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease; }
.wp-block-image.duo-visuel img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--rayon-grand); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.wp-block-image.duo-visuel:hover { transform: translateY(-6px); box-shadow: 0 34px 56px -32px rgba(20, 20, 20, .5); }
.duo-visuel:hover img { transform: scale(1.07); }
/* « Notre engagement » (Devenir partenaire) : quand le cadre s'élargit (tablette), on garde le haut de la photo, pour les visages */
.wp-block-image.duo-visuel img[src*="partenaire-panneau"] { object-position: 50% 0; }
.duo--inverse .mosaique { order: -1; }
/* le texte voisin répond au survol de la photo, comme pour la mosaïque */
.duo:has(.duo-visuel:hover) .liste-coche li::before { animation: coche-pouls .7s ease-out both; }
.duo:has(.duo-visuel:hover) .liste-coche li:nth-child(2)::before { animation-delay: .14s; }
.duo:has(.duo-visuel:hover) .liste-coche li:nth-child(3)::before { animation-delay: .28s; }
.duo:has(.duo-visuel:hover) .surtitre { letter-spacing: .16em; }

.wp-block-list.liste-coche { display: grid; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.liste-coche li { position: relative; padding-left: 36px; font-size: 16px; font-weight: 500; line-height: 26px; color: var(--texte); }
.liste-coche li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--or); }
.liste-coche li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 12px; height: 12px; background: #fff;
  -webkit-mask: var(--coche) center / contain no-repeat; mask: var(--coche) center / contain no-repeat;
}

.encarts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.encart { padding: 40px 42px 44px; background: var(--perle); border-radius: var(--rayon-grand); }
.encart::before { content: ""; display: block; width: 46px; height: 46px; margin-bottom: 22px; background: var(--ico) center / contain no-repeat; }
.encart-titre { margin-top: 6px; font-family: var(--police-titres); font-size: 26px; font-weight: 700; line-height: 34px; color: var(--noir); text-wrap: balance; }
.encart-texte { margin-top: 12px; font-size: 17px; line-height: 28px; color: var(--texte-doux); }
.encart .lien-fleche { margin-top: 20px; }
.encart--sombre { color: #fff; background: var(--noir); }
.encart--sombre .encart-titre { color: #fff; }
.encart--sombre .encart-texte { color: #f2f2f2; }
.encart--large { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 38px 46px; }
.encart--large::before { content: none; }
.encart--large .encart-titre { margin-top: 4px; }
.encart--large .wp-block-buttons { flex: none; }

.piliers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.piliers--3 { grid-template-columns: repeat(3, 1fr); }
.pilier {
  display: flex; flex-direction: column; padding: 30px 26px 28px;
  background: #f8f8f6; border: 1px solid #efefeb; border-radius: var(--rayon);
}
.pilier::before, .coordonnee::before {
  content: ""; flex: none; width: 64px; height: 64px;
  background: var(--ico) center / 32px no-repeat var(--blanc); border-radius: 50%; box-shadow: 0 4px 12px rgba(20, 20, 20, .06);
}
.pilier-titre { margin-top: 20px; font-size: 20px; font-weight: 700; line-height: 28px; color: var(--noir); }
.pilier-texte { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--texte-doux); }
.pilier .lien-fleche { margin-top: auto; padding-top: 16px; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.etape { padding: 30px 28px 32px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); }
.etape-numero { font-family: var(--police-titres); font-size: 40px; font-weight: 700; line-height: 44px; color: var(--or); }
.etape-titre { margin-top: 12px; font-size: 20px; font-weight: 700; line-height: 28px; color: var(--noir); }
.etape-texte { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--texte-doux); }

/* ---------- Contact ---------- */

.contact-grille { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
.coordonnees { padding: 38px 40px 42px; background: var(--perle); border-radius: var(--rayon-grand); }
.coordonnees-titre, .formulaire-titre { font-family: var(--police-titres); font-size: 26px; font-weight: 700; line-height: 34px; color: var(--noir); }
.coordonnees-intro { margin-top: 10px; font-size: 16px; line-height: 26px; color: var(--texte-doux); }
.coordonnees-liste { display: grid; gap: 22px; margin-top: 28px; }
.coordonnee { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; align-items: center; }
.coordonnee::before { grid-row: 1 / 3; width: 54px; height: 54px; background-size: 26px; }
.coordonnee-label { align-self: end; font-size: 13px; font-weight: 700; line-height: 18px; letter-spacing: .05em; text-transform: uppercase; color: var(--or); }
.coordonnee-valeur { align-self: start; font-size: 17px; font-weight: 500; line-height: 26px; color: var(--noir); }
.coordonnees .wp-block-social-links.reseaux { margin-top: 30px; }
.coordonnees .wp-block-social-links.reseaux .wp-social-link { width: 36px; height: 36px; }

.formulaire { padding: 38px 40px 40px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-grand); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
.champ { display: grid; gap: 8px; align-content: start; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 14.5px; font-weight: 600; line-height: 20px; color: var(--noir); }
.champ .wpcf7-form-control-wrap { display: block; }
.champ input, .champ select, .champ textarea {
  display: block; width: 100%; height: 48px; padding: 0 16px;
  font-family: inherit; font-size: 16px; color: var(--texte);
  background: var(--blanc); border: 1px solid #dcdcd6; border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.champ textarea { height: 150px; padding: 12px 16px; line-height: 26px; resize: vertical; }
/* pictogramme logé dans le champ, à gauche de la saisie */
.champ[class*="ico-"] .wpcf7-form-control-wrap { position: relative; }
.champ[class*="ico-"] .wpcf7-form-control-wrap::before {
  content: ""; position: absolute; left: 15px; top: 13px; z-index: 1; width: 22px; height: 22px; pointer-events: none;
  background: var(--ico) center / contain no-repeat; transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.champ[class*="ico-"] input, .champ[class*="ico-"] select, .champ[class*="ico-"] textarea { padding-left: 50px; }
.champ[class*="ico-"]:focus-within .wpcf7-form-control-wrap::before { transform: scale(1.15); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 0; border-color: var(--or); box-shadow: 0 0 0 3px rgba(196, 148, 52, .18); }
.formulaire input.btn { margin-top: 24px; box-shadow: 0 12px 24px -10px rgba(150, 108, 26, .6); }
/* formulaire de contact sur fond noir, comme les bandes sombres du site */
.formulaire {
  color: #fff; color-scheme: dark; border-color: var(--noir);
  background: radial-gradient(70% 60% at 100% 0%, rgba(196, 148, 52, .22), transparent 64%) var(--noir);
}
.formulaire .formulaire-titre { color: #fff; }
.formulaire .champ label { color: #ededed; }
.formulaire .champ input, .formulaire .champ select, .formulaire .champ textarea {
  color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22);
}
.formulaire .champ input::placeholder, .formulaire .champ textarea::placeholder { color: #a9a9a9; }
.formulaire .champ select option { color: #fff; background: var(--noir); }
.formulaire .champ input:focus, .formulaire .champ select:focus, .formulaire .champ textarea:focus {
  border-color: var(--or); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(196, 148, 52, .3);
}
.formulaire .wpcf7-not-valid-tip { color: #ffb4ab; }
.formulaire .wpcf7 form .wpcf7-response-output { color: #fff; border-color: rgba(255, 255, 255, .22); }

/* ---------- Réseaux sociaux ---------- */

.wp-block-social-links.reseaux { display: flex; gap: 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.wp-block-social-links.reseaux .wp-social-link {
  width: 28px; height: 28px; margin: 0; padding: 0; overflow: hidden; border-radius: 50%;
  color: var(--noir); background-color: var(--or); background-position: center; background-size: contain; background-repeat: no-repeat;
  transition: transform .2s ease;
}
.wp-block-social-links.reseaux .wp-social-link:hover { transform: translateY(-2px); }
.wp-block-social-links.reseaux .wp-social-link a { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; color: var(--noir); }
.wp-block-social-links.reseaux .wp-social-link svg { width: 54%; height: 54%; fill: currentColor; }
/* en maquette, le pictogramme vient du fichier ; sur le site, WordPress fournit son propre SVG */
.wp-block-social-links.reseaux .wp-social-link-facebook:not(:has(svg)) { background-image: url(img/icones/facebook.svg); }
.wp-block-social-links.reseaux .wp-social-link-instagram:not(:has(svg)) { background-image: url(img/icones/instagram.svg); }
.wp-block-social-links.reseaux .wp-social-link-linkedin:not(:has(svg)) { background-image: url(img/icones/linkedin.svg); }
.wp-block-social-links.reseaux .wp-social-link-youtube:not(:has(svg)) { background-image: url(img/icones/youtube.svg); }

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

.pied { padding-top: 31px; color: #e9e9e9; background: var(--noir); }
.pied-int { width: min(100% - 174px, 1266px); margin-inline: auto; }
.pied-grille { display: grid; grid-template-columns: 401px 238px 276px 1fr; padding-bottom: 24px; }

.logo--clair { color: #fff; gap: 5px; }
.logo--clair::before { content: ""; flex: none; width: 46px; height: 46px; background: url(img/logo-marque-clair.svg) center / contain no-repeat; }
.logo--clair .logo-nom { font-size: 37px; line-height: 29px; }
.logo--clair .logo-sous { margin-bottom: 5px; font-size: 12.46px; line-height: 11px; }

.pied-texte { max-width: 318px; margin-top: 14px; font-size: 14px; line-height: 21px; color: #e3e3e3; }

.pied-titre { margin-top: 2px; font-size: 13.5px; font-weight: 700; line-height: 21px; letter-spacing: .05em; text-transform: uppercase; color: var(--or); }
.pied-col .wp-block-list { margin-top: 10px; padding: 0; list-style: none; }
.pied-col li { font-size: 15px; line-height: 25px; }
.pied a { transition: color .2s ease; }
.pied a:hover { color: var(--or); }
.pied-contact .pied-titre { margin-bottom: 16px; }
.pied-ligne { display: flex; align-items: center; gap: 16px; font-size: 15px; line-height: 25px; }
.pied-ligne + .pied-ligne { margin-top: 15px; }
.pied-ligne::before { content: ""; flex: none; width: 26px; height: 26px; background: var(--ico) center / contain no-repeat; }

.pied-bas {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 9px 0 12px; border-top: 1px solid rgba(196, 148, 52, .6);
  font-size: 14px; line-height: 21px;
}
.wp-block-list.pied-legal { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }

/* ---------- Gabarits WordPress sans bandeau (article, archive, 404) ---------- */

.page-simple { padding: calc(var(--entete-h) + 48px) 0 0; }
.article-int { width: min(100% - 112px, 860px); margin-inline: auto; }
.article-date { margin-top: 14px; font-size: 15px; color: #555; }
.wp-block-post-featured-image.article-photo { margin-top: 32px; }
.wp-block-post-featured-image.article-photo img { width: 100%; max-height: 480px; object-fit: cover; object-position: 50% 30%; border-radius: var(--rayon-grand); }
.article-contenu { margin-top: 32px; font-size: 17px; line-height: 28px; color: var(--texte-doux); }
.article-contenu > * + * { margin-top: 20px; }
.article-contenu h2 { margin-top: 36px; font-family: var(--police-titres); font-size: 28px; line-height: 36px; color: var(--noir); }
.article-contenu a { color: var(--or); text-decoration: underline; }
.article-contenu ul { padding-left: 22px; list-style: disc; }
.article-contenu ul > li + li { margin-top: 6px; }
.article-contenu ul > li::marker { color: var(--or); }
.article-contenu p + ul { margin-top: 10px; }
.article-int > .lien-fleche { margin-top: 28px; }
/* fin d'article, dans l'ordre de la liste : l'article plus récent à gauche, le plus ancien à droite */
.nav-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--trait); }
.nav-article a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 22px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nav-article a:hover { border-color: var(--or); box-shadow: var(--ombre-survol); transform: translateY(-3px); }
.nav-articles > * { margin: 0; }
.nav-article--ancien { grid-column: 2; text-align: right; }
.post-navigation-link__label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--or); }
.nav-article--recent .post-navigation-link__label::before { content: "← "; }
.nav-article--ancien .post-navigation-link__label::after { content: " →"; }
.post-navigation-link__title { font-family: var(--police-titres); font-size: 17px; font-weight: 700; line-height: 24px; color: var(--noir); }
@media (max-width: 600px) {
  .nav-articles { grid-template-columns: 1fr; }
  .nav-article--ancien { grid-column: auto; }
}
/* galerie d'une actualité : deux colonnes ; avec un nombre impair de photos, la première prend toute la largeur */
.article-galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.article-galerie > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.wp-block-image.article-galerie-photo { margin: 0; overflow: hidden; border-radius: var(--rayon); }
.wp-block-image.article-galerie-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-galerie > :first-child:nth-last-child(odd) img { aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .article-galerie { grid-template-columns: 1fr; } .article-galerie > * img { aspect-ratio: 4 / 3; } }

/* ---------- En-tête WordPress : bloc Navigation ----------
   Le bloc imprime son propre CSS après cette feuille : chaque règle est donc qualifiée pour le dépasser. */

.entete-int > .wp-block-navigation.nav-lerna { margin-left: auto; }
.entete-int > .wp-block-buttons.entete-actions { margin-left: 32px; }
.wp-block-navigation.nav-lerna .nav-don { display: none; }
.wp-block-navigation.nav-lerna .is-menu-open .nav-don { display: block; }
.wp-block-navigation.nav-lerna { font-size: 16px; font-weight: 500; line-height: 24px; color: var(--texte); }
.wp-block-navigation.nav-lerna .wp-block-navigation__container { gap: 30px; }
.wp-block-navigation.nav-lerna .wp-block-navigation-item__content { position: relative; padding: 14px 0; color: inherit; text-decoration: none; }
.wp-block-navigation.nav-lerna .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px;
  background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.wp-block-navigation.nav-lerna .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.wp-block-navigation.nav-lerna .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after,
.wp-block-navigation.nav-lerna .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.wp-block-navigation.nav-lerna .wp-block-navigation__submenu-icon { margin-left: 8px; }
.wp-block-navigation.nav-lerna .has-child .wp-block-navigation__submenu-container {
  left: -22px; top: 100%; min-width: 236px; padding: 10px;
  color: var(--texte); background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: 0 18px 40px -18px rgba(20, 20, 20, .22);
}
.wp-block-navigation.nav-lerna .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 8px 14px; border-radius: 9px; font-size: 15px; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.wp-block-navigation.nav-lerna .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--or); background: var(--perle); }
.wp-block-navigation.nav-lerna .wp-block-navigation__responsive-container-open,
.wp-block-navigation.nav-lerna .wp-block-navigation__responsive-container-close {
  align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--noir);
}
.wp-block-navigation.nav-lerna .wp-block-navigation__responsive-container.is-menu-open {
  padding: 24px 28px; color: var(--noir) !important; background-color: var(--blanc) !important;
}
.wp-block-navigation.nav-lerna .is-menu-open .wp-block-navigation__container { gap: 6px; font-size: 19px; }
.wp-block-navigation.nav-lerna .is-menu-open .wp-block-navigation__submenu-container { padding: 4px 0 8px 14px; border: 0; box-shadow: none; }
.admin-bar .entete { top: 32px; }

/* ---------- Accueil : mosaïque de présentation ---------- */

.mosaique { position: relative; padding: 0 56px 56px 0; }
.wp-block-image.mosaique-grande { overflow: hidden; border-radius: var(--rayon-grand); }
.wp-block-image.mosaique-grande img { width: 100%; height: 440px; object-fit: cover; }
.wp-block-image.mosaique-petite {
  position: absolute; right: 0; bottom: 0; width: 46%; overflow: hidden;
  border: 6px solid var(--blanc); border-radius: var(--rayon-grand); box-shadow: 0 24px 44px -26px rgba(20, 20, 20, .5);
}
.wp-block-image.mosaique-petite img { width: 100%; height: 210px; object-fit: cover; }
.mosaique-pastille {
  position: absolute; left: 22px; top: 22px; padding: 12px 20px 14px;
  font-size: 12.5px; font-weight: 700; line-height: 18px; letter-spacing: .09em; text-transform: uppercase; color: #fff;
  background: var(--or); border-radius: var(--rayon); box-shadow: 0 14px 26px -12px rgba(150, 108, 26, .7);
}
.mosaique-pastille strong { display: block; font-family: var(--police-titres); font-size: 30px; line-height: 34px; letter-spacing: 0; }

/* au repos, la petite photo et la pastille flottent doucement (propriété translate, pour laisser transform au survol) */
.wp-block-image.mosaique-petite { animation: flotte 7s ease-in-out infinite; }
.mosaique-pastille { animation: flotte 5.5s -2s ease-in-out infinite; }
@keyframes flotte { 50% { translate: 0 -9px; } }

/* au survol des images : les deux photos s'écartent, zooment, et le texte voisin répond */
.wp-block-image.mosaique-grande, .wp-block-image.mosaique-petite, .mosaique-pastille {
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease;
}
.mosaique-grande img, .mosaique-petite img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.mosaique:hover .mosaique-grande { transform: translate(-8px, -8px); box-shadow: 0 34px 56px -32px rgba(20, 20, 20, .5); }
.mosaique:hover .mosaique-petite { transform: translate(10px, 8px) rotate(2.5deg); box-shadow: 0 34px 56px -24px rgba(20, 20, 20, .6); }
.mosaique:hover .mosaique-pastille { transform: rotate(-5deg) scale(1.08); }
.mosaique-grande:hover img { transform: scale(1.08); }
.mosaique .mosaique-petite:hover { transform: translate(10px, 8px) rotate(-1.5deg) scale(1.07); }
.mosaique-petite:hover img { transform: scale(1.1); }
.mosaique:hover .mosaique-petite, .mosaique:hover .mosaique-pastille { animation-play-state: paused; }
.duo:has(.mosaique:hover) .liste-coche li::before { animation: coche-pouls .7s ease-out both; }
.duo:has(.mosaique:hover) .liste-coche li:nth-child(2)::before { animation-delay: .14s; }
.duo:has(.mosaique:hover) .liste-coche li:nth-child(3)::before { animation-delay: .28s; }
.duo:has(.mosaique:hover) .surtitre { letter-spacing: .16em; }
.duo:has(.mosaique:hover) .btn--fleche .wp-block-button__link::after { transform: translateX(5px); }
.duo .surtitre { transition: letter-spacing .5s ease; }
@keyframes coche-pouls {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 148, 52, .6); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(196, 148, 52, 0); }
}

/* ---------- L'équipe : portraits ---------- */

.equipe-grille { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.membre {
  flex: 0 1 calc((100% - 56px) / 3); overflow: hidden;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-grand);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.membre:hover { transform: translateY(-6px); border-color: var(--or); box-shadow: var(--ombre-survol); }
.wp-block-image.membre-photo { overflow: hidden; background: var(--sable); }
.wp-block-image.membre-photo img { width: 100%; aspect-ratio: 690 / 600; object-fit: cover; object-position: 50% 100%; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.membre:hover .membre-photo img { transform: scale(1.06); }
.membre-corps { padding: 22px 28px 30px; border-top: 3px solid var(--or); }
.membre-nom { margin-top: 4px; font-family: var(--police-titres); font-size: 22px; font-weight: 700; line-height: 30px; color: var(--noir); }
.membre-texte { margin-top: 8px; font-size: 16px; line-height: 26px; color: var(--texte-doux); }

/* ---------- Nous soutenir : paiement par Mobile Money ---------- */

.paiement {
  position: relative; margin-top: var(--espace); padding-block: 96px; overflow: hidden; color: #fff;
  background:
    radial-gradient(46% 110% at 92% 40%, rgba(196, 148, 52, .34), transparent 64%),
    radial-gradient(34% 80% at 0% 100%, rgba(196, 148, 52, .14), transparent 62%),
    var(--noir);
}
.paiement > .enveloppe { position: relative; display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
.paiement-titre { margin-top: 8px; font-family: var(--police-titres); font-size: 40px; font-weight: 700; line-height: 49px; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.paiement-p { max-width: 560px; margin-top: 16px; font-size: 17px; line-height: 28px; color: #e9e9e9; }

/* les trois gestes, numérotés */
.wp-block-list.paiement-etapes { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: geste; }
.paiement-etapes li { position: relative; padding-left: 48px; font-size: 16.5px; font-weight: 500; line-height: 32px; color: #f2f2f2; counter-increment: geste; }
.paiement-etapes li::before {
  content: counter(geste); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px;
  font-family: var(--police-titres); font-size: 15px; font-weight: 700; color: var(--noir); background: var(--or); border-radius: 50%;
}

/* moyens de paiement : trois pastilles côte à côte, chacune avec le logo officiel de l'opérateur (img/paiement) */
.moyens { margin-top: 36px; }
.moyens-titre { font-size: 12.5px; font-weight: 700; line-height: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.moyens-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.moyen {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px 10px 10px;
  color: var(--noir); background: var(--blanc); border-radius: var(--rayon);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.moyen:hover { transform: translateY(-5px); box-shadow: 0 5px 0 var(--or); }
.moyen::before {
  content: ""; grid-row: 1 / 3; width: 44px; height: 44px; background: center / contain no-repeat;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.moyen:hover::before { transform: rotate(-8deg) scale(1.08); }
.moyen--wave::before { background-image: url(img/paiement/wave.png); }
.moyen--orange::before { background-image: url(img/paiement/orange-money.svg); }
.moyen--yas::before { background-image: url(img/paiement/yas.svg); }
.moyen-nom { align-self: end; font-size: 15px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.moyen-type { align-self: start; font-size: 10.5px; font-weight: 600; line-height: 15px; letter-spacing: .05em; text-transform: uppercase; color: #7d7667; white-space: nowrap; }

/* le formulaire de don : carte claire posée sur la bande sombre */
.don-carte {
  padding: 34px 34px 30px; color: var(--texte); background: var(--blanc); border-radius: var(--rayon-grand);
  box-shadow: 0 0 0 1px rgba(196, 148, 52, .5), 0 50px 80px -40px rgba(0, 0, 0, .85);
}
.don-titre { font-family: var(--police-titres); font-size: 26px; font-weight: 700; line-height: 34px; color: var(--noir); }
.don-form { margin-top: 18px; }
.don-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.don-montants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; border: 0; }
.don-montants legend { margin-bottom: 10px; padding: 0; font-size: 14.5px; font-weight: 600; line-height: 20px; color: var(--noir); }
.don-montant { position: relative; display: block; cursor: pointer; }
.don-montant input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.don-montant span {
  display: block; padding: 13px 10px 12px; text-align: center;
  font-family: var(--police-titres); font-size: 20px; font-weight: 700; line-height: 26px; color: var(--noir);
  background: var(--perle); border: 1.5px solid var(--trait); border-radius: var(--rayon);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.don-montant small { font-family: var(--police); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: #7d7667; }
.don-montant:hover span { border-color: var(--or); transform: translateY(-2px); }
.don-montant input:checked + span { color: #fff; background: var(--noir); border-color: var(--noir); }
.don-montant input:checked + span small { color: var(--or); }
.don-montant input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 3px; }
.don-libre { margin-top: 14px; }
.don-form[hidden] { display: none; }
/* suivi du paiement : prend la place du formulaire pendant que le donateur confirme dans l'autre onglet */
.don-suivi { margin-top: 18px; text-align: center; }
.don-suivi-etat { display: grid; gap: 10px; justify-items: center; padding: 26px 8px 10px; font-size: 15.5px; line-height: 24px; color: var(--texte-doux); }
.don-suivi-etat[hidden] { display: none; }
.don-suivi-titre { font-family: var(--police-titres); font-size: 22px; font-weight: 700; line-height: 30px; color: var(--noir); }
.don-suivi-roue { width: 46px; height: 46px; border: 4px solid var(--trait); border-top-color: var(--or); border-radius: 50%; animation: don-roue .9s linear infinite; }
@keyframes don-roue { to { transform: rotate(360deg); } }
.don-suivi--echec::before {
  content: "!"; display: grid; place-items: center; width: 54px; height: 54px;
  font-size: 28px; font-weight: 700; line-height: 1; color: #fff; background: #dc2626; border-radius: 50%;
}
.don-suivi .btn { margin-top: 6px; }

/* remerciement : la carte passe au noir, un sceau doré se dessine, des éclats s'en échappent,
   puis le montant et la référence montent un à un */
.don-carte { transition: background-color .5s ease, box-shadow .5s ease; }
.don-carte--merci {
  position: relative; overflow: hidden; padding-block: 40px 36px; color: #e9e9e9;
  background:
    radial-gradient(75% 52% at 50% 0%, rgba(196, 148, 52, .42), transparent 72%),
    radial-gradient(60% 38% at 50% 100%, rgba(196, 148, 52, .18), transparent 72%),
    var(--noir);
  box-shadow: 0 0 0 1px rgba(196, 148, 52, .85), 0 0 0 7px rgba(196, 148, 52, .12), 0 50px 80px -40px rgba(0, 0, 0, .9);
}
.don-carte--merci .don-titre { display: none; }
.don-carte--merci .don-suivi { margin-top: 0; }
.don-suivi--ok { gap: 0; padding: 0; color: #cfcfcf; }
.don-suivi--ok > * { animation: don-monte .7s cubic-bezier(.2, .7, .2, 1) both; }
.don-suivi--ok > :nth-child(2) { animation-delay: .35s; }
.don-suivi--ok > :nth-child(3) { animation-delay: .45s; }
.don-suivi--ok > :nth-child(4) { animation-delay: .6s; }
.don-suivi--ok > :nth-child(5) { animation-delay: .7s; }
.don-suivi--ok > :nth-child(6) { animation-delay: .8s; }
.don-suivi--ok > :nth-child(7) { animation-delay: .95s; }
.don-suivi--ok > :nth-child(8) { animation-delay: 1.1s; }
@keyframes don-monte { from { opacity: 0; transform: translateY(18px); } }

/* le sceau : halo qui respire, disque doré qui surgit, coche qui se trace */
.don-merci-sceau { position: relative; width: 116px; height: 116px; animation: none; }
.don-merci-sceau svg { display: block; width: 100%; height: 100%; overflow: visible; }
.don-merci-halo { fill: rgba(196, 148, 52, .2); transform-origin: 48px 48px; animation: don-halo 2.6s ease-in-out .6s infinite; }
.don-merci-cercle { fill: var(--or); transform-origin: 48px 48px; animation: don-sceau .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.don-merci-coche {
  fill: none; stroke: var(--noir); stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; animation: don-coche .45s ease-out .45s both;
}
@keyframes don-sceau { from { transform: scale(0); } }
@keyframes don-coche { from { stroke-dashoffset: 50; } }
@keyframes don-halo { 50% { transform: scale(1.22); opacity: .35; } }
/* les éclats : dix confettis partent du sceau, chacun dans sa direction */
.don-merci-sceau i {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 13px; margin: -6px 0 0 -3px;
  background: var(--or); border-radius: 3px; opacity: 0;
  animation: don-eclat 1s cubic-bezier(.15, .7, .3, 1) .5s both;
}
.don-merci-sceau i:nth-of-type(even) { width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.don-merci-sceau i:nth-of-type(3n) { background: #f3d48a; }
.don-merci-sceau i:nth-of-type(1) { --angle: 0deg; --portee: -92px; }
.don-merci-sceau i:nth-of-type(2) { --angle: 36deg; --portee: -108px; }
.don-merci-sceau i:nth-of-type(3) { --angle: 72deg; --portee: -88px; }
.don-merci-sceau i:nth-of-type(4) { --angle: 108deg; --portee: -112px; }
.don-merci-sceau i:nth-of-type(5) { --angle: 144deg; --portee: -84px; }
.don-merci-sceau i:nth-of-type(6) { --angle: 180deg; --portee: -104px; }
.don-merci-sceau i:nth-of-type(7) { --angle: 216deg; --portee: -90px; }
.don-merci-sceau i:nth-of-type(8) { --angle: 252deg; --portee: -110px; }
.don-merci-sceau i:nth-of-type(9) { --angle: 288deg; --portee: -86px; }
.don-merci-sceau i:nth-of-type(10) { --angle: 324deg; --portee: -106px; }
@keyframes don-eclat {
  0% { opacity: 1; transform: rotate(var(--angle)) translateY(-30px) scale(.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--angle)) translateY(var(--portee)) scale(1); }
}

.don-merci-sur { margin-top: 20px; font-size: 12.5px; font-weight: 700; line-height: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--or); }
.don-suivi--ok .don-suivi-titre { margin-top: 6px; font-size: 31px; line-height: 40px; letter-spacing: -.01em; color: #fff; }
.don-merci-montant { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 16px; font-family: var(--police-titres); }
.don-merci-montant[hidden], .don-merci-ref[hidden] { display: none; }
.don-merci-somme {
  font-size: 58px; font-weight: 700; line-height: 64px; letter-spacing: -.02em; color: var(--or);
  background: linear-gradient(100deg, #f6e2ad, var(--or) 45%, #f3d48a 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.don-merci-montant small { font-size: 16px; font-weight: 700; line-height: 22px; letter-spacing: .1em; color: var(--or); }
.don-suivi--ok .don-suivi-detail { margin-top: 2px; font-size: 15.5px; line-height: 24px; color: #cfcfcf; }
.don-merci-ref {
  margin-top: 18px; padding: 7px 18px; font-size: 13px; line-height: 20px; color: #cfcfcf;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
}
.don-merci-ref strong { margin-left: 4px; font-weight: 700; letter-spacing: .03em; color: #fff; }
.don-merci-mot { position: relative; max-width: 330px; margin-top: 24px; padding-top: 22px; font-size: 16.5px; line-height: 27px; color: #ededed; text-wrap: balance; }
.don-merci-mot::before { content: ""; position: absolute; left: 50%; top: 0; width: 48px; height: 2px; margin-left: -24px; background: var(--or); }
.don-merci-actions { display: grid; gap: 14px; justify-items: center; width: 100%; margin-top: 24px; }
.don-merci-actions .wp-block-button { margin: 0; }
.don-merci-encore {
  padding: 0; font: inherit; font-size: 14px; font-weight: 600; line-height: 20px; color: #cfcfcf;
  background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: color .2s ease;
}
.don-merci-encore:hover { color: var(--or); }
@media (max-width: 600px) {
  .don-suivi--ok .don-suivi-titre { font-size: 25px; line-height: 33px; }
  .don-merci-somme { font-size: 50px; line-height: 56px; }
}
/* don anonyme : une case à cocher qui replie prénom, nom et e-mail */
.don-anonyme {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px;
  background: var(--perle); border: 1.5px solid var(--trait); border-radius: var(--rayon); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.don-anonyme:hover { border-color: var(--or); }
.don-anonyme input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.don-anonyme-case {
  display: grid; place-items: center; width: 22px; height: 22px; background: var(--blanc); border: 1.5px solid #b9b2a3; border-radius: 6px;
  transition: background-color .2s ease, border-color .2s ease;
}
.don-anonyme-case::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}
.don-anonyme-texte { display: grid; }
.don-anonyme-texte strong { font-size: 14.5px; font-weight: 600; line-height: 20px; color: var(--noir); }
.don-anonyme-texte small { font-size: 12.5px; line-height: 18px; color: #6b6558; }
.don-anonyme input:checked ~ .don-anonyme-case { background: var(--noir); border-color: var(--noir); }
.don-anonyme input:checked ~ .don-anonyme-case::after { transform: rotate(-45deg) scale(1); }
.don-anonyme input:focus-visible ~ .don-anonyme-case { outline: 2px solid var(--or); outline-offset: 3px; }
.don-anonyme:has(input:checked) { background: var(--sable); border-color: var(--or); }
.don-form.est-anonyme .don-identite, .don-form:has(.don-anonyme input:checked) .don-identite { display: none; }
.don-form.est-anonyme .don-soutien, .don-form:has(.don-anonyme input:checked) .don-soutien { grid-column: 1 / -1; }
.don-form .champs { margin-top: 14px; gap: 14px 16px; }
button.don-envoi { width: 100%; height: 56px; margin-top: 22px; font-size: 14.5px; letter-spacing: .06em; box-shadow: 0 12px 24px -10px rgba(150, 108, 26, .6); }
button.don-envoi:hover { background: var(--or-appuye); }
button.don-envoi[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.don-note { margin-top: 14px; font-size: 13.5px; line-height: 21px; color: #6b6558; text-align: center; }
.don-avis { margin: 0 0 14px; padding: 12px 16px; font-size: 14.5px; line-height: 22px; color: var(--noir); background: var(--sable); border-left: 4px solid var(--or); border-radius: 8px; }
.don-avis a { color: var(--or-appuye); text-decoration: underline; }
/* message au retour de la page de paiement */
.don-message { margin: 18px 0 4px; padding: 16px 18px; font-size: 15.5px; line-height: 24px; border-radius: var(--rayon); border-left: 5px solid; }
.don-message--ok { color: #14532d; background: #ecfdf3; border-color: #16a34a; }
.don-message--attente { color: #713f12; background: #fef9c3; border-color: var(--or); }
.don-message--erreur { color: #7f1d1d; background: #fef2f2; border-color: #dc2626; }

/* notification éphémère (toast) : surgit en haut à droite, sous le menu ; une mèche blanche se consume
   pendant qu'elle reste affichée (--duree, reprise par app.js), puis elle se referme. Un clic la ferme aussi. */
.toast {
  --duree: 6s;
  position: fixed; right: 24px; top: 100px; z-index: 300; display: grid; gap: 2px; width: min(380px, calc(100vw - 32px)); overflow: hidden;
  margin: 0; padding: 16px 20px 20px 62px; font-size: 14.5px; line-height: 22px; color: #e9e9e9; text-align: left;
  background: var(--noir); border: 1px solid rgba(196, 148, 52, .7); border-radius: var(--rayon); cursor: pointer;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateX(32px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .4s;
}
.toast::before {
  content: "i"; position: absolute; left: 18px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px;
  font-family: var(--police-titres); font-size: 16px; font-weight: 700; color: var(--noir); background: var(--or); border-radius: 50%;
}
.toast strong { font-size: 15px; font-weight: 700; color: #fff; }
.toast--ok { border-color: rgba(22, 163, 74, .8); }
.toast--ok::before { content: "✓"; color: #fff; background: #16a34a; }
.toast--erreur { border-color: rgba(220, 38, 38, .8); }
.toast--erreur::before { content: "!"; color: #fff; background: #dc2626; }
.toast::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 255, 255, .25), #fff 70%); border-radius: 0 4px 4px 0;
}
.toast--visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.toast--visible::after { animation: meche var(--duree) linear forwards; }
@keyframes meche { to { transform: scaleX(0); opacity: .3; } }
@media (max-width: 600px) { .toast { right: 16px; top: 84px; } }

/* ---------- Bande sombre à points clés ---------- */

.constat { position: relative; margin-top: var(--espace); padding-block: 96px; overflow: hidden; color: #fff; background: var(--noir); }
.constat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 130% at 100% 0%, rgba(196, 148, 52, .26), transparent 62%),
    radial-gradient(38% 90% at 0% 100%, rgba(196, 148, 52, .13), transparent 62%);
}
.constat > .enveloppe { position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.constat-titre { margin-top: 8px; font-family: var(--police-titres); font-size: 36px; font-weight: 700; line-height: 45px; letter-spacing: -.005em; color: #fff; text-wrap: balance; }
.constat-p { margin-top: 16px; font-size: 17px; line-height: 28px; color: #e9e9e9; }
.constat .lien-fleche { margin-top: 24px; }
.constat-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.constat-points--4 { grid-template-columns: repeat(2, 1fr); }
.constat-point {
  padding: 28px 24px 30px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--rayon);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.constat-point::before { content: ""; display: block; width: 40px; height: 40px; background: var(--ico) center / contain no-repeat; }
.constat-point-titre { margin-top: 18px; font-size: 20px; font-weight: 700; line-height: 28px; color: #fff; }
.constat-point-texte { margin-top: 6px; font-size: 16px; line-height: 26px; color: #e3e3e3; }

/* ---------- Accueil : témoignages ---------- */

.temoignages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.temoignage { display: flex; flex-direction: column; padding: 30px 30px 28px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-grand); }
.temoignage::before { content: "“"; height: 40px; font-family: var(--police-titres); font-size: 76px; font-weight: 700; line-height: 76px; color: var(--or); }
.temoignage-texte { flex: 1; margin-top: 10px; font-size: 17px; font-weight: 500; line-height: 28px; color: var(--texte); }
.temoignage-auteur { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--trait); font-size: 16px; font-weight: 700; line-height: 24px; color: var(--noir); }
.temoignage-role { font-size: 14px; line-height: 22px; color: #5c5c5c; }
.temoignage:nth-child(2) { background: var(--noir); border-color: var(--noir); }
.temoignage:nth-child(2) .temoignage-texte, .temoignage:nth-child(2) .temoignage-auteur { color: #fff; }
.temoignage:nth-child(2) .temoignage-auteur { border-top-color: rgba(255, 255, 255, .18); }
.temoignage:nth-child(2) .temoignage-role { color: #cfcfcf; }

/* ---------- Accueil : galerie ---------- */

.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 236px; gap: 16px; }
.wp-block-image.galerie-photo { overflow: hidden; border-radius: var(--rayon); }
.wp-block-image.galerie-photo img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image.galerie-photo--grande { grid-column: span 2; grid-row: span 2; border-radius: var(--rayon-grand); }
/* six photos : trois colonnes — la grande case et deux photos à sa droite, puis une rangée de trois */
.galerie--6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .galerie--6 { grid-template-columns: repeat(2, 1fr); }
  .galerie--6 .galerie-photo:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .galerie--6 .galerie-photo--grande { grid-row: span 1; }
}

/* ---------- Accueil : questions fréquentes (bloc Détails) ---------- */

.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq-tete .titre-section { margin-top: 8px; }
.faq-tete .chapeau { max-width: 420px; margin-top: 14px; font-size: 17px; line-height: 28px; color: var(--texte-doux); }
.faq-tete .wp-block-buttons { margin-top: 26px; }
.faq-liste { display: grid; gap: 12px; }
.wp-block-details.question { padding: 0 24px; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); transition: border-color .2s ease, box-shadow .2s ease; }
.wp-block-details.question[open] { border-color: var(--or); box-shadow: 0 18px 36px -26px rgba(150, 108, 26, .55); }
.question summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0;
  font-size: 17px; font-weight: 600; line-height: 26px; color: var(--noir); cursor: pointer; list-style: none;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: ""; flex: none; width: 22px; height: 22px; background: var(--or);
  -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat;
  transition: transform .2s ease;
}
.question[open] summary::after { transform: rotate(180deg); }
.question p { padding-bottom: 22px; font-size: 16px; line-height: 26px; color: var(--texte-doux); }

.etapes--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Apparition au défilement (classes posées par app.js, jamais sans script) ---------- */

.anime .apparait { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anime .apparait.vu { opacity: 1; transform: none; }
.anime .apparait.retard-1 { transition-delay: .09s; }
.anime .apparait.retard-2 { transition-delay: .18s; }
.anime .apparait.retard-3 { transition-delay: .27s; }

/* ---------- Adaptations ---------- */

/* menu resserré : avec ses pictogrammes, la barre ne tient à l'aise qu'au-delà de 1480 px */
@media (max-width: 1480px) {
  .nav { gap: 22px; }
  .nav-liste { gap: 14px; }
  .nav-lien, .wp-block-navigation.nav-lerna { font-size: 15px; }
  .wp-block-navigation.nav-lerna .wp-block-navigation__container { gap: 14px; }
  .nav-liste li[class*="ico-"] > a::before,
  .wp-block-navigation.nav-lerna .wp-block-navigation-item[class*="ico-"] > .wp-block-navigation-item__content::before { width: 16px; height: 16px; margin-right: 6px; }
  .entete-int > .wp-block-buttons.entete-actions { margin-left: 22px; }
}

@media (max-width: 1360px) {
  :root { --entete-h: 108px; }
  .entete-int { width: min(100% - 64px, 1366px); }
  .logo-marque { width: 50px; height: 50px; }
  .logo-nom { font-size: 43px; line-height: 34px; }
  .logo-sous { font-size: 14.48px; }
  .enveloppe { width: min(100% - 80px, 1328px); }
  .hero-int { width: min(100% - 96px, 1312px); }
  .domaines-grille { gap: 22px; }
  .phare-atouts { gap: 26px; }
  .lettre-bande { padding: 0 56px; }
  .lettre-bande .wpcf7 { width: 460px; }
  .pied-int { width: min(100% - 120px, 1266px); }
  .pied-grille { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
  .constat > .enveloppe { gap: 44px; }
  .faq { gap: 48px; }
}

/* entre le menu mobile et les grands écrans, la barre est trop étroite : les pictogrammes restent dans les sous-menus seulement */
@media (min-width: 1181px) and (max-width: 1300px) {
  .nav-liste { gap: 22px; }
  .wp-block-navigation.nav-lerna .wp-block-navigation__container { gap: 22px; }
  .nav-liste > li[class*="ico-"] > .nav-lien::before,
  .wp-block-navigation.nav-lerna .wp-block-navigation__container > .wp-block-navigation-item[class*="ico-"] > .wp-block-navigation-item__content::before { display: none; }
}

@media (max-width: 1180px) {
  :root { --entete-h: 88px; }
  html { scroll-padding-top: 100px; }
  .menu-bouton { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 20px; padding: 12px 32px 28px;
    max-height: calc(100vh - var(--entete-h)); max-height: calc(100dvh - var(--entete-h)); overflow-y: auto;
    background: var(--blanc); border-top: 1px solid var(--trait); box-shadow: 0 24px 40px -24px rgba(20, 20, 20, .25);
  }
  .entete.menu-ouvert .nav { display: flex; }
  .entete.menu-ouvert .menu-bouton span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .entete.menu-ouvert .menu-bouton span:nth-child(2) { opacity: 0; }
  .entete.menu-ouvert .menu-bouton span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-liste > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--trait); }
  .nav-lien { padding: 13px 0; font-size: 17px; }
  .nav-liste li[class*="ico-"] > a::before { width: 19px; height: 19px; margin-right: 12px; }
  .nav-lien::after { display: none; }
  .nav-lien.actif { color: var(--or); }
  .nav-chevron { width: 44px; height: 44px; }
  .sous-menu {
    position: static; display: none; flex-basis: 100%; min-width: 0; padding: 0 0 12px 8px;
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav-parent.ouvert .sous-menu { display: block; }
  .nav-parent:hover .nav-chevron { transform: none; }
  .nav-parent.ouvert .nav-chevron { transform: rotate(180deg); }
  .nav .wp-block-buttons { align-self: flex-start; }
  /* bloc Navigation : le panneau mobile dès 1180 px (WordPress ne le déclenche qu'à 600 px) */
  .wp-block-navigation.nav-lerna .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .wp-block-navigation.nav-lerna .wp-block-navigation__responsive-container-open { display: flex; }
  .entete-int > .wp-block-navigation.nav-lerna { order: 3; margin-left: 16px; }
  .entete-int > .wp-block-buttons.entete-actions { order: 2; margin-left: auto; }

  .bandeau-int { padding: calc(var(--entete-h) + 44px) 0 64px; }
  .bandeau-titre { font-size: 40px; line-height: 49px; }
  /* sur tablette, le titre court sur une plus grande part de la largeur : le voile clair s'étend avec lui */
  .bandeau::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .6) 22%, rgba(255, 255, 255, 0) 44%),
      linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .84) 45%, rgba(255, 255, 255, .58) 72%, rgba(255, 255, 255, .22) 100%);
  }
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .duo--inverse .duo-visuel, .duo--inverse .mosaique { order: 0; }
  .wp-block-image.duo-visuel img { height: 360px; }
  .piliers { grid-template-columns: repeat(2, 1fr); }
  .contact-grille { grid-template-columns: 1fr; }
  .hero { height: 680px; }
  .wp-block-image.hero-photo { left: 30%; width: 150%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .72) 10%, rgba(255, 255, 255, .3) 21%, rgba(255, 255, 255, 0) 32%),
      linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .86) 28%, rgba(255, 255, 255, .66) 44%, rgba(255, 255, 255, .3) 58%, rgba(255, 255, 255, .06) 70%, rgba(255, 255, 255, 0) 80%);
  }
  .hero-titre { font-size: 42px; line-height: 51px; }
  .domaines-grille { grid-template-columns: repeat(2, 1fr); }
  .domaines-grille--3 { grid-template-columns: repeat(3, 1fr); }
  .domaines-grille--2 { grid-template-columns: repeat(2, 1fr); }
  .phare-carte { grid-template-columns: 1fr; }
  .phare-texte { padding: 32px 32px 36px; }
  .phare-intro { max-width: 620px; }
  .wp-block-image.phare-visuel { order: -1; height: 300px; }
  .phare--affiche .phare-carte { grid-template-columns: 1fr; }
  .phare--affiche .wp-block-image.phare-visuel { height: auto; padding: 32px 28px 0; }
  .phare--affiche .phare-texte { padding-block: 28px 36px; }
  .wp-block-image.phare-visuel img { -webkit-mask-image: none; mask-image: none; }
  .wp-block-image.appel-visuel { width: 34%; }
  .appel .wp-block-buttons { margin-left: 32px; }
  .partenaires-rangee { padding-inline: 0; }
  .partenaire-carte, .membre { flex-basis: calc((100% - 28px) / 2); }
  .lettre-bande { flex-wrap: wrap; gap: 24px 0; padding: 32px 40px; }
  .lettre-texte { flex: 1; margin-left: 32px; }
  .lettre-bande .wpcf7 { width: 100%; margin-left: 0; }
  .pied-grille { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .mosaique { width: min(100%, 640px); }
  .constat, .paiement { padding-block: 72px; }
  .paiement > .enveloppe { grid-template-columns: 1fr; gap: 48px; }
  .don-carte { width: min(100%, 560px); }
  .paiement-titre { font-size: 34px; line-height: 42px; }
  .constat > .enveloppe { grid-template-columns: 1fr; gap: 40px; }
  .etapes--4 { grid-template-columns: repeat(2, 1fr); }
  .galerie { grid-auto-rows: 190px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .enveloppe { width: min(100% - 48px, 1328px); }
  .hero-int { width: min(100% - 48px, 1312px); }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, .6) 16%, rgba(255, 255, 255, 0) 34%),
      linear-gradient(90deg, rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .74) 45%, rgba(255, 255, 255, .4) 80%, rgba(255, 255, 255, .22) 100%);
  }
  .chiffres-grille { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .chiffre:nth-child(3)::after { display: none; }
  .bandeau-int { width: min(100% - 48px, 1312px); }
  .bandeau::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, .6) 22%, rgba(255, 255, 255, 0) 44%),
      linear-gradient(90deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .78) 50%, rgba(255, 255, 255, .5) 100%);
  }
  :root { --espace: 64px; }
  .encarts, .etapes, .piliers--3 { grid-template-columns: 1fr; }
  .partenaire-carte { flex-basis: 100%; }
  .membre { flex-basis: min(100%, 420px); }
  .encart--large { flex-direction: column; align-items: flex-start; gap: 24px; }
  .wp-block-post-template.actus-grille { grid-template-columns: 1fr; gap: 24px; }
  .wp-block-post-title.actu-titre { max-width: none; }
  .appel-carte, .appel--sobre .appel-carte { flex-wrap: wrap; gap: 24px; padding: 32px; }
  .appel-carte::before { width: 84px; height: 84px; }
  .wp-block-image.appel-visuel { width: 100%; opacity: .32; }
  .wp-block-image.appel-visuel::after { display: none; }
  .appel-texte { flex: 1; width: auto; min-width: 240px; margin-left: 0; }
  .appel .wp-block-buttons { margin-left: 0; }
  .pied-int { width: min(100% - 48px, 1266px); }
  .article-int { width: min(100% - 48px, 860px); }
  .temoignages, .domaines-grille--3, .domaines-grille--2 { grid-template-columns: 1fr; gap: 20px; }
  .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 12px; }
}

@media (max-width: 782px) {
  .admin-bar .entete { top: 46px; }
}

@media (max-width: 600px) {
  :root { --entete-h: 76px; --espace: 52px; }
  .entete-int { width: min(100% - 40px, 1366px); }
  .logo { gap: 4px; }
  .logo-marque { width: 40px; height: 40px; }
  .logo-nom { font-size: 32px; line-height: 26px; }
  .logo-sous { margin-bottom: 4px; font-size: 10.78px; line-height: 10px; }
  .menu-bouton { width: 42px; height: 42px; }
  .nav { padding-inline: 20px; }
  .entete-int > .wp-block-buttons.entete-actions { display: none; }
  .entete-int > .wp-block-navigation.nav-lerna { margin-left: auto; }

  .enveloppe { width: min(100% - 40px, 1328px); }
  .hero { height: auto; }
  .hero-int { width: min(100% - 40px, 1312px); height: auto; padding: calc(var(--entete-h) + 36px) 0 104px; }
  .hero-titre { font-size: 33px; line-height: 41px; text-wrap: balance; }
  .hero-titre br, .phare-atout br { display: none; }
  .hero-texte { margin-top: 20px; }
  .wp-block-image.hero-photo { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .wp-block-image.hero-photo img { object-position: 46% 50%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, .74) 16%, rgba(255, 255, 255, .64) 64%, rgba(255, 255, 255, .28) 100%);
  }

  .bandeau-int { width: min(100% - 40px, 1312px); padding: calc(var(--entete-h) + 36px) 0 52px; }
  .bandeau-titre { font-size: 31px; line-height: 39px; }
  .bandeau::after { background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .84) 22%, rgba(255, 255, 255, .8) 100%); }
  .duo-titre { font-size: 27px; line-height: 34px; }
  .wp-block-image.duo-visuel img { height: 250px; }
  .piliers { grid-template-columns: 1fr; gap: 20px; }
  .encart { padding: 30px 24px 32px; }
  .encart--large { padding: 30px 24px; }
  .encart-titre, .coordonnees-titre, .formulaire-titre { font-size: 23px; line-height: 30px; }
  .coordonnees, .formulaire { padding: 28px 22px 30px; }
  .champs { grid-template-columns: 1fr; }
  .formulaire input.btn { width: 100%; }
  .chiffre { padding: 0 8px; }
  .chiffre-nombre { font-size: 28px; line-height: 34px; }
  .chiffre-libelle { font-size: 16px; line-height: 23px; }
  .titre-section { font-size: 27px; line-height: 34px; }
  .domaines-grille { grid-template-columns: 1fr; gap: 20px; }
  .tete-section + * { margin-top: 28px; }
  .phare-texte { padding: 26px 22px 30px; }
  .phare-titre { font-size: 30px; line-height: 38px; }
  .phare-atouts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .phare-atout { white-space: normal; }
  .wp-block-image.phare-visuel { height: 220px; }
  .phare--affiche .wp-block-image.phare-visuel { height: auto; padding: 24px 16px 0; }
  .phare .wp-block-button__link, .actus-suite .wp-block-button__link { padding: 0 24px; }
  .appel-carte, .appel--sobre .appel-carte { padding: 28px 22px; }
  .appel-titre { font-size: 27px; line-height: 34px; white-space: normal; }
  .partenaires-piste .partenaire { width: 150px; height: 56px; }
  .partenaires-piste .sigle-fhnw, .partenaires-piste .sigle-viinnim-soo { width: 190px; }
  .defile .partenaires-piste .partenaire { margin-right: 52px; }
  .defile .partenaires-piste { animation-duration: 28s; }
  .lettre-bande { padding: 28px 22px; }
  .lettre-bande::before { width: 54px; height: 54px; }
  .lettre-texte { margin-left: 18px; }
  .lettre-form { flex-direction: column; height: auto; gap: 10px; background: transparent; }
  .lettre-form .wpcf7-form-control-wrap { flex: none; }
  .lettre-form input:not(.btn) { height: 46px; border-radius: 999px; background: var(--blanc); }
  .lettre-form input.btn { width: 100%; height: 46px; }
  .pied-int { width: min(100% - 40px, 1266px); }
  .pied-grille { grid-template-columns: 1fr; gap: 28px; }
  .pied-bas { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wp-block-list.pied-legal { flex-wrap: wrap; gap: 6px 24px; }
  .article-int { width: min(100% - 40px, 860px); }
  .hero-etiquette { margin-bottom: 14px; padding: 5px 13px 5px 10px; gap: 8px; font-size: 12px; letter-spacing: 0; }
  .hero .wp-block-buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .wp-block-button__link { width: 100%; }
  .chiffres { margin-top: -64px; }
  .chiffres-grille { padding: 26px 6px 28px; }
  .mosaique { padding: 0 28px 44px 0; }
  .wp-block-image.mosaique-grande img { height: 290px; }
  .wp-block-image.mosaique-petite { border-width: 4px; }
  .wp-block-image.mosaique-petite img { height: 140px; }
  .mosaique-pastille { left: 14px; top: 14px; padding: 9px 14px 10px; }
  .mosaique-pastille strong { font-size: 24px; line-height: 28px; }
  .chiffres--mots .chiffre-nombre { font-size: 22px; line-height: 28px; }
  .bandeau:has(+ .chiffres) .bandeau-int { padding-bottom: 116px; }
  .constat, .paiement { padding-block: 56px; }
  .paiement-titre { font-size: 28px; line-height: 36px; }
  .moyens-liste { grid-template-columns: 1fr; }
  .don-carte { padding: 26px 20px 24px; }
  .don-titre { font-size: 23px; line-height: 30px; }
  .don-montant span { font-size: 18px; }
  .constat-titre { font-size: 28px; line-height: 36px; }
  .constat-points { grid-template-columns: 1fr; gap: 14px; }
  .constat-point { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 20px; }
  .constat-point::before { grid-row: 1 / 3; align-self: center; }
  .constat-point-titre { margin-top: 0; }
  .etapes--4 { grid-template-columns: 1fr; }
  .temoignage { padding: 24px 22px; }
  .galerie { grid-auto-rows: 132px; }
  .wp-block-details.question { padding: 0 18px; }
  .question summary { font-size: 16px; }
}

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