/* Science Sucrée — la boîte à pâtisserie vue du dessus.
   Le carton rose est le fond de page, l'intérieur crème porte les plateaux,
   le chocolat plein est réservé à ce qui commande ou réserve. */

:root {
  --carton: #EDAFB0;
  --couvercle: #F4C6C5;
  --interieur: #FFF6F0;
  --rebord: #F1DDD3;
  --creux: #F4E3D9;
  --papier: #FFFFFF;
  --choco: #5A2506;
  --choco-fonce: #431A03;
  --encre: #4A1F06;
  --encre-douce: #6E3414;
  --rose-fonce: #A8434A;
  --rose-titre: #A0404A;
  --filet: #E3C9BE;
  --or: #C98A2B;
  --ouvert: #8FD694;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --texte: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --feutre: "Gochi Hand", "Comic Sans MS", cursive;

  --gouttiere: clamp(16px, 3.2vw, 44px);
  --ruban-h: 52px;
  --ombre-papier: 0 6px 14px rgb(90 37 6 / .16);
  --ombre-boite: 0 14px 26px rgb(90 37 6 / .22);
  --sortie: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ruban-h) + 16px); scrollbar-color: var(--choco) var(--carton); }
body {
  margin: 0; background: var(--carton); color: var(--encre);
  font-family: var(--texte); font-size: 1.0625rem; line-height: 1.6;
  caret-color: var(--choco);
}
::selection { background: var(--choco); color: var(--couvercle); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--choco); outline-offset: 3px; border-radius: 4px; }
.ribbon :focus-visible, .foot :focus-visible { outline-color: var(--couvercle); }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--ruban-h) + 16px); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.02; letter-spacing: -0.02em; }
h3 { font-size: 1.4rem; line-height: 1.15; }
.marker { font-family: var(--feutre); font-size: 1.6rem; line-height: 1.05; color: var(--choco); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--choco); color: #fff; padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 13px 26px; border-radius: 999px; border: 2px solid var(--choco);
  background: var(--choco); color: #fff; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  transition: background-color .2s var(--sortie), transform .2s var(--sortie);
}
.btn:hover { background: var(--choco-fonce); border-color: var(--choco-fonce); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--ghost { background: transparent; color: var(--choco); }
.btn--ghost:hover { background: rgb(90 37 6 / .08); border-color: var(--choco); }
.link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Le couvercle ---------- */
.lid { background: var(--couvercle); box-shadow: inset 0 -26px 30px -24px rgb(90 37 6 / .32), inset 0 -3px 0 rgb(90 37 6 / .18); }
.lid__in {
  width: min(1352px, 100%); margin-inline: auto;
  padding: 22px max(var(--gouttiere), env(safe-area-inset-right, 0px)) 30px max(var(--gouttiere), env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center;
}
.sticker {
  width: 92px; aspect-ratio: 1; border-radius: 50%; background: var(--interieur);
  display: grid; place-items: center; transform: rotate(-7deg);
  box-shadow: 0 0 0 2px var(--choco), 0 6px 12px rgb(90 37 6 / .22);
}
.sticker { position: relative; }
.sticker::after { content: ""; position: absolute; inset: 5%; border-radius: 50%; border: 1px dashed rgb(90 37 6 / .55); pointer-events: none; }
.sticker img { width: 76%; height: auto; }
.lid__nav { display: none; }
.rating { grid-column: 2; grid-row: 1; justify-self: end; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; text-decoration: none; font-size: .95rem; min-height: 44px; justify-content: center; }
.rating:hover span { text-decoration: underline; }
.stars { width: 96px; height: auto; fill: var(--or); display: block; }
.lid h1 { grid-column: 1 / -1; font-size: clamp(3.1rem, 13.4vw, 6rem); line-height: .92; letter-spacing: -0.025em; margin-top: 6px; }
.lid h1 em { display: block; font-weight: 500; color: var(--rose-titre); }
.lid__sub { grid-column: 1 / -1; font-weight: 600; max-width: 34em; }
.lid__note { grid-column: 1 / -1; justify-self: end; text-align: right; transform: rotate(-4deg); font-size: 1.75rem; margin-top: -4px; }
.lid__note sup { font-size: .6em; }

@media (min-width: 1000px) {
  .lid__in { grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 0 44px; padding-top: 40px; padding-bottom: 34px; align-items: start; }
  .sticker { width: 150px; grid-row: 1 / 3; }
  .lid__nav { display: flex; gap: 6px 24px; flex-wrap: wrap; justify-content: flex-end; grid-column: 2 / 4; grid-row: 1; font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .lid__nav a { text-decoration: none; padding: 10px 0; white-space: nowrap; }
  .lid__nav a:hover { text-decoration: underline; }
  .lid h1 { grid-column: 2; grid-row: 2; margin-top: -6px; font-size: clamp(4.6rem, 7.2vw, 6rem); }
  .lid__sub { grid-column: 2; grid-row: 3; margin-top: 16px; }
  .lid__note { grid-column: 3; grid-row: 2; align-self: center; font-size: 2.1rem; margin: 0; }
  .rating { grid-column: 3; grid-row: 3; align-self: end; }
}

/* ---------- Le ruban ---------- */
.ribbon { position: sticky; top: 0; z-index: 30; background: var(--choco); color: var(--couvercle); box-shadow: 0 8px 12px rgb(60 20 0 / .22); padding-top: env(safe-area-inset-top, 0px); }
.ribbon__in {
  width: min(1352px, 100%); margin-inline: auto; min-height: var(--ruban-h);
  padding-inline: max(var(--gouttiere), env(safe-area-inset-left, 0px)) max(var(--gouttiere), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ribbon a { text-decoration: none; }
.ribbon a:hover { text-decoration: underline; }
.ribbon b { color: #fff; }
.ribbon__status { display: inline-flex; align-items: center; gap: 10px; min-height: var(--ruban-h); min-width: 0; }
.ribbon__status span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--couvercle); }
.is-open .dot { background: var(--ouvert); }
.is-closed .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--couvercle); }
.ribbon__addr, .ribbon__deadline { display: none; white-space: nowrap; align-items: center; min-height: var(--ruban-h); }
.ribbon__menu {
  flex: none; background: transparent; border: 2px solid var(--couvercle); border-radius: 999px; color: var(--couvercle);
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 18px; min-height: 44px; cursor: pointer;
}
.ribbon__menu[aria-expanded="true"] { background: var(--couvercle); color: var(--choco); }
.ribbon__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.ribbon__nav a { padding: 10px 0; white-space: nowrap; }
/* Téléphone, tablette, petit portable : le menu se déplie sous le ruban */
@media (max-width: 1239px) {
  .js .ribbon__nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--choco); flex-direction: column; gap: 0;
    padding: 6px max(var(--gouttiere), env(safe-area-inset-right, 0px)) 18px max(var(--gouttiere), env(safe-area-inset-left, 0px));
    box-shadow: 0 14px 18px rgb(60 20 0 / .3); font-size: 1rem; max-height: calc(100dvh - var(--ruban-h)); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .32s var(--sortie), visibility 0s .32s;
  }
  .js .ribbon__nav.is-open { clip-path: inset(0 0 -30px 0); visibility: visible; transition: clip-path .32s var(--sortie); }
  .js .ribbon__nav a { padding: 14px 0; border-top: 1px solid rgb(244 198 197 / .25); }
  html:not(.js) .ribbon__menu { display: none; }
  html:not(.js) .ribbon__in { flex-wrap: wrap; padding-block: 6px; }
}
@media (max-width: 400px) { .ribbon__in { font-size: .72rem; letter-spacing: .06em; gap: 10px; } .ribbon__menu { font-size: .72rem; letter-spacing: .06em; padding-inline: 14px; } }
@media (min-width: 700px) and (max-width: 999px) { .ribbon__addr { display: inline-flex; } }
@media (min-width: 1240px) { .ribbon__addr { display: inline-flex; } }
@media (min-width: 1000px) { .ribbon__deadline { display: inline-flex; gap: .4em; } }
@media (min-width: 1240px) {
  .ribbon__menu { display: none; }
  .ribbon__nav { display: none; }
  .ribbon.is-stuck .ribbon__addr, .ribbon.is-stuck .ribbon__deadline { display: none; }
  .ribbon.is-stuck .ribbon__nav { display: flex; flex-wrap: nowrap; }
}

