/* David Vignau · KM All One. TOUTES les couleurs du site sont ici : aucune couleur en dur plus bas.
   Charte du client (coffrets, enseigne, pots de glace) : boîtes cacao presque noires, signature manuscrite rose,
   pots crème et violet. On garde donc un fond cacao, la crème pour les vitrines (les photos détourées sur blanc s'y fondent),
   le rose de la signature pour l'action, et l'or (feuille d'or, poudre d'or de ses bonbons) seulement en décor.
   Contrastes vérifiés (4.5:1 minimum pour le texte) : voir les notes à droite. */
:root {
  --cacao: #1a0f0b;            /* fond sombre */
  --cacao-2: #26170f;          /* cartes sur le cacao */
  --cacao-3: #34221a;          /* champs sur le cacao */
  --creme: #f6ede3;            /* fond clair, texte clair : 16:1 sur --cacao */
  --creme-2: #ece0d1;          /* cartes sur la crème */
  --gris-chaud: #c9b5a6;       /* texte secondaire sur le cacao : 9.6:1 */
  --brun: #2a1a12;             /* texte sur la crème : 14:1 */
  --brun-2: #6a5246;           /* texte secondaire sur la crème : 6.3:1, 5.6:1 sur --creme-2 */
  --rose: #eaa6c8;             /* signature rose, action sur le cacao : 9.3:1 ; texte --cacao dessus : 9.3:1 */
  --rose-fonce: #96336a;       /* action sur la crème : 6.1:1 ; texte blanc dessus : 7:1 */
  --prune: #2a1219;            /* section « sur mesure » */
  --prune-2: #3a1b25;          /* champs sur la prune : texte crème 12:1 */
  --or: #d9b26f;               /* feuille d'or (décor seulement) */
  --or-clair: #fff1c9;
  --plaque: #3b2116;           /* plaque en chocolat */
  --plaque-reflet: #6b412c;
  --plaque-ecriture: #f7e6cc;  /* chocolat blanc sur la plaque : 11:1 */
  --erreur: #b3261e;           /* sur la crème : 6:1 */
  --erreur-sombre: #ffa394;    /* sur le cacao : 9:1, sur la prune : 8.4:1 */
  --ok: #8fd6a0;               /* « Ouvert » sur le cacao : 10:1 */
  --blanc: #ffffff;
  --noir-voile: rgba(16, 9, 6, .78);
  --voile-leger: rgba(16, 9, 6, .2);
  --ombre: rgba(0, 0, 0, .45);
  --verre: color-mix(in srgb, var(--cacao) 82%, transparent);

  /* Rôles : chaque type de section les redéfinit, tout le reste suit */
  --fond: var(--cacao);
  --carte: var(--cacao-2);
  --texte: var(--creme);
  --texte-2: var(--gris-chaud);
  --action: var(--rose);
  --action-ink: var(--cacao);
  --champ: var(--cacao-3);
  --err: var(--erreur-sombre);
  --line: rgba(246, 237, 227, .12);
  --line-2: rgba(246, 237, 227, .42);  /* bords des champs : 3:1 minimum */

  --f-display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;
  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --gutter: clamp(16px, 4vw, 72px);
  --maxw: 1320px;
  --nav-h: 72px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --arche: 999px 999px 26px 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--cacao); }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 1.0625rem/1.65 var(--f-body); overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--rose); color: var(--cacao); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.eyebrow { font: 500 .75rem/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--texte-2); margin: 0 0 1.25rem; }
.h2 { font: 400 clamp(2.3rem, 6.4vw, 5rem)/1.02 var(--f-display); letter-spacing: -.02em; margin: 0 0 2.25rem; }
.h2 em, .hero__title em { font-style: italic; color: var(--action); }
h3 { font: 500 1.35rem/1.2 var(--f-display); margin: 0 0 .35rem; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--texte-2); max-width: 46ch; }
.petit { font-size: .875rem; color: var(--texte-2); }
.desktop-only { display: none !important; }
@media (min-width: 900px) { .desktop-only { display: block !important; } .hero__cta.desktop-only { display: flex !important; } }

