/* ============================================================
   AFRIQUE AGRO BUSINESS — Site multi-filières
   Direction : coloré & vivant · typographie géométrique
   Une couleur par filière : Cacao · Soja · Sésame · Anacarde
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------ */
:root {
  /* Neutres */
  --ink:        #18190F;   /* texte principal */
  --ink-soft:   #55564A;   /* texte secondaire */
  --ink-faint:  #8A8B7E;
  --paper:      #FFFFFF;   /* fond de page (blanc pur) */
  --paper-2:    #FFFFFF;   /* fond de section (blanc) */
  --paper-3:    #F6F5F1;
  --line:       #E4E1D2;
  --line-soft:  #EEEBDF;
  --white:      #FFFFFF;

  /* ====== Couleurs par filière ====== */
  /* Cacao — brun chocolat */
  --cacao:        #6E3A1B;
  --cacao-2:      #9A5A30;
  --cacao-tint:   #F1E6DC;
  /* Soja — vert vif */
  --soja:         #3C8E2E;
  --soja-2:       #62B23F;
  --soja-tint:    #E4F0D9;
  /* Sésame — doré */
  --sesame:       #C2901A;
  --sesame-2:     #E0B247;
  --sesame-tint:  #F6ECCD;
  /* Anacarde — terracotta orange */
  --anacarde:     #D9591F;
  --anacarde-2:   #F07B41;
  --anacarde-tint:#F9E1D3;

  /* Couleur "active" — surchargée par [data-filiere] */
  --f:       var(--cacao);
  --f-2:     var(--cacao-2);
  --f-tint:  var(--cacao-tint);

  /* Accent global (marque) — orange anacarde par défaut, vivant */
  --brand:   #D9591F;
  --brand-2: #B8410F;

  --error:   #C23A22;
  --success: #2F7D3A;

  /* Typo */
  --ff-display: 'Space Grotesk', system-ui, sans-serif;
  --ff-body:    'Manrope', system-ui, -apple-system, sans-serif;

  --fs-mega:  clamp(2.9rem, 1.4rem + 6.4vw, 6rem);
  --fs-h1:    clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
  --fs-h2:    clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem);
  --fs-h3:    clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-lead:  clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  --fs-body:  1.0625rem;
  --fs-sm:    0.9375rem;
  --fs-xs:    0.8125rem;
  --fs-eye:   0.75rem;

  /* Espacements (base 8) */
  --sp-xs: .375rem; --sp-sm: .75rem; --sp-md: 1.25rem;
  --sp-lg: 2rem;   --sp-xl: 3.5rem; --sp-2xl: 5.5rem; --sp-3xl: 8rem;

  /* Rayons — généreux, dynamiques */
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 36px; --r-pill: 999px;

  /* Ombres */
  --sh-sm: 0 2px 8px rgba(24,25,15,.06);
  --sh-md: 0 10px 30px rgba(24,25,15,.10);
  --sh-lg: 0 26px 60px rgba(24,25,15,.16);
  --sh-color: 0 16px 40px rgba(217,89,31,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --t: 280ms var(--ease);

  --max: 1240px;
  --header-h: 76px;
}

/* Surcharges de filière */
[data-filiere="cacao"]   { --f: var(--cacao);    --f-2: var(--cacao-2);    --f-tint: var(--cacao-tint); }
[data-filiere="soja"]    { --f: var(--soja);     --f-2: var(--soja-2);     --f-tint: var(--soja-tint); }
[data-filiere="sesame"]  { --f: var(--sesame);   --f-2: var(--sesame-2);   --f-tint: var(--sesame-tint); }
[data-filiere="anacarde"]{ --f: var(--anacarde); --f-2: var(--anacarde-2); --f-tint: var(--anacarde-tint); }

