/* ============================================================
   AGESPACI — MAIN STYLESHEET v2.0 (propre, sans doublons)
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --green-deep:    #14532D;
  --green-mid:     #166534;
  --green-light:   #DCFCE7;
  --orange:        #E07A1A;
  --orange-light:  #FEF3C7;
  --orange-dark:   #B45309;
  --white:         #FFFFFF;
  --off-white:     #F8FAF9;
  --gray-light:    #E5E7EB;
  --gray-mid:      #6B7280;
  --gray-dark:     #374151;
  --ink:           #111827;
  --footer-bg:     #0F3320;

  --font-sans:     'Inter', 'Segoe UI', sans-serif;
  --font-serif:    'Cormorant Garamond', Georgia, serif;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-sm:     0 1px 4px rgba(0,0,0,.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.12);

  --nav-height:    84px;
  --max-width:     1200px;
  --section-pad:   90px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--green-deep); }

/* ── UTILITAIRES ────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--orange);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-deep);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--gray-mid);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* ── BOUTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn-secondary:hover { background: var(--green-deep); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
  font-weight: 600;
  font-size: .9rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: gap .2s;
}
.btn-link:hover { gap: 10px; color: var(--orange); }
.btn-link svg { width: 16px; height: 16px; }
.btn-nav-cta { padding: 10px 18px; font-size: .78rem; white-space: nowrap; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow .3s;
}
/* Le flou est isolé sur une couche séparée (au lieu d'être directement sur
   #site-header) : un backdrop-filter sur l'en-tête lui-même le transforme en
   zone de référence pour tout élément "position:fixed" à l'intérieur (dont le
   menu mobile), qui se retrouve alors piégé dans sa hauteur au lieu de couvrir
   tout l'écran. */
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
#site-header.scrolled { box-shadow: var(--shadow-md); }
/* Passe au-dessus de la couche de flou (::before) pour que le contenu de l'en-tête reste visible et cliquable */
#site-header > .container { position: relative; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 62px; width: 62px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text strong { font-size: 1.5rem; color: var(--green-deep); font-weight: 800; letter-spacing: .02em; }
.nav-logo-text small { font-size: .6rem; text-transform: none; letter-spacing: .01em; color: var(--gray-mid); display: block; max-width: 280px; line-height: 1.35; white-space: normal; }

.nav-menu { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; margin-left: 24px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 9px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-dark);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a { color: var(--green-deep); background: var(--green-light); }

.nav-menu li.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.nav-menu li.has-dropdown:hover > a::after { transform: rotate(-135deg) translateY(-2px); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s ease;
  z-index: 100;
}
.nav-menu li.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: .82rem;
  color: var(--gray-dark);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: var(--off-white); color: var(--green-deep); }

.nav-cta { flex-shrink: 0; }
.nav-menu-cta { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--green-deep); border-radius: 2px; transition: all .3s; }

/* ── PLACEHOLDER IMAGES ─────────────────────────────────────── */
.photo-placeholder {
  background: #f0f2f4;
  border: 2px dashed #c8cdd5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #9ca3af;
  text-align: center;
  position: relative;
}
.photo-placeholder::before {
  content: '📷';
  font-size: 2rem;
  opacity: .45;
}
.photo-placeholder .ph-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(0,0,0,.06);
  padding: 4px 14px;
  border-radius: 100px;
}