/* ---------- Les plateaux ---------- */
.tray {
  width: min(1352px, 100% - 2 * var(--gouttiere)); margin: clamp(22px, 3vw, 30px) auto 0;
  background: var(--interieur); border-radius: 12px;
  box-shadow: inset 0 0 0 clamp(5px, .8vw, 10px) var(--rebord), inset 0 16px 26px rgb(90 37 6 / .12), var(--ombre-boite);
  padding: clamp(20px, 3vw, 38px);
}
.band { padding-block: clamp(56px, 8vw, 104px) 0; }
.band__in { width: min(1264px, 100%); margin-inline: auto; padding-inline: max(var(--gouttiere), env(safe-area-inset-left, 0px)) max(var(--gouttiere), env(safe-area-inset-right, 0px)); }
.band p, .tray p { max-width: 62ch; }

/* ---------- Composer sa boîte ---------- */
.composer { display: grid; gap: 22px; }
.box { order: -1; position: sticky; top: calc(var(--ruban-h) + env(safe-area-inset-top, 0px)); z-index: 5; background: linear-gradient(to bottom, rgb(255 246 240 / 0), var(--interieur) 12px); padding: 12px 0 10px; margin-top: -12px; box-shadow: 0 10px 10px -10px rgb(90 37 6 / .25); }
/* téléphone tenu en paysage : la boîte ne reste pas collée, elle prendrait tout l'écran */
@media (max-height: 600px) and (max-width: 999px) { .box { position: static; box-shadow: none; } }
.wells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 440px; margin-inline: auto; }
.well {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0;
  border: 0; border-radius: 14px; background: var(--creux); cursor: pointer;
  box-shadow: inset 0 6px 12px rgb(90 37 6 / .13), inset 0 -2px 0 #fff;
}
/* le signe plus est dessiné, pas tapé */
.well::before, .well::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #A0705F; border-radius: 2px; }
.well::before { width: 22%; height: 3px; }
.well::after { width: 3px; height: 22%; }
.well.is-filled { box-shadow: inset 0 8px 16px rgb(90 37 6 / .2), inset 0 -2px 0 #fff; }
.well.is-filled::before, .well.is-filled::after { display: none; }
.well .cookie { width: 76%; filter: drop-shadow(0 6px 5px rgb(60 20 0 / .28)); }
/* vraie photo détourée d'un cookie : même place et même ombre que le dessin */
.cookie--photo { display: block; height: auto; aspect-ratio: 1; object-fit: contain; }
/* photo déposée depuis l'administration : carrée, montrée en rond, à la taille des cookies détourés (qui gardent une marge) */
.cookie--ronde { object-fit: cover; border-radius: 50%; scale: .9; }
/* la zone des cookies modifiable depuis l'admin ne doit pas déranger la grille du papier de soie */
[data-cms="cookies"] { display: contents; }
/* catalogue vide : pas de boîte ni de bon de commande à vide */
#cookies[data-empty] .box, #cookies[data-empty] .slip, #cookies[data-empty] #surprise { display: none; }
.well__tag {
  position: absolute; left: 6px; right: 6px; bottom: 6px; justify-self: start; max-width: calc(100% - 12px); width: fit-content;
  background: var(--papier); border-radius: 4px; padding: 2px 7px; font-size: .72rem; font-weight: 700; line-height: 1.2;
  text-align: left; box-shadow: 0 2px 4px rgb(90 37 6 / .18);
}
.well.is-filled:hover .cookie { transform: translateY(-3px) rotate(-6deg); }
.well .cookie { transition: transform .25s var(--sortie); }
/* le tampon est à gauche : le coin droit appartient à la croix de retrait */
.stamp {
  position: absolute; left: 6%; top: 8%; z-index: 2; border: 2px solid var(--rose-fonce); color: var(--rose-fonce); border-radius: 5px;
  padding: 1px 7px; font-size: clamp(.68rem, 2.6vw, 1.05rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-9deg);
  background: rgb(255 246 240 / .82);
}
/* la croix : dit comment retirer le cookie. Elle est dessinée ; toute l'alvéole reste la zone de toucher. */
.well__x {
  position: absolute; right: 6px; top: 6px; z-index: 3; width: 24px; height: 24px; border-radius: 50%;
  background: var(--papier); box-shadow: 0 2px 4px rgb(90 37 6 / .22); transition: background-color .2s var(--sortie), transform .2s var(--sortie);
}
.well__x::before, .well__x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 1px; background: var(--choco);
  transition: background-color .2s var(--sortie);
}
.well__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.well__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (hover: hover) {
  .well.is-filled:hover .well__x { background: var(--choco); transform: scale(1.08); }
  .well.is-filled:hover .well__x::before, .well.is-filled:hover .well__x::after { background: #fff; }
}
.well.is-filled:focus-visible .well__x { background: var(--choco); }
.well.is-filled:focus-visible .well__x::before, .well.is-filled:focus-visible .well__x::after { background: #fff; }

/* boîte de douze : quatre alvéoles par rangée, trois rangées */
.wells--12 { grid-template-columns: repeat(4, 1fr); }
.wells--12 .well__tag { font-size: .66rem; padding: 1px 5px; left: 4px; bottom: 4px; max-width: calc(100% - 8px); }
.wells--12 .stamp { font-size: clamp(.52rem, 1.75vw, .82rem); letter-spacing: .04em; padding: 0 4px; border-width: 1.5px; left: 4%; top: 6%; }
.wells--12 .well__x { width: 22px; height: 22px; right: 4px; top: 4px; }
/* très petits écrans : à douze, les alvéoles sont trop petites pour porter aussi un nom (il est sur le bon de commande) */
@media (max-width: 359px) {
  .wells--12 .well__tag { display: none; }
  .wells--12 .well .cookie { width: 82%; }
  .wells--12 .well__x { width: 18px; height: 18px; right: 2px; top: 2px; }
  .wells--12 .well__x::before, .wells--12 .well__x::after { width: 9px; }
  .wells--12 .stamp { font-size: .46rem; padding: 0 3px; }
  .dock .btn { white-space: nowrap; font-size: .86rem; padding-inline: 12px; }
}
/* le passage de 6 à 12 : les alvéoles glissent à leur nouvelle place, la page reste utilisable pendant ce temps */
::view-transition { pointer-events: none; }
::view-transition-group(*) { animation-duration: .32s; animation-timing-function: var(--sortie); }
.box__note { text-align: center; margin: 8px auto 0; font-size: 1.2rem; color: var(--encre-douce); max-width: none; }

.soie { filter: drop-shadow(0 3px 5px rgb(90 37 6 / .14)); }
.soie__in {
  --cran: 9px;
  background: var(--papier); padding: calc(clamp(18px, 2.4vw, 26px) + var(--cran)) clamp(18px, 2.4vw, 26px); display: grid; gap: 18px; align-content: start;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--cran)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--cran)) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--cran)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--cran)) 51% repeat-x;
}
.mini {
  justify-self: start; min-height: 44px; padding: 8px 18px; margin-top: -4px; border-radius: 999px; border: 2px solid var(--choco);
  background: transparent; color: var(--choco); font-weight: 700; cursor: pointer; transition: background-color .2s var(--sortie);
}
.mini:hover { background: rgb(90 37 6 / .08); }
.soie h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.range { display: grid; gap: 10px; }
.range h3 { font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; border-bottom: 2px dashed var(--filet); padding-bottom: 6px; }
.range h3 span { font-family: var(--texte); font-size: .88rem; font-weight: 700; color: var(--encre-douce); }
.loose { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 6px; }
.pick { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 4px 2px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.pick__art { display: block; width: 64px; height: 64px; }
.pick__art .cookie { width: 100%; filter: drop-shadow(0 4px 4px rgb(60 20 0 / .24)); transition: transform .25s var(--sortie); }
.pick__name { font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: center; }
.pick__name small { display: block; font-size: .74rem; color: var(--encre-douce); }
@media (hover: hover) { .pick:hover .cookie { transform: translateY(-4px) rotate(8deg); } }
.pick:active .cookie { transform: scale(.92); }
.pick[aria-disabled="true"] { cursor: not-allowed; }
.pick__count {
  position: absolute; right: -2px; top: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--choco); color: #fff; font-size: .76rem; font-weight: 700; display: grid; place-items: center;
}
.pick__art { position: relative; }

