/* LècheShop — design system « chocolat & citron »
   Mise en page inspirée de l'esprit « été, vagues et timbres-poste » (référence : justeunmaillot.com),
   appliquée à l'univers LècheBox : box kraft dessinée au feutre, colis neutre. */

/* ---------- Tokens ---------- */
:root {
  --choco: #463023;
  --choco-deep: #2e1f17;
  --choco-soft: #6b5345;
  --lemon: #feff9a;
  --mustard: #f2e15a;
  --paper: #f9f9f9;
  --line: #e4e1df;
  --blue: #6b85ff;
  --blue-soft: #dfe5ff;
  --sky: #b9c8ff;
  --pink: #ef9bc2;
  --pink-soft: #fbe0ec;
  --lilac: #ebe4ff;
  --peach: #ffe4d1;
  /* Formes arrondies « tracées à la main » pour encadrer les produits. */
  --blob-1: 46% 54% 52% 48% / 44% 46% 54% 56%;
  --blob-2: 54% 46% 44% 56% / 52% 42% 58% 48%;
  --blob-3: 48% 52% 58% 42% / 56% 50% 50% 44%;
  --blob-4: 58% 42% 50% 50% / 46% 56% 44% 54%;
  --sand: #eeebe9;
  --white: #fff;

  --ink: var(--choco);
  --ink-2: var(--choco-soft);

  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Permanent Marker", "Comic Sans MS", cursive;

  --fs-xl: clamp(54px, 9vw, 140px);
  --fs-l: clamp(32px, 4.4vw, 60px);
  --fs-m: clamp(22px, 2.2vw, 30px);
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-sm: 13px;

  --r-card: 18px;
  --r-tile: 28px;
  --r-pill: 50px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --header-h: 84px;
  --pop: 6px 6px 0 var(--choco);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (max-width: 1100px) { :root { --header-h: 68px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lemon); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Typo ---------- */
.display { font-family: var(--font-display); line-height: .95; text-transform: uppercase; }
.h-section { font-size: var(--fs-l); }
.h-tile { font-family: var(--font-display); font-size: var(--fs-m); line-height: 1; text-transform: uppercase; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; }
.hand { font-family: var(--font-hand); font-size: var(--fs-m); line-height: 1.1; color: var(--choco); rotate: -3deg; }

/* ---------- Feutre ---------- */
.doodle { display: block; color: var(--choco); overflow: visible; }
.doodle path { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.doodle--draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.no-js .doodle--draw path { stroke-dashoffset: 0; }
.is-drawn .doodle--draw path { animation: draw 1s var(--ease-out) forwards; }
.is-drawn .doodle--draw path + path { animation-delay: .7s; animation-duration: .35s; }

/* ---------- Vagues ---------- */
.wave { position: absolute; left: 0; width: 100%; height: clamp(26px, 4vw, 60px); pointer-events: none; z-index: 2; }
.wave--top { bottom: calc(100% - 1px); }
.wave--bottom { top: calc(100% - 1px); rotate: 180deg; }
.waved { position: relative; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--choco); --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: var(--fs-body);
  transition: background .2s, color .2s, transform .2s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.btn:hover { background: var(--choco-deep); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--lemon { --btn-bg: var(--lemon); --btn-fg: var(--choco); }
.btn--lemon:hover { background: var(--white); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--choco); }
.btn--white:hover { background: var(--lemon); }

.see-all { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.see-all span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); transition: background .2s, transform .2s var(--ease-out); }
.see-all svg { width: 13px; height: 13px; }
.see-all:hover span { background: var(--lemon); transform: translateX(3px); }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: clip; background: var(--choco-deep); color: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 70px; padding: 12px 35px; }
.marquee__item { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--band { background: var(--blue); color: var(--choco-deep); }
.marquee--band .marquee__group { gap: 28px; padding: 14px 14px; }
.marquee--band .marquee__item { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-m); text-transform: uppercase; }
.marquee__sun { width: 26px; height: 26px; color: var(--lemon); flex: none; }

/* ---------- En-tête (transparent sur le hero, plein au défilement) ---------- */
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); color: var(--white); transition: background .3s, color .3s, box-shadow .3s; }
.header.is-stuck, .header.is-solid { background: var(--paper); color: var(--choco); box-shadow: 0 10px 24px -20px rgba(46, 31, 23, .6); }
.header__bar { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.header__nav { display: flex; gap: 6px; }
.mega__btn:hover { background: rgba(255, 255, 255, .18); }
.header.is-stuck .mega__btn:hover, .header.is-solid .mega__btn:hover { background: var(--sand); }
.logo { display: inline-flex; align-items: center; gap: 10px; justify-self: center; }
.logo__lips { width: 46px; transition: transform .3s var(--ease-spring); }
.logo:hover .logo__lips { transform: rotate(-10deg) scale(1.08); }
.logo__word { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.pill-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; margin-right: 10px; border-radius: var(--r-pill); background: var(--choco); color: var(--white); font-weight: 700; text-transform: uppercase; font-size: 15px; transition: background .2s; }
.pill-cta:hover { background: var(--choco-deep); }
.pill-cta svg { width: 14px; height: 14px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.header.is-stuck .icon-btn:hover, .header.is-solid .icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 23px; height: 23px; }
.badge { position: absolute; top: 3px; right: 1px; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lemon); color: var(--choco); font-size: var(--fs-sm); font-weight: 800; }
.badge--fav { background: var(--pink); }
.badge.is-bump { animation: bump .45s var(--ease-spring); }
/* Photo qui vole du bouton vers l'icône de l'en-tête (app.js, flyTo) : rose pour les favoris, citron pour le panier. */
.fly { position: fixed; z-index: 200; pointer-events: none; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgb(70 48 35 / .25); will-change: transform, opacity; }
.fly img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.fly--fav { background: var(--pink); }
.fly--cart { background: var(--lemon); outline: 3px solid var(--choco); }
.confetto { position: fixed; z-index: 201; pointer-events: none; width: 8px; height: 8px; border-radius: 2px; }
.btn.is-done { background: var(--lemon); color: var(--choco); }
.burger { display: none; }

