/* =====================================================================
   CDH, Centre pour le Développement de l'Horticulture
   Feuille de style du site public
   Palette : vert ISRA + blanc, accents tirés des cultures (tomate, butternut,
   bissap, chou, patate douce, manioc). Typo : Bricolage Grotesque + Source Sans 3
   ===================================================================== */

:root {
  /* Verts */
  --vert: #1F8A3E;          /* vert du logo ISRA */
  --vert-fonce: #145C2C;
  --foret: #0D3A20;
  --vert-pale: #EDF5EC;
  --vert-ligne: #D3E4D1;

  /* Neutres */
  --blanc: #FFFFFF;
  --encre: #15261B;
  --texte: #2C3D31;
  --gris: #5A6B5F;

  /* Accents « légumes » */
  --feuille: #1F8A3E;
  --chou: #6FA83A;
  --tomate: #C9381F;
  --butternut: #DB7C12;
  --bissap: #8A1E4E;
  --patate: #A9573A;
  --manioc: #7A5A3C;

  --accent: var(--vert);

  /* Typographie */
  --f-titre: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --f-texte: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --t-xs: .875rem;
  --t-s: 1rem;
  --t-m: 1.125rem;
  --t-l: 1.375rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --t-xxl: clamp(2rem, 1.3rem + 3vw, 3.4rem);

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 22px;
  --ombre: 0 1px 2px rgba(13, 58, 32, .06), 0 8px 24px -12px rgba(13, 58, 32, .22);
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 32px);
}

.accent--feuille   { --accent: var(--feuille); }
.accent--chou      { --accent: var(--chou); }
.accent--tomate    { --accent: var(--tomate); }
.accent--butternut { --accent: var(--butternut); }
.accent--bissap    { --accent: var(--bissap); }
.accent--patate    { --accent: var(--patate); }
.accent--manioc    { --accent: var(--manioc); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: var(--t-m);
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--vert-fonce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--vert); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--encre); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--t-xxl); font-weight: 800; }
h2 { font-size: var(--t-xl); font-weight: 700; }
h3 { font-size: var(--t-l); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--butternut); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--foret); color: #fff; padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--gris); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Boutons ---------- */
.btn {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--f-texte); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--vert); color: #fff; }
.btn--primary:hover { background: var(--vert-fonce); color: #fff; }
.btn--light { background: #fff; color: var(--foret); }
.btn--light:hover { background: var(--vert-pale); color: var(--foret); }
.btn--ghost { border-color: var(--vert); color: var(--vert-fonce); background: transparent; }
.btn--ghost:hover { background: var(--vert-pale); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: ""; width: .55em; height: .55em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- En-tête ---------- */
.topbar { background: var(--foret); color: #DCEBDD; font-size: var(--t-xs); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__text { margin: 0; }
.topbar__contact { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar svg { width: 15px; height: 15px; fill: #9FD3A9; }

/* Le signe distinctif du site : une bande « récolte » faite des couleurs des cultures */
.harvest-band { display: none; }
.harvest-band span { flex: 1; }
.harvest-band span:nth-child(1) { background: var(--feuille); flex: 3; }
.harvest-band span:nth-child(2) { background: var(--chou); }
.harvest-band span:nth-child(3) { background: var(--butternut); }
.harvest-band span:nth-child(4) { background: var(--tomate); }
.harvest-band span:nth-child(5) { background: var(--bissap); }
.harvest-band span:nth-child(6) { background: var(--patate); }
.harvest-band span:nth-child(7) { background: var(--manioc); }

.site-header { position: relative; z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--vert-ligne); }
.masthead { max-width: 1480px; display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-titre); font-weight: 800; font-size: 1.6rem; color: var(--vert); letter-spacing: .02em; }
.brand__full { font-size: .82rem; color: var(--gris); max-width: 17em; }

.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; padding: 10px 12px; border-radius: var(--r-s);
  font: 600 1rem/1.2 var(--f-texte); color: var(--encre); text-decoration: none; background: none; border: 0; cursor: pointer;
  position: relative;
}
.site-nav__link svg { width: 20px; height: 20px; fill: currentColor; transition: transform .15s; }
.site-nav__link:hover { color: var(--vert-fonce); background: var(--vert-pale); }
.site-nav__link.is-active { color: var(--vert-fonce); }
.site-nav__link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--vert); }
.site-nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--vert-ligne); border-radius: var(--r-m); box-shadow: var(--ombre); display: none;
}
.site-nav__btn[aria-expanded="true"] + .site-nav__sub { display: block; }
.site-nav__sub a { display: block; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; color: var(--encre); font-weight: 600; }
.site-nav__sub a:hover, .site-nav__sub a[aria-current] { background: var(--vert-pale); color: var(--vert-fonce); }
.site-nav__tools { display: flex; align-items: center; gap: 12px; }

