/* Feuille du thème enfant kadence-child (site-web-ana), reprise pour la maquette
   Wagtail : chemins d'images réécrits, sections des fonctions non reprises retirées. */
/*
Theme Name: Kadence Child ANA-CEN
Template: kadence
Version: 2.1.0
Text Domain: kadence-child-ana
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Variables — palette inspirée logo ANA-CEN ── */
:root {
  --v:        #3e9645;   /* vert vif logo "Ariège" */
  --vd:       #1a2b38;   /* marine-forêt foncé — fond dark moderne */
  --vl:       #68c460;   /* vert clair */
  --orange:   #d97818;   /* orange chaud logo "Ana" — accent CTA */
  --text:     #1c2820;
  --muted:    #5a6e68;
  --bg:       #ffffff;
  --bg-warm:  #f4f8f4;
  --border:   #dae8da;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  font-weight: 700;
  margin-top: 0;
}

a { color: var(--v); transition: color .2s; text-decoration: none; }
a:hover { color: var(--vd); }
img { max-width: 100%; height: auto; display: block; }


/* ================================================================
   HEADER — transparent sur hero, solide ailleurs
   ================================================================ */

/* Kadence header wrappers */
.site-top,
#masthead,
.kadence-sticky-header,
header.site-header {
  transition: background .35s, box-shadow .35s;
}

/* Page d'accueil : header flottant.
   Il démarre SOUS la barre d'en-tête, qu'il recouvrait sinon — celle-ci est
   fixe comme lui — voir plus bas. --ana-topbar-h est mesurée au chargement
   plutôt que devinée : la barre change de hauteur avec la largeur de l'écran.
   Ce décalage ne varie jamais : l'en-tête reste immobile au défilement. */
body.home .site-top,
body.home #masthead,
body.home header.site-header {
  position: fixed !important;
  top: var(--ana-topbar-h, 0px); left: 0; right: 0;
  z-index: 200;
  background: transparent !important;
  box-shadow: none !important;
}

/* Barre admin WordPress : compenser le décalage sur le header fixe de l'accueil */
.admin-bar body.home .site-top,
.admin-bar body.home #masthead,
.admin-bar body.home header.site-header,
body.home.admin-bar .site-top,
body.home.admin-bar #masthead,
body.home.admin-bar header.site-header {
  top: calc(32px + var(--ana-topbar-h, 0px)) !important;
}
.admin-bar body.home #wrapper::before,
body.home.admin-bar #wrapper::before {
  top: calc(32px + var(--ana-topbar-h, 0px)) !important;
}
@media screen and (max-width: 782px) {
  .admin-bar body.home .site-top,
  .admin-bar body.home #masthead,
  .admin-bar body.home header.site-header,
  body.home.admin-bar .site-top,
  body.home.admin-bar #masthead,
  body.home.admin-bar header.site-header {
    top: calc(46px + var(--ana-topbar-h, 0px)) !important;
  }
  .admin-bar body.home #wrapper::before,
  body.home.admin-bar #wrapper::before {
    top: calc(46px + var(--ana-topbar-h, 0px)) !important;
  }
}

/* Bandeau sombre derrière le header pour lisibilité sur photo */
body.home #wrapper::before {
  content: '';
  position: fixed;
  top: var(--ana-topbar-h, 0px); left: 0; right: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(5,15,8,0.65) 0%, transparent 100%);
  z-index: 100;
  pointer-events: none;
}

/* Sur l'accueil, la barre d'en-tête est fixe elle aussi.
   Elle l'était auparavant dans le flux : elle défilait, et l'en-tête devait
   alors remonter de sa hauteur — un saut de 24 px en cours de défilement, que
   l'œil accroche. Fixe, plus rien ne bouge, et SOS Animaux reste joignable à
   tout moment, ce qui était l'intention de cette barre. */
body.home .ana-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
}
body.home.admin-bar .ana-topbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.home.admin-bar .ana-topbar { top: 46px; }
}

/* Scroll : fond sombre dès que l'on quitte le hero */
body.home .site-top.ana-scrolled,
body.home #masthead.ana-scrolled,
body.home header.site-header.ana-scrolled,
body.home .site-top.kadence-scrolled,
body.home #masthead.kadence-scrolled {
  background: rgba(18, 28, 42, 0.97) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25) !important;
}

/* Pages intérieures : header solide vert sombre */
body:not(.home) .site-top,
body:not(.home) #masthead,
body:not(.home) header.site-header {
  background: #1a2b38 !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15) !important;
}

/* Logo image */
.site-logo img,
.custom-logo-link img,
.kadence-site-branding .custom-logo {
  max-height: 56px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  /* Logo en blanc sur le fond sombre du header */
  filter: brightness(0) invert(1) !important;
  transition: opacity .2s !important;
}
.custom-logo-link:hover img { opacity: 0.85 !important; }

/* Ombre portée du logo.
   Sélecteur volontairement différent de la règle ci-dessus : celle-ci ne
   s'applique à rien. Ses trois sélecteurs — .site-logo img, .custom-logo-link
   img, .kadence-site-branding .custom-logo — ne correspondent à aucun élément
   du balisage réel, qui est .site-branding > a.brand > img.custom-logo. C'est
   pourquoi le logo s'affiche en couleurs sur son fond blanc, et non en blanc
   comme cette règle le prévoyait.
   L'ombre décolle le bloc blanc du fond photographique, où il paraissait collé. */
