/* ==========================================================================
   ABIG — Agri Business Innov Guinée
   Feuille de style principale
   Charte : ABIG BRAND GUIDE (PANTONE 363C / 375C / 021C)
   Mise en forme : typographique. Des filets et de l'espace plutôt que des
   cadres ; le cadre est réservé aux blocs qui portent une image.
   ========================================================================== */

/* --- Jetons -------------------------------------------------------------- */
:root {
  /* Couleurs de marque — valeurs écran du guide, ne pas modifier */
  --vert:        #2B7C00;   /* PANTONE 363C */
  --vert-clair:  #B0E000;   /* PANTONE 375C */
  --orange:      #F58220;   /* PANTONE 021C */

  /* Déclinaisons de service */
  --vert-fonce:  #1E5800;
  --vert-nuit:   #16250D;
  --vert-profond:#1F3D12;
  --lime-pale:   #EDF8CE;

  /* Neutres : crème chaude plutôt que blanc pur, gris à biais vert */
  --encre:       #16250D;
  --encre-douce: #4E5A45;
  --filet:       #E3E1D4;
  --papier:      #FFFFFF;
  --creme:       #F7F5EC;
  --creme-fonce: #EFEDE0;

  /* Typographie — Swiss 721 = clone Helvetica ; la pile système en est
     la restitution fidèle, sans webfont à charger. */
  --titre: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --texte: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;

  /* Échelle typographique */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   1.25rem;
  --t-lg:   1.5rem;
  --t-xl:   2rem;
  --t-2xl:  2.75rem;
  --t-3xl:  3.75rem;

  /* Rythme */
  --gouttiere: clamp(1.25rem, 4vw, 3rem);
  --largeur:   1440px;
  --largeur-bloc: 62rem;   /* blocs à une seule colonne de texte */
  --section:   clamp(3.5rem, 8vw, 6.5rem);
  --encart:    clamp(0.75rem, 2vw, 1.5rem);  /* marge des blocs encastrés */

  /* Rayons */
  --r-xl:   32px;
  --r-lg:   24px;
  --r-md:   16px;
  --r-sm:   12px;
  --r-pill: 999px;

  /* Ombres — discrètes ; jamais sur le logo ni sur un produit détouré */
  --ombre-carte: 0 2px 4px rgba(22, 37, 13, .04), 0 12px 28px rgba(22, 37, 13, .06);
  --ombre-haute: 0 4px 10px rgba(22, 37, 13, .08), 0 20px 44px rgba(22, 37, 13, .12);

  /* Flèche oblique des actions. Dessinée plutôt qu'écrite : le caractère
     « ↗ » bascule en émoji sur iOS, où il s'affiche dans une pastille bleue. */
  --fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 11.5 11.5 4.5M6 4.5h5.5V10'/%3E%3C/svg%3E");

  /* Petite feuille verte des surtitres, dérivée du pictogramme du logo */
  --feuille: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.4 15.5C6.2 9.6 6.4 4.4 9.6.6c2.7 4.4 1.8 9.6-1.2 14.9z' fill='%232B7C00'/%3E%3Cpath d='M7.7 14.6C3.9 11.6 1.7 8 1.2 4.1c3.5 1.5 5.8 5.5 6.5 10.5z' fill='%23B0E000'/%3E%3C/svg%3E");
  --feuille-claire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.4 15.5C6.2 9.6 6.4 4.4 9.6.6c2.7 4.4 1.8 9.6-1.2 14.9z' fill='%23B0E000'/%3E%3Cpath d='M7.7 14.6C3.9 11.6 1.7 8 1.2 4.1c3.5 1.5 5.8 5.5 6.5 10.5z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--t-base);
  font-weight: 300;          /* Swiss 721 Light */
  line-height: 1.65;
  text-align: left;          /* le guide proscrit la justification */
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--vert); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vert-fonce); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
  color: var(--encre);
}

p { margin: 0; max-width: 68ch; }

/* --- Utilitaires --------------------------------------------------------- */
.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: var(--section); }
.section--creme { background: var(--creme); }


.pile { display: flex; flex-direction: column; }
.pile--sm  { gap: 0.75rem; }
.pile--md  { gap: 1.25rem; }
.pile--lg  { gap: 2.25rem; }

.saut-lien {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vert);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
}
.saut-lien:focus { left: 0; }

/* Texte réservé aux lecteurs d'écran : présent, mais invisible à l'œil. */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Surtitre : indique la nature du bloc, précédé de la feuille de la marque */
.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--titre);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert);
  margin: 0;
}
.surtitre::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--feuille) center / contain no-repeat;
  flex: none;
}
.bandeau .surtitre::before,
.hero .surtitre::before { background-image: var(--feuille-claire); }

.titre-section { font-size: clamp(1.8rem, 4vw, var(--t-xl)); }
.chapo { font-size: var(--t-md); color: var(--encre-douce); font-weight: 300; }

/* En-tête de section : titre à gauche, bouton à droite */
.tete-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.tete-section > .pile { flex: 1 1 26rem; }

/* --- Boutons ------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--titre);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
/* Un bouton ne déborde jamais de sa colonne, même sur les écrans les plus
   étroits : le libellé se replie plutôt que de pousser la page. */