.search-mini { display: flex; align-items: center; border: 1px solid var(--vert-ligne); border-radius: 999px; padding-left: 14px; background: #fff; }
.search-mini input { border: 0; background: none; font: inherit; font-size: 1rem; width: 9em; padding: 8px 0; color: var(--encre); }
.search-mini input:focus { outline: none; }
.search-mini:focus-within { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(31, 138, 62, .2); }
.search-mini button { border: 0; background: none; padding: 8px 12px; cursor: pointer; display: flex; }
.search-mini svg { width: 19px; height: 19px; fill: var(--vert-fonce); }

.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; border: 1px solid var(--vert-ligne); background: #fff; border-radius: 999px; padding: 10px 16px; font: 700 1rem var(--f-texte); color: var(--encre); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--encre); border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.search-icon { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; border: 1px solid var(--vert-ligne); }
.search-icon svg { width: 19px; height: 19px; fill: var(--vert-fonce); }
.search-icon:hover { background: var(--vert-pale); }
@media (min-width: 1021px) {
  .search-mini { display: none; }
  .search-icon { display: grid; }
  .site-nav__link { padding-inline: 10px; }
  .masthead { gap: 18px; }
}
/* Manque de place : le nom complet sous le sigle est masqué (classe posée par site.js) */
.nav-tight .brand__full { display: none; }
.nav-compact .search-icon { display: none; }
@media (max-width: 1020px) {
  .topbar__text { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; border-top: 1px solid var(--vert-ligne); box-shadow: 0 20px 30px -20px rgba(13,58,32,.35);
    display: none; max-height: calc(100vh - 130px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--vert-pale); border-radius: 0; }
  .site-nav__link.is-active::after { display: none; }
  .site-nav__link.is-active { box-shadow: inset 4px 0 0 var(--vert); padding-left: 16px; }
  .site-nav__sub { position: static; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .site-nav__tools { flex-direction: column; align-items: stretch; margin-top: 16px; }
  .search-mini { display: flex; }
  .search-mini input { width: 100%; }
}

/* Menu repliable activé automatiquement quand les liens ne tiennent pas sur une ligne (site.js) */
.nav-compact .topbar__text { display: none; }
.nav-compact .topbar__inner { justify-content: flex-end; }
.nav-compact .nav-toggle { display: inline-flex; }
.nav-compact .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; border-top: 1px solid var(--vert-ligne); box-shadow: 0 20px 30px -20px rgba(13,58,32,.35);
    display: none; max-height: calc(100vh - 130px); overflow-y: auto;
  }
.nav-compact .site-nav.is-open { display: flex; }
.nav-compact .site-nav__list { flex-direction: column; align-items: stretch; }
.nav-compact .site-nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--vert-pale); border-radius: 0; }
.nav-compact .site-nav__link.is-active::after { display: none; }
.nav-compact .site-nav__link.is-active { box-shadow: inset 4px 0 0 var(--vert); padding-left: 16px; }
.nav-compact .site-nav__sub { position: static; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
.nav-compact .site-nav__tools { flex-direction: column; align-items: stretch; margin-top: 16px; }
.nav-compact .search-mini { display: flex; }
.nav-compact .search-mini input { width: 100%; }
@media (max-width: 480px) {
  .brand__full { display: none; }
  .topbar__contact { gap: 14px; font-size: .8rem; }
}

/* ---------- Hero / slider (classes et variables générées selon les paramètres de l'administration) ----------
   --speed : durée de la transition   --ease : courbe de mouvement   --slide-time : durée des mouvements lents de l'image
   Le script place « is-active » sur la diapositive affichée et « is-leaving » sur celle qui s'en va. */
.hero { --overlay: .2; --speed: 1500ms; --ease: cubic-bezier(.45, 0, .25, 1); --slide-time: 10s; --hero-h: clamp(460px, 72vh, 640px);
        position: relative; background: var(--foret); color: #fff; overflow: hidden; }
.hero--h-small  { --hero-h: clamp(360px, 52vh, 440px); }
.hero--h-large  { --hero-h: clamp(540px, 85vh, 820px); }
.hero--h-full   { --hero-h: max(520px, calc(100svh - 128px)); }
.hero__viewport { overflow: hidden; }
.hero__track { display: grid; }
.hero__slide {
  grid-area: 1 / 1; position: relative; min-height: var(--hero-h); display: flex; align-items: flex-end; overflow: hidden;
  opacity: 0; visibility: hidden; z-index: 0;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), clip-path var(--speed) var(--ease), visibility 0s linear var(--speed);
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), clip-path var(--speed) var(--ease), visibility 0s; }
/* L'image qui s'en va reste visible dessous pendant toute la transition : pas de « trou » sombre au milieu d'un fondu lent */
.hero__slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }

/* Le texte de l'image qui s'en va s'efface vite : pas de texte en double pendant un fondu lent */
.hero__slide.is-leaving .hero__panel { opacity: 0; transition: opacity calc(var(--speed) * .35) ease-out; }
.hero--slide .hero__slide.is-leaving .hero__panel, .hero--slide_up .hero__slide.is-leaving .hero__panel { opacity: 1; transition: none; }

/* Glissement horizontal : toute la bande se déplace */
.hero--slide .hero__track { display: flex; transition: transform var(--speed) var(--ease); }
.hero--slide .hero__slide { flex: 0 0 100%; opacity: 1; visibility: visible; transition: none; z-index: auto; }

/* Glissement vertical : la nouvelle image monte, l'ancienne sort par le haut */
.hero--slide_up .hero__slide { opacity: 1; transform: translateY(100%); }
.hero--slide_up .hero__slide.is-active { transform: none; }
.hero--slide_up .hero__slide.is-leaving { transform: translateY(-100%); transition: transform var(--speed) var(--ease); }

/* Rideau : la nouvelle image se dévoile de gauche à droite */
.hero--wipe .hero__slide { opacity: 1; clip-path: inset(0 100% 0 0); }
.hero--wipe .hero__slide.is-active, .hero--wipe .hero__slide.is-leaving { clip-path: inset(0 0 0 0); }