/* Le logo : sa signature manuscrite, en rose, comme sur ses coffrets */
.logo { font: 400 2rem/1 var(--f-script); color: var(--rose); white-space: nowrap; }
.logo__metier { font: 500 .75rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gris-chaud); }

/* ---------- Apparitions (style du studio) ---------- */
html.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
html.js .revele.vu { opacity: 1; transform: none; }
html.js .eyebrow.revele { transform: none; }
html.js .revele--cote { transform: translateX(-22px); }
html.js .revele--cote:nth-child(2) { transition-delay: .09s; } html.js .revele--cote:nth-child(3) { transition-delay: .18s; }
html.js .revele--cote:nth-child(4) { transition-delay: .27s; } html.js .revele--cote:nth-child(5) { transition-delay: .36s; }
html.js .revele-image { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); }
html.js .revele-image.vu { clip-path: inset(0); }
html.js .revele-image img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
html.js .revele-image.vu img { transform: none; }
.ligne { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ligne > span { display: inline-block; }
html.js .h2 .ligne > span { transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .11s); }
html.js .h2.vu .ligne > span { transform: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; background: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s, color .25s, box-shadow .25s;
}
.btn--accent { background: var(--action); color: var(--action-ink); box-shadow: 0 12px 26px -16px var(--action); }
.btn--accent:hover { box-shadow: 0 16px 32px -12px var(--action); }
.btn--ghost { border-color: var(--line-2); color: var(--texte); }
.btn--ghost:hover { border-color: var(--action); color: var(--action); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn > span[aria-hidden] { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover > span[aria-hidden] { transform: translateX(4px); }
.btn:hover > span[aria-hidden]:first-child { transform: translateX(-4px); }
.btn--petit { min-height: 44px; padding: 0 1.1em; font-size: .9375rem; }

/* ---------- En-tête ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--gutter);
  border-bottom: 1px solid transparent; transition: background-color .4s var(--ease), border-color .4s;
}
.nav--plein { background: var(--verre); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__brand { display: grid; justify-items: start; gap: 2px; min-height: 44px; align-content: center; margin-right: auto; text-decoration: none; }
.nav__brand .logo { transition: transform .25s var(--ease); transform-origin: left; }
.nav__brand:hover .logo { transform: rotate(-3deg); }
.nav__links { display: none; gap: 1.75rem; }
.nav__links a { text-decoration: none; color: var(--gris-chaud); min-height: 44px; display: inline-flex; align-items: center; position: relative; transition: color .25s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover { color: var(--creme); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; }
.nav__tel { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--rose); }
.nav__tel svg { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 1000px) { .nav__links, .nav__cta { display: inline-flex; } .nav__tel { display: none; } }

/* ---------- 01 · Héros ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 24px) 0 clamp(48px, 9vh, 96px); }
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before { /* voile : le titre reste lisible sur la photo (crème sur voile ≥ 9:1) */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--noir-voile) 0%, transparent 22%, transparent 42%, var(--noir-voile) 74%, var(--cacao) 100%);
}
.hero__inner { position: relative; z-index: 3; }
.hero__title { font: 400 clamp(3.1rem, 15.5vw, 8.4rem)/.95 var(--f-display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.hero__lead { font-size: 1.2rem; max-width: 40ch; margin: 1.6rem 0 2rem; color: var(--creme); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__cta .btn--ghost { border-color: rgba(246, 237, 227, .55); }
.hero__statut { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(48px, 9vh, 96px); margin: 0; }
.hero__indice { position: absolute; z-index: 3; top: calc(var(--nav-h) + 18px); left: 50%; translate: -50% 0; margin: 0; font: .75rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--creme); white-space: nowrap; transition: opacity .6s; text-shadow: 0 1px 8px var(--ombre); }
.hero.a-joue .hero__indice { opacity: 0; }
.sur-doigt { display: none; }
@media (hover: none) { .sur-souris { display: none; } .sur-doigt { display: inline; } }
@media (max-width: 899px) { .hero__indice { display: none; } }
@media (min-width: 900px) {
  .hero { align-items: center; padding-bottom: 0; }
  .hero__photo img { object-position: 50% 50%; }
  .hero::before { background: linear-gradient(90deg, var(--noir-voile) 0%, rgba(16, 9, 6, .5) 42%, transparent 70%), linear-gradient(180deg, transparent 75%, var(--cacao)); }
  .hero__inner { max-width: var(--maxw); }
  .hero__title { max-width: 9ch; }
}

/* Le statut d'ouverture (héros et « Venir ») */
[data-statut] { display: inline-flex; align-items: center; gap: .6rem; font: 500 .8125rem var(--f-mono); letter-spacing: .06em; padding: .55rem .95rem; border-radius: 99px; background: var(--verre); border: 1px solid var(--line); color: var(--creme); }
[data-statut] i { width: 8px; height: 8px; border-radius: 50%; background: var(--gris-chaud); }
[data-statut].is-ouvert i { background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pouls 2.4s var(--ease) infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 8px transparent; } }

/* Feuille d'or : de petits éclats naissent sous le geste, tournent et retombent */
.hero__or { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.or {
  position: absolute; left: 0; top: 0; width: var(--t, 12px); height: calc(var(--t, 12px) * .8);
  margin: calc(var(--t, 12px) / -2) 0 0 calc(var(--t, 12px) / -2);
  background: linear-gradient(135deg, var(--or-clair), var(--or) 45%, color-mix(in srgb, var(--or) 60%, var(--cacao)));
  clip-path: var(--forme); animation: or 1.6s var(--ease) forwards;
}
@keyframes or {
  0% { transform: translate(var(--x), var(--y)) scale(.3) rotate(0deg); opacity: 0; }
  15% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1) rotate(30deg); }
  100% { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(.5) rotate(var(--r)); opacity: 0; }
}

