/* ============================================
   PAGE PRODUCTION — section « fleur »
   Descente le long d'une fleur pressée qui se colore au scroll ; 3
   engagements en cascade syllabe, lignes de renvoi botaniques vers la fleur,
   dissolution dans le blanc en fin de section. JS : production.js.
   ============================================ */

/* overflow:clip (et non hidden) : borne les fleurs du footer sans créer de
   conteneur de défilement, les pins sticky restent calés sur le viewport. */
.stage-wrap--clip {
  overflow: clip;
}

.prod {
  position: relative;
  height: 420vh;
  /* contexte d'empilement propre : les calques internes restent sous le footer */
  isolation: isolate;
}

.prod-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--white);
}

.prod-stage {
  position: absolute;
  inset: 0;
}

/* Respiration entre « Notre Engagement » et le footer */
.prod-outro {
  min-height: clamp(9rem, 20vh, 15rem);
  background: var(--white);
}

/* Fleur : même image en 2 calques, N&B dessous, couleur dessus (opacité
   liée au scroll). */
.prod .flo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  z-index: 1;
}

.prod .flo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* entrée au chargement (.is-in, JS) : même geste que .sh-flower (Prestations),
   sur les images car le transform de .flo est piloté par le scroll */
.prod .flo img {
  transform: translateY(46px) scale(0.965);
  transition: transform 1s var(--ease);
}
.prod .flo.is-in img { transform: none; }

.prod .flo .gry {
  filter: grayscale(1) contrast(0.92) brightness(1.04);
}

.prod .flo .col {
  filter: saturate(1.14);
  opacity: 0;
  will-change: opacity;
}

/* Lignes de renvoi (point + anneau + coude) */
.prod .calls {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.prod .calls path {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.25;
  stroke-opacity: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prod .calls .dot {
  fill: var(--indigo);
  fill-opacity: 0.72;
}

.prod .calls .ring {
  fill: none;
  stroke: var(--indigo);
  stroke-opacity: 0.32;
  stroke-width: 1;
}

.prod .cl {
  opacity: 0;
}

/* Blocs texte */
.prod .cap {
  position: absolute;
  z-index: 4;
  width: min(30ch, 33vw);
  transform: translate(0, -50%);
  --halo: 0;
}

.prod .cap::before {
  content: "";
  position: absolute;
  inset: -1.6rem -1.1rem;
  z-index: -1;
  opacity: var(--halo);
  background: radial-gradient(ellipse at center, var(--white) 46%, rgba(255, 255, 255, 0) 82%);
}

.prod .cap-l {
  left: clamp(1.5rem, 6vw, 6rem);
}

.prod .cap-r {
  right: clamp(1.5rem, 6vw, 6rem);
}

.prod .c0 {
  top: 34%;
}

.prod .c1 {
  top: 50%;
}

.prod .c2 {
  top: 57%;
}

.prod .cap h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.05;
  color: var(--indigo-deep);
  text-wrap: balance;
}

.prod .cap p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.3vw, 1.06rem);
  line-height: 1.6;
  color: var(--ink-text-dim);
}

.prod .cap .s {
  display: inline-block;
}

.prod .cap .s-word {
  white-space: nowrap;
}

.prod .cap .p-gap {
  display: block;
  height: 0.55em;
}

/* will-change seulement pendant l'animation (posé par le JS) */
.prod .cap.is-live .s {
  will-change: opacity, transform, filter;
}

/* Voile blanc de fin de section */
.prod .veil {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
}

/* Indice de scroll, masqué au premier défilement */
.prod-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  z-index: 5;
  transform: translateX(-50%);
  font-size: 1.1rem;
  color: var(--violet-mid);
  transition: opacity 0.5s var(--ease);
  animation: prodCueBob 1.9s var(--ease) infinite;
}