/* Mouvements lents de l'image pendant son affichage (le mouvement continue pendant la sortie) */
.hero--zoom .hero__slide:is(.is-active, .is-leaving) .hero__img { animation: hero-zoom-in var(--slide-time) linear both; }
.hero--zoom_out .hero__slide:is(.is-active, .is-leaving) .hero__img { animation: hero-zoom-out var(--slide-time) linear both; }
.hero--pan .hero__slide:is(.is-active, .is-leaving) .hero__img { animation: hero-pan var(--slide-time) linear both; }
@keyframes hero-zoom-in { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes hero-zoom-out { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes hero-pan { from { transform: scale(1.12) translateX(-3.5%); } to { transform: scale(1.12) translateX(3.5%); } }

/* Animation du texte à l'arrivée de chaque diapositive */
.hero--text-fade .hero__slide.is-active .hero__panel,
.hero--text-rise .hero__slide.is-active .hero__panel { animation: hero-text-fade calc(var(--speed) * .6 + 500ms) var(--ease) both; animation-delay: calc(var(--speed) * .35); }
.hero--text-rise .hero__slide.is-active .hero__panel { animation-name: hero-text-rise; }
@keyframes hero-text-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-text-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* Barre de progression : temps restant avant la diapositive suivante */
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .22); z-index: 4; }
.hero__progress span { display: block; height: 100%; background: #fff; transform-origin: left center; transform: scaleX(0); animation: hero-progress 7s linear forwards; }
.hero.is-paused .hero__progress span { animation-play-state: paused; }
.hero.is-ended .hero__progress { display: none; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: rgb(13 58 32 / var(--overlay)); }
.hero__inner { position: relative; z-index: 2; padding-block: 48px 104px; display: flex; }
.hero__panel {
  max-width: 600px; background: var(--foret); padding: clamp(24px, 4vw, 40px); border-radius: 0 var(--r-l) var(--r-l) 0;
  border-left: 8px solid var(--vert); box-shadow: 0 24px 50px -24px rgba(0,0,0,.5);
}
.hero__title { color: #fff; font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3rem); font-weight: 800; margin-bottom: .35em; }
.hero__text { font-size: var(--t-m); color: #DCEBDD; margin-bottom: 1.4em; max-width: 46ch; }

/* Position du texte */
.pos--center .hero__inner, .hero__controls.pos--center { justify-content: center; }
.pos--right .hero__inner, .hero__controls.pos--right { justify-content: flex-end; }
.pos--center .hero__panel { text-align: center; border-left: 0; border-top: 0; border-radius: var(--r-l); }
.pos--center .hero__text { margin-inline: auto; }
.pos--right .hero__panel { border-left: 0; border-right: 8px solid var(--vert); border-radius: var(--r-l) 0 0 var(--r-l); }

/* Style « texte directement sur l'image » */
.hero--panel-none .hero__panel { background: none; box-shadow: none; border: 0; border-radius: 0; padding-inline: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.hero--panel-none .hero__panel::before { content: ""; display: block; width: 72px; height: 6px; border-radius: 6px; background: var(--vert); margin-bottom: 20px; }
.hero--panel-none .pos--center .hero__panel::before { margin-inline: auto; }
.hero--panel-none .pos--right .hero__panel::before { margin-left: auto; }
.hero--panel-none .pos--right .hero__panel { text-align: right; }
.hero--panel-none .pos--right .hero__text { margin-left: auto; }
.hero--panel-none .hero__text { color: #fff; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.hero__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--foret); display: grid; place-items: center; cursor: pointer; }
.hero__btn:hover { background: #fff; }
.hero__btn svg { width: 24px; height: 24px; fill: currentColor; }
.hero__pause .i-play { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__dots { display: flex; gap: 8px; padding: 0 6px; }
.hero__dot { width: 34px; height: 8px; border-radius: 8px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: background-color .2s, width .2s; }
.hero__dot[aria-selected="true"] { background: var(--vert); width: 56px; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 640px) {
  .hero__slide { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero__img { position: relative; height: 240px; }
  .hero__slide::after { display: none; }
  .hero__inner { padding: 0 0 88px; }
  .hero__panel, .pos--center .hero__panel, .pos--right .hero__panel { border: 0; border-radius: 0; max-width: none; box-shadow: none; }
  .hero--panel-none .hero__panel { border: 0; padding-top: 24px; }
  .hero__controls, .hero__controls.pos--center, .hero__controls.pos--right { bottom: 20px; justify-content: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--vert-pale); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; }

.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; margin-bottom: 48px; }
.intro__title { font-size: var(--t-xxl); font-weight: 800; color: var(--vert-fonce); margin: 0; }
.intro__body p { font-size: 1.2rem; }
.missions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--vert-ligne); }
.mission { padding: 28px 28px 8px 0; border-top: 3px solid var(--vert); margin-top: -3px; }
.mission + .mission { padding-left: 28px; border-left: 1px solid var(--vert-ligne); }
.mission h3 { font-size: 1.25rem; color: var(--encre); }
.mission p { color: var(--gris); margin: 0 0 1em; }
@media (max-width: 820px) {
  .intro__grid, .missions { grid-template-columns: 1fr; }
  .mission + .mission { padding-left: 0; border-left: 0; }
}

/* Cultures */
.crops { background: var(--vert-pale); }
.crops__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .crops__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .crops__grid { grid-template-columns: 1fr; } }
.crop { position: relative; background: #fff; border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--vert-ligne); }
.crop img, .crop__placeholder { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: #fff; }
.crop__placeholder { display: grid; place-items: center; padding: 16px; text-align: center; background: #F3F7F0; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--vert-fonce); font-family: var(--f-titre); font-weight: 800; font-size: 1.5rem; }
.crop__label { padding: 14px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.crop h3 { font-size: 1.15rem; margin: 0 0 .2em; }
.crop h3 a { color: var(--encre); text-decoration: none; }
.crop h3 a::after { content: ""; position: absolute; inset: 0; }
.crop p { font-size: 1rem; color: var(--gris); margin: 0; }
.crop__more { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .95rem; color: var(--vert-fonce); }
.crop--link { transition: box-shadow .2s, transform .2s; }
.crop--link:hover { box-shadow: 0 1px 0 var(--vert-ligne), 0 14px 28px -18px rgba(13, 58, 32, .45); }
.crop--link:hover h3 a { color: var(--vert-fonce); text-decoration: underline; }
.crop--link:focus-within { outline: 3px solid var(--butternut); outline-offset: 2px; }

/* Actualités */
.news__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.news__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.news__side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .news__grid { grid-template-columns: 1fr; } }

/* ---------- Cartes article ---------- */
.card { display: flex; flex-direction: column; background: #fff; position: relative; }
.card__media { border-radius: var(--r-m); overflow: hidden; background: var(--vert-pale); aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: block; width: 100%; height: 100%; background: var(--vert-pale); }
.card__placeholder--tomate { border-color: var(--tomate); } .card__placeholder--butternut { border-color: var(--butternut); }
.card__placeholder--bissap { border-color: var(--bissap); } .card__placeholder--patate { border-color: var(--patate); }
.card__placeholder--chou { border-color: var(--chou); } .card__placeholder--manioc { border-color: var(--manioc); }
.card__body { padding-top: 14px; }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: var(--t-xs); color: var(--gris); margin-bottom: 8px; }
.card__meta .chip { position: relative; z-index: 2; }
.card__title { font-size: 1.3rem; margin: 0 0 .35em; }
.card__title a { color: var(--encre); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--vert-fonce); text-decoration: underline; }
.card__excerpt { color: var(--gris); font-size: 1.02rem; margin: 0; }
.card--lead .card__media { aspect-ratio: 16 / 10; }
.card--lead .card__title { font-size: var(--t-xl); }
.card--compact { flex-direction: row; gap: 16px; align-items: center; }
.card--compact .card__media { flex: 0 0 38%; aspect-ratio: 4 / 3; }
.card--compact .card__body { padding-top: 0; }
.card--compact .card__title { font-size: 1.12rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 28px; }

/* Puces de catégorie */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; line-height: 1.4;
  text-decoration: none; background: var(--chip, var(--vert)); color: #fff; border: 2px solid var(--chip, var(--vert));
}
.chip:hover { color: #fff; filter: brightness(.92); }
.chip--feuille { --chip: var(--feuille); } .chip--chou { --chip: #4F7F23; } .chip--tomate { --chip: var(--tomate); }
.chip--butternut { --chip: #B05F05; } .chip--bissap { --chip: var(--bissap); } .chip--patate { --chip: var(--patate); } .chip--manioc { --chip: var(--manioc); }
.chip--outline { background: #fff; color: var(--chip, var(--vert-fonce)); border-color: var(--vert-ligne); }
.chip--outline:hover { color: var(--chip, var(--vert-fonce)); border-color: var(--chip, var(--vert)); filter: none; }
.chip--outline[aria-current] { background: var(--chip, var(--vert-fonce)); border-color: var(--chip, var(--vert-fonce)); color: #fff; }
.chip__count { font-weight: 600; opacity: .75; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

/* Bande d'appel à l'action */
.cta-band { background: var(--vert); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: var(--vert-fonce); }
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 44px; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #E3F2E5; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--vert-pale); border-bottom: 1px solid var(--vert-ligne); }
.page-hero__inner { padding-block: 36px 44px; }
.page-hero h1 { color: var(--foret); margin-bottom: .25em; max-width: 22ch; }
.page-hero__lead { font-size: 1.25rem; color: var(--texte); max-width: 60ch; margin: 0; }
.page-hero--image { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.page-hero--image .page-hero__inner { max-width: calc(var(--container) / 2); margin-left: auto; padding-right: 40px; display: flex; flex-direction: column; justify-content: center; }
.page-hero__media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
@media (max-width: 820px) {
  .page-hero--image { grid-template-columns: 1fr; }
  .page-hero--image .page-hero__inner { max-width: none; padding-right: var(--gutter); }
  .page-hero__media img { max-height: 260px; }
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 18px; padding: 0; font-size: var(--t-xs); color: var(--gris); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: #9BB09D; }
.breadcrumb a { color: var(--vert-fonce); }

/* Contenu éditorial */
.prose { max-width: 70ch; font-size: 1.15rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; margin-bottom: .3em; color: var(--vert-fonce); }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; margin-bottom: .2em; }
.prose .lead { font-size: 1.32rem; line-height: 1.55; color: var(--encre); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose ul li::marker { color: var(--vert); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--butternut); font-size: 1.25rem; color: var(--encre); }
.prose img { border-radius: var(--r-m); }
.prose iframe, .prose .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-m); }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--vert-ligne); padding: 8px 12px; text-align: left; }
.prose th { background: var(--vert-pale); }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose .ql-size-large { font-size: 1.3em; } .prose .ql-size-small { font-size: .85em; }
.prose li[data-list="ordered"] { list-style-type: decimal; } .prose li[data-list="bullet"] { list-style-type: disc; }

/* Article */
.article__head { padding-block: 36px 28px; }
.article__head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--gris); font-size: var(--t-xs); }
.article__lead { font-size: 1.3rem; color: var(--encre); max-width: 60ch; }
.article__cover { margin: 0 auto 40px; }
.article__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-l); }
.article__foot { margin: 48px 0 72px; padding-top: 24px; border-top: 1px solid var(--vert-ligne); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share > span { font-weight: 700; margin-right: 4px; }
.share a, .share button { font: 600 .95rem var(--f-texte); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--vert-ligne); background: #fff; color: var(--vert-fonce); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--vert); background: var(--vert-pale); }

/* Onglets médiathèque */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--vert-ligne); margin-bottom: 24px; }
.tabs__tab { padding: 12px 20px; font-weight: 700; text-decoration: none; color: var(--gris); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tabs__tab span { font-weight: 600; color: var(--gris); font-size: .9em; margin-left: 4px; }
.tabs__tab[aria-current] { color: var(--vert-fonce); border-color: var(--vert); }
.gallery { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery__item { display: block; position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--vert-pale); }
.gallery__item img { width: 100%; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(13,58,32,.85)); }
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
.video__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-m); overflow: hidden; margin-bottom: 12px; }
.video__frame iframe, .video__frame video { width: 100%; height: 100%; border: 0; }
.video h3 { font-size: 1.15rem; margin: 0 0 .2em; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 30, 16, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: var(--r-s); }
.lightbox figcaption { color: #fff; margin-top: 14px; text-align: center; max-width: 70ch; }
.lightbox__close, .lightbox__nav { position: fixed; border: 0; background: rgba(255,255,255,.95); color: var(--foret); width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; }
.lightbox__next { right: 12px; top: 50%; }

/* Formulaires publics */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { background: var(--vert-pale); border-radius: var(--r-l); padding: 28px; border-top: 6px solid var(--vert); }
.contact__info dl { margin: 0; }
.contact__info dt { font-weight: 700; color: var(--encre); margin-top: 16px; }
.contact__info dd { margin: 2px 0 0; }
.map { margin-top: 20px; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--encre); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--gris); }
.field__hint { font-size: .95rem; color: var(--gris); margin: -2px 0 8px; }
.field input, .field select, .field textarea, .search-big input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--encre); background: #fff; padding: 12px 14px;
  border: 1.5px solid #AFC4AF; border-radius: var(--r-s); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .search-big input:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(31,138,62,.18); }