/* Ouverture (2,5 s) : la signature s'écrit, puis le glaçage remonte et découvre la page. Rien n'est bloqué. */
.ouverture { display: none; }
html.intro .ouverture {
  display: grid; place-content: center; justify-items: center; gap: .7rem; position: fixed; inset: 0; z-index: 200; background: var(--cacao); pointer-events: none;
  animation: glacage .65s cubic-bezier(.7, 0, .3, 1) 1.95s forwards;
}
.ouverture__nom { margin: 0; font: 400 clamp(3.4rem, 15vw, 7rem)/1.1 var(--f-script); color: var(--rose); padding: 0 .3em; clip-path: inset(0 100% 0 0); animation: ecrit 1.3s cubic-bezier(.5, 0, .3, 1) .15s forwards; }
.ouverture__trait { width: min(52vw, 280px); height: 1px; background: var(--or); transform: scaleX(0); animation: trait .9s var(--ease) 1s forwards; }
.ouverture__metier { margin: 0; font: 500 .75rem var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--gris-chaud); opacity: 0; animation: apparait .8s var(--ease) 1.15s forwards; }
@keyframes apparait { to { opacity: 1; } }
.ouverture__coulure { position: absolute; left: 0; top: 100%; width: 100%; height: 90px; fill: var(--cacao); margin-top: -1px; }
@keyframes ecrit { to { clip-path: inset(0 0 0 0); } }
@keyframes trait { to { transform: none; } }
@keyframes glacage { to { transform: translateY(calc(-100% - 100px)); } }