.site-branding img.custom-logo {
  /* L'en-tête est sombre partout — photo assombrie sur l'accueil, vert foncé
     ailleurs. Une ombre noire diffuse s'y dissout : elle était bien dessinée,
     mais invisible. D'où une ombre courte et franche, qui porte le contraste
     près du bord, doublée d'un liseré clair d'un pixel qui détache le blanc
     du fond quoi qu'il arrive derrière. */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.85),
    0 10px 28px rgba(0, 0, 0, 0.45);
  border-radius: 3px;
}

/* Cacher le titre texte — toutes variantes Kadence */
.site-branding .site-title,
.site-branding p.site-title,
.kadence-site-branding .site-title,
.kadence-site-branding p.site-title,
.header-site-branding .site-title,
#site-title,
.wp-block-site-title,
h1.site-title,
p.site-title { display: none !important; }
.site-branding .site-description,
.kadence-site-branding .site-description { display: none !important; }

/* Liens de navigation */
.site-header .nav--primary a,
.main-navigation a,
#site-navigation a,
.kadence-navigation .menu > li > a {
  font-family: 'DM Sans', sans-serif !important;
  /* 0,9 rem (14,4 px) : un cran sous le corps du texte, à la demande (2026-11-06) ;
     les liens des menus déroulants suivent, cette règle l'emportant sur .sub-menu a. */
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  /* Interlettrage resserré et marges intérieures réduites : à 1,44rem,
     l'espacement d'origine (0,12em) faisait déborder « Ressources » hors de
     l'écran. Ces deux réglages rendent ~200 px sans toucher aux caractères. */
  letter-spacing: 0.04em !important;
  color: rgba(255,255,255,0.88) !important;
  text-decoration: none !important;
  padding: 0.4rem 0.75rem !important;
  transition: color .2s !important;
}
.kadence-navigation .menu > li > a { padding: 0.4rem 0.5rem !important; }
.site-header .nav--primary a:hover,
.kadence-navigation .menu > li > a:hover { color: #ffffff !important; }

/* Navigation centrée entre le logo et le bouton « Adhérer » (2026-11-06).
   Centrée sur la page, elle passait sous le logo dès que le menu s'allongeait :
   six rubriques font 930 px, et à 1 366 px la première glissait de 20 px sous la
   marque. La rangée devient deux colonnes — la marque, puis l'espace restant —
   et le bouton, posé hors de la rangée, s'y réserve sa place à droite : le menu
   se centre dans ce qui reste vraiment. */
#main-header .site-main-header-inner-wrap { position: relative !important; }
@media (min-width: 1025px) {
  #main-header .site-header-row.site-header-row-has-sides,
  #main-header .site-main-header-inner-wrap.site-header-row {
    grid-template-columns: auto minmax(0, 1fr) !important;
    column-gap: 2rem;
  }
  #main-header .site-header-upper-inner-wrap:has(> .ana-adherer) .site-main-header-inner-wrap {
    padding-right: 8rem;
  }
  #main-header .site-header-main-section-right {
    justify-self: stretch !important;
    justify-content: center !important;
    min-width: 0;
    margin: 0 !important;
  }
}
/* Kadence centre le contenu de sa colonne à plusieurs niveaux : la section, le
   conteneur de menu et la liste elle-même. Ils prennent ici leur largeur propre,
   sur une ligne, et la section les centre. */
#main-header .site-header-main-section-right .header-navigation,
#main-header .site-header-main-section-right .header-navigation-layout-standard,
#main-header .site-header-main-section-right .header-menu-container,
#main-header .site-header-main-section-right ul.menu {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}
#main-header .site-header-main-section-right .site-header-item { margin-right: 0; }
/* Kadence répartit les entrées à largeur égale, ce qui coupe les libellés en
   deux à cette taille. Chaque entrée reprend sa largeur propre, sur une ligne. */
#main-header .site-header-main-section-right ul.menu {
  display: flex !important;
  grid-template-columns: none !important;
}
#main-header .site-header-main-section-right ul.menu > li {
  width: auto !important;
  flex: 0 0 auto !important;
}
#main-header .site-header-main-section-right ul.menu > li > a {
  white-space: nowrap !important;
}
/* Sur les écrans moyens, les rubriques se resserrent : marges intérieures et
   interlettrage d'abord, puis un cran de corps. */
@media (max-width: 1439px) {
  #main-header #site-navigation ul.menu > li > a {
    padding: 0.4rem 0.5rem !important;
    letter-spacing: 0.02em !important;
  }
}
@media (max-width: 1299px) {
  #main-header #site-navigation ul.menu > li > a {
    padding: 0.4rem 0.4rem !important;
    letter-spacing: 0 !important;
    font-size: 0.86rem !important;
  }
}
/* Un menu qui ne tient toujours pas — trop de rubriques pour la largeur — ne passe
   ni sous le logo ni sous le bouton : l'en-tête prend alors la forme des écrans
   étroits, logo et bouton de menu (anacen.js pose la classe). */
.ana-menu-replie #main-header { display: none !important; }
.ana-menu-replie #mobile-header { display: block !important; }
/* À ces largeurs, l'en-tête des écrans étroits garde sa largeur bornée : il prend
   toute la largeur, comme celui des grands écrans, et le bouton de menu se range à droite. */