.field [aria-invalid="true"] { border-color: var(--tomate); }
.field__error { color: var(--tomate); font-weight: 600; font-size: .95rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: var(--r-s); margin-bottom: 20px; border-left: 5px solid var(--vert); background: var(--vert-pale); color: var(--encre); }
.notice--error { border-color: var(--tomate); background: #FCEDEA; }
.notice--warn { border-color: var(--butternut); background: #FDF3E5; }
.search-big { display: flex; gap: 12px; margin-top: 16px; max-width: 720px; }
.empty { text-align: center; padding: 48px 20px; background: var(--vert-pale); border-radius: var(--r-l); }
.results { list-style: none; padding: 0; margin: 24px 0 0; }
.results li { padding: 18px 0; border-bottom: 1px solid var(--vert-ligne); }
.results a { font-family: var(--f-titre); font-weight: 700; font-size: 1.25rem; display: block; margin: 2px 0 4px; }
.results p { margin: 0; color: var(--gris); }
.results__type { font-size: var(--t-xs); color: var(--gris); }
.notfound { text-align: center; }
.notfound__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Pagination */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 48px 0 0; padding: 0; }
.pagination a { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; text-decoration: none; font-weight: 700; color: var(--vert-fonce); border: 1px solid var(--vert-ligne); }
.pagination a:hover { background: var(--vert-pale); }
.pagination a[aria-current] { background: var(--vert); color: #fff; border-color: var(--vert); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--foret); color: #CFE2D2; font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; font-size: 1.2rem !important; }
.site-footer__brand img { background: #fff; border-radius: 8px; padding: 4px; }
.site-footer a { color: #fff; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li + li { margin-top: 8px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; color: #fff; }
.site-footer address { font-style: normal; }
.site-footer address p { margin: 0 0 8px; }
.site-footer .muted { color: #A6C2AB; }
.socials { list-style: none; display: flex; gap: 10px; padding: 0; margin: 16px 0 0; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.socials a:hover { background: var(--vert); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: var(--t-xs); }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Équipe ---------- */
.team-jump { margin: 22px 0 0; }
.team-heading { font-size: var(--t-xl); color: var(--vert-fonce); }
.team-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.team-head h2 { margin: 0; }
.team-head p { margin: 0; color: var(--gris); max-width: 62ch; }
@media (max-width: 820px) { .team-head { grid-template-columns: 1fr; } }

.avatar { display: grid; place-items: center; width: 100%; height: 100%; background: #DCEADA; color: var(--vert-fonce); font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.6rem); }
.avatar--feuille { --accent: var(--feuille); } .avatar--chou { --accent: var(--chou); } .avatar--tomate { --accent: var(--tomate); }
.avatar--butternut { --accent: var(--butternut); } .avatar--bissap { --accent: var(--bissap); } .avatar--patate { --accent: var(--patate); } .avatar--manioc { --accent: var(--manioc); }

/* Direction : la personne est mise en avant, photo et texte côte à côte */
.leader { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.leader + .leader { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--vert-ligne); }
.leader__photo { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; background: var(--vert-pale); position: relative; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader__name { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 800; margin-bottom: .15em; }
.leader__role { font-size: 1.3rem; font-weight: 700; color: var(--vert); margin: 0 0 18px; }
.leader__bio { font-size: 1.15rem; line-height: 1.7; max-width: 62ch; margin-bottom: 16px; }
.leader--secondary { grid-template-columns: 160px minmax(0, 1fr); }
.leader--secondary .leader__name { font-size: 1.5rem; }
.leader--secondary .leader__photo::after { display: none; }
@media (max-width: 700px) {
  .leader, .leader--secondary { grid-template-columns: 1fr; }
  .leader__photo { max-width: 280px; }
}

/* Équipe de recherche : cartes avec photo */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 24px; }
.person { background: #fff; border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--vert-ligne); }
.person__photo { aspect-ratio: 1 / 1; background: var(--vert-pale); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person__body { padding: 18px 20px 22px; }
.person__name { font-size: 1.25rem; margin: 0 0 .15em; }
.person__role { font-weight: 700; color: var(--vert-fonce); margin: 0 0 6px; }
.person__field { font-size: 1rem; color: var(--gris); margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--butternut); }
.person__bio { font-size: 1rem; color: var(--texte); margin: 0 0 10px; }
.person__more summary { cursor: pointer; list-style: none; }
.person__more summary::-webkit-details-marker { display: none; }
.person__more[open] summary .person__bio { display: none; }
.person__toggle { font-weight: 700; color: var(--vert-fonce); text-decoration: underline; font-size: .95rem; }
.person__toggle::after { content: "Lire la suite"; }
.person__more[open] .person__toggle::after { content: "Réduire"; }
.person__more[open] summary { margin-bottom: 8px; }
.person__mail { font-size: .95rem; word-break: break-all; }

/* Personnel d'appui : liste compacte */
.staff { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 24px; }
.staff__item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--vert-ligne); }
.staff__photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--vert-pale); }
.staff__photo img { width: 100%; height: 100%; object-fit: cover; }
.staff__photo .avatar { font-size: 1.3rem; border-bottom-width: 4px; }
.staff__name { font-size: 1.1rem; margin: 0; }
.staff__role { margin: 0; color: var(--gris); font-size: 1rem; }
.staff .person__field { margin: 4px 0 0; font-size: .92rem; }

/* ---------- Pastilles de famille ---------- */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; background: var(--vert); flex-shrink: 0; vertical-align: middle; }
.dot--feuille { background: var(--feuille); } .dot--chou { background: var(--chou); } .dot--tomate { background: var(--tomate); }
.dot--butternut { background: var(--butternut); } .dot--bissap { background: var(--bissap); } .dot--patate { background: var(--patate); } .dot--manioc { background: var(--manioc); }
.section__lead { color: var(--gris); max-width: 62ch; margin: -14px 0 28px; }

/* ---------- Marchés et prix ---------- */
.trend { display: inline-block; font-size: .88rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend--up { color: #A3301A; }
.trend--down { color: var(--vert-fonce); }
.trend--stable, .trend--none { color: var(--gris); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.unit { color: var(--gris); font-size: .9em; font-weight: 400; white-space: nowrap; }

.market-home__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .market-home__grid { grid-template-columns: minmax(0, 1fr); } }
.market-home__news h3 { font-size: 1.2rem; margin-bottom: 16px; }
.market-home__news .card + .card { margin-top: 18px; }
.market-home__news .link-arrow { margin-top: 18px; }

/* L'ardoise des prix : le tableau que l'on voit sur l'étal */
.board { background: #fff; border-radius: var(--r-l); box-shadow: var(--ombre); overflow: hidden; }
.board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 18px 24px 10px; margin: 0; color: var(--gris); font-size: .98rem; }
.board__market { font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; color: var(--encre); }
.board__table { width: 100%; border-collapse: collapse; }
.board__table th, .board__table td { padding: 11px 24px; border-top: 1px solid var(--vert-ligne); }
.board__table thead th { font-size: .82rem; font-weight: 700; color: var(--gris); border-top: 0; padding-top: 4px; padding-bottom: 8px; text-align: left; }
.board__table thead th.num { text-align: right; }
.board__table tbody th { font-weight: 600; color: var(--encre); text-align: left; }
.board__table td strong { font-family: var(--f-titre); font-size: 1.3rem; font-weight: 800; color: var(--encre); }
.board__note { padding: 12px 24px 18px; margin: 0; font-size: .9rem; color: var(--gris); border-top: 1px solid var(--vert-ligne); }
.board__empty { padding: 32px 24px; }
.board__empty p:last-child { margin: 0; color: var(--gris); }
@media (max-width: 520px) {
  .board__table th, .board__table td { padding: 10px 14px; }
  .board__head, .board__note { padding-inline: 14px; }
  .board__table td strong { font-size: 1.12rem; }
  .board__table .unit { display: block; }
}

.market-updated { margin: 16px 0 0; }
.market-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 1000px) { .market-page { grid-template-columns: minmax(0, 1fr); } }
.market-page__side h2 { font-size: 1.3rem; margin-bottom: 16px; }
.market-page__side .card + .card { margin-top: 18px; }
.market-page__side .link-arrow { margin-top: 18px; }
.market-title { font-size: 1.6rem; margin-bottom: 8px; }
.market-title span { font-weight: 500; color: var(--gris); }
.table-scroll { overflow-x: auto; border: 1px solid var(--vert-ligne); border-radius: var(--r-m); background: #fff; margin-top: 12px; }
.table-scroll:focus-visible { outline: 3px solid var(--butternut); }
.price-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.price-table th, .price-table td { padding: 12px 16px; border-bottom: 1px solid var(--vert-ligne); text-align: left; vertical-align: middle; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table thead th { background: var(--vert-pale); font-size: .88rem; color: var(--vert-fonce); font-weight: 700; white-space: nowrap; }
.price-table thead th.num, .price-table td.num { text-align: right; }
.price-table thead small { display: block; font-weight: 500; color: var(--gris); }
.price-table tbody th { font-weight: 600; color: var(--encre); white-space: nowrap; }
.price-table td strong { font-family: var(--f-titre); font-size: 1.2rem; font-weight: 800; color: var(--encre); }
.price-table--matrix td { white-space: nowrap; }
.price-table--matrix td .trend { display: block; font-size: .8rem; }
.price-table--matrix tbody th { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--vert-ligne); }
.price-table--matrix thead th:first-child { position: sticky; left: 0; z-index: 2; }
.cell-date { display: block; color: var(--gris); font-size: .78rem; }
.market-note { font-size: .95rem; color: var(--gris); margin-top: 14px; max-width: 70ch; }

/* ---------- Fiches techniques ---------- */
.sheets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.sheet-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--vert-ligne); border-radius: var(--r-m); overflow: hidden; }
.sheet-card:hover { border-color: var(--accent); }
.sheet-card__media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--vert-pale); }
.sheet-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-card__crop { display: grid; place-items: center; height: 100%; font-family: var(--f-titre); font-weight: 800; font-size: 1.6rem; color: var(--vert-fonce); padding: 12px; text-align: center; }
.sheet-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sheet-card__family { font-size: .88rem; font-weight: 700; color: var(--accent); margin: 0 0 4px; filter: brightness(.8); }
.sheet-card__title { font-size: 1.22rem; margin: 0 0 12px; }
.sheet-card__title a { color: var(--encre); text-decoration: none; }
.sheet-card__title a::after { content: ""; position: absolute; inset: 0; }
.sheet-card__title a:hover { text-decoration: underline; color: var(--vert-fonce); }
.sheet-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--vert-ligne); }
.sheet-card__facts dt { font-size: .8rem; color: var(--gris); }
.sheet-card__facts dd { margin: 0; font-weight: 700; color: var(--encre); font-size: .95rem; }
.sheet-card__pdf { margin: 12px 0 0; font-size: .88rem; font-weight: 700; color: var(--tomate); }
.sheet-card__pdf::before { content: "PDF"; display: inline-block; font-size: .7rem; background: var(--tomate); color: #fff; border-radius: 4px; padding: 1px 5px; margin-right: 8px; vertical-align: 1px; }

.sheet__head { background: var(--vert-pale); border-bottom: 1px solid var(--vert-ligne); }
.sheet__head-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 32px 44px; }
.sheet__head-grid > :only-child { grid-column: 1 / -1; }
.sheet__crop { font-weight: 700; color: var(--vert-fonce); margin: 0 0 6px; padding-left: 12px; border-left: 5px solid var(--vert); }
.sheet__head h1 { color: var(--foret); font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.sheet__lead { font-size: 1.22rem; max-width: 56ch; }
.sheet__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn__meta { font-weight: 400; opacity: .85; }
.sheet__cover { margin: 0; }
.sheet__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); }
.sheet__body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 48px; }
.sheet__body > .prose:only-child { grid-column: 1 / -1; }
.sheet__facts { position: sticky; top: 24px; background: #fff; border: 2px solid var(--vert-ligne); border-radius: var(--r-l); padding: 22px 24px; }
.sheet__facts h2 { font-size: 1.2rem; margin-bottom: 14px; }
.sheet__facts dl { margin: 0; }
.sheet__facts dl > div + div { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--vert-ligne); }
.sheet__facts dt { font-size: .88rem; color: var(--gris); }
.sheet__facts dd { margin: 2px 0 0; font-family: var(--f-titre); font-weight: 700; font-size: 1.15rem; color: var(--encre); }
.sheet__facts-note { font-size: .82rem; color: var(--gris); margin: 16px 0 0; }
.sheet__foot { border-top: 1px solid var(--vert-ligne); padding-block: 24px 64px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sheet__foot p { margin: 0; }
@media (max-width: 860px) {
  .sheet__head-grid, .sheet__body { grid-template-columns: minmax(0, 1fr); }
  .sheet__facts { position: static; }
  .sheet__cover { order: -1; }
}

/* ---------- Images introuvables (marquées par img-guard.js) ---------- */
img.is-broken { display: none !important; }
.has-broken-img { background: var(--vert-pale); }
.hero .has-broken-img, .hero__slide.has-broken-img { background: var(--foret); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  /* Slider : un fondu n'est pas un mouvement. Il garde la vitesse choisie dans l'administration ;
     les effets en mouvement (glissements, zoom, travelling) sont remplacés par un fondu dans site.js. */
  .hero .hero__slide { transition-duration: var(--speed) !important; }
  .hero .hero__slide.is-leaving { transition-duration: 0s !important; }
  .hero .hero__slide.is-leaving .hero__panel { transition-duration: calc(var(--speed) * .35) !important; }
  .hero--text-fade .hero__slide.is-active .hero__panel { animation-duration: calc(var(--speed) * .6 + 500ms) !important; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .hero__controls, .share, .cta-band, .breadcrumb, .sheet__actions, .sheet__foot, .section--tint { display: none; }
  .sheet__head { background: none; border: 0; }
  .sheet__head-grid, .sheet__body { grid-template-columns: 1fr; padding-block: 0 12px; gap: 12px; }
  .sheet__cover { display: none; }
  .sheet__facts { position: static; border-width: 1px; }
  .prose { max-width: none; font-size: 11pt; }
  body { font-size: 12pt; }
}
@media (max-width: 560px) {
  .people { gap: 16px; }
  .person { flex-direction: row; align-items: flex-start; }
  .person__photo { flex: 0 0 104px; aspect-ratio: 1 / 1; }
  .person__photo .avatar { font-size: 1.5rem; }
  .person__body { padding: 14px 16px 16px; }
  .person__name { font-size: 1.12rem; }
}

/* =====================================================================
   Accueil : mot du Directeur, vidéos, galerie, témoignages, animations
   ===================================================================== */

/* Apparition au défilement (uniquement si le JavaScript est actif) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, .61, .36, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal .crops__grid > li,
.js .reveal .sheets-grid > *,
.js .reveal .mosaic > li,
.js .reveal .testimonials__list > li,
.js .reveal .hvideo { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
.js .reveal.is-visible .crops__grid > li,
.js .reveal.is-visible .sheets-grid > *,
.js .reveal.is-visible .mosaic > li,
.js .reveal.is-visible .testimonials__list > li,
.js .reveal.is-visible .hvideo { opacity: 1; transform: none; }
.js .reveal.is-visible :is(.crops__grid, .sheets-grid, .mosaic, .testimonials__list, .videos__grid) > :nth-child(2) { transition-delay: .08s; }
.js .reveal.is-visible :is(.crops__grid, .sheets-grid, .mosaic, .testimonials__list, .videos__grid) > :nth-child(3) { transition-delay: .16s; }
.js .reveal.is-visible :is(.crops__grid, .sheets-grid, .mosaic, .testimonials__list, .videos__grid) > :nth-child(4) { transition-delay: .24s; }
.js .reveal.is-visible :is(.crops__grid, .sheets-grid, .mosaic, .testimonials__list, .videos__grid) > :nth-child(5) { transition-delay: .32s; }
.js .reveal.is-visible :is(.crops__grid, .sheets-grid, .mosaic, .testimonials__list, .videos__grid) > :nth-child(n+6) { transition-delay: .4s; }

/* Petits mouvements au survol */
.mission { transition: transform .3s ease; }
.mission:hover { transform: translateY(-4px); }
.crop { transition: transform .3s ease, box-shadow .3s ease; }
.crop:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 58, 32, .14); }
.crop img { transition: transform .6s ease; }
.crop:hover img { transform: scale(1.05); }