/* ------------------------------------------------------------
   2. Base
   ------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sesame-2); color: var(--ink); }

/* ------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 7vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem,4vw,5rem); }
.section--alt { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--ink { background: var(--ink); color: #EDEBDF; }
.section--ink h1,.section--ink h2,.section--ink h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-body); font-size: var(--fs-eye); font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--f);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--f); display: inline-block; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); }
.section--ink .lead { color: #BFBFB2; }
.muted { color: var(--ink-soft); }

.head { max-width: 64ch; margin-bottom: clamp(2rem,4vw,3.5rem); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow::before { display: none; }
.head.center .eyebrow { justify-content: center; }

.mono { font-family: var(--ff-display); font-feature-settings: "tnum"; }

/* ------------------------------------------------------------
   4. Boutons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 1em 1.6em; border: 2px solid transparent; border-radius: var(--r-pill);
  font-family: var(--ff-body); font-size: var(--fs-sm); font-weight: 700; line-height: 1;
  cursor: pointer; transition: var(--t); white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--brand { background: var(--brand); color: var(--white); box-shadow: var(--sh-color); }
.btn--brand:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { transform: translateY(-2px); background: #000; }
.btn--f { background: var(--f); color: var(--white); }
.btn--f:hover { background: var(--f-2); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--wa { background: #1FA855; color: #fff; }
.btn--wa:hover { background: #178443; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-sm); align-items: center; }

.alink { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--f); }
.alink svg { width: 1.05em; height: 1.05em; transition: var(--t); }
.alink:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------
   5. Header
   ------------------------------------------------------------ */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; background: var(--paper); border-bottom: 1px solid transparent; transition: var(--t); }
.header.scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--sp-lg); }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
img.brand__mark { width: auto; height: 56px; max-width: 220px; object-fit: contain; }
.field--consent { margin-top: .4rem; }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-faint); cursor: pointer; font-weight: 500; }
.consent input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; }
.consent a { color: var(--brand); text-decoration: underline; }
.field--consent.bad .consent { color: var(--brand); }

.brand--logo { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.header .brand--logo img.brand__mark { height: 48px; }
.brand--logo .brand__tag { margin-top: 0; }
.footer img.brand__mark { background: #fff; border-radius: 10px; padding: 4px 10px; }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1; color: var(--ink); white-space: nowrap; }
.brand__name b { color: var(--brand); font-weight: 700; }
.brand__tag { display:block; font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: clamp(.6rem,1.5vw,1.6rem); }
.nav a:not(.btn) { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); padding: .5em .2em; position: relative; white-space: nowrap; }
.nav a:not(.btn)::after { content:""; position:absolute; left:0; bottom:2px; width:100%; height:2px; background: var(--brand); transform: scaleX(0); transform-origin:left; transition: var(--t); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn--brand { display: none; }
.nav-cta { display: inline-flex; }

.burger { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }
.burger .x { display: none; }
.burger[aria-expanded="true"] .m { display: none; }
.burger[aria-expanded="true"] .x { display: block; }

/* ------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(3rem,7vw,6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.hero__title { font-size: var(--fs-mega); line-height: .98; letter-spacing: -.03em; }
.hero__title .hl { color: var(--brand); }
.hero__sub { font-size: var(--fs-lead); color: var(--ink-soft); margin-top: var(--sp-md); max-width: 50ch; }
.hero__btns { margin-top: var(--sp-lg); }
.hero__stats { display: flex; gap: clamp(1.5rem,4vw,3rem); margin-top: var(--sp-xl); flex-wrap: wrap; }
.hero__stat .n { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1; }
.hero__stat .l { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: .35rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* Composition visuelle du hero : mosaïque colorée par filière */
.hero__art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1/1; }
.hero__tile { border-radius: var(--r-lg); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-md); color: var(--white); min-height: 130px; }
.hero__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .5; }
.hero__tile span { position: relative; font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; }
.hero__tile small { position: relative; font-size: var(--fs-xs); opacity: .85; font-weight: 600; }
.hero__tile--cacao { background: var(--cacao); }
.hero__tile--soja { background: var(--soja); }
.hero__tile--sesame { background: var(--sesame); }
.hero__tile--anacarde { background: var(--anacarde); }

/* ------------------------------------------------------------
   7. Bandeau confiance / chiffres
   ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--paper); padding: clamp(1.5rem,3vw,2.5rem); display: flex; flex-direction: column; gap: .4rem; }
.stat__ic { width: 40px; height: 40px; color: var(--brand); }
.stat__ic svg { width: 30px; height: 30px; }
.stat__n { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1; margin-top: .5rem; }
.stat__l { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ------------------------------------------------------------
   8. Cartes filière (color blocks)
   ------------------------------------------------------------ */