@keyframes prodCueBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 680px) {
  /* Bloc 0 à gauche ; blocs 1 et 2 au même endroit, à droite. Pas de fond
     derrière le texte, lignes de renvoi masquées. */
  .prod .cap {
    transform: none;
    left: 1.1rem;
    right: auto;
    width: 13rem;
    text-align: left;
  }

  .prod .cap::before { display: none; }

  /* Chaque bloc ancré par left OU right avec une largeur bornée : aucun
     rognage du plus petit au plus grand mobile. */
  .prod .c0 {
    top: 4%;
    left: 2rem;
    right: 1.5rem;                         /* largeur = viewport − marges */
    width: auto;
  }

  .prod .c1 {
    top: 50%;
    left: 2rem;
    right: auto;
    text-align: left;
    width: min(13rem, calc(100vw - 4rem));
  }

  .prod .c2 {
    top: 70%;
    left: auto;
    right: 1.5rem;
    text-align: right;
    width: min(13rem, calc(100vw - 4rem));
  }

  .prod .cap h3 { font-size: 1.7rem; }
  .prod .cap p { font-size: 0.88rem; line-height: 1.55; }

  .prod .calls { display: none; }
}

/* Petits mobiles (≤380px) : bloc « Fleurs locales » remonté pour dégager la
   fleur. */
@media (max-width: 380px) {
  .prod .c0 { top: 0%; }
}

/* Tablette (681–1024px, + iPad Pro 13" portrait jusqu'à 1100px) : mise en
   page proche du mobile, sans halo derrière le texte.
   Bloc 0 à gauche en haut, bloc 1 à gauche de la fleur, bloc 2 à droite.
   Lignes de renvoi masquées : la fleur déborde du viewport à ce format. */
@media (min-width: 681px) and (max-width: 1024px),
       (min-width: 1025px) and (max-width: 1100px) and (orientation: portrait) {
  .prod .cap::before { display: none; }
  .prod .calls { display: none; }

  /* décalage ajouté au transform JS de la fleur */
  .prod .flo { top: 16vh; }

  .prod .c0 {
    top: 14%;
    left: clamp(1.5rem, 6vw, 6rem);
    right: clamp(1.5rem, 6vw, 6rem);
    width: auto;
    text-align: left;
  }

  .prod .c1 {
    top: 62%;
    left: clamp(1.5rem, 6vw, 6rem);
    right: auto;
    width: min(25rem, 54vw);
    text-align: left;
  }

  .prod .c2 {
    top: 81%;
    left: auto;
    right: clamp(1.5rem, 6vw, 6rem);
    width: min(20rem, 54vw);
    text-align: right;
  }

  .prod .cap p {
    font-size: clamp(1.5rem, 1.3vw, 1.06rem);
  }
}

/* iPad mini paysage (~1133px, hauteur ≤800px) : bloc « Biodiversité »
   remonté. pointer:coarse évite de capter une fenêtre desktop peu haute. */
@media (min-width: 1000px) and (orientation: landscape) and (max-height: 800px) and (pointer: coarse) {
  .prod .c2 {
    top: 75%;
    left: auto;
    right: clamp(1.5rem, 6vw, 6rem);
    width: min(20rem, 54vw);
    text-align: right;
  }
}

/* ============================================
   SECTION « NOTRE ENGAGEMENT »
   .ve-pin épinglé ; fond de pétales séchés en fondu, titre en haut, 3 blocs
   dans un scroll interne vertical à scroll-snap (même recette que la
   section « Cultiver autrement » d'à propos). JS : production.js.
   ============================================ */
.ve {
  position: relative;
  /* pin (100vh) + ~60vh de marge pendant laquelle il reste collé ; ne jamais
     descendre à 100vh : le sticky n'aurait plus de fenêtre, .is-armed
     deviendrait instable */
  height: 160vh;
  /* Chevauche les 100 derniers vh de .prod : la section se cale plein écran
     dès que le pin de .prod se libère. Masquée tant que .is-armed n'est pas posé. */
  margin-top: -100vh;
  /* contexte d'empilement propre, comme .prod */
  isolation: isolate;
}

.ve-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.ve.is-armed .ve-pin {
  opacity: 1;
}

.ve-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.06);
  transition: opacity 1.8s var(--ease), filter 1.8s var(--ease), transform 1.8s var(--ease);
}
.ve.in .ve-bg { opacity: 1; filter: blur(0); transform: none; }

/* Titre sur 2 lignes : « Notre » en kicker, « ENGAGEMENT » en majuscules
   (Poppins 200, comme le titre du footer). */
