/* ==========================================================================
   FEUILLE DE STYLE PRINCIPALE
   Univers : artisanal haut de gamme — crème, brun karité, terre cuite.
   ========================================================================== */

/* Polices hébergées avec le site : aucun appel à un service extérieur */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../polices/fraunces-romain.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../polices/fraunces-italique.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../polices/montserrat.woff2") format("woff2");
}

:root {
  /* Les deux verts de l'étiquette Healthy Soap */
  --vert: #8fa85a;
  --vert-clair: #c3d49b;
  /* Déclinaisons plus soutenues, pour les boutons et les textes sur fond clair */
  --vert-soutenu: #5f7d31;
  --vert-profond: #557a2f;
  /* Teinte des boutons au survol : un cran plus foncé */
  --vert-survol: #446425;
  --vert-nuit: #2a3d18;
  /* Fonds clairs et texte, légèrement teintés de vert */
  --creme: #f7f9f0;
  --creme-profonde: #eaf0da;
  --encre: #1c2415;
  --encre-douce: #586350;
  --feuille: var(--vert-soutenu);
  --vert-whatsapp: #1c8a4b;
  --ligne: rgba(28, 36, 21, 0.14);
  --couleur-ambiance: #e3ebcd;
  --couleur-accent: #5f7d31;

  --police-titre: "Fraunces", Georgia, "Times New Roman", serif;
  --police-texte: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --marge-page: clamp(1.15rem, 4.5vw, 4.5rem);
  --rayon-carte: 28px;
  --courbe-douce: cubic-bezier(0.22, 1, 0.36, 1);
  --hauteur-entete: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--police-texte);
  /* Montserrat est une police large : un corps légèrement réduit garde les lignes équilibrées */
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.defilement-bloque { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, canvas { display: block; max-width: 100%; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--feuille); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------ Éléments communs -------------------------- */

.surtitre {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--courbe-douce), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }
.bouton svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.bouton--plein { background: var(--vert-profond); color: #fff; }
.bouton--plein:hover { background: var(--vert-survol); box-shadow: 0 14px 30px -14px rgba(68, 100, 37, 0.8); }
.bouton--contour { box-shadow: inset 0 0 0 1.5px var(--vert-profond); }
.bouton--contour:hover { background: var(--vert-survol); color: var(--creme); }
.bouton--whatsapp { background: var(--vert-whatsapp); color: #fff; }
.bouton--whatsapp:hover { box-shadow: 0 14px 30px -14px rgba(28, 138, 75, 0.9); }
.bouton--large { width: 100%; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.15rem;
}
.lien-fleche span { transition: transform 0.35s var(--courbe-douce); }
.lien-fleche:hover span { transform: translateX(6px); }

/* Apparition au défilement */
.a-reveler {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--courbe-douce), transform 0.9s var(--courbe-douce);
  transition-delay: var(--delai-revelation, 0ms);
}
.a-reveler.est-revele { opacity: 1; transform: none; }

/* ================================= EN-TÊTE ================================ */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--hauteur-entete);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--marge-page);
  transition: background-color 0.4s, box-shadow 0.4s, height 0.4s;
}
.entete.est-compacte {
  height: 64px;
  background: rgba(247, 249, 240, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--ligne);
}

.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo__nom { font-family: var(--police-titre); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.01em; }
.logo__signature { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--encre-douce); margin-top: 0.3rem; }

.navigation { display: flex; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.navigation a { position: relative; text-decoration: none; font-size: 0.95rem; padding: 0.4rem 0; }
.navigation a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--courbe-douce);
}
.navigation a:hover::after { transform: scaleX(1); transform-origin: left; }

.entete__actions { display: flex; align-items: center; gap: 0.6rem; }

