/* ==========================================================
   Regeneratio — feuille de style du site
   ========================================================== */

:root {
  --forest: #2f5f58;
  --forest-2: #3b746b;
  --forest-dark: #1f423d;
  --sage: #a9cfc8;
  --cream: #f6f4ee;
  --paper: #ffffff;
  --ink: #1d1d1b;
  --muted: #59625d;
  --line: #d9dbd3;
  --line-dark: rgba(255, 255, 255, .16);
  --accent: #e07a24;        /* orange du logo */
  --accent-text: #a8520f;   /* orange lisible sur fond clair */
  --lime: #afca0b;          /* vert anis du flyer */
  --lime-dark: #a2bc0c;

  --radius: 2px;
  --container: 1200px;
  --header-h: 88px;
  --header-h-small: 72px;
  --logo-green: #49857c;
  --logo-green-dark: #3b746b;
  --logo-orange: #ef8524;
  --logo-orange-dark: #d6701a;

  --font-title: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Sécurité mobile : aucun défilement horizontal (clip ne casse pas les éléments « sticky ») */
html, body { overflow-x: clip; }

img { max-width: 100%; display: block; }
a { color: var(--forest-2); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.005em; }
h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 104px 0; }
.section--white { background: var(--paper); }
.section--forest { background: var(--forest); color: #dfe7dc; }
.section--forest h2, .section--forest h3 { color: #fff; }

/* En-tête de section : libellé en colonne gauche, titre et intro à droite */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-bottom: 64px;
}
.section--forest .section-head { border-top-color: var(--line-dark); }
.section-head > * { grid-column: 2; }
.section-head > .eyebrow { grid-column: 1; grid-row: 1 / span 3; }
.section-head h2 { max-width: 20em; }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0; }
.section--forest .section-head p { color: #c3d0bf; }

.eyebrow {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.section-head > .eyebrow { padding-top: .45em; margin-bottom: 0; }
.section--forest .eyebrow { color: var(--lime); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--lime); color: var(--forest-dark); }
.btn--primary:hover { background: var(--lime-dark); }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: var(--cream); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.site-top { position: relative; z-index: 50; }
.header { background: var(--forest); color: #fff; }
.header__inner {
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h);
}

/* Logo sur plaquette blanche (garde les couleurs du flyer) */
.brand {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  padding: 5px 9px;
  height: calc(var(--header-h) - 22px);
  text-decoration: none;
  flex-shrink: 0;
  transition: height .3s ease, padding .3s ease;
}
.brand img { height: 100%; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; margin: 0 auto; }
.nav a {
  position: relative; padding: 8px 0;
  color: #fff; text-decoration: none; font-size: 1.02rem; font-weight: 600;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--logo-orange);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--lime); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.nav .nav__cta { display: none; }

.header__cta { flex-shrink: 0; }
.btn__icon {
  display: grid; place-items: center;
  width: 26px; height: 26px; margin-right: -10px;
  background: var(--forest-dark); color: var(--lime);
}

.burger {
  display: none; margin-left: auto;
  width: 48px; height: 44px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius);
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; margin: -1px 0 0 -11px;
  background: #fff; transform-origin: center; transition: transform .2s, opacity .2s;
}
.burger span:nth-child(1) { transform: translateY(-7px); }
.burger span:nth-child(3) { transform: translateY(7px); }

/* Page d'accueil : barre + en-tête posés sur le diaporama */
.site-top--overlay { position: absolute; top: 0; left: 0; right: 0; }
.site-top--overlay .header:not(.is-fixed) {
  background: linear-gradient(180deg, rgba(10, 25, 17, .55), rgba(10, 25, 17, 0));
}

/* En-tête qui redescend, fixé, au défilement */
.header.is-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--forest);
  box-shadow: 0 6px 20px rgba(10, 25, 17, .2);
  animation: rg-header-in .35s ease;
}
.header.is-fixed .header__inner { height: var(--header-h-small); }
.header.is-fixed .brand { height: calc(var(--header-h-small) - 18px); padding: 4px 8px; }
@keyframes rg-header-in { from { transform: translateY(-100%); } to { transform: none; } }

/* Les autres pages : en-tête plein, collant */
.site-top:not(.site-top--overlay) { position: sticky; top: 0; }

/* ---------- Diaporama (tête de page) ---------- */
.slider {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px; max-height: 940px;
  background: var(--forest-dark);
  color: #fff;
  overflow: hidden;
}
.slider__slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.slide.is-active .slide__img { transform: scale(1); }
.slide__content > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > :nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: .24s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: .36s; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31, 66, 61, .82) 0%, rgba(31, 66, 61, .6) 45%, rgba(31, 66, 61, .2) 100%);
}
/* Photo décalée à droite : le sujet reste visible à côté du texte */
.slide--right { background: var(--forest-dark); }
.slide--right .slide__img { left: 38%; width: 62%; }
.slide--right .slide__title { max-width: 10.5em; }
.slide--right .slide__text { max-width: 26em; }
.slide--right::after {
  background: linear-gradient(90deg, var(--forest-dark) 38%, rgba(31, 66, 61, .55) 50%, rgba(31, 66, 61, 0) 70%);
}
@media (max-width: 860px) {
  .slide--right .slide__img { left: 0; width: 100%; }
  .slide--right::after { background: linear-gradient(90deg, rgba(31, 66, 61, .82) 0%, rgba(31, 66, 61, .6) 45%, rgba(31, 66, 61, .2) 100%); }
}
.slide__content { position: relative; z-index: 1; padding-top: var(--header-h); }
.slide__eyebrow { display: block; font-size: 1rem; font-weight: 600; color: var(--lime); margin-bottom: 18px; }
.slide__title {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.08; letter-spacing: -0.015em;
  max-width: 13.5em; margin-bottom: 22px;
}
.slide__text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #e2e9df; max-width: 32em; margin-bottom: 36px; }