/* ---------- Méga-menu ---------- */
.mega__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border-radius: var(--r-pill); font-weight: 700; text-transform: uppercase; font-size: 14px; white-space: nowrap; transition: background .2s; }
.mega__btn svg { width: 14px; height: 14px; transition: rotate .2s; }
.mega__panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 3;
  background: var(--paper); color: var(--choco);
  padding: 28px 0 30px; box-shadow: 0 24px 40px -28px rgba(46, 31, 23, .6);
  visibility: hidden; opacity: 0; translate: 0 -8px; transition: opacity .2s, translate .2s, visibility 0s .2s;
}
.mega.is-open .mega__panel { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .2s, translate .2s; }
.mega.is-open .mega__btn svg { rotate: 180deg; }
@media (hover: hover) {
  .mega:hover .mega__panel { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .2s .08s, translate .2s .08s; }
  .mega:hover .mega__btn svg { rotate: 180deg; }
}
.header:has(.mega:hover), .header:has(.mega.is-open) { background: var(--paper); color: var(--choco); }
.header:has(.mega:hover) .mega__btn:hover, .mega.is-open .mega__btn { background: var(--sand); }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 32px; }
.mega__cols--many { grid-template-columns: repeat(4, 1fr); gap: 22px 32px; }
.mega__panel { max-height: calc(100vh - var(--header-h) - 20px); overflow-y: auto; }
.mega__title { display: inline-block; font-family: var(--font-display); font-size: var(--fs-body); text-transform: uppercase; margin-bottom: 8px; }
a.mega__title:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mega__col ul { display: grid; gap: 2px; }
.mega__col li a { display: inline-block; padding: 3px 0; font-size: 15px; color: var(--ink-2); }
.mega__col li a:hover { color: var(--choco); text-decoration: underline; text-underline-offset: 3px; }
.mega__all { margin-top: 22px; font-weight: 700; }

.searchbar { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--choco); padding: 14px 0 18px; box-shadow: 0 16px 24px -20px rgba(46, 31, 23, .6); }
.searchbar form { position: relative; max-width: 720px; margin-inline: auto; }
.searchbar input { width: 100%; height: 54px; padding: 0 60px 0 24px; border-radius: var(--r-pill); border: 2px solid var(--choco); background: var(--white); }
.searchbar input:focus { outline: none; box-shadow: 0 0 0 4px var(--lemon); }
.searchbar button { position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--choco); color: var(--white); }
.searchbar svg { width: 18px; height: 18px; }

/* ---------- Suggestions de recherche (app.js, suggest) ---------- */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: min(70vh, 560px); overflow-y: auto; padding: 8px;
  background: var(--white); color: var(--choco); border-radius: 22px; box-shadow: 0 24px 50px -18px rgb(46 31 23 / .45); border: 1px solid rgb(70 48 35 / .08);
  animation: suggest-in .18s var(--ease-out); }
@keyframes suggest-in { from { opacity: 0; translate: 0 -6px; } }
.suggest__cols { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 10px; border-bottom: 1px solid rgb(70 48 35 / .08); margin-bottom: 4px; }
.suggest__col { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--lemon); font-size: var(--fs-sm); font-weight: 700; }
.suggest__col span { font-weight: 500; opacity: .65; }
.suggest__item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.suggest__item img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--paper); mix-blend-mode: multiply; }
.suggest__text { display: grid; min-width: 0; }
.suggest__brand { font-size: 12px; color: var(--ink-2); }
.suggest__name { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest__price { font-family: var(--font-display); font-size: 15px; white-space: nowrap; }
.suggest__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 12px; border-radius: 14px; background: var(--choco); color: var(--white); font-weight: 700; }
.suggest__all svg { width: 16px; height: 16px; }
.suggest__empty { padding: 14px; font-size: var(--fs-sm); }
.suggest [role="option"]:hover, .suggest [role="option"][aria-selected="true"] { outline: 2px solid var(--choco); outline-offset: -2px; }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--paper); outline: none; }
.menu__search { position: relative; }

@media (max-width: 1100px) {
  .header__bar { gap: 8px; }
  .header__nav, .pill-cta { display: none; }
  .burger { display: inline-flex; }
  .logo__word { font-size: 21px; }
  .logo__lips { width: 34px; }
  .icon-btn { width: 44px; height: 44px; }
}
@media (max-width: 420px) { .icon-btn--search { display: none; } }

/* ---------- Menu mobile ---------- */
.menu { position: fixed; inset: 0; z-index: 85; visibility: hidden; transition: visibility 0s .35s; }
.menu.is-open { visibility: visible; transition: none; }
.menu__scrim { position: absolute; inset: 0; background: rgba(46, 31, 23, .45); opacity: 0; transition: opacity .3s; }
.menu.is-open .menu__scrim { opacity: 1; }
.menu__panel { position: absolute; inset: 0 auto 0 0; width: min(420px, 100%); background: var(--lemon); padding: 18px 22px 30px; overflow-y: auto; transform: translateX(-104%); transition: transform .35s var(--ease-out); }
.menu.is-open .menu__panel { transform: none; }
.menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.menu__close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); }
.menu__close svg { width: 18px; height: 18px; }
.menu__tree > li { border-bottom: 2px solid rgba(70, 48, 35, .15); }
.menu__tree summary { display: flex; justify-content: space-between; align-items: center; min-height: 58px; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: var(--fs-m); text-transform: uppercase; }
.menu__tree summary::-webkit-details-marker { display: none; }
.menu__tree summary svg { width: 20px; height: 20px; transition: rotate .2s; }
.menu__tree details[open] summary svg { rotate: 180deg; }
.menu__all { display: inline-block; margin-bottom: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.menu__account { display: flex; align-items: center; gap: 10px; padding: 14px 0; font-weight: 800; }
.menu__account svg { width: 22px; height: 22px; }
/* En-tête mobile : « Mon compte » passe à gauche, à côté du menu, pour laisser le logo respirer. */
.icon-btn--account-left { display: none; }
.header__left { display: flex; align-items: center; }
@media (max-width: 480px) {
  .icon-btn--account { display: none; }
  .icon-btn--account-left { display: inline-flex; }
  .header__bar .icon-btn { width: 40px; height: 40px; }
}
.menu__group { margin-bottom: 14px; }
.menu__family { display: block; font-weight: 800; margin-bottom: 4px; }
.menu__group ul { display: flex; flex-wrap: wrap; gap: 6px; }
.menu__group li a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .6); font-size: var(--fs-sm); font-weight: 600; }
.menu .btn { margin-top: 22px; width: 100%; }
.menu__search { position: relative; margin-bottom: 14px; }
.menu__search input { width: 100%; height: 50px; padding: 0 56px 0 20px; border-radius: var(--r-pill); border: 2px solid var(--choco); background: var(--white); }
.menu__search button { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--choco); color: var(--white); }
.menu__search svg { width: 18px; height: 18px; }

