/*
Theme Name: Fondation Zacko
Theme URI: https://www.fondationjustingournazacko.org/
Author: HMA GROUPE
Description: Thème bloc sur mesure de la Fondation Justin Gourna Zacko — 100 % Gutenberg, sans constructeur de pages.
Version: 1.3.1
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fjgz
*/

/* ==========================================================================
   1. Jetons
   ========================================================================== */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --vert-nuit: #0E2A18;
  --vert-nuit-2: #15361F;
  --citron: #D6F36A;
  --citron-fonce: #C3E04F;
  --blanc: #FFFFFF;
  --gris-clair: #F3F4F1;
  --filet: #E2E5DF;
  --encre: #0B0F0C;
  --gris-texte: #565C57;
  --blanc-doux: rgba(255, 255, 255, .74);
  --police: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --gouttiere: clamp(16px, 3.4vw, 48px);
  --largeur: 1320px;
  --rayon: 14px;
  --rayon-l: 20px;
  --section-y: clamp(60px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  --fleche-droite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; hyphens: none; }
:focus-visible { outline: 3px solid var(--citron); outline-offset: 3px; border-radius: 4px; }
.sombre :focus-visible, .site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible { outline-color: var(--citron); }
.clair :focus-visible, .site-footer :focus-visible { outline-color: var(--vert-nuit); }
::selection { background: var(--citron); color: var(--encre); }

/* Neutralisation de l'espacement automatique — à spécificité nulle */
:where(.wp-block-group) > :where(*),
:where(.wp-block-buttons),
:where(.wp-site-blocks) > :where(*) { margin-block: 0; }
.wp-site-blocks { padding: 0; }
figure.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; }

.screen-reader-text, .sr-only {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
  top: 12px; left: 12px; padding: 12px 18px; background: var(--citron); color: var(--encre);
  border-radius: 999px; font-weight: 600; text-decoration: none;
}