.slider__nav {
  position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2;
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.slider__count { font-variant-numeric: tabular-nums; font-size: .95rem; line-height: 1; color: #e2e9df; margin: 0 16px 0 0; }
.slider__count b { color: #fff; font-weight: 600; }
.slider__btn {
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s, color .15s;
}
.slider__btn:hover { background: #fff; color: var(--forest); }
.slider__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.slider__pause .icon-play { display: none; }
.slider.is-static .slider__pause .icon-play { display: block; }
.slider.is-static .slider__pause .icon-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .slide__img, .slide__content > * { transition: none; transform: none; opacity: 1; }
}

/* ---------- Chiffres clés ---------- */
.stats { background: var(--forest-dark); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 32px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--font-title); font-weight: 600; font-size: 2.4rem; color: var(--lime); line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: .98rem; color: #c3d0bf; line-height: 1.4; max-width: 16em; }

/* ---------- Métiers ---------- */
/* En-tête centré */
.offres__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.offres__tag {
  display: inline-block; margin-bottom: 18px;
  padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: .9rem; font-weight: 600; color: var(--forest);
}
.offres__head h2 { margin-bottom: 14px; }
.offres__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Cartes */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 300px;
  padding: 30px 30px 28px;
  background: var(--paper);
  border: 1px solid transparent; border-radius: 12px;
  color: var(--ink); text-decoration: none;
  transition: border-color .25s ease;
}
.pillar h3 { font-family: var(--font-body); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-bottom: 12px; }
.pillar p { color: var(--muted); margin: 0; font-size: 1.02rem; max-width: 30em; }
.pillar__labels { margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--accent-text); }
.pillar__more {
  margin-top: auto; padding-top: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .98rem; color: var(--ink);
}
.pillar__more svg { transition: transform .25s ease; }
.pillar:hover, .pillar:focus-visible { border-color: var(--lime); }
.pillar:hover .pillar__more svg, .pillar:focus-visible .pillar__more svg { transform: translateX(5px); }
.pillar:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Questions (flyer) ---------- */
.questions { background: var(--paper); }
.questions__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.questions__intro h2 { margin-bottom: 18px; }
.questions__intro p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; max-width: 28em; }
.questions__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.question {
  display: flex; align-items: center; gap: 22px;
  background: var(--cream);
  border: 1px solid var(--line); border-left: 4px solid var(--lime);
  padding: 22px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.question:hover { border-left-color: var(--accent); transform: translateX(4px); }
.question__mark {
  flex-shrink: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(175, 202, 11, .22);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.question:hover .question__mark { background: var(--accent); box-shadow: 0 0 0 5px rgba(224, 122, 36, .2); }
.question p { margin: 0; font-family: var(--font-title); font-weight: 600; color: var(--forest); font-size: 1.2rem; line-height: 1.35; }

/* ---------- Expertises ---------- */
.section--forest .offres__tag { background: transparent; border-color: rgba(255, 255, 255, .22); color: var(--lime); }
.section--forest .offres__head p { color: #c3d0bf; }
.expertises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expertise {
  position: relative; overflow: hidden;
  padding: 30px 28px 32px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  transition: background-color .25s ease, border-color .25s ease;
}
.expertise::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.expertise:hover { background: rgba(255, 255, 255, .08); border-color: rgba(175, 202, 11, .6); }
.expertise:hover::after { transform: scaleX(1); }
.expertise h3 { font-size: 1.25rem; color: #fff; margin-bottom: 10px; }
.expertise p { color: #c3d0bf; font-size: 1rem; margin: 0; }

/* ---------- Formations ---------- */
.formation__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-bottom: 72px; }
.formation__photo { position: relative; margin: 0; }
.formation__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.formation__badge {
  position: absolute; left: -24px; bottom: 32px;
  display: flex; align-items: center; gap: 14px;
  max-width: 290px; padding: 18px 22px;
  background: var(--forest); color: #fff; border-radius: 10px;
  box-shadow: 0 14px 30px rgba(10, 25, 17, .22);
}
.formation__badge b { font-family: var(--font-title); font-size: 2rem; font-weight: 600; color: var(--lime); line-height: 1; white-space: nowrap; }
.formation__badge span { font-size: .95rem; line-height: 1.35; color: #d5dfd2; }

.formation__kicker { display: block; font-size: .95rem; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }
.formation__body h3 { font-family: var(--font-title); font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--forest); margin-bottom: 14px; }
.formation__body > p { color: var(--muted); font-size: 1.08rem; }
.formation__subtitle { font-weight: 600; color: var(--ink); margin: 28px 0 14px; }
.formation__themes { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.formation__themes li, .finance li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.formation__themes svg, .finance svg {
  flex-shrink: 0; width: 20px; height: 20px; padding: 4px; margin-top: 1px;
  border-radius: 50%; background: var(--lime); color: var(--forest-dark);
}
.formation__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.formation__labels { margin-bottom: 40px; }
.formation__labels .formation__subtitle { text-align: center; margin-top: 0; margin-bottom: 20px; }
.fresques { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fresque {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px;
  color: inherit; text-decoration: none;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
/* Trait vert anis qui se dessine au survol */
.fresque::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform .45s ease;
}
.fresque__logo { display: flex; align-items: center; height: 52px; margin-bottom: 12px; }
.fresque__logo img { max-height: 48px; max-width: min(170px, 100%); width: auto; object-fit: contain; transition: filter .8s ease .35s, transform .35s ease; }
.fresque__logo b { font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; color: var(--forest); transition: color .3s ease; }
.fresque strong { font-size: 1rem; color: var(--forest); }
.fresque__role { font-size: .93rem; color: var(--muted); }
.fresque__go {
  position: absolute; top: 18px; right: 18px; color: var(--logo-green);
  opacity: 0; transform: translate(-6px, 6px);
  transition: opacity .3s ease, transform .3s ease;
}

/* Apparition : logos qui passent du gris aux couleurs */
.js .fresque.reveal { transform: translateY(26px) scale(.97); transition: opacity .7s ease, transform .6s ease, border-color .3s ease, box-shadow .3s ease; }
.js .fresque.reveal.is-visible { transform: none; }
.js .fresque.reveal.is-visible:hover { transform: translateY(-4px); }
.js .fresque.reveal .fresque__logo img { filter: grayscale(1) opacity(.6); }
.js .fresque.reveal.is-visible .fresque__logo img { filter: none; }

/* Survol */
.fresque:hover { border-color: var(--lime); transform: translateY(-4px); box-shadow: 0 14px 28px rgba(18, 38, 27, .08); }
.fresque:hover::after { transform: scaleX(1); }
.fresque:hover .fresque__logo img { transform: scale(1.06); transition-delay: 0s; }
.fresque:hover .fresque__logo b { color: var(--logo-green); }
.fresque:hover .fresque__go { opacity: 1; transform: none; }
.fresque:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.finance {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px; align-items: start;
  padding: 36px 40px; background: var(--forest); color: #e2e9df; border-radius: 12px;
}
.finance h3 { font-family: var(--font-title); font-size: 1.5rem; color: #fff; margin: 0; }
.finance ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; font-size: .98rem; }

/* ---------- Impact ---------- */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.impact__item {
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.impact__photo { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.impact__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.impact__item:hover { border-color: var(--lime); box-shadow: 0 16px 32px rgba(18, 38, 27, .08); }
.impact__item:hover .impact__photo img { transform: scale(1.05); }
.impact__body { padding: 26px 26px 8px; }
.impact__tagline { font-size: .9rem; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; line-height: 1.4; }
.impact__body h3 { font-family: var(--font-title); font-size: 1.5rem; font-weight: 600; color: var(--forest); margin-bottom: 12px; }
.impact__body p:last-child { color: var(--muted); font-size: 1rem; }
.impact__result {
  margin: auto 26px 26px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 600; color: var(--forest); line-height: 1.4;
}
.impact__result svg { flex-shrink: 0; width: 20px; height: 20px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--lime); color: var(--forest-dark); }

/* Bandeau défilant des institutions */
.trust { margin-top: 72px; text-align: center; }
.trust__title { font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.trust__track-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust__track {
  list-style: none; margin: 0; padding: 22px 0;
  display: flex; width: max-content;
  animation: rg-marquee 45s linear infinite;
}
.trust__track-wrap:hover .trust__track { animation-play-state: paused; }
.trust__track li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; color: var(--forest);
}
.trust__track li::after { content: ""; width: 7px; height: 7px; margin: 0 36px; border-radius: 50%; background: var(--lime); }
@keyframes rg-marquee { to { transform: translateX(-50%); } }

/* ---------- Écolieu ---------- */
.ecolieu { overflow: hidden; }
.ecolieu__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }

/* Mosaïque : grande photo à gauche, deux petites empilées à droite */
.ecolieu__mosaic { position: relative; display: grid; gap: 14px; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 6 / 5; }
.ecolieu__mosaic--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ecolieu__mosaic--2 { grid-template-rows: 1fr; }
.ecolieu__photo { margin: 0; overflow: hidden; border-radius: 12px; background: var(--line); }
.ecolieu__mosaic--3 .ecolieu__photo:first-child { grid-row: 1 / span 2; }
.ecolieu__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ecolieu__photo:hover img { transform: scale(1.06); }
.ecolieu__badge {
  position: absolute; left: 20px; bottom: 20px; margin: 0;
  display: flex; align-items: center; gap: 10px;
  max-width: 62%; padding: 14px 18px;
  background: var(--paper); color: var(--forest); border-radius: 10px;
  font-weight: 600; font-size: .95rem; line-height: 1.3;
  box-shadow: 0 12px 26px rgba(10, 25, 17, .16);
}
.ecolieu__badge svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--logo-green); }

.ecolieu__body h2 { margin: 18px 0 6px; }
.ecolieu__place { font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--logo-green); margin-bottom: 18px; }
.ecolieu__body > p:not(.ecolieu__place) { color: var(--muted); }
.ecolieu__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 32px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.fact b { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.6rem; color: var(--forest); line-height: 1.1; margin-bottom: 4px; }
.fact span { font-size: .93rem; color: var(--muted); line-height: 1.35; display: block; }

/* Animations de l'écolieu */
.ecolieu__photo { transform: translateY(var(--py, 0)); will-change: transform; }
.fact { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.js .fact.reveal.is-visible:hover, .fact:hover { transform: translateY(-3px); border-color: var(--lime); box-shadow: 0 10px 22px rgba(18, 38, 27, .07); }
.ecolieu__badge svg { transform-origin: 20% 90%; animation: rg-sway 3.2s ease-in-out infinite; }
@keyframes rg-sway { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

/* Rideau qui dévoile les photos */
.js .ecolieu__mosaic.reveal { opacity: 1; transform: none; }
.js .ecolieu__mosaic.reveal .ecolieu__photo { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.js .ecolieu__mosaic.reveal .ecolieu__photo img { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.js .ecolieu__mosaic.reveal.is-visible .ecolieu__photo { clip-path: inset(0 0 0 0); }
.js .ecolieu__mosaic.reveal.is-visible .ecolieu__photo img { transform: none; }
.js .ecolieu__mosaic.reveal .ecolieu__photo:nth-child(2) { transition-delay: .2s; }
.js .ecolieu__mosaic.reveal .ecolieu__photo:nth-child(3) { transition-delay: .38s; }
.js .ecolieu__mosaic.reveal.is-visible .ecolieu__photo:hover img { transform: scale(1.06); transition-duration: .8s; }
.js .ecolieu__mosaic.reveal .ecolieu__badge { opacity: 0; transform: translateX(-24px); transition: opacity .6s ease .95s, transform .6s ease .95s; }
.js .ecolieu__mosaic.reveal.is-visible .ecolieu__badge { opacity: 1; transform: none; }

/* Feuilles qui flottent */
.leaf { position: absolute; z-index: 2; pointer-events: none; opacity: .85; }
.leaf svg { display: block; width: 100%; height: 100%; }
.leaf--1 { width: 34px; height: 34px; top: -18px; right: 30%; color: var(--lime); animation: rg-drift-a 9s ease-in-out infinite; }
.leaf--2 { width: 26px; height: 26px; top: 46%; right: -26px; color: var(--logo-orange); animation: rg-drift-b 11s ease-in-out infinite; }
.leaf--3 { width: 28px; height: 28px; bottom: -14px; left: 46%; color: var(--logo-green); animation: rg-drift-a 13s ease-in-out infinite reverse; }
@keyframes rg-drift-a { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(10px, -14px) rotate(18deg); } 66% { transform: translate(-8px, 6px) rotate(-12deg); } }
@keyframes rg-drift-b { 0%, 100% { transform: translate(0, 0) rotate(20deg); } 50% { transform: translate(-12px, 16px) rotate(-15deg); } }

/* Nom du lieu souligné qui se dessine */
.ecolieu__place span {
  background: linear-gradient(var(--lime), var(--lime)) left bottom / 100% 2px no-repeat;
  padding-bottom: 2px;
}
.js .ecolieu__body.reveal .ecolieu__place span { background-size: 0 2px; transition: background-size .9s ease .6s; }
.js .ecolieu__body.reveal.is-visible .ecolieu__place span { background-size: 100% 2px; }

/* ---------- À propos ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: center; }

/* Carte de profil */
.about__card {
  position: relative; overflow: hidden;
  padding: 48px 32px 40px; text-align: center;
  background: var(--forest); color: #fff; border-radius: 16px;
}
.about__card::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px;
  border-radius: 50%; background: rgba(175, 202, 11, .12);
}
.about__card::after {
  content: ""; position: absolute; width: 140px; height: 140px; left: -60px; bottom: -60px;
  border-radius: 50%; background: rgba(239, 133, 36, .14);
}
.about__portrait { position: relative; z-index: 1; width: 220px; aspect-ratio: 1; margin: 0 auto 26px; }
.about__portrait img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); border-radius: 50%; object-fit: cover; }
.about__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.about__ring circle { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 302; stroke-dashoffset: 0; }
.js .about__card.reveal .about__ring circle { stroke-dashoffset: 302; transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1) .3s; }
.js .about__card.reveal.is-visible .about__ring circle { stroke-dashoffset: 0; }
.about__name { position: relative; z-index: 1; font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; margin: 0 0 4px; }
.about__role { position: relative; z-index: 1; color: var(--lime); font-weight: 600; margin: 0; }
.about__social {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius);
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .2s ease, color .2s ease;
}
.about__social svg { width: 16px; height: 16px; }
.about__social:hover { background: #fff; color: var(--forest); }

/* Texte */
.about__body h2 { margin: 18px 0 18px; }
.about__body > p { color: var(--muted); font-size: 1.05rem; }
.about__strengths { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about__strengths li {
  position: relative; overflow: hidden;
  padding: 22px 22px 20px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.about__strengths li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--lime); transform-origin: left; transition: transform .7s ease .25s;
}
.js .about__strengths li.reveal::before { transform: scaleX(0); }
.js .about__strengths li.reveal.is-visible::before { transform: scaleX(1); }
.about__strengths li:hover, .js .about__strengths li.reveal.is-visible:hover {
  transform: translateY(-4px); border-color: var(--lime); box-shadow: 0 12px 24px rgba(18, 38, 27, .08);
}
.about__strengths b { display: block; font-family: var(--font-title); font-size: 1.6rem; font-weight: 600; color: var(--forest); margin-bottom: 4px; line-height: 1.15; }
.about__strengths span { display: block; font-size: .95rem; color: var(--muted); line-height: 1.4; }
.about__quote {
  position: relative; margin: 0 0 32px; padding: 6px 0 0 56px;
  font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: 1.45rem; line-height: 1.35; color: var(--forest);
}
.about__quote::before {
  content: "\201C"; position: absolute; left: 0; top: -14px;
  font-family: var(--font-title); font-style: normal; font-size: 4.5rem; line-height: 1; color: var(--lime);
}
.about__quote::after {
  content: "\201D"; display: inline-block; margin-left: 6px;
  font-family: var(--font-title); font-style: normal; font-size: 2.6rem; line-height: 0; vertical-align: -.42em; color: var(--lime);
}
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Zones d'intervention ---------- */
.zones__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }

/* Carte */
.map-wrap { margin: 0; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.map { display: block; width: 100%; height: auto; overflow: visible; }
.map__land { fill: #e2eeeb; stroke: #8fb8b1; stroke-width: 1.2; stroke-linejoin: round; }
.map__pin { cursor: default; outline: none; }
.map__dot { fill: var(--lime); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform .25s ease; }
.map__pin--hq .map__dot { fill: var(--logo-orange); }
.map__pulse { fill: var(--logo-orange); transform-box: fill-box; transform-origin: center; animation: rg-pulse 2.2s ease-out infinite; }
@keyframes rg-pulse { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
.map__label {
  font: 600 14px var(--font-body); fill: var(--forest); text-anchor: middle;
  paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.map__pin:hover .map__label, .map__pin:focus-visible .map__label, .map__pin--hq .map__label { opacity: 1; }
.map__pin:hover .map__dot, .map__pin:focus-visible .map__dot { transform: scale(1.35); }
.map__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 18px; font-size: .95rem; color: var(--muted); }
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.legend--hq { background: var(--logo-orange); }
.legend--city { background: var(--lime); }

/* Animation : la France se dessine, puis les villes apparaissent une à une */
.js .map-wrap.reveal .map__land { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 2s ease, fill-opacity .8s ease 1.4s; }
.js .map-wrap.reveal.is-visible .map__land { stroke-dashoffset: 0; fill-opacity: 1; }
.js .map-wrap.reveal .map__dot { transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * 70ms + 1.5s); }
.js .map-wrap.reveal.is-visible .map__dot { transform: scale(1); }
.js .map-wrap.reveal.is-visible .map__pin:hover .map__dot { transform: scale(1.35); transition-delay: 0s; }
.js .map-wrap.reveal .map__pin--hq .map__label { opacity: 0; transition: opacity .4s ease 1.6s; }
.js .map-wrap.reveal.is-visible .map__pin--hq .map__label { opacity: 1; }

/* Cartes des zones */
.zones { display: grid; gap: 14px; }
.zone {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 24px 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.zone:hover, .js .zone.reveal.is-visible:hover { transform: translateX(4px); border-color: var(--lime); box-shadow: 0 12px 24px rgba(18, 38, 27, .07); }
.zone__marker { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-top: 2px; }
.zone__marker--hq { background: rgba(239, 133, 36, .14); }
.zone__marker--hq::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--logo-orange); box-shadow: 0 0 0 4px rgba(239, 133, 36, .25); }
.zone__marker--city { background: rgba(175, 202, 11, .18); }
.zone__marker--city::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
.zone__marker--world { background: rgba(73, 133, 124, .12); color: var(--logo-green); }
.zone__marker svg { width: 20px; height: 20px; }
.zone h3 { font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; color: var(--forest); margin-bottom: 6px; }
.zone p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.contact::before { width: 520px; height: 520px; left: -220px; top: -200px; background: rgba(175, 202, 11, .08); }
.contact::after { width: 300px; height: 300px; right: -120px; bottom: -140px; background: rgba(239, 133, 36, .1); }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }

.contact .offres__tag { background: transparent; border-color: rgba(255, 255, 255, .22); color: var(--lime); }
.contact__intro h2 { margin: 18px 0 14px; }
.contact__lead { color: #c9d6c6; font-size: 1.08rem; max-width: 30em; }
.contact__subtitle { color: #fff; font-weight: 600; margin: 34px 0 16px; }

/* Étapes numérotées par une pastille */
.steps { list-style: none; padding: 0; margin: 0 0 36px; counter-reset: step; }
.step { position: relative; padding: 0 0 22px 52px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--lime); color: var(--forest-dark); font-weight: 700; font-size: .95rem;
}
.step:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: rgba(175, 202, 11, .3); }
.step b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 2px; }
.step span { display: block; color: #b6c5b2; font-size: .95rem; line-height: 1.45; }

/* Cartes de contact cliquables */
.contact__cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; text-decoration: none; font-weight: 600;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
a.contact-card:hover { background: rgba(255, 255, 255, .1); border-color: var(--lime); transform: translateX(4px); }
.contact-card small { display: block; color: #a9bba5; font-size: .85rem; font-weight: 500; }
.contact-card__icon { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(175, 202, 11, .16); color: var(--lime); }
.contact-card__icon svg { width: 20px; height: 20px; }

/* Formulaire */
.form { background: var(--paper); color: var(--ink); padding: 40px; border-radius: 16px; box-shadow: 0 30px 60px rgba(5, 15, 10, .25); }
.form__head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form__title { font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; color: var(--forest); margin: 0 0 4px; }
.form__sub { color: var(--muted); font-size: .95rem; margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; }
.field label, .field legend { font-size: .93rem; font-weight: 600; color: var(--ink); transition: color .2s ease; }
.field:focus-within > label { color: var(--logo-green); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid #c9ccc4; border-radius: 8px; background: #fbfaf7;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field input:hover, .field textarea:hover { border-color: #a9ae9f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: #fff; box-shadow: 0 0 0 4px rgba(175, 202, 11, .22); }
.field textarea { min-height: 130px; resize: vertical; }

/* Choix du besoin en pastilles */
.field--chips { border: 0; padding: 0; min-width: 0; }
.field--chips legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #c9ccc4; background: #fff; font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.chip:hover span { border-color: var(--lime); }
.chip input:checked + span { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip input:checked + span::before { content: "\2713"; margin-right: 6px; color: var(--lime); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip:active span { transform: scale(.96); }

.form__submit { width: 100%; justify-content: center; padding: 16px 24px; font-size: 1.05rem; margin-top: 6px; }
.form__note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .88rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form__note svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--logo-green); }

/* ---------- Pied de page ---------- */
.footer { position: relative; background: var(--forest-dark); color: #a9bba5; padding: 80px 0 28px; font-size: 1.1rem; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--lime), var(--logo-green) 60%, var(--logo-orange)); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr; gap: 48px; margin-bottom: 56px; }

.footer__logo { display: inline-block; padding: 8px 12px; background: #fff; border-radius: 10px; margin-bottom: 18px; transition: transform .3s ease; }
.footer__logo:hover { transform: rotate(-2deg) scale(1.03); }
.footer__logo img { display: block; height: 72px; width: auto; }
.footer__tagline { font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: 1.2rem; color: var(--lime); margin-bottom: 10px; }
.footer__brand > p:not(.footer__tagline) { max-width: 24em; margin-bottom: 20px; }
.footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; text-decoration: none; }
.footer__contact svg { width: 18px; height: 18px; color: var(--lime); flex-shrink: 0; }
.footer__contact a:hover { color: var(--lime); }

.footer h4 { color: #fff; font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; margin: 8px 0 20px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  color: #c9d6c6; text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) left bottom / 0 1px no-repeat;
  padding-bottom: 2px; transition: color .2s ease, background-size .3s ease;
}
.footer__col a:hover { color: #fff; background-size: 100% 1px; }
.footer__legal { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 1rem; }
.footer__legal dt { color: #b6c5b2; font-size: .92rem; }
.footer__legal dd { margin: 0 0 10px; color: #c9d6c6; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 1rem;
}
.footer__top {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease;
}
.footer__top svg { width: 16px; height: 16px; transition: transform .3s ease; }
.footer__top:hover { border-color: var(--lime); background: rgba(175, 202, 11, .12); }
.footer__top:hover svg { transform: translateY(-3px); }

/* ---------- Pages classiques (mentions légales…) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--forest); color: #fff; padding: 64px 0 56px; }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: rgba(175, 202, 11, .1); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: .92rem; color: #b6c5b2; margin-bottom: 18px; }
.breadcrumb a { color: var(--lime); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { color: #fff; margin: 0 0 10px; }
.page-hero__meta { color: #b6c5b2; margin: 0; font-size: .95rem; }

.page-body { padding-top: 64px; }
.page-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.page-layout--single { grid-template-columns: minmax(0, 820px); justify-content: center; }

/* Sommaire collant */
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.toc__title { font-weight: 700; color: var(--forest); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.35;
  transition: background-color .2s ease, color .2s ease;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent-text); font-weight: 700; font-size: .85rem; padding-top: 1px; }
.toc a:hover { background: var(--cream); color: var(--forest); }
.toc a.is-active { background: rgba(175, 202, 11, .16); color: var(--forest); font-weight: 600; }

/* Cartes de rubriques */
.page-content { display: grid; gap: 18px; }
.legal-card {
  position: relative; scroll-margin-top: calc(var(--header-h) + 24px);
  padding: 32px 34px 30px 92px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .3s ease;
}
.legal-card:hover { border-color: var(--lime); }
.legal-card--intro { padding-left: 34px; }
.legal-card__num {
  position: absolute; left: 30px; top: 30px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(175, 202, 11, .18); color: var(--forest); font-weight: 700; font-size: .95rem;
}
.legal-card h2 { font-size: 1.45rem; margin: 6px 0 14px; }
.legal-card__body { color: var(--ink); line-height: 1.75; }
.legal-card__body p:last-child { margin-bottom: 0; }
.legal-card a { color: var(--logo-green); }

.legal-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 12px; padding: 28px 34px; background: var(--forest); color: #d5dfd2; border-radius: 12px;
}
.legal-cta__title { color: #fff; font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; }
.legal-cta p { margin: 0; }

@media (max-width: 1000px) {
  .page-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .page-hero { padding: 44px 0 40px; }
  .page-body { padding-top: 40px; }
  .legal-card { padding: 76px 20px 24px; }
  .legal-card__num { left: 20px; top: 22px; }
  .legal-card--intro { padding: 24px 20px; }
  .legal-cta { padding: 24px 20px; }
}

/* ---------- Titres : les mots montent un par un ---------- */
.js .title-anim .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.js .title-anim .w > span { display: inline-block; transform: translateY(110%); transition: transform .85s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms + .1s); }
.js .title-anim.is-in .w > span { transform: none; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease, border-color .3s ease, box-shadow .3s ease, background-color .25s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .pillar, .pillar__more svg, .expertise, .expertise::after, .fresque, .fresque::after, .fresque__logo img, .fresque__go { transition: none; }
  .js .fresque.reveal .fresque__logo img { filter: none; }
  .impact__item, .impact__photo img, .ecolieu__photo img, .fact { transition: none; }
  .js .about__card.reveal .about__ring circle { stroke-dashoffset: 0; transition: none; }
  .about__strengths li, .about__strengths li::before { transition: none; }
  .map__pulse { animation: none; opacity: 0; }
  .zone, .map__dot { transition: none; }
  .contact-card, .chip span, .field input, .field textarea { transition: none; }
  .footer__logo, .footer__col a, .footer__top svg { transition: none; }
  .js .about__strengths li.reveal::before { transform: none; }
  .leaf, .ecolieu__badge svg { animation: none; }
  .ecolieu__photo { transform: none; }
  .trust__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 8px; }
  .trust__track li[aria-hidden] { display: none; }
  .brand, .nav a::after { transition: none; }
  .header.is-fixed { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .formation__main, .finance, .ecolieu__grid, .about__grid, .contact__grid, .questions__grid { grid-template-columns: 1fr; gap: 40px; }
  .impact { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .expertises { grid-template-columns: 1fr 1fr; }
  .zones__grid { grid-template-columns: 1fr; gap: 32px; }
  .ecolieu__photo { transform: none; }
  .map-wrap { max-width: 620px; width: 100%; margin: 0 auto; }
  .fresques { grid-template-columns: 1fr 1fr; }
  .finance ul { grid-template-columns: 1fr 1fr; }
  .formation__photo { max-width: 520px; }
  .formation__badge { left: 16px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 28px 24px; border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__card { max-width: 420px; width: 100%; margin: 0 auto; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > *, .section-head > .eyebrow { grid-column: 1; grid-row: auto; }
  .section-head > .eyebrow { padding-top: 0; margin-bottom: 12px; }
}

@media (max-width: 1180px) {
  .nav { gap: 24px; }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest); border-top: 2px solid var(--logo-orange);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav a::after { left: 32px; right: auto; width: 40px; bottom: 10px; }
  .nav .nav__cta { display: block; background: var(--lime); color: var(--forest-dark); }
  .header { position: relative; }
  .header.menu-open, .site-top--overlay .header.menu-open:not(.is-fixed) { background: var(--forest); }
  .header.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
  .header.menu-open .burger span:nth-child(2) { opacity: 0; }
  .header.menu-open .burger span:nth-child(3) { transform: rotate(-45deg); }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; --header-h-small: 64px; }
  body { font-size: 17px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .pillars, .expertises, .formation__themes, .finance ul, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .map-wrap { padding: 16px; }
  .map__label { font-size: 24px; stroke-width: 6px; }
  .fresque { padding: 18px 16px; }
  .fresque__logo { height: 44px; }
  .fresque__logo b { font-size: 1.3rem; }
  .about__strengths li { padding: 18px 16px 16px; }
  .about__strengths b { font-size: 1.35rem; }
  .about__strengths span { font-size: .9rem; }
  .pillar { min-height: 0; padding: 26px 22px 24px; }
  .offres__head { margin-bottom: 40px; }
  .stat, .stat:first-child { padding: 22px 16px; }
  .stat b { font-size: 2rem; }
  .form { padding: 28px 20px; }
  .contact__grid { gap: 44px; }
  .slider__nav { justify-content: flex-start; bottom: 28px; }
  .slider__count { margin-right: auto; }
  .brand { padding: 4px 7px; height: calc(var(--header-h) - 20px); }
  .nav a { padding: 14px 20px; }
  .nav a::after { left: 20px; }
}

/* ---------- WordPress ---------- */
.rg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 12px 16px; margin-bottom: 20px; font-size: 1rem; border-left: 3px solid; }
.form__status--ok { background: #eaf2e7; color: #1f5a2b; }
.form__status--error { background: #f8ebe4; color: #8a3417; }
.legal-card img { height: auto; max-width: 100%; }
.legal-card ul, .legal-card ol { padding-left: 1.2em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================
   Ambiance « vivante » (inspirations de Camille : M ta Terre, MOOC)
   Formes organiques vert / jaune pâle + dégradés de vert.
   Aucune modification de la typographie.
   ========================================================== */
:root {
  --pale-green: #d4e8e3;
  --pale-green-2: #e8f2ef;
  --pale-yellow: #e5eea0;
  --grad-forest: linear-gradient(135deg, #1f423d 0%, #2f5f58 45%, #49857c 100%);
  --grad-green: linear-gradient(135deg, #2f5f58 0%, #49857c 100%);
  --blob-a: 63% 37% 54% 46% / 55% 48% 52% 45%;
  --blob-b: 40% 60% 70% 30% / 40% 50% 60% 50%;
}
@keyframes rg-morph {
  0%, 100% { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
  50% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* Étiquettes de section : pastille vert pâle légèrement inclinée */
.offres__tag,
.section--forest .offres__tag,
.contact .offres__tag {
  background: var(--pale-green); border-color: transparent; color: var(--forest-dark);
  transform: rotate(-2deg); border-radius: 6px;
}

/* Dégradés de vert sur les sections foncées */
.stats { background: var(--grad-forest); }
.section--forest { background: var(--grad-forest); }
.contact { background: var(--grad-forest); }
.formation__badge, .finance, .about__card, .legal-cta { background: var(--grad-green); }
.page-hero { background: var(--grad-forest); }

/* Formes organiques vert pâle en fond des sections claires */
.questions, .zones-section { position: relative; overflow: hidden; }
.questions::before, .ecolieu::before, .zones-section::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  background: var(--pale-green-2);
  border-radius: var(--blob-a);
  animation: rg-morph 16s ease-in-out infinite;
}
.questions::before { width: 460px; height: 420px; left: -180px; top: 40px; }
.ecolieu { position: relative; }
.ecolieu::before { width: 520px; height: 480px; right: -200px; top: -60px; background: var(--pale-green); opacity: .55; }
.zones-section::before { width: 480px; height: 440px; left: -160px; bottom: -120px; }
.questions > .container, .ecolieu > .container, .zones-section > .container { position: relative; z-index: 1; }

/* Taches jaune pâle derrière le texte des cartes « Nos offres » (style MOOC) */
.pillar > * { position: relative; z-index: 1; }
.pillar::before {
  content: ""; position: absolute; z-index: 0;
  width: 62%; aspect-ratio: 1; right: -18%; top: -22%;
  background: var(--pale-yellow); opacity: .7;
  border-radius: var(--blob-a);
  transition: transform .6s ease, opacity .3s ease;
}
.pillar:nth-child(2)::before { background: var(--pale-green); border-radius: var(--blob-b); top: auto; bottom: -26%; }
.pillar:nth-child(3)::before { background: var(--pale-green); border-radius: var(--blob-b); }
.pillar:nth-child(4)::before { top: auto; bottom: -26%; }
.pillar:hover::before { transform: scale(1.12) rotate(8deg); opacity: .9; }

/* Fresques : petite tache vert pâle au survol */
.fresque::before {
  content: ""; position: absolute; width: 120px; height: 120px; right: -40px; bottom: -50px; z-index: 0;
  background: var(--pale-green-2); border-radius: var(--blob-a);
  transform: scale(.6); opacity: 0; transition: transform .45s ease, opacity .3s ease;
}
.fresque > * { position: relative; z-index: 1; }
.fresque:hover::before { transform: scale(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .questions::before, .ecolieu::before, .zones-section::before { animation: none; }
  .pillar::before, .fresque::before { transition: none; }
}
@media (max-width: 640px) {
  .questions::before, .ecolieu::before, .zones-section::before { width: 300px; height: 280px; }
}

/* ---------- Galerie « Impact en images » ---------- */
.gallery { background: var(--paper); }
.gallery__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px;
}
.gallery__grid { grid-auto-flow: dense; }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
/* Une photo en double largeur pour que 12 photos remplissent la grille sans trou */
.gallery__item:nth-child(10) { grid-column: span 2; }
.gallery__open {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  overflow: hidden; border-radius: 12px; background: var(--line); cursor: zoom-in;
}
.gallery__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.gallery__open::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(31, 66, 61, .85) 0%, rgba(31, 66, 61, 0) 55%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery__caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1;
  color: #fff; font-size: .9rem; line-height: 1.35; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.gallery__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lime); color: var(--forest-dark);
  opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease;
}
.gallery__open:hover img, .gallery__open:focus-visible img { transform: scale(1.06); }
.gallery__open:hover::after, .gallery__open:focus-visible::after,
.gallery__open:hover .gallery__caption, .gallery__open:focus-visible .gallery__caption,
.gallery__open:hover .gallery__zoom, .gallery__open:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__open:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Visionneuse plein écran */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 40px 24px 60px; background: rgba(15, 32, 29, .94);
  animation: rg-fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes rg-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__img { max-width: 100%; max-height: 74vh; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.lightbox__caption { color: #e6efe9; font-size: 1rem; line-height: 1.5; text-align: center; max-width: 52em; }
.lightbox button { display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%; transition: background-color .2s ease, color .2s ease; }
.lightbox button:hover, .lightbox button:focus-visible { background: var(--lime); color: var(--forest-dark); outline: none; }
.lightbox__nav { flex-shrink: 0; width: 52px; height: 52px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; color: #a9cfc8; font-size: .9rem; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 1000px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; }
  .gallery__caption { display: none; }
  .gallery__zoom { opacity: 1; transform: none; width: 30px; height: 30px; }
  .lightbox { padding: 60px 8px 70px; gap: 6px; }
  .lightbox__nav { position: absolute; bottom: 14px; width: 46px; height: 46px; }
  .lightbox__prev { left: 20px; }
  .lightbox__next { right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__open img, .gallery__open::after, .gallery__caption, .gallery__zoom { transition: none; }
  .lightbox { animation: none; }
}

/* Métiers en orange dans le pied de page */
.footer__highlight { color: var(--logo-orange); font-weight: 600; }

/* ==========================================================
   Catalogue
   ========================================================== */
.catalogue { background: var(--pale-green-2); }
.catalogue__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.catalogue__card {
  display: flex; flex-direction: column;
  padding: 28px 26px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
/* Une famille seule sur la dernière rangée prend toute la largeur. */
.catalogue__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.catalogue__card:hover { border-color: var(--logo-green); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 66, 61, .1); }
.catalogue__card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.catalogue__num { font-family: var(--font-title); font-size: 1rem; font-weight: 600; color: var(--accent-text); }
.catalogue__card h3 { margin: 0; font-size: 1.3rem; }
.catalogue__count {
  margin-left: auto; min-width: 30px; padding: 2px 9px; text-align: center;
  border-radius: 999px; background: var(--lime); color: var(--forest-dark);
  font-size: .85rem; font-weight: 700;
}
.catalogue__text { margin: 0 0 18px; color: var(--muted); line-height: 1.45; }
.catalogue__list { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.catalogue__list li {
  padding: 6px 13px; border-radius: 999px;
  background: var(--pale-green-2); border: 1px solid var(--pale-green);
  color: var(--forest-dark); font-size: .93rem; font-weight: 600; line-height: 1.3;
}
.catalogue__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-top: 28px; padding: 28px 32px; border-radius: 14px;
  background: var(--grad-forest); color: #fff;
}
.catalogue__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.catalogue__facts li { display: flex; flex-direction: column; }
.catalogue__facts b { font-family: var(--font-title); font-size: 1.7rem; font-weight: 600; color: var(--lime); line-height: 1.1; }
.catalogue__facts span { font-size: .93rem; color: #d4e8e3; }
.catalogue__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.catalogue__bar .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.catalogue__bar .btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

@media (max-width: 640px) {
  .catalogue__grid { grid-template-columns: 1fr; }
  .catalogue__card, .catalogue__card:last-child:nth-child(odd) { grid-column: auto; padding: 22px 18px; }
  .catalogue__bar { padding: 24px 20px; }
  .catalogue__actions, .catalogue__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .catalogue__card { transition: none; }
  .catalogue__card:hover { transform: none; }
}
