/*
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.2.8
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
*/

/* ============================================================
 * 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);
  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);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--subtle);
}

/* ============================================================
 * 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;
}

.card {
  background: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--border);
  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); }
.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: none; color: var(--wp--preset--color--brand-deep); }
.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"); }

/* ============================================================
 * 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 { color: var(--wp--preset--color--brand); }
.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) !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: var(--wp--preset--color--brand-strong) !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'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%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):focus-visible {
  outline: 3px solid var(--wp--preset--color--brand);
  outline-offset: 3px;
}
.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: var(--wp--style--global--wide-size, 1200px); }
.entry-content > .alignfull { max-width: none; width: 100%; }
/* 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; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .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.45); margin-top: 1.25rem; }
.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  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.45); }
.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.2); margin: 0; }
.footer-legal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; color: rgba(255, 255, 255, 0.2); }
.footer-legal-menu { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-legal__links, .footer-legal__links a { color: rgba(255, 255, 255, 0.2); }

@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(3rem, 2rem + 4vw, 4.5rem);
  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; }
.page-hero__desc { margin-top: 1rem; color: var(--wp--preset--color--ink-soft); }

.page-body {
  padding-bottom: 4rem;
}

/* 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); 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); }
.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); line-height: 1; margin: 0; }
.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; border-left: 2px solid color-mix(in srgb, var(--wp--preset--color--brand) 35%, transparent); }
.asm-timeline__item { position: relative; padding-bottom: 2.25rem; }
.asm-timeline__item:last-child { padding-bottom: 0; }
.asm-timeline__item::before {
  content: ""; position: absolute; left: -2.85rem; top: 0.35rem;
  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);
}
.asm-timeline__year { color: var(--wp--preset--color--brand-deep) !important; margin: 0 0 0.35rem !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); color: var(--wp--preset--color--on-brand);
  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: var(--wp--preset--color--brand-strong); transform: translateY(-1px); }

/* ============================================================
 * 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; }
/* CTA dans le contenu des pages : groupes de boutons centrés (sauf si
   explicitement alignés à gauche via l'éditeur). N'affecte pas header/footer/cartes. */
.entry-content .wp-block-buttons:not(.is-content-justification-left):not(.is-content-justification-space-between) {
  justify-content: center;
}

/* ============================================================
 * 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; }
}