.slip { background: var(--papier); border-radius: 4px; box-shadow: var(--ombre-papier); padding: 22px; display: grid; gap: 12px; align-content: start; }
.slip h2 { font-size: 2rem; }
.slip__list { display: grid; gap: 8px; border-top: 2px dashed var(--filet); padding-top: 14px; font-size: .98rem; }
.slip__list li { display: flex; justify-content: space-between; gap: 14px; }
.slip__list li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.slip__empty { color: var(--encre-douce); }
.slip__gift { font-weight: 700; color: var(--rose-fonce); }
.slip__buche span:last-child { display: inline-flex; align-items: center; gap: 8px; }
/* petite croix du bon de commande : retire une bûche. Zone de toucher de 44 px autour d'un rond de 24 px. */
.slip__x { position: relative; flex: none; width: 24px; height: 24px; margin: -10px -10px -10px 0; padding: 0; border: 10px solid transparent; box-sizing: content-box; border-radius: 50%; background: var(--creux) content-box; cursor: pointer; }
.slip__x::before, .slip__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 1px; background: var(--choco); }
.slip__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.slip__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.slip__x:hover { background-color: var(--filet); }
.slip__totals { margin: 0; display: grid; gap: 6px; border-top: 2px solid var(--choco); padding-top: 12px; font-size: .98rem; }
.slip__totals div { display: flex; justify-content: space-between; gap: 14px; }
.slip__totals dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.slip__total { font-weight: 700; font-size: 1.15rem; }
.slip__total dd { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.slip #slip-mail { min-height: 46px; padding-block: 9px; }
.slip__count { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; margin-top: 6px; }
.slip__terms { font-size: .92rem; font-weight: 600; }
.slip__after { font-size: .88rem; color: var(--encre-douce); }
.slip .btn { width: 100%; }

@media (min-width: 1000px) {
  .composer { grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); gap: 26px 30px; align-items: start; }
  .soie { grid-row: 1 / 3; }
  .box { order: 0; position: static; margin: 0; padding: 0; background: transparent; box-shadow: none; }
  .wells { gap: 16px; max-width: 560px; }
  .well__tag { left: 10px; bottom: 9px; font-size: .8rem; padding: 3px 9px; }
  .box__note { margin-top: 18px; font-size: 1.45rem; transform: rotate(-2deg); }
  .slip { padding: 24px; max-width: 560px; width: 100%; justify-self: center; }
  .loose { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1360px) {
  .composer { grid-template-columns: minmax(320px, 372px) minmax(0, 1fr) 306px; align-items: start; }
  .soie { grid-row: auto; }
  .box { position: sticky; top: calc(var(--ruban-h) + 24px); }
  .wells { max-width: 620px; }
  .slip { position: sticky; top: calc(var(--ruban-h) + 24px); transform: rotate(1.4deg); max-width: none; }
}

/* un cookie se pose, le tampon frappe */
@media (prefers-reduced-motion: no-preference) {
  .well.is-new .cookie { animation: poser .52s var(--sortie); }
  .well.is-stamped .stamp { animation: tampon .42s .2s var(--sortie) backwards; }
  .well.is-leaving .cookie { animation: lever .2s ease-in forwards; }
  @keyframes lever { to { transform: translateY(-30px) scale(1.18) rotate(12deg); opacity: 0; } }
  @keyframes poser {
    from { transform: translateY(-34px) scale(1.22) rotate(-16deg); filter: drop-shadow(0 22px 12px rgb(60 20 0 / .16)); }
    to { transform: none; }
  }
  @keyframes tampon {
    from { transform: rotate(-9deg) scale(2.1); opacity: 0; }
    to { transform: rotate(-9deg) scale(1); opacity: 1; }
  }
}

/* ---------- Pâtisseries ---------- */
.pastries { display: grid; gap: 28px; margin-top: clamp(30px, 4vw, 46px); }
.pastries__text { display: grid; gap: 16px; align-content: start; justify-items: start; }
.pastries__text h3 { margin-top: 10px; }
.prices { display: grid; gap: 0; width: 100%; max-width: 420px; border-top: 2px dashed var(--filet); }
.prices div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 2px dashed var(--filet); font-weight: 600; }
.prices dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cases figure { position: relative; border-radius: 14px; overflow: hidden; background: var(--creux); aspect-ratio: 4 / 5; box-shadow: inset 0 8px 16px rgb(90 37 6 / .2); }
.cases img { width: 100%; height: 100%; object-fit: cover; }
.cases figcaption {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); background: var(--papier); border-radius: 4px;
  padding: 3px 9px; font-size: .82rem; font-weight: 700; box-shadow: 0 2px 4px rgb(90 37 6 / .2);
}
@media (min-width: 700px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .pastries { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 46px; align-items: start; } }