/* Photo réelle, remplaçable depuis l'éditeur (remplace .photo-placeholder une fois une image ajoutée) */
.wp-block-image.editable-photo { border-radius: var(--radius-md); overflow: hidden; height: 100%; }
.wp-block-image.editable-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero-home {
  padding: 10px 0 0;          /* respiration entre nav et hero */
  background: var(--off-white); /* même fond que l'engagement → pas de fracture */
}
.hero-home .container {
  position: relative;
}
/* image contrainte au même padding que le container → même largeur que bloc 2 */
.hero-visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  right: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 0;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* dégradé sur l'image elle-même */
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
    white 0%,
    rgba(255,255,255,.95) 30%,
    rgba(255,255,255,.6) 55%,
    transparent 80%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 52%;
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-title { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; color: var(--ink); line-height: 1.15; margin-bottom: 12px; }
.hero-title span { color: var(--orange); }
.hero-subtitle { font-size: .88rem; color: var(--gray-mid); line-height: 1.65; margin-bottom: 20px; max-width: 460px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── SECTION ENGAGEMENT ─────────────────────────────────────── */
.section-engagement {
  padding: 12px 0 16px;
  background: var(--off-white);
}
.engagement-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 20px;
  align-items: stretch;
}
.engagement-text { font-size: .88rem; color: var(--gray-dark); line-height: 1.7; margin-bottom: 16px; }
.engagement-right {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.engagement-photo { overflow: hidden; height: 100%; }
.engagement-photo .photo-placeholder {
  height: 100%;
  min-height: 220px;
  border-radius: 0;
  border: none;
}
.engagement-photo .wp-block-image.editable-photo { border-radius: 0; }
.engagement-right .axes-compact { border-radius: 0; }

/* Bloc 3 axes compact vert */
.axes-compact {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.axes-compact-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  padding-bottom: 8px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.axe-compact-item {
  display: grid;
  grid-template-columns: 30px 1fr 1.3fr;
  gap: 4px 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.axe-compact-item:last-child { border-bottom: none; }
.axe-compact-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.axe-compact-icon svg { width: 15px; height: 15px; stroke: var(--orange); fill: none; stroke-width: 1.8; }
.axe-compact-item strong { color: #fff; font-size: .78rem; font-weight: 700; line-height: 1.25; }
.axe-compact-item p { font-size: .7rem; color: rgba(255,255,255,.65); line-height: 1.35; margin: 0; }

/* ── SECTION CHIFFRES + ACTUALITÉS ─────────────────────────── */
.section-chiffres-actu {
  padding: 16px 0;
  background: var(--white);
}
.chiffres-actu-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

/* Chiffres */
.chiffres-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.chiffre-inline { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.chiffre-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.chiffre-ico.orange { background: var(--orange); }
.chiffre-ico svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; }
.chiffre-inline .chiffre-value { font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1; }
.chiffre-inline .chiffre-label { font-size: .72rem; color: var(--gray-mid); line-height: 1.3; }

/* Actualités */
.actu-right-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.actu-list { display: flex; flex-direction: column; }
.actu-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.actu-row:last-child { border-bottom: none; }
.actu-row:hover .actu-row-title { color: var(--green-deep); }
.actu-row-img { width: 75px; height: 58px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.actu-row-body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.actu-row-title { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.35; transition: color .2s; }
.actu-row-meta { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--gray-mid); }
.actu-row-link { color: var(--green-deep); font-weight: 600; font-size: .72rem; }

/* Page "Toutes les actualités" — grille en blocs */
.actu-search { max-width: 480px; margin: 0 auto 48px; }
.actu-search-form { display: flex; gap: 10px; }
.actu-search-form input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--font-sans);
}
.actu-search-form input[type="search"]:focus { outline: none; border-color: var(--green-deep); }
.actu-search-form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
}
.actu-search-form button:hover { background: var(--green-mid); }
.actu-search-form button svg { width: 16px; height: 16px; }
.actu-search-active {
  text-align: center;
  font-size: .9rem;
  color: var(--gray-mid);
  margin-bottom: 32px;
}
.actu-search-active a { color: var(--orange); font-weight: 600; }

.actu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.actu-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  text-decoration: none;
  color: inherit;
}
.actu-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.actu-img { height: 190px; overflow: hidden; background: var(--off-white); }
.actu-img img, .actu-img .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }
.actu-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.actu-date { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); }
.actu-body h3 { font-size: 1.02rem; color: var(--green-deep); line-height: 1.4; }
.actu-excerpt { font-size: .85rem; color: var(--gray-mid); line-height: 1.65; flex: 1; }
.actu-card .btn-link { margin-top: 4px; }

@media (max-width: 900px) {
  .actu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .actu-grid { grid-template-columns: 1fr; }
  .actu-search-form { flex-direction: column; }
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-dark);
  border: 1px solid var(--gray-light);
  text-decoration: none;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--green-deep); color: var(--green-deep); }