/* Entrée du héros : la photo dézoome, le titre monte ligne par ligne, l'en-tête arrive */
html.js .hero__photo img { animation: dezoom 9s var(--ease) both; }
html.js .hero__title .ligne > span { animation: monte 1.1s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .11s); }
html.js .hero__title .ligne:nth-child(2) > span { --i: 1; }
html.js .hero__inner > :not(h1), html.js .hero__statut { animation: fondu .9s var(--ease) .5s both; }
html.intro .hero__photo img { animation-delay: 1.9s; }
html.intro .hero__title .ligne > span { animation-delay: calc(1.75s + var(--i, 0) * .11s); }
html.intro .hero__inner > :not(h1), html.intro .hero__statut { animation-delay: 2.2s; }
html.intro .nav { animation: fondu .8s var(--ease) 2s both; }
@keyframes monte { from { transform: translate3d(0, 110%, 0); } }
@keyframes dezoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes fondu { from { opacity: 0; transform: translateY(26px); } }

/* ---------- 02 · Stories ---------- */
.stories { padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.stories__inner { display: grid; gap: 1rem; }
.stories__titre { margin: 0; display: grid; gap: .25rem; font: italic 400 1.5rem/1.2 var(--f-display); }
.stories__titre .eyebrow { margin: 0; }
.stories__liste { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories__liste::-webkit-scrollbar { display: none; }
.stories__liste li { flex: none; scroll-snap-align: start; animation: fondu .8s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * .08s); }
html.intro .stories__liste li { animation-delay: calc(2.4s + var(--i, 0) * .08s); }
.bulle { display: grid; justify-items: center; gap: .55rem; width: 88px; padding: 0; border: 0; background: none; cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--texte); }
.bulle__anneau { position: relative; display: block; width: 80px; aspect-ratio: 1; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--rose), var(--or), var(--rose)); transition: transform .35s var(--ease); }
.bulle__anneau img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--cacao); }
.bulle.is-vu .bulle__anneau { background: var(--line-2); }
.bulle:hover .bulle__anneau { transform: scale(1.06) rotate(-4deg); }
.bulle:active .bulle__anneau { transform: scale(.95); }
@media (min-width: 900px) {
  .stories__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); align-items: center; }
  .stories__liste { margin: 0; padding-inline: 4px; justify-content: flex-end; }
  .bulle { width: 96px; } .bulle__anneau { width: 88px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 130px) 0; background: var(--fond); color: var(--texte); }
.section--creme {
  --fond: var(--creme); --carte: var(--creme-2); --texte: var(--brun); --texte-2: var(--brun-2); --action: var(--rose-fonce); --action-ink: var(--blanc);
  --champ: var(--blanc); --err: var(--erreur); --line: rgba(42, 26, 18, .12); --line-2: rgba(42, 26, 18, .45);
}
.section--rose { --fond: var(--prune); --carte: var(--prune-2); --champ: var(--prune-2); }
.tete { display: grid; gap: 0 6vw; align-items: end; margin-bottom: 1rem; }
@media (min-width: 900px) { .tete { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .tete .lead { margin: 0 0 2.4rem; } }

/* ---------- 03 · La vitrine ---------- */
/* Sur téléphone, la vitrine défile au doigt (moins d'informations à la fois) ; sur ordinateur, 3 colonnes */
.vitrine { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vitrine::-webkit-scrollbar { display: none; }
.vitrine > li { scroll-snap-align: start; }
@media (min-width: 900px) { .vitrine { margin: 0; padding: 0; gap: 18px; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.gateau { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--carte); border-radius: 26px; overflow: hidden; }
html.js .gateau { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * .07s); }
html.js .gateau.vu { opacity: 1; transform: none; }
.gateau__photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.gateau__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gateau__photo::after { /* reflet de glaçage miroir qui passe au survol */
  content: ''; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .38) 50%, transparent 60%);
  transform: translateX(-70%); transition: transform 1.1s var(--ease); pointer-events: none;
}
.gateau:hover .gateau__photo img { transform: scale(1.05); }
.gateau:hover .gateau__photo::after { transform: translateX(70%); }
.gateau__corps { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .5rem; align-content: space-between; }
.gateau__corps p { margin: 0 0 .4rem; color: var(--texte-2); font-size: 1rem; }
.signatures { margin-top: 2.5rem; display: grid; gap: .8rem; }
.signatures p { margin: 0; font-weight: 600; }
.puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.puce { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: 99px; border: 1px solid var(--line-2); background: var(--champ); font-weight: 600; cursor: pointer; transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); }
.puce:hover { border-color: var(--action); transform: translateY(-2px); }
.puce[aria-checked='true'], .puce[aria-pressed='true'] { background: var(--action); color: var(--action-ink); border-color: var(--action); }