.ve-title {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(6%, 9vh, 12%);
  z-index: 3;
  text-align: center;
  padding: 0 1.2rem;
}
.ve-title span {
  display: block;
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--indigo);
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.93);
  transition: opacity 1.6s var(--ease), filter 1.6s var(--ease), transform 1.6s var(--ease);
}
/* même taille que le « Nos » de « Nos Créations » (desktop), à toutes les
   largeurs */
.ve-title-kicker {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  text-transform: none;
  margin-bottom: 0.4rem;
}
.ve-title-main {
  font-size: clamp(1.65rem, 4.6vw, 3.1rem);
  text-transform: uppercase;
}
.ve.in .ve-title span { opacity: 1; filter: blur(0); transform: none; }

/* Rail : scroll interne vertical sur toute la hauteur du pin, un panneau par
   bloc avec scroll-snap-stop (même recette que .ap-farm2-snap, à propos).
   overflow-y reste hidden tant que .is-armed n'est pas posé (JS), sinon il
   intercepterait le scroll avant que la section soit montée. */
.ve-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.3rem;
  right: 1.3rem;
  z-index: 2;
  overflow-y: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* entrée comme .ap-farm2-snap : fondu + léger scale, sans flou */
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
}
.ve-rail.is-armed { overflow-y: auto; }
.ve-rail::-webkit-scrollbar { display: none; }
.ve.in .ve-rail { opacity: 1; transform: none; }

/* Fondu en haut du rail, sous le titre fixe : le bloc qui s'en va se dissout
   avant d'atteindre « Notre ENGAGEMENT » au lieu de passer par-dessus.
   --ve-fade = début du dégradé ; au repos le texte est sous la zone. */
@property --ve-fade {
  syntax: "<length>";
  inherits: false;
  initial-value: 22vh;
}
.ve-rail {
  --ve-fade: 22vh;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent var(--ve-fade), #000 calc(var(--ve-fade) + 10vh));
  mask-image: linear-gradient(to bottom, transparent 0, transparent var(--ve-fade), #000 calc(var(--ve-fade) + 10vh));
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease), --ve-fade 0.6s var(--ease);
}

.ve-block {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* place sous le titre ; .appel n'a pas ce padding (titre masqué à son tour) */
  padding-top: calc(30vh + 1.5rem);
}
/* Apparition une fois par bloc (.in sur .ve-block, JS), comme .ap-farm2-group.
   Sur le contenu et jamais sur le panneau : un scale sur le panneau décale son
   point de snap, et le navigateur se recale (saut) quand le scale revient à 1. */
.ve-block-inner {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.ve-block.in .ve-block-inner { opacity: 1; transform: none; }
.ve-block b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}
/* même recette que .ap-value-body p (à propos) */
.ve-block p {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.2rem, 5vw, 1.55rem);
  line-height: 1.5;
  color: var(--indigo-deep);
}

/* Mobile : fondu seul, sans scale (comme .ap-farm2 ≤900px) */
@media (max-width: 900px) {
  .ve-rail { transform: none; transition: opacity 1.6s var(--ease), --ve-fade 0.6s var(--ease); }
  .ve-block-inner { transform: none; transition: opacity 1.4s var(--ease); }
}

@media (max-width: 1400px), (max-width: 1450px) and (pointer: coarse) {
  /* titre remonté (2 lignes) */
  .ve-title { top: 2.5%; }

  /* fond recadré à droite + léger fondu en haut (mask-image) pour la
     lisibilité du titre */
  .ve-bg {
    object-position: 2% center;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .85) 10%, #000 20%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .85) 10%, #000 20%);
  }

  /* .appel = 4e panneau du rail en mobile/tablette (déplacé par le JS) ;
     en desktop elle reste une section à part, comme sur à propos */
  .ve-rail > .appel {
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* transparent : pas de rectangle blanc par-dessus la fleur */
    background: transparent;
  }
  /* panneau .appel actif : plus de titre à protéger, le fondu du haut s'efface */
  .ve.ve-bg-out .ve-rail { --ve-fade: -12vh; }
  /* fond + titre disparaissent quand le panneau .appel est actif (.ve-bg-out, JS) */
  .ve.ve-bg-out .ve-bg {
    opacity: 0;
    filter: blur(14px);
    transform: scale(1.06);
  }
  .ve.ve-bg-out .ve-title span {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.93);
  }

  /* .appel gère déjà son espace : respiration réduite */
  .prod-outro { min-height: clamp(3rem, 6vh, 5rem); }
}

/* Mobile : titre plus haut et plus petit, zone de fondu remontée */
@media (max-width: 720px) {
  .ve-rail { --ve-fade: 12vh; }
}

/* Tablette et desktop : colonne de texte resserrée, blocs centrés à 50 % de
   largeur, alignés en haut du panneau */
@media (min-width: 721px) {
  .ve-rail { left: clamp(1.3rem, 15vw, 20rem); right: clamp(1.3rem, 15vw, 20rem); }
  .ve-block { width: 50%; margin: 0 auto; justify-content: flex-start; padding-top: calc(30vh + 5rem); }
}

/* Tablette : respiration agrandie (la fleur gauche du footer touchait le lien) */
@media (min-width: 721px) and (max-width: 1400px),
       (min-width: 721px) and (max-width: 1450px) and (pointer: coarse) {
  .prod-outro { min-height: 28rem; }
}

/* Desktop : texte un peu plus grand */
@media (min-width: 1401px) {
  .ve-block p { font-size: clamp(1.55rem, 1.7vw, 2rem); }
}

/* Grandes tablettes en portrait : blocs plus bas pour dégager la fleur du
   fond. min-width:801px exclut l'iPad mini. */
@media (min-width: 801px) and (max-width: 1400px) and (orientation: portrait),
       (min-width: 801px) and (max-width: 1450px) and (orientation: portrait) and (pointer: coarse) {
  .ve-block { padding-top: calc(30vh + 10rem); }
}

@media (prefers-reduced-motion: reduce) {
  .ve-pin,
  .ve-title span,
  .ve-rail,
  .ve-block-inner { transition: none; }
}

/* ============================================
   SECTION D'APPEL — renvoi vers « Nos Fleurs »
   Phrase révélée lettre par lettre au scroll, puis le lien monte en fondu.
   En mobile/tablette, devient le dernier panneau de « Notre Engagement ».
   ============================================ */
.appel {
  position: relative;
  z-index: 1;
  min-height: clamp(16rem, 44vh, 26rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* haut | côtés | bas */
  padding: clamp(2.5rem, 8vh, 5rem) 1.5rem clamp(0.75rem, 2.5vh, 1.5rem);
  background: var(--white);
}

.appel-phrase {
  margin: 0;
  max-width: 26ch;
  font-family: var(--font-serif);
  font-weight: 400;
  /* même formule que .ch-phrase (contact) */
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.18;
  color: var(--indigo-deep);
  /* retours à la ligne explicites (<br>), pas de text-wrap: balance */
}
/* un mot = wrapper insécable */
.appel-word {
  display: inline-block;
  white-space: nowrap;
}
.appel-phrase .s {
  display: inline-block;
}
/* will-change seulement tant que la section est visible (posé par le JS) */
.appel.is-live .appel-phrase .s {
  will-change: opacity, transform;
}

/* Lien : repris de .text-cta (accueil) */
.appel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(1.8rem, 5vh, 3rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-mid);
  text-decoration: none;
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}
.appel-link:hover,
.appel-link:focus-visible {
  gap: 0.85rem;
  color: var(--gold);
}
.appel-link:focus-visible {
  outline: 2px solid var(--violet-mid);
  outline-offset: 6px;
  border-radius: 2px;
}

/* Montée du libellé et de la flèche derrière un masque, comme les liens du
   footer. Armé par .link-go une fois la phrase révélée, rejoué au retour. */
.appel-link-label,
.appel-arrow {
  display: inline-block;
  overflow: hidden;
  line-height: 1.35;
}
.appel-link-label > span,
.appel-arrow > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(130%);
}
.appel.link-go .appel-link-label > span {
  animation: navRise 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.appel.link-go .appel-arrow > span {
  animation: navRise 2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .appel-link-label > span,
  .appel-arrow > span { opacity: 1; transform: none; animation: none; }
}

/* Tablette : lien agrandi (après la règle de base pour la battre) */
@media (min-width: 721px) and (max-width: 1024px) {
  .appel-link { font-size: 20px; }
}