/* Mot du Directeur */
.director { background: #fff; }
.director__inner { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.director__photo { margin: 0; position: relative; justify-self: center; width: min(240px, 60vw); aspect-ratio: 1; }
.director__photo img, .director__photo .avatar { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 0; box-shadow: 0 10px 30px rgba(13, 58, 32, .15); }
.director__body h2 { margin-top: 0; }
.director__text { margin: 0; padding: 0 0 0 28px; border-left: 4px solid var(--vert); font-size: var(--t-m); color: var(--texte); position: relative; }
.director__text p { margin: 0 0 .9em; }
.director__sign { margin: 18px 0 0 32px; display: flex; flex-direction: column; }
.director__sign strong { font-family: var(--f-titre); color: var(--vert-fonce); font-size: 1.15rem; }
.director__sign span { color: var(--gris); }
@keyframes cdh-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .director__inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .director__photo { width: 170px; }
}

/* Vidéos */
.home-videos { background: var(--foret); color: #fff; position: relative; overflow: hidden; }
.home-videos::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(111, 168, 58, .28), transparent 65%); pointer-events: none; }
.home-videos .container { position: relative; }
.home-videos h2 { color: #fff; }
.home-videos .section__lead { color: rgba(255, 255, 255, .8); margin: 6px 0 0; }
.home-videos .link-arrow { color: #CFE8C6; }
.videos__grid { display: grid; gap: 24px; }
.videos__grid--2, .videos__grid--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.videos__grid--3 .hvideo--main { grid-row: span 2; }
.videos__grid--2 .hvideo--main { grid-row: span 1; }
.hvideo { margin: 0; }
.hvideo figcaption { margin-top: 10px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.hvideo--main figcaption { font-family: var(--f-titre); font-size: var(--t-m); }
.hvideo__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: linear-gradient(135deg, var(--vert-fonce), #1d4d2c); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.hvideo__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; }
.hvideo__frame:hover img { transform: scale(1.04); filter: brightness(.85); }
.hvideo__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hvideo__play { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.hvideo__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--tomate); position: relative; box-shadow: 0 0 0 0 rgba(201, 56, 31, .6); animation: cdh-pulse 2.2s ease-out infinite; transition: transform .25s ease; }
.hvideo:not(.hvideo--main) .hvideo__icon { width: 56px; height: 56px; }
.hvideo__icon::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.hvideo__play:hover .hvideo__icon, .hvideo__play:focus-visible .hvideo__icon { transform: scale(1.1); }
.hvideo__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
@keyframes cdh-pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 56, 31, .55); } 70% { box-shadow: 0 0 0 22px rgba(201, 56, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 56, 31, 0); } }
@media (max-width: 860px) {
  .videos__grid--2, .videos__grid--3 { grid-template-columns: minmax(0, 1fr); }
  .videos__grid--3 .hvideo--main { grid-row: auto; }
}