.fil-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: clamp(1rem,2vw,1.5rem); }
.fil {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 340px; padding: clamp(1.5rem,2.5vw,2rem); border-radius: var(--r-lg);
  background: var(--f); color: var(--white); overflow: hidden; isolation: isolate;
  transition: var(--t);
}
.fil:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.fil__motif { position: absolute; right: -30px; top: -30px; width: 180px; height: 180px; color: rgba(255,255,255,.16); z-index: -1; }
.fil__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .26; mix-blend-mode: multiply; z-index: -2; }
.fil__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fil__kicker { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; opacity: .9; }
.fil__num { font-family: var(--ff-display); font-weight: 700; font-size: 1rem; opacity: .7; }
.fil__name { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.4rem); letter-spacing: -.02em; line-height: 1; margin-top: auto; }
.fil__desc { font-size: var(--fs-sm); opacity: .92; margin-top: .6rem; }
.fil__forms { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--sp-md); }
.fil__forms span { font-size: var(--fs-xs); font-weight: 600; padding: .35em .7em; border-radius: var(--r-pill); background: rgba(255,255,255,.18); }
.fil__link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: var(--fs-sm); margin-top: var(--sp-md); }
.fil__link svg { width: 1.05em; height: 1.05em; transition: var(--t); }
.fil:hover .fil__link svg { transform: translateX(4px); }

