/*
Theme Name: ASM × FDHS (classique)
Theme URI: https://associationsaintemarie.fr
Author: Studio Cassette
Author URI: https://studiocassette.com
Description: Thème WordPress hybride classique pour l'Association Sainte-Marie (ASM) et le Fonds de Dotation Handicap Solidarité (FDHS). Structure PHP (header.php/footer.php), menus WordPress et Customizer, contenu éditable en blocs Gutenberg via patterns. Style clair et chaleureux (ASM) ; variation sombre et dorée (FDHS). Deux entités liées par le motif du cœur.
Version: 2.4.91
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asm-fdhs
*/

/* ============================================================
 * SKIN FDHS — Fonds de Dotation Handicap Solidarité
 * Appliqué via body.fdhs (classe posée selon le domaine, cf. functions.php).
 * Surcharge les variables de couleur du thème → identité crimson/amber claire,
 * sans dupliquer la feuille de style (ASM et FDHS partagent les mêmes fichiers).
 * ============================================================ */
body.fdhs {
  --wp--preset--color--background: #FFFFFF;
  --wp--preset--color--surface: #FAF6EF;      /* crème chaude */
  --wp--preset--color--subtle: #FBEDE9;       /* voile rouge pâle (labels/pills) */
  --wp--preset--color--ink: #1A1305;          /* texte brun-noir chaud */
  --wp--preset--color--ink-soft: #6A5840;     /* texte secondaire chaud */
  --wp--preset--color--brand: #D04838;        /* ROUGE — couleur principale */
  --wp--preset--color--brand-strong: #B23A2B;
  --wp--preset--color--brand-deep: #A83020;   /* accessible : blanc dessus 6.76:1 */
  --wp--preset--color--accent: #C89A18;       /* or — secondaire */
  --wp--preset--color--accent-strong: #A07610;
  --wp--preset--color--on-brand: #FFFFFF;     /* texte blanc sur boutons rouges */
  --wp--preset--color--border: #EADFD3;
  --wp--preset--gradient--brand-accent: linear-gradient(135deg, #D04838 0%, #E88C30 100%);
  --wp--preset--gradient--brand-soft: linear-gradient(140deg, #F4C9A0 0%, #B23A2B 100%);
}
/* Footer FDHS sombre (l'ASM garde son teal-noir #111E1D) */
body.fdhs .site-footer { background: #1A1305; }

/* ============================================================
 * Footer margin reset (required for block themes)
 * ============================================================ */
.wp-site-blocks > footer { margin-block-start: 0; }
/* No gap above <main>: lets the hero reach the very top, behind the fixed
   transparent header on the homepage (kills the white strip above the top bar). */
.wp-site-blocks > main { margin-block-start: 0; }

/* ============================================================
 * Script eyebrow — the handwritten "Caveat" accent used above
 * ASM section titles ("Notre histoire", "Actualités"…).
 * ============================================================ */
.eyebrow-script {
  font-family: 'Caveat', ui-rounded, cursive;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--wp--preset--color--brand-deep); /* a11y : le teal clair échoue le 3:1 sur blanc/mint */
  margin-bottom: 0.5rem;
}
/* On the FDHS dark style, the script accent becomes an uppercase gold label */
.is-style-fdhs .eyebrow-script,
body.fdhs .eyebrow-script {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brand);
}

/* Small uppercase pill badge (both themes) */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wp--preset--color--subtle);
  color: var(--wp--preset--color--brand-deep);
  border-radius: 9999px;
  padding: 0.25rem 0.9rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
 * Buttons — secondary (outline) variant
 * Use the "is-style-outline" core style OR .btn-outline utility
 * ============================================================ */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--brand-deep);
  border: 2px solid var(--wp--preset--color--brand-deep); /* a11y : bordure lisible (le teal clair échoue le 3:1) */
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
  /* a11y : remplissage basé sur la couleur du texte (currentColor) → reste lisible
     aussi bien en contexte clair (texte teal) que sombre (texte blanc). Avant, le
     fond mint fixe rendait le texte blanc des boutons sur fond sombre illisible. */
  background: color-mix(in srgb, currentColor 12%, transparent);
}

/* ============================================================
 * Decorative rounded panels (ASM "Notre histoire" / "Nos
 * établissements" split sections)
 * ============================================================ */
.panel-round-right { border-radius: 0 40px 40px 0; }
.panel-round-left  { border-radius: 40px 0 0 40px; }
@media (max-width: 781px) {
  .panel-round-right, .panel-round-left { border-radius: 24px; }
}

/* Wave divider echoing the ASM logo */
.wave-divider { display: block; width: 160px; height: 36px; color: var(--wp--preset--color--brand); }

/* ============================================================
 * Hero (ASM) — full-viewport image with legibility overlay
 * ============================================================ */
.asm-hero { position: relative; overflow: hidden; }
/* Voile d'assombrissement à 50 % pour la lisibilité du texte blanc sur la photo
   (l'image de fond doit rester visible dessous). */
.asm-hero .wp-block-cover__background { opacity: 0.5; }
/* Contenu du hero entièrement centré (titre, sous-titre, boutons) */
.asm-hero .wp-block-cover__inner-container { text-align: center; }
.asm-hero .wp-block-cover__inner-container .wp-block-buttons { justify-content: center; }
/* Hero eyebrow with short rules on each side: — DEPUIS PLUS DE 100 ANS — */
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; }
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ""; flex: 0 0 40px; width: 40px; height: 1px; background: currentColor; opacity: 0.85;
}
@media (max-width: 781px) {
  .asm-hero { padding-top: 132px !important; min-height: auto !important; }
  /* On mobile the header is not fixed — keep it in flow so content isn't hidden */
  body.home .site-header { position: sticky; }
  body.home .site-header .site-navrow { background-color: #fff; }
  body.home .site-header .site-navrow .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); }
}

/* Stat number (count-up target) */
.stat-number {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 1.6rem + 1.5vw, 3rem);
}
.is-style-fdhs .stat-number,
body.fdhs .stat-number {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
}

/* ============================================================
 * Collect gauge (Mon Village 2030 / FDHS projects)
 * ============================================================ */
/* Pourcentage de la jauge de collecte : défini en CSS (une valeur CSS custom
   ne peut pas être un attribut de bloc Gutenberg valide). Mettre à jour ici
   quand la campagne évolue. */
.collect-gauge { --gauge-pct: 46%; }
.collect-gauge__track {
  position: relative;
  height: 10px;
  background: color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent);
  border-radius: 9999px;
  overflow: hidden;
}
.is-style-fdhs .collect-gauge__track,
body.fdhs .collect-gauge__track {
  background: color-mix(in srgb, var(--wp--preset--color--brand) 14%, transparent);
}
/* La barre de remplissage est un pseudo-élément : pas d'élément vide à gérer,
   donc pas de bloc HTML dans l'éditeur. */