.bouton {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  /* Une adresse électronique est une chaîne insécable : sans cela, elle
     pousse la page sur les écrans les plus étroits. */
  overflow-wrap: anywhere;
}
@media (max-width: 400px) {
  .bouton { padding-inline: 1.1rem; }
}
.bouton:hover { transform: translateY(-1px); }
.bouton--plein  { background: var(--vert); color: #fff; }
.bouton--plein:hover { background: var(--vert-fonce); color: #fff; }
.bouton--lime   { background: var(--vert-clair); color: var(--vert-nuit); }
.bouton--lime:hover { background: #C2EE28; color: var(--vert-nuit); }
.bouton--ligne  { background: transparent; color: var(--encre); border-color: var(--filet); }
.bouton--ligne:hover { background: var(--encre); color: #fff; border-color: var(--encre); }
.bouton--clair  { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.bouton--clair:hover { background: #fff; color: var(--vert-nuit); border-color: #fff; }

/* Flèche des actions principales */
.bouton--plein::after,
.bouton--lime::after {
  content: "";
  width: .8em; height: .8em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--fleche) center / contain no-repeat;
  mask: var(--fleche) center / contain no-repeat;
  transition: transform .18s ease;
}
.bouton--plein:hover::after,
.bouton--lime:hover::after { transform: translate(2px, -2px); }

.groupe-boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Chapeau : barre de contact + en-tête, posés sur le héro -------------
   Le bloc est fixe et transparent tant que la page est en haut ; dès qu'on
   défile, il se pose en blanc et la barre de contact se rétracte.
   -------------------------------------------------------------------------- */
.chapeau {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.chapeau[data-fige] {
  background: var(--papier);
  box-shadow: 0 1px 0 var(--filet), 0 10px 28px rgba(22, 37, 13, .09);
}

/* --- Barre de contact ---------------------------------------------------- */
.barre-contact {
  color: rgba(255, 255, 255, .82);
  font-size: var(--t-sm);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, border-color .3s ease;
  max-height: 4rem;
}
.chapeau[data-fige] .barre-contact {
  max-height: 0;
  opacity: 0;
  border-color: transparent;
}
.barre-contact .enveloppe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.65rem;
}
.barre-contact a { color: #fff; text-decoration: none; }
.barre-contact a:hover { color: var(--vert-clair); text-decoration: underline; }
.barre-contact__coord { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.barre-contact__reseaux { display: flex; gap: 1rem; }
.barre-contact__reseaux a { display: inline-flex; }

/* --- En-tête : logo à gauche, navigation centrée, action à droite -------- */
.entete .enveloppe {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

/* Deux fichiers, un par état : la version blanche officielle sur la photo du
   héro, la version couleur d'origine sur l'en-tête blanche. Les deux sont
   recadrées sur leur tracé et calées en hauteur, pour que l'échange ne
   déplace rien. */
.entete__logo { display: block; line-height: 0; }
.entete__logo img {
  height: clamp(42px, 5vw, 52px);
  width: auto;
}
.chapeau[data-fige] .entete__logo--clair,
.entete__logo--couleur { display: none; }
.chapeau[data-fige] .entete__logo--couleur { display: block; }

.entete__action { display: flex; justify-content: flex-end; }

.nav { display: flex; align-items: center; justify-content: center; gap: 0.2rem; }
.nav a {
  font-family: var(--titre);
  font-size: var(--t-sm);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-pill);
  transition: background-color .18s ease, color .18s ease;
}
.chapeau[data-fige] .nav a { color: var(--encre); }
.nav a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.chapeau[data-fige] .nav a:hover { background: var(--lime-pale); color: var(--vert-fonce); }
/* État actif : pilule vert clair, comme la maquette du guide de marque */
.nav a[aria-current="page"],
.chapeau[data-fige] .nav a[aria-current="page"] {
  background: var(--vert-clair);
  color: var(--vert-nuit);
}

.bascule-nav {
  display: none;
  background: var(--vert-clair);
  color: var(--vert-nuit);
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.6rem 1.1rem;
  font-family: var(--titre);
  font-weight: 700;
  font-size: var(--t-sm);
  cursor: pointer;
}

@media (max-width: 1080px) {
  /* Trois éléments en ligne : logo, appel, menu. Une grille à deux colonnes
     ferait passer le troisième à la ligne. */
  .entete .enveloppe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
  }
  .entete__action { display: none; }
  .bascule-nav { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.6rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--papier);
    border: 1px solid var(--filet);
    border-radius: var(--r-md);
    box-shadow: var(--ombre-haute);
    padding: 0.6rem;
    margin-inline: var(--gouttiere);
  }
  .nav[data-ouvert="true"] { display: flex; }
  /* Dans le panneau déroulant, les liens sont sur fond blanc quel que soit
     l'état du chapeau. */
  .nav a,   .nav a { padding-block: 0.8rem; border-radius: var(--r-sm); }
  .nav a:hover { background: var(--lime-pale); color: var(--vert-fonce); }
}

/* --- Héro : pleine largeur, le chapeau se pose dessus -------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--vert-nuit);
  isolation: isolate;
  /* Dégage la hauteur du chapeau, mesurée par script ; la valeur de repli
     couvre le cas où le script ne s'exécute pas. */
  padding-top: var(--chapeau-h, 8.5rem);
}
.hero::before, .bandeau::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 15rem;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 18, 6, .60), rgba(10, 18, 6, 0));
  pointer-events: none;
}
.hero > .enveloppe, .bandeau > .enveloppe { position: relative; z-index: 1; }

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Diaporama : les vues se superposent et se fondent l'une dans l'autre. */
.hero__vue {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__vue[data-actif] { opacity: 1; }
.hero__vue img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .hero__vue { transition: none; }
}

/* Commandes du diaporama, alignées sur la colonne de texte. */
.hero__commandes {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.hero__puces { display: flex; align-items: center; gap: 0.5rem; }
.hero__puce {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .40);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.hero__puce:hover { background: rgba(255, 255, 255, .75); }
.hero__puce[aria-current="true"] { width: 30px; background: var(--vert-clair); }
.hero__lecture {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hero__lecture:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }
.hero__lecture svg { width: 11px; height: 11px; fill: currentColor; }
.hero__lecture .icone-pause { display: block; }
.hero__lecture .icone-lecture { display: none; }
.hero__lecture[aria-pressed="true"] .icone-pause { display: none; }
.hero__lecture[aria-pressed="true"] .icone-lecture { display: block; }
.hero__voile {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(103deg,
    rgba(22, 37, 13, .93) 0%,
    rgba(22, 37, 13, .78) 40%,
    rgba(22, 37, 13, .30) 100%);
}
.hero__contenu {
  padding-block: clamp(3.5rem, 11vw, 8rem);
  color: #fff;
  max-width: 52rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, var(--t-3xl));
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--vert-clair); }
.hero__chapo { color: #D5E3C7; font-size: var(--t-md); max-width: 44rem; }

/* Cartes flottantes posées sur la photo */
/* Faits marquants : une ligne typographique, pas des cartes — les seuls blocs
   en relief du héro restent les deux boutons. */
.hero__faits {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .20);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}
.hero__faits li {
  position: relative;
  font-family: var(--titre);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #CFDFC0;
}
.hero__faits li + li::before {
  content: "";
  position: absolute;
  left: -0.62rem; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 1.1em;
  background: rgba(255, 255, 255, .30);
}