.pagination .current { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

/* Page article (single actualité) */
.actu-single-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.actu-single-date { font-size: .85rem; color: rgba(255,255,255,.7); }
.actu-single-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.actu-single-cats a {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--orange);
  background: rgba(224,122,26,.15);
  padding: 4px 12px;
  border-radius: 100px;
}
.actu-single-thumb { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.actu-single-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actu-single-content { font-size: 1.02rem; color: var(--gray-dark); line-height: 1.9; }
.actu-single-content p { margin-bottom: 20px; }
.actu-single-content h2, .actu-single-content h3 { color: var(--green-deep); margin: 32px 0 14px; }
.actu-single-content ul, .actu-single-content ol { margin: 0 0 20px 22px; }
.actu-single-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.actu-single-back {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-light);
}

.actu-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.actu-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.actu-nav-link:hover { border-color: var(--green-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.actu-nav-link.next { grid-column: 2; flex-direction: row-reverse; text-align: right; }
.actu-nav-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.actu-nav-icon svg { width: 16px; height: 16px; stroke: var(--green-deep); transition: stroke .25s; }
.actu-nav-icon.flip svg { transform: scaleX(-1); }
.actu-nav-link:hover .actu-nav-icon { background: var(--green-deep); }
.actu-nav-link:hover .actu-nav-icon svg { stroke: #fff; }
.actu-nav-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.actu-nav-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-mid); }
.actu-nav-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actu-nav-link:hover .actu-nav-title { color: var(--green-deep); }

@media (max-width: 600px) {
  .actu-nav { grid-template-columns: 1fr; }
  .actu-nav-link.next { grid-column: 1; flex-direction: row; text-align: left; }
}

/* ── SECTION CTA ─────────────────────────────────────────────── */
.section-cta { padding: 80px 0; background: var(--green-deep); text-align: center; }
.section-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.section-cta p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto 36px; line-height: 1.75; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────────── */
#site-footer { background: var(--footer-bg); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 50px; filter: brightness(0) invert(1); }
.footer-brand-name { color: #fff; font-weight: 800; font-size: 1rem; }
.footer-tagline { font-size: .85rem; line-height: 1.75; margin-bottom: 24px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.footer-social a:hover { background: var(--orange); }
.footer-social svg { width: 16px; height: 16px; }

/* Icônes réseaux sociaux sur fond clair (ex: page Contact) */
.contact-social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.contact-social-icons a:hover { background: var(--green-deep); color: #fff; }
.contact-social-icons svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.65); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-col ul li a::before { content: '›'; color: var(--orange); font-size: 1rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: .85rem; color: rgba(255,255,255,.65); }
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--orange); fill: none; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ── PAGE HERO (pages intérieures) ──────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--green-deep) 0%, #1a5e36 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0M-10 10L10-10M50 70L70 50' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.page-hero-breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero-breadcrumb a:hover { color: var(--orange); }
.page-hero-breadcrumb span { color: var(--orange); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; margin-bottom: 16px; max-width: 800px; }
.page-hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 680px; line-height: 1.75; margin-bottom: 28px; }
.page-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── PAGE SECTIONS ───────────────────────────────────────────── */
.page-section { padding: var(--section-pad) 0; }
.page-section.bg-alt { background: var(--off-white); }
.page-section.bg-dark { background: var(--green-deep); color: #fff; }
.page-section.bg-dark h2, .page-section.bg-dark h3 { color: #fff; }
.page-section.bg-dark .section-tag { color: var(--orange); }

.text-intro { font-size: .95rem; color: var(--gray-mid); line-height: 1.8; max-width: 700px; margin-bottom: 60px; }

/* ── CARDS ───────────────────────────────────────────────────── */
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Grille qui se centre au lieu de s'étirer quand il y a peu d'éléments (ex: Bureau, Partenaires) */
.cards-grid-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cards-grid-center .card {
  width: 360px;
  max-width: 100%;
  flex-shrink: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.member-title { font-style: italic; color: var(--gray-mid); font-size: .85rem; margin-top: 2px; }
/* Photo toujours centrée dans la carte, quelle que soit sa largeur d'origine */
.cards-grid-center .card img { display: block; margin: 0 auto; }
/* Description masquée par défaut, révélée en bas de carte au survol —
   hauteur limitée à 40% de la carte, défile si le texte est plus long */
.member-desc-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  margin: 0 -32px -32px;
  padding: 16px 28px;
  background: rgba(22, 101, 52, .85);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow-y: auto;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
/* Le nom/titre s'efface pendant que la description est affichée, pour éviter
   que les deux textes se superposent */
.member-card h3, .member-card .member-title { transition: opacity .2s ease; }
.member-card:hover h3, .member-card:hover .member-title { opacity: 0; }
/* Sélecteur renforcé (2 classes) pour être sûr de gagner face à ".card p"
   qui, sinon, impose sa couleur grise par défaut sur ce texte */
.member-card .member-desc-overlay p { color: #fff; font-size: .82rem; line-height: 1.6; margin: 0; }
.member-overlay-name { color: #fff; font-size: 1rem; margin: 0 0 2px; }
.member-overlay-title { color: rgba(255,255,255,.85); font-style: italic; font-size: .8rem; margin: 0 0 10px; }
.member-card:hover .member-desc-overlay { transform: translateY(0); opacity: 1; }
.card { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 32px; transition: all .3s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card-number { font-size: 2rem; font-weight: 800; color: var(--orange); margin-bottom: 8px; font-family: var(--font-serif); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--green-light); }
.card-icon svg { width: 26px; height: 26px; stroke: var(--green-deep); fill: none; stroke-width: 1.8; }
.card-icon.orange { background: var(--orange-light); }
.card-icon.orange svg { stroke: var(--orange-dark); }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--green-deep); }
.card p { font-size: .875rem; color: var(--gray-mid); line-height: 1.7; }
.card ul { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.card ul li { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: var(--gray-dark); }
.card ul li::before { content: '›'; color: var(--orange); font-weight: 700; flex-shrink: 0; line-height: 1.4; }
.card-conclusion { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-light); font-size: .8rem; font-weight: 600; color: var(--green-deep); display: flex; align-items: center; gap: 6px; }
.card-conclusion::before { content: '👉'; }

/* ── DEUX COLONNES ───────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.two-col-text p { font-size: .95rem; color: var(--gray-dark); line-height: 1.85; margin-bottom: 16px; }

/* ── PRÉSIDENT ───────────────────────────────────────────────── */
.president-block { background: var(--green-deep); border-radius: var(--radius-xl); padding: 52px; color: #fff; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.president-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; }
.president-quote { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.8; color: rgba(255,255,255,.9); font-style: italic; position: relative; padding-left: 24px; }
.president-quote::before { content: '"'; font-size: 5rem; color: var(--orange); position: absolute; left: -10px; top: -20px; font-family: var(--font-serif); line-height: 1; }
.president-signature { margin-top: 24px; font-style: normal; }
.president-signature strong { display: block; color: #fff; font-size: 1rem; font-weight: 700; }
.president-signature span { font-size: .85rem; color: var(--orange); }

/* ── VALEURS ─────────────────────────────────────────────────── */
.valeurs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.valeur-item { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: rgba(255,255,255,.08); border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,.1); }
.valeur-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.valeur-icon svg { width: 22px; height: 22px; stroke: var(--orange); fill: none; stroke-width: 1.8; }
.valeur-content h4 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.valeur-content p { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.65; }

/* ── TIMELINE ÉTAPES ─────────────────────────────────────────── */
.steps-list { display: flex; flex-direction: column; position: relative; }
.steps-list::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--orange), var(--green-deep)); }
.step-item { display: flex; gap: 28px; align-items: flex-start; padding: 0 0 36px 0; position: relative; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--green-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; border: 3px solid var(--orange); position: relative; z-index: 1; }
.step-content { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius-md); padding: 24px; flex: 1; }
.step-content h4 { color: var(--green-deep); margin-bottom: 8px; }
.step-content p { font-size: .875rem; color: var(--gray-mid); line-height: 1.7; }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--gray-light); }
.contact-info-item:last-child { border-bottom: none; }
.contact-ico { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--green-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-ico svg { width: 20px; height: 20px; stroke: var(--green-deep); fill: none; stroke-width: 1.8; }
.contact-info-item h4 { font-size: .85rem; color: var(--green-deep); margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: .9rem; color: var(--gray-mid); }

/* Formulaires CF7 */
.wpcf7-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-dark); margin-bottom: 6px; margin-top: 14px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-light); border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: .9rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; background: #fff; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(22,101,52,.1); }
.wpcf7-form textarea { height: 140px; resize: vertical; }
.wpcf7-form .wpcf7-submit { width: 100%; padding: 14px; background: var(--green-deep); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s; margin-top: 16px; }
.wpcf7-form .wpcf7-submit:hover { background: var(--green-mid); }