.ana-menu-replie #mobile-header .site-header-row-container-inner > .site-container {
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Bouton de menu des écrans étroits ──
   Gris de Kadence sur l'en-tête bleu nuit (contraste 1,9 : 1), il passait
   inaperçu : en réduisant la fenêtre, le menu semblait disparaître. Blanc,
   entouré et nommé « Menu », il se repère d'un coup d'œil (2026-11-06). */
.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open:focus {
  color: #fff;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mobile-toggle-open-container .menu-toggle-open:hover,
.mobile-toggle-open-container .menu-toggle-open:focus-visible {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.mobile-toggle-open-container .menu-toggle-open .menu-toggle-icon { display: flex; font-size: 22px; }

/* Sous-menus — style dropdown élégant */
.sub-menu {
  background: rgba(20, 32, 22, 0.97) !important;
  backdrop-filter: blur(16px) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) !important;
  border-radius: 0 0 10px 10px !important;
  padding: 0.5rem 0 !important;
  min-width: 220px !important;
  margin-top: 0 !important;
}
/* Délai de fermeture : sous-menu reste visible pendant la grace period JS */
.header-navigation li.menu-item-has-children.hover-grace > ul.sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
}
/* Titre d'une rubrique (core/entete.html) : il ouvre son menu, il ne mène à aucune
   page. Échap referme le menu même quand le focus clavier y reste (anacen.js). */
.header-navigation .ana-rubrique { cursor: default; }
/* Dans le tiroir, le toucher laisse le titre « survolé » : il garde sa couleur. */
.drawer-nav-drop-wrap .ana-rubrique,
.drawer-nav-drop-wrap .ana-rubrique:hover { color: inherit; cursor: pointer; }
.header-navigation li.ana-referme:not(.hover-grace) > ul.sub-menu { display: none !important; }
.sub-menu a {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.04em !important;
  padding: 0.6rem 1.3rem !important;
  border: none !important;
  font-weight: 400 !important;
  text-transform: none !important;
  transition: color .15s, padding-left .15s !important;
}
.sub-menu a:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.05) !important;
  padding-left: 1.6rem !important;
}
/* Séparateur discret entre sections */
.sub-menu .menu-item:first-child a { border-radius: 10px 10px 0 0; }
.sub-menu .menu-item:last-child a  { border-radius: 0 0 10px 10px; }
/* Sous-sous-menus */
.sub-menu .sub-menu {
  margin-top: 0 !important;
  margin-left: 4px !important;
  border-radius: 10px !important;
}


/* ================================================================
   HERO — section plein écran
   ================================================================ */
.hero-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0f1e2c center center / cover no-repeat;
  padding: 8rem 2rem 4rem;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,25,15,0.42) 0%,
    rgba(15,35,20,0.55) 50%,
    rgba(5,15,8,0.72) 100%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  width: 100%;
}

.hero-surtitle {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif !important;
  color: #ffffff !important;
  font-size: clamp(2.8rem, 7vw, 5.5rem) !important;
  white-space: nowrap;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin: 0 0 0.15em !important;
  letter-spacing: -0.01em;
}

.hero-title em {
  display: inline;
  font-style: italic;
  font-weight: 400;
  font-size: 1em;
  color: rgba(255,255,255,0.95) !important;
}

.hero-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn-primary {
  background: var(--v);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 2px solid var(--v);
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--vd); border-color: var(--vd); color: #fff; }

.btn-outline {
  background: transparent;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: #ffffff; background: rgba(255,255,255,0.08); color: #fff; }

/* Stats bar */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 2.5rem;
  margin-bottom: 2rem;
}

.hero-stat { text-align: center; }

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

/* Badges */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.32rem 0.95rem;
}

/* Flèche scroll */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 1.25rem;
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}


/* ================================================================
   PAGES INTÉRIEURES — bandeau clair élégant
   ================================================================ */
.page-hero {
  padding: 2rem 2rem 2rem;
  text-align: center;
  position: relative;
  background: #f5faf5;
  border-bottom: 3px solid var(--orange);
}

.page-hero .breadcrumb {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a {
  color: var(--v);
  text-decoration: none;
}
.page-hero .breadcrumb a:hover { color: var(--vd); }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
  font-weight: 700;
}
.page-hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--v);
}

/* Bandeau en photo : la photo à 80 % d'opacité sur le vert pâle des bandeaux
   sans photo, elle s'efface derrière le titre. */