/* ---------- Bûches ---------- */
.buches__in { display: grid; gap: 30px; }
.buches__lead { display: grid; gap: 18px; align-content: start; justify-items: start; }
.buches__date { font-size: 1.9rem; transform: rotate(-2deg); }
.order { background: var(--papier); border-radius: 4px; box-shadow: var(--ombre-papier); padding: clamp(20px, 3vw, 34px); display: grid; gap: 14px; }
/* La ligne de prix est dans la police de texte : les chiffres fins du Bodoni se lisaient mal à cette taille (retour d'Héléna, 12/11/2026). */
.order h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; border-bottom: 2px solid var(--choco); padding-bottom: 8px;
  font-family: var(--texte); font-size: 1.3rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.order h3:not(:first-child) { margin-top: 14px; }
.order h3 span { font-family: var(--texte); font-size: .9rem; font-weight: 700; color: var(--encre-douce); }
.order ul { display: grid; }
.order li { padding: 10px 0; border-bottom: 2px dashed var(--filet); font-size: .98rem; }
.order li:last-child { border-bottom: 0; }
.order li b { display: block; font-family: var(--display); font-size: 1.2rem; }
/* commander une bûche : taille puis « Ajouter » */
.buche__add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.buche__add select {
  flex: 1 1 190px; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--filet);
  background: var(--interieur); color: var(--encre); font: inherit; font-weight: 600; cursor: pointer;
}
.buche__add select:hover { border-color: var(--choco); }
.buche__add .mini { margin-top: 0; min-width: 104px; }
.order__state { font-weight: 600; border-top: 2px solid var(--choco); padding-top: 12px; max-width: none; }
.order__state a { white-space: nowrap; }
.buches__how { font-size: .95rem; color: var(--encre-douce); }
@media (min-width: 1000px) { .buches__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; } .order { transform: rotate(-.6deg); } .buches__lead { position: sticky; top: calc(var(--ruban-h) + 28px); } }