/* ── PARTENAIRES ─────────────────────────────────────────────── */
.partenaires-list { display: flex; flex-direction: column; gap: 16px; }
.partenaire-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  transition: background .25s ease, border-color .25s ease;
}
.partenaire-item:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
/* Pas de cadre/fond : le logo ou l'icône flotte directement à gauche du texte */
.partenaire-badge {
  width: 90px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.partenaire-badge svg { width: 34px; height: 34px; }
/* max-width/height garantit que le logo reste raisonnable, quelle que
   soit sa taille d'origine, même sans cadre autour */
.partenaire-badge img { max-width: 100%; max-height: 64px; width: auto; height: auto; }
.partenaire-item:hover .partenaire-badge { transform: scale(1.08); }
.partenaire-item h4 { color: #fff; font-size: .95rem; margin-bottom: 4px; }
.partenaire-item p { font-size: .82rem; color: rgba(255,255,255,.6); }

/* ── DIVERS ─────────────────────────────────────────────────── */
.objectifs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.avantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.axe-number { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin-bottom: 8px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--gray-light); font-size: .85rem; }
.pagination .current { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .president-block { grid-template-columns: 1fr; }
  .chiffres-actu-layout { grid-template-columns: 1fr; }
  .avantages-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Le menu horizontal a besoin d'environ 1200px pour tenir sans se chevaucher
   (logo + 5 liens + bouton) — donc bascule sur le menu burger plus tôt que le
   reste des styles "mobile", pour couvrir aussi les tablettes et petits
   écrans d'ordinateur portable, pas seulement les téléphones. */
@media (max-width: 1200px) {
  /* Nav mobile */
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    max-height: 40vh;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    padding: 14px 24px;
    gap: 0;
    overflow-y: auto;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open > li > a {
    font-size: .92rem;
    padding: 8px 16px;
  }
  /* Sur mobile/tablette, les liens mènent directement à la page — pas de sous-menu déplié */
  .nav-menu.open .dropdown-menu { display: none; }
  .nav-menu.open li.has-dropdown > a::after { display: none; }

  .nav-menu-cta {
    display: block;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
  }
  /* Réaffirme le style bouton (blanc, casse normale) contre le style des liens du menu */
  .nav-menu-cta .btn {
    width: 100%;
    justify-content: center;
    color: #fff;
    text-transform: none;
    font-size: .9rem;
    letter-spacing: normal;
  }
}

@media (max-width: 480px) {
  /* Sur petit téléphone, le sous-titre sous "AGESPACI" prend trop de place
     et pousse le bouton menu hors de l'écran : on le retire et on réduit
     le logo, seul le nom reste. */
  .nav-logo img { height: 42px; width: 42px; }
  .nav-logo-text small { display: none; }
  .nav-logo-text strong { font-size: 1.15rem; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  /* Hero mobile */
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: .85rem; }

  /* Grilles */
  .hero-visual { opacity: .2; }
  .hero-visual::after { background: rgba(255,255,255,.88); }
  .hero-content { max-width: 100%; padding-right: 0; }
  .engagement-layout { grid-template-columns: 1fr; }
  .engagement-right { grid-template-columns: 1fr; min-height: auto; }
  .engagement-photo .photo-placeholder { min-height: 220px; }
  .chiffres-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .chiffre-ico { width: 36px; height: 36px; }
  .chiffre-inline .chiffre-value { font-size: 1.4rem; }
  .chiffres-actu-layout { grid-template-columns: 1fr; gap: 40px; }
  .actu-right-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cards-grid-2, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .valeurs-grid { grid-template-columns: 1fr; }
  .objectifs-grid { grid-template-columns: 1fr; }
  .avantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .president-block { padding: 32px 24px; grid-template-columns: 1fr; }
}