/* Galerie « Le CDH en images » */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; }
.mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic--1 .mosaic__item:first-child { grid-column: span 4; }
.mosaic__item a { display: block; position: relative; height: 100%; border-radius: var(--r-m); overflow: hidden; background: var(--vert-pale); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.mosaic__item a:hover img, .mosaic__item a:focus-visible img { transform: scale(1.07); }
.mosaic__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(8, 30, 16, .85)); transform: translateY(100%); transition: transform .35s ease; }
.mosaic__item a:hover .mosaic__caption, .mosaic__item a:focus-visible .mosaic__caption { transform: none; }
@media (hover: none) { .mosaic__caption { transform: none; } }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
  .mosaic--1 .mosaic__item:first-child { grid-column: span 2; }
}

/* Témoignages */
.testimonials h2 { margin-top: 0; }
.testimonials__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.testimonial { background: #fff; border-radius: var(--r-m); padding: 30px 26px 22px; position: relative; box-shadow: 0 1px 0 var(--vert-ligne); display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s ease, box-shadow .3s ease; }
.testimonial:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 58, 32, .12); }
.testimonial blockquote { margin: 0; font-size: var(--t-m); position: relative; }
.testimonial blockquote::before { content: "“"; font-family: var(--f-titre); font-size: 4rem; line-height: .6; color: var(--vert); display: block; height: 28px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; }
.testimonial__author img, .testimonial__author .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; font-size: 1.1rem; border-bottom: 0; flex: none; }
.testimonial__author > span:last-child { display: flex; flex-direction: column; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal * { opacity: 1 !important; transform: none !important; }
  .director__photo::before, .hvideo__icon { animation: none; }
}