.collect-gauge__track::before {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: var(--wp--preset--gradient--brand-accent, linear-gradient(90deg, #3ECAB4, #FCBE00));
  transition: width 1.6s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.collect-gauge.is-visible .collect-gauge__track::before { width: var(--gauge-pct, 0%); }
/* Gold gauge variant (FDHS) */
.collect-gauge.gauge-gold .collect-gauge__track { background: rgba(200, 154, 24, 0.12); }
.collect-gauge.gauge-gold .collect-gauge__track::before { background: linear-gradient(90deg, #C89A18, #E88C30); }

/* Carte du shortcode [asm_collecte] — compteur de dons administrable */
.asm-collecte {
  background: #fff;
  color: var(--wp--preset--color--ink);
  border-radius: 24px;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  box-shadow: 0 24px 60px rgba(26, 40, 39, 0.12);
  max-width: 620px;
}
.asm-collecte .collect-gauge__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.25rem 1rem;
}
.asm-collecte .collect-gauge__amount {
  grid-column: 1; grid-row: 1;
  margin: 0;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.25rem);
  line-height: 1;
  color: var(--wp--preset--color--ink);
}
.asm-collecte .collect-gauge__pct {
  grid-column: 2; grid-row: 1;
  margin: 0;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
  color: var(--wp--preset--color--brand-deep);
}
.asm-collecte .collect-gauge__goal {
  grid-column: 1 / -1; grid-row: 2;
  margin: 0;
  color: var(--wp--preset--color--ink-soft);
}
.asm-collecte .collect-gauge__track { margin: 1.35rem 0; }
.asm-collecte .collect-gauge__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--wp--preset--color--ink-soft);
  font-size: 0.95rem;
}
.asm-collecte .collect-gauge__btn {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 200ms ease, transform 200ms ease;
}
.asm-collecte .collect-gauge__btn:hover {
  background: var(--wp--preset--color--accent-strong);
  transform: translateY(-1px);
}
/* Variante sombre (sur fond ink / FDHS) */
.asm-collecte.is-style-fdhs {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}
.asm-collecte.is-style-fdhs .collect-gauge__amount { color: #fff; }
.asm-collecte.is-style-fdhs .collect-gauge__goal,
.asm-collecte.is-style-fdhs .collect-gauge__meta { color: rgba(255, 255, 255, 0.6); }

/* ============================================================
 * FDHS self-contained one-page section scope
 * Keeps the FDHS prototype dark & gold even on a light (ASM)
 * install; the "FDHS — Sombre & doré" style variation additionally
 * darkens the shared header/footer for the standalone FDHS site.
 * ============================================================ */
.fdhs-scope { background: #18130A; color: #F5EDD8; }
.fdhs-scope :where(h1, h2, h3, h4) { font-family: 'Cormorant Garamond', Georgia, serif; color: #F5EDD8; font-weight: 600; }
.fdhs-scope .heart-watermark {
  position: absolute; pointer-events: none; opacity: 0.06;
  color: #C89A18;
}

/* ============================================================
 * Cards — equal height rows + hover lift
 * ============================================================ */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
}
/* 2026-09-08 : bouton « Nous contacter » (carte Entreprises, fond sombre) masque en
 * attendant sa suppression definitive dans l'editeur Gutenberg. Scope a la carte ink
 * uniquement -> n'affecte pas « Je fais un don » (carte turquoise brand). */
.equal-cards .has-ink-background-color .cta-bottom {
  display: none !important;
}
/* 2026-09-08 : bouton « Je fais un don » deplace par JS (relocateDonBtn) hors de la
 * carte turquoise, centre entre les cartes et la ligne « Site Fonds… ». */
.asm-don-relocated {
  justify-content: center;
  margin: 2.25rem 0 0.5rem;
}
.asm-don-relocated .wp-block-button {
  width: auto;
}
/* 2026-09-08 : supprime l'espace avant le footer cree par un paragraphe vide
 * laisse en dernier bloc de contenu (artefact Gutenberg) -> newsletter collee au footer. */
.entry-content > p.wp-block-paragraph:empty:last-child {
  display: none;
}
/* 2026-09-08 : suptitres des cartes fiscales (« Particuliers » / « Entreprises ») en
 * style script Caveat, comme .eyebrow-script « Faire un don / Nous soutenir ». Les styles
 * inline du bloc (uppercase / 0.72rem / 700 / letter-spacing) sont surcharges via !important.
 * Couleurs a11y : brand-deep sur la carte turquoise, brand (menthe) sur la carte sombre. */
.equal-cards .has-brand-background-color > p:first-of-type,
.equal-cards .has-ink-background-color > p:first-of-type {
  font-family: 'Caveat', ui-rounded, cursive !important;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin-bottom: 0.5rem;
}
.equal-cards .has-brand-background-color > p:first-of-type {
  color: var(--wp--preset--color--brand-deep) !important;
}
.equal-cards .has-ink-background-color > p:first-of-type {
  color: var(--wp--preset--color--brand) !important;
}
/* 2026-09-08 : dans les sections « 2 colonnes texte + bouton » (Projet associatif,
 * Demande de placement), le bouton suit l'alignement du texte -> a gauche. Sinon la regle
 * globale .entry-content .wp-block-buttons:not(.is-content-justification-left) le centre par
 * defaut, d'ou l'ecart avec l'editeur. Cible : colonne dont le 1er enfant est un suptitre. */
.entry-content .wp-block-column:has(> .eyebrow-script) .wp-block-buttons {
  justify-content: flex-start !important;
}

.card {
  background: var(--wp--preset--color--background);
  border: none; /* 2026-07-21 : carte unifiee - sans bordure + ombre legere (design system) */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.is-style-fdhs .card,
body.fdhs .card {
  background: var(--wp--preset--color--surface);
}
.hover-lift { transition: transform 0.2s ease, box-shadow 0.25s ease; }
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}
.is-style-fdhs .hover-lift:hover,
body.fdhs .hover-lift:hover {
  box-shadow: 0 0 30px rgba(200, 154, 24, 0.2), 0 0 60px rgba(200, 154, 24, 0.08);
}

/* Card imagery utility */
.card-media img { height: 200px; width: 100%; object-fit: cover; }
/* Média de carte en PLEINE LARGEUR, à ras des bords (le padding est porté par
   le groupe de texte interne, pas par la carte elle-même). Corrige l'image
   rétrécie et centrée par le layout « constrained ». */
.card { padding: 0; }
.card > .card-media,
.card > .wp-block-image.card-media {
  margin: 0;
  max-width: none;
  width: 100%;
}
.card > .card-media img { display: block; width: 100%; height: 220px; object-fit: cover; }

/* ============================================================
 * Animations
 * ============================================================ */
/* État révélé = état PAR DÉFAUT (visible). L'état masqué initial n'est appliqué
   que lorsque JS est présent (html.js), donc jamais dans l'éditeur de blocs ni
   sans JavaScript → les sections restent visibles et éditables. */
.animate-on-scroll {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .animate-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}
html.js .is-style-fdhs .animate-on-scroll:not(.is-visible),
html.js body.fdhs .animate-on-scroll:not(.is-visible) {
  transform: translateY(20px) scale(0.98);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.08s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.16s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.24s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.32s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Gold shimmer on FDHS primary CTAs */
.is-style-fdhs .wp-block-button__link:hover {
  box-shadow: 0 0 24px rgba(200, 154, 24, 0.35);
}

/* ============================================================
 * Heart icon on donate buttons (add className "has-heart")
 * Uses a mask so the heart inherits the button text colour.
 * ============================================================ */
.wp-block-button.has-heart .wp-block-button__link::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: -0.14em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>") center / contain no-repeat;
}

/* ============================================================
 * Header / nav
 * ============================================================ */
.wp-block-navigation .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  text-decoration: none;
}
/* Active menu item: teal + underline (on solid / inner-page nav) */
.site-navrow .wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
  color: var(--wp--preset--color--brand-deep);
  box-shadow: inset 0 -3px 0 0 var(--wp--preset--color--brand);
}
.site-topbar { background-color: var(--wp--preset--color--ink); transition: background-color 350ms ease, padding 350ms ease; }
/* Top-bar links inherit their paragraph colour (white email in bold, dimmer FDHS link) */
.site-topbar a { color: inherit !important; text-decoration: none; }
.site-topbar a:hover { opacity: 0.85; }
/* No transparent gap between the top bar and the nav row (flow blockGap) */
.site-header > * { margin-block: 0 !important; }
.site-navrow { background-color: var(--wp--preset--color--background); transition: background-color 350ms ease, box-shadow 350ms ease, padding 350ms ease; }
/* Size the logo by HEIGHT only; width auto keeps the aspect ratio
   (override the inline width WordPress writes on the image).
   flex-shrink:0 stops the nav flex row from squishing it. */
.asm-logo { margin: 0; flex-shrink: 0; }
.asm-logo, .asm-logo img { width: auto !important; max-width: none !important; }
.asm-logo img { border-radius: 8px; height: 88px; transition: height 350ms ease; }

/* --- Inner pages: solid sticky header (default) --- */
.site-header { position: sticky; top: 0; z-index: 100; }

/* --- Homepage: header overlays the hero, transparent at the top --- */
body.home .site-header { position: fixed; left: 0; right: 0; top: 0; }

/* Sit below the WordPress admin bar when logged in (so the top bar shows) */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Transparent state (home, not yet scrolled): fully transparent header,
   white text over the photo — no scrim, no shadow. */
body.home .site-header:not(.hdr-scrolled) { background: transparent !important; }
body.home .site-header:not(.tb-scrolled) .site-topbar { background-color: transparent !important; }
body.home .site-header:not(.hdr-scrolled) .site-navrow {
  background-color: transparent !important;
  box-shadow: none;
}
body.home .site-header:not(.hdr-scrolled) .site-navrow .asm-logo img { height: 108px; }
body.home .site-header:not(.hdr-scrolled) .site-navrow .wp-block-navigation .wp-block-navigation-item__content {
  color: #fff;
}

/* Scrolled state: dark top bar, white nav, dark links, shrink + shadow */
.site-header.tb-scrolled .site-topbar { background-color: var(--wp--preset--color--ink) !important; }
.site-header.hdr-scrolled .site-navrow {
  background-color: #fff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
.site-header.hdr-scrolled .site-navrow .asm-logo img { height: 80px; }
.site-header.hdr-scrolled .site-navrow { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.site-header .site-navrow .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); }

/* Heart motif accent (shared) */
.heart-accent { color: var(--wp--preset--color--accent); }

/* Détails du hero repris en CSS (auparavant en styles inline — retirés pour
   garder des blocs Gutenberg 100% valides et éditables). */
.asm-hero h1 { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35); }
.asm-hero .wp-block-cover__inner-container p.has-large-font-size {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
 * Split sections — dark/teal panel beside content (histoire,
 * établissements). Panel is flush to the viewport edge.
 * ============================================================ */
.asm-split > .wp-block-group { align-items: stretch; gap: 0; }
.asm-panel { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.asm-panel--dark { flex: 0 0 42%; position: relative; overflow: hidden; }
.asm-panel--teal { flex: 0 0 44%; position: relative; overflow: hidden; }
.asm-photos-3 { flex: 1 1 0%; min-width: 0; }
.asm-photos-3 .asm-photo { flex: 1 1 0%; min-width: 0; margin: 0; }
.asm-photos-3 .asm-photo--first { margin-left: -56px; z-index: 2; box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25); border-radius: 20px; } /* 2026-07-20 : arrondir l ombre (coins droits nets) */
.asm-cards-2 { flex: 1 1 0%; min-width: 0; }
/* « Découvrir → » des cartes établissement (maquette) : pilule vert d'eau pâle,
   texte teal, sans soulignement ; devient teal plein au survol. */
.card-foot a { text-decoration: none; white-space: nowrap; }
.card-foot p:last-child a {
  display: inline-block;
  background: var(--wp--preset--color--subtle);
  color: var(--wp--preset--color--brand-deep);
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.card-foot p:last-child a:hover { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--on-brand); }
.card.hover-lift:hover .card-foot p:last-child a { transform: translateX(3px); }

/* ============================================================
 * Fil d'ariane (breadcrumb) — présent sur toutes les pages
 * ============================================================ */
.asm-breadcrumb { font-size: 13px; margin-bottom: 1rem; }
/* Barre de fil d'ariane des pages pleine largeur (page-plain) sans breadcrumb intégré */
.asm-breadcrumb-bar { padding-top: 1.5rem; }
.asm-breadcrumb-bar .asm-breadcrumb { margin-bottom: 0; }
.asm-breadcrumb a { text-decoration: underline; color: var(--wp--preset--color--brand-deep); } /* a11y : lien distinguable sans la couleur */
.asm-breadcrumb a:hover { color: var(--wp--preset--color--brand-strong); text-decoration: underline; }
.asm-breadcrumb .sep { opacity: 0.5; padding: 0 0.4rem; }
.asm-breadcrumb .current { color: var(--wp--preset--color--ink-soft); }
/* Variante claire pour les fils d'ariane posés sur un hero sombre / photo */
.asm-breadcrumb.is-light, .asm-breadcrumb.is-light .current { color: #fff; }
.asm-breadcrumb.is-light a { color: rgba(255, 255, 255, 0.75); }
.asm-breadcrumb.is-light a:hover { color: #fff; }

/* ============================================================
 * Page « Faire un don » — pictos des 3 atouts
 * ============================================================ */
.don-ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  background-color: var(--wp--preset--color--subtle);
  background-repeat: no-repeat; background-position: center; background-size: 26px 26px;
}
.don-ico.wp-block-group { min-height: 52px; }
.don-ico--recu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1.5L8 22l2-1.5L12 22l2-1.5L16 22l2-1.5L20 22V2l-2 1.5L16 2l-2 1.5L12 2l-2 1.5L8 2 6 3.5 4 2z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E"); }
.don-ico--secu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.don-ico--impact { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21.2l7.8-7.8 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E"); }
/* Pictos + texte centré des cartes « Autres formes de soutien » */
.don-ico--vie { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v18'/%3E%3Cpath d='M12 20a2.5 2.5 0 0 0 2.5-2.5'/%3E%3Cpath d='M2 12a10 10 0 0 1 20 0z'/%3E%3C/svg%3E"); }
.don-ico--don { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v9H4v-9'/%3E%3Cpath d='M2 7h20v5H2z'/%3E%3Cpath d='M12 22V7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); }
.don-ico--legs { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E"); }
.soutien-card { text-align: center; }
.soutien-card .don-ico { margin-left: auto; margin-right: auto; }

/* ============================================================
 * Carte de localisation (pages établissement) — style maison
 * ============================================================ */
.asm-map {
  position: relative; overflow: hidden; border-radius: 20px; min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px; text-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(145deg, var(--wp--preset--color--subtle), #C8F0EA);
}
.asm-map::before {
  content: ""; position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image:
    linear-gradient(var(--wp--preset--color--brand-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--wp--preset--color--brand-strong) 1px, transparent 1px);
  background-size: 26px 26px;
}
.asm-map__pin {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 107, 92, 0.25);
}
.asm-map__pin::before {
  content: ""; width: 28px; height: 28px; background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B5C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.asm-map__title { position: relative; font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: var(--wp--preset--color--brand-deep); }
.asm-map__addr { position: relative; color: var(--wp--preset--color--ink-soft); font-size: 14px; line-height: 1.6; }
.asm-map__btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  background: var(--wp--preset--color--brand); color: var(--wp--preset--color--on-brand);
  font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 14px;
  text-decoration: none; padding: 0.65rem 1.4rem; border-radius: 9999px;
  transition: background-color 180ms ease, transform 180ms ease;
}
.asm-map__btn:hover { background: var(--wp--preset--color--brand-strong); transform: translateY(-1px); }

@media (max-width: 900px) {
  .asm-split > .wp-block-group { flex-direction: column; }
  .asm-split--reverse > .wp-block-group { flex-direction: column-reverse; }
  .asm-panel { flex-basis: auto !important; width: 100%; border-radius: 24px !important; }
  .asm-photos-3, .asm-cards-2 { width: 100%; }
  .asm-photos-3 .asm-photo--first { margin-left: 0; }
}

/* ============================================================
 * Newsletter form
 * ============================================================ */
.asm-newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 1.5rem auto 0; }
.asm-newsletter-form input {
  flex: 1; min-width: 0; padding: 13px 18px; border-radius: 9999px;
  border: none; font-size: 15px; font-family: inherit; background: rgba(255, 255, 255, 0.92); color: var(--wp--preset--color--ink);
}
.asm-newsletter-form button {
  padding: 13px 24px; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink);
  border: none; border-radius: 9999px; font-weight: 700; font-family: var(--wp--preset--font-family--heading);
  cursor: pointer; white-space: nowrap;
}
@media (max-width: 600px) { .asm-newsletter-form { flex-direction: column; } }

/* Gravity Forms newsletter — inline field + button, centered on the teal band */
.asm-newsletter-gf .gform_wrapper { margin: 0 auto; }
.asm-newsletter-gf .gform_wrapper form {
  display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap;
  max-width: 500px; margin: 0 auto;
}
.asm-newsletter-gf .gform_wrapper .gform_body,
.asm-newsletter-gf .gform_wrapper .gform-body { flex: 1 1 240px; margin: 0; }
.asm-newsletter-gf .gform_wrapper .gform_fields { grid-template-columns: 1fr; gap: 0; }
.asm-newsletter-gf .gform_wrapper .gfield_label,
.asm-newsletter-gf .gform_wrapper .gform_validation_errors,
.asm-newsletter-gf .gform_wrapper .gform_required_legend { display: none; }
.asm-newsletter-gf .gform_wrapper input[type="email"],
.asm-newsletter-gf .gform_wrapper input[type="text"] {
  width: 100%; height: 56px; padding: 0 22px; border-radius: 9999px; border: none;
  font-size: 15px; font-family: inherit; background: var(--wp--preset--color--subtle); color: var(--wp--preset--color--ink);
  box-shadow: none;
}
.asm-newsletter-gf .gform_wrapper input::placeholder { color: #8A948F; opacity: 1; }
.asm-newsletter-gf .gform_wrapper .gform_footer,
.asm-newsletter-gf .gform_wrapper .gform-footer { flex: 0 0 auto; margin: 0; padding: 0; }
.asm-newsletter-gf .gform_wrapper input[type="submit"],
.asm-newsletter-gf .gform_wrapper button.gform_button {
  height: 56px; background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--ink) !important;
  border: none !important; border-radius: 9999px !important; padding: 0 40px; font-weight: 800; cursor: pointer;
  font-family: var(--wp--preset--font-family--heading); white-space: nowrap; font-size: 15px; letter-spacing: 0.01em;
  transition: background-color 180ms ease, transform 180ms ease;
}
.asm-newsletter-gf .gform_wrapper input[type="submit"]:hover,
.asm-newsletter-gf .gform_wrapper button.gform_button:hover { background: var(--wp--preset--color--accent-strong) !important; transform: translateY(-1px); }
.asm-newsletter-gf .gform_confirmation_message { color: #fff; font-weight: 600; text-align: center; }
@media (max-width: 600px) {
  .asm-newsletter-gf .gform_wrapper form { flex-direction: column; }
  /* En colonne, la flex-basis de 240px du body devenait une HAUTEUR (gros vide
     sous le champ email) → on laisse le body à sa hauteur naturelle. */
  .asm-newsletter-gf .gform_wrapper .gform_body,
  .asm-newsletter-gf .gform_wrapper .gform-body { flex: 0 0 auto; width: 100%; }
  .asm-newsletter-gf .gform_wrapper .gform_footer,
  .asm-newsletter-gf .gform_wrapper .gform-footer { width: 100%; display: flex; justify-content: center; }
  .asm-newsletter-gf .gform_wrapper .gform_footer input[type="submit"],
  .asm-newsletter-gf .gform_wrapper button.gform_button { width: auto !important; min-width: 200px; }
}

/* ============================================================
 * Contact form (Gravity Forms) — styled to the mockup
 * ============================================================ */
.asm-contact-form .gform_wrapper .gfield_label {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600; color: var(--wp--preset--color--ink); font-size: 0.9rem;
}
.asm-contact-form .gform_wrapper .gfield_required,
.asm-contact-form .gform_wrapper .gfield_required_text { color: var(--wp--preset--color--brand-deep); }
.asm-contact-form .gform_wrapper input[type="text"],
.asm-contact-form .gform_wrapper input[type="email"],
.asm-contact-form .gform_wrapper input[type="tel"],
.asm-contact-form .gform_wrapper textarea,
.asm-contact-form .gform_wrapper select {
  width: 100%; padding: 12px 16px; border-radius: 10px; font-family: inherit; font-size: 15px;
  border: 1.5px solid var(--wp--preset--color--border); background: #fff; color: var(--wp--preset--color--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.asm-contact-form .gform_wrapper input:focus,
.asm-contact-form .gform_wrapper textarea:focus,
.asm-contact-form .gform_wrapper select:focus {
  outline: none; border-color: var(--wp--preset--color--brand);
  box-shadow: 0 0 0 3px rgba(62, 202, 180, 0.15);
}
.asm-contact-form .gform_wrapper textarea { line-height: 1.6; resize: vertical; }
/* "Je suis…" choices as a responsive grid of cards */
.asm-contact-form .gform_wrapper .gfield--type-radio .gfield_radio {
  display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important;
}
@media (max-width: 700px) { .asm-contact-form .gform_wrapper .gfield--type-radio .gfield_radio { grid-template-columns: 1fr !important; } }
.asm-contact-form .gform_wrapper .gfield--type-radio .gchoice {
  border: 2px solid var(--wp--preset--color--subtle); background: var(--wp--preset--color--surface);
  border-radius: 12px; padding: 14px 16px; display: flex !important; align-items: center; gap: 12px !important; cursor: pointer;
  margin: 0 !important;
  transition: border-color 150ms ease, background 150ms ease;
}
.asm-contact-form .gform_wrapper .gfield--type-radio .gchoice:hover { border-color: var(--wp--preset--color--border); }
.asm-contact-form .gform_wrapper .gfield--type-radio .gchoice:has(input:checked) {
  border-color: var(--wp--preset--color--brand); background: var(--wp--preset--color--subtle);
}
.asm-contact-form .gform_wrapper .gfield--type-radio .gchoice label { font-weight: 600; font-size: 0.9rem; margin: 0 !important; cursor: pointer; line-height: 1.3; }
/* File upload + consent spacing */
.asm-contact-form .ginput_container_fileupload { border: 1.5px dashed var(--wp--preset--color--border); border-radius: 10px; padding: 16px; background: var(--wp--preset--color--surface); }
.asm-contact-form .gfield--type-checkbox .gfield_label { font-weight: 400; }
.asm-contact-form .gchoice label a { color: var(--wp--preset--color--brand-deep); }
/* Submit button: full-width teal pill */
.asm-contact-form .gform_footer { margin-top: 1.5rem; }
.asm-contact-form .gform_footer input[type="submit"],
.asm-contact-form .gform_wrapper button.gform_button {
  width: auto !important; background: var(--wp--preset--color--brand-deep) !important; color: var(--wp--preset--color--on-brand) !important;
  border: none !important; border-radius: 9999px !important; padding: 0.9rem 2.2rem; font-weight: 700; font-size: 15px;
  font-family: var(--wp--preset--font-family--heading); cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}
.asm-contact-form .gform_footer input[type="submit"]:hover,
.asm-contact-form .gform_wrapper button.gform_button:hover { background: color-mix(in srgb, var(--wp--preset--color--brand-deep) 82%, #000) !important; transform: translateY(-1px); }

/* ============================================================
 * Projet associatif — photo composition + values checklist
 * ============================================================ */
.projet-photos { position: relative; padding: 12px 44px 44px 4px; }
.projet-photos .projet-photo-main { margin: 0 0 0 36px; }
.projet-photos .projet-photo-main img { border-radius: 24px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13); }
/* Cœur décoratif du bloc projet : dessiné en CSS (plus de bloc HTML). */
.projet-photos::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 3;
  width: 54px;
  height: 50px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='50' viewBox='0 0 54 50' fill='none'%3E%3Cpath d='M27 46C27 46 3 30 3 16C3 8.8 8.8 3 16 3C20.2 3 24 5.1 27 8.2C30 5.1 33.8 3 38 3C45.2 3 51 8.8 51 16C51 30 27 46 27 46Z' fill='%23FCBE00'/%3E%3C/svg%3E");
}
.projet-heart { display: none; }
.projet-photos .projet-photo-inset { position: absolute; right: 0; bottom: 10px; width: 172px; height: 172px; margin: 0; z-index: 3; }
.projet-photos .projet-photo-inset img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18); }
@media (max-width: 781px) { .projet-photos .projet-photo-inset { width: 120px; height: 120px; } }

.values-check { list-style: none; margin: 0; padding: 0; }
.values-check li {
  position: relative; padding-left: 30px; margin: 0 0 12px; font-weight: 600; list-style: none;
}
.values-check li::marker { content: ""; }
.values-check li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%233ECAB4' stroke-width='1.5'/%3E%3Cpath d='M6 10.5L9 13.5L14 7' stroke='%233ECAB4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Footer typography: 14px throughout (not the 18px body size) */
.wp-site-blocks > footer { font-size: 14px; }
.wp-site-blocks > footer :where(p, li, a, span) { font-size: 14px; }
/* Footer links inherit their muted colour, brighten on hover */
.wp-site-blocks > footer a { color: inherit; text-decoration: none; }
.wp-site-blocks > footer a:hover { color: var(--wp--preset--color--brand); }
/* Footer lists: no bullets, no indent, Montserrat (inherits body) */
.wp-site-blocks > footer ul { list-style: none; margin: 0; padding: 0; }
.wp-site-blocks > footer li { margin: 0; padding: 0; list-style: none; }
.wp-site-blocks > footer li::marker { content: ""; }
.footer-fdhs { margin: 0; }
.footer-fdhs img { opacity: 0.85; }

/* Navigation links at 15px */
.site-navrow .wp-block-navigation .wp-block-navigation-item__content { font-size: 15px !important; }

/* ============================================================
 * Contact form — profile pictos + upload icon (match mockup)
 * ============================================================ */
.asm-contact-form .gfield--type-radio .gchoice input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.asm-contact-form .gfield--type-radio .gchoice::before {
  content: ""; flex: 0 0 24px; width: 24px; height: 24px; background: no-repeat center / contain;
}
.asm-contact-form .gfield--type-radio .gchoice:nth-of-type(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6860' stroke-width='1.7'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.asm-contact-form .gfield--type-radio .gchoice:nth-of-type(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6860' stroke-width='1.7'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
.asm-contact-form .gfield--type-radio .gchoice:nth-of-type(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6860' stroke-width='1.7'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E"); }
.asm-contact-form .gfield--type-radio .gchoice:nth-of-type(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6860' stroke-width='1.7'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
.asm-contact-form .gfield--type-radio .gchoice:nth-of-type(5)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6860' stroke-width='1.7'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Cpath d='M10 6h8v4h-8V6Z'/%3E%3C/svg%3E"); }
.asm-contact-form .gfield--type-radio .gchoice:nth-of-type(6)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6860' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3Cpath d='M8 10h.01M12 10h.01M16 10h.01'/%3E%3C/svg%3E"); }
.asm-contact-form .gfield--type-radio .gchoice:has(input:checked)::before { filter: none; opacity: 1; }
/* Upload icon on the file field */
.asm-contact-form .ginput_container_fileupload { display: flex; align-items: center; gap: 14px; }
.asm-contact-form .ginput_container_fileupload::before {
  content: ""; flex: 0 0 26px; width: 26px; height: 26px; background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B5C' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}

/* ============================================================
 * Accessibility
 * ============================================================ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--wp--preset--color--ink); /* ink = contraste élevé sur fonds clairs */
  outline-offset: 3px;
  border-radius: 2px;
}
/* Sur surfaces sombres (hero, footer, barre de contact), outline doré (le teal/ink
   n'y ressort pas ; l'or garde un contraste >3:1 exigé pour les indicateurs de focus) */
.has-ink-background-color :where(a, button, .wp-block-button__link):focus-visible,
.wp-block-cover :where(a, button, .wp-block-button__link):focus-visible,
.asm-breadcrumb.is-light a:focus-visible,
.site-footer :where(a, button):focus-visible,
.site-topbar :where(a, button):focus-visible {
  outline-color: var(--wp--preset--color--accent);
}
/* Contraste AA des boutons pleins : le teal de marque #3ECAB4 ne donne que
   2.04:1 avec du blanc → on passe le fond en teal profond #0F6B5C (6.41:1).
   Le teal clair reste réservé au décor / dégradés / survols non-textuels.
   Les boutons à fond explicite (doré `has-accent-background-color`, etc.) sont
   exclus via :not([class*="-background-color"]) et conservent leur couleur. */
.wp-block-button:not([class*="is-style-outline"]) > .wp-block-button__link:not([class*="-background-color"]),
.wp-block-button__link.has-brand-background-color {
  background-color: var(--wp--preset--color--brand-deep) !important;
}
.wp-block-button:not([class*="is-style-outline"]) > .wp-block-button__link:not([class*="-background-color"]):hover,
.wp-block-button:not([class*="is-style-outline"]) > .wp-block-button__link:not([class*="-background-color"]):focus,
.wp-block-button__link.has-brand-background-color:hover,
.wp-block-button__link.has-brand-background-color:focus {
  background-color: color-mix(in srgb, var(--wp--preset--color--brand-deep) 82%, #000) !important;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--wp--preset--color--ink); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .collect-gauge__track::before { transition: none !important; }
}

/* ============================================================
 * CLASSIC THEME — menu WordPress (wp_nav_menu) + mise en page
 * du contenu Gutenberg (the_content). Reprend le rendu du bloc
 * Navigation FSE avec la structure <ul>/<li>/<a>.
 * ============================================================ */

/* Conteneur centré (header, footer, contenus contraints) */
.asm-container { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* Barre supérieure : coordonnées alignées à droite, texte blanc */
.site-topbar { color: var(--wp--preset--color--on-brand); }
.site-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.875rem;
}
.site-topbar__email { font-weight: 700; }
.site-topbar__fdhs { opacity: 0.85; }

/* Barre de navigation : logo | menu | CTA */
.site-navrow__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Layout du contenu de page rendu par the_content() : reproduit le
   comportement "constrained" de l'éditeur (contenu centré, alignwide,
   alignfull pleine largeur). */
.site-main { margin-top: 0; }
.entry-content > * {
  max-width: var(--wp--style--global--content-size, 720px);
  margin-left: auto;
  margin-right: auto;
}
.entry-content > .alignwide { max-width: 1280px; }
.entry-content > .alignfull { max-width: none; width: 100%; }
/* 2026-09-09 : poids des titres H2 uniformise. Le defaut du theme est 700, mais des patterns
 * forcent 800 sur certains titres -> incoherence. On met tous les H2 de contenu en 800. */
.entry-content h2, .entry-content h2.wp-block-heading { font-weight: 800; }
/* 2026-09-09 : blocs de contenu par defaut (paragraphes, titres, listes) alignes A GAUCHE
 * sur le conteneur du site (bord logo <-> bouton) au lieu d'etre centres a 720px (ce qui les
 * decalait vers le milieu). Les blocs .alignwide/.alignfull et les groupes flex (image+texte)
 * gardent leur comportement. Largeur de lecture conservee. */
.entry-content > *:not(.alignwide):not(.alignfull):not(.is-layout-flex):not(.has-text-align-center) {
  margin-left: max(24px, calc((100% - 1280px) / 2));
  margin-right: auto;
}
/* 2026-09-09 : les groupes horizontaux (image + texte cote a cote) des pages internes
 * passent en pleine largeur de contenu (~1200px) au lieu de la largeur de lecture (720px),
 * sinon le texte est trop etroit. Le texte simple (p, titres) reste a 720px pour la lisibilite. */
.entry-content > .wp-block-group.is-layout-flex {
  max-width: 1280px;
}
/* Les pages "plain" (patterns pleine largeur) : pas de contrainte parasite */
.page-plain .entry-content > * { margin-top: 0; margin-bottom: 0; }

/* Barre de navigation — liste horizontale */
.main-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.main-nav__list li { margin: 0; }
.main-nav a {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  padding-bottom: 8px;
  transition: color 200ms ease, box-shadow 200ms ease;
}
/* Item actif : teal + soulignement avec un peu d'air sous le texte */
.site-navrow .main-nav .current-menu-item > a,
.site-navrow .main-nav .current-menu-ancestor > a {
  color: var(--wp--preset--color--brand-deep);
  box-shadow: inset 0 -3px 0 0 var(--wp--preset--color--brand);
}
/* Home transparente (pas encore scrollée) : liens blancs */
body.home .site-header:not(.hdr-scrolled) .site-navrow .main-nav a { color: #fff; }
/* Home scrollée + pages internes : liens encre */
.site-header.hdr-scrolled .site-navrow .main-nav a,
.site-header .site-navrow .main-nav a { color: var(--wp--preset--color--ink); }
.site-navrow .main-nav a:hover { color: var(--wp--preset--color--brand-strong); }

/* Sous-menus déroulants (desktop) — panneau blanc au survol / focus */
.main-nav__list li { position: relative; }
/* Tous les items de 1er niveau sur le MÊME modèle (inline-flex, centré) pour que
   les liens simples et les liens à sous-menu s'alignent verticalement. */
.main-nav__list > li > a { display: inline-flex; align-items: center; gap: 0.4rem; }
.main-nav .menu-item-has-children > a::after {
  content: "";
  flex: 0 0 auto;
  width: 0.42em; height: 0.42em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms ease;
}
.main-nav .sub-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: -0.75rem;
  min-width: 250px;
  margin: 0;
  padding: 0.5rem 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(26, 40, 39, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 200;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .menu-item-has-children:hover > a::after,
.main-nav .menu-item-has-children:focus-within > a::after { transform: translateY(1px) rotate(225deg); }
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a {
  display: block;
  padding: 0.55rem 1.25rem;
  padding-bottom: 0.55rem;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--wp--preset--color--ink) !important;
  box-shadow: none !important;
}
.main-nav .sub-menu a:hover { color: var(--wp--preset--color--brand-strong) !important; background: var(--wp--preset--color--subtle); }
.main-nav .sub-menu .current-menu-item > a { color: var(--wp--preset--color--brand-deep) !important; }
/* Bouton toggle des sous-menus : masqué en desktop (dropdown au survol), visible en mobile */
.submenu-toggle { display: none; }

/* Bouton CTA du header (classe .header-cta) — pilule accent avec cœur */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--accent);
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  transition: background-color 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--wp--preset--color--accent-strong); transform: translateY(-1px); }
.header-cta::before {
  content: "♥";
  font-size: 0.95em;
  line-height: 1;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: currentColor;
  color: var(--wp--preset--color--ink);
  transition: transform 250ms ease, opacity 250ms ease;
}
body.home .site-header:not(.hdr-scrolled) .nav-toggle span { background: #fff; }

/* Clone du CTA "Faire un don" pour le menu mobile : masque par defaut (desktop) */
.main-nav .mobile-cta { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  /* ...mais on l'affiche dans le panneau du menu mobile, en pilule pleine largeur */
  .site-navrow .main-nav .mobile-cta {
    display: inline-flex !important;
    width: calc(100% - 3rem);
    justify-content: center;
    margin: 1rem 1.5rem 1.25rem;
  }
  .site-navrow__inner { gap: 0.5rem; }
  .site-navrow .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }
  .site-navrow { position: relative; }
  .site-navrow .main-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }
  .main-nav__list li { width: 100%; border-bottom: 1px solid var(--wp--preset--color--border); }
  .main-nav a { display: block; padding: 0.85rem 0; color: var(--wp--preset--color--ink) !important; box-shadow: none !important; }
  /* Sur mobile la nav home est toujours sur fond blanc -> texte encre */
  body.home .site-navrow .main-nav a { color: var(--wp--preset--color--ink) !important; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Sous-menus mobile : ACCORDÉON — fermés par défaut, ouverts au tap du chevron */
  .main-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav .menu-item-has-children > a { flex: 1 1 auto; }
  .main-nav .menu-item-has-children > a::after { display: none; } /* remplacé par le bouton toggle */
  .submenu-toggle {
    display: block;
    flex: 0 0 auto;
    width: 44px; height: 44px;
    padding: 0; border: 0; background: transparent; cursor: pointer;
    position: relative; color: var(--wp--preset--color--ink);
  }
  .submenu-toggle::before {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 0.6em; height: 0.6em; margin: -0.45em 0 0 -0.3em;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform 220ms ease;
  }
  .menu-item-has-children.is-open > .submenu-toggle::before { transform: translateY(0.15em) rotate(225deg); }
  .main-nav .sub-menu {
    list-style: none;
    flex-basis: 100%; width: 100%;
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; min-width: 0; margin: 0; border-radius: 0;
    max-height: 0; overflow: hidden;
    padding: 0 0 0 1rem;
    transition: max-height 260ms ease;
  }
  .menu-item-has-children.is-open > .sub-menu { max-height: 600px; padding-bottom: 0.4rem; }
  .main-nav .sub-menu li { border-bottom: 0; }
  .main-nav .sub-menu a { padding: 0.6rem 0 !important; font-size: 14px; opacity: 0.85; }
}

/* ============================================================
 * CLASSIC THEME — pied de page
 * ============================================================ */
.site-footer {
  background: #111E1D; /* plus sombre que --ink (#1A2827) pour se distinguer de la section CTA qui la précède */
  color: rgba(255, 255, 255, 0.55);
  padding-top: clamp(3rem, 2rem + 4vw, 4.5rem);
  padding-bottom: 2rem;
  font-size: 14px;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--brand); }
.site-footer p { font-size: 14px; }

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { width: 84px; height: auto; border-radius: 8px; display: block; }
.footer-baseline { line-height: 1.7; color: rgba(255, 255, 255, 0.62); margin-top: 1.25rem; } /* a11y ≥4.5:1 sur #111E1D */
.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75); /* a11y : titres de colonnes lisibles */
  margin-bottom: 0.75rem;
}
.footer-links, .footer-legal-menu { list-style: none; margin: 0; padding: 0; }
.footer-links li { line-height: 2.1; }
.footer-links a { color: rgba(255, 255, 255, 0.55); }
.footer-contact { line-height: 2; color: rgba(255, 255, 255, 0.62); } /* a11y ≥4.5:1 */
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.25rem; }
.footer-social a { color: rgba(255, 255, 255, 0.6); display: inline-flex; }
.footer-social a:hover { color: var(--wp--preset--color--brand); }
.footer-fdhs { display: inline-block; margin: 0 0 0.9rem; }
.footer-fdhs img { width: 130px; height: auto; opacity: 0.9; }
.footer-partner-tagline { color: rgba(255, 255, 255, 0.5); line-height: 1.6; margin: 0 0 0.6rem; }
.footer-fdhs-link a { color: var(--wp--preset--color--brand); font-weight: 600; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}
.footer-legal__text { color: rgba(255, 255, 255, 0.62); margin: 0; } /* a11y ≥4.5:1 */
.footer-legal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; color: rgba(255, 255, 255, 0.62); }
.footer-legal-menu { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal__links, .footer-legal__links a { color: rgba(255, 255, 255, 0.62); }

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
 * CLASSIC THEME — gabarits (page, article, listes, 404)
 * ============================================================ */

/* Bandeau de titre (pages, archives, recherche) */
.page-hero {
  background: var(--wp--preset--color--subtle);
  padding-top: clamp(2rem, 1.2rem + 2.5vw, 3rem);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}
/* Sur la home, le bandeau ne doit pas passer sous le header fixe :
   la home n'utilise pas .page-hero, mais on garde la marge des pages internes
   sous le header sticky. */
.page-hero__title { margin: 0; font-size: clamp(2.3rem, 1.7rem + 2vw, 3.25rem); line-height: 1.06; }
.page-hero__desc { margin-top: 1rem; color: var(--wp--preset--color--ink-soft); }

.page-body {
  padding-bottom: 0; /* 2026-09-10 : pas d'espace blanc avant le footer (demande : partout) */
}

/* Grille d'actualités */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}
.news-card { display: flex; flex-direction: column; }
.news-card__media { display: block; }
.news-card__media img { height: 200px; width: 100%; object-fit: cover; display: block; }
.news-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.news-card__date { font-size: 0.875rem; color: var(--wp--preset--color--ink-soft); margin: 0; }
.news-card__title { font-size: 1.25rem; margin: 0; line-height: 1.25; }
.news-card__title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--wp--preset--color--brand-strong); }
.news-card__excerpt { color: var(--wp--preset--color--ink-soft); line-height: 1.6; margin: 0; font-size: 14px; }
.news-card__more a { color: var(--wp--preset--color--brand-deep); font-weight: 600; text-decoration: none; }
.news-card__cat { font-size: 11px; font-weight: 700; color: var(--wp--preset--color--brand-deep); text-transform: uppercase; letter-spacing: 0.06em; }