/* Les trois faits tiennent sur une ligne tant que la colonne de texte atteint
   sa largeur maximale. En dessous, on empile : sur deux lignes, le séparateur
   du premier élément reporté se retrouverait orphelin en tête de ligne. */
@media (max-width: 920px) {
  .hero__faits { flex-direction: column; gap: 0.55rem; }
  .hero__faits li + li::before { display: none; }
}

/* --- Bandeau de page intérieure : pleine largeur, comme le héro ---------- */
.bandeau {
  position: relative;
  overflow: hidden;
  background: var(--vert-nuit);
  isolation: isolate;
  padding-top: var(--chapeau-h, 8.5rem);
}
.bandeau__media { position: absolute; inset: 0; z-index: -2; }
.bandeau__media img { width: 100%; height: 100%; object-fit: cover; }
.bandeau__voile {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(103deg, rgba(22,37,13,.94) 0%, rgba(22,37,13,.80) 48%, rgba(22,37,13,.44) 100%);
}
.bandeau__contenu {
  color: #fff; max-width: 50rem;
  padding-block: clamp(2.75rem, 7vw, 5rem);
}
.bandeau h1 { color: #fff; font-size: clamp(1.9rem, 5vw, var(--t-2xl)); }
.bandeau p { color: #D5E3C7; }

.fil { font-size: var(--t-xs); color: #A3B894; margin-bottom: 0.9rem; }
.fil a { color: #A3B894; }
.fil a:hover { color: var(--vert-clair); }

/* Resserre un bloc qui ne porte qu'une colonne de texte ou peu de contenu. */
.enveloppe--etroite { max-width: calc(var(--largeur-bloc) + 6rem); }

/* --- Grilles ------------------------------------------------------------- */
.grille { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
/* Grille dont les cellules portent peu de texte : inutile de les étirer. */
.grille--compacte { max-width: var(--largeur-bloc); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grille--3, .grille--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; }
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.duo--texte-droite > .duo__media { order: -1; }

/* Deux blocs de hauteurs inégales : ils s'alignent en haut plutôt que de
   flotter au centre l'un de l'autre. */
.duo--haut { align-items: start; }
@media (max-width: 1040px) { .duo--haut { grid-template-columns: 1fr; } }

/* Mis en colonne, les blocs à mesure de lecture laissent la grille décider
   de leur largeur, et le tableau resserre sa colonne d'intitulés. */
.duo > .specs-enveloppe, .duo > .encadre { max-width: none; }
.duo .specs th { width: 11rem; }
/* La colonne d'intitulés étant resserrée, le tableau n'a plus besoin
   d'une largeur minimale calée sur la mise en page pleine largeur. */
.duo .specs { min-width: 22rem; }

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo--texte-droite > .duo__media { order: 0; }
}
.duo__media img { border-radius: var(--r-lg); }

/* --- Cartes gamme -------------------------------------------------------- */
.gamme {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gamme__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.gamme__media img { width: 100%; height: 100%; object-fit: cover; }
.gamme__etiquette {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--vert);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--titre); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.95rem;
}
.gamme--gari .gamme__etiquette { background: var(--orange); color: #fff; }
.gamme__corps { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; flex: 1; }
.gamme__corps h3 { font-size: var(--t-lg); }
.gamme__slogan {
  font-family: var(--titre); font-weight: 700; font-size: var(--t-base);
  color: var(--vert);
}
.gamme--gari .gamme__slogan { color: #B4560A; }
.gamme__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.gamme__liste li {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem;
  font-size: var(--t-sm); padding-block: 0.5rem;
  border-top: 1px solid var(--filet);
}
.gamme__liste .cle {
  font-weight: 700; color: var(--encre-douce);
  font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase;
}
.gamme__pied { margin-top: auto; padding-top: 0.5rem; }

/* Mention de statut — l'amidon n'est pas encore produit */
.statut {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--lime-pale); color: var(--vert-fonce);
  border-radius: var(--r-pill);
  font-family: var(--titre); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.4rem 0.9rem;
}
.statut--actif { background: var(--vert-clair); color: var(--vert-nuit); }

/* --- Chiffres ------------------------------------------------------------ */
/* Sur fond clair, le chiffre n'est pas une carte : un filet le pose,
   la valeur porte seule. */
.chiffre {
  border-top: 3px solid var(--vert-clair);
  padding-top: 1.15rem;
}
.chiffre__valeur { color: var(--vert); }
.chiffre__libelle { color: var(--encre-douce); }

/* Dans un bandeau sombre, il reprend l'aspect d'une carte. */
.chiffre__valeur {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(2rem, 5vw, var(--t-2xl));
  line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.chiffre__libelle { font-size: var(--t-sm); margin-top: 0.75rem; }

/* --- Étapes du procédé --------------------------------------------------- */
.etapes { counter-reset: etape; display: grid; gap: 1.1rem; }
.etape {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 4rem;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: var(--r-md);
}
.etape::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  position: absolute; left: 1.25rem; top: 1.1rem;
  font-family: var(--titre); font-weight: 700; font-size: var(--t-sm);
  color: var(--vert);
  font-variant-numeric: tabular-nums;
}
.etape h3 { font-size: var(--t-base); margin-bottom: 0.25rem; }
.etape p { font-size: var(--t-sm); color: var(--encre-douce); }

/* --- Témoignages --------------------------------------------------------- */
.temoignage {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
  border-top: 3px solid var(--vert-clair);
  padding-top: 1.25rem;
}
.temoignage blockquote { margin: 0; font-size: var(--t-base); color: var(--encre); }
.temoignage blockquote::before { content: "«\00a0"; color: var(--vert-clair); font-weight: 700; }
.temoignage blockquote::after  { content: "\00a0»"; color: var(--vert-clair); font-weight: 700; }
.temoignage figcaption { margin-top: auto; border-top: 1px solid var(--filet); padding-top: 1rem; }
.temoignage__nom { font-family: var(--titre); font-weight: 700; font-size: var(--t-sm); }
.temoignage__role { font-size: var(--t-xs); color: var(--encre-douce); letter-spacing: .04em; text-transform: uppercase; }

/* --- Valeurs ------------------------------------------------------------- */
.valeur {
  border-left: 3px solid var(--vert-clair);
  padding-left: 1.1rem;
}
.valeur h3 { font-size: var(--t-base); margin-bottom: 0.4rem; }
.valeur p { font-size: var(--t-sm); color: var(--encre-douce); }
.valeur::before {
  content: "";
  display: block;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--lime-pale) var(--feuille) center / 17px no-repeat;
  margin-bottom: 0.9rem;
}

/* --- Partenaires --------------------------------------------------------- */
.partenaire {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 3px solid var(--vert-clair);
  padding-top: 1.1rem;
}
.partenaire__nom { font-family: var(--titre); font-weight: 700; font-size: var(--t-sm); }
.partenaire__role { font-size: var(--t-xs); color: var(--encre-douce); }

/* --- Tableau de spécifications ------------------------------------------- */
.specs-enveloppe {
  overflow-x: auto;
  max-width: calc(var(--largeur-bloc) + 8rem);
  border-top: 3px solid var(--vert-clair);
  padding-top: 0.25rem;
}
.specs { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 30rem; }
.specs caption {
  text-align: left; font-family: var(--titre); font-weight: 700;
  font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--vert); padding-bottom: 1rem;
}
.specs th, .specs td {
  text-align: left; padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--filet); vertical-align: top;
}
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th {
  font-family: var(--titre); font-weight: 700; width: 16rem;
  color: var(--encre-douce);
  font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase;
}
.specs td { font-variant-numeric: tabular-nums; }

/* --- Cartes d'application ------------------------------------------------ */
.application {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  border-top: 3px solid var(--vert-clair);
  padding-top: 1.1rem;
}
.application h3 { font-size: var(--t-base); }
.application p { font-size: var(--t-sm); color: var(--encre-douce); }
.application__secteur {
  align-self: flex-start;
  background: var(--lime-pale); color: var(--vert-fonce);
  border-radius: var(--r-pill);
  font-family: var(--titre); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
}

/* --- Recettes ------------------------------------------------------------ */
.recette {
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  height: 100%;
}
.recette h3 { font-size: var(--t-md); }
.recette__temps {
  align-self: flex-start;
  background: #FDEEE0; color: #B4560A;
  border-radius: var(--r-pill);
  font-family: var(--titre); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
}
.recette ol { margin: 0; padding-left: 1.2rem; font-size: var(--t-sm); display: grid; gap: 0.45rem; }
.recette p { font-size: var(--t-sm); color: var(--encre-douce); }

/* --- Formats produit ----------------------------------------------------- */
.format {
  border-top: 3px solid var(--vert-clair);
  padding-top: 1.15rem;
}
.format__poids {
  font-family: var(--titre); font-weight: 700; font-size: var(--t-xl);
  line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  color: var(--vert);
}
.format__usage { font-size: var(--t-sm); color: var(--encre-douce); margin-top: 0.6rem; }
/* --- Personnes ----------------------------------------------------------- */
.personne {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.personne__nom { font-family: var(--titre); font-weight: 700; font-size: var(--t-md); }
.personne__fonction {
  font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--vert); font-weight: 700;
}
.personne__contact { font-size: var(--t-sm); color: var(--encre-douce); }

/* --- Formulaires --------------------------------------------------------- */
.formulaire {
  display: grid; gap: 1.1rem;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--ombre-carte);
}
.champ { display: grid; gap: 0.4rem; }
.champ label { font-family: var(--titre); font-weight: 700; font-size: var(--t-sm); }
.champ__aide { font-size: var(--t-xs); color: var(--encre-douce); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: var(--t-base);
  border: 1px solid var(--filet); background: var(--creme); color: var(--encre);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem; width: 100%;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--vert); background: var(--papier);
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .champ--duo { grid-template-columns: 1fr; } }
.requis { color: var(--orange); }
.pot-de-miel { position: absolute; left: -9999px; }