/* ---------- Ateliers ---------- */
.ateliers__head { display: grid; gap: 24px; margin-bottom: 30px; }
.ateliers__head > div { display: grid; gap: 16px; align-content: center; }
.ateliers__photo { border-radius: 14px; overflow: hidden; box-shadow: var(--ombre-papier); max-width: 340px; transform: rotate(2deg); justify-self: center; }
.tickets { display: grid; gap: 12px; }
.ticket {
  position: relative; background: var(--papier); border-radius: 12px; box-shadow: var(--ombre-papier);
  display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 16px; padding: 14px 16px 16px 0; align-items: center;
}
.ticket time { grid-row: 1 / 3; align-self: stretch; display: grid; place-content: center; text-align: center; border-right: 2px dashed var(--filet); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ticket time b { display: block; font-family: var(--display); font-size: 2.3rem; line-height: 1; letter-spacing: 0; }
/* les deux encoches du talon */
.ticket::before, .ticket::after { content: ""; position: absolute; left: 69px; width: 18px; height: 18px; border-radius: 50%; background: var(--carton); }
.ticket::before { top: -9px; }
.ticket::after { bottom: -9px; }
.ticket h3 { font-size: 1.2rem; }
.ticket p { font-size: .95rem; color: var(--encre-douce); margin-top: 3px; }
.ticket a {
  grid-column: 2; justify-self: start; margin-top: 8px; min-height: 44px; display: inline-flex; align-items: center;
  background: var(--choco); color: #fff; border-radius: 999px; padding: 8px 20px; font-weight: 700; text-decoration: none;
}
.ticket a:hover { background: var(--choco-fonce); }
.tickets__empty { background: var(--papier); border-radius: 12px; box-shadow: var(--ombre-papier); padding: 22px; }
@media (min-width: 700px) {
  .ticket { grid-template-columns: 96px minmax(0, 1fr) auto; padding: 14px 18px 14px 0; }
  .ticket time { grid-row: auto; }
  .ticket::before, .ticket::after { left: 87px; }
  .ticket a { grid-column: 3; margin-top: 0; }
  .ateliers__head { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
}
@media (min-width: 1000px) { .tickets { grid-template-columns: 1fr 1fr; gap: 16px; } }

.party { display: grid; gap: 26px; margin-top: clamp(46px, 6vw, 72px); }
.party > div { display: grid; gap: 16px; align-content: start; justify-items: start; }
.party h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.formulas { border-top: 2px solid var(--choco); }
.formulas div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; padding: 14px 0; border-bottom: 2px dashed rgb(90 37 6 / .32); }
.formulas dt { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.formulas dt span { font-family: var(--texte); font-size: .88rem; font-weight: 600; margin-left: 6px; white-space: nowrap; }
@media (max-width: 520px) { .formulas dt span { display: block; margin-left: 0; } }
.formulas dd { font-weight: 700; white-space: nowrap; text-align: right; }
.formulas .what { grid-column: 1 / -1; font-weight: 400; white-space: normal; text-align: left; font-size: .98rem; max-width: 56ch; }
.gift { margin-top: 30px; max-width: none; }
.gift a { font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1000px) { .party { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }

/* ---------- Salon de thé ---------- */
.salon { margin-top: clamp(56px, 8vw, 104px); padding-block: clamp(56px, 8vw, 96px); background: var(--couvercle); box-shadow: inset 0 26px 30px -24px rgb(90 37 6 / .2), inset 0 -26px 30px -24px rgb(90 37 6 / .2); }
.salon__in { display: grid; gap: 36px; }
.salon__photos { display: grid; grid-template-columns: 7fr 5fr; gap: 12px; align-items: end; }
.salon__photos figure { border-radius: 14px; overflow: hidden; box-shadow: var(--ombre-papier); }
.salon__side { transform: rotate(3deg) translateY(-18px); }
.salon__text { display: grid; gap: 18px; align-content: start; }
.receipt { background: var(--papier); border-radius: 4px; box-shadow: var(--ombre-papier); padding: 22px; max-width: 460px; }
.receipt h3 { text-align: center; border-bottom: 2px dashed var(--filet); padding-bottom: 12px; margin-bottom: 4px; }
.receipt div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px dotted var(--filet); font-weight: 600; }
.receipt div:last-child { border-bottom: 0; }
.receipt dt span { display: block; font-weight: 400; font-size: .86rem; color: var(--encre-douce); }
.receipt dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .salon__in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; } .receipt { transform: rotate(-1.2deg); } }