/* Filtres de catégories (grille filtrable) */
.news-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.news-filter {
  font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 14px;
  padding: 0.5rem 1.15rem; border-radius: 9999px; border: 1px solid var(--wp--preset--color--border);
  background: #fff; color: var(--wp--preset--color--ink-soft); cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.news-filter:hover { border-color: var(--wp--preset--color--brand); color: var(--wp--preset--color--brand-deep); }
.news-filter.is-active { background: var(--wp--preset--color--brand-deep); color: var(--wp--preset--color--on-brand); border-color: transparent; }
.news-empty { padding: 1rem 0 3rem; color: var(--wp--preset--color--ink-soft); }

@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* Pagination */
.asm-pagination { padding-bottom: 4rem; }
.asm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.6rem;
  margin: 0 0.2rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 9999px;
  text-decoration: none;
  color: var(--wp--preset--color--ink);
}
.asm-pagination .page-numbers.current { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--on-brand); border-color: transparent; }
.asm-pagination .page-numbers:hover { border-color: var(--wp--preset--color--brand); }
.asm-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }

/* Article seul */
.post-hero {
  background: var(--wp--preset--color--subtle);
  padding-top: clamp(3rem, 2rem + 4vw, 4.5rem);
  padding-bottom: 3rem;
}
.post-hero__cat { margin: 0 0 0.5rem; color: var(--wp--preset--color--brand-deep); font-size: 0.875rem; font-weight: 600; }
.post-hero__cat a { color: inherit; text-decoration: none; }
.post-hero__title { margin: 0 0 0.75rem; }
.post-hero__meta { margin: 0; color: var(--wp--preset--color--ink-soft); font-size: 0.875rem; }
.post-body { padding-top: 3rem; padding-bottom: 4rem; }
.post-featured { margin-bottom: 2rem; }
.post-featured img { width: 100%; height: auto; border-radius: 16px; }
.post-tags { margin-top: 2rem; }
.post-tags a { display: inline-block; margin: 0 0.4rem 0.4rem 0; padding: 0.25rem 0.75rem; background: var(--wp--preset--color--subtle); border-radius: 9999px; font-size: 0.8rem; text-decoration: none; color: var(--wp--preset--color--brand-deep); }