/* ---------- Hero vidéo ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); min-height: min(92vh, 860px); display: grid; place-items: center; color: var(--white); text-align: center; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #3c4a2a; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Bande paysage sur écran large, vidéo portrait sur écran vertical : chacun ne charge que la sienne. */
.hero__video--tall { display: none; }
@media (max-aspect-ratio: 1/1) { .hero__video--wide { display: none; } .hero__video--tall { display: block; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(30, 20, 14, .42); }
.hero__inner { padding: calc(var(--header-h) + 40px) var(--gutter) 110px; display: grid; justify-items: center; gap: 22px; }
.hero__kicker { font-size: var(--fs-lead); font-weight: 700; max-width: 40ch; }
.hero__title { font-size: var(--fs-xl); max-width: 9ch; }
.hero__title span { display: block; animation: rise .9s var(--ease-out) both; }
.hero__title span + span { animation-delay: .1s; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { justify-content: center; text-align: center; }

/* ---------- Timbres (collections) ---------- */
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 34px); }
.stamp {
  --r: 9px; --frame: var(--mustard);
  position: relative; display: block; padding: calc(2.6 * var(--r));
  background: var(--frame);
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  transition: transform .4s var(--ease-spring);
}
.stamp:nth-child(2) { --frame: var(--pink); }
.stamp:nth-child(3) { --frame: var(--sky); }
.stamp:nth-child(4) { --frame: var(--lemon); }
.stamp:nth-child(odd) { rotate: -1.5deg; }
.stamp:nth-child(even) { rotate: 1.5deg; }
.stamp:hover { transform: scale(1.03) rotate(-1deg); }
.stamp__inner { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile, var(--white)); }
.stamp__inner img { width: 78%; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.stamp:hover .stamp__inner img { transform: scale(1.08) rotate(-4deg); }
.stamp__title { position: absolute; left: 0; right: 0; top: 10%; text-align: center; color: var(--choco); }
.stamp__count { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
@media (max-width: 900px) { .stamps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stamp { --r: 7px; } .stamp__title { font-size: 17px; } }

/* ---------- Vidéos verticales ---------- */
.reels-wrap { overflow: clip; }
.reels {
  display: flex; gap: clamp(16px, 3vw, 52px); align-items: center;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 34px calc(50% - clamp(100px, 10vw, 136px));
}
.reels::-webkit-scrollbar { display: none; }
.reel { flex: none; width: clamp(200px, 20vw, 272px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; scroll-snap-align: center; position: relative; background: var(--sand); transition: transform .45s var(--ease-out), box-shadow .45s; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel.is-active { transform: scale(1.14); box-shadow: 0 20px 40px -18px rgba(46, 31, 23, .55); z-index: 1; }
.reel__label { position: absolute; left: 12px; right: 12px; bottom: 12px; color: var(--white); font-weight: 700; font-size: var(--fs-sm); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.reels-cta { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Bloc partagé (box surprise) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-tile); overflow: hidden; }
/* Les colonnes peuvent rétrécir sous la largeur de leur contenu (sinon la section déborde sur mobile). */
.split > * { min-width: 0; }
.split__media { position: relative; min-height: 460px; background: var(--sand); }
.split__media img, .split__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { background: var(--lemon); padding: clamp(32px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.split__promo { align-self: flex-start; font-size: var(--fs-sm); font-weight: 700; background: var(--white); border-radius: var(--r-pill); padding: 8px 14px; }
.plans { background: rgba(255, 255, 255, .55); border-radius: 18px; padding: 6px; }
.plan { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 16px; padding: 12px 14px; border-radius: 12px; transition: background .2s; }
.plan:hover { background: var(--white); }
.plan__name { font-weight: 800; }
.plan__price { font-size: var(--fs-sm); color: var(--ink-2); }
.plan__price b { color: var(--choco); font-size: var(--fs-body); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__media { min-height: 0; aspect-ratio: 1; } }

/* ---------- Bloc « Plutôt surprise ? » : chocolat, tampon promo, tickets de box ---------- */
.split--box { overflow: visible; }
.split--box .split__media { overflow: hidden; border-radius: var(--r-tile) 0 0 var(--r-tile); }
.split--box .split__body { background: var(--choco); color: #f4e9dd; border-radius: 0 var(--r-tile) var(--r-tile) 0; position: relative; }
.split--box .split__body::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .07;
  background: repeating-linear-gradient(-45deg, var(--lemon) 0 2px, transparent 2px 22px); }
.box-title { color: var(--lemon); }
.box-title__hand { display: block; font-family: var(--font-hand); text-transform: none; color: var(--pink); font-size: 1.15em; rotate: -4deg; margin-top: .15em; }
.split__hush { position: absolute; left: 6%; bottom: 7%; z-index: 1; font-family: var(--font-hand); font-size: var(--fs-lead); color: var(--choco); background: var(--lemon); padding: 6px 14px; border-radius: 6px; rotate: -6deg; box-shadow: 0 6px 16px rgb(70 48 35 / .25); }
.promo-seal { position: absolute; right: 5%; top: 5%; z-index: 2; width: clamp(118px, 15vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--pink); color: var(--choco);
  display: grid; place-content: center; text-align: center; gap: 2px; padding: 14px; box-shadow: 0 10px 24px rgb(70 48 35 / .3); rotate: 12deg; animation: seal-wobble 5s ease-in-out infinite; }
.promo-seal::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px dashed var(--choco); opacity: .55; animation: seal-spin 18s linear infinite; }
.promo-seal__pct { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px); line-height: 1; }
.promo-seal__txt { font-size: 10.5px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
@keyframes seal-spin { to { rotate: 360deg; } }
@keyframes seal-wobble { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }

.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 4px 8px; }
.ticket { position: relative; display: grid; gap: 2px; padding: 16px 16px 14px; border-radius: 14px; background: var(--ticket, var(--lemon)); color: var(--choco);
  transition: transform .3s var(--ease-spring), box-shadow .3s; box-shadow: 0 6px 0 rgb(0 0 0 / .18); }
.tickets li:nth-child(odd) .ticket { rotate: -1.5deg; }
.tickets li:nth-child(even) .ticket { rotate: 1.5deg; }
.ticket:hover { transform: translateY(-4px) rotate(0deg); rotate: 0deg; box-shadow: 0 12px 0 rgb(0 0 0 / .18); }
/* Encoches de ticket sur les côtés. */
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--choco); }
.ticket::before { left: -7px; } .ticket::after { right: -7px; }
.ticket__level { position: absolute; right: 12px; top: 10px; font-family: var(--font-display); font-size: 13px; opacity: .45; }
.ticket__name { font-family: var(--font-display); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.05; text-transform: uppercase; padding-right: 26px; }
.ticket__kicker { font-family: var(--font-hand); font-size: 15px; line-height: 1.15; margin-bottom: 6px; }
.ticket__price { font-size: 12px; font-weight: 700; white-space: nowrap; }
.ticket__price b { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2.2vw, 24px); }
.ticket__once { font-size: 12px; font-weight: 600; opacity: .8; }
/* Vague entre la vidéo et le bloc chocolat : seulement quand ils sont empilés (mobile, tablette). */
.wave--split { display: none; }
@media (max-width: 900px) {
  .wave--split { display: block; }
  .split--box .split__hush { bottom: 15%; }
  .split--box .split__media { border-radius: var(--r-tile) var(--r-tile) 0 0; }
  .split--box .split__body { border-radius: 0 0 var(--r-tile) var(--r-tile); }
}
@media (max-width: 480px) { .ticket__name { font-size: 15px; padding-right: 22px; } }
@media (max-width: 380px) { .tickets { grid-template-columns: 1fr; } }

/* ---------- Rayures + polaroïds ---------- */
.stripes {
  position: relative; overflow: clip;
  background: repeating-linear-gradient(90deg, var(--blue) 0 96px, var(--sky) 96px 192px);
  padding-block: clamp(70px, 9vw, 130px);
}
.stripes .wrap { display: grid; grid-template-columns: 1fr minmax(280px, 420px) 1fr; align-items: center; gap: 30px; }
.concept { background: var(--paper); border-radius: var(--r-tile); padding: clamp(28px, 3.4vw, 44px); text-align: center; display: grid; justify-items: center; gap: 16px; rotate: -1deg; }
.concept p { font-weight: 600; }
.polas { position: relative; display: grid; gap: 26px; justify-items: center; }
.pola { position: relative; width: min(100%, 300px); background: var(--white); padding: 12px 12px 18px; box-shadow: 0 14px 30px -18px rgba(46, 31, 23, .7); transition: rotate .4s var(--ease-spring); }
.polas--left .pola:nth-child(1) { rotate: -9deg; } .polas--left .pola:nth-child(2) { rotate: 6deg; justify-self: end; }
.polas--right .pola:nth-child(1) { rotate: 8deg; } .polas--right .pola:nth-child(2) { rotate: -5deg; justify-self: start; }
.pola:hover { rotate: 0deg; animation-play-state: paused; }
/* Balancement léger, comme des photos épinglées par le haut. L'inclinaison de base reste sur `rotate` ;
   l'animation ajoute un petit `transform` par-dessus. Chaque polaroïd a son rythme pour ne pas bouger en bloc. */
.stripes .pola { transform-origin: 50% 0; animation: pola-sway 5.6s ease-in-out infinite; }
.stripes .polas--left .pola:nth-child(2) { animation-duration: 6.4s; animation-delay: -1.8s; }
.stripes .polas--right .pola:nth-child(1) { animation-duration: 5.1s; animation-delay: -3.2s; }
.stripes .polas--right .pola:nth-child(2) { animation-duration: 6s; animation-delay: -0.9s; }
@keyframes pola-sway {
  0%, 100% { transform: translateY(0) rotate(-1.6deg); }
  50% { transform: translateY(-6px) rotate(1.6deg); }
}
.pola__img { aspect-ratio: 1; display: grid; place-items: center; background: var(--tile, var(--pink-soft)); }
.pola__img img { width: 82%; mix-blend-mode: multiply; }
.pola__name { margin-top: 10px; font-family: var(--font-hand); font-size: var(--fs-lead); text-align: center; }
.hotspot { position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--choco); box-shadow: 0 0 0 10px rgba(255, 255, 255, .35); transition: transform .2s var(--ease-spring); }
.hotspot svg { width: 20px; height: 20px; }
.hotspot:hover { transform: scale(1.1); }
.hotspot.is-done { background: var(--lemon); }
@media (max-width: 900px) {
  .stripes { background: repeating-linear-gradient(90deg, var(--blue) 0 56px, var(--sky) 56px 112px); }
  .stripes .wrap { grid-template-columns: 1fr 1fr; }
  .concept { grid-column: 1 / -1; grid-row: 1; }
  /* Les quatre polaroïds forment une grille 2 × 2 ; inclinaison réduite pour que les légendes ne sortent pas de l'écran. */
  .polas--left, .polas--right { display: contents; }
  .polas--left .pola, .polas--right .pola { justify-self: center; width: 100%; }
  .polas--left .pola:nth-child(1), .polas--right .pola:nth-child(2) { rotate: -4deg; justify-self: center; }
  .polas--left .pola:nth-child(2), .polas--right .pola:nth-child(1) { rotate: 4deg; justify-self: center; }
}