/* ------------------------------------------------------------
   9. Produits — grades (cartes claires teintées)
   ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2vw,1.5rem); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: var(--t); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--f); }
.pcard__bar { height: 8px; background: var(--f); }
.pcard__media { aspect-ratio: 16/10; overflow: hidden; background: var(--f-tint); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__body { padding: clamp(1.25rem,2vw,1.6rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pcard__grade { display: inline-flex; align-self: flex-start; white-space: nowrap; font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .04em; color: var(--f); background: var(--f-tint); padding: .35em .7em; border-radius: var(--r-pill); }
.pcard__body h3 { font-size: 1.2rem; }
.pcard__desc { font-size: var(--fs-sm); color: var(--ink-soft); }
.pcard__spec { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 600; border-top: 1px solid var(--line-soft); }
.pcard__spec svg { width: 15px; height: 15px; color: var(--f); }

/* Bloc filière (en-tête de gamme) */
.fil-head { display: flex; align-items: center; gap: var(--sp-md); margin-bottom: var(--sp-lg); padding: var(--sp-md) var(--sp-lg); border-radius: var(--r-md); background: var(--f-tint); }
.fil-head__chip { width: 56px; height: 56px; flex: none; border-radius: var(--r-md); background: var(--f); color: #fff; display: grid; place-items: center; }
.fil-head__chip svg { width: 30px; height: 30px; }
.fil-head h2 { color: var(--f); }
.fil-head p { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: .2rem; }

/* ------------------------------------------------------------
   10. Process (étapes)
   ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: clamp(1.25rem,2.5vw,2rem); counter-reset: s; }
.step { position: relative; padding-top: var(--sp-lg); border-top: 3px solid var(--ink); }
.step__n { font-family: var(--ff-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--brand); }
.step h3 { margin-top: .5rem; font-size: 1.25rem; }
.step p { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: .4rem; }
.section--ink .step { border-color: var(--brand); }
.section--ink .step p { color: #BFBFB2; }

/* ------------------------------------------------------------
   11. Split média / texte
   ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--sh-md); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__badge { position: absolute; left: 18px; bottom: 18px; background: var(--white); color: var(--ink); border-radius: var(--r-pill); padding: .6em 1.1em; font-weight: 700; font-size: var(--fs-sm); box-shadow: var(--sh-md); display: inline-flex; gap: .5em; align-items: center; }
.split__badge svg { width: 18px; height: 18px; color: var(--brand); }
.split__body { display: flex; flex-direction: column; gap: var(--sp-md); }
.check { display: flex; flex-direction: column; gap: .7rem; }
.check li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); }
.check svg { width: 22px; height: 22px; color: var(--success); flex: none; margin-top: 1px; }

/* ------------------------------------------------------------
   12. Features (pourquoi / activités)
   ------------------------------------------------------------ */
.feats { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: clamp(1rem,2vw,1.5rem); }
.feat { padding: clamp(1.5rem,2.5vw,2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: var(--t); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.feat__ic { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: var(--sp-md); }
.feat__ic svg { width: 26px; height: 26px; }
.feat h3 { font-size: 1.15rem; }
.feat p { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: .4rem; }
/* variantes couleur cyclées */
.feat:nth-child(4n+1) .feat__ic { background: var(--cacao); }
.feat:nth-child(4n+2) .feat__ic { background: var(--soja); }
.feat:nth-child(4n+3) .feat__ic { background: var(--sesame); }
.feat:nth-child(4n+4) .feat__ic { background: var(--anacarde); }

/* ------------------------------------------------------------
   13. CTA band
   ------------------------------------------------------------ */
.cta { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: var(--r-xl); padding: clamp(2.5rem,5vw,4.5rem); display: flex; flex-wrap: wrap; gap: var(--sp-lg); align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; }
.cta p { margin-top: var(--sp-sm); font-size: var(--fs-lead); color: rgba(255,255,255,.92); max-width: 46ch; }
.cta__text { position: relative; z-index: 1; }
.cta .btn-row { position: relative; z-index: 1; }
.cta__dots { position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; opacity: .18; }

/* ------------------------------------------------------------
   14. Forms
   ------------------------------------------------------------ */
.formcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem,4vw,3rem); box-shadow: var(--sh-sm); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1/-1; }
.field label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.field .req { color: var(--brand); }
.field input,.field select,.field textarea {
  width: 100%; padding: .9em 1em; font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-sm); transition: var(--t);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field input::placeholder,.field textarea::placeholder { color: var(--ink-faint); }
.field .err { display: none; font-size: var(--fs-xs); font-weight: 600; color: var(--error); }
.field.bad input,.field.bad select,.field.bad textarea { border-color: var(--error); }
.field.bad .err { display: block; }
/* Formulaire contact (.cx-f) + case de consentement : même feedback d'erreur */
.cx-f.bad input,.cx-f.bad select,.cx-f.bad textarea { border-color: var(--error); box-shadow: 0 0 0 2px color-mix(in srgb, var(--error) 25%, transparent); }
.field--consent.bad .consent input[type="checkbox"] { outline: 2px solid var(--error); outline-offset: 2px; }
.factions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-md); margin-top: var(--sp-md); }
.fdiv { display: flex; align-items: center; gap: var(--sp-md); margin: var(--sp-md) 0; color: var(--ink-faint); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.fdiv::before,.fdiv::after { content:""; flex:1; height:2px; background: var(--line); }
.fsuccess { display: none; align-items: center; gap: .6rem; margin-top: var(--sp-md); padding: var(--sp-md); background: #E9F3E5; border: 2px solid var(--success); border-radius: var(--r-sm); color: var(--success); font-weight: 600; font-size: var(--fs-sm); }
.fsuccess.on { display: flex; }
.fsuccess svg { width: 20px; height: 20px; flex: none; }

/* Contact 2 colonnes */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.cinfo { display: flex; flex-direction: column; gap: var(--sp-md); }
.citem { display: flex; gap: var(--sp-md); align-items: flex-start; }
.citem__ic { width: 46px; height: 46px; flex: none; border-radius: var(--r-md); background: var(--brand); color: #fff; display: grid; place-items: center; }
.citem__ic svg { width: 22px; height: 22px; }
.citem h4 { font-family: var(--ff-display); font-size: 1.05rem; }
.citem p,.citem a { font-size: var(--fs-sm); color: var(--ink-soft); }
.citem a:hover { color: var(--brand); }
.map { width: 100%; aspect-ratio: 16/7; border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-md); }

.reassure { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; align-items: stretch; }
.reassure__media { min-height: 280px; }
.reassure__media img { width: 100%; height: 100%; object-fit: cover; }
.reassure__body { padding: clamp(1.5rem,3vw,2.5rem); display: flex; flex-direction: column; gap: var(--sp-md); justify-content: center; }

/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */
.footer { background: var(--ink); color: #C9C9BC; padding-block: clamp(3rem,5vw,5rem) var(--sp-lg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(2rem,4vw,3.5rem); }
.footer .brand__name { color: #fff; }
.footer__about { margin-top: var(--sp-md); font-size: var(--fs-sm); max-width: 38ch; }
.footer__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--sp-md); }
.footer__chips span { font-size: var(--fs-xs); font-weight: 700; padding: .3em .7em; border-radius: var(--r-pill); }
.fc-cacao { background: var(--cacao); color:#fff;} .fc-soja{background:var(--soja);color:#fff;} .fc-sesame{background:var(--sesame);color:#fff;} .fc-anacarde{background:var(--anacarde);color:#fff;}
.footer h4 { font-family: var(--ff-display); color: #fff; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--sp-md); }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a,.footer-col p { font-size: var(--fs-sm); color: #C9C9BC; }
.footer-col a:hover { color: var(--brand); }
.fline { display: flex; gap: .55rem; align-items: flex-start; }
.fline svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }
.socials { display: flex; gap: .5rem; margin-top: var(--sp-md); }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill); color: #C9C9BC; transition: var(--t); }
.socials a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: clamp(2rem,4vw,3.5rem); padding-top: var(--sp-md); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: var(--sp-sm); justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--ink-faint); }
.footer-bottom a { color: var(--ink-faint); }
.footer-bottom a:hover { color: #C9C9BC; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-md); }

/* ------------------------------------------------------------
   16. Reveal
   ------------------------------------------------------------ */
.reveal { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal:not(.is-visible){opacity:1;transform:none;} .reveal{transition:none;} }

/* ------------------------------------------------------------
   18. Hero photo-strip (nouvelle structure)
   ------------------------------------------------------------ */
.hero-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: clamp(2rem,4vw,3.5rem); }
.hero-strip figure { margin: 0; position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hero-strip figure:hover img { transform: scale(1.05); }
.hero-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .85rem .95rem; color: #fff; font-family: var(--ff-display); font-weight: 700; font-size: 1.02rem; background: linear-gradient(transparent, rgba(20,20,10,.72)); display: flex; align-items: center; gap: .5rem; }
.hero-strip .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
@media (max-width: 600px) { .hero-strip { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------
   19. Bandes filière pleine largeur (image + texte alternés)
   ------------------------------------------------------------ */
.fband { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.fband--rev .fband__media { order: 2; }
.fband__media { position: relative; min-height: clamp(300px,40vw,520px); overflow: hidden; }
.fband__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fband__tag { position: absolute; left: 20px; top: 20px; z-index: 1; background: #fff; color: var(--f); font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; padding: .45em .9em; border-radius: var(--r-pill); }
.fband__body { background: var(--f); color: #fff; padding: clamp(2rem,5vw,5rem); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-md); }
.fband__ix { font-family: var(--ff-display); font-weight: 700; letter-spacing: .12em; opacity: .75; font-size: .95rem; }
.fband__name { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); line-height: .96; letter-spacing: -.02em; }
.fband__txt { font-size: var(--fs-lead); line-height: 1.5; opacity: .96; max-width: 46ch; }
.fband__forms { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.fband__forms span { font-size: var(--fs-xs); font-weight: 700; padding: .42em .9em; border-radius: var(--r-pill); background: rgba(255,255,255,.2); }
.fband__cta { align-self: flex-start; margin-top: .4rem; }
@media (max-width: 900px) { .fband { grid-template-columns: 1fr; } .fband--rev .fband__media { order: 0; } .fband__media { min-height: 260px; } }

/* Ruban de chiffres */
.ribbon { background: var(--paper-3); color: var(--ink); padding-block: clamp(3rem,6vw,6rem); border-block: 1px solid var(--line); }
.ribbon__in { display: grid; grid-template-columns: .8fr 1.3fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.ribbon__head { max-width: 34ch; }
.ribbon__head h2 { color: var(--ink); }
.ribbon__lead { margin-top: var(--sp-md); font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.6; }
.ribbon__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem,4vw,3.4rem) clamp(1.5rem,3vw,2.4rem); }
.rstat { display: flex; flex-direction: column; gap: .45rem; }
.rstat__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-tint, var(--anacarde-tint)); color: var(--accent, var(--brand)); }
.rstat__ic svg { width: 22px; height: 22px; }
.rstat__n { font-family: var(--ff-display); font-weight: 800; font-size: clamp(3.4rem, 2rem + 4.5vw, 5.6rem); line-height: .95; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rstat__l { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 500; line-height: 1.4; max-width: 24ch; }
.rstat.c1 { --accent: var(--cacao);    --accent-tint: var(--cacao-tint); }
.rstat.c2 { --accent: var(--soja);     --accent-tint: var(--soja-tint); }
.rstat.c3 { --accent: var(--sesame);   --accent-tint: var(--sesame-tint); }
.rstat.c4 { --accent: var(--anacarde); --accent-tint: var(--anacarde-tint); }
@media (max-width: 900px) { .ribbon__in { grid-template-columns: 1fr; } .ribbon__head { max-width: none; } }
@media (max-width: 520px) { .ribbon__stats { grid-template-columns: 1fr; } }

/* ===== 20. Hero slider ===== */
.hslider { position: relative; height: clamp(540px, 82vh, 780px); overflow: hidden; background: var(--ink); }
.hslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease); display: flex; align-items: center; }
.hslide.active { opacity: 1; visibility: visible; }
.hslide__bg { position: absolute; inset: 0; }
.hslide__bg img { width: 100%; height: 100%; object-fit: cover; }
.hslide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,12,6,.82) 0%, rgba(15,12,6,.5) 45%, rgba(15,12,6,.15) 100%); }
.hslide__veil { position: absolute; inset: 0; background: var(--f); opacity: .34; mix-blend-mode: multiply; }
.hslide__inner { position: relative; z-index: 2; color: #fff; max-width: 660px; }
.hslide__ix { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--ff-body); font-size: var(--fs-eye); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: #fff; }
.hslide__ix .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--f-2); }
.hslide__title { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem); line-height: .96; letter-spacing: -.02em; color: #fff; margin-top: var(--sp-md); }
.hslide__title .hl { color: var(--f-2); }
.hslide__txt { font-size: var(--fs-lead); color: rgba(255,255,255,.92); margin-top: var(--sp-md); max-width: 48ch; }
.hslide__btns { margin-top: var(--sp-lg); }
.hs-dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; gap: .55rem; justify-content: center; z-index: 6; }
.hs-dot { width: 40px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.4); border: 0; padding: 0; cursor: pointer; transition: var(--t); }
.hs-dot.active { background: #fff; }
.hs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.55); color: #fff; cursor: pointer; display: grid; place-items: center; transition: var(--t); }
.hs-arrow svg { width: 24px; height: 24px; }
.hs-arrow:hover { background: rgba(255,255,255,.32); }
.hs-prev { left: clamp(12px,2vw,28px); } .hs-next { right: clamp(12px,2vw,28px); }
.hslide__progress { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--f-2); z-index: 6; transition: width .12s linear; }