/* ============================================================
 * Article seul (single.php) — d'après ui_kits/asm/article
 * ============================================================ */
.asm-article { background: var(--wp--preset--color--surface); }
.article-hero { position: relative; height: 520px; overflow: hidden; margin-top: 0; }
.article-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.article-hero--nofeat { background: linear-gradient(140deg, #198D7A, #0A4D42); }
.article-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,40,39,0.9) 0%, rgba(26,40,39,0.45) 50%, rgba(26,40,39,0.1) 100%); }
.article-hero__inner { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; padding-bottom: 3rem; width: 100%; }
.article-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 1rem; }
.article-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.article-breadcrumb a:hover { color: #fff; }
.article-breadcrumb .is-current { color: rgba(255,255,255,0.85); }
.article-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }
.badge { border-radius: 9999px; padding: 4px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.badge--brand { background: var(--wp--preset--color--brand); color: #fff; text-transform: uppercase; }
.badge--ghost { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); font-weight: 500; letter-spacing: 0; }
.article-hero__title { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem); font-weight: 800; color: #fff; line-height: 1.12; max-width: 780px; letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0,0,0,0.4); margin: 0; }

.article-layout-section { padding: 4rem 0; }
.article-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3.5rem; align-items: start; }

/* Corps d'article : styles typographiques appliqués au contenu Gutenberg */
.article-content > p { font-size: 16px; color: #4A4540; line-height: 1.8; margin-bottom: 1rem; }
.article-content > p:first-of-type { font-size: 20px; font-weight: 600; color: var(--wp--preset--color--ink); line-height: 1.65; border-left: 3px solid var(--wp--preset--color--brand); padding-left: 20px; margin-bottom: 1.75rem; }
.article-content > h2 { font-family: var(--wp--preset--font-family--heading); font-size: 22px; font-weight: 700; color: var(--wp--preset--color--ink); margin: 2rem 0 0.9rem; line-height: 1.3; }
.article-content > h3 { font-family: var(--wp--preset--font-family--heading); font-size: 18px; font-weight: 700; color: var(--wp--preset--color--ink); margin: 1.5rem 0 0.75rem; }
.article-content img, .article-content .wp-block-image img { border-radius: 16px; }
.article-content figcaption { font-size: 13px; color: #9A9488; font-style: italic; text-align: center; margin-top: 10px; }
.article-content blockquote, .article-content .wp-block-quote {
  background: var(--wp--preset--color--subtle); border-radius: 16px; padding: 24px 28px; margin: 1.5rem 0;
  border-left: 4px solid var(--wp--preset--color--brand);
}
.article-content blockquote p { font-family: var(--wp--preset--font-family--heading); font-size: 17px; font-weight: 600; font-style: italic; color: var(--wp--preset--color--ink); line-height: 1.55; }
.article-content blockquote cite { font-size: 14px; color: var(--wp--preset--color--ink-soft); font-style: normal; font-weight: 600; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--wp--preset--color--subtle); }
.article-tag { font-size: 13px; background: var(--wp--preset--color--subtle); color: var(--wp--preset--color--brand-deep); padding: 4px 12px; border-radius: 9999px; font-weight: 600; text-decoration: none; }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 140px; }
.article-metacard { background: #fff; border-radius: 18px; padding: 24px; border: 1px solid var(--wp--preset--color--border); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.article-metacard__title { font-family: var(--wp--preset--font-family--heading); font-size: 13px; font-weight: 700; color: #9A9488; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.article-meta-row { margin-bottom: 12px; }
.article-meta-label { display: block; font-size: 11px; font-weight: 700; color: #9A9488; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.article-meta-value { display: block; font-size: 14px; color: #2E2A26; font-weight: 500; }
.article-related__title, .article-doncard__title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; }
.article-related__title { font-size: 15px; color: var(--wp--preset--color--ink); margin-bottom: 1rem; }
.article-related__item { display: flex; gap: 14px; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--wp--preset--color--border); box-shadow: 0 1px 4px rgba(0,0,0,0.04); margin-bottom: 12px; text-decoration: none; transition: box-shadow 200ms ease, transform 200ms ease; }
.article-related__item:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); transform: translateX(4px); }
.article-related__media { width: 84px; flex-shrink: 0; background: linear-gradient(140deg, #A0E5D9, #198D7A); }
.article-related__media img { width: 84px; height: 100%; object-fit: cover; display: block; }
.article-related__text { padding: 12px 14px 12px 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.article-related__cat { font-size: 11px; font-weight: 700; color: var(--wp--preset--color--brand-deep); text-transform: uppercase; letter-spacing: 0.06em; }
.article-related__name { font-family: var(--wp--preset--font-family--heading); font-size: 13px; font-weight: 700; color: var(--wp--preset--color--ink); line-height: 1.35; }
.article-related__date { font-size: 11px; color: #9A9488; }
.article-doncard { background: linear-gradient(145deg, #1A2827, #0E4A3E); border-radius: 18px; padding: 24px; }
.article-doncard__title { font-size: 15px; color: #fff; margin-bottom: 10px; }
.article-doncard__text { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 1rem; }
.article-doncard__btn { display: flex; justify-content: center; }

/* CTA bas de page */
.article-cta { background: var(--wp--preset--color--ink); padding: 5rem 0; }
.article-cta__inner { display: grid; grid-template-columns: 3fr 2fr; gap: 3.5rem; align-items: center; }
.article-cta .eyebrow-script { color: var(--wp--preset--color--brand-deep); }
.article-cta__title { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1.25; margin: 0 0 1rem; }
.article-cta__text { font-size: 16px; color: rgba(255,255,255,0.62); line-height: 1.7; }
.article-cta__actions { display: flex; flex-direction: column; gap: 12px; }
.btn-outline-light { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 9999px; border: 2px solid rgba(255,255,255,0.65); color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 15px; text-decoration: none; transition: all 150ms ease; }
.btn-outline-light:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-sidebar { position: static; }
  .article-cta__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-hero { height: 420px; }
}

/* 404 */
.error-404 { text-align: center; padding-top: clamp(4rem, 3rem + 5vw, 7rem); padding-bottom: 6rem; }
.error-404__code { font-family: var(--wp--preset--font-family--script); font-size: clamp(5rem, 3rem + 8vw, 9rem); color: var(--wp--preset--color--brand-deep); line-height: 1; margin: 0; } /* a11y : teal profond (le teal clair échouait le contraste) */
.error-404__title { margin: 0.5rem 0 1rem; }
.error-404__text { color: var(--wp--preset--color--ink-soft); margin: 0 auto 2rem; max-width: 460px; }
.error-404 .search-form { max-width: 420px; margin: 2rem auto 0; display: flex; gap: 0.5rem; }

/* ============================================================
 * Frise chronologique (page « Un peu d'histoire »)
 * ============================================================ */
.asm-timeline { position: relative; margin: 2.5rem 0; padding-left: 2.25rem; }
.asm-timeline__item { position: relative; padding-bottom: 1.5rem; }
.asm-timeline__item:last-child { padding-bottom: 0; }
.asm-timeline__item::before {
  content: ""; position: absolute; left: -2.75rem; top: 0.35rem; z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--wp--preset--color--brand); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--wp--preset--color--brand);
}
/* trait = segments entre points (ne depasse ni au-dessus du 1er point ni sous le dernier),
 * decale ~2px a droite du centre des points. */
.asm-timeline__item:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0;
  left: calc(-2.75rem + 8px); top: calc(0.35rem + 7px); height: 100%; width: 2px;
  background: color-mix(in srgb, var(--wp--preset--color--brand) 35%, transparent);
}
.asm-timeline__year { color: var(--wp--preset--color--brand-deep) !important; margin: 0 0 0.35rem !important; }
/* 2026-09-09 : la frise (conteneur alignwide ~1200px) avait ses items contraints (~760px)
 * et centres par le layout WP, alors que le trait (border-left) reste au bord gauche du
 * conteneur -> gros decalage. On recentre le conteneur et on fait remplir les items, pour que
 * le trait passe au centre des points. */
.asm-timeline { margin-left: auto; margin-right: auto; }
/* bande de la frise : le groupe flex (fond creme) qui contient la frise passe en pleine
 * largeur (bord a bord) et centre la frise a l'interieur. */
.entry-content .wp-block-group.is-layout-flex:has(> .asm-timeline) {
  justify-content: space-between;
  align-items: center;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  /* fond creme pleine largeur, mais contenu aligne sur le conteneur du site (logo <-> bouton) */
  padding-left: max(24px, calc((100% - 1280px) / 2));
  padding-right: max(24px, calc((100% - 1280px) / 2));
  gap: clamp(2rem, 4vw, 4.5rem);
}
/* 2 colonnes de meme largeur (image / frise) : chaque enfant occupe 50% */
.entry-content .wp-block-group.is-layout-flex:has(> .asm-timeline) > .wp-block-image,
.entry-content .wp-block-group.is-layout-flex:has(> .asm-timeline) > .asm-timeline {
  flex: 1 1 50%;
  min-width: 0;
  max-width: none;
  margin: 0;
}
/* la bande creme (frise) est un bandeau pleine largeur en fin de page -> colle au footer */
.entry-content > .wp-block-group.is-layout-flex:has(> .asm-timeline):last-child { margin-bottom: 0; }
body.page-id-65 .page-body { padding-bottom: 0; }
/* Pages dont la 1re section est un bandeau colore (Contact id 11, Demande de placement id 70) :
 * pas de blanc entre le bandeau titre (.page-hero) et cette section. */
body.page-id-11 .page-hero,
body.page-id-70 .page-hero { margin-bottom: 0; }
/* Page "Mon Village" (id 67) : cartes vertes (capacite d'accueil, realisations…) a hauteur
 * egale — la colonne s'egalise mais la carte a l'interieur ne remplissait pas -> height 100%. */
body.page-id-67 .wp-block-column .wp-block-group.has-subtle-background-color,
body.page-id-68 .wp-block-column .wp-block-group.has-subtle-background-color {
  min-height: 7.5rem; /* meme hauteur pour les 4 cartes (contenu naturel max ~112px) */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* gap vertical entre les 2 rangees de cartes = gap horizontal (24px) */
body.page-id-67 .wp-block-column > .wp-block-columns + .wp-block-columns,
body.page-id-68 .wp-block-column > .wp-block-columns + .wp-block-columns { margin-top: 24px !important; }
/* Bloc contact "Nous trouver" (Adresse/Telephone/Email en <br>) : espace resserre via line-height */
body.page-id-67 p.wp-block-paragraph:has(> strong) { line-height: 1.5 !important; }
/* Page "Nos etablissements — Sommaire" (id 16) : le contenu des cartes etait bloque a la
 * largeur de lecture (720/centre -> ~367px) alors que l'image est pleine largeur -> gros vide
 * lateral. On fait remplir le contenu sur toute la largeur de la carte. */
body.page-id-16 .card > .wp-block-group.is-layout-constrained {
  max-width: none !important;
  width: auto;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: stretch;
}
/* Page "Fonds de Dotation Handicap Solidarite" (id 300) : cœur decoratif de la compo photo
 * remonte et decale a droite (par rapport a la position globale top:4/left:0). */
body.page-id-300 .projet-photos::before { top: -22px; left: 30px; }
/* Page "Conseil d'Administration" (id 66) : section « Le bureau directeur » (fond degrade)
 * en pleine largeur (bord a bord), comme les bandeaux du site. */
body.page-id-66 .entry-content > .wp-block-group.is-layout-flex.has-background {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
/* Page "Conseil d'Administration" (id 66) : liste des administrateurs sur 2 colonnes (desktop),
 * elargie a la largeur du conteneur pour que les lignes longues tiennent. */
@media (min-width: 783px) {
  body.page-id-66 .entry-content ul.wp-block-list {
    max-width: 1280px;
    columns: 2;
    column-gap: 3rem;
  }
  body.page-id-66 .entry-content ul.wp-block-list > li {
    break-inside: avoid;
  }
}
/* Page "Un peu d'histoire" : bloc d'intro (5 paragraphes) sur 2 colonnes en desktop,
 * aligne sur la largeur du conteneur du site (bord logo <-> bouton Faire un don). */
@media (min-width: 783px) {
  body.page-id-65 .entry-content > .wp-block-group.is-layout-flex:not(:has(.asm-timeline)):not(:has(img)) {
    max-width: 1328px !important;
    padding-left: 24px;
    padding-right: 24px;
  }
  body.page-id-65 .entry-content > .wp-block-group.is-layout-flex:not(:has(.asm-timeline)):not(:has(img)) > .wp-block-group {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    columns: 2;
    column-gap: 3rem;
  }
  body.page-id-65 .entry-content > .wp-block-group.is-layout-flex:not(:has(.asm-timeline)):not(:has(img)) > .wp-block-group > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    break-inside: avoid;
  }
}
.asm-timeline > .asm-timeline__item { max-width: none; margin-left: 0; margin-right: 0; }
/* le texte (annee + description) aligne a gauche sous le point, pas centre par le layout WP */
.asm-timeline__item > * { margin-left: 0 !important; margin-right: 0 !important; }
/* espaces resserres : description proche de l'annee, et moins de vide entre les entrees */
.asm-timeline__item > * + * { margin-top: 0.5rem !important; }
.asm-timeline > .asm-timeline__item + .asm-timeline__item { margin-top: 0 !important; }

/* ============================================================
 * Étapes numérotées (page « Demande de placement »)
 * ============================================================ */
.asm-steps { counter-reset: step; }
.asm-steps .asm-step { position: relative; padding-left: 4.25rem; margin-bottom: 1.75rem; }
.asm-steps .asm-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -0.2rem;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--subtle); color: var(--wp--preset--color--brand-deep);
  font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.25rem;
}
.asm-steps .asm-step h3 { margin: 0 0 0.35rem; }

/* ============================================================
 * Carte OpenStreetMap embarquée (shortcode [asm_map])
 * ============================================================ */
.asm-map-embed { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(26, 40, 39, 0.12); }
.asm-map-embed__canvas { position: relative; display: block; }
.asm-map-embed iframe { display: block; width: 100%; border: 0; }
/* Pin maison (couleurs du site) superposé au centre de la carte */
.asm-map-embed__pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(26, 40, 39, 0.35));
  animation: asm-pin-drop 0.5s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
@keyframes asm-pin-drop { from { transform: translate(-50%, -160%); opacity: 0; } to { transform: translate(-50%, -100%); opacity: 1; } }
.asm-map-embed__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.35rem; }
.asm-map-embed__addr { color: var(--wp--preset--color--ink-soft); font-size: 0.95rem; }
.asm-map-embed__addr strong { display: block; color: var(--wp--preset--color--brand-deep); font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; }
.asm-map-embed__btn {
  flex-shrink: 0; display: inline-block; text-decoration: none;
  background: var(--wp--preset--color--brand-deep); color: var(--wp--preset--color--on-brand); /* a11y : blanc lisible (le teal clair échouait) */
  font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 0.95rem;
  padding: 0.6rem 1.25rem; border-radius: 9999px;
  transition: background-color 180ms ease, transform 180ms ease;
}
.asm-map-embed__btn:hover { background: color-mix(in srgb, var(--wp--preset--color--brand-deep) 82%, #000); transform: translateY(-1px); }

/* ============================================================
 * Carrousel photo — style de bloc « Carrousel » sur la Galerie
 * (.wp-block-gallery.is-style-asm-slider) + lightbox
 * ============================================================ */
/* Taille maîtrisée : les photos sources font ~800px → on plafonne pour rester net. */
/* !important : bat la largeur imposée par le conteneur de groupe généré (wp-container-…) */
.asm-slider { position: relative; max-width: 760px !important; margin-inline: auto !important; }
/* La galerie devient une piste défilante à accroche (scroll-snap).
   Fonctionne déjà sans JS (glisser/tactile) ; le JS ajoute flèches, points, lightbox. */
.wp-block-gallery.is-style-asm-slider {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  max-width: 760px;
  margin-inline: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(26, 40, 39, 0.14);
  scrollbar-width: none; -ms-overflow-style: none;
}
.wp-block-gallery.is-style-asm-slider::-webkit-scrollbar { display: none; }
.asm-slider > .wp-block-gallery.is-style-asm-slider { max-width: none; margin: 0; }
.wp-block-gallery.is-style-asm-slider > figure {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  scroll-snap-align: center;
  aspect-ratio: 3 / 2;
}
.wp-block-gallery.is-style-asm-slider > figure > a,
.wp-block-gallery.is-style-asm-slider > figure > img,
.wp-block-gallery.is-style-asm-slider > figure > a > img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; cursor: zoom-in;
}
/* Flèches précédent / suivant */
.asm-slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 9999px;
  display: grid; place-items: center; cursor: pointer;
  color: var(--wp--preset--color--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.asm-slider__nav:hover { background: #fff; }
.asm-slider__nav--prev { left: 14px; }
.asm-slider__nav--next { right: 14px; }
.asm-slider__nav:disabled { opacity: 0; pointer-events: none; }
/* Points de navigation */
.asm-slider__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: 0.75rem; }
/* Zone tactile 24×24 (WCAG 2.2 – 2.5.8), point visuel 10px via ::before */
.asm-slider__dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.asm-slider__dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 9999px;
  background: color-mix(in srgb, var(--wp--preset--color--ink) 22%, transparent);
  transition: background-color 160ms ease, transform 160ms ease;
}
.asm-slider__dot:hover::before { background: color-mix(in srgb, var(--wp--preset--color--ink) 45%, transparent); }
.asm-slider__dot[aria-current="true"]::before { background: var(--wp--preset--color--brand-deep); transform: scale(1.3); }
@media (max-width: 600px) {
  .asm-slider__nav { width: 40px; height: 40px; }
  .asm-slider__nav--prev { left: 8px; }
  .asm-slider__nav--next { right: 8px; }
}
/* Lightbox (agrandissement au clic) */
.asm-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; background: rgba(10, 18, 17, 0.92);
}
.asm-lightbox[hidden] { display: none; }
.asm-lightbox__fig { margin: 0; }
.asm-lightbox__fig img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.asm-lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 48px; height: 48px;
  border: 0; border-radius: 9999px; cursor: pointer; font-size: 26px; line-height: 1;
  color: #fff; background: rgba(255, 255, 255, 0.14);
}
.asm-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 0; border-radius: 9999px; cursor: pointer;
  font-size: 30px; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.14);
}
.asm-lightbox__close:hover, .asm-lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }
.asm-lightbox__nav--prev { left: 16px; }
.asm-lightbox__nav--next { right: 16px; }
.asm-lightbox button:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
@media (max-width: 600px) { .asm-lightbox__nav { width: 42px; height: 42px; } }