/* ---------- Texte géant défilant ---------- */
.giant { overflow: clip; padding-block: clamp(30px, 5vw, 60px); }
.giant__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.giant__track span { font-family: var(--font-display); font-size: clamp(64px, 11vw, 170px); line-height: 1; color: var(--pink); white-space: nowrap; padding-right: .5em; text-transform: uppercase; }

/* ---------- Produits (section colorée à vagues) ---------- */
.products { background: var(--lemon); }

/* ---------- Coups de cœur (accueil) sur fond chocolat ---------- */
.products--choco { background: var(--choco); color: #f4e9dd; isolation: isolate; }
.products--choco::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background: repeating-linear-gradient(-45deg, var(--lemon) 0 2px, transparent 2px 22px); }
.picks-head { display: grid; gap: 10px; max-width: 560px; }
.picks-head__label { font-size: var(--fs-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pink); }
.products--choco .h-section { color: var(--lemon); }
.picks-head__text { font-size: var(--fs-lead); line-height: 1.45; }
.products--choco .see-all span { background: var(--lemon); color: var(--choco); }
.products--choco .see-all:hover span { background: var(--white); }
.products--choco .card__brand { color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.products--choco .card__name { color: #fffaf3; }
.products--choco .price { font-family: var(--font-display); color: var(--lemon); font-size: clamp(18px, 1.8vw, 22px); }
.products--choco .card__add { background: var(--lemon); color: var(--choco); }
.products--choco .card__add.is-done { background: var(--pink); }
.products--choco .card__media { box-shadow: 0 18px 40px -20px rgb(0 0 0 / .6); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { --tile: var(--white); position: relative; display: flex; flex-direction: column; }
.card__media { --shape: var(--blob-1); --shape-hover: var(--blob-3); position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--shape); background: var(--tile); transition: transform .3s var(--ease-out), border-radius .6s var(--ease-out); }
.card:nth-child(4n + 2) .card__media { --shape: var(--blob-2); --shape-hover: var(--blob-4); }
.card:nth-child(4n + 3) .card__media { --shape: var(--blob-3); --shape-hover: var(--blob-1); }
.card:nth-child(4n + 4) .card__media { --shape: var(--blob-4); --shape-hover: var(--blob-2); }
.card:hover .card__media { transform: translateY(-4px); border-radius: var(--shape-hover); }
.card__img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .35s, transform .5s var(--ease-out); }
.card__img--alt { opacity: 0; transform: scale(.94); }
.card:hover .card__img--main:not(:only-of-type) { opacity: 0; }
.card:hover .card__img--alt { opacity: 1; transform: scale(1); }
.card:hover .card__img:only-of-type { transform: scale(1.06) rotate(-2deg); }
/* Centrée en haut : dans un coin, la forme arrondie (overflow: hidden) rognait l'étiquette. */
.card__flag { position: absolute; left: 50%; top: 7%; translate: -50% 0; white-space: nowrap; z-index: 1; padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); font-size: var(--fs-sm); font-weight: 800; }
.card__fav { position: absolute; right: 2px; top: 2px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); transition: transform .2s var(--ease-spring), background .2s; }
.card__fav svg { width: 20px; height: 20px; }
.card__fav:hover { transform: scale(1.1); }
.card__fav[aria-pressed="true"] { background: var(--pink); }
.card__fav[aria-pressed="true"] svg { fill: var(--choco); }
.card__body { padding: 14px 4px 0; display: grid; gap: 2px; text-align: center; justify-items: center; }
.card__brand { font-size: var(--fs-sm); color: var(--ink-2); }
.card__name { font-size: var(--fs-body); font-weight: 700; line-height: 1.3; }
.card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__foot { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 6px; }
.price { font-size: var(--fs-body); color: var(--ink-2); }
.card__add { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--choco); color: var(--white); font-size: var(--fs-sm); font-weight: 700; transition: transform .2s var(--ease-spring), background .2s, color .2s; }
.card__add svg { width: 16px; height: 16px; }
.card__add:hover { transform: scale(1.05); }
.card__add.is-done { background: var(--white); color: var(--choco); }
.card__add:disabled { background: var(--sand); color: var(--ink-2); cursor: not-allowed; }
@media (max-width: 560px) { .card__add-label { display: none; } .card__add { width: 44px; padding: 0; } }