/* ===== 21. Formulaire — nouvelle structure ===== */
.quote { display: grid; grid-template-columns: .82fr 1.18fr; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line); }
.quote__aside { background: var(--ink); color: #fff; padding: clamp(1.75rem,3vw,2.75rem); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-lg); }
.quote__aside h3 { color: #fff; font-size: 1.4rem; }
.quote__aside p { font-size: var(--fs-sm); color: #BFBFB2; }
.qassure { display: flex; flex-direction: column; gap: .7rem; padding: var(--sp-md) 0; border-block: 1px solid rgba(255,255,255,.14); }
.qassure li { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-sm); color: #EAE8DC; line-height: 1.4; }
.qassure svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--soja-2); }
.qsteps { display: flex; flex-direction: column; gap: var(--sp-md); }
.qstep { display: flex; gap: .9rem; align-items: flex-start; }
.qstep__n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; font-size: .85rem; background: var(--brand); color: #fff; }
.qstep h4 { color: #fff; font-family: var(--ff-display); font-size: 1rem; }
.qstep p { font-size: var(--fs-xs); }
.qside-contact { display: flex; flex-direction: column; gap: .5rem; padding-top: var(--sp-md); border-top: 1px solid rgba(255,255,255,.16); }
.qside-contact a, .qside-contact span { display: flex; gap: .5rem; align-items: center; font-size: var(--fs-sm); color: #DDDCD0; }
.qside-contact svg { width: 16px; height: 16px; color: var(--brand); }
.quote__form { background: #fff; padding: clamp(1.75rem,3vw,2.75rem); }
.fsection + .fsection { margin-top: var(--sp-lg); padding-top: var(--sp-lg); border-top: 1px solid var(--line-soft); }
.fsection__h { display: flex; align-items: center; gap: .6rem; font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem; margin-bottom: var(--sp-md); }
.fsection__h .n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.chipset { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .6em 1.05em; border: 2px solid var(--line); border-radius: var(--r-pill); background: #fff; font-family: var(--ff-body); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; transition: var(--t); }
.chip .dot { width: 11px; height: 11px; border-radius: 50%; }
.chip:hover { border-color: var(--ink); }
.chip.sel { background: var(--f); border-color: var(--f); color: #fff; }
.chip.sel .dot { background: #fff; }

/* ===== 22. Page détail produit ===== */
.pdp-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.pdp-gallery__main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--sh-md); }
.pdp-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
.pdp-thumb { width: 84px; height: 64px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; transition: var(--t); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--f); }
.pdp-info .eyebrow { color: var(--f); }
.pdp-price { display: inline-flex; align-items: baseline; gap: .5rem; margin-top: var(--sp-sm); font-family: var(--ff-display); }
.pdp-price b { font-size: 1.8rem; color: var(--f); } .pdp-price span { font-size: var(--fs-sm); color: var(--ink-soft); }
.spec { width: 100%; border-collapse: collapse; margin-top: var(--sp-md); }
.spec tr { border-bottom: 1px solid var(--line-soft); }
.spec th { text-align: left; padding: .7em 0; font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 600; width: 42%; }
.spec td { padding: .7em 0; font-size: var(--fs-sm); font-weight: 700; font-family: var(--ff-display); }
.gradechips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-md); }
.gradechips span { font-family: var(--ff-mono); font-size: var(--fs-xs); padding: .4em .8em; border-radius: var(--r-sm); background: var(--f-tint); color: var(--f); font-weight: 600; }

@media (max-width: 900px) {
  .quote { grid-template-columns: 1fr; }
  .quote__aside { order: 2; }
  .pdp-hero { grid-template-columns: 1fr; }
  .hslide__txt { display: none; }
}

.banner { position: relative; padding-block: clamp(3rem,7vw,5.5rem); background: var(--ink); color: #fff; overflow: hidden; }
.banner[data-filiere] { background: var(--f); }
.banner__crumbs { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: var(--sp-sm); }
.banner__crumbs a:hover { color: #fff; }
.banner h1 { color: #fff; font-size: var(--fs-h1); }
.banner p { color: rgba(255,255,255,.9); font-size: var(--fs-lead); margin-top: var(--sp-sm); max-width: 56ch; }
.banner__dots { position: absolute; right: -30px; bottom: -50px; width: 240px; height: 240px; opacity: .16; }

/* ------------------------------------------------------------
   17. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; }
  .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; }
  .contact { grid-template-columns: 1fr; }
  .reassure { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 66px; }
  img.brand__mark { height: 46px; max-width: 170px; }
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-lg); padding: var(--sp-sm) clamp(1.25rem,4vw,2.5rem) var(--sp-md); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: var(--t); }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .9em 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn--brand { display: inline-flex; margin-top: var(--sp-sm); justify-content: center; }
  .nav-cta { display: none; }
  .fgrid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; }
  .hero__btns { flex-direction: column; align-items: stretch; }
  .hero__btns .btn { width: 100%; }
}
