/* Polices locales (Poppins, Gloock, Kalam) */
@font-face {
  font-family: 'Gloock';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/gloock-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Gloock';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/gloock-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/kalam-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/kalam-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/kalam-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/kalam-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/poppins-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/poppins-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Variables (liées aux variables Figma)
   ========================================================================== */
:root {
  /* Couleurs */
  --ink: #2a140e;
  --navy: #00121e;
  --navy-card: #122332;
  --lead: #4b2e24;
  --white: #ffffff;
  --cream: #fff9f3;
  --accent: #d7262e;
  --color-border-track: rgba(42, 20, 14, 0.18);

  /* Thème produit (mis à jour par custom.js, défaut = Fraise) */
  --bg: #f8d4d0;
  --deep: #d7262e;
  --soft: #fcebe8;

  /* Espacements et rayons */
  --space-6: 6px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-60: 60px;
  --space-64: 64px;
  --space-104: 104px;
  --radius-full: 999px;
  --radius-card: 32px;
  --radius-media: 24px;

  /* Conteneur */
  --container: 1232px;
  --gutter: var(--space-24);

  /* Typographies */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Gloock", Georgia, serif;
  --font-hand: "Kalam", cursive;
}

@media (min-width: 768px) {
  :root { --gutter: 48px; }
}

@media (min-width: 1280px) {
  :root { --gutter: min(var(--space-104), 7.2222vw); }
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.6s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--deep);
  color: var(--white);
}

/* couleur du thème produit (même rendu que .btn--primary) */
.btn--accent {
  background: var(--deep);
  color: var(--white);
}

.btn--outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  /* les mots produit larges (Fiordilatte, Framboise) dépassent de la scène */
  overflow-x: clip;
  padding-top: 86px;
  background: var(--bg);
  transition: background-color 0.8s ease;
}

/* En-tête fixe : fond flouté une fois le hero dépassé (custom.js) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 86px;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-solid {
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { width: 120px; height: auto; }

.nav { display: none; }

.nav__list {
  display: flex;
  gap: var(--space-30);
  padding: 14px 22px;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.nav__list a { transition: color 0.2s ease; }
.nav__list a:hover { color: var(--deep); }

@media (min-width: 768px) {
  .nav { display: block; }
}

/* Contenu */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-20);
  padding-block: var(--space-20) 90px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
  width: 100%;
}

.hero__title {
  font-size: 37px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 529px;
}

.hero__title-accent {
  font-family: var(--font-hand);
  font-size: 45px;
  line-height: 0.9;
  color: var(--deep);
  transition: color 0.8s ease;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--lead);
  max-width: 404px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .hero__content {
    align-items: center;
    gap: var(--space-64);
    padding-block: var(--space-60);
  }

  .hero__text { align-items: flex-start; }

  .hero__title { font-size: 62px; }
  .hero__title-accent { font-size: 76px; }

  .hero__actions { flex-direction: row; }
}