/* ---------- Trios ---------- */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .packs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.pack { display: flex; flex-direction: column; background: var(--white); color: var(--choco); border-radius: var(--r-tile); padding: 22px; transition: transform .3s var(--ease-out); }
.pack:hover { transform: translateY(-4px); }
.pack__trio { position: relative; height: 190px; margin-bottom: 18px; border-radius: 18px; background: var(--pink-soft); }
.pack:nth-child(2) .pack__trio { background: var(--lemon); }
.pack:nth-child(3) .pack__trio { background: var(--blue-soft); }
.pack__trio img { position: absolute; width: 40%; aspect-ratio: 1; object-fit: contain; background: var(--white); padding: 8px; box-shadow: 0 10px 20px -14px rgba(46, 31, 23, .7); transition: transform .4s var(--ease-spring); }
.pack__trio img:nth-child(1) { left: 6%; top: 16%; rotate: -9deg; }
.pack__trio img:nth-child(2) { left: 30%; top: 8%; rotate: 4deg; z-index: 2; }
.pack__trio img:nth-child(3) { right: 6%; top: 18%; rotate: 11deg; }
.pack:hover .pack__trio img:nth-child(2) { transform: translateY(-6px); }
.pack__desc { margin-top: 10px; flex: 1; color: var(--ink-2); }
.pack__foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.pack__price { position: relative; font-family: var(--font-display); font-size: var(--fs-m); line-height: 1; padding: 8px 4px 4px; }
.pack__price .doodle { position: absolute; inset: -8px -14px -6px; width: calc(100% + 28px); height: calc(100% + 14px); }
.pack__sep { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 8px; }
.packs-note { margin-top: 22px; font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }

/* ---------- Notre histoire : quatre chapitres sur vidéo, en parallaxe ---------- */
/* app.js déplace chaque [data-parallax] selon le défilement (transform) ; sans JS ou en mouvement réduit, tout reste en place. */
/* margin-bottom = hauteur de la vague de sortie + respiration avant le titre de la section suivante. */
.tale { position: relative; background: var(--choco); color: #f4e9dd; padding-top: clamp(56px, 8vw, 110px); margin-bottom: calc(clamp(26px, 4vw, 60px) + clamp(44px, 6vw, 80px)); overflow-x: clip; }
.tale__head { display: grid; gap: 6px; padding-bottom: clamp(28px, 4vw, 56px); }
.tale__head .h-section { color: var(--lemon); }
.tale__kicker { color: var(--pink); font-size: var(--fs-lead); }
.tale__chapter { position: relative; min-height: min(92svh, 860px); display: grid; align-items: center; overflow: clip; isolation: isolate; }
.tale__media { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.tale__media video { width: 100%; height: 100%; object-fit: cover; }
/* Deux encodages : 1920×1080 pour les grands écrans, découpe verticale native 608×1080 pour les téléphones.
   La vidéo masquée n'est jamais visible, donc jamais chargée ni lue (preload="none" + lecture à l'écran). */
.tale__video--tall { display: none; }
@media (max-width: 700px) { .tale__video--wide { display: none; } .tale__video--tall { display: block; } }
/* Voile chocolat pour la lisibilité, plus dense du côté du texte. */
.tale__chapter::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(43 28 20 / .82) 0%, rgb(43 28 20 / .35) 55%, rgb(43 28 20 / .1) 100%),
              linear-gradient(0deg, var(--choco) 0%, transparent 18%, transparent 82%, var(--choco) 100%); }
.tale__chapter--right::before { background: linear-gradient(270deg, rgb(43 28 20 / .82) 0%, rgb(43 28 20 / .35) 55%, rgb(43 28 20 / .1) 100%),
              linear-gradient(0deg, var(--choco) 0%, transparent 18%, transparent 82%, var(--choco) 100%); }
.tale__num { position: absolute; z-index: -1; right: 4%; bottom: 6%; font-family: var(--font-display); font-size: clamp(120px, 24vw, 320px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgb(254 255 154 / .55); pointer-events: none; will-change: transform; }
.tale__chapter--right .tale__num { right: auto; left: 4%; }
.tale__inner { width: 100%; }
.tale__card { max-width: 460px; display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: rgb(70 48 35 / .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgb(254 255 154 / .18); box-shadow: 0 24px 60px rgb(0 0 0 / .35); will-change: transform; }
.tale__chapter--right .tale__card { margin-left: auto; }
.tale__step { font-size: var(--fs-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pink); }
.tale__title { font-size: clamp(28px, 4vw, 46px); color: var(--lemon); }
.tale__card p:not(.tale__step) { font-size: var(--fs-lead); line-height: 1.5; }
.tale__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.tale__ctas .btn:first-child { --btn-bg: var(--lemon); --btn-fg: var(--choco); }
@media (max-width: 700px) {
  .tale__chapter { min-height: 88svh; align-items: end; padding-bottom: 8svh; }
  .tale__chapter::before, .tale__chapter--right::before { background: linear-gradient(0deg, var(--choco) 0%, rgb(43 28 20 / .7) 38%, rgb(43 28 20 / .1) 70%, var(--choco) 100%); }
  .tale__num { top: 10%; bottom: auto; right: 4%; left: auto; font-size: 34vw; }
  .tale__chapter--right .tale__num { right: 4%; left: auto; }
}

/* ---------- Conseils ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: grid; gap: 14px; align-content: start; }
.post__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--sand); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.post:hover .post__img img { transform: scale(1.06); }
.post__title { font-size: var(--fs-lead); font-weight: 700; line-height: 1.3; }
.post__tag { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; gap: 22px; } .post { grid-template-columns: 120px 1fr; align-items: center; } .post__img { aspect-ratio: 1; } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--choco); color: #e9dccf; padding-top: clamp(56px, 7vw, 96px); margin-top: clamp(40px, 5vw, 70px); }
/* Page qui se termine sur une section colorée : la vague du footer se pose directement dessus. */
body:has(.section--end) .footer { margin-top: 0; }
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h3 { font-family: var(--font-display); font-size: var(--fs-body); color: var(--lemon); margin-bottom: 14px; }
.footer li + li { margin-top: 6px; }
.footer li a { display: inline-block; padding-block: 4px; }
.footer a:hover { color: var(--lemon); }
.footer__intro p { max-width: 34ch; margin-bottom: 18px; }
.footer__word { font-family: var(--font-display); color: var(--lemon); font-size: clamp(64px, 17vw, 270px); line-height: .8; margin-top: clamp(40px, 6vw, 80px); white-space: nowrap; text-align: center; translate: 0 .1em; overflow: clip; }
.footer__legal { background: var(--choco-deep); }
.footer__legal .wrap { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: var(--fs-sm); padding-block: 18px; }
@media (max-width: 860px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } .footer__intro { grid-column: 1 / -1; } }

/* ---------- Bandeau de titre des pages ---------- */
.page-hero { --bg: var(--lemon); position: relative; background: var(--bg); padding-block: clamp(36px, 5vw, 64px) clamp(34px, 4vw, 56px); margin-bottom: clamp(44px, 5vw, 72px); }
.page-hero .wrap { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.page-hero h1 { font-size: var(--fs-l); }
.page-hero p { margin-top: 12px; font-size: var(--fs-lead); max-width: 52ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); margin: 0 0 14px; padding: 0; list-style: none; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-2); }