.page-hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5faf5;
}
/* Ces 80 % : la photo couverte du même vert pâle à 20 %. Le contraste est porté
   par le panneau posé derrière le seul titre — 68 % de vert très sombre sur le
   pire fond, une zone blanche, donnent 6,5:1 pour du blanc ; le fil d'Ariane,
   petit texte, a ses 4,5:1 comme le titre. */
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245,250,245,0.2);
}
.page-hero--photo > * { position: relative; z-index: 1; }
.page-hero--photo .page-hero-inner {
  display: inline-block;
  padding: 1.25rem 2.25rem 1.5rem;
  border-radius: 14px;
  background: rgba(8,20,13,0.68);
  backdrop-filter: blur(3px);
}
.page-hero--photo .breadcrumb,
.page-hero--photo .breadcrumb a,
.page-hero--photo h1 { color: #ffffff; }
.page-hero--photo h1 em { color: #d9f0dd; }
/* Un bandeau en photo mérite un peu plus d'air qu'un aplat. */
.page-hero--photo { padding-top: 3.5rem; padding-bottom: 3.5rem; }


/* mini-nav sous le bandeau titre (pages avec sous-rubriques) */
.page-subnav {
  background: #f5faf5;
  border-bottom: 1px solid #e2ede2;
  padding: 1rem 1.5rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}
.page-subnav__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 0.25rem;
}
.page-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: var(--v);
  color: #fff;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(74,120,74,0.18);
  transition: background .18s, box-shadow .18s, transform .15s;
}
.page-subnav a::after {
  content: '→';
  font-size: 0.9em;
  opacity: 0.8;
}
.page-subnav a:hover {
  background: var(--vd, #2e6b2e);
  box-shadow: 0 4px 12px rgba(74,120,74,0.28);
  transform: translateY(-1px);
}


/* ================================================================
   SECTIONS CONTENU
   ================================================================ */
.section {
  padding: 5.5rem 0;
}
.section-warm { background: var(--bg-warm); }

/* Section « Prochaines animations » : photo pleine largeur.
   Le voile sombre n'est pas décoratif — il rend le contraste prévisible. Une
   photo seule ne le garantit jamais : ses zones claires se déplacent selon le
   recadrage, qui varie avec la largeur de l'écran, et un titre blanc peut s'y
   perdre. Le voile pose un plancher, ce que le RGAA demande.
   Le chemin de l'image part de la racine du site : la feuille est servie depuis
   le cache d'Autoptimize, où un chemin relatif ne pointerait plus au bon
   endroit. */
/* .section-photo porte le traitement — voile, panneau, couleurs ; chaque
   section apporte son image. */
.section-photo {
  position: relative;
  background: #1a2b38 center center / cover no-repeat;
}
.section-sorties.section-photo {
  background-image: url("../images/sorties-panorama.eafae8b080f8.jpg");
}
.section-sites.section-photo {
  background-image: url("../images/carte-sites.b48cb543d7c0.jpg");
}
.section-maison.section-photo {
  background-image: url("../images/maison-biodiversite.33c1889d2af5.jpg");
}
.section-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Voile léger : il unifie seulement, sans éteindre la photo. Le contraste
     n'est plus obtenu en assombrissant toute l'image, mais par le panneau
     posé derrière le seul bloc de texte — voir ci-dessous. */
  background: linear-gradient(180deg, rgba(10,24,16,0.18) 0%, rgba(8,20,13,0.28) 100%);
}
.section-photo > * { position: relative; z-index: 1; }

/* Le panneau. Superposé au voile, il porte le fond réellement vu derrière le
   texte : 18 % puis 68 % donnent 74 % d'opacité cumulée, soit 7,5:1 pour du
   blanc dans le pire cas — une zone de ciel blanc de la photo. Le reste de la
   section garde la photo à nu. */