@media (min-width: 1280px) {
  .hero__content {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero__text {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

/* ==========================================================================
   Hero produit (carrousel)
   ========================================================================== */
.product-hero {
  /* Mobile : scène 342 x 540 */
  --stage-w: 342px;
  --stage-h: 540px;
  --pk: 0.7727;             /* échelle du produit */
  --ik: 0.6047;             /* échelle des ingrédients */
  --word-size: 80px;
  --word-top: 198px;
  --bottle-bottom: 99px;    /* stage-h - bas du produit */
  --puddle-w: 157px;
  --puddle-h: 38px;
  --puddle-top: 411px;

  position: relative;
  flex: none;
  width: var(--stage-w);
  height: var(--stage-h);
  max-width: 100%;
}

@media (min-width: 768px) {
  .product-hero {
    --stage-w: 635px;
    --stage-h: 700px;
    --pk: 1;
    --ik: 1;
    --word-size: 216px;
    --word-top: 200px;
    --bottle-bottom: 133px;
    --puddle-w: 292px;
    --puddle-h: 49px;
    --puddle-top: 532px;
  }
}

.product-hero__stage {
  position: absolute;
  inset: 0;
}

.product-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.product-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* --k : réduction calculée par custom.js pour que le mot ne déborde ni sur le texte ni hors de l'écran ;
   le mot reste centré verticalement sur sa position d'origine */
.product-slide__word {
  position: absolute;
  left: 50%;
  top: calc(var(--word-top) + var(--word-size) * (1 - var(--k, 1)) / 2);
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: calc(var(--word-size) * var(--k, 1));
  line-height: 1;
  white-space: nowrap;
  color: var(--deep);
  opacity: 0.9;
  user-select: none;
}

.product-slide__puddle {
  position: absolute;
  left: 50%;
  top: var(--puddle-top);
  width: var(--puddle-w);
  height: var(--puddle-h);
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--deep);
}

.product-slide__bottle {
  position: absolute;
  left: 50%;
  bottom: var(--bottle-bottom);
  width: calc(var(--pw) * var(--pk));
  height: calc(var(--ph) * var(--pk));
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(42, 20, 14, 0.35));
}

/* Ingrédients : positionnés par leur centre, rotation propre, flottaison via `translate` */
.product-slide__ingredients {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ing {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(86px * var(--ik));
  height: calc(var(--ing-h, 100px) * var(--ik));
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(var(--r));
  filter: drop-shadow(0 14px 12px rgba(42, 20, 14, 0.28));
  animation: ing-float 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.product-slide:not(.is-active) .ing { animation-play-state: paused; }

/* Centres (mobile) */
.ing--1 { --x: 40px;  --y: 52.5px;  --r: -10.9deg; --d: 0s; }
.ing--2 { --x: 258px; --y: 47px;    --r: 28.3deg;  --d: -1.2s; }
.ing--3 { --x: 9px;   --y: 212.5px; --r: 17.6deg;  --d: -2.4s; }
.ing--4 { --x: 308px; --y: 175.5px; --r: -21.2deg; --d: -3.1s; }
.ing--5 { --x: 19.5px; --y: 305.5px; --r: 34.6deg; --d: -0.6s; }
.ing--6 { --x: 287px; --y: 290px;   --r: -6.4deg;  --d: -1.9s; }

@media (min-width: 768px) {
  .ing--1 { --x: 68.7px;  --y: 88px; }
  .ing--2 { --x: 476.2px; --y: 77.2px; }
  .ing--3 { --x: 12.9px;  --y: 353.7px; }
  .ing--4 { --x: 564.2px; --y: 293.1px; }
  .ing--5 { --x: 34.9px;  --y: 508.2px; }
  .ing--6 { --x: 525.3px; --y: 482.9px; }
}

@keyframes ing-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* Sélecteur */
.product-selector {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-14);
}

@media (min-width: 768px) {
  .product-selector { bottom: 23px; }
}

.product-selector__row {
  display: flex;
  align-items: center;
  gap: var(--space-18);
}

.arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.arrow-btn:hover { background: var(--ink); }
.arrow-btn img { transition: filter 0.3s ease; }
.arrow-btn:hover img { filter: brightness(0) invert(1); }

.product-selector__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  min-width: 158px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .product-selector__info { min-width: 250px; }
}

.product-selector__type {
  padding: 8px 13px;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep);
}

.product-selector__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.product-selector__progress {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.progress {
  display: flex;
  gap: var(--space-6);
}

.progress__seg {
  position: relative;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border-track);
}

/* remplissage du segment actif : sa fin déclenche le produit suivant (custom.js) */
.progress__seg::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--deep);
  transition: background-color 0.8s ease;
}

.progress__seg.is-active::before { animation: seg-fill 5s linear forwards; }
.is-paused .progress__seg.is-active::before { animation-play-state: paused; }

@keyframes seg-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* zone de clic plus large que le segment visuel */
.progress__seg::after {
  content: "";
  position: absolute;
  inset: -10px 0;
}