/* ---------- Liste produits + filtres ---------- */
.toolbar { display: grid; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--sand); font-weight: 700; transition: background .2s, color .2s; }
.chip:hover { background: var(--lemon); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--choco); color: var(--white); }
a.chip { display: inline-flex; align-items: center; }
.chip__n { margin-left: 4px; font-size: 12px; font-weight: 600; opacity: .7; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.filters label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; }
.select { appearance: none; min-height: 44px; padding: 0 40px 0 16px; border-radius: var(--r-pill); border: 0; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23463023' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; font: inherit; font-weight: 600; color: var(--choco); cursor: pointer; }
.select:focus-visible { outline: 3px solid var(--blue); }
.list-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.list-search input { width: 100%; min-height: 44px; padding: 0 16px 0 44px; border-radius: var(--r-pill); border: 2px solid transparent; background: var(--sand); }
.list-search input:focus { outline: none; border-color: var(--choco); background: var(--white); }
.list-search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; }
.count { margin-left: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
@media (max-width: 640px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters .list-search { grid-column: 1 / -1; max-width: none; }
  .filters label { display: block; }
  .filters__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .filters .select { width: 100%; }
  .count { margin: 0; align-self: center; text-align: right; }
}
.empty { text-align: center; padding: 50px 16px; display: grid; justify-items: center; gap: 14px; }
.empty img { width: 130px; }
.empty strong { font-family: var(--font-display); font-size: var(--fs-m); text-transform: uppercase; }

/* ---------- Fiche produit ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
/* Pas d'overflow: hidden : la forme arrondie rognait le cœur des favoris placé dans le coin. */
.gallery__main { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--tile); border-radius: var(--blob-2); isolation: isolate; }
.gallery__main img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__main .card__fav { right: 8%; top: 8%; box-shadow: 0 2px 10px rgb(70 48 35 / .12); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; border-radius: var(--blob-4); background: var(--tile); display: grid; place-items: center; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.thumb img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.thumb[aria-pressed="true"] { outline-color: var(--choco); }
.pdp__info { display: grid; gap: 18px; }
.pdp__brand { font-weight: 700; color: var(--ink-2); }
.pdp__title { font-size: clamp(30px, 3.6vw, 50px); }
.pdp__price { font-size: var(--fs-m); font-weight: 800; }
.pdp__hook { font-family: var(--font-hand); font-size: var(--fs-m); line-height: 1.15; rotate: -1.5deg; }
.pdp__desc { display: grid; gap: 10px; }
.benefits { display: grid; gap: 8px; }
.more { display: flex; justify-content: center; margin-top: 36px; }
.card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.benefits li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.benefits svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--lemon); }
.buy { display: flex; gap: 10px; align-items: center; }
.buy .qty { margin: 0; flex: none; }
.buy .qty button { width: 42px; height: 52px; }
.buy .qty span { min-width: 24px; }
.buy .btn { flex: 1 1 auto; min-width: 0; padding: 0 18px; }
.buy .card__fav { flex: none; }
.buy .card__fav { position: static; width: 52px; height: 52px; background: var(--sand); }
.reassure { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: var(--sand); font-size: var(--fs-sm); }
.reassure li { display: flex; gap: 10px; align-items: center; }
.reassure svg { width: 20px; height: 20px; flex: none; }
.details { border-radius: 18px; background: var(--white); }
.details + .details { margin-top: -8px; }
.details summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 20px; cursor: pointer; font-weight: 800; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary svg { width: 18px; height: 18px; transition: rotate .25s var(--ease-out); rotate: 90deg; }
.details[open] summary svg { rotate: -90deg; }
.details__body { padding: 0 20px 20px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); box-shadow: 0 -12px 24px -18px rgba(46, 31, 23, .6); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .3s var(--ease-out); }
.buybar.is-on { transform: none; }
.buybar img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: var(--tile); mix-blend-mode: multiply; }
.buybar__name { flex: 1; min-width: 0; font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; }
.buybar__name span { display: block; color: var(--ink-2); font-weight: 600; }
.buybar .btn { min-height: 46px; padding: 0 20px; }
@media (min-width: 901px) { .buybar { display: none; } }
@media (max-width: 900px) { body:has(.buybar) .footer__legal { padding-bottom: 76px; } }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .gallery { position: static; }
  .gallery__main { aspect-ratio: 4 / 3; max-height: 52vh; width: 100%; }
  /* Zone défilante : sans hauteur minimale, la grille l'écrasait et coupait le bas des vignettes. */
  .thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 5px; min-height: calc(60px + 10px); }
  .thumb { flex: none; width: 60px; height: 60px; }
}

/* ---------- Page trios ---------- */
.trio-rows { display: grid; gap: clamp(28px, 4vw, 48px); }
.trio-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--white); border-radius: var(--r-tile); padding: clamp(20px, 3vw, 40px); }
.trio-row .pack__trio { height: auto; aspect-ratio: 5 / 4; margin: 0; }
.trio-row .pack__trio img { width: 42%; }
.trio-row:nth-child(2) .pack__trio { background: var(--lemon); }
.trio-row:nth-child(3) .pack__trio { background: var(--blue-soft); }
.trio-list { display: grid; gap: 8px; margin: 18px 0 22px; }
.trio-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sand); font-weight: 600; transition: background .2s; }
.trio-list a:hover { background: var(--lemon); }
@media (max-width: 860px) { .trio-row { grid-template-columns: 1fr; } }