/* Ruban de pâtisseries individuelles */
.ruban { overflow: hidden; margin-top: clamp(56px, 7vw, 96px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ruban__piste { display: flex; gap: 14px; width: max-content; animation: defile 70s linear infinite; animation-play-state: paused; }
.ruban.en-vue .ruban__piste { animation-play-state: running; }
.ruban img { height: clamp(150px, 18vw, 230px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.ruban img:nth-child(3n + 2) { aspect-ratio: 3 / 4; border-radius: 999px 999px 22px 22px; }
.ruban__legende { margin-top: 1rem; text-align: center; }
@keyframes defile { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- 04 · Commander ---------- */
.commande { display: grid; gap: 32px; }
@media (min-width: 960px) { .commande { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 5vw; align-items: start; } .commande__tete { position: sticky; top: calc(var(--nav-h) + 24px); } }
.apercu { position: relative; margin: 0; width: min(100%, 440px); }
.apercu__gateau { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px var(--ombre); }
.apercu__gateau img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.apercu.change .apercu__gateau img { opacity: 0; transition-duration: .2s; }
.apercu.zoom .apercu__gateau img { animation: dezoom 6s var(--ease) both; }
.apercu figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin-top: 1rem; }
.apercu figcaption b { font: italic 400 1.35rem/1.2 var(--f-display); }
.apercu figcaption span { font: .8125rem/2 var(--f-mono); color: var(--texte-2); }
@media (max-width: 959px) { .apercu { width: min(64%, 260px); margin-inline: auto; } .apercu figcaption { justify-content: center; text-align: center; } .commande .h2 { margin-bottom: 1.5rem; } }
/* La plaque en chocolat : elle se pose quand on écrit, et le message s'écrit de gauche à droite */
.plaque {
  position: absolute; left: 50%; top: 66%; translate: -50% 0; max-width: 92%; padding: .45em 1.1em .35em; border-radius: 10px;
  background: linear-gradient(160deg, var(--plaque-reflet), var(--plaque) 38%, var(--plaque) 70%, var(--plaque-reflet));
  box-shadow: 0 18px 30px -12px var(--ombre), inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: rotate(-5deg) scale(0); transition: transform .6s var(--ease);
}
.plaque.is-on { transform: rotate(-5deg) scale(1); }
.plaque__texte { display: block; font: 400 clamp(1.5rem, 4.4vw, 2.1rem)/1.15 var(--f-script); color: var(--plaque-ecriture); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plaque.ecrit .plaque__texte { animation: ecrit .9s cubic-bezier(.5, 0, .3, 1) both; }

.etapes { background: var(--carte); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3.2vw, 40px); box-shadow: 0 30px 60px -40px var(--ombre); }
.etapes__reperes { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; gap: 6px; }
.etapes__reperes li { flex: 1; display: flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--texte-2); padding-top: .7rem; border-top: 2px solid var(--line); transition: border-color .4s var(--ease), color .4s; }
.etapes__reperes span { font: 500 .75rem var(--f-mono); }
.etapes__reperes li.is-on { color: var(--texte); border-color: var(--action); font-weight: 700; }
.etapes__reperes li.is-fait { border-color: var(--action); }
@media (max-width: 520px) { .etapes__reperes li.is-on { flex: 3; white-space: nowrap; } .etapes__reperes li:not(.is-on) { font-size: 0; gap: 0; } .etapes__reperes li:not(.is-on) span { font-size: .75rem; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--f-display); margin-bottom: 1.1rem; padding: 0; }
.etapes__pas.entre { animation: pas-entre .55s var(--ease) both; }
.etapes__pas.entre-retour { animation: pas-retour .55s var(--ease) both; }
@keyframes pas-entre { from { opacity: 0; transform: translateX(26px); } }
@keyframes pas-retour { from { opacity: 0; transform: translateX(-26px); } }
.aide { font-size: .9375rem; color: var(--texte-2); margin: 1rem 0 .6rem; }
legend.aide { font: 700 .9375rem/1.4 var(--f-body); color: var(--texte); }
.champs { display: grid; gap: 16px; }
@media (min-width: 640px) { .champs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--large { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; margin-top: .9rem; }
.champs .field { margin-top: 0; }
.field label { font-weight: 700; font-size: .9375rem; }
.field__opt { font-weight: 400; color: var(--texte-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--champ);
  font-size: 1rem; transition: border-color .25s, box-shadow .25s; color-scheme: dark;
}
.section--creme .field :is(input, textarea) { color-scheme: light; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 30%, transparent); }
[aria-invalid='true'] { border-color: var(--err) !important; }
.field__err { margin: .3rem 0 0; color: var(--err); font-size: .875rem; font-weight: 700; }
.field__err:empty { display: none; }
.case { display: flex; gap: .75rem; align-items: flex-start; min-height: 44px; cursor: pointer; font-size: .9375rem; padding-top: .6rem; }
.case input { flex: none; width: 22px; height: 22px; accent-color: var(--action); margin: .1rem 0 0; }
.etapes__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.etapes__nav .btn--accent { margin-left: auto; }
.form__note { font-size: .875rem; color: var(--texte-2); margin: 1.2rem 0 0; }

/* Étape 1 : les gâteaux en vignettes */
.choix-gateaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.vignette { position: relative; display: grid; gap: .4rem; padding: 6px 6px 10px; border-radius: 18px; border: 1px solid var(--line); background: transparent; cursor: pointer; text-align: center; font-size: .8125rem; font-weight: 600; line-height: 1.25; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.vignette img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px; }
.vignette:hover { border-color: var(--line-2); transform: translateY(-2px); }
.vignette[aria-checked='true'] { border-color: var(--action); background: color-mix(in srgb, var(--action) 14%, transparent); }
.vignette::after { content: '✓'; position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--action); color: var(--action-ink); font-size: .875rem; transform: scale(0); transition: transform .35s var(--ease); }
.vignette[aria-checked='true']::after { transform: none; }
.compteur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 1.2rem; padding: .8rem 1rem; border-radius: 16px; border: 1px solid var(--line); }
.compteur__label { font-weight: 700; }
.compteur__ctrl { display: flex; align-items: center; gap: 6px; }
.compteur__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--champ); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: border-color .25s, transform .2s var(--ease); }
.compteur__btn:hover { border-color: var(--action); }
.compteur__btn:active { transform: scale(.9); }
.compteur__btn:disabled { opacity: .35; cursor: not-allowed; }
.compteur output { min-width: 3ch; text-align: center; font: 500 1.6rem/1 var(--f-display); }
.compteur output.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25); } }

