/*
Theme Name: Grâce au Jardin
Theme URI: https://grace-au-jardin.fr
Author: Grâce au Jardin
Author URI: https://grace-au-jardin.fr
Description: Thème WordPress sur-mesure pour l'association Grâce au Jardin — agriculture durable, ferme agroécologique et jardins partagés à Tremblay-les-Villages.
Version: 2.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grace-au-jardin
Tags: nonprofit, association, custom-menu, custom-logo, threaded-comments, translation-ready
*/

:root{
  --teal-900:#004f46;
  --teal-900-rgb:0,79,70;
  --terra:#c75126;
  --terra-rgb:199,81,38;
  --terra-deep:#8d2a06;
  --terra-50:#fae8dc;
  --slate-900:#2e3a46;
  --slate-700:#5e666e;
  --cream:#f9f5ec;
  --on-dark:#f9f5ec;
  --on-dark-soft:rgba(249,245,236,.78);

  --sans:"Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-md:14px;
  --r-lg:22px;
  --r-pill:999px;
  --shadow-1: 0 1px 3px rgba(0,79,70,.06), 0 1px 2px rgba(0,79,70,.04);
  --shadow-2: 0 6px 18px rgba(0,79,70,.10), 0 2px 6px rgba(0,79,70,.05);
  --shadow-3: 0 24px 48px rgba(0,79,70,.16), 0 8px 16px rgba(0,79,70,.08);

  --max:1240px;
  --gutter:32px;
  --ease: cubic-bezier(.4,.0,.2,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  /* Figma base: Montserrat Regular everywhere by default.
     Body 16/24 (1.5) — boxes/chapo upgrade locally to 20/30 via .lead/.intro-card etc. */
  margin:0;
  font-family:var(--sans);
  font-weight:400;
  font-size:16px;
  line-height:1.5;
  letter-spacing:0;
  color:var(--slate-900);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
@media (max-width:860px){
  html,body{overflow-x:hidden}
}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit;padding:0}
::selection{background:var(--terra);color:#fff}

.container{width:100%;max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}

.screen-reader-text{
  clip:rect(1px,1px,1px,1px);
  position:absolute!important;
  height:1px;width:1px;
  overflow:hidden;word-wrap:normal!important;
}

/* ========== HEADER ========== */
.site-header{
  position:sticky;top:0;left:0;right:0;z-index:50;
  background:var(--teal-900);
  color:var(--on-dark);
  transition:background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled{
  background:rgba(0,79,70,.92);
  backdrop-filter:saturate(140%) blur(14px);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  box-shadow:0 4px 16px rgba(0,40,35,.18);
}
.site-header__inner{
  display:flex;align-items:center;gap:2.5rem;
  padding:18px 0;
}
.brand{display:flex;align-items:center;gap:.85rem;flex-shrink:0;color:var(--on-dark);text-decoration:none}
.brand__logo{height:54px;width:auto;display:block}
span.brand__logo{height:54px;display:inline-flex;align-items:center}
span.brand__logo svg{height:100%;width:auto;display:block;fill:currentColor}
.brand__text{display:none;flex-direction:column;line-height:1.1}
.brand__name{font-family:var(--sans);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;color:#fff}
.brand__tagline{font-family:var(--sans);font-weight:400;font-style:italic;font-size:.78rem;color:var(--on-dark-soft);margin-top:.15rem;max-width:13rem}

.nav{flex:1;display:flex;justify-content:center}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.85rem}
.nav a{
  color:var(--on-dark);font-weight:500;font-size:.93rem;
  display:inline-flex;align-items:center;gap:.3rem;
  padding:.6rem 0;position:relative;
  transition:color .2s var(--ease);
}
.nav a:hover{color:#fff}
.nav .menu-item-has-children > a::after,
.nav .has-sub::after{
  content:"";width:6px;height:6px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:translateY(-2px) rotate(45deg);display:inline-block;margin-left:.3rem;opacity:.7;
}
.nav li{position:relative}
.nav .sub-menu{
  position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(8px);
  background:var(--teal-900);color:var(--on-dark);
  list-style:none;margin:0;padding:.5rem 0;
  min-width:220px;border-radius:14px;
  box-shadow:0 12px 32px rgba(0,40,35,.25);
  opacity:0;visibility:hidden;
  transition:opacity .2s var(--ease),transform .2s var(--ease),visibility .2s;
  z-index:60;flex-direction:column;gap:0;
}
.nav .sub-menu li{display:block}
.nav .sub-menu a{
  padding:.55rem 1.25rem;font-size:.9rem;font-weight:500;
  white-space:nowrap;display:block;color:var(--on-dark);
  border-radius:0;
}
.nav .sub-menu a:hover{background:rgba(255,255,255,.08);color:#fff}
.nav .sub-menu a::before{display:none}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu{
  opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);
}
.nav .is-active{color:#fff}
.nav .is-active::before{
  content:"";position:absolute;bottom:.18rem;left:0;right:0;
  height:1.5px;background:#fff;border-radius:1px;
}
/* keep dropdown arrow visible when also active */
.nav .has-sub.is-active::after{opacity:.85}

.search-btn{
  width:42px;height:42px;border-radius:50%;
  background:var(--terra);color:#fff;
  display:grid;place-items:center;
  transition:background .2s var(--ease), transform .2s var(--ease);
}
.search-btn:hover{background:var(--terra-deep);transform:scale(1.05)}
.search-btn svg{width:18px;height:18px}

.gaj-search{
  position:absolute;top:100%;left:0;right:0;
  background:var(--teal-900);
  padding:1rem 0;
  border-top:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 24px rgba(0,40,35,.25);
  z-index:49;
}
.gaj-search[hidden]{display:none}
.gaj-search__form{
  display:flex;gap:.75rem;
  max-width:var(--max);margin:0 auto;
  padding:0 var(--gutter);
}
.gaj-search__form input[type=search]{
  flex:1;
  padding:.85rem 1.1rem;
  border-radius:var(--r-pill);
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.08);
  color:#fff;
  font:inherit;
}
.gaj-search__form input[type=search]::placeholder{color:rgba(255,255,255,.55)}
.gaj-search__form input[type=search]:focus{
  outline:none;
  border-color:rgba(255,255,255,.45);
  background:rgba(255,255,255,.14);
}
body.is-search-open .toc{visibility:hidden}

/* ========== BUTTONS ========== */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.75rem 1.5rem;border-radius:var(--r-pill);
  font-family:var(--sans);font-weight:600;font-size:.9rem;
  line-height:1;letter-spacing:.01em;
  transition:transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space:nowrap;cursor:pointer;
}
.btn:hover{transform:translateY(-1px)}
.btn--primary{background:var(--terra);color:#fff;box-shadow:0 6px 16px -4px rgba(199,81,38,.45)}
.btn--primary:hover{background:var(--terra-deep);box-shadow:0 8px 20px -4px rgba(141,42,6,.5)}
.btn--outline{background:transparent;color:var(--terra);border:1.5px solid var(--terra)}
.btn--outline:hover{background:var(--terra);color:#fff}
.btn--white{background:#fff;color:var(--terra)}
.btn--white:hover{background:var(--cream)}

/* ========== TYPO HELPERS ========== */
.h-section{
  font-family:var(--sans);font-weight:800;
  font-size:clamp(2rem, 3.4vw, 2.8rem);
  line-height:1.05;letter-spacing:-.018em;
  color:var(--terra);
  margin:0 0 .65rem;
}
.h-section--teal{color:var(--teal-900)}

/* ========== PAGE HERO (shared) ========== */
.page-hero{
  position:relative;background:var(--teal-900);color:var(--on-dark);
  border-bottom-left-radius:32px;border-bottom-right-radius:32px;
  padding:1rem 0 2rem;
}
.page-hero__inner{
  display:grid;grid-template-columns:1.2fr 1fr;
  gap:3.5rem;align-items:center;padding-top:0;
  min-height:380px;
}
.breadcrumb{
  font-size:.92rem;color:var(--on-dark-soft);
  margin:0 0 1.25rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
}
.breadcrumb a{color:var(--on-dark-soft);text-decoration:underline;text-decoration-color:rgba(249,245,236,.4)}
.breadcrumb a:hover{color:#fff}
.breadcrumb .sep{opacity:.5}
.breadcrumb [aria-current="page"]{color:#fff;opacity:.95}
.page-hero__title{
  font-family:var(--sans);font-weight:800;
  font-size:clamp(2.25rem,3.6vw,3rem);
  line-height:1.08;letter-spacing:-.02em;
  margin:0 0 1rem;color:#fff;
}
.page-hero__intro{
  /* Figma: "Chapo" — Montserrat Regular 20 / 150% / 0% */
  font-size:1.25rem;line-height:1.5;letter-spacing:0;
  font-weight:400;color:var(--on-dark-soft);
  margin:0;max-width:34rem;
}
.page-hero__photo,
.page-hero__visual{
  border-radius:24px;
  height:440px;
  box-shadow:0 24px 48px -12px rgba(0,40,35,.45);
}
.page-hero__photo{overflow:hidden}
.page-hero__photo img{width:100%;height:100%;object-fit:cover;display:block}
.page-hero__visual{
  background:#fff;padding:1.5rem;
  display:flex;align-items:center;justify-content:center;
}
.page-hero__visual img{max-width:88%;max-height:88%;width:auto;height:auto;object-fit:contain}

/* ========== PAGE BODY (sommaire + content) ========== */
.page-body{padding:5rem 0 3rem}
.page-body__grid{
  display:grid;grid-template-columns:240px 1fr;
  gap:4rem;align-items:start;
}
.page-body__grid--single{grid-template-columns:1fr}
.toc{
  position:sticky;top:120px;
  background:#fff;border-radius:18px;
  padding:1.5rem 1.5rem;box-shadow:var(--shadow-1);
}
.toc h2{font-family:var(--sans);font-weight:700;font-size:.95rem;color:var(--teal-900);margin:0 0 1rem;letter-spacing:-.005em}
.toc ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.65rem;font-size:.88rem;line-height:1.35}
.toc a:not(.btn){color:var(--teal-900);display:inline-flex;gap:.45rem;align-items:flex-start;transition:color .2s var(--ease);opacity:.85}
.toc a:not(.btn)::before{content:"→";color:var(--terra);flex-shrink:0;font-weight:700}
.toc a:not(.btn):hover{color:var(--teal-900)}
.toc__cta{display:flex;flex-direction:column;gap:.5rem;align-items:stretch;margin-top:1.25rem}
.toc__cta .btn{padding:.65rem 1rem;font-size:.85rem;justify-content:center}

.content > section{margin-bottom:3.5rem}
.content h2{
  font-family:var(--sans);font-weight:800;
  font-size:clamp(1.7rem,2.6vw,2.2rem);
  line-height:1.1;letter-spacing:-.018em;
  color:var(--teal-900);
  margin:0 0 1.25rem;
}
.content h3{
  font-family:var(--sans);font-weight:700;
  font-size:1.2rem;color:var(--teal-900);
  margin:1.5rem 0 .65rem;letter-spacing:-.005em;
}
.content p{font-size:.98rem;line-height:1.7;color:var(--teal-900);margin:0 0 1rem}
.content li{color:var(--teal-900)}
.content ul,.content ol{padding-left:1.25rem;margin:0 0 1rem}
.content ul li,.content ol li{margin-bottom:.4rem}
.content strong{color:var(--teal-900);font-weight:700}
.content em{font-style:italic;color:var(--slate-700)}
.content a:not(.btn){color:var(--terra);text-decoration:underline;text-decoration-thickness:1px}
.content a:not(.btn):hover{text-decoration-thickness:2px}
.content .btn{text-decoration:none}

.divider-orange{
  border:0;height:1px;
  background:linear-gradient(to right, transparent, var(--terra-50), transparent);
  margin:3rem 0;
}

.note-block{
  /* Figma: "Chapo" — Montserrat Regular 20 / 150% / 0% */
  background:#fff;
  border-left:3px solid var(--terra);
  padding:1.25rem 1.5rem;
  border-radius:0 12px 12px 0;
  font-style:italic;
  color:var(--teal-900);
  font-weight:400;
  font-size:1.25rem;line-height:1.5;letter-spacing:0;
  margin:2rem 0;
}

/* shared section-block (photo + text 2-col) */
.section-block{
  display:grid;grid-template-columns:1fr 1.2fr;
  gap:2.5rem;align-items:start;
  margin-bottom:1rem;
}
.section-block--reverse{direction:rtl}
.section-block--reverse > *{direction:ltr}
.section-block__media{
  border-radius:18px;overflow:hidden;box-shadow:var(--shadow-2);
  aspect-ratio:4/3;
}
.section-block__media img{width:100%;height:100%;object-fit:cover;display:block}
.section-block__body p{margin-top:0}
.section-cta{margin:1.5rem 0 0}

@media (max-width:980px){
  .page-hero__inner{grid-template-columns:1fr;gap:2rem}
  .page-hero__photo,.page-hero__visual{height:auto;aspect-ratio:5/3}
  .page-body__grid{grid-template-columns:1fr;gap:2rem}
  .toc{position:static}
  .section-block,.section-block--reverse{grid-template-columns:1fr;gap:1.5rem}
}

/* ========== PAGE: PARTENAIRES ========== */
.partner-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem 2.5rem;
  margin:1.5rem 0 2rem;
}
.partner{
  display:flex;flex-direction:column;align-items:center;
  text-align:center;gap:.75rem;
}
.partner__logo{
  width:100%;height:110px;
  display:flex;align-items:center;justify-content:center;
  padding:.75rem 1rem;background:#fff;border-radius:12px;
  box-shadow:0 1px 2px rgba(0,79,70,.04), 0 1px 1px rgba(0,79,70,.03);
  overflow:hidden;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.partner:hover .partner__logo{
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,79,70,.08), 0 2px 4px rgba(0,79,70,.04);
}
.partner__logo img{
  max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;object-position:center;
}
/* Variante fond sombre pour les logos qui sont blancs/lights sur transparent
   (ex: Delta Trailer dont le texte est blanc et invisible sur fond cream). */
.partner.partner--dark .partner__logo{background:#000 !important}
.partner.partner--dark .partner__logo img{filter:none}
.partner__label{
  font-size:.92rem;color:var(--teal-900);
  font-weight:500;line-height:1.3;
}
.partner-text-card{
  background:#fff;border-radius:14px;
  padding:1.5rem;box-shadow:var(--shadow-1);
  text-align:center;display:grid;place-items:center;
  min-height:120px;
}
.partner-text-card p{margin:0;font-size:.92rem;line-height:1.45;color:var(--teal-900)}
.partner-text-card strong{color:var(--teal-900);font-weight:700}
.muted-note{color:var(--teal-900);opacity:.75;margin:.5rem 0 1.5rem;font-size:.95rem}
.partner-divider{border:0;border-top:1px solid rgba(0,79,70,.1);margin:2.5rem 0}
.monarque-photo{border-radius:18px;overflow:hidden;margin:1.5rem 0;box-shadow:var(--shadow-2)}
.monarque-photo img{width:100%;height:auto;display:block}

@media (max-width:980px){
  .partner-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .partner-grid{grid-template-columns:1fr 1fr;gap:1rem}
  .partner__logo{height:90px;padding:.5rem .75rem}
}

/* ========== PAGE: PROJET ========== */
.mission{display:grid;grid-template-columns:200px 1fr;gap:2rem;align-items:start;margin-bottom:2.5rem}
.mission__icon{width:200px;display:grid;place-items:center}
.mission__icon img{width:100%;height:auto}
.mission h3{margin:.5rem 0 .65rem;font-size:1.2rem;color:var(--teal-900)}
.mission__body p{margin:0 0 .75rem;font-size:.98rem;line-height:1.65}
@media (max-width:980px){.mission{grid-template-columns:140px 1fr;gap:1.25rem}.mission__icon{width:140px}}
@media (max-width:640px){.mission{grid-template-columns:1fr;text-align:center}.mission__icon{width:140px;margin:0 auto}}
.year-block{margin-top:2rem}
.year-block__media{margin:1rem 0}
.year-block__media img{width:100%;height:auto;display:block;border-radius:14px}

/* ========== PAGE: VENTES ========== */
.panier-row{
  display:grid;grid-template-columns:280px 1fr;gap:2.5rem;align-items:center;
  background:#fff;border-radius:18px;padding:1.75rem 2rem;
  box-shadow:var(--shadow-1);margin-bottom:1.25rem;
}
.panier-row__illu{display:grid;place-items:center;padding:.5rem}
.panier-row__illu img{width:100%;max-width:240px;height:auto;display:block}
.panier-row h3{font-family:var(--sans);font-weight:800;font-size:1.4rem;color:var(--teal-900);
  margin:0 0 .85rem;letter-spacing:-.012em;display:flex;align-items:center;gap:.55rem}
.panier-row h3::before{content:"";display:inline-block;width:12px;height:12px;background:var(--teal-900);border-radius:2px}
.panier-row ul{padding-left:1.25rem;margin:0;color:var(--teal-900);font-size:.98rem;line-height:1.7}
.panier-row ul li{margin-bottom:.25rem}
.panier-row ul li::marker{color:var(--terra)}
@media (max-width:980px){.panier-row{grid-template-columns:1fr;gap:1rem;padding:1.5rem;text-align:center}
  .panier-row__illu img{margin:0 auto}.panier-row h3{justify-content:center}}
.steps{margin-top:1.25rem}
.step{margin-bottom:1.5rem}
.step h3{font-family:var(--sans);font-weight:700;font-size:1.05rem;color:var(--teal-900);margin:0 0 .5rem}
.step h3 span{font-weight:400;color:var(--teal-900);opacity:.85}
.step ul{padding-left:1.5rem;margin:.4rem 0 0}
.step ul li{font-size:.96rem;color:var(--slate-900)}
.step ul li::marker{color:var(--terra)}
.form-card{
  background:#fff;border-radius:14px;
  padding:1.75rem 2rem;box-shadow:var(--shadow-1);
  margin:1rem 0 0;
}
.form-row{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1.1rem}
.form-row label{font-size:.95rem;color:var(--slate-900);font-weight:500}
.form-row input,
.form-row textarea,
.form-row select{
  width:100%;padding:.75rem .9rem;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;background:#fff;
  font:inherit;color:var(--teal-900);
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus{
  outline:none;
  border-color:var(--teal-900);
  box-shadow:0 0 0 3px rgba(0,79,70,.12);
}
.form-row textarea{min-height:140px;resize:vertical}
.form-actions{display:flex;justify-content:flex-end;margin-top:.5rem}

.map-card{
  border-radius:18px;overflow:hidden;
  box-shadow:var(--shadow-1);
  margin:1rem 0 0;background:#e8eee0;
}
.map-card img{width:100%;height:auto;display:block}
.map-card iframe{width:100%;height:380px;border:0;display:block}

.contact-card,.coord-card{background:#fff;border-radius:14px;padding:1rem 1.5rem;box-shadow:var(--shadow-1);margin:1rem 0}
.coord-card{padding:1.25rem 1.5rem}
.contact-card a,.coord-card a{display:flex;align-items:center;gap:.75rem;color:var(--teal-900);text-decoration:underline;
  text-decoration-color:rgba(0,79,70,.4);padding:.5rem 0;font-weight:500;font-size:1rem}
.contact-card a:hover,.coord-card a:hover{text-decoration-color:var(--teal-900)}
.contact-card svg,.coord-card svg{width:20px;height:20px;color:var(--terra);flex-shrink:0}

/* ========== PAGE: VISITES ========== */
.lead-block{
  /* Figma: "Chapo" — Montserrat Regular 20 / 150% / 0% */
  background:var(--terra-50);border-radius:14px;padding:1.5rem 1.75rem;
  margin:1rem 0 2rem;color:var(--teal-900);
  font-weight:400;font-size:1.25rem;line-height:1.5;letter-spacing:0;
}
.visite-cards{display:grid;gap:1.5rem;margin:2rem 0 3rem}
.visite-cards__grid{
  display:grid;grid-template-columns:repeat(3, 1fr);gap:1.75rem 1.5rem;
}
.visite-card{
  display:flex;flex-direction:column;
  text-decoration:none;
  transition:transform .25s var(--ease);
}
.visite-card:hover{transform:translateY(-3px)}
.visite-card__media{
  aspect-ratio:16/10;border-radius:18px;overflow:hidden;
  background:var(--cream);
  box-shadow:var(--shadow-1);
}
.visite-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.visite-card h3{
  margin:.85rem 0 0;text-align:center;
  color:var(--terra);font-weight:600;font-size:1rem;line-height:1.35;
  letter-spacing:0;
}
.visite-card p{margin:0;font-size:.95rem;line-height:1.6;color:var(--teal-900)}
/* The 4th card "Découvrir le site" no longer needs full-width — it sits naturally
   in row 2 col 1 of the 3-col grid. Keep the class for backward compat. */
.visite-card--single{}
@media (max-width:980px){.visite-cards__grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.visite-cards__grid{grid-template-columns:1fr}}

/* ========== FOOTER MOBILE (HTML native) ========== */
/* Footer mobile : version cream/cartes blanches pour alleger la page. */
.site-footer__mobile{
  display:none;
  background:var(--cream);color:var(--teal-900);
  margin-top:3rem;
  padding:2.5rem 1rem 4.5rem;
  position:relative;
}
.site-footer__mobile::before{
  content:"";position:absolute;top:0;left:1.5rem;right:1.5rem;
  height:2px;
  background:var(--teal-900);
  border-radius:2px;
}
.footer-m__brand{display:flex;align-items:flex-start;gap:.85rem;margin-bottom:1.25rem;padding:0 .25rem}
.footer-m__brand img{height:54px;width:auto;flex-shrink:0;margin-top:.15rem}
.footer-m__info{flex:1;min-width:0}
.footer-m__addr{
  font-size:.9rem;color:var(--teal-900);line-height:1.4;
  margin:0 0 .35rem;opacity:.9;
}
.footer-m__addr strong{color:var(--teal-900);font-weight:700;opacity:1}
.footer-m__contact{
  margin:0;font-size:.85rem;line-height:1.4;
  display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;
  color:var(--teal-900);
}
.footer-m__contact a{
  color:var(--teal-900);text-decoration:none;
  font-weight:500;
}
.footer-m__contact a:hover{color:var(--terra);text-decoration:underline}
.footer-m__contact .sep{opacity:.5}
.footer-m__addr strong{color:var(--teal-900);font-weight:700}
.footer-m__group{
  background:#fff;
  border-radius:16px;
  padding:1.1rem 1.25rem;
  margin-bottom:1rem;
  box-shadow:0 10px 24px -16px rgba(0,40,35,.4);
}
.footer-m__title{
  font-size:.72rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--terra);
  margin:0 0 .85rem;
}
.footer-m__ctas{display:flex;flex-direction:column;gap:.5rem}
.footer-m__ctas .btn{font-size:.85rem;padding:.6rem 1rem;justify-content:center}
.footer-m__links{display:flex;flex-direction:column;gap:.5rem}
.footer-m__links a{
  color:var(--teal-900);font-size:.92rem;font-weight:500;
  text-decoration:none;
}
.footer-m__links a:hover{color:var(--terra)}
.footer-m__social{display:flex;gap:.6rem;margin-top:.25rem}
.footer-m__social a{
  width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--cream);color:var(--teal-900);
  border:1px solid rgba(0,79,70,.15);
}
.footer-m__social a:hover{background:var(--terra);border-color:var(--terra);color:#fff}
.footer-m__social svg{width:16px;height:16px;fill:currentColor}

/* ========== FOOTER (SVG) ========== */
.site-footer{
  background:var(--cream);
  margin-top:4rem;
  padding:0 var(--gutter) 2rem;
  position:relative;
}
.site-footer__inner{
  position:relative;
  max-width:1248px;
  margin:0 auto;
}
.site-footer__svg{
  display:block;width:100%;height:auto;
  border-radius:24px;
}
.footer-overlay{
  position:absolute;
  border-radius:9999px;
  z-index:2;
}
/* Coordonnees extraites directement des <rect> dans footer.svg (viewBox 96 5231.61 1248 194). */
.footer-overlay--don     { left:33.7%; top:39.7%; width:11.1%; height:15.5% }
.footer-overlay--adhere  { left:46.0%; top:39.7%; width:8.1%;  height:15.5% }
.footer-overlay--legumes { left:55.4%; top:39.7%; width:15.1%; height:15.5% }
.footer-overlay--charte  { left:72.5%; top:39%;   width:13%;   height:14% }
.footer-overlay--cgu     { left:72.5%; top:62%;   width:22%;   height:14% }
.footer-overlay--fb      { left:22.2%; top:62.1%; width:2.6%;  height:16.5%; border-radius:50% }
.footer-overlay--ig      { left:25.6%; top:62.1%; width:2.6%;  height:16.5%; border-radius:50% }

/* ========== RESPONSIVE ========== */
.menu-toggle{
  display:none;
  width:42px;height:42px;border-radius:10px;
  background:rgba(255,255,255,.08);color:var(--on-dark);
  border:1px solid rgba(255,255,255,.14);
  align-items:center;justify-content:center;
  flex-shrink:0;
}
.menu-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.menu-toggle .icon-close{display:none}

/* ========== MOBILE DRAWER (GAJ palette) ========== */
.site-drawer{
  position:fixed;top:0;left:0;bottom:0;
  width:min(340px,86vw);
  background:#a8d4be;
  color:var(--teal-900);
  z-index:200;
  transform:translateX(-100%);
  transition:transform .35s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;
  overflow:hidden;
  box-shadow:6px 0 28px rgba(0,40,35,.4);
}
body.is-menu-open .site-drawer{transform:translateX(0)}
.site-drawer__head{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.25rem 1.25rem;
  border-bottom:1px solid rgba(0,79,70,.2);
  flex-shrink:0;
}
.site-drawer__head .brand__logo{height:38px;width:auto}
.site-drawer__head .brand{color:var(--teal-900)}
.site-drawer__head .brand__name{color:var(--teal-900)}
.site-drawer__close{
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(0,79,70,.12);color:var(--teal-900);
  cursor:pointer;border:0;
  transition:background .2s var(--ease);
}
.site-drawer__close:hover{background:rgba(0,79,70,.22)}
.site-drawer__close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.site-drawer__body{
  flex:1;overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:.25rem 0;
}
.site-drawer__search{padding:1rem 1.25rem;border-bottom:1px solid rgba(0,79,70,.14)}
.site-drawer__search form{
  display:flex;align-items:center;gap:.4rem;
  background:#fff;
  border-radius:var(--r-pill);
  padding:.25rem .25rem .25rem 1rem;
  box-shadow:0 2px 6px -2px rgba(0,40,35,.18);
}
.site-drawer__search input{
  flex:1;border:0;background:transparent;outline:0;
  color:var(--teal-900);font:inherit;font-size:16px;
  padding:.55rem 0;
}
.site-drawer__search input::placeholder{color:rgba(0,79,70,.55)}
.site-drawer__search button{
  width:38px;height:38px;border-radius:50%;
  background:var(--terra);color:#fff;
  display:grid;place-items:center;border:0;cursor:pointer;
  flex-shrink:0;
}
.site-drawer__search button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.site-drawer__nav{list-style:none;margin:0;padding:0}
.site-drawer__nav > li{border-bottom:1px solid rgba(0,79,70,.18)}
.site-drawer__nav a{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.15rem 1.25rem;
  font-weight:700;font-size:1.08rem;
  color:var(--teal-900);
  letter-spacing:-.005em;
  transition:background .2s var(--ease),color .2s var(--ease);
}
.site-drawer__nav a:hover,.site-drawer__nav a:focus{background:rgba(255,255,255,.4);color:var(--terra)}
.site-drawer__nav a.is-active{color:var(--terra)}
.site-drawer__nav .chevron{
  width:18px;height:18px;flex-shrink:0;
  transition:transform .25s var(--ease);
  fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;
  opacity:.8;
}
.site-drawer__nav li.is-open .chevron{transform:rotate(180deg)}
.site-drawer__sub{
  list-style:none;margin:0;padding:0;
  background:rgba(255,255,255,.35);
  max-height:0;overflow:hidden;
  transition:max-height .35s cubic-bezier(.4,0,.2,1);
}
.site-drawer__nav li.is-open .site-drawer__sub{max-height:500px}
.site-drawer__sub a{
  padding:.75rem 1.25rem .75rem 2.25rem;
  font-size:.98rem;font-weight:600;
  color:var(--teal-900);
  border-top:1px solid rgba(0,79,70,.12);
}
.site-drawer__sub a:hover{color:var(--terra);background:rgba(255,255,255,.5)}
.site-drawer__foot{
  flex-shrink:0;
  padding:1.25rem 1.25rem 1.5rem;
  background:var(--teal-900);
  font-size:.92rem;color:#fff;line-height:1.55;
}
.site-drawer__foot p{margin:0 0 .4rem;color:#fff}
.site-drawer__foot strong{color:#fff;font-weight:700;font-size:1rem}
.site-drawer__foot a{color:#fff;font-weight:600;text-decoration:underline;text-decoration-color:rgba(255,255,255,.4);text-underline-offset:3px}
.site-drawer__foot a:hover{color:var(--terra);text-decoration-color:var(--terra)}
.site-drawer__social{display:flex;gap:.5rem;margin-top:.7rem}
.site-drawer__social a{
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.08);color:#fff;
  border:1px solid rgba(255,255,255,.12);
}
.site-drawer__social a:hover{background:var(--terra);border-color:var(--terra)}
.site-drawer__social svg{width:16px;height:16px;fill:currentColor}

.nav-overlay{
  display:none;
  position:fixed;inset:0;
  background:rgba(0,40,35,.55);
  z-index:190;
}
body.is-menu-open .nav-overlay{display:block}

/* ========== MOBILE BOTTOM BAR ========== */
.mobile-bottom{
  display:none;
  position:fixed;bottom:0;left:0;right:0;
  z-index:150;
  background:var(--teal-900);color:var(--on-dark);
  border-top:1px solid rgba(255,255,255,.08);
  padding-bottom:env(safe-area-inset-bottom,0);
  box-shadow:0 -4px 16px rgba(0,40,35,.18);
}
.mobile-bottom__inner{
  display:flex;align-items:center;
  height:56px;padding:0 1.25rem;gap:1rem;
}
.mobile-bottom__menu{
  display:flex;align-items:center;
  background:transparent;border:0;padding:.25rem;cursor:pointer;color:inherit;
}
.mobile-bottom__menu:active{background:rgba(255,255,255,.06);border-radius:8px}
.mobile-bottom__icons{
  display:flex;align-items:center;gap:.4rem;
  flex-shrink:0;color:#fff;
}
.mobile-bottom__icons svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mobile-bottom__sep{
  width:1px;height:24px;
  background:rgba(255,255,255,.18);flex-shrink:0;
}
.mobile-bottom__text{
  font-family:var(--sans);font-weight:700;
  font-size:.95rem;letter-spacing:.01em;
  color:#fff;text-decoration:none;
  flex:1;
}
.mobile-bottom__text:active{opacity:.7}

@media (max-width:980px){
  :root{--gutter:24px}
  .site-header__inner{gap:1rem}
}
@media (max-width:860px){
  body .site-header .nav{display:none !important}
  body .site-header .menu-toggle{display:none !important}
  body .site-header .search-btn{display:none !important}
  body .mobile-bottom{display:block !important}
  body{padding-bottom:56px}
  body.is-menu-open{overflow:hidden}
  .gaj-search__form{flex-direction:column}
  .gaj-search__form .btn{align-self:flex-end}
  body .site-footer{display:none !important}
  body .site-footer__mobile{display:block !important}
}
@media (min-width:861px){
  .site-drawer,.nav-overlay{display:none!important}
}
@media (max-width:860px){
  /* Sur mobile la nav part dans le drawer, le header gauche est vide -> on remplit
     avec le nom + tagline pour rendre la barre vivante. Idem dans le drawer
     (mais sans le slogan, juste le nom sur une ligne avec le logo). */
  .site-header .brand__text,
  .site-drawer .brand__text{display:flex}
  .site-drawer .brand__tagline{display:none}
  /* Drawer header est plus étroit : titre plus compact pour tenir sur 1 ligne. */
  .site-drawer .brand__name{font-size:1.2rem;line-height:1}
  .site-drawer .brand{gap:.6rem}
}
@media (max-width:640px){
  .brand{gap:.7rem;flex:1;min-width:0;align-items:center;justify-content:flex-start}
  .brand__logo{height:68px;flex-shrink:0}
  .brand__text{flex:0 1 auto;min-width:0;text-align:left}
  .site-drawer__head .brand__logo{height:46px}
  .site-header__inner{padding:14px 0;gap:.5rem;justify-content:flex-start;position:relative}
  .site-header .brand{margin-left:2.5rem}
  /* Separateur sous le header : barre courte centree pour isoler du contenu sans casser le fond teal. */
  .site-header__inner::after{
    content:"";position:absolute;left:50%;bottom:0;
    transform:translateX(-50%);
    width:40%;height:1px;
    background:rgba(255,255,255,.18);
  }
  .brand__name{font-size:1.78rem;line-height:1.05;letter-spacing:-.015em}
  .brand__tagline{display:block;font-size:.72rem;line-height:1.2;margin-top:.3rem;max-width:none;white-space:nowrap}
  /* Hero compact mobile : pas de min-height, padding-bottom réduit pour coller au contenu. */
  .page-hero{padding:1rem 0 .5rem}
  .page-hero__inner{min-height:0;gap:1.25rem;padding-top:0}
  .page-hero__title{font-size:clamp(1.5rem,5.6vw,1.9rem);letter-spacing:-.01em}
  .page-hero__intro{font-size:.95rem;line-height:1.5}
  .page-hero__photo,.page-hero__visual{height:auto;aspect-ratio:4/3;border-radius:18px}
  .page-hero__visual{padding:1rem}
  .page-body{padding:2rem 0 1.5rem}
  .page-body__grid{gap:1.5rem}
  .content > section{margin-bottom:2.5rem}
  .content h2{font-size:1.35rem;line-height:1.2}
  .content h3{font-size:1.05rem}
  .content p, .content li{font-size:.98rem;line-height:1.6}
  /* Prevent iOS zoom on focus: form inputs need ≥16px */
  .form-row input,.form-row textarea,.form-row select,
  .gaj-search__form input[type=search]{font-size:16px}
  /* Touch-friendly buttons */
  .btn{padding:.85rem 1.5rem;min-height:44px}
  /* Card padding mobile */
  .form-card{padding:1.25rem 1.1rem}
  .partner-grid{gap:1rem 1rem}
  .partner__logo{height:90px;padding:.5rem .75rem}
  .quote-card{padding:1rem 1.1rem;gap:.75rem}
  .quote-card__mark{font-size:2rem}
  /* Sommaire compact */
  .toc{padding:1.25rem 1.25rem}
  .toc h2{font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;color:var(--terra)}
  .toc__cta{margin-top:1rem}
}

/* ========== ACCESSIBILITY POLISH (v2.0.13) ========== */
/* Focus-visible: keyboard-only outline. Mouse clicks stay clean. */
.btn:focus-visible,
.search-btn:focus-visible,
.menu-toggle:focus-visible,
.site-drawer__close:focus-visible,
.mobile-bottom__inner:focus-visible,
.nav a:focus-visible,
.site-drawer__nav a:focus-visible,
.toc a:focus-visible,
.visite-card:focus-visible,
.news-card:focus-visible,
.footer-overlay:focus-visible,
.footer-m__social a:focus-visible,
.site-drawer__social a:focus-visible,
.form-row input:focus-visible,
.form-row textarea:focus-visible,
.gaj-search__form input:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* <picture> wrapper from gaj_webp_swap: must not break grid layouts */
picture { display: contents; }

/* ========== SEARCH RESULTS ========== */
.search-hero__form{
  display:flex;gap:.5rem;margin-top:1.5rem;max-width:36rem;
}
.search-hero__form input[type=search]{
  flex:1;min-width:0;padding:.85rem 1.1rem;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);border-radius:999px;
  color:#fff;font:inherit;font-size:1rem;
}
.search-hero__form input[type=search]::placeholder{color:rgba(255,255,255,.55)}
.search-hero__form input[type=search]:focus{
  outline:none;background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.45);
}
.search-hero__form .btn{padding:.85rem 1.5rem}

.search-grid{
  display:grid;grid-template-columns:1fr;
  gap:1.25rem;margin-top:0;
}
.search-card{
  background:#fff;border-radius:18px;overflow:hidden;
  box-shadow:var(--shadow-1);
  display:grid;grid-template-columns:240px 1fr;
  align-items:stretch;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.search-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-2)}
.search-card__media{
  display:block;overflow:hidden;background:var(--cream);
  min-height:100%;
}
.search-card__media img{width:100%;height:100%;object-fit:cover;display:block}
.search-card--illu .search-card__media{background:#fff;display:flex;align-items:center;justify-content:center;padding:1rem}
.search-card--illu .search-card__media img{width:auto;height:auto;max-width:100%;max-height:160px;object-fit:contain}
.search-card__body{padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:.4rem;justify-content:center}
@media (max-width:640px){
  .search-card{grid-template-columns:1fr}
  .search-card__media{aspect-ratio:16/10;min-height:0}
}
.search-card__title{margin:.15rem 0 .25rem;font-size:1.1rem;line-height:1.3;color:var(--teal-900)}
.search-card__title a{color:inherit;text-decoration:none}
.search-card__title a:hover{color:var(--terra)}
.search-card__excerpt{margin:0;color:var(--slate-700);font-size:.93rem;line-height:1.55}

.search-empty{
  background:#fff;border-radius:18px;padding:2rem 2.25rem;
  box-shadow:var(--shadow-1);max-width:42rem;margin:1rem auto;
  color:var(--teal-900);
}
.search-empty ul{margin:.65rem 0 0;padding-left:1.2rem;line-height:1.7}
.search-empty a{color:var(--terra);text-decoration:underline}

/* ========== QUOTE CARDS (charte-style content) ========== */
.quote-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:1.25rem;
  margin:1.5rem 0 2rem;
}
.quote-card{
  position:relative;
  margin:0;
  padding:1.5rem 1.5rem 1.25rem 3.25rem;
  background:#fff;
  border:1px solid rgba(0,79,70,.10);
  border-radius:16px;
  box-shadow:0 6px 20px -14px rgba(0,40,35,.2);
}
.quote-card__mark{
  position:absolute;
  top:1rem;left:1.1rem;
  font-family:Georgia,"Times New Roman",serif;
  font-size:2.4rem;line-height:1;
  font-weight:700;
  color:var(--terra);
  pointer-events:none;
}
.quote-card__mark{font-size:0}
.quote-card__mark::before{content:"\201C";font-size:2.4rem}
.quote-card p{
  margin:0;
  color:var(--teal-900);
  line-height:1.55;
  font-size:.98rem;
}
.quote-card p + p{margin-top:.5rem}

/* ========== IMAGE LIGHTBOX ========== */
.gaj-lightbox{
  position:fixed;inset:0;z-index:9999;
  background:rgba(0,30,25,.88);
  display:none;
  align-items:center;justify-content:center;
  padding:3rem 1.5rem;
  cursor:zoom-out;
  animation:gaj-lb-in .18s ease;
}
.gaj-lightbox.is-open{display:flex}
.gaj-lightbox img{
  max-width:min(100%, 1400px);max-height:90vh;
  width:auto;height:auto;
  border-radius:8px;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.6);
  cursor:default;
}
.gaj-lightbox__close{
  position:absolute;top:1.25rem;right:1.5rem;
  width:44px;height:44px;
  background:rgba(255,255,255,.12);color:#fff;
  border:0;border-radius:50%;
  font-size:1.75rem;line-height:1;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s var(--ease);
}
.gaj-lightbox__close:hover{background:rgba(255,255,255,.22)}
@keyframes gaj-lb-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.gaj-lightbox{animation:none}}

/* ========== CONTENT INLINE PHOTO ========== */
/* Float-left figure: text wraps to the right (matches charte maquette). */
.content-photo{
  float:left;
  width:42%;
  max-width:360px;
  margin:.25rem 1.75rem 1rem 0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.content-photo img{display:block;width:100%;height:auto}
/* Clear floats so subsequent h2 / hr starts on its own row. */
.content > h2,
.content > hr{clear:both}
@media (max-width:780px){
  .content-photo{float:none;width:auto;max-width:none;margin:0 0 1.25rem}
}

/* ========== ARTICLE/PAGE CONTENT — typography normalization ==========
   Defends against random author formatting: inline styles, weird fonts,
   colors, sizes. Forces consistent typography on .content blocks. */
.content > * { max-width: none; }
.content p,
.content li,
.content blockquote {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--teal-900);
  margin: 0 0 1rem;
}
.content p:empty { display: none; }
.content h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.6rem; line-height: 1.25;
  color: var(--teal-900);
  margin: 2.5rem 0 1rem;
  letter-spacing: 0;
}
.content h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 1.2rem; line-height: 1.3;
  color: var(--teal-900);
  margin: 1.75rem 0 .75rem;
}
.content ul, .content ol { margin: 0 0 1rem 1.25rem; padding: 0; }
.content li { margin: 0 0 .35rem; }
.content a:not(.btn) { color: var(--terra); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.content a:not(.btn):hover { color: var(--terra-deep); }
.content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.25rem 0; }
.content strong, .content b { font-weight: 700; }

/* === Auto-galerie articles (filtre the_content) === */
.post-gallery{
    display:grid;
    gap:.75rem;
    margin:1.75rem 0;
    grid-template-columns:repeat(2, 1fr);
}
.post-gallery--3{ grid-template-columns:repeat(3, 1fr); }
.post-gallery--5,
.post-gallery--6{ grid-template-columns:repeat(3, 1fr); }
.post-gallery__item{
    margin:0;
    border-radius:14px;
    overflow:hidden;
    box-shadow:var(--shadow-1);
    aspect-ratio:1/1;
    cursor:zoom-in;
    transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-gallery__item:hover{
    transform:translateY(-2px) scale(1.01);
    box-shadow:var(--shadow-2);
}
.post-gallery__item img{
    width:100% !important;
    height:100% !important;
    object-fit:cover;
    object-position:center;
    display:block;
    margin:0 !important;
    border-radius:0 !important;
    max-width:none;
}
@media (max-width: 680px){
    .post-gallery,
    .post-gallery--3,
    .post-gallery--5,
    .post-gallery--6{
        grid-template-columns:repeat(2, 1fr);
        gap:.5rem;
    }
}