/* ==========================================================================
   3. Boutons
   ========================================================================== */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button { display: inline-block; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--police); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  padding: 7px 7px 7px 22px; min-height: 48px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.wp-block-button .wp-block-button__link::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--encre) center / 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6F36A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease);
}
.wp-block-button .wp-block-button__link:hover::after { transform: rotate(45deg); }
.wp-block-button.b-citron .wp-block-button__link { background: var(--citron); color: var(--encre); }
.wp-block-button.b-citron .wp-block-button__link:hover { background: var(--blanc); }
.wp-block-button.b-contour .wp-block-button__link { background: transparent; color: currentColor; border-color: currentColor; }
.wp-block-button.b-contour .wp-block-button__link::after { background-color: var(--citron); background-image: var(--fleche-noire, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0F0C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E")); }
.wp-block-button.b-contour .wp-block-button__link:hover { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.clair .wp-block-button.b-citron .wp-block-button__link:hover { background: var(--vert-nuit); color: var(--blanc); }
.wp-block-button.b-sombre .wp-block-button__link { background: var(--vert-nuit); color: var(--blanc); }
.wp-block-button.b-sombre .wp-block-button__link::after { background-color: var(--citron); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0F0C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.wp-block-button.b-sombre .wp-block-button__link:hover { background: var(--encre); }
/* bouton compact (en-tête) */
.wp-block-button.b-compact .wp-block-button__link { min-height: 42px; padding: 0 22px; font-size: 14px; }
.wp-block-button.b-compact .wp-block-button__link::after { content: none; }

/* ==========================================================================
   4. Structure des sections
   ========================================================================== */
.section { padding: var(--section-y) var(--gouttiere); position: relative; }
.section > * { max-width: var(--largeur); margin-inline: auto !important; }
.sombre { background: var(--vert-nuit); color: var(--blanc); }
.clair { background: var(--blanc); color: var(--encre); }
.gris { background: var(--gris-clair); color: var(--encre); }

.entete-section {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 24px 64px; align-items: start; margin-bottom: clamp(36px, 4.5vw, 64px) !important;
}
.entete-section h2,
.titre-section {
  font-size: clamp(27px, 3vw, 42px); font-weight: 600; text-transform: uppercase;
  line-height: 1.1; letter-spacing: -.02em; max-width: 22ch;
}
.entete-texte { font-size: 14px; line-height: 1.6; color: var(--gris-texte); max-width: 36ch; justify-self: end; padding-top: 6px; }
.sombre .entete-texte { color: var(--blanc-doux); }
@media (max-width: 800px) {
  .entete-section { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 32px !important; }
  .entete-section .entete-texte { justify-self: start; padding-top: 0; max-width: 46ch; font-size: 15px; }
}

.etiquette {
  display: inline-flex; align-items: center; gap: 14px; width: fit-content;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3;
  color: var(--citron); padding: 0; background: none; border: 0;
}
.etiquette::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: currentColor; flex: none; }
.clair .etiquette, .gris .etiquette { color: var(--vert-nuit); }
@media (max-width: 600px) { .etiquette { font-size: 11px; letter-spacing: .1em; gap: 10px; } .etiquette::before { width: 24px; } }
.hero-titre, .hero-texte, .page-hero-titre, .page-hero-texte { text-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 2px 18px rgba(0, 0, 0, .35); }

/* ==========================================================================
   5. En-tête
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--gouttiere);
  transition: background-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { position: absolute; } }
.site-header.est-defile { background: rgba(14, 42, 24, .96); padding-block: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
/* pas de backdrop-filter sur l'en-tête : il casserait le panneau mobile en position fixe */
.entete-interne {
  max-width: var(--largeur); margin-inline: auto !important;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header .wp-block-site-logo { flex: none; line-height: 0; }
.site-header .wp-block-site-logo img { width: auto; height: 54px; max-width: none; filter: brightness(0) invert(1); }
.site-header .wp-block-site-logo a { display: inline-block; }

/* Navigation principale */
.wp-block-navigation.nav-principale { font-size: 14px; font-weight: 500; color: var(--blanc); }
.wp-block-navigation.nav-principale .wp-block-navigation__container {
  display: flex; align-items: center; gap: 2px; padding: 5px; margin: 0; list-style: none;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
}
.wp-block-navigation.nav-principale .wp-block-navigation-item { background: transparent !important; }
.wp-block-navigation.nav-principale .wp-block-navigation-item__content {
  display: block; padding: 10px 18px; border-radius: 999px; color: var(--blanc) !important; text-decoration: none; line-height: 1.2;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.wp-block-navigation.nav-principale .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, .14); }
.wp-block-navigation.nav-principale .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation.nav-principale .wp-block-navigation-item__content[aria-current="page"] { background: var(--citron); color: var(--encre) !important; font-weight: 600; }
.wp-block-navigation.nav-principale .wp-block-navigation__responsive-container-open {
  color: var(--blanc); width: 48px; height: 48px; border-radius: 50%;
  background: var(--citron); color: var(--encre); border: 0; justify-content: center; align-items: center;
}
.wp-block-navigation.nav-principale .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; }

/* Panneau mobile */
.wp-block-navigation.nav-principale .wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important; inset: 0 !important; height: 100dvh; z-index: 100000;
  background: var(--vert-nuit) !important; color: var(--blanc) !important;
  padding: 22px var(--gouttiere) 28px !important; overflow-y: auto;
}
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__responsive-dialog { height: 100%; }
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 0 !important; height: 100%; display: flex !important; flex-direction: column; align-items: stretch !important; gap: 0;
}
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__responsive-container-content::before {
  content: ""; display: block; width: 168px; height: 50px; flex: none; margin-bottom: 44px;
  background: url("assets/img/logo.png") left center / contain no-repeat; filter: brightness(0) invert(1);
}
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__container {
  background: none; border: 0; border-radius: 0; padding: 0; gap: 0 !important; width: 100%;
  flex-direction: column; align-items: stretch !important;
}
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item__content {
  display: flex !important; align-items: center; justify-content: space-between; width: 100%;
  font-size: 26px; font-weight: 600; letter-spacing: -.02em; padding: 18px 2px !important; border-radius: 0; background: none !important;
}
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item__content::after {
  content: ""; width: 22px; height: 22px; flex: none; background: currentColor; opacity: .55;
  -webkit-mask: var(--fleche) center / contain no-repeat; mask: var(--fleche) center / contain no-repeat;
}
.wp-block-navigation.nav-principale .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--citron) !important; }
.wp-block-navigation.nav-principale .is-menu-open .current-menu-item > .wp-block-navigation-item__content::after { opacity: 1; }
.wp-block-navigation.nav-principale .is-menu-open .lien-don { border-bottom: 0; margin: 4px 0; }
.wp-block-navigation.nav-principale .is-menu-open .lien-don > .wp-block-navigation-item__content {
  justify-content: center; gap: 12px; margin-top: 26px; padding: 16px 22px !important; border-radius: 999px;
  background: var(--citron) !important; color: var(--encre) !important; font-size: 18px;
}
.wp-block-navigation.nav-principale .is-menu-open .lien-don > .wp-block-navigation-item__content::after { opacity: 1; }
.wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__responsive-container-content::after {
  content: "Bouca, République centrafricaine\A +236 72 20 04 02\A contact@fondationjustingournazacko.org";
  white-space: pre; margin-top: auto; padding-top: 36px; font-size: min(14px, calc((100vw - 40px) / 21)); line-height: 1.8; color: var(--blanc-doux);
}
.wp-block-navigation.nav-principale .wp-block-navigation__responsive-container-close {
  color: var(--blanc); top: 16px !important; right: var(--gouttiere) !important; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center;
}
@media (prefers-reduced-motion: no-preference) {
  .wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item { animation: menu-entree .5s var(--ease) both; }
  .wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: .05s; }
  .wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: .1s; }
  .wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: .15s; }
  .wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: .2s; }
}
@keyframes menu-entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.site-header .bouton-entete { flex: none; }
/* menu burger dès 1024 px (le cœur ne bascule qu'à 600 px) */
@media (min-width: 600px) and (max-width: 1023px) {
  .wp-block-navigation.nav-principale .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .wp-block-navigation.nav-principale .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
  .wp-block-navigation.nav-principale .wp-block-navigation__responsive-container.is-menu-open { position: fixed !important; inset: 0; z-index: 100000; display: flex; }
  .wp-block-navigation.nav-principale .wp-block-navigation__responsive-container-close { display: flex !important; }
}
@media (max-width: 1023px) {
  .maquette-burger .wp-block-navigation__container { display: none; }
}
@media (max-width: 960px) {
  .site-header .bouton-entete { display: none; }
  .site-header .wp-block-site-logo img { height: 40px; }
}