/* Étape 3 : le bandeau des jours et les créneaux */
.jours { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(20px, 3.2vw, 40px)); padding: 4px clamp(20px, 3.2vw, 40px) 8px; scroll-snap-type: x proximity; }
.jours::-webkit-scrollbar { display: none; }
.jour { flex: none; scroll-snap-align: start; width: 64px; display: grid; justify-items: center; gap: 2px; padding: .6rem 0; border-radius: 16px; border: 1px solid var(--line-2); background: var(--champ); cursor: pointer; transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); }
.jour small { font: .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.jour b { font: 500 1.5rem/1.1 var(--f-display); }
.jour:hover { border-color: var(--action); }
.jour[aria-checked='true'] { background: var(--action); color: var(--action-ink); border-color: var(--action); transform: translateY(-2px); }
.jour:disabled { opacity: .35; cursor: not-allowed; }
.puces--choix .puce { font-weight: 600; }
.creneaux-entre .puce { animation: pas-entre .45s var(--ease) both; animation-delay: calc(var(--i, 0) * .05s); }

/* Le bon de commande : une étiquette crème, bord festonné comme un papier de pâtisserie */
.bon { outline: none; --texte: var(--brun); --texte-2: var(--brun-2); --action: var(--rose-fonce); --action-ink: var(--blanc); --line-2: rgba(42, 26, 18, .45); --line: rgba(42, 26, 18, .12);
  color: var(--brun); background: var(--creme); border-radius: 18px; padding: 1.5rem clamp(1rem, 3vw, 1.75rem) 1.75rem;
  -webkit-mask: radial-gradient(9px at 50% 0, transparent 98%, #000) 50% 0 / 22px 51% repeat-x, radial-gradient(9px at 50% 100%, transparent 98%, #000) 50% 100% / 22px 51% repeat-x;
  mask: radial-gradient(9px at 50% 0, transparent 98%, #000) 50% 0 / 22px 51% repeat-x, radial-gradient(9px at 50% 100%, transparent 98%, #000) 50% 100% / 22px 51% repeat-x;
}
.bon.entre { animation: bon-entre .8s var(--ease) both; }
@keyframes bon-entre { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }
.bon__ref { font: 500 .8125rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brun-2); margin: .6rem 0 0; }
.bon__ref b { color: var(--rose-fonce); }
.bon__titre { font: italic 400 1.9rem/1.15 var(--f-display); margin: .3rem 0 1rem; }
.bon__lignes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.25rem; margin: 0 0 .5rem; padding: 1rem 0; border-block: 1px dashed var(--line-2); }
.bon__lignes dt { font: .75rem/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--brun-2); }
.bon__lignes dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
@media (max-width: 520px) { .bon__lignes { grid-template-columns: minmax(0, 1fr); gap: 0; } .bon__lignes dd { margin-bottom: .6rem; } }
.bon__envoi .btn--accent { margin-left: 0; }
.bon__outils { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: .8rem; }
.bon__outils a, .bon__outils button { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; font-size: .9375rem; font-weight: 600; color: var(--rose-fonce); text-decoration: underline; text-underline-offset: 3px; }
.bon__etat { margin: .5rem 0 0; font-size: .875rem; color: var(--brun-2); }
.bon__etat:empty { display: none; }