/* --- Encadré ------------------------------------------------------------- */
.encadre {
  background: var(--lime-pale);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  display: grid; gap: 0.5rem;
  max-width: var(--largeur-bloc);
}
/* Quand l'encadré conclut une section au lieu de l'accompagner, il en épouse
   la largeur plutôt que de rester en retrait. */
.encadre--large { max-width: none; }
/* Au-delà de cette largeur, l'intitulé passe à gauche et le texte à droite :
   la boîte occupe sa place sans étirer la ligne au-delà du confort de lecture. */
@media (min-width: 900px) {
  .encadre--large {
    grid-template-columns: 15rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 2.5rem;
  }
}
.encadre__action { display: flex; }
@media (max-width: 899px) { .encadre__action { margin-top: 0.5rem; } }
.encadre h3 { font-size: var(--t-base); }
.encadre p { font-size: var(--t-sm); color: #3D5330; }

/* --- Liste à puces feuille ----------------------------------------------- */
.liste-verte { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.liste-verte li { position: relative; padding-left: 1.75rem; }
.liste-verte li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 15px; height: 15px;
  background: var(--feuille) center / contain no-repeat;
}

/* --- Bandeau d'appel ----------------------------------------------------- */
/* Le bloc d'appel s'aligne exactement sur la colonne de contenu des sections
   qui l'entourent : même bord gauche que leurs titres, même bord droit. */
.appel {
  background: var(--vert);
  color: #fff;
  border-radius: var(--r-xl);
  width: calc(100% - 2 * var(--gouttiere));
  max-width: calc(var(--largeur) - 2 * var(--gouttiere));
  margin-inline: auto;
  margin-block: var(--encart);
}
.appel .enveloppe {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
  padding: clamp(2.25rem, 4.5vw, 3.25rem) clamp(1.5rem, 3.5vw, 3rem);
}
.appel .pile { flex: 1 1 26rem; }
.appel h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, var(--t-xl)); }
.appel p { color: #DCE7CE; }

/* --- Pied de page -------------------------------------------------------- */
.pied {
  position: relative;
  isolation: isolate;
  background: var(--vert-nuit);
  color: #C6D5B8;
  padding-block: var(--section) 0;
  overflow: hidden;
}

/* Photo de la terre de Faranah, très assombrie : elle donne de la matière
   sans jamais disputer la lisibilité au texte. */
.pied__fond { position: absolute; inset: 0; z-index: -2; }
.pied__fond img { width: 100%; height: 100%; object-fit: cover; }
.pied::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16, 30, 8, .95) 0%, rgba(16, 30, 8, .985) 100%);
}