.bouton-panier {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.55rem 0.4rem 1rem;
  border-radius: 999px;
  background: var(--vert-profond);
  color: var(--creme);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.3s;
}
.bouton-panier:hover { background: var(--vert-survol); }
.bouton-panier svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.bouton-panier__compteur {
  display: grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s, color 0.3s;
}
.bouton-panier__compteur.est-rempli { background: var(--creme); color: var(--encre); }
.bouton-panier.vient-de-recevoir { animation: rebond-panier 0.55s var(--courbe-douce); }
@keyframes rebond-panier { 35% { transform: scale(1.12); } }

.bouton-menu { display: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; position: relative; }
.bouton-menu span {
  position: absolute; left: 0.7rem; right: 0.7rem; height: 1.5px; background: var(--vert-profond);
  transition: transform 0.4s var(--courbe-douce), top 0.4s var(--courbe-douce);
}
.bouton-menu span:first-child { top: 1.1rem; }
.bouton-menu span:last-child { top: 1.6rem; }
.menu-ouvert .bouton-menu span:first-child { top: 1.35rem; transform: rotate(45deg); }
.menu-ouvert .bouton-menu span:last-child { top: 1.35rem; transform: rotate(-45deg); }

/* ================================== HERO ================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 0.48fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(1rem, 2vw, 2.5rem);
  padding: calc(var(--hauteur-entete) + 1rem) var(--marge-page) 2rem;
  background: var(--couleur-ambiance);
  transition: background-color 1.1s ease;
  overflow: hidden;
  isolation: isolate;
}
/* Grain de papier */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .11 0 0 0 0 .07 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero__halo {
  position: absolute;
  z-index: -2;
  left: 58%;
  top: 48%;
  width: min(78vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 38%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.hero__mot-geant {
  position: absolute;
  z-index: -1;
  left: 56%;
  top: 47%;
  transform: translate(-50%, -50%);
  font-family: var(--police-titre);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(7rem, 25vw, 27rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--couleur-accent);
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.35s ease, transform 0.6s var(--courbe-douce), color 1s;
}
.hero__mot-geant.est-en-transition { opacity: 0; transform: translate(-50%, -44%); }

.hero__texte { position: relative; z-index: 2; max-width: 34rem; }
.hero__titre {
  font-family: var(--police-titre);
  font-weight: 380;
  font-size: clamp(2.5rem, 4.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 1.3rem 0 1.4rem;
  text-wrap: balance;
}
.hero__titre em { color: var(--couleur-accent); transition: color 1s; }
.hero__introduction { max-width: 29rem; color: var(--encre-douce); font-size: 1.1rem; }
.hero__boutons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.1rem; }

.hero__texte > * { animation: entree-hero 1.1s var(--courbe-douce) both; }
.hero__texte > :nth-child(2) { animation-delay: 0.1s; }
.hero__texte > :nth-child(3) { animation-delay: 0.2s; }
.hero__texte > :nth-child(4) { animation-delay: 0.3s; }
@keyframes entree-hero { from { opacity: 0; transform: translateY(26px); } }

.hero__scene {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  height: min(74vh, 700px);
  min-height: 340px;
  display: grid;
  place-items: center;
  animation: entree-scene 1.5s var(--courbe-douce) both;
}
@keyframes entree-scene { from { opacity: 0; transform: scale(0.82) rotate(-5deg); } }
.hero__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Photo de l'ingrédient, sous l'ombre du savon. Elle partage la case de la scène 3D.
   Le mode « multiply » fond son fond blanc dans la couleur de l'accueil. */
.hero__ingredient {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: center;
  width: clamp(6.5rem, 10vw, 9.5rem);
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.5s var(--courbe-douce);
}
.hero__ingredient.est-en-transition { opacity: 0; transform: translateY(12px) scale(0.92); }

.hero__indice {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--encre-douce);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s;
}
.hero__indice.est-masque { opacity: 0; }
.hero__indice svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.hero__fiche {
  position: relative;
  z-index: 2;
  justify-self: end;
  text-align: right;
  transition: opacity 0.32s ease, transform 0.5s var(--courbe-douce);
}
.hero__fiche.est-en-transition { opacity: 0; transform: translateY(14px); }
.hero__numero { font-family: var(--police-titre); font-size: 3.4rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__numero-total { font-size: 1rem; color: var(--encre-douce); margin-left: 0.35rem; font-family: var(--police-texte); }
.hero__nom-savon { font-family: var(--police-titre); font-weight: 450; font-size: 1.55rem; line-height: 1.15; margin-top: 1.1rem; }
.hero__accroche { font-family: var(--police-titre); font-style: italic; color: var(--encre-douce); margin-top: 0.3rem; }
.hero__prix { margin: 1rem 0 1.2rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.hero__pastilles {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 1rem;
}
.pastille { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; }
.pastille::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--couleur-pastille);
  box-shadow: 0 0 0 1.5px rgba(28, 36, 21, 0.22), inset 0 -3px 5px rgba(0, 0, 0, 0.14);
  transition: transform 0.45s var(--courbe-douce), box-shadow 0.3s;
}
.pastille:hover::before { transform: scale(1.2); }
.pastille.est-active::before { transform: scale(1.45); box-shadow: 0 0 0 2px var(--couleur-ambiance), 0 0 0 3.5px var(--encre), inset 0 -3px 5px rgba(0, 0, 0, 0.14); }

/* ============================ BANDEAU DÉFILANT ============================ */

.bandeau { background: var(--vert-clair); color: var(--encre); overflow: hidden; padding: 1.05rem 0; }
.bandeau__piste { display: flex; align-items: center; width: max-content; animation: defilement-bandeau 42s linear infinite; }
.bandeau span { font-family: var(--police-texte); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.02em; white-space: nowrap; }
.bandeau i { width: 0.45rem; height: 0.45rem; margin: 0 2.2rem; border-radius: 50%; background: #fff; flex: none; }
@keyframes defilement-bandeau { to { transform: translateX(-50%); } }

/* ================================ SECTIONS ================================ */

.section { padding: clamp(4.5rem, 10vw, 9rem) var(--marge-page); }
.section__entete { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.section__titre {
  font-family: var(--police-titre);
  font-weight: 380;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0.9rem 0 1.1rem;
  text-wrap: balance;
}
.section__titre em { color: var(--feuille); }
.section__introduction { color: var(--encre-douce); max-width: 36rem; font-size: 1.08rem; }

.section--sombre { background: var(--vert); color: var(--encre); }
.section--sombre { --encre-sur-vert: #10160a; }
.section--sombre .surtitre { color: var(--encre-sur-vert); font-weight: 600; }
.section--sombre .section__introduction { color: var(--encre-sur-vert); font-weight: 500; font-size: 1.1rem; }
.section--sombre .section__titre { color: #fff; }
.section--sombre .section__titre em { color: var(--vert-nuit); }
.section--teintee { background: var(--creme-profonde); }

/* Titre de la section « Commande & livraison » en Montserrat */
#livraison .section__titre { font-family: var(--police-texte); font-weight: 600; font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.12; letter-spacing: -0.025em; }
#livraison .section__titre em { font-style: normal; }

/* ---------------------------------- Filtres ------------------------------- */

.filtres { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.2rem; }
.filtre {
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ligne);
  font-size: 0.93rem;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.filtre:hover { box-shadow: inset 0 0 0 1.5px var(--vert-profond); }
.filtre.est-actif { background: var(--vert-profond); color: var(--creme); box-shadow: none; }

/* ------------------------------ Cartes de savon --------------------------- */

.grille-savons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.carte-savon {
  display: flex;
  flex-direction: column;
  border-radius: var(--rayon-carte);
  background: var(--couleur-ambiance);
  overflow: hidden;
  transition: opacity 0.9s var(--courbe-douce), transform 0.6s var(--courbe-douce), box-shadow 0.5s;
  transition-delay: var(--delai-revelation, 0ms), 0ms, 0ms;
}
.carte-savon.est-revele:hover { transform: translateY(-8px); box-shadow: 0 34px 50px -34px rgba(28, 36, 21, 0.55); }

.carte-savon__visuel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.carte-savon__visuel::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 68%);
}
.carte-savon__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.9s var(--courbe-douce);
}
.carte-savon__image.est-chargee { opacity: 1; transform: none; }
.carte-savon__visuel.est-survolee .carte-savon__image { opacity: 0; transition-duration: 0s; }
.carte-savon__etiquette {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--vert-profond);
  color: var(--creme);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.carte-savon__corps { flex: 1; padding: 0 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.carte-savon__ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.carte-savon__nom { font-family: var(--police-titre); font-weight: 450; font-size: 1.4rem; line-height: 1.15; }
.carte-savon__prix { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.carte-savon__accroche { font-family: var(--police-titre); font-style: italic; color: var(--encre-douce); }
.carte-savon__peau { font-size: 0.82rem; color: var(--encre-douce); }
/* Le pied de carte reste aligné en bas, même si le nom tient sur deux lignes */
.carte-savon__ligne:last-child { align-items: center; margin-top: auto; padding-top: 0.7rem; }
.carte-savon__ajouter {
  flex: none;
  min-height: 2.75rem;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--vert-profond);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
.carte-savon__ajouter:hover { background: var(--vert-survol); color: var(--creme); }

/* Visionneuse partagée (survol des cartes) et son atelier hors écran */
.atelier-vignettes { position: fixed; left: -9999px; top: 0; width: 340px; height: 340px; pointer-events: none; }
.survol-3d { position: absolute; inset: 0; pointer-events: none; }
.survol-3d canvas { width: 100%; height: 100%; }

/* Savon dessiné en CSS quand la 3D n'est pas disponible */
.savon-de-secours {
  width: 58%;
  aspect-ratio: 1.6;
  border-radius: 14%/22%;
  background: linear-gradient(135deg, var(--couleur-reflet), var(--couleur-savon) 55%);
  box-shadow: inset -10px -14px 26px rgba(0, 0, 0, 0.22), inset 8px 10px 20px rgba(255, 255, 255, 0.35), 0 34px 34px -22px rgba(28, 36, 21, 0.55);
  transform: rotate(-8deg);
  position: relative;
}
.savon-de-secours--galet { aspect-ratio: 1; width: 46%; border-radius: 50%; }
.savon-de-secours--cube { aspect-ratio: 1; width: 44%; border-radius: 16%; }
.savon-de-secours--bloc { aspect-ratio: 1.03; width: 42%; border-radius: 5%; transform: rotate(-4deg); }

/* ================================ SAVOIR-FAIRE ============================ */

.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.etape { border-top: 1.5px solid rgba(16, 22, 10, 0.4); padding-top: 1.5rem; }
.etape__numero { font-family: var(--police-texte); font-weight: 600; font-size: 3rem; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.etape h3 { font-family: var(--police-titre); font-weight: 600; font-size: 1.45rem; margin: 1.1rem 0 0.6rem; color: var(--encre-sur-vert); }
.etape p { color: var(--encre-sur-vert); font-size: 1.02rem; font-weight: 500; line-height: 1.65; }

/* ================================ INGRÉDIENTS ============================= */

/* Pas de cadre ni de quadrillage : chaque ingrédient est une vignette aérée,
   sa photo posée sur un disque de couleur douce */
.grille-ingredients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.8rem, 5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
}
.ingredient { position: relative; text-align: center; }
.ingredient::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 50%;
  width: min(74%, 12.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--creme-profonde);
  transform: translateX(-50%);
  transition: transform 0.9s var(--courbe-douce), background-color 0.6s;
}
.ingredient:hover::before { transform: translateX(-50%) scale(1.1); background: color-mix(in srgb, var(--teinte) 34%, var(--creme-profonde)); }
/* Photo de l'ingrédient. Les photos sont sur fond blanc : le mode « multiply »
   fond ce blanc dans la couleur du disque, sans détourage à faire. */
.ingredient__illustration {
  position: relative;
  display: block;
  width: min(100%, 15rem);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* Fondu sur les quatre bords : une photo dont le sujet touche le bord ne paraît pas coupée net */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
  transform-origin: 50% 80%;
  transition: transform 0.9s var(--courbe-douce);
}
.ingredient:hover .ingredient__illustration { transform: scale(1.06); }
.ingredient h3 { font-family: var(--police-titre); font-weight: 450; font-size: 1.5rem; margin: 0.9rem 0 0.45rem; }
.ingredient p { color: var(--encre-douce); font-size: 1rem; max-width: 30ch; margin: 0 auto; }

/* ============================ COMMANDE & LIVRAISON ======================== */

.parcours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: etape; }
.parcours__numero {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--vert-profond);
  color: var(--creme);
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 1.15rem;
}
.parcours__etape h3 { font-family: var(--police-texte); font-weight: 600; font-size: 1.25rem; line-height: 1.2; margin: 1.1rem 0 0.55rem; }
.parcours__etape p { color: var(--encre-douce); font-size: 1rem; }

.zones-livraison { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.zone { background: var(--creme); border-radius: var(--rayon-carte); padding: 1.7rem; display: grid; gap: 0.35rem; align-content: start; }
.zone__delai { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--feuille); font-weight: 500; }
.zone h3 { font-family: var(--police-texte); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.zone__detail { color: var(--encre-douce); font-size: 0.96rem; }
.zone__frais { font-family: var(--police-texte); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.01em; margin-top: 0.8rem; font-variant-numeric: tabular-nums; }
.zone__offre { font-size: 0.88rem; color: var(--vert-whatsapp); font-weight: 500; }

.paiements { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 2.2rem; }
.paiements__titre { font-size: 0.92rem; color: var(--encre-douce); }
.paiements__liste { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.paiements__liste li { padding: 0.4rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ligne); font-size: 0.9rem; font-weight: 500; }

/* ============================== APPEL À CONTACT =========================== */

.appel { background: var(--vert-profond); color: #fff; text-align: center; padding: clamp(4.5rem, 10vw, 8.5rem) var(--marge-page); }
.appel__titre em { font-style: normal; color: var(--vert-clair); }
.appel .surtitre { color: rgba(255, 255, 255, 0.8); }
.appel__titre { font-family: var(--police-texte); font-weight: 600; font-size: clamp(1.8rem, 3.8vw, 3.3rem); line-height: 1.12; letter-spacing: -0.025em; max-width: 22ch; margin: 1rem auto 1.3rem; text-wrap: balance; }
.appel__texte { max-width: 34rem; margin: 0 auto 2.2rem; color: rgba(255, 255, 255, 0.9); }
.appel .bouton--whatsapp { background: var(--vert-clair); color: var(--encre); }
.appel__telephone { margin-top: 1.4rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }

/* ================================ PIED DE PAGE ============================ */

.pied { background: var(--vert-nuit); color: rgba(255, 255, 255, 0.78); padding: 3.5rem var(--marge-page) 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; font-size: 0.92rem; }
.pied .logo__nom { color: var(--creme); font-size: 2.4rem; display: block; margin-bottom: 0.4rem; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.pied__liens a { text-decoration: none; padding: 0.5rem 0; }
.pied__liens a:hover { color: var(--creme); }
.pied__mention { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 1.5rem; font-size: 0.82rem; }

/* ============================= FICHE D'UN SAVON =========================== */

.fiche {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--creme);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.fiche.est-ouverte { opacity: 1; }

.fiche__scene {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--couleur-ambiance);
  transition: background-color 0.8s, transform 0.75s var(--courbe-douce);
  transform: translateX(-6%);
  overflow: hidden;
  isolation: isolate;
  min-height: 0;
}
.fiche.est-ouverte .fiche__scene { transform: none; }
.fiche__scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 45%;
  width: 90%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 66%);
}
.fiche__mot-geant {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-family: var(--police-titre);
  font-style: italic;
  font-size: clamp(6rem, 17vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--couleur-accent);
  opacity: 0.12;
  user-select: none;
}
.fiche__fermer {
  position: absolute;
  z-index: 3;
  top: 1.2rem;
  left: 1.2rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--vert-profond);
  color: var(--creme);
  transition: transform 0.4s var(--courbe-douce), background-color 0.3s;
}
.fiche__fermer:hover { transform: rotate(90deg); background: var(--vert-survol); }
.fiche__fermer svg, .panier__fermer svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fiche__canevas { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.fiche__canevas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fiche__commandes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; padding: 0 1rem 1.6rem; }

.angles { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem; padding: 0.25rem; border-radius: 999px; background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.angles button { min-height: 2.5rem; padding: 0.35rem 0.95rem; border-radius: 999px; font-size: 0.86rem; font-weight: 500; transition: background-color 0.3s, color 0.3s; }
.angles button:hover { background: rgba(28, 36, 21, 0.08); }
.angles button.est-actif, .angles button[aria-pressed="true"] { background: var(--vert-profond); color: var(--creme); }

.fiche__contenu {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.4rem, 4.5vw, 4.5rem) 4rem;
  transform: translateY(36px);
  opacity: 0;
  transition: transform 0.8s var(--courbe-douce) 0.12s, opacity 0.6s ease 0.12s;
}
.fiche.est-ouverte .fiche__contenu { transform: none; opacity: 1; }
.fiche__contenu > .surtitre { color: var(--couleur-accent); }
.fiche__nom { font-family: var(--police-titre); font-weight: 380; font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1; letter-spacing: -0.025em; margin: 0.8rem 0 0.5rem; }
.fiche__accroche { font-family: var(--police-titre); font-style: italic; font-size: 1.3rem; color: var(--encre-douce); }
.fiche__prix-ligne { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin: 1.6rem 0 1.2rem; }
.fiche__prix { font-family: var(--police-titre); font-size: 2.1rem; font-variant-numeric: tabular-nums; }
.fiche__poids { color: var(--encre-douce); font-size: 0.95rem; }
.fiche__description { max-width: 34rem; }
.fiche__bienfaits { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.5rem 0 2rem; }
.fiche__bienfaits li { padding: 0.35rem 0.95rem; border-radius: 999px; background: var(--couleur-ambiance); font-size: 0.88rem; font-weight: 500; }

.fiche__achat { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.3rem; }
.fiche__achat .bouton { flex: 1 1 14rem; }

.quantite { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--vert-profond); }
.quantite button { width: 3.25rem; height: 3.25rem; font-size: 1.3rem; border-radius: 50%; transition: background-color 0.25s; }
.quantite button:hover { background: rgba(28, 36, 21, 0.08); }
.quantite span { min-width: 2ch; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.quantite--compacte { box-shadow: inset 0 0 0 1.5px var(--ligne); }
.quantite--compacte button { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }

.fiche__bloc { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--ligne); }
.fiche__bloc h3 { font-family: var(--police-titre); font-weight: 450; font-size: 1.45rem; margin-bottom: 0.4rem; }
.fiche__note { color: var(--encre-douce); font-size: 0.92rem; margin-bottom: 1.3rem; }
.fiche__bloc--grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.fiche__bloc--grille p { color: var(--encre-douce); }
.fiche__pleine-largeur { grid-column: 1 / -1; }

.composition { display: grid; gap: 1rem; }
.composition__ligne { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
.composition__nom { font-weight: 450; }
.composition__part { font-variant-numeric: tabular-nums; color: var(--encre-douce); }
.composition__jauge { grid-column: 1 / -1; height: 0.6rem; border-radius: 999px; background: rgba(28, 36, 21, 0.08); overflow: hidden; }
.composition__remplissage { display: block; height: 100%; width: var(--part); border-radius: 999px; background: var(--couleur-accent); transform-origin: left; transform: scaleX(0); }
.fiche.est-ouverte .composition__remplissage { animation: remplissage-jauge 1.2s var(--courbe-douce) var(--delai) forwards; }
@keyframes remplissage-jauge { to { transform: scaleX(1); } }

.liste-ingredients { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin-top: 0.8rem; }
.liste-ingredients dt, .liste-ingredients dd { padding: 0.8rem 0; border-bottom: 1px solid var(--ligne); }
.liste-ingredients dt { font-weight: 450; padding-right: 1rem; }
.liste-ingredients dd { color: var(--encre-douce); font-size: 0.97rem; }

/* ================================== PANIER ================================ */

.voile { position: fixed; inset: 0; z-index: 70; background: rgba(24, 36, 14, 0.5); opacity: 0; transition: opacity 0.4s; }
.panier-ouvert .voile { opacity: 1; }
.panier {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 80;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--creme);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.55s var(--courbe-douce), visibility 0s 0.55s;
  box-shadow: -30px 0 60px -30px rgba(24, 36, 14, 0.5);
}
.panier-ouvert .panier { transform: none; visibility: visible; transition-delay: 0s; }
.panier__entete { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--ligne); }
.panier__entete h2 { font-family: var(--police-titre); font-weight: 450; font-size: 1.6rem; }
.panier__fermer { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; transition: background-color 0.3s; }
.panier__fermer:hover { background: rgba(28, 36, 21, 0.08); }
.panier__corps { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 1.5rem 1.5rem; }
.panier__vide { text-align: center; color: var(--encre-douce); padding: 4rem 1rem; font-family: var(--police-titre); font-style: italic; font-size: 1.15rem; }