.section-photo .section-entete {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 2rem 2.25rem 1.75rem;
  border-radius: 14px;
  background: rgba(8,20,13,0.68);
  backdrop-filter: blur(3px);
}
.section-photo .section-entete .section-intro { margin-bottom: 0; }
.section-photo .section-label { color: #ffffff; }
.section-photo .section-title { color: #ffffff; }
.section-photo .section-title em { color: #d9f0dd; }
.section-photo .section-intro { color: #ffffff; }
/* Sans sortie à venir, ce message se retrouve seul sur la photo. */
.section-photo .sorties-vide {
  color: #ffffff;
  text-align: center;
  background: rgba(8,20,13,0.68);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.section-photo .sorties-vide a { color: #d9f0dd; }

/* Maison de la Biodiversité : deux colonnes, pas un titre centré. Le panneau
   se pose donc sur la colonne de texte, pas sur un en-tête. */
.section-maison.section-photo .maison-text {
  padding: 2rem 2.25rem;
  border-radius: 14px;
  background: rgba(8,20,13,0.68);
  backdrop-filter: blur(3px);
}
.section-maison.section-photo .section-label,
.section-maison.section-photo .section-title,
.section-maison.section-photo .maison-chapo { color: #ffffff; }
.section-maison.section-photo .maison-chapo { margin-bottom: 1.5rem; }
.section-maison.section-photo .maison-list li {
  color: rgba(255,255,255,0.92);
  border-bottom-color: rgba(255,255,255,0.18);
}
/* Le bouton secondaire est bordé de vert sombre : invisible sur ce panneau. */
.section-maison.section-photo .btn-outline--dark {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}
.section-maison.section-photo .btn-outline--dark:hover {
  background: rgba(255,255,255,0.14);
  border-color: #ffffff;
  color: #ffffff;
}
/* La carte occupe la colonne de droite : cadre net, coins arrondis comme les
   autres visuels du site, au-dessus du fond photographique. */
.ana-carte-maison {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  z-index: 0;
}

/* Carte MapCen intégrée (shortcode [ana_carte_sites]).
   Le cadre porte la hauteur, l'iframe la remplit. La hauteur est bornée par
   « clamp » plutôt que fixée : une valeur en pixels qui va bien sur un écran
   de bureau dévore l'écran d'un téléphone, et une carte sous 320 px ne montre
   plus rien d'utile. */
.ana-carte-mapcen {
  width: 100%;
  height: clamp(320px, 70vh, var(--ana-carte-hauteur, 620px));
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.ana-carte-mapcen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.ana-carte-mapcen-lien {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
}
.section-dark {
  background: #1a2b38;
  color: rgba(255,255,255,0.85);
}
.section-dark h2, .section-dark h3 { color: #ffffff; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-dark .section-label { color: var(--vl); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--v);
}
.section-dark .section-title { color: #ffffff; }

.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}
.section-dark .section-intro { color: rgba(255,255,255,0.65); }




/* ================================================================
   GUTENBERG OVERRIDES
   ================================================================ */
.wp-block-cover {
  min-height: 100vh !important;
}
.wp-block-cover__inner-container {
  max-width: 820px;
  padding: 0 2rem;
}
.wp-block-cover .wp-block-heading {
  font-family: 'Playfair Display', serif !important;
  color: #ffffff !important;
  font-size: clamp(3rem, 8vw, 6rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
}

.wp-block-button__link {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border-radius: 3px !important;
  padding: 0.85rem 2rem !important;
  transition: all .2s !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--v) !important;
  color: #ffffff !important;
  border: 2px solid var(--v) !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--vd) !important;
  border-color: var(--vd) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.65) !important;
  color: #ffffff !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #ffffff !important;
  background: rgba(255,255,255,0.1) !important;
}

/* Contenu éditorial — wrapper centré des pages intérieures */
.anacen-page-wrap {
  display: block;
  width: 100%;
  padding: 3rem 1.5rem 5rem;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

/* ── Oiseau en vol — coin supérieur droit ── */
.anacen-page-wrap::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 420px; height: 260px;
  background: url("../images/bird-flight.5fac24bd94d3.png") no-repeat center/contain;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  filter: invert(1) grayscale(1) brightness(2);
  mix-blend-mode: multiply;
}

/* ── Grenouille — coin inférieur gauche ── */
.anacen-page-wrap::after {
  content: '';
  position: absolute;
  bottom: 3rem; left: 0;
  width: 200px; height: 200px;
  background: url("../images/frog.e4049c2aee41.png") no-repeat center/contain;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

@media (max-width: 900px) {
  .anacen-page-wrap::before { width: 280px; height: 175px; }
  .anacen-page-wrap::after  { width: 140px; height: 140px; }
}
@media (max-width: 600px) {
  .anacen-page-wrap::before,
  .anacen-page-wrap::after  { display: none; }
}

.anacen-page-content {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.anacen-page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--vd);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.anacen-page-content h3 {
  font-size: 1.2rem;
  color: var(--vd);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.anacen-page-content p { margin-bottom: 1.2rem; }
.anacen-page-content ul,
.anacen-page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.anacen-page-content li { margin-bottom: 0.4rem; }
.anacen-page-content a { color: var(--v); }
.anacen-page-content a:hover { color: var(--vd); }

/* Le bouton plein garde son libellé blanc dans le contenu.
   La règle de lien ci-dessus pèse deux classes, « .btn-primary » une seule :
   elle l'emportait, et le libellé sortait vert sur fond vert — un bouton
   d'appel à l'action parfaitement invisible, sur les quatre contenus publiés
   qui en posent un (dont « Contact » et « Adhérer sur HelloAsso »).

   « .btn-outline » n'est pas traité de même : son blanc est fait pour les
   fonds sombres du bandeau et du pied de page ; dans le contenu, sur fond
   blanc, c'est le vert hérité du lien qui le rend lisible. */
.anacen-page-content a.btn-primary,
.anacen-page-content a.btn-primary:hover { color: #ffffff; }
.anacen-page-content blockquote {
  border-left: 3px solid var(--v);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--muted);
  margin: 2rem 0;
}
.anacen-page-content strong { color: var(--vd); }
/* ── Fiches de poste ── */
.ana-offre-emploi {
  background: var(--f7, #f4f8f4);
  border-left: 4px solid var(--v);
  border-radius: 0 10px 10px 0;
  padding: 1.75rem 2rem;
  margin: 1.5rem 0 2.5rem;
}
.ana-offre-emploi h3 {
  font-family: 'Playfair Display', serif;
  color: var(--vd);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
.ana-offre-emploi p { margin-bottom: 0.85rem; }
/* ── Lead paragraphe ── */
.ana-lead {
  font-size: 1.15rem;
  color: var(--vd);
  font-style: italic;
  border-left: 3px solid var(--v);
  padding-left: 1.25rem;
  margin-bottom: 2rem !important;
}
/* ── Liste documents ── */
.ana-doc-list li { margin-bottom: 0.6rem; }
.ana-doc-list a { color: var(--v); font-weight: 600; }
.ana-doc-list a:hover { color: var(--vd); text-decoration: underline; }
/* Compatibilité ancienne classe */
.entry-content {
  max-width: 1080px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}


/* ================================================================
   SECTION ACTUALITÉS — news grid
   ================================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.news-card-img {
  height: 180px;
  overflow: hidden;
  background: #d8edda;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--v);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.5rem;
  display: block;
}
.news-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}
.news-card-title a {
  color: var(--vd);
  text-decoration: none;
}
.news-card-title a:hover { color: var(--v); }
.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.news-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--v);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.news-card-link:hover { color: var(--vd); }


/* ================================================================
   GROUPES THÉMATIQUES — dark section
   ================================================================ */
.section-participer { text-align: center; }

.groups-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2.5rem 0 3rem;
}
.group-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.group-chip:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}
.participer-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ================================================================
   MAISON DE LA BIODIVERSITÉ
   ================================================================ */
.maison-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 768px) { .maison-split { grid-template-columns: 1fr; gap: 2.5rem; } }

.maison-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.maison-list li {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.maison-list li:last-child { border-bottom: none; }




/* ================================================================
   SORTIES — agenda / événements
   ================================================================ */
.sorties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 700px) {
  .sorties-grid { grid-template-columns: 1fr; }
}
.sortie-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform .2s;
}
.sortie-card:hover { transform: translateY(-3px); }
.sortie-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  background: var(--v);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: 'DM Sans', sans-serif;
}
.sortie-day {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.sortie-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}
.sortie-info { flex: 1; }
.sortie-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.sortie-title a {
  color: var(--vd);
  text-decoration: none;
}
.sortie-title a:hover { color: var(--v); }
.sortie-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.sortie-badge {
  display: inline-block;
  background: #e8f5e9;
  color: var(--v);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ================================================================
   PAGE ANIMATIONS — liste détaillée des sorties (template dédié)
   ================================================================ */
.sorties-filters {
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: #e8f5e9;
  border-left: 4px solid var(--v);
  border-radius: 0 6px 6px 0;
}
.sorties-filter-label {
  font-size: 0.85rem;
  color: var(--v);
  font-weight: 500;
}
.sorties-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
/* ── Chauve-souris — filigrane liste des sorties ── */
.sorties-list::after {
  content: '';
  position: absolute;
  bottom: 2rem; right: 0;
  width: 260px; height: 200px;
  background: url("../images/bat.59f82bbbc65e.png") no-repeat center/contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}
.sortie-item {
  background: #fff;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 4px solid var(--v);
  transition: transform .2s, box-shadow .2s;
}
.sortie-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
@media (max-width: 700px) {
  .sortie-item {
    grid-template-columns: 64px 1fr;
    gap: 1rem;
  }
  .sortie-item-badge { grid-column: 2; }
}
.sortie-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.15rem;
}
.sortie-item-day {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--v);
  line-height: 1;
}
.sortie-item-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  margin-top: 0.25rem;
  text-align: center;
}
.sortie-item-content { flex: 1; }
.sortie-item-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.sortie-item-title a {
  color: var(--vd);
  text-decoration: none;
}
.sortie-item-title a:hover { color: var(--v); }
.sortie-item-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.sortie-item-sep { opacity: 0.4; }
.sortie-item-time { font-weight: 500; color: var(--text); }
.sortie-item-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.sortie-item-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--v);
  text-decoration: none;
}
.sortie-item-link:hover { color: var(--vd); }
.sortie-item-badge {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  padding-top: 0.2rem;
}
.sortie-badge--alt {
  background: #fff3e0;
  color: var(--orange);
}
.sorties-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  background: #f9f9f9;
  border-radius: 10px;
}