/* ---------- La cheffe ---------- */
.cheffe__in { display: grid; gap: 34px; }
.cheffe__text { display: grid; gap: 16px; align-content: center; }
.cheffe__sign { font-size: 2.4rem; transform: rotate(-4deg); justify-self: start; }
.cheffe__photos { display: grid; grid-template-columns: 7fr 4fr; gap: 12px; align-items: end; }
.cheffe__photos figure { position: relative; }
.cheffe__photos img { border-radius: 14px; box-shadow: var(--ombre-papier); }
.cheffe__photos figure:last-child { transform: rotate(-3deg); }
.cheffe__photos figcaption { font-size: 1.3rem; text-align: center; margin-top: 8px; }
@media (min-width: 900px) { .cheffe__in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; } }

/* ---------- Avis ---------- */
.avis__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 30px; margin-bottom: 28px; }
.notes { columns: 1; column-gap: 18px; }
.notes li { break-inside: avoid; margin-bottom: 18px; }
.notes blockquote { background: var(--papier); border-radius: 4px; box-shadow: var(--ombre-papier); padding: 22px; display: grid; gap: 12px; }
.notes li:nth-child(odd) blockquote { transform: rotate(-.7deg); }
.notes li:nth-child(even) blockquote { transform: rotate(.6deg); }
.notes p { font-size: 1rem; }
.notes footer { font-family: var(--feutre); font-size: 1.45rem; line-height: 1; color: var(--rose-fonce); }
@media (min-width: 700px) { .notes { columns: 2; } }
@media (min-width: 1100px) { .notes { columns: 3; } }