/* Cultures : texte récapitulatif à gauche, cultures à droite */
.crops__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.crops__intro { position: sticky; top: 110px; }
.crops__intro h2 { margin-top: 0; }
.crops__intro p { color: var(--texte); font-size: var(--t-m); }
.crops__facts { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.crops__facts li { display: flex; align-items: baseline; gap: 10px; color: var(--gris); padding-bottom: 12px; border-bottom: 1px solid var(--vert-ligne); }
.crops__facts strong { font-family: var(--f-titre); font-size: 2rem; line-height: 1; color: var(--vert); }
.crops__layout .crops__grid { gap: 16px; }
.crops__layout .crop img, .crops__layout .crop__placeholder { aspect-ratio: 4 / 3; }
.crops__layout .crop__label { padding: 12px 14px 14px; }
@media (max-width: 1080px) { .crops__layout .crops__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .crops__layout { grid-template-columns: minmax(0, 1fr); }
  .crops__intro { position: static; }
}
@media (max-width: 480px) { .crops__layout .crops__grid { grid-template-columns: minmax(0, 1fr); } }

/* Marchés et prix : un onglet par marché */
.board__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 0; position: relative; border-bottom: 1px solid var(--vert-ligne); padding-bottom: 12px; }
.board__tabs [role="tab"] { border: 1px solid var(--vert-ligne); background: #fff; color: var(--vert-fonce); font: inherit; font-weight: 700; font-size: .92rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.board__tabs [role="tab"]:hover { background: var(--vert-pale); }
.board__tabs [role="tab"][aria-selected="true"] { background: var(--vert-fonce); border-color: var(--vert-fonce); color: #fff; }
.board__tabs [role="tab"]:focus-visible { outline: 3px solid var(--butternut); outline-offset: 2px; }
.board__timer { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.board__timer span { display: block; height: 100%; width: 0; background: var(--vert); }
.board__panel.is-entering { animation: cdh-board-in .5s ease; }
.board__panel.is-entering tbody tr { animation: cdh-row-in .45s ease both; }
.board__panel.is-entering tbody tr:nth-child(2) { animation-delay: .04s; }
.board__panel.is-entering tbody tr:nth-child(3) { animation-delay: .08s; }
.board__panel.is-entering tbody tr:nth-child(4) { animation-delay: .12s; }
.board__panel.is-entering tbody tr:nth-child(5) { animation-delay: .16s; }
.board__panel.is-entering tbody tr:nth-child(n+6) { animation-delay: .2s; }
.board__more { margin: 0; padding: 10px 24px 0; font-size: .95rem; }
@keyframes cdh-board-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cdh-row-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