.progress__count {
  margin-left: 2px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  opacity: 0.6;
  white-space: nowrap;
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
/* Animations GSAP (custom.js) : remplacent le fondu et la flottaison CSS */
.has-gsap .product-slide { transition: none; }
.has-gsap .ing { animation: none; }
.product-slide__word .ch { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .ing { animation: none; }
  .product-slide,
  .hero,
  .btn { transition: none; }
  .progress__seg.is-active::before { animation: none; width: 100%; }
}

/* ==========================================================================
   Curseur goutte (desktop, souris) : activé par custom.js
   ========================================================================== */
.has-drop-cursor,
.has-drop-cursor * { cursor: none !important; }

.drop-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
  filter: drop-shadow(0 3px 4px rgba(0, 18, 30, 0.25));
}

.drop-cursor.is-visible { opacity: 1; }

/* inclinaison selon la vitesse (--tilt, custom.js), pointe = position du pointeur */
.drop-cursor svg {
  display: block;
  overflow: visible;
  fill: var(--drop, var(--accent));
  stroke: var(--white);
  stroke-width: 1.5px;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: 10px 0;
  transition: scale 0.25s ease, fill 0.25s ease, stroke 0.25s ease;
}

/* grossit sur les éléments cliquables et les cartes */
.drop-cursor.is-hover svg { scale: 1.8; fill: var(--navy); }
.drop-cursor.is-down svg { scale: 0.8 1.1; }
.drop-cursor.is-hover.is-down svg { scale: 1.45 2; }

/* sur fond sombre ou rouge : goutte blanche */
.drop-cursor.is-dark svg { fill: var(--white); stroke: var(--navy); }

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

/* ==========================================================================
   Bouton contact flottant (fixe, bas droite)
   ========================================================================== */
.floating-contact {
  position: fixed;
  right: 14px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: var(--space-10);
  height: 45px;
  padding: 0 25px;
  border-radius: var(--radius-full);
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 18, 30, 0.35);
  transform-origin: 50% 100%;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .floating-contact { bottom: 82px; }
}

.floating-contact:hover { transform: translateY(-2px); }

.floating-contact__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--deep, var(--accent));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
  transition: background-color 0.8s ease, opacity 0.2s ease;
}

/* fond en goutte en arrivant sur la section Contact, revient en sortant (custom.js) */
.floating-contact.is-gone {
  animation: fab-melt 0.9s cubic-bezier(0.5, 0, 0.75, 0) forwards;
  pointer-events: none;
}

.floating-contact.is-gone .floating-contact__dot { opacity: 0; }
.floating-contact.is-back { animation: fab-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }

@keyframes fab-melt {
  0% { transform: none; }
  35% { transform: scale(0.34, 0.92); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; color: transparent; }
  55% { transform: translateY(-8px) scale(0.3, 1); border-radius: 50% 50% 50% 50% / 72% 72% 28% 28%; color: transparent; }
  100% { transform: translateY(170px) scale(0.22, 0.55); opacity: 0; color: transparent; }
}

@keyframes fab-pop {
  from { transform: translateY(16px) scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact.is-gone { animation: none; opacity: 0; }
  .floating-contact.is-back { animation: none; }
}

/* ==========================================================================
   Transition coulure (sous le hero)
   ========================================================================== */
.drip {
  position: relative;
  z-index: 2;
  height: 56px;
  background: var(--cream);
  color: var(--bg);
  overflow-x: clip;
  transition: color 0.8s ease;
  pointer-events: none;
}

/* les coulures s'allongent au scroll (custom.js recalcule le tracé), la bande du haut reste fixe */
.drip__svg {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  /* sous 1440 px on garde la vague à taille réelle, recadrée au centre */
  width: max(100%, 1440px);
  height: 96px;
  transform: translateX(-50%);
}

/* ==========================================================================
   Univers desserts
   ========================================================================== */
.desserts {
  background: var(--cream);
  min-height: 254px;
  padding-block: 50px 70px;
}

/* mobile : défilement horizontal pleine largeur */
.desserts__scroll {
  overflow-x: auto;
  /* l'overflow coupe aussi en vertical : place pour la pastille qui monte au survol */
  margin-top: -16px;
  padding-top: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.desserts__scroll::-webkit-scrollbar { display: none; }

.desserts__list {
  display: flex;
  align-items: flex-start;
  gap: var(--space-18);
  width: max-content;
  min-width: 100%;
  padding-inline: var(--gutter);
}

.desserts__item { flex: none; width: 84px; }

@media (min-width: 768px) {
  .desserts__list {
    gap: var(--space-10);
    width: auto;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
  }

  .desserts__item { flex: 1 0 128px; }
}

.dessert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  text-align: center;
}

.dessert__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--soft);
  transition: background-color 0.5s ease, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.dessert__badge img {
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.dessert__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  transition: color 0.3s ease;
}