/* ============================================================
 * Bouton « revenir en haut »
 * ============================================================ */
.asm-to-top {
  position: fixed; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem);
  z-index: 900; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 9999px;
  display: grid; place-items: center; cursor: pointer;
  color: var(--wp--preset--color--on-brand);
  background: var(--wp--preset--color--brand-deep);
  box-shadow: 0 8px 24px rgba(26, 40, 39, 0.28);
  transition: background-color 160ms ease, transform 200ms ease, opacity 200ms ease;
}
.asm-to-top[hidden] { display: none; }
.asm-to-top:hover { background: color-mix(in srgb, var(--wp--preset--color--brand-deep) 82%, #000); transform: translateY(-2px); }
.asm-to-top:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .asm-to-top { transition: none; } }

/* ============================================================
 * Boutons — centrage fiable + largeur maîtrisée
 * ============================================================ */
.wp-block-button__link { text-align: center; }
/* Le cœur + le texte toujours centrés dans le bouton */
.wp-block-button.has-heart .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Les boutons « pleine largeur » (width-100) ne s'étirent plus indéfiniment :
   ils restent lisibles et pas trop larges, et centrés dans leur conteneur. */
.wp-block-button.wp-block-button__width-100 { max-width: 360px; }
/* 2026-09-09 : les boutons du contenu suivent l'alignement choisi dans l'editeur
   (gauche par defaut, comme l'affiche Gutenberg). On NE force plus le centrage global
   (qui creait un ecart editeur/site). Les boutons a centrer doivent etre regles sur
   « Centrer » dans l'editeur. Le hero garde son centrage via sa regle dediee (.asm-hero). */

/* ============================================================
 * Compteur de collecte — mobile
 * ============================================================ */
@media (max-width: 560px) {
  .asm-collecte { padding: 1.5rem 1.25rem; }
  .asm-collecte .collect-gauge__head { grid-template-columns: 1fr auto; }
  .asm-collecte .collect-gauge__amount { font-size: 2rem; }
  .asm-collecte .collect-gauge__pct { font-size: 1.5rem; }
  .asm-collecte .collect-gauge__meta { font-size: 0.85rem; }
  .asm-map-embed__bar { gap: 0.6rem; }
}

/* ============================================================
 * Home mobile — header solide dans le flux (fin du chevauchement logo/hero)
 * (placé en fin de feuille pour l'emporter sur la règle desktop `position:fixed`)
 * ============================================================ */
@media (max-width: 781px) {
  body.home .site-header { position: sticky; top: 0; }
  body.home .site-header .site-navrow { background-color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
  body.home .site-header .site-navrow .main-nav a { color: var(--wp--preset--color--ink); }
  body.home .site-header .nav-toggle span { background: var(--wp--preset--color--ink); }
  /* Logo compact en mobile */
  .site-header .asm-logo img,
  body.home .site-header:not(.hdr-scrolled) .site-navrow .asm-logo img,
  .site-header.hdr-scrolled .site-navrow .asm-logo img { height: 56px; }
  /* Header dans le flux : on garde un peu d'air au-dessus de l'eyebrow */
  .asm-hero { padding-top: 2.25rem !important; }
  /* Eyebrow « DEPUIS PLUS DE 100 ANS » sur UNE seule ligne en mobile */
  .asm-hero .hero-eyebrow { white-space: nowrap; font-size: 0.72rem; letter-spacing: 0.12em; gap: 10px; }
  .asm-hero .hero-eyebrow::before, .asm-hero .hero-eyebrow::after { flex-basis: 22px; width: 22px; }
}

/* ============================================================
 * Correctifs mobile HP (v2.2.5)
 * ============================================================ */
@media (max-width: 781px) {
  /* Header home : barre de contact solide dès le haut (même non scrollée) → visible */
  body.home .site-header .site-topbar,
  body.home .site-header:not(.tb-scrolled) .site-topbar { background-color: var(--wp--preset--color--ink) !important; }
  body.home .site-header:not(.hdr-scrolled) .nav-toggle span { background: var(--wp--preset--color--ink); }
  /* Les 2 liens de la barre de contact sur UNE seule ligne */
  .site-topbar__inner {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.72rem;
  }
  .site-topbar__email, .site-topbar__fdhs { white-space: nowrap; }
}
@media (max-width: 900px) {
  /* Gouttières : les sections en split (histoire, établissements) ne collent plus aux bords */
  .asm-split { padding-left: 20px; padding-right: 20px; }
  .asm-split .asm-cards-2 { padding-left: 0; padding-right: 0; }
}

/* ============================================================
 * Correctif mobile — chiffres « Mon Village 2030 » centrés (v2.2.9)
 * ============================================================ */
@media (max-width: 781px) {
  /* La section « Mon Village 2030 » a son titre + intro centrés ; en mobile les
     colonnes de chiffres s'empilent et restaient alignées à gauche → on les centre.
     Scopé à la colonne voisine de la jauge de collecte (:has(.collect-gauge)) :
     les stats des pages établissement ne sont pas dans un bloc contenant la jauge,
     donc elles ne sont pas touchées. */
  .wp-block-columns:has(.collect-gauge) .stat-number,
  .wp-block-columns:has(.collect-gauge) .stat-number + p {
    text-align: center;
  }
}

/* ============================================================
 * Correctif — suptitres (eyebrow) alignés à gauche comme les titres (2026-07-20)
 * Dans les panneaux .asm-panel (flex column), la mise en page "constrained" de
 * WordPress applique margin-inline:auto à chaque enfant. Les titres, longs,
 * remplissent la colonne (~440px) et paraissent donc alignés à gauche ; les
 * suptitres, courts, se réduisent à leur texte et se retrouvent centrés.
 * On force le suptitre à occuper toute la largeur de la colonne → même bord
 * gauche que le titre. (N'affecte pas le suptitre centré du hero, hors .asm-panel.)
 * ============================================================ */
.asm-panel .eyebrow-script {
  width: 100%;
}

/* ============================================================
 * Correctif espacements — sections split histoire / etablissements (2026-07-20)
 * Respiration cote contenu (photos/cartes) symetrique au padding des panneaux,
 * ecart entre photos resserre, et chevauchement de la carte adjacente au panneau
 * turquoise (miroir de la 1re photo sur le panneau vert). Desktop uniquement
 * (>=901px) ; en mobile le split s'empile, on ne touche a rien.
 * ============================================================ */
@media (min-width: 901px) {
  .asm-photos-3 { gap: 16px !important; padding-right: 68px !important; }
  .asm-split .asm-cards-2 { padding-left: 68px !important; }
  .asm-split .asm-cards-2 .wp-block-column:last-child { margin-right: -56px; z-index: 2; position: relative; }
}

/* ============================================================
 * Correctif hauteur cartes / panneau — Nos etablissements (2026-07-20)
 * Cartes plus compactes (espace photo->texte et bas de carte reduits) et
 * panneau turquoise plus haut que les cartes (centrees, effet superpose).
 * Desktop uniquement (>=901px) ; mobile inchange.
 * ============================================================ */
@media (min-width: 901px) {
  .asm-split .asm-cards-2 .card > .has-global-padding { margin-top: 4px !important; padding-top: 10px !important; padding-bottom: 8px !important; }
  .asm-split .asm-cards-2 { display: flex !important; flex-direction: column !important; justify-content: center !important; }
  .asm-panel--teal { padding-top: 104px !important; padding-bottom: 104px !important; padding-left: 92px !important; } /* 2026-07-20 : padding gauche => ~60px entre cartes et texte */
}

/* ============================================================
 * Correctif — texte du panneau turquoise aligne a gauche (2026-07-20)
 * Le contenu etait centre dans le panneau => trop d'espace entre les cartes
 * et le texte. On l'aligne a gauche pour rapprocher le texte des cartes.
 * Desktop uniquement (>=901px).
 * ============================================================ */
@media (min-width: 901px) {
  .asm-panel--teal.is-layout-constrained > * { margin-left: 0 !important; margin-right: auto !important; max-width: none !important; } /* remplit la largeur du panneau (evite le vide a droite) */
}

/* ============================================================
 * Correctif — texte du panneau fonce (Notre histoire) : moins de padding
 * gauche + aligne a gauche (etait centre => trop decale du bord). (2026-07-20)
 * Desktop uniquement (>=901px).
 * ============================================================ */
@media (min-width: 901px) {
  .asm-panel--dark.is-layout-constrained > * { margin-left: 0 !important; margin-right: auto !important; max-width: none !important; }
  .asm-panel--dark { padding-left: 68px !important; padding-right: 76px !important; } /* texte remplit + marge vers photos */
}

/* ============================================================
 * Correctif — cartes etablissements : suppression du contour +
 * ombre portee legere (remplace l'ancien 1px solid border). (2026-07-20)
 * Tous ecrans.
 * ============================================================ */
.asm-cards-2 .card { border: none !important; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important; }

/* ============================================================
 * Correctif — cartes Actualités : reduire l'espace photo -> texte (2026-07-20)
 * (meme compacite que les cartes etablissements). Tous ecrans.
 * ============================================================ */
.wp-block-post .card > .has-global-padding { margin-top: 4px !important; padding-top: 10px !important; }
.asm-news-carousel .card > .has-global-padding > * { margin-left: 0 !important; margin-right: auto !important; }
.wp-block-post .card { height: 100% !important; } /* cartes Actualités a hauteur egale */

/* ============================================================
 * Carrousel « Actualités » (accueil) — active par .asm-news-carousel
 * (classe ajoutee par le JS du theme, page d'accueil). Badges de categorie
 * sur l'image, boutons « Lire l'article », fleches. (2026-07-20)
 * ============================================================ */
.asm-news-carousel { display: flex !important; gap: 24px !important; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 18px 0 30px; width: calc(50% + 50vw); max-width: none !important; }
.asm-news-carousel::-webkit-scrollbar { display: none; }
.wp-block-group.alignfull:has(.asm-news-carousel) > .alignwide { max-width: 1280px !important; }
.wp-block-query.alignwide:has(.asm-news-carousel) { position: relative; }
.wp-block-query.alignwide:has(.asm-news-carousel)::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc((100% - 100vw) / 2); width: 90px; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--wp--preset--color--background)); pointer-events: none; z-index: 4; }
.asm-news-carousel > li.wp-block-post { flex: 0 0 calc((min(1280px, 100vw - 48px) - 48px) / 3); max-width: none; scroll-snap-align: start; }
.asm-news-carousel .card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.wp-block-post .card { border: none !important; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important; } /* cartes Actualités : sans bordure + ombre legere */
.asm-news-carousel .card > .has-global-padding { display: flex; flex-direction: column; flex: 1 1 auto; }
.asm-news-carousel .wp-block-post-featured-image { position: relative; max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.asm-news-carousel .asm-news-badge { position: absolute; top: 14px; left: 14px; z-index: 2; margin: 0 !important; }
.asm-news-carousel .asm-news-badge a { display: inline-block; background: var(--wp--preset--color--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 13px; border-radius: 9999px; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.asm-news-carousel .asm-news-badge[data-cat="event"] a { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
.asm-news-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; align-self: flex-start; background: var(--wp--preset--color--subtle); color: var(--wp--preset--color--brand-deep); font-weight: 700; padding: 9px 20px; border-radius: 9999px; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
.asm-news-more:hover { background: var(--wp--preset--color--brand); color: var(--wp--preset--color--on-brand); transform: translateX(3px); }
.asm-news-nav { display: inline-flex; gap: 10px; align-self: center; }
.asm-news-nav__btn { width: 48px; height: 48px; border-radius: 9999px; border: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--wp--preset--color--ink); background: #e6e8e7; transition: opacity .18s, filter .18s; }
.asm-news-nav__next { background: var(--wp--preset--color--accent); }
.asm-news-nav__btn:hover { filter: brightness(.95); }
.asm-news-nav__btn:disabled { opacity: .35; cursor: default; }
.asm-news-allbtn { justify-content: flex-end !important; margin-top: 6px; max-width: 1280px !important; margin-left: auto !important; margin-right: auto !important; }

/* ============================================================
 * Barre du haut : icone mail avant l'email, separateur + fleche
 * avant « Fonds Handicap Solidarite ». (2026-07-21)
 * ============================================================ */
.site-topbar__email::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") no-repeat center / contain; }
.site-topbar__fdhs { border-left: 1px solid rgba(255, 255, 255, 0.3); margin-left: 16px; padding-left: 16px; }
.site-topbar__fdhs::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain; }

/* ============================================================
 * Bouton « Nous contacter » (Soutenir) = style du bouton « Demande de
 * placement » du hero (vert brand-deep plein, texte blanc). (2026-07-21)
 * ============================================================ */
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link { background-color: var(--wp--preset--color--brand-deep) !important; color: var(--wp--preset--color--on-brand) !important; border: none !important; padding: 12px 28px !important; }
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover, .has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link:focus { background-color: color-mix(in srgb, var(--wp--preset--color--brand-deep) 82%, #000) !important; color: var(--wp--preset--color--on-brand) !important; }

/* ============================================================
 * Footer : texte en blanc (lisibilite) ; liens inchanges (couleur 0.55 +
 * hover actuels conserves, pour rester distinguables - a11y). (2026-07-21)
 * ============================================================ */
.site-footer { color: #fff; }
.site-footer .footer-baseline, .site-footer .footer-heading, .site-footer .footer-partner-tagline, .site-footer .footer-legal__text { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, 0.55); }

/* ============================================================
 * Carrousel Actualites - mobile : 1 seule carte pleine largeur,
 * sans degrade. (2026-07-21)
 * ============================================================ */
@media (max-width: 600px) {
  .asm-news-carousel { width: auto; }
  .asm-news-carousel > li.wp-block-post { flex: 0 0 calc(100vw - 48px); max-width: calc(100vw - 48px); }
  .wp-block-query.alignwide:has(.asm-news-carousel)::after { display: none; }
}

/* ============================================================
 * Liens sur fond sombre (ink) : menthe visible au lieu du vert profond
 * (illisible sur fond sombre). Ex. « Fonds de Dotation… » du bloc Soutenir. (2026-07-23)
 * ============================================================ */
.has-ink-background-color a:not(.wp-element-button):not(.wp-block-button__link) { color: var(--wp--preset--color--brand) !important; }
.has-ink-background-color a:not(.wp-element-button):not(.wp-block-button__link):hover { color: #fff !important; }

/* ============================================================
 * Header réduit (état scrollé) : moins de hauteur, sans toucher au logo
 * ni à la typo (padding vertical resserré). (2026-07-23)
 * ============================================================ */
.site-header.hdr-scrolled .site-navrow__inner { padding-top: 6px !important; padding-bottom: 6px !important; }

/* ============================================================
 * Correctifs mobile — audit du 2026-09-16
 * 1. Formulaires (contact + demande de placement) : padding de carte
 *    reduit sous 600px (36px de chaque cote laissaient 255px utiles
 *    sur un ecran de 375px et tronquaient le bouton « Choisir un fichier »).
 * 2. Champs a 16px minimum : sous ce seuil, Safari iOS zoome au focus.
 * 3. Bouton « revenir en haut » : remonte quand le widget de chat
 *    occupe le meme coin (sinon il passe dessous, z-index Gleap tres eleve).
 * 5. Cibles tactiles : 48px minimum sur les boutons d envoi.
 * 6. Bandeau 3 photos : 2 colonnes sous 600px (vignettes de 81px sinon).
 * ============================================================ */

/* — 1. Cartes de formulaire : gouttiere interne resserree sur mobile —
   (le padding est pose en style inline par le pattern : !important requis) */
@media (max-width: 600px) {
  .asm-contact-form {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Champ « Piece jointe » : l intitule des formats passe sous l input,
     qui recupere ainsi toute la largeur de la ligne. */
  .asm-contact-form .ginput_container_fileupload { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .asm-contact-form .ginput_container_fileupload input[type="file"] { flex: 1 1 auto; min-width: 0; }
  .asm-contact-form .ginput_container_fileupload .gform_fileupload_rules { flex: 1 1 100%; }
}

/* — 2. Pas de zoom automatique iOS au focus (seuil : 16px) — */
@media (max-width: 782px) {
  .asm-contact-form .gform_wrapper input[type="text"],
  .asm-contact-form .gform_wrapper input[type="email"],
  .asm-contact-form .gform_wrapper input[type="tel"],
  .asm-contact-form .gform_wrapper input[type="number"],
  .asm-contact-form .gform_wrapper textarea,
  .asm-contact-form .gform_wrapper select,
  .asm-newsletter-gf .gform_wrapper input[type="email"],
  .asm-newsletter-gf .gform_wrapper input[type="text"],
  .asm-newsletter-form input { font-size: 16px !important; }
}

/* — 3. « Revenir en haut » deplace hors du widget de chat (meme coin) — */
body:has(.bb-feedback-button) .asm-to-top,
body:has(.gleap-widget) .asm-to-top {
  bottom: calc(clamp(1rem, 2vw, 2rem) + 62px);
}

/* — 5. Cibles tactiles : 48px minimum (recommandation WCAG 2.2 / iOS) — */
@media (max-width: 782px) {
  .asm-contact-form .gform_footer input[type="submit"],
  .asm-contact-form .gform_wrapper button.gform_button,
  .asm-newsletter-gf .gform_wrapper input[type="submit"],
  .asm-newsletter-gf .gform_wrapper button.gform_button,
  .asm-newsletter-form button {
    min-height: 48px !important; /* Gravity Forms (theme orbital) impose 38px */
    padding-top: 0.75rem !important; padding-bottom: 0.75rem !important;
    font-size: 15px !important;
  }
}

/* — 6. Bandeau 3 photos : 2 colonnes sous 600px — */
@media (max-width: 600px) {
  .asm-photos-3 { flex-wrap: wrap !important; gap: 12px !important; }
  .asm-photos-3 .asm-photo { flex: 0 1 calc(50% - 6px); }
}

/* ============================================================
 * Panneaux « Notre histoire » / « Nos etablissements » — padding mobile
 * (2026-09-16). Les patterns posent spacing--70/--80 en style inline :
 * 54px lateraux sur un panneau de 335px ne laissaient que ~227px de texte,
 * et 81px haut/bas allongeaient inutilement le bloc. !important requis
 * pour passer devant le style inline. Desktop (>=601px) inchange.
 * ============================================================ */
@media (max-width: 600px) {
  .asm-panel {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* ============================================================
 * Blocs de chiffres — grille 2 x 2 sur tablette (2026-09-16)
 * WordPress empile les colonnes sous 782px : les 4 chiffres du hero et
 * ceux de « Mon Village 2030 » se retrouvaient sur une seule colonne,
 * tres haute. On les remet en 2 x 2 entre 600 et 781px.
 * Le bloc « Particuliers / Entreprises » (.equal-cards) n'est pas concerne :
 * ses deux cartes restent empilees.
 * ============================================================ */
@media (min-width: 600px) and (max-width: 781px) {
  /* Chiffres cles du hero : 4 colonnes -> 2 x 2 */
  .wp-block-cover__inner-container > .wp-block-columns { flex-wrap: wrap !important; row-gap: 32px; }
  .wp-block-cover__inner-container > .wp-block-columns > .wp-block-column {
    box-sizing: border-box !important; /* sinon le filet de 1px s'ajoute a la largeur et fait passer a la ligne */
    flex-basis: calc(50% - 13px) !important;
    flex-grow: 0 !important;
  }
  /* Filet vertical : seulement sur la colonne de gauche */
  .wp-block-cover__inner-container > .wp-block-columns > .wp-block-column:nth-child(even) { border-right: 0 !important; }

  /* Chiffres « Projet Mon Village 2030 » : les 2 colonnes internes restent
     cote a cote (chacune porte 2 chiffres) => 2 x 2. Le bloc parent, lui,
     continue de s'empiler (texte au-dessus des chiffres). */
  .has-brand-accent-gradient-background .wp-block-column > .wp-block-columns > .wp-block-column {
    flex-basis: calc(50% - 12px) !important;
    flex-grow: 1 !important;
  }
}

/* Telephone (<600px) : le filet vertical des colonnes du hero n'a plus de
   sens une fois les chiffres empiles — il tracait un trait a droite. */
@media (max-width: 599px) {
  .wp-block-cover__inner-container > .wp-block-columns > .wp-block-column { border-right: 0 !important; }
}