/* ==========================================================================
   6. Héros d'accueil
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, min(100svh, 940px));
  display: flex; align-items: center;
  padding: 140px var(--gouttiere) 96px;
  color: var(--blanc); background: var(--vert-nuit);
}
.hero .hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 20, 12, .05) 0%, rgba(8, 20, 12, .3) 42%, rgba(8, 20, 12, .78) 100%),
    linear-gradient(180deg, rgba(8, 20, 12, .45) 0%, rgba(8, 20, 12, 0) 26%, rgba(8, 20, 12, 0) 70%, rgba(8, 20, 12, .4) 100%);
}
.hero-contenu {
  width: 100%; max-width: var(--largeur); margin-inline: auto !important;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding-left: min(48%, 640px); margin-top: 6vh !important;
}
.hero-titre { font-size: clamp(40px, 5vw, 74px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; max-width: 13ch; }
.hero-texte { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .9); max-width: 40ch; }
.hero-actions { margin-top: 6px !important; }
@media (min-width: 901px) {
  .hero .hero-photo img { width: 122%; max-width: none; margin-left: -20%; }
}
@media (max-width: 900px) {
  .hero { align-items: flex-end; padding-bottom: 64px; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 20, 12, .5) 0%, rgba(8, 20, 12, .1) 30%, rgba(8, 20, 12, .78) 100%); }
  .hero-contenu { padding-left: 0; margin-top: 0 !important; }
}

/* Bandeau des domaines */
.bandeau { background: var(--vert-nuit); color: var(--blanc); padding: 0 var(--gouttiere); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bandeau-liste {
  max-width: var(--largeur); margin-inline: auto !important;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bandeau-item {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 30px 10px;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; position: relative;
}
.bandeau-item + .bandeau-item::after { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: rgba(255, 255, 255, .14); }
.bandeau-item::before {
  content: ""; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--citron) center / 20px no-repeat;
  -webkit-mask: none; mask: none;
  background-image: var(--ico);
}
.ico-sante { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E2A18'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E"); }
.ico-education { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E2A18'%3E%3Cpath d='M12 3 1 9l11 6 9-4.9V17h2V9L12 3zm-7 9.2v4L12 20l7-3.8v-4L12 16l-7-3.8z'/%3E%3C/svg%3E"); }
.ico-agriculture { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E2A18'%3E%3Cpath d='M12 22V11c0-4 3-7 8-7 0 5-3 8-7 8h-1zm-1-6C6.6 16 4 13.4 4 9c4.4 0 7 2.6 7 7zm0 0v6h2'/%3E%3C/svg%3E"); }
.ico-transformation { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E2A18'%3E%3Cpath d='M3 10h18l-2 10a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2L3 10zm4-6c0-1 1-2 2-2s2 1 2 2-1 2-2 2-2-1-2-2zm6 1c0-1 .9-2 2-2s2 1 2 2-.9 2-2 2-2-1-2-2z'/%3E%3C/svg%3E"); }
.ico-formation { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E2A18'%3E%3Cpath d='M4 4h16v11H4zM2 17h20v2H2zm6-9h8v2H8zm0 3h5v2H8z'/%3E%3C/svg%3E"); }
.ico-communaute { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230E2A18'%3E%3Ccircle cx='8' cy='7' r='3.2'/%3E%3Ccircle cx='17' cy='8' r='2.6'/%3E%3Cpath d='M1.5 20c0-3.9 2.9-7 6.5-7s6.5 3.1 6.5 7zm13.7 0c0-2-.6-3.9-1.7-5.4.9-.6 2-.9 3.1-.9 3 0 5.4 2.6 5.4 6.3z'/%3E%3C/svg%3E"); }
@media (max-width: 1100px) {
  .bandeau-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bandeau-item:nth-child(4)::after { display: none; }
  .bandeau-item:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 640px) {
  .bandeau { padding: 8px var(--gouttiere); }
  .bandeau-item { flex-direction: column; gap: 10px; padding: 20px 4px; font-size: 13px; }
  .bandeau-item::before { width: 46px; height: 46px; background-size: 22px; }
}

/* ==========================================================================
   7. Introduction + chiffres
   ========================================================================== */
.intro-grille { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 18px; align-items: stretch; }
.intro-photo { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 4.4; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.intro-photo:hover img { transform: scale(1.04); }
.chiffres { display: flex; flex-direction: column; justify-content: space-between; gap: 0; padding: 0 0 0 26px; }
.chiffre { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.chiffre:first-child { border-top: 0; padding-top: 0; }
.chiffre-valeur { font-size: clamp(42px, 4.2vw, 60px); font-weight: 300; line-height: 1; letter-spacing: -.03em; word-spacing: .14em; white-space: nowrap; }
.chiffre-titre { font-size: 16px; font-weight: 500; }
.chiffre-texte { font-size: 13px; line-height: 1.5; color: var(--blanc-doux); max-width: 30ch; }
.clair .chiffre-texte { color: var(--gris-texte); }
@media (max-width: 960px) {
  .intro-grille { grid-template-columns: 1fr 1fr; }
  .chiffres { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 8px 0 0; }
  .chiffre, .chiffre:first-child { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--rayon); padding: 22px; background: var(--vert-nuit-2); }
}
@media (max-width: 640px) {
  .intro-grille { grid-template-columns: 1fr 1fr; gap: 10px; }
  .intro-photo { aspect-ratio: 3 / 4; }
  .chiffres { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .chiffre, .chiffre:first-child { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; padding: 18px; }
  .chiffre-valeur { grid-row: span 2; font-size: 36px; white-space: nowrap; }
}

/* ==========================================================================
   8. Grande photo
   ========================================================================== */
.grande-photo { position: relative; border-radius: var(--rayon-l); overflow: hidden; }
.grande-photo img { width: 100%; aspect-ratio: 16 / 7.4; object-fit: cover; }
.grande-photo figcaption,
.grande-photo .wp-element-caption {
  position: absolute; left: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px); margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--blanc);
  background: rgba(14, 42, 24, .55); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.grande-photo figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--citron); }
@media (max-width: 700px) { .grande-photo img { aspect-ratio: 4 / 3.6; } .grande-photo figcaption { font-size: 12px; padding: 8px 14px; } }

/* ==========================================================================
   9. Cartes d'initiatives
   ========================================================================== */
.cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 44px) clamp(16px, 1.8vw, 24px); }
.carte { display: flex; flex-direction: column; gap: 10px; }
.carte-photo { border-radius: var(--rayon); overflow: hidden; margin-bottom: 8px !important; }
.carte-photo img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; transition: transform 1.2s var(--ease); }
.carte:hover .carte-photo img { transform: scale(1.04); }
.carte-titre { font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.carte-titre a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.carte-titre a:hover { background-size: 100% 1px; }
.carte-texte { font-size: 14px; line-height: 1.55; color: var(--blanc-doux); max-width: 60ch; }
.clair .carte-texte, .gris .carte-texte { color: var(--gris-texte); }
@media (max-width: 700px) { .cartes { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ==========================================================================
   10. FAQ (blocs Détails natifs)
   ========================================================================== */
.faq-liste { display: flex; flex-direction: column; }
.faq-liste .wp-block-details { border-bottom: 1px solid var(--filet); padding: 0; margin: 0; }
.faq-liste .wp-block-details summary {
  list-style: none; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: clamp(16px, 1.35vw, 19px); font-weight: 500; line-height: 1.35;
}
.faq-liste .wp-block-details summary::-webkit-details-marker { display: none; }
.faq-liste .wp-block-details summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--encre); background: transparent center / 16px no-repeat; background-image: var(--fleche-droite);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.faq-liste .wp-block-details[open] summary { padding-bottom: 10px; }
.faq-liste .wp-block-details[open] summary::after {
  background-color: var(--encre); transform: rotate(-45deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.faq-liste .wp-block-details summary:hover::after { background-color: var(--citron); border-color: var(--citron); }
.faq-liste .wp-block-details > p { font-size: 14px; line-height: 1.6; color: var(--gris-texte); max-width: 68ch; padding: 0 60px 26px 0; }
.faq-liste .wp-block-details:first-child { border-top: 0; }

/* ==========================================================================
   11. Histoires (carrousel)
   ========================================================================== */
.temoignages {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.8fr) minmax(0, .9fr);
  gap: clamp(14px, 1.8vw, 24px); align-items: center;
}
.temoignage {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  background: var(--gris-clair); border-radius: var(--rayon-l); padding: 22px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.temoignage-photo { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; }
.temoignage-photo img { width: 100%; height: 100%; object-fit: cover; }
.temoignage-corps { display: flex; flex-direction: column; gap: 6px; }
.temoignage-nom { font-size: 15px; font-weight: 600; }
.temoignage-role { font-size: 12px; color: var(--gris-texte); margin-top: -4px !important; }
.temoignage-titre { display: none; }
.temoignage-texte { font-size: 14px; line-height: 1.55; color: var(--gris-texte); margin-top: 8px !important; }
.temoignage-num { font-size: 13px; color: #8A8F8B; align-self: flex-end; margin-top: 6px !important; }

/* carte mise en avant */
.temoignage.est-actif {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px);
  background: var(--blanc); border: 1px solid var(--filet); padding: clamp(14px, 1.6vw, 20px);
  box-shadow: 0 30px 60px -30px rgba(14, 42, 24, .25);
}
.temoignage.est-actif .temoignage-photo { width: 100%; height: 100%; min-height: 300px; border-radius: var(--rayon); }
.temoignage.est-actif .temoignage-corps { padding: 14px 6px 6px 0; }
.temoignage.est-actif .temoignage-corps::before {
  content: "\201C"; font-size: 72px; line-height: .7; color: #D3D7D1; font-weight: 700; height: 34px; margin-bottom: 10px;
}
.temoignage.est-actif .temoignage-titre { display: block; font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; line-height: 1.25; color: var(--encre); margin-top: 14px !important; }
.temoignage.est-actif .temoignage-texte { font-size: 15px; }
.temoignage.est-actif .temoignage-num { margin-top: auto !important; padding-top: 18px; font-size: 22px; font-weight: 300; }
.temoignage.pos-1 { order: 1; }
.temoignage.pos-2 { order: 2; }
.temoignage.pos-3 { order: 3; }

.temoignages-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px !important; }
.fleche-prec, .fleche-suiv {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--encre); cursor: pointer;
  font-size: 0; color: transparent; overflow: hidden; position: relative;
  background: center / 18px no-repeat; background-image: var(--fleche-droite);
  transition: background-color .25s var(--ease);
}
.fleche-prec { transform: scaleX(-1); }
.fleche-prec:hover, .fleche-suiv:hover { background-color: var(--citron); border-color: var(--citron); }
@media (max-width: 1000px) {
  .temoignages { grid-template-columns: 1fr; }
  .temoignage:not(.est-actif) { display: none; }
  .temoignage.est-actif { grid-template-columns: 1fr; }
  .temoignage.est-actif .temoignage-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .temoignages-nav { justify-content: center; }
}

/* ==========================================================================
   12. Héros des pages internes
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--blanc); background: var(--vert-nuit);
  min-height: clamp(440px, 62vh, 620px); display: flex; align-items: flex-end;
  padding: 150px var(--gouttiere) clamp(48px, 6vw, 80px);
}
.page-hero .hero-photo { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 20, 12, .55) 0%, rgba(8, 20, 12, .25) 40%, rgba(8, 20, 12, .82) 100%);
}
.page-hero-contenu {
  width: 100%; max-width: var(--largeur); margin-inline: auto !important;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px 64px; align-items: end;
}
.page-hero-contenu .etiquette { grid-column: 1 / -1; }
.page-hero-titre { font-size: clamp(36px, 5vw, 72px); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.page-hero-texte { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .9); max-width: 38ch; justify-self: end; }
.page-hero.sans-photo { min-height: 0; padding-top: 170px; }
@media (max-width: 800px) {
  .page-hero-contenu { grid-template-columns: 1fr; }
  .page-hero-texte { justify-self: start; }
}

/* ==========================================================================
   13. Blocs de pages internes
   ========================================================================== */
/* Récit en deux colonnes */
.recit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.recit-photo { border-radius: var(--rayon-l); overflow: hidden; }
.recit-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.recit-texte { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.recit-texte p:not(.etiquette) { color: var(--gris-texte); font-size: 16px; max-width: 54ch; }
.sombre .recit-texte p:not(.etiquette) { color: var(--blanc-doux); }
.recit.inverse .recit-photo { order: 2; }
@media (max-width: 860px) {
  .recit { grid-template-columns: 1fr; }
  .recit.inverse .recit-photo { order: 0; }
  .recit-photo img { aspect-ratio: 4 / 3; }
}

/* Cartes texte numérotées */
.piliers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.pilier {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--rayon-l); background: var(--vert-nuit-2); border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease), background-color .4s var(--ease);
}
.pilier:hover { transform: translateY(-4px); background: #1A4127; }
.pilier-num { font-size: 13px; color: var(--citron); font-weight: 600; letter-spacing: .04em; }
.pilier-titre { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; }
.pilier-texte { font-size: 14px; line-height: 1.6; color: var(--blanc-doux); }
.clair .pilier, .gris .pilier { background: var(--gris-clair); border-color: var(--filet); }
.clair .pilier:hover { background: #ECEEE9; }
.clair .pilier-num { color: var(--vert-nuit); }
.clair .pilier-texte { color: var(--gris-texte); }
@media (max-width: 860px) { .piliers { grid-template-columns: 1fr; } }

/* Galerie terrain — composition fixe par taille d'écran, grille toujours pleine */
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 17vw, 250px); grid-auto-flow: row dense; gap: clamp(10px, 1.2vw, 16px); }
.galerie > .wp-block-image { border-radius: var(--rayon); overflow: hidden; grid-column: auto; grid-row: auto; min-height: 0; }
.galerie .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.galerie .wp-block-image:hover img { transform: scale(1.05); }
/* ordinateur : 4 colonnes × 3 rangées */
.galerie > :nth-child(1), .galerie > :nth-child(3) { grid-row: span 2; }
.galerie > :nth-child(2), .galerie > :nth-child(6) { grid-column: span 2; }
@media (min-width: 761px) { .galerie > :nth-child(6) img { object-position: center 22%; } }
/* tablette et mobile : 2 colonnes × 6 rangées */
@media (max-width: 760px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 38vw, 200px); gap: 10px; }
  .galerie > .wp-block-image { grid-column: auto; grid-row: auto; }
  .galerie > :nth-child(1), .galerie > :nth-child(6) { grid-row: span 2; }
  .galerie > :nth-child(4), .galerie > :nth-child(8) { grid-column: span 2; }
}

/* Programmes alternés */
.programmes { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 96px); }
.programme { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.programme:nth-child(even) .programme-photo { order: 2; }
.programme-photo { border-radius: var(--rayon-l); overflow: hidden; }
.programme-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.programme-texte { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.programme-num { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--vert-nuit); padding: 6px 12px; border-radius: 999px; background: var(--citron); }
.programme-titre { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; }
.programme-texte > p:not(.programme-num) { color: var(--gris-texte); max-width: 52ch; }
.liste-coches { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.liste-coches li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.5; }
.liste-coches li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--citron) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0F0C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.sombre .liste-coches li { color: var(--blanc); }
@media (max-width: 860px) {
  .programme { grid-template-columns: 1fr; }
  .programme:nth-child(even) .programme-photo { order: 0; }
}

/* Bande d'appel à l'action */
.appel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 64px; align-items: end;
  padding: clamp(36px, 5vw, 72px); border-radius: var(--rayon-l); background: var(--vert-nuit); color: var(--blanc);
}
.appel::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(214, 243, 106, .28), rgba(214, 243, 106, 0) 68%);
}
.appel-titre { font-size: clamp(28px, 3.3vw, 48px); font-weight: 700; text-transform: uppercase; line-height: 1.04; }
.appel-droite { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.appel-texte { color: var(--blanc-doux); font-size: 15px; max-width: 40ch; }
@media (max-width: 800px) { .appel { grid-template-columns: 1fr; } }

/* Contact & don */
.contact-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.coordonnees { display: grid; gap: 14px; }
.coordonnee {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 22px 82px; position: relative;
  border-radius: var(--rayon); background: var(--gris-clair); border: 1px solid var(--filet);
}
.coordonnee::before {
  content: ""; position: absolute; left: 22px; top: 22px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--vert-nuit);
}
.coordonnee::after {
  content: ""; position: absolute; left: 33px; top: 33px; width: 20px; height: 20px; background: var(--citron);
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; -webkit-mask-image: var(--ico); mask-image: var(--ico);
}
.ico-tel { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ico-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7l-8 5z'/%3E%3C/svg%3E"); }
.ico-lieu { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.ico-reseaux { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 13.5 6.8 4M15.4 6.5l-6.8 4' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }
.coordonnee-titre { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gris-texte); }
.coordonnee-valeur { font-size: 17px; font-weight: 500; }
.coordonnee-valeur a { text-decoration: none; }
.coordonnee-valeur a:hover { text-decoration: underline; }
.coordonnee .wp-block-social-links { margin-top: 4px; }
.carte-formulaire {
  padding: clamp(24px, 3.4vw, 48px); border-radius: var(--rayon-l); background: var(--blanc);
  border: 1px solid var(--filet); box-shadow: 0 40px 80px -50px rgba(14, 42, 24, .35);
  display: flex; flex-direction: column; gap: 12px;
}
.carte-formulaire h2 { font-size: clamp(24px, 2.2vw, 32px); text-transform: uppercase; }
.carte-formulaire > p { color: var(--gris-texte); font-size: 15px; margin-bottom: 10px !important; }
.carte-formulaire.sombre { background: var(--vert-nuit); border-color: var(--vert-nuit); }
.carte-formulaire.sombre > p { color: var(--blanc-doux); }
@media (max-width: 900px) { .contact-grille { grid-template-columns: minmax(0, 1fr); } }
.contact-grille > *, .carte-formulaire, .coordonnees, .recit > *, .programme > * { min-width: 0; }
.pied-col p:not(.pied-mail) { overflow-wrap: anywhere; }
.carte-formulaire .srfm-form-container, .carte-formulaire form { max-width: 100%; }

/* Formulaires SureForms aux couleurs du thème */
.carte-formulaire .srfm-form-container { --srfm-color-scheme-primary: #0E2A18; --srfm-btn-color-hover: #0E2A18; font-family: var(--police) !important; }
.carte-formulaire .srfm-form-container .srfm-form { padding: 0 !important; background: none !important; }
.carte-formulaire input[type="text"], .carte-formulaire input[type="email"], .carte-formulaire input[type="tel"],
.carte-formulaire select, .carte-formulaire textarea { font-family: var(--police) !important; border-radius: 12px !important; }
.carte-formulaire .srfm-submit-button, .carte-formulaire button[type="submit"] {
  border-radius: 999px !important; background: var(--vert-nuit) !important; color: var(--blanc) !important;
  font-family: var(--police) !important; font-weight: 600 !important; padding: 14px 28px !important; border: 0 !important;
}
.carte-formulaire .srfm-submit-button:hover, .carte-formulaire button[type="submit"]:hover { background: var(--citron) !important; color: var(--encre) !important; }

/* Encadré « autres moyens de don » */
.autre-don { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 10px !important; padding: 18px 20px; border-radius: var(--rayon); background: var(--gris-clair); border: 1px solid var(--filet); }
.recit-texte .autre-don p.autre-don-titre { font-size: 15px; font-weight: 700; color: var(--encre); }
.recit-texte .autre-don p.autre-don-texte { font-size: 14px; line-height: 1.6; }
.autre-don a { color: var(--vert-nuit); font-weight: 600; }
.autre-don a[href^="mailto:"] { font-size: min(1em, calc(100cqi / 21)); }
.autre-don { container-type: inline-size; }

/* Texte courant (mentions, confidentialité, articles) */
.texte-courant { max-width: 760px !important; }
.texte-courant > * + * { margin-top: 1.1em !important; }
.texte-courant h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 2em !important; text-transform: uppercase; }
.texte-courant h3 { font-size: 19px; margin-top: 1.6em !important; }
.texte-courant p, .texte-courant li { color: #2F3531; font-size: 17px; line-height: 1.75; }
.texte-courant a { color: var(--vert-nuit); font-weight: 500; }
.texte-courant ul, .texte-courant ol { padding-left: 1.3em; }
.texte-courant .wp-block-image { border-radius: var(--rayon); overflow: hidden; }

/* ==========================================================================
   14. Articles & archives
   ========================================================================== */
.liste-articles .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; list-style: none; padding: 0; margin: 0; }
.liste-articles .wp-block-post-featured-image { border-radius: var(--rayon); overflow: hidden; margin: 0 0 14px; }
.liste-articles .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.liste-articles .wp-block-post-title { font-size: 20px; font-weight: 500; line-height: 1.25; margin: 6px 0 8px; }
.liste-articles .wp-block-post-title a { text-decoration: none; }
.liste-articles .wp-block-post-date { font-size: 13px; color: var(--gris-texte); }
.liste-articles .wp-block-post-excerpt { font-size: 14px; color: var(--gris-texte); }
.liste-articles .wp-block-post-excerpt__more-text { margin-top: 10px; }
.liste-articles .wp-block-query-pagination { margin-top: 48px; gap: 10px; font-weight: 500; }
@media (max-width: 900px) { .liste-articles .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .liste-articles .wp-block-post-template { grid-template-columns: 1fr; } }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .8); }
.article-image { max-width: 1040px !important; border-radius: var(--rayon-l); overflow: hidden; margin-bottom: 48px !important; }
.article-image img { width: 100%; }