/* ---------- 05 · Sur mesure ---------- */
.mesure { display: grid; gap: 36px; }
@media (min-width: 960px) { .mesure { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6vw; align-items: start; } }
.mesure__photos { margin: 2rem 0 0; border-radius: var(--arche); overflow: hidden; max-width: 420px; aspect-ratio: 4 / 5; }
.mesure__photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .mesure__photos { display: none; } }
.mesure__form { display: grid; gap: 1.2rem; background: var(--carte); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3.2vw, 40px); }
.mesure__form .aide { margin-top: 0; }
.mesure__form .btn { justify-self: start; }

/* ---------- 06 · Le chef ---------- */
.chef { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .chef { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 6vw; } }
.chef__photo { margin: 0; border-radius: var(--arche); overflow: hidden; max-width: 340px; justify-self: center; }
.chef__photo img { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; object-position: 50% 20%; }
.chef__texte p { max-width: 60ch; }
.parcours { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .parcours { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.parcours li { display: grid; gap: .2rem; padding: 1rem; border-radius: 18px; background: var(--carte); }
.parcours b { font: 500 1.35rem/1.1 var(--f-display); color: var(--action); }
.parcours span { font-size: .875rem; color: var(--texte-2); }
.citation { margin: 2rem 0 1.5rem; font: italic 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--f-display); color: var(--action); }
.citation cite { display: block; margin-top: .6rem; font: normal .75rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); }
.avis { font-size: .9375rem; color: var(--texte-2); }
.avis b { font: 500 1.5rem var(--f-display); color: var(--texte); }