/* ---------- Aperçu de la galerie ---------- */
.peek__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.peek__grid a { display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; box-shadow: var(--ombre-papier); }
.peek__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sortie); }
@media (hover: hover) { .peek__grid a:hover img { transform: scale(1.04); } }
@media (min-width: 800px) { .peek__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- Nous trouver ---------- */
.infos { display: grid; gap: 28px; margin-top: clamp(56px, 8vw, 104px); }
.infos__photo { border-radius: 12px; overflow: hidden; max-height: 520px; }
.infos__photo img { width: 100%; height: 100%; object-fit: cover; }
.infos__text { display: grid; gap: 18px; align-content: start; }
.infos address { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.15; }
.hours { max-width: 420px; border-top: 2px dashed var(--filet); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 2px dashed var(--filet); }
.hours dd { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today { font-weight: 700; }
.hours .is-today dt::after { content: "aujourd'hui"; font-family: var(--feutre); font-size: 1.25rem; font-weight: 400; color: var(--rose-fonce); margin-left: 10px; }
.infos__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.infos__note { font-size: .95rem; color: var(--encre-douce); }
@media (max-width: 480px) { .infos__actions .btn { width: 100%; } }
@media (min-width: 900px) { .infos { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 46px; align-items: center; } }

/* ---------- Pied de page ---------- */
.foot { margin-top: clamp(56px, 8vw, 104px); background: var(--choco); color: var(--couvercle); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot__in {
  width: min(1264px, 100%); margin-inline: auto;
  padding: 44px max(var(--gouttiere), env(safe-area-inset-right, 0px)) 110px max(var(--gouttiere), env(safe-area-inset-left, 0px));
  display: grid; gap: 22px; justify-items: start;
}
.foot__logo { width: 96px; padding: 9px; background: var(--interieur); border-radius: 50%; transform: rotate(-7deg); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 700; }
.foot nav a { padding: 10px 0; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot__legal { font-size: .9rem; }
@media (min-width: 1000px) { .foot__in { padding-bottom: 44px; grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; } .foot__logo { grid-row: 1 / 4; } }

/* ---------- Barre de commande, téléphone ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--papier); box-shadow: 0 -8px 18px rgb(60 20 0 / .22);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  font-weight: 600;
}
.dock b { font-family: var(--display); font-size: 1.5rem; }
.dock span { white-space: nowrap; }
.menu-open .dock { display: none; }
.dock .btn { min-height: 46px; padding: 9px 20px; font-size: 1rem; }
@media (min-width: 1000px) { .dock { display: none !important; } }

/* ---------- Galerie ---------- */
.page-head { padding-block: clamp(34px, 6vw, 64px) 0; display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: .96; letter-spacing: -0.025em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--choco); background: transparent; color: var(--choco);
  font-weight: 700; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--interieur); box-shadow: inset 0 0 0 1px var(--choco); }
.chip span { font-weight: 400; margin-left: 4px; }
.masonry { columns: 2; column-gap: 10px; margin-top: 26px; }
.masonry li { break-inside: avoid; margin-bottom: 10px; }
.masonry button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--creux); border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: var(--ombre-papier); }
.masonry img { width: 100%; height: auto; transition: transform .5s var(--sortie); }
@media (hover: hover) { .masonry button:hover img { transform: scale(1.04); } }
.masonry span {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); background: var(--papier); border-radius: 4px;
  padding: 3px 9px; font-size: .82rem; font-weight: 700; text-align: left; box-shadow: 0 2px 4px rgb(90 37 6 / .2);
}
@media (min-width: 700px) { .masonry { columns: 3; column-gap: 16px; } .masonry li { margin-bottom: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }

dialog.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 94dvh; overflow: visible; }
dialog.lightbox::backdrop { background: rgb(67 26 3 / .88); }
.lightbox figure { display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(94dvh - 120px); width: auto; height: auto; border-radius: 12px; background: var(--creux); }
.lightbox figcaption { color: var(--couvercle); font-weight: 700; text-align: center; }
.lightbox__bar { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.lightbox__bar button { min-height: 46px; min-width: 46px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--couvercle); background: transparent; color: var(--couvercle); font-weight: 700; cursor: pointer; }
.lightbox__bar button:hover { background: var(--couvercle); color: var(--choco); }
.lightbox :focus-visible { outline-color: var(--couvercle); }

/* ---------- Pages de texte ---------- */
.prose { display: grid; gap: 14px; padding-block: 30px 10px; }
.prose h2 { font-size: 1.6rem; margin-top: 18px; letter-spacing: -0.01em; }
.back { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