/* Partage */
.partage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 28px; margin-top: 40px !important; border-top: 1px solid var(--filet); }
.partage-titre { font-size: 14px; font-weight: 600; margin-right: 6px; }
.partage a, .partage button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--filet); background: var(--blanc); color: var(--encre);
  font: 500 13px/1 var(--police); text-decoration: none; cursor: pointer; transition: background-color .25s, border-color .25s;
}
.partage a:hover, .partage button:hover { background: var(--citron); border-color: var(--citron); }

/* ==========================================================================
   15. Pied de page
   ========================================================================== */
.site-footer { background: var(--gris-clair); color: var(--encre); padding: clamp(56px, 6vw, 96px) var(--gouttiere) 0; overflow: hidden; }
.pied-haut {
  max-width: var(--largeur); margin-inline: auto !important;
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.75fr); gap: 48px clamp(32px, 5vw, 80px); align-items: start;
  padding-bottom: clamp(40px, 5vw, 64px) !important;
}
.pied-marque { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pied-logo img { height: 76px; width: auto; }
.pied-intro { font-size: 15px; line-height: 1.6; color: var(--gris-texte); max-width: 36ch; }
.pied-liens { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1.55fr); gap: 32px 28px; }
.pied-col { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.pied-titre { font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--vert-nuit) !important; margin-bottom: 6px !important; }
.pied-col p:not(.pied-titre) { font-size: 15px; color: #3C423E; line-height: 1.45; overflow-wrap: anywhere; }
.pied-col a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .3s; }
.pied-col a:hover { color: var(--encre); background-size: 100% 1px; }
.pied-contact p:not(.pied-titre) { padding-left: 28px; position: relative; }
.pied-contact p:not(.pied-titre)::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; background: var(--vert-nuit);
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; -webkit-mask-image: var(--ico); mask-image: var(--ico);
}
.pied-lieu { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.pied-tel { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.pied-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7l-8 5z'/%3E%3C/svg%3E"); }
.pied-ecrire { --ico: var(--fleche); font-weight: 600; }

.pied-geant {
  font-size: clamp(30px, 12.4vw, 196px); font-weight: 800; line-height: .82; letter-spacing: -.05em; text-transform: uppercase;
  text-align: center; white-space: nowrap; margin: 0 calc(var(--gouttiere) * -1) !important; padding: 0 0 .03em;
  color: var(--vert-nuit);
  background: var(--vert-nuit) url("assets/img/texture-champ.jpg") center 88% / cover;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  user-select: none;
}
.pied-bas {
  max-width: var(--largeur); margin: 0 auto !important; padding: 26px 0 30px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px;
  border-top: 1px solid var(--filet); font-size: 13px; color: var(--gris-texte);
}
.pied-legal { text-align: center; }
.pied-credit { text-align: right; }
.pied-bas a { text-decoration: none; color: var(--encre); font-weight: 500; }
.pied-bas a:hover { text-decoration: underline; }
@media (max-width: 1000px) {
  .pied-haut { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .pied-liens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-contact { grid-column: 1 / -1; }
  .pied-bas { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .pied-legal, .pied-credit { text-align: center; }
}

/* Adresse e-mail : toujours sur une seule ligne, quelle que soit la largeur.
   Sa largeur vaut ~20,4 fois la taille du texte : la taille s'ajuste au conteneur. */
a[href^="mailto:"] { white-space: nowrap; }
.coordonnee, .pied-contact, .texte-courant, .pilier-texte { container-type: inline-size; }
.coordonnee-valeur a[href^="mailto:"] { font-size: min(1em, calc(100cqi / 21)); }
.pied-col p.pied-mail { white-space: nowrap; overflow-wrap: normal; }
.pied-col p.pied-mail a { font-size: min(15px, calc((100cqi - 28px) / 21)); }
.texte-courant a[href^="mailto:"] { font-size: min(1em, calc(100cqi / 21)); }
/* cartes de coordonnées centrées dès qu'elles passent sur une colonne */
@media (max-width: 900px) {
  .coordonnee { padding: 80px 20px 24px; align-items: center; text-align: center; }
  .coordonnee::before { left: 50%; top: 22px; transform: translateX(-50%); }
  .coordonnee::after { left: 50%; top: 33px; transform: translateX(-50%); }
  .coordonnees { gap: 12px; }
}

/* ==========================================================================
   16. Apparition au défilement (amélioration progressive)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .revele { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .revele.est-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Page 404 */
.erreur-404 {
  position: relative; isolation: isolate; overflow: hidden; color: var(--blanc); background: var(--vert-nuit);
  min-height: max(640px, 100svh); display: flex; align-items: center; justify-content: center;
  padding: 150px var(--gouttiere) 90px; text-align: center;
}
.erreur-404::before {
  content: "404"; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: -1;
  font-size: clamp(220px, 42vw, 620px); font-weight: 800; line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px rgba(214, 243, 106, .13); user-select: none; pointer-events: none;
}
.erreur-404::after {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; z-index: -2;
  background: radial-gradient(ellipse at center, rgba(214, 243, 106, .14), rgba(214, 243, 106, 0) 60%);
}
.erreur-contenu { max-width: 720px; margin-inline: auto !important; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.erreur-titre { font-size: clamp(38px, 5.4vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.erreur-texte { font-size: clamp(16px, 1.3vw, 19px); color: rgba(255, 255, 255, .82); max-width: 44ch; }
.erreur-actions { justify-content: center; }
.erreur-liens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 14px !important; }
.erreur-lien a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: var(--rayon); text-align: left;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .72); font-size: 13px; text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.erreur-lien a strong { color: var(--blanc); font-size: 16px; font-weight: 600; }
.erreur-lien a:hover { background: rgba(214, 243, 106, .12); border-color: rgba(214, 243, 106, .5); transform: translateY(-2px); }
.erreur-recherche { width: 100%; max-width: 460px; }
.erreur-recherche .wp-block-search__inside-wrapper { background: rgba(255, 255, 255, .96); border: 0; }
@media (max-width: 640px) {
  .erreur-liens { grid-template-columns: 1fr; }
  .erreur-actions { flex-direction: column; align-items: stretch; }
  .erreur-actions { width: 100%; }
  .erreur-actions .wp-block-button { width: 100%; }
  .erreur-actions .wp-block-button__link { width: 100%; justify-content: space-between; }
}

/* 404 & recherche */
.erreur-code { font-size: clamp(120px, 22vw, 280px); font-weight: 600; line-height: .85; letter-spacing: -.05em; color: var(--citron); }
.wp-block-search__inside-wrapper { border-radius: 999px; overflow: hidden; border: 1.5px solid var(--filet); background: var(--blanc); padding: 4px; }
.wp-block-search__input { border: 0; padding: 10px 18px; font: inherit; }
.wp-block-search__button { border-radius: 999px; background: var(--vert-nuit); color: var(--blanc); border: 0; padding: 10px 22px; font: 600 14px var(--police); margin: 0; }

/* Impression */
@media print {
  .site-header, .bandeau, .temoignages-nav, .pied-geant, .partage { display: none !important; }
  .hero, .page-hero, .sombre { background: #fff !important; color: #000 !important; min-height: 0 !important; }
  .hero-photo { display: none; }
}
