/*
Theme Name: Kadence Child ANA-CEN
Template: kadence
Version: 2.0.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 */
body.home .site-top,
body.home #masthead,
body.home header.site-header {
  position: fixed !important;
  top: 0; 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: 32px !important;
}
.admin-bar body.home #wrapper::before,
body.home.admin-bar #wrapper::before {
  top: 32px !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: 46px !important;
  }
  .admin-bar body.home #wrapper::before,
  body.home.admin-bar #wrapper::before {
    top: 46px !important;
  }
}

/* Bandeau sombre derrière le header pour lisibilité sur photo */
body.home #wrapper::before {
  content: '';
  position: fixed;
  top: 0; 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;
}

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

/* 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;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.88) !important;
  text-decoration: none !important;
  padding: 0.4rem 0.75rem !important;
  transition: color .2s !important;
}
.site-header .nav--primary a:hover,
.kadence-navigation .menu > li > a:hover { color: #ffffff !important; }

/* Dernier item nav → bouton CTA doré */
.kadence-navigation .menu > li:last-child > a,
.main-navigation .menu > li:last-child > a {
  background: var(--orange) !important;
  color: #ffffff !important;
  border-radius: 3px !important;
  padding: 0.42rem 1rem !important;
}

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

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

/* Grille cartes */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 1.75rem;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.card-img {
  height: 90px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img img { transform: scale(1.04); }

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--v);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.card-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v);
  font-family: 'DM Sans', sans-serif;
}
.card-link::after { content: '→'; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }


/* ================================================================
   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.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.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: 820px;
  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); }
.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: 820px;
  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); }


/* ================================================================
   PILIERS — 4 axes mission
   ================================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 960px) { .pillars-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow .25s, transform .25s;
}
.pillar:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--v);
  margin-bottom: 1.25rem;
}
.pillar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.pillar-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v);
  text-decoration: none;
  transition: color .2s;
}
.pillar-link:hover { color: var(--orange); }


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


/* ================================================================
   SCIENCES PARTICIPATIVES
   ================================================================ */
.sci-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 768px) { .sci-grid { grid-template-columns: 1fr; } }

.sci-card {
  border-left: 3px solid var(--orange);
  padding: 1.75rem 1.5rem;
  background: var(--bg-warm);
  border-radius: 0 8px 8px 0;
}
.sci-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.sci-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.sci-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.sci-card a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v);
  text-decoration: none;
}
.sci-card a:hover { color: var(--orange); }


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

.maison-placeholder {
  background: var(--border);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
}
.maison-icon { font-size: 4rem; }
.maison-placeholder p { font-size: 0.9rem; text-align: center; line-height: 1.6; }


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

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