.ligne-panier { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ligne); align-items: center; }
.ligne-panier__vignette { width: 5rem; height: 5rem; border-radius: 18px; display: grid; place-items: center; overflow: hidden; }
.ligne-panier__vignette img { width: 118%; max-width: none; opacity: 0; transition: opacity 0.4s; }
.ligne-panier__vignette img.est-chargee { opacity: 1; }
.ligne-panier__nom { font-family: var(--police-titre); font-weight: 450; font-size: 1.12rem; line-height: 1.2; }
.ligne-panier__prix { font-size: 0.84rem; color: var(--encre-douce); margin-bottom: 0.5rem; }
.ligne-panier__montant { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-panier__supprimer { font-size: 0.82rem; font-weight: 400; color: var(--encre-douce); text-decoration: underline; padding: 0.6rem 0 0.6rem 0.6rem; }
.ligne-panier__supprimer:hover { color: var(--feuille); }

.panier__formulaire { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.panier__formulaire fieldset { border: 0; padding: 0; margin: 0; }
.panier__formulaire legend, .panier__formulaire label { font-size: 0.86rem; font-weight: 500; }
.panier__formulaire legend { margin-bottom: 0.6rem; padding: 0; }
.panier__formulaire > label { display: grid; gap: 0.4rem; }
.panier__formulaire input[type="text"] {
  font: inherit;
  font-size: 1rem;
  color: var(--encre);
  min-height: 3rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--ligne);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.3s;
}
.panier__formulaire input[type="text"]:focus { outline: none; border-color: var(--encre); }
.panier__formulaire input::placeholder { color: #7c8672; }
.choix-zone { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 1rem; border: 1.5px solid var(--ligne); border-radius: 14px; margin-bottom: 0.5rem; cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.choix-zone:has(input:checked) { border-color: var(--encre); background: #fff; }
.choix-zone input { accent-color: var(--encre); width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }
.choix-zone__texte { display: grid; }
.choix-zone__texte strong { font-weight: 500; font-size: 0.97rem; }
.choix-zone__texte small { color: var(--encre-douce); font-size: 0.84rem; font-weight: 350; }

.panier__pied { padding: 1.2rem 1.5rem 1.4rem; border-top: 1px solid var(--ligne); background: var(--creme-profonde); }
.panier__totaux { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.panier__totaux div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.panier__totaux dt { color: var(--encre-douce); }
.panier__total { font-family: var(--police-titre); font-size: 1.5rem; margin-top: 0.3rem; }
.panier__total dt { color: var(--encre); }
.panier__astuce { font-size: 0.86rem; color: var(--vert-whatsapp); font-weight: 500; margin-bottom: 0.9rem; }
.panier__mention { font-size: 0.8rem; color: var(--encre-douce); text-align: center; margin-top: 0.8rem; }

/* =============================== NOTIFICATION ============================= */

.notification {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 90;
  transform: translate(-50%, calc(100% + 4rem));
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--vert-profond);
  color: var(--creme);
  font-size: 0.94rem;
  font-weight: 450;
  text-align: center;
  box-shadow: 0 20px 40px -18px rgba(24, 36, 14, 0.7);
  transition: transform 0.6s var(--courbe-douce);
  pointer-events: none;
}
.notification.est-visible { transform: translate(-50%, 0); }

/* Bandeau affiché quand le site est ouvert en aperçu depuis l'administration */
.bandeau-apercu {
  position: fixed;
  left: 50%;
  top: 0.6rem;
  z-index: 95;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: #b4530e;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

/* ================================ ADAPTATIONS ============================= */

@media (max-width: 1080px) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-ingredients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --hauteur-entete: 66px; }

  .bouton-menu { display: block; }
  .bouton-panier > span:not(.bouton-panier__compteur) { display: none; }
  .bouton-panier { padding-left: 0.8rem; }
  .navigation {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 5rem var(--marge-page) 2rem;
    background: var(--creme);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.4s, transform 0.5s var(--courbe-douce), visibility 0s 0.4s;
  }
  .menu-ouvert .navigation { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .navigation a { font-family: var(--police-titre); font-size: 2.1rem; padding: 0.5rem 0; }
  .menu-ouvert .entete { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 0.5rem;
    padding-top: calc(var(--hauteur-entete) + 1.4rem);
    padding-bottom: 1.4rem;
  }
  .hero__halo { left: 50%; top: 62%; width: 130vw; }
  .hero__mot-geant { left: 50%; top: 61%; font-size: 34vw; }
  .hero__scene { grid-column: 1; grid-row: 2; height: 44vh; height: 44svh; min-height: 280px; margin: 0 calc(var(--marge-page) * -1); }
  .hero__ingredient { grid-column: 1; grid-row: 2; width: 5.5rem; }
  .hero__fiche { justify-self: stretch; text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: center; }
  .hero__numero { grid-row: span 2; font-size: 2.9rem; }
  .hero__numero-total { display: none; }
  .hero__nom-savon { margin-top: 0; font-size: 1.35rem; }
  .hero__accroche { margin-top: 0; }
  .hero__prix { grid-column: 1 / -1; margin: 0.7rem 0 0; display: inline; }
  .hero__fiche .lien-fleche { grid-column: 1 / -1; justify-self: start; margin-top: 0.6rem; padding: 0.4rem 0 0.2rem; }
  .hero__pastilles { justify-content: flex-start; margin-left: -0.8rem; }

  .parcours { grid-template-columns: minmax(0, 1fr); }
  .pied { grid-template-columns: minmax(0, 1fr); }

  .fiche { grid-template-columns: minmax(0, 1fr); overflow-y: auto; display: block; }
  .fiche__scene { height: 62vh; height: 62svh; min-height: 400px; transform: none; }
  .fiche__contenu { overflow: visible; }
  .fiche__fermer { position: fixed; }
  .angles button { padding: 0.35rem 0.75rem; }
}

@media (max-width: 560px) {
  .etapes, .grille-ingredients { grid-template-columns: minmax(0, 1fr); }
  .hero__boutons .bouton { flex: 1 1 100%; }
  .fiche__bloc--grille, .liste-ingredients { grid-template-columns: minmax(0, 1fr); }
  .liste-ingredients dt { border-bottom: 0; padding-bottom: 0; }
  .liste-ingredients dd { padding-top: 0.15rem; }
  .ligne-panier { grid-template-columns: 4rem 1fr auto; gap: 0.8rem; }
  .ligne-panier__vignette { width: 4rem; height: 4rem; }
  .bandeau span { font-size: 0.95rem; }
}

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