/* ================================================================
   TOGGLE LISTE / CALENDRIER
   ================================================================ */
.view-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.view-btn:hover {
  border-color: var(--v);
  color: var(--v);
}
.view-btn.active {
  background: var(--v);
  border-color: var(--v);
  color: #fff;
}
.view-btn svg { flex-shrink: 0; }

/* ================================================================
   VUE CALENDRIER — grille mensuelle
   ================================================================ */
.cal-month {
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cal-month-header {
  background: var(--vd);
  color: #fff;
  padding: 1rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--border);
}
.cal-dow {
  text-align: center;
  padding: 0.6rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--bg-warm);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cal-dow:last-child { border-right: none; }
.cal-day {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.4rem 0.45rem;
  gap: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
  position: relative;
  transition: background .15s;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day--empty { background: #fafafa; }
.cal-day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
.cal-day--today .cal-day-num {
  background: var(--vd);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.cal-day--event {
  cursor: pointer;
  background: #f0faf0;
}
.cal-day--event:hover { background: #d8f0d8; }
.cal-event-label {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--v);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  text-decoration: none;
}
.cal-event-label:hover { color: var(--vd); text-decoration: underline; }
.cal-event-venue {
  margin-top: 2px;
  font-size: 0.63rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cal-event-detail {
  padding: 0.75rem 1.5rem;
  background: #f0faf0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
  animation: fadeIn .2s ease;
}
.cal-event-detail a {
  color: var(--v);
  font-weight: 600;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   PARTENAIRES
   ================================================================ */
.section-partenaires { padding: 3rem 0; }

.partners-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.partner-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.45rem 1rem;
  background: #fff;
  letter-spacing: 0.02em;
}


/* ================================================================
   FOOTER ANACEN
   ================================================================ */
.anacen-footer {
  background: #0f1c2a;
  color: #b8ccba;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem 2.5rem; }
}

/* Col 1 — marque */
.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.footer-logo-text em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

.footer-motto {
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,255,255,0.42);
  margin-bottom: 1.5rem;
  border-left: 2px solid rgba(58,125,68,0.5);
  padding-left: 0.75rem;
}

address {
  font-style: normal;
  font-size: 0.875rem;
  color: #8db890;
  line-height: 2;
}
address a { color: #8db890; transition: color .2s; }
address a:hover { color: #ffffff; }

/* Col 2 — nav */
.anacen-footer h4 {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.anacen-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.anacen-footer ul li { padding: 0.28rem 0; }
.anacen-footer ul a {
  color: #8db890;
  font-size: 0.875rem;
  transition: color .2s, padding-left .2s;
  text-decoration: none;
}
.anacen-footer ul a:hover { color: #ffffff; padding-left: 4px; }

/* Col 3 — soutenir */
.btn-footer-cta {
  display: inline-block;
  background: #d97818;
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.78rem 1.4rem;
  border-radius: 3px;
  text-decoration: none !important;
  margin-bottom: 2rem;
  transition: background .2s;
  display: block;
  text-align: center;
}
.btn-footer-cta:hover { background: #b86010; }

.footer-social-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.footer-socials a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #8db890;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-socials a:hover { color: #ffffff; }
.footer-socials svg { flex-shrink: 0; }

.footer-partners {
  margin-bottom: 1.25rem;
}
.footer-partners-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.5rem;
}
.footer-partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.footer-partners-list span {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 0.22rem 0.55rem;
  color: rgba(255,255,255,0.45);
}

.footer-member {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  margin: 0;
  line-height: 1.6;
}
.footer-member strong { color: rgba(255,255,255,0.45); }

/* Barre basse */
.footer-bottom {
  background: #09131e;
  text-align: center;
  padding: 1.25rem 2rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(184,204,186,0.3);
  letter-spacing: 0.05em;
}
.footer-bottom a {
  color: rgba(184,204,186,0.45);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom a:hover { color: rgba(184,204,186,0.85); }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .hero-stats { gap: 2rem; }
  .stat-number { font-size: 2rem; }
}
@media (max-width: 640px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 300px; text-align: center; }
  .hero-stats { gap: 1.25rem; }
  .stat-number { font-size: 1.7rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.8rem) !important; }
  .hero-home { padding: 7rem 1.5rem 3rem; }
}

/* ───────────────────────────────────────────────
   The Events Calendar — fiche événement
   ─────────────────────────────────────────────── */

/* Bloc « Détails / Lieu » masqué : date/heure/prix déjà en haut,
   le Lieu est remonté sous l'en-tête (.ana-event-lieu). */
.tribe-events-single-section.tribe-events-event-meta { display: none !important; }

/* Bouton « Ajouter au calendrier » (repositionné sous le bloc d'inscription) :
   suppression de l'espace excessif autour. */
.single-tribe_events .tribe-events.tribe-common { margin: 0; }
.single-tribe_events .tribe-events-c-subscribe-dropdown__container { margin: 1rem 0 0; padding: 0; }
.single-tribe_events .tribe-events-c-subscribe-dropdown { margin: 0; }

/* Ligne « Lieu » remontée sous l'en-tête de l'événement */
.ana-event-lieu {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin: .5rem 0 1.5rem;
  font-size: 1.05rem;
  color: var(--global-palette5, #1c2820);
}
.ana-event-lieu .ana-lieu-ico { font-size: 1.15rem; }
.ana-event-lieu strong { color: var(--global-palette1, #3e9645); }
.ana-event-lieu .ana-lieu-addr { color: var(--global-palette6, #5a6e68); }
.ana-event-lieu .ana-lieu-map { color: var(--global-palette1, #3e9645); white-space: nowrap; }

/* Organisateur (nom / téléphone / e-mail) */
.ana-event-orga {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem;
  margin: -.75rem 0 1.5rem;
  font-size: 1.05rem;
  color: var(--global-palette5, #1c2820);
}
.ana-event-orga .ana-orga-ico { font-size: 1.1rem; }
.ana-event-orga strong { color: var(--global-palette1, #3e9645); }
.ana-event-orga .ana-orga-coord { color: var(--global-palette6, #5a6e68); }


/* ================================================================
   4 PILIERS — section missions
   ================================================================ */
.piliers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .piliers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .piliers-grid { grid-template-columns: 1fr; } }

.pilier-card {
  background: var(--bg);
  border-top: 3px solid var(--v);
  border-radius: 0 0 10px 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
}
.pilier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.pilier-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.pilier-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--vd);
  margin-bottom: 0.75rem;
}
.pilier-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.ana-event-orga a { color: var(--global-palette1, #3e9645); }

/* ================================================================
   SORTIES PASSÉES — navigation par année
   ================================================================ */
.annees-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 2rem 0 .9rem;
}
.annee-btn {
  padding: .3rem .85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.annee-btn:hover { color: var(--v); border-color: var(--v); }
.annee-btn.active {
  background: var(--v);
  border-color: var(--v);
  color: #fff;
  font-weight: 600;
}
.annees-compte {
  margin: 0 0 1.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: var(--muted);
}

/* ================================================================
   FICHE D'UNE SORTIE — surcharge du gabarit de The Events Calendar
   ================================================================ */
.evenement-fiche { padding-bottom: 2rem; }

.evenement-passe {
  padding: .7rem 1.1rem;
  margin: 0 0 1.8rem;
  background: var(--bg-warm);
  border-left: 3px solid var(--orange);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  color: var(--muted);
}

.evenement-quand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.1rem;
  margin: 0 0 .8rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--v);
}
.evenement-quand .tribe-events-abbr,
.evenement-quand .evenement-date { font-style: normal; text-decoration: none; }
.evenement-tarif {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

.evenement-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.6rem; }

.evenement-fiche .tribe-events-event-image,
.evenement-fiche .evenement-corps > img {
  margin: 0 0 1.8rem;
  border-radius: 8px;
  overflow: hidden;
}
.evenement-fiche .tribe-events-event-image img { border-radius: 8px; }

.evenement-texte { margin: 1.4rem 0 2rem; }

.evenement-etiquettes {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: var(--muted);
}
.evenement-etiquettes span {
  display: block;
  margin-bottom: .3rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.evenement-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2.5rem 0 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: .84rem;
}
.evenement-nav-suiv { text-align: right; }
.evenement-nav a { color: var(--v); }

.evenement-retour {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   NOUVEAU FORMAT — voir format-site.md
   Barre d'en-tête, barre collante mobile, prochaine sortie, sites
   préservés, sciences participatives fusionnées, porte collectivités.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Barre d'en-tête fine ── */
.ana-topbar {
  background: var(--vd);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
}
.ana-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  /* Hauteur de ligne imposée : celle du thème (1,6) faisait à elle seule la
     moitié de la barre, pour un texte de 0,82rem. */
  line-height: 1.25;
  padding: 0.22rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ana-topbar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.ana-topbar a:hover { color: #fff; }
.ana-topbar-collectivites { border-bottom: 1px dotted rgba(255,255,255,0.35); }
.ana-topbar-sos {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  margin-left: auto;
}
.ana-topbar-sos-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(217,120,24,0.25);
  flex: none;
}
.ana-topbar-sos-tel { color: #fff; }

/* Sur mobile, la porte collectivités s'efface : priorité au grand public.
   SOS reste, c'est justement là qu'on en a besoin. */
@media (max-width: 700px) {
  .ana-topbar-collectivites { display: none; }
  .ana-topbar-inner { justify-content: center; padding: 0.22rem 1rem; }
  .ana-topbar-sos { margin-left: 0; }
}

/* ── En-tête pleine largeur ── */
/* Le conteneur de l'en-tête est borné et centré : à 1440 px, le logo commençait
   à 98 px du bord quand le bouton « Adhérer » se tient à 24. On le libère, avec
   la même marge des deux côtés — les deux extrémités se répondent alors, quelle
   que soit la largeur de la fenêtre. Seule la rangée de l'en-tête est
   concernée ; le reste du site garde sa largeur de lecture. */
#main-header .site-header-row-container-inner > .site-container {
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Bouton « Adhérer » de l'en-tête ── */
/* Le conteneur devient le repère de position : le bouton est son enfant direct,
   posé à côté de la rangée principale de l'en-tête. */
#main-header .site-header-upper-inner-wrap { position: relative; }
.ana-adherer {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  background: var(--v, #3e9645);
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
}
.ana-adherer:hover,
.ana-adherer:focus {
  background: var(--vd, #2c6b32);
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.03);
}
/* Kadence passe au burger à 1024 px, où le bouton n'a plus de place sur la
   ligne de l'en-tête. En dessous, l'adhésion reste accessible par le menu :
   « Agir avec nous » › « Adhérez à l'association », soit deux gestes.
   (Ce masquage se justifiait auparavant par la barre collante mobile, qui
   proposait « Adhérer » en bas d'écran ; elle a été retirée.) */
@media (max-width: 1024px) {
  .ana-adherer { display: none; }
}

/* ── Piliers cliquables (la carte est devenue un lien) ── */
.pilier-card { display: block; color: inherit; text-decoration: none; }
.pilier-card:hover .pilier-title { color: var(--v); }

/* ── Sciences participatives, fusionnées dans « Participer » ── */
.participer-sci {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.participer-sci-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vl);
  margin-bottom: 1rem;
}
.participer-sci-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}
.participer-sci-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.participer-sci-links a:hover { border-bottom-color: var(--vl); color: var(--vl); }
.participer-sci-links small { color: rgba(255,255,255,0.6); font-weight: 400; }

@media (max-width: 600px) {
  .participer-sci-links { flex-direction: column; gap: 0.9rem; }
  .participer-sci-links small { display: block; }
}

/* ── Maison : deux appels à l'action sur fond clair ── */
.maison-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.btn-outline--dark {
  border-color: var(--v);
  color: var(--v);
}
.btn-outline--dark:hover {
  border-color: var(--vd);
  background: rgba(62,150,69,0.08);
  color: var(--vd);
}

/* ── Porte collectivités : discrète, avant le pied de page ── */
.section-collectivites {
  background: var(--vd);
  padding: 1.75rem 0;
}
.section-collectivites .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.collectivites-text {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 62ch;
}
.collectivites-text strong { color: #fff; display: block; margin-bottom: 0.15rem; }
.collectivites-link {
  flex: none;
  color: var(--vl);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(104,196,96,0.4);
  padding-bottom: 2px;
  white-space: nowrap;
}
.collectivites-link:hover { color: #fff; border-bottom-color: #fff; }

@media (max-width: 700px) {
  .section-collectivites .container { flex-direction: column; align-items: flex-start; }
  .collectivites-link { white-space: normal; }
}

/* ── Bandeau financeurs : vrais logos lus depuis la médiathèque ── */
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  margin-top: 1.75rem;
}
.partners-logos img {
  max-height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* Désaturés au repos pour que la bande reste calme, couleur au survol. */
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter .2s, opacity .2s;
}
.partners-logos img:hover {
  filter: none;
  opacity: 1;
}
.partners-more {
  text-align: center;
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
}
.partners-more a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.partners-more a:hover { color: var(--v); border-bottom-color: var(--v); }

@media (max-width: 600px) {
  .partners-logos { gap: 1.5rem 2rem; }
  .partners-logos img { max-height: 48px; max-width: 130px; }
}

/* Le survol n'existe pas au doigt : on ne désature pas sur écran tactile. */
@media (hover: none) {
  .partners-logos img { filter: none; opacity: 1; }
}