/* ---------- 07 · Venir ---------- */
.venir { display: grid; gap: 40px; }
@media (min-width: 900px) { .venir { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.infos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem 3rem; }
@media (min-width: 700px) { .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.infos li { display: grid; gap: .3rem; align-content: start; }
.infos a { font: 400 1.3rem/1.3 var(--f-display); text-decoration: none; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; transition: color .25s; }
.infos a:hover { color: var(--action); }
.infos li > span:not(.label) a { font: inherit; display: inline; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.infos li > span:not(.label) { line-height: 2.75; }
.label { font: .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--texte-2); }
.horaires { background: var(--carte); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 32px); }
.horaires table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; }
.horaires caption { text-align: left; margin-bottom: .4rem; }
.horaires td { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.horaires td:last-child { text-align: right; font-family: var(--f-mono); font-size: .9375rem; }
.horaires tr.is-today td { color: var(--rose); font-weight: 700; }
.venir__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Pied de page et barre mobile ---------- */
.footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--gris-chaud); font-size: .875rem; }
.footer__grid { display: grid; gap: .6rem; justify-items: start; }
.footer p { margin: 0; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; }
.footer__logo { font-size: 2.4rem; }
.footer__maquette { font-size: .75rem; }
.actionbar {
  position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--verre); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .7s var(--ease);
}
.actionbar.is-visible { transform: none; }
.actionbar a { display: grid; place-items: center; align-content: center; gap: 4px; font-size: .75rem; font-weight: 700; text-decoration: none; color: var(--creme); }
.actionbar a.is-main { background: var(--rose); color: var(--cacao); }
.actionbar svg { width: 22px; height: 22px; fill: currentColor; }
@media (min-width: 900px) { .actionbar { display: none; } }

/* ---------- La visionneuse de stories ---------- */
.story { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--cacao); color: var(--creme); overflow: hidden; }
.story::backdrop { background: var(--noir-voile); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.story[open] { display: grid; place-items: center; animation: story-entre .45s var(--ease); }
.story.sort { animation: story-sort .28s var(--ease) forwards; }
@keyframes story-entre { from { opacity: 0; transform: scale(.94); } }
@keyframes story-sort { to { opacity: 0; transform: scale(.96); } }
@media (min-width: 700px) { .story { width: min(92vw, calc(88svh * 9 / 16)); height: 88svh; border-radius: 22px; margin: auto; box-shadow: 0 40px 90px -30px var(--ombre); } }
.story__cadre { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.story__fond { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) brightness(.55); z-index: -1; }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story__img.entre { animation: story-photo 5s linear both, fondu-simple .4s var(--ease) both; }
@keyframes story-photo { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes fondu-simple { from { opacity: 0; } }
.story__barres { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.story__barres span { flex: 1; height: 3px; border-radius: 3px; background: rgba(246, 237, 227, .35); overflow: hidden; }
.story__barres i { display: block; height: 100%; background: var(--creme); transform-origin: left; transform: scaleX(var(--p, 0)); }
.story__barres span.is-on i { animation: barre var(--duree, 5s) linear forwards; }
.story.pause .story__barres span.is-on i, .story.pause .story__img { animation-play-state: paused; }
@keyframes barre { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story__haut { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 12px); left: 16px; right: 8px; z-index: 3; display: flex; align-items: center; justify-content: space-between; text-shadow: 0 1px 8px var(--ombre); }
.story__haut b { font: italic 400 1.15rem var(--f-display); }
.story__fermer { width: 48px; height: 48px; border: 0; background: none; color: var(--creme); font-size: 2rem; line-height: 1; cursor: pointer; }
.story__zone { position: absolute; top: 80px; bottom: 120px; width: 40%; border: 0; background: none; z-index: 1; cursor: pointer; }
.story__zone--prec { left: 0; } .story__zone--suiv { right: 0; width: 60%; }
.story__bas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 3.5rem 18px max(22px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--noir-voile) 45%); display: grid; gap: .8rem; justify-items: start; }
.story__bas p { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.story .btn--accent { --action: var(--rose); --action-ink: var(--cacao); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .plaque.is-on { transform: rotate(-5deg); }
}