/* ---------- Pages de texte ---------- */
.prose { max-width: 760px; display: grid; gap: 34px; }
.prose section { display: grid; gap: 12px; }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-m); text-transform: uppercase; }
.prose p, .prose li { font-size: var(--fs-lead); }
.prose ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
.note-box { padding: 16px 20px; border-radius: 16px; background: var(--pink-soft); font-weight: 600; }
/* Documents juridiques (CGV) : plus denses qu'une page éditoriale, encadré légal bien visible. */
.prose.legal { gap: 14px; }
.legal p, .legal li { font-size: var(--fs-base, 16px); line-height: 1.6; }
.legal h2 { margin-top: 26px; font-size: var(--fs-m); }
.legal h3 { margin-top: 12px; font-weight: 800; font-size: 1.05rem; }
.legal a { text-decoration: underline; }
.legal-box { display: grid; gap: 10px; padding: 20px 22px; border: 2px solid var(--choco); border-radius: 16px; background: var(--white); }
.legal-box p { font-size: .95rem; }
mark.todo { background: var(--lemon); color: var(--choco); padding: 0 4px; border-radius: 4px; font-weight: 800; }
@media print { .header, .footer, .marquee, .page-hero, .legal .btn { display: none !important; } }
/* Rétractation en ligne */
.withdraw { display: grid; gap: 16px; }
.withdraw [data-step] { display: grid; gap: 14px; }
.withdraw [hidden] { display: none; }
.withdraw label { display: grid; gap: 6px; font-weight: 700; }
.withdraw input, .withdraw textarea { font: inherit; font-weight: 500; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--sand); background: var(--white); }
.withdraw blockquote { padding: 14px 18px; border-left: 4px solid var(--pink); background: var(--white); border-radius: 8px; }
.withdraw__error { color: #b3261e; font-weight: 700; }

/* ---------- Tiroir panier ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; visibility: hidden; transition: visibility 0s .38s; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(46, 31, 23, .45); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .38s var(--ease-out); }
.drawer.is-open { pointer-events: auto; visibility: visible; transition: none; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: var(--white); }
.drawer__head h2 { font-family: var(--font-display); font-size: var(--fs-m); }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); }
.drawer__close:hover { background: var(--lemon); }
.drawer__close svg { width: 18px; height: 18px; }
/* ---------- Paliers du panier (app.js, renderProgress) ---------- */
.drawer__progress { padding: 16px 22px 14px; background: var(--lemon); font-size: var(--fs-sm); font-weight: 600; }
/* La bande citron se termine par une vague (hors du bloc mis à jour par app.js, qui réécrit son contenu). */
.drawer__band { position: relative; z-index: 1; }
.wave--drawer { height: 18px; }
.drawer__band + .drawer__items { padding-top: 30px; }
.prog__msg b { font-family: var(--font-display); font-weight: 400; font-size: 1.12em; }
.prog { position: relative; margin: 14px 18px 4px 4px; height: 52px; }
.prog__track { position: absolute; left: 0; right: 0; top: 7px; height: 12px; border-radius: 12px; background: rgb(70 48 35 / .14); overflow: hidden; box-shadow: inset 0 1px 2px rgb(70 48 35 / .2); }
/* Remplissage : dégradé rose → chocolat, reflet qui défile en continu, croissance avec un léger ressort. */
.prog__fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), #c45a8c 60%, var(--choco));
  transition: transform .9s cubic-bezier(.34, 1.3, .64, 1); }
.prog__fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgb(255 255 255 / 0) 0 10px, rgb(255 255 255 / .28) 10px 20px);
  background-size: 200% 100%; animation: prog-sheen 1.4s linear infinite; }
@keyframes prog-sheen { to { background-position: -56px 0; } }
.drawer__progress.is-full .prog__fill { box-shadow: 0 0 14px rgb(239 155 194 / .9); }
/* Paliers : un point sur la piste, le libellé dessous. */
.prog__mark { position: absolute; top: 0; translate: -50% 0; display: grid; justify-items: center; gap: 4px; }
.prog__mark--end { translate: -85% 0; justify-items: end; }
.prog__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--lemon); border: 2.5px solid rgb(70 48 35 / .35); color: transparent; transition: background .3s, border-color .3s, color .3s; }
.prog__dot svg { width: 14px; height: 14px; }
.prog__lbl { font-size: 10.5px; line-height: 1.2; text-align: center; font-weight: 700; opacity: .7; white-space: nowrap; transition: opacity .3s; }
.prog__mark--end .prog__lbl { text-align: right; }
.prog__mark.is-reached .prog__dot { background: var(--choco); border-color: var(--choco); color: var(--lemon); }
.prog__mark.is-reached .prog__lbl { opacity: 1; }
.drawer__items { flex: 1; overflow-y: auto; padding: 12px 22px; display: grid; gap: 10px; align-content: start; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 10px; border-radius: 16px; background: var(--white); align-items: center; animation: rise .35s var(--ease-out) both; }
.line__img { width: 76px; height: 76px; border-radius: 12px; background: var(--sand); object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.line__name { display: block; font-weight: 700; line-height: 1.3; }
.line__brand { font-size: var(--fs-sm); color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; background: var(--sand); border-radius: var(--r-pill); }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; font-weight: 800; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.line__price { font-weight: 800; text-align: right; }
.line__remove { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: underline; min-height: 32px; }
.drawer__empty { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 12px; }
.drawer__empty strong { font-family: var(--font-display); font-size: var(--fs-m); }
.drawer__foot { padding: 18px 22px 22px; background: var(--white); display: grid; gap: 8px; }
.drawer__row { display: flex; justify-content: space-between; }
.drawer__row--total { font-size: var(--fs-lead); font-weight: 800; margin-top: 4px; }
.drawer__foot .btn { margin-top: 10px; }
.drawer__foot .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.drawer__note { font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }
.drawer__accept { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.4; }
.drawer__accept input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--choco); }
.drawer__accept a { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--choco); color: var(--white); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; max-width: calc(100% - 32px); translate: -50% 160%; visibility: hidden; transition: translate .4s var(--ease-spring), visibility 0s .4s; }
.toast.is-on { translate: -50% 0; visibility: visible; transition: translate .4s var(--ease-spring); }
.toast img { width: 30px; height: 30px; object-fit: contain; background: var(--white); border-radius: 8px; }
/* Sur mobile, en haut sous l'en-tête : en bas, elle masquait la fiche (EAN) et la barre d'achat. */
@media (max-width: 900px) {
  .toast { top: calc(var(--header-h) + 10px); bottom: auto; width: max-content; translate: -50% -60vh; }
  .toast.is-on { translate: -50% 0; }
}

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bump { 50% { transform: scale(1.45); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .doodle--draw path { stroke-dashoffset: 0; }
}

/* Présentation du rayon, sous la grille. */
.rayon-about { max-width: 760px; margin-top: clamp(40px, 6vw, 72px); }
.rayon-about h2 { margin-bottom: 12px; }
.rayon-about p { line-height: 1.65; }