.pied__grille {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 940px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pied__grille { grid-template-columns: 1fr; } }

/* Un filet sépare la colonne de marque des colonnes de liens.
   Sélection par voisinage : « :first-of-type » compterait les div, et
   désignerait la colonne de marque elle-même. */
.pied__marque + .pied__colonne {
  padding-left: clamp(0rem, 3vw, 3rem);
  border-left: 1px solid rgba(255, 255, 255, .13);
}
@media (max-width: 940px) {
  .pied__marque + .pied__colonne { padding-left: 0; border-left: 0; }
}

.pied h3 {
  color: #fff;
  font-size: var(--t-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.pied h3::before {
  content: "";
  width: 15px; height: 15px; flex: none;
  background: var(--feuille-claire) center / contain no-repeat;
}

.pied a { color: #C6D5B8; text-decoration: none; }
.pied a:hover { color: var(--vert-clair); text-decoration: underline; }

.pied__logo { width: 200px; margin-bottom: 1.75rem; }

/* Coordonnées : chaque ligne précédée d'une pastille verte. */
.pied__coord { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.pied__coord li {
  display: flex; align-items: flex-start; gap: 0.9rem;
  font-size: var(--t-sm); line-height: 1.5;
}
.pied__icone {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--vert-clair);
  color: var(--vert-nuit);
}
.pied__icone svg { width: 18px; height: 18px; }

.pied__liens {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.7rem; font-size: var(--t-sm);
}
.pied__liens a {
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.pied__liens a::before {
  content: "";
  width: .75em; height: .75em;
  flex: none;
  background-color: var(--vert-clair);
  -webkit-mask: var(--fleche) center / contain no-repeat;
  mask: var(--fleche) center / contain no-repeat;
}

.pied__intro { font-size: var(--t-sm); margin-top: 1.1rem; }

.pied__reseaux { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.pied__reseaux a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #D6E3C9;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pied__reseaux a:hover {
  background: var(--vert-clair);
  border-color: var(--vert-clair);
  color: var(--vert-nuit);
}
.pied__reseaux svg { width: 17px; height: 17px; }

/* Lettre d'information : bouton d'envoi logé dans le champ. */
.lettre { display: grid; gap: 0.6rem; }
.lettre__champ {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.35rem 0.3rem 0.5rem;
}
.lettre input[type="email"] {
  flex: 1 1 6rem; min-width: 0;
  border: 0; background: transparent; color: #fff;
  padding: 0.6rem 0.75rem; font: inherit; font-size: var(--t-sm);
}
.lettre input[type="email"]::placeholder { color: #869A78; }
.lettre input[type="email"]:focus { outline: none; }
.lettre button {
  flex: none;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--vert-clair); color: var(--vert-nuit);
  cursor: pointer;
  transition: background-color .2s ease;
}
.lettre button:hover { background: #C2EE28; }
.lettre button svg { width: 17px; height: 17px; }

/* Barre finale, centrée. */
.pied__bas {
  margin-top: var(--section);
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: center; justify-content: center;
  text-align: center;
  font-size: var(--t-xs);
}
.pied__mention { color: #8CA37B; max-width: none; }
.pied__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; }

/* Retour en haut de page. */
.haut-de-page {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 90;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--vert-clair); color: var(--vert-nuit);
  box-shadow: var(--ombre-haute);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.haut-de-page:hover { background: #C2EE28; transform: translateY(-2px); }
.haut-de-page svg { width: 18px; height: 18px; }
.haut-de-page[hidden] { display: none; }

/* --- Citation en ligne --------------------------------------------------- */
.citation {
  margin: 0;
  background: var(--creme);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 0.6rem;
}
.section--creme .citation { background: var(--papier); }

/* --- Compléments --------------------------------------------------------- */
.pied__intro { font-size: var(--t-sm); }
.chiffre__libelle strong { color: #FFFFFF; font-weight: 700; }

/* Logos partenaires : cartouches neutres tant que les logos officiels
   ne nous ont pas été transmis. */
.partenaire {
  display: flex; flex-direction: column; gap: 0.4rem; justify-content: center;
  min-height: 8.5rem;
}

/* --- Apparition au défilement --------------------------------------------
   Le contenu est visible par défaut. La classe .anim-prete, posée sur <html>
   par un script d'en-tête, n'arrive que si le navigateur exécute le JS et que
   le visiteur n'a pas demandé moins d'animations. Sans elle, rien ne se cache :
   le site reste entièrement lisible script désactivé.
   -------------------------------------------------------------------------- */
:root {
  --anim-decalage: 22px;
  --anim-duree: 0.7s;
  --anim-courbe: cubic-bezier(.22, .61, .36, 1);
}

.anim-prete [data-anim] {
  opacity: 0;
  transform: translate3d(0, var(--anim-decalage), 0);
  transition:
    opacity var(--anim-duree) var(--anim-courbe),
    transform var(--anim-duree) var(--anim-courbe);
  transition-delay: var(--anim-retard, 0ms);
}

.anim-prete [data-anim][data-revele] {
  opacity: 1;
  transform: none;
}

/* Les blocs média glissent depuis leur côté, pour accompagner la lecture. */
.anim-prete .duo > .duo__media[data-anim] {
  transform: translate3d(calc(var(--anim-decalage) * -1.2), 0, 0);
}
.anim-prete .duo--texte-droite > .duo__media[data-anim] {
  transform: translate3d(calc(var(--anim-decalage) * 1.2), 0, 0);
}
.anim-prete .duo > .duo__media[data-anim][data-revele] { transform: none; }

/* En colonne unique, le glissement latéral n'a plus de sens — et surtout, le
   décalage vers la droite dépassait la largeur de la page tant que le bloc
   n'était pas révélé. On revient à la montée verticale. */
@media (max-width: 900px) {
  .anim-prete .duo > .duo__media[data-anim],
  .anim-prete .duo--texte-droite > .duo__media[data-anim] {
    transform: translate3d(0, var(--anim-decalage), 0);
  }
  .anim-prete .duo > .duo__media[data-anim][data-revele] { transform: none; }
}

/* Filet de sécurité : si la préférence système change en cours de visite. */
@media (prefers-reduced-motion: reduce) {
  .anim-prete [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Pages légales -------------------------------------------------------- */

/* Bandeau sans photo : le dégradé seul suffit à porter le titre. */
.bandeau--court .bandeau__voile {
  background: linear-gradient(103deg, var(--vert-profond) 0%, var(--vert-nuit) 100%);
}
.bandeau--court .bandeau__contenu { padding-block: clamp(2.25rem, 5vw, 3.5rem); }

/* Colonne de lecture étroite : un texte juridique se lit en une seule colonne. */
.legal { max-width: 54rem; }
.legal > * + * { margin-top: 1.1rem; }

.legal h2 {
  font-size: var(--t-lg);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--vert-clair);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: var(--t-base); margin-top: 2rem; }
.legal p { max-width: none; }
.legal .specs-enveloppe { margin-top: 1.5rem; }
.legal .specs { min-width: 26rem; }
.legal .specs thead th {
  width: auto;
  color: var(--vert);
  border-bottom: 2px solid var(--vert-clair);
}
.legal .encadre { margin-top: 1.5rem; }

/* Champ en attente d'une information que seule ABIG peut fournir. */
.a-completer {
  display: inline-block;
  background: #FDF0E2;
  border: 1px dashed var(--orange);
  border-radius: var(--r-sm);
  color: #A34F08;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
}

.legal__maj {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
  font-size: var(--t-sm);
  color: var(--encre-douce);
}

/* Liens légaux du pied de page */
.pied__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: var(--t-xs);
}
.pied__signature { font-size: var(--t-xs); color: #8DA07C; }
.pied__signature a { color: #B9C9AA; text-decoration: underline; }
.pied__signature a:hover { color: var(--vert-clair); }

/* Sur téléphone, un tableau intitulé/valeur se lit mieux empilé qu'en
   défilement horizontal. Réservé aux tableaux à deux colonnes : celui des
   données personnelles en compte trois et garde sa forme. */
@media (max-width: 620px) {
  .specs--paire,
  .specs--paire tbody,
  .specs--paire tr,
  .specs--paire th,
  .specs--paire td {
    display: block;
    width: auto;
  }
  /* Ces deux contextes posent une largeur minimale plus spécifique. */
  .specs--paire,
  .duo .specs--paire,
  .legal .specs--paire { min-width: 0; }
  .specs--paire tr {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--filet);
  }
  .specs--paire tr:last-child { border-bottom: 0; }
  .specs--paire th,
  .specs--paire td { border: 0; padding: 0; }
  .specs--paire th { margin-bottom: 0.3rem; }
  .specs--paire tbody tr:first-child th,
  .specs--paire tbody tr:first-child td { border-top: 0; }
}

/* --- Carte --------------------------------------------------------------- */
.carte { margin: 0; display: grid; gap: 1rem; }
.carte__cadre {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--filet);
  background: var(--creme-fonce);
}
.carte__cadre iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
@media (max-width: 700px) { .carte__cadre { aspect-ratio: 4 / 3; } }

.carte__pied {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem 1.5rem;
  font-size: var(--t-sm); color: var(--encre-douce);
}

/* --- Onglets ------------------------------------------------------------- */
.onglets { display: grid; gap: 2rem; }

.onglets__barre {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: var(--r-pill);
  width: fit-content;
}
.onglets__barre[hidden] { display: none; }

.onglets__bouton {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--encre-douce);
  font-family: var(--titre); font-weight: 700; font-size: var(--t-sm);
  padding: 0.65rem 1.35rem;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.onglets__bouton:hover { background: var(--lime-pale); color: var(--vert-fonce); }
.onglets__bouton[aria-selected="true"] { background: var(--vert-clair); color: var(--vert-nuit); }

.onglets__compte {
  font-size: var(--t-xs);
  background: rgba(22, 37, 13, .12);
  border-radius: var(--r-pill);
  padding: 0.1rem 0.5rem;
  font-variant-numeric: tabular-nums;
}
.onglets__bouton[aria-selected="true"] .onglets__compte { background: rgba(22, 37, 13, .18); }

/* Sur écran étroit, la barre occupe toute la largeur et ses boutons se
   partagent la place, plutôt que de pousser la page. */
@media (max-width: 460px) {
  .onglets__barre { width: 100%; }
  .onglets__bouton { flex: 1 1 0; justify-content: center; padding-inline: 0.75rem; }
}

/* Sans script, les deux panneaux restent affichés, chacun sous son titre.
   Avec script, la barre d'onglets apparaît et les titres deviennent inutiles. */
.onglets__titre {
  font-size: var(--t-md);
  margin-bottom: 1.25rem;
}
.onglets__panneau + .onglets__panneau { margin-top: 2.5rem; }
[data-onglets="actif"] .onglets__titre { display: none; }
[data-onglets="actif"] .onglets__panneau + .onglets__panneau { margin-top: 0; }
.onglets__panneau[hidden] { display: none; }

/* --- Galerie ------------------------------------------------------------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.galerie--videos { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .galerie--videos { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .galerie { grid-template-columns: 1fr; }
}

.galerie__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Les médias partagent un même cadre : la grille reste régulière quelles que
   soient les proportions d'origine des photos et des vidéos. */
.galerie__item video,
.galerie__vue {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--creme-fonce);
  border: 1px solid var(--filet);
  overflow: hidden;
}
/* Une vidéo n'est jamais rognée : on la contient dans un cadre 16/9 sur fond
   sombre. Rogner l'affiche tromperait sur le cadrage réel du film. */
.galerie__item video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--vert-nuit);
}


.galerie__vue {
  padding: 0;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.galerie__vue img { width: 100%; height: 100%; object-fit: cover; }
.galerie__vue:hover { transform: translateY(-2px); box-shadow: var(--ombre-carte); }

.galerie__item figcaption {
  font-size: var(--t-sm);
  color: var(--encre-douce);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.galerie__duree {
  font-family: var(--titre);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--vert);
  background: var(--lime-pale);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

/* --- Agrandissement d'une photo ------------------------------------------ */
.loupe {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1400px);
  max-height: 94vh;
  overflow: visible;
}
.loupe::backdrop { background: rgba(10, 18, 6, .88); }
.loupe img {
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--r-lg);
}
.loupe__pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  color: #E9F0E0;
  font-size: var(--t-sm);
}
.loupe__legende { margin: 0; max-width: 70ch; color: #D6E3C9; }
.loupe__fermer {
  flex: none;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.loupe__fermer:hover { background: rgba(255,255,255,.16); }
.loupe__fermer svg { width: 15px; height: 15px; fill: currentColor; }

/* --- Bandeau d'annonce --------------------------------------------------- */
.annonce {
  background: var(--orange);
  color: #2A1600;
  font-size: var(--t-sm);
  position: relative;
  z-index: 101;
}
.annonce .enveloppe { padding-block: 0.7rem; }
.annonce p {
  margin: 0; max-width: none; text-align: center;
  font-family: var(--titre); font-weight: 700;
}
.annonce a { color: #2A1600; text-underline-offset: 3px; }
.annonce a:hover { color: #000; }

/* --- Points de vente ------------------------------------------------------ */
.vente {
  background: var(--papier);
  border: 1px solid var(--filet);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.5rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}
.vente__type {
  font-family: var(--titre); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--vert);
}
.vente__nom { font-size: var(--t-base); }
.vente__lieu { font-size: var(--t-sm); color: var(--encre-douce); }
.vente__tel { font-size: var(--t-sm); font-weight: 700; }

/* --- Entête sur petit écran ----------------------------------------------
   La barre de contact occupe deux lignes sur un téléphone pour trois
   informations déjà présentes au pied de page. On la retire, et le numéro
   — la seule action utile en mobilité — passe en bouton d'appel. */
.entete__appel { display: none; }

@media (max-width: 780px) {
  .chapeau .barre-contact { display: none; }

  .entete__appel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    margin-left: auto;
    margin-right: 0.6rem;
  }
  .entete__appel svg { width: 18px; height: 18px; }
  .chapeau[data-fige] .entete__appel {
    background: var(--lime-pale);
    border-color: transparent;
    color: var(--vert-fonce);
  }
  .entete .enveloppe { gap: 0.5rem; }
}

/* --- Section « histoire » -------------------------------------------------
   Trois blocs : l'accroche, le portrait, le récit. Sur grand écran le
   portrait occupe la colonne de droite sur toute la hauteur ; sur téléphone
   il se glisse entre le titre et le récit, plutôt que de le clore. */
.duo--histoire {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "tete   media"
    "corps  media";
}
.histoire__tete  { grid-area: tete; display: grid; gap: 0.75rem; }
.histoire__corps { grid-area: corps; }
.duo--histoire > .duo__media { grid-area: media; }

@media (max-width: 900px) {
  .duo--histoire {
    grid-template-columns: 1fr;
    grid-template-areas: "tete" "media" "corps";
    gap: 1.5rem;
  }
}

/* --- Bandeau d'appel sur téléphone ---------------------------------------
   Les deux actions doivent tenir côte à côte : empilées, elles allongent le
   bandeau et le numéro se retrouve loin de l'invitation à appeler. */
@media (max-width: 780px) {
  .appel .enveloppe { gap: 1.25rem; }
  .appel .groupe-boutons { gap: 0.5rem; width: 100%; }
  .appel .bouton {
    padding: 0.7rem 0.75rem;
    font-size: var(--t-xs);
    letter-spacing: 0;
    gap: 0;
    flex: 0 1 auto;
    white-space: nowrap;
  }
  /* La flèche coûte une quinzaine de pixels : c'est elle qui faisait passer
     le second bouton à la ligne. Le libellé se suffit à lui-même. */
  .appel .bouton::after { display: none; }
  .appel .groupe-boutons { gap: 0.45rem; flex-wrap: wrap; width: auto; }
}