/* survol : pastille theme/bg qui rebondit + pictogramme incliné */
.dessert:hover .dessert__badge,
.dessert:focus-visible .dessert__badge {
  background: var(--bg);
  transform: translateY(-4px) scale(1.06);
}

.dessert:hover .dessert__badge img,
.dessert:focus-visible .dessert__badge img { transform: translateY(-2px) rotate(-6deg); }

.dessert:hover .dessert__label,
.dessert:focus-visible .dessert__label { color: var(--deep); }

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

/* ==========================================================================
   Engagements
   ========================================================================== */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.commitments {
  background: var(--cream);
  padding-block: 40px 120px;
}

.commitments__inner {
  display: grid;
  gap: 40px;
}

.commitments__title {
  margin: 16px 0 0;
  max-width: 501px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.commitments__lead {
  margin-top: 42px;
  max-width: 404px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
}

/* texte révélé mot à mot au scroll (custom.js) */
/* opacité de chaque mot pilotée par le scroll (--o), sans à-coups */
.js .commitments__lead .word {
  opacity: var(--o, 0.15);
  transition: opacity 0.2s linear;
}

.commitments__values {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.value-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
  border-radius: var(--radius-card);
  background: var(--soft);
  transition: background-color 0.6s ease;
}

.value-card__icon {
  width: 30px;
  height: 42px;
  color: var(--deep);
  transition: color 0.6s ease;
}

.value-card__title {
  margin: 28px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.value-card__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(75, 46, 36, 0.8);
}

@media (min-width: 768px) {
  .commitments__title { font-size: 48px; }
  .commitments__lead { font-size: 26px; line-height: 1.35; }
  .commitments__values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .commitments__inner {
    grid-template-columns: minmax(0, 570fr) minmax(0, 598fr);
    column-gap: 64px;
    align-items: start;
  }
}

/* apparition des éléments .reveal (custom.js) */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .commitments__lead .word { opacity: 1; transition: none; }
}

/* ==========================================================================
   Nos univers
   ========================================================================== */
.eyebrow--light {
  color: var(--bg);
  transition: color 0.6s ease;
}

.universes {
  background: var(--navy);
  color: var(--white);
  padding-block: 110px 120px;
}

.universes__title {
  margin: 16px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.universes__intro {
  margin-top: 16px;
  max-width: 462px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.universes__grid {
  display: grid;
  gap: 22px;
  margin-top: 48px;
}

.universe-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--navy-card);
}

.universe-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 396 / 250;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.universe-card:hover .universe-card__img { transform: scale(1.07); }

.universe-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.universe-card__tag {
  font-family: var(--font-hand);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--tone);
}

.universe-card__title {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.universe-card__text {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.universe-card__link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--tone);
}

.universe-card__link span { display: inline-block; transition: transform 0.3s ease; }
.universe-card:hover .universe-card__link span { transform: translateX(4px); }

.universes__action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .universes__title { font-size: 54px; }
  .universes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .universes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Nos incontournables
   ========================================================================== */
.featured {
  background: var(--cream);
  padding-block: 120px;
}

.featured__head {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.featured__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.featured__intro {
  max-width: 422px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(75, 46, 36, 0.85);
}

.featured__grid {
  display: grid;
  gap: 22px;
  margin-top: 56px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
}

.product-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-media);
}

.product-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 268 / 280;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 10px 16px;
}

.product-card__tag {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(42, 20, 14, 0.6);
}

.product-card__title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.product-card__text {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.product-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

.product-card__link span { display: inline-block; transition: transform 0.3s ease; }
.product-card:hover .product-card__link span { transform: translateX(4px); }

.featured__action {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

@media (min-width: 768px) {
  .featured__head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-24);
  }

  .featured__title { font-size: 54px; }
  .featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .featured__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   Bouton blanc (sur fond rouge)
   ========================================================================== */
.btn--white {
  background: var(--white);
  color: var(--ink);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  position: relative;
  /* fond au thème produit ; crème derrière le haut de la coulure : aucun filet coloré sur ses bords */
  background-color: var(--deep);
  background-image: linear-gradient(var(--cream) 0 28px, transparent 28px);
  color: var(--white);
  transition: background-color 0.8s ease;
  padding-block: 96px 120px;
  overflow-x: clip;
  overflow-y: visible;
}

.contact__drip {
  position: absolute;
  /* déborde de 1 px sur la section du dessus : évite un filet rouge à la jonction */
  top: -1px;
  left: 0;
  display: block;
  /* toute la forme tient dans la largeur de l'écran (étirée sous 1440 px) */
  width: calc(100% + 2px);
  height: 97px;
  color: var(--cream);
}

.contact__inner {
  position: relative;
  display: grid;
  gap: 24px;
}

.contact__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact__lead {
  margin: 24px 0;
  max-width: 522px;
  font-size: 16px;
  line-height: 1.65;
}

/* Carrousel de desserts */
.dessert-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 23px;
}

.dessert-carousel__stage {
  position: relative;
  width: 100%;
  max-width: 518px;
  height: 420px;
}

.dessert-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.dessert-carousel__slide.is-active {
  opacity: 1;
  transform: none;
}

/* GSAP (custom.js) : chute avec rebond, l'ancien dessert s'écrase en fondant */
.has-gsap .dessert-carousel__slide {
  transition: none;
  transform-origin: 50% 100%;
}

.dessert-carousel__slide img {
  width: auto;
  height: 420px;
  max-width: none;
  object-fit: contain;
}

.dessert-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 8px;
}

.dessert-carousel__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--white);
  transition: width 0.4s ease;
}

.dessert-carousel__dot::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

.dessert-carousel__dot.is-active { width: 26px; }

@media (min-width: 768px) {
  .contact__title { font-size: 64px; }
}

@media (min-width: 1100px) {
  .contact__inner {
    grid-template-columns: minmax(0, 674fr) minmax(0, 518fr);
    column-gap: 40px;
    align-items: center;
  }

  .contact__lead { margin-block: 24px; }
  .dessert-carousel { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dessert-carousel__slide,
  .dessert-carousel__dot { transition: none; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.3;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-block: 48px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--white); }

@media (min-width: 1100px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 128px;
    padding-block: 0;
  }
}

/* section atteinte au clavier ou en direct par l'URL : pas de contour sur le conteneur, et marge sous l'en-tête fixe */
section[tabindex="-1"]:focus { outline: none; }
html { scroll-padding-top: 0; }

/* ==========================================================================
   Blocks communs (common.title, common.text, common.image, common.form)
   ========================================================================== */
.block-title,
.block-text,
.block-image,
.block-form-wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding: 48px var(--gutter);
}

.block-title-heading {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.block-title-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--lead);
}

.block-title[data-align="center"],
.block-text[data-align="center"] { text-align: center; }
.block-title[data-align="right"],
.block-text[data-align="right"] { text-align: right; }

.block-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.block-text a { color: var(--deep); text-decoration: underline; }

.block-image-media { display: block; width: 100%; height: auto; border-radius: var(--radius-media); }
.block-image-caption { margin-top: 8px; font-size: 14px; color: var(--lead); }

.block-form-field { margin-bottom: 16px; }
.block-form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }

.block-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border-track);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

textarea.block-form-input { min-height: 140px; resize: vertical; }
.block-form-checkbox { margin-right: 8px; }

.block-form-submit {
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--deep);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.form-message-success,
.form-message-error { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.form-message-success { background: #e3efc8; color: #2f4a10; }
.form-message-error { background: #fcebe8; color: #8a1a20; }
