/* Saint-Nicolas · Bonbon Caramel
   Mise en page : mobile d'abord. En-tête blanc + bande « candy stripe » de la marque,
   ouverture rouge framboise avec mitre rose et or, catalogue sur fond rose pâle.
   Couleurs de marque reprises de bonboncaramel.shop ; accents Saint-Nicolas (framboise, or) ajoutés. */
:root {
  color-scheme: light;
  /* marque Bonbon Caramel (bonboncaramel.shop) */
  --rose: #f6abb8;
  --rose-mid: #facdd4;
  --rose-pale: #fdeef1;
  --rose-deep: #db6780;
  --teal: #025f68;
  --teal-hover: #008e99;
  --teal-pale: #e3f4f4;
  --yellow-pale: #fffbd6;
  --ink: #2f2e34;
  /* accents Saint-Nicolas */
  --mitre: #8e1530;
  --mitre-dark: #6c0f24;
  --gold: #d7b25e;
  --gold-light: #f3dc9a;
  --gold-ink: #7d5f1a;
  /* neutres teintés rose */
  --ground: #fdf4f6;
  --surface: #ffffff;
  --ink-soft: #645a62;
  --line: #efd9de;
  --danger: #b3261e;
  --ok: #1d6b43;

  --f-display: "Yeseva One", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(110, 20, 45, .06), 0 8px 24px rgba(110, 20, 45, .07);
  --gutter: 16px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.55 var(--f-body);
  color: var(--ink);
  background: var(--ground);
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal-hover); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 10px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { top: 8px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.nw { white-space: nowrap; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #01737d; }
.btn-teal[disabled] { background: #8aa9ac; cursor: progress; }
.btn-gold { background: var(--gold-light); color: var(--mitre-dark); box-shadow: inset 0 -3px 0 rgba(125, 95, 26, .35); }
.btn-gold:hover { background: #f8e6b4; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--rose-deep); }
.linklike { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; }

/* ---------- en-tête ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); }
.topbar-in {
  max-width: 1180px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 150px; height: auto; }
.btn-cart {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--rose);
  background: var(--rose-pale); color: var(--ink); font-weight: 700; cursor: pointer;
}
.btn-cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-cart-label { display: none; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--mitre); color: #fff;
  font-size: .78rem; font-weight: 800; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
.stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--rose) 0 9px, #fff 9px 15px, var(--teal-hover) 15px 24px, #fff 24px 30px);
}

/* ---------- bandeau aperçu ---------- */
.demo-banner { background: var(--yellow-pale); color: var(--ink); font-size: .85rem; padding: 8px var(--gutter); text-align: center; border-bottom: 1px solid #efe39a; }

/* ---------- ouverture ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 10%, #b02543 0%, rgba(176, 37, 67, 0) 60%),
    radial-gradient(90% 60% at 0% 100%, var(--mitre-dark) 0%, rgba(108, 15, 36, 0) 70%),
    var(--mitre);
  color: #fff8f0;
}
.hero-in {
  max-width: 1180px; margin: 0 auto; padding: 22px var(--gutter) 6px;
  display: grid; grid-template-columns: 1fr; position: relative;
}
.hero-text { position: relative; z-index: 2; }
.hero-date {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  color: var(--gold-light); font-weight: 700; font-size: .95rem;
}
.hero-date svg { width: 16px; height: 16px; fill: var(--gold-light); }
.hero h1 {
  font: 400 clamp(2.05rem, 8.6vw, 3.9rem)/1.06 var(--f-display);
  letter-spacing: -.01em; max-width: 15ch; margin-right: 92px;
}
.hero-lead { max-width: 36rem; margin: 14px 0 0; font-size: 1.02rem; color: #fde3e8; }
.hero-actions { margin-top: 18px; display: grid; gap: 10px; justify-items: start; }
.hero-note { margin: 0; font-size: .86rem; color: #f5c9d2; max-width: 30rem; }
.hero-art { position: absolute; top: 14px; right: 6px; width: 104px; z-index: 1; }
.hero-art .mitre { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 18px rgba(40, 0, 10, .35)); }
.hero-art .etoiles { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--gold-light); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .mitre { animation: mitre-in .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-art .etoiles path { animation: twinkle 3.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  .hero-art .etoiles path:nth-child(2) { animation-delay: 1.2s; }
  .hero-art .etoiles path:nth-child(3) { animation-delay: 2.1s; }
  .hero-art .etoiles path:nth-child(4) { animation-delay: .6s; }
}
@keyframes mitre-in { from { transform: translateY(18px) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* aperçu catalogue dans l'ouverture */
.peek { max-width: 1180px; margin: 0 auto; padding: 18px 0 0; position: relative; z-index: 2; }
.peek-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gutter) 10px; }
.peek-head h2 { font: 700 .98rem/1.3 var(--f-body); color: #fff8f0; }
.peek-all { color: var(--gold-light); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.peek-list {
  list-style: none; margin: 0; padding: 0 var(--gutter) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.peek-list::-webkit-scrollbar { display: none; }
.peek-card {
  scroll-snap-align: start; background: var(--surface); color: var(--ink); border-radius: var(--r-md);
  overflow: hidden; display: grid; text-align: left; border: 0; padding: 0; cursor: pointer; width: 100%;
  box-shadow: 0 10px 24px rgba(40, 0, 10, .25);
}
.peek-card .media { aspect-ratio: 16 / 10; }
.peek-card .pc-body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.peek-card .pc-nom { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.peek-card .pc-prix { font-weight: 800; color: var(--mitre); font-variant-numeric: tabular-nums; }

/* ---------- étapes ---------- */
.steps { background: var(--surface); border-bottom: 1px solid var(--line); }
.steps ol {
  max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter); list-style: none;
  display: grid; gap: 10px; counter-reset: s;
}
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--ink-soft); }
.steps li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rose-pale); color: var(--mitre); font-weight: 800; font-size: .9rem; border: 2px solid var(--rose);
}
.steps strong { color: var(--ink); }

/* ---------- catalogue ---------- */
.catalogue { max-width: 1180px; margin: 0 auto; padding: 30px var(--gutter) 24px; scroll-margin-top: 70px; }
.catalogue:focus { outline: none; }
.cat-head h2, .infos h2 { font: 400 clamp(1.7rem, 6.4vw, 2.5rem)/1.12 var(--f-display); color: var(--mitre); }
.cat-sub { margin: 8px 0 0; font-weight: 600; }
.filters { margin: 16px calc(-1 * var(--gutter)) 0; display: grid; gap: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-budget .chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); }
.result-count { margin: 12px 0 0; font-size: .88rem; color: var(--ink-soft); }

.grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); height: 100%;
}
.card .media { aspect-ratio: 3 / 2; cursor: pointer; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-nom { font: 700 1.12rem/1.3 var(--f-body); margin: 0; }
.card-nom button { all: unset; cursor: pointer; }
.card-nom button:focus-visible { outline: 3px solid var(--teal-hover); outline-offset: 2px; border-radius: 4px; }
.card-acc { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card-compo { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.card-compo button { font-weight: 700; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 800; font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-var { font-size: .92rem; font-weight: 700; color: var(--mitre); }

/* quantité */
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--teal-pale); border: 2px solid var(--teal); }
.qty button {
  width: 44px; height: 44px; border: 0; background: none; color: var(--teal); font-size: 1.4rem; font-weight: 700;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center; line-height: 1;
}
.qty button:hover { background: rgba(2, 95, 104, .1); }
.qty output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.btn-add { min-width: 132px; }

/* visuels : photo ou visuel d'attente */
.media { position: relative; overflow: hidden; background: var(--rose-pale); display: block; width: 100%; border: 0; padding: 0; margin: 0; font: inherit; }
.media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.media img.photo.ok { opacity: 1; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph[data-cat="coffrets"] { background: radial-gradient(circle at 50% 45%, #fff 0, var(--rose-pale) 62%), var(--rose-pale); }
.ph[data-cat="sachets"] { background: radial-gradient(circle at 50% 45%, #fff 0, var(--teal-pale) 62%), var(--teal-pale); }
.ph[data-cat="chiques"] { background: radial-gradient(circle at 50% 45%, #fff 0, var(--yellow-pale) 62%), var(--yellow-pale); }
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(var(--gold) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 75%);
          mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 75%);
}
.ph svg.ico { width: 34%; max-width: 120px; height: auto; fill: none; stroke: var(--mitre); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; position: relative; }
.ph-tag {
  position: absolute; left: 10px; bottom: 10px; font-size: .74rem; font-weight: 700; color: var(--ink-soft);
  background: rgba(255, 255, 255, .85); padding: 3px 9px; border-radius: 999px;
}

.allergenes { margin: 22px 0 0; font-size: .88rem; color: var(--ink-soft); max-width: 46rem; }

/* ---------- infos retrait / livraison ---------- */
.infos { max-width: 1180px; margin: 0 auto; padding: 8px var(--gutter) 40px; }
.infos-grid { display: grid; gap: 16px; margin-top: 14px; }
.infos-grid > div { background: var(--surface); border-radius: var(--r-md); padding: 16px; border: 1px solid var(--line); }
.infos h3 { font: 700 1.05rem/1.3 var(--f-body); margin-bottom: 8px; }
.stores { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stores li { font-size: .92rem; color: var(--ink-soft); }
.stores strong { color: var(--ink); display: block; }
.infos p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- pied de page ---------- */
.footer { background: var(--rose-pale); border-top: 8px solid var(--rose); }
.footer-in { max-width: 1180px; margin: 0 auto; padding: 26px var(--gutter) 30px; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.footer p { margin: 0; }
.footer-logo { width: 150px; height: auto; margin-bottom: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- barre panier ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(110, 20, 45, .12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cartbar-in { max-width: 1180px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartbar-sum { display: grid; line-height: 1.2; font-size: .85rem; color: var(--ink-soft); }
.cartbar-sum strong { font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- feuilles (dialog) ---------- */
dialog.sheet {
  padding: 0; border: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh;
  border-radius: 22px 22px 0 0; background: var(--surface); color: var(--ink); overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(47, 46, 52, .55); }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-in { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.sheet-close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.detail-media .media { aspect-ratio: 3 / 2; }
.detail-body { padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.detail-body h2 { font: 400 1.8rem/1.12 var(--f-display); color: var(--mitre); padding-right: 30px; }
.detail-body h3 { font: 700 1rem/1.3 var(--f-body); margin-top: 6px; }
.detail-body p { margin: 0; }
.detail-prix { font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.compo { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.compo li { display: grid; grid-template-columns: 2em 1fr; gap: 8px; font-size: .95rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.compo .q { font-weight: 800; color: var(--mitre); text-align: right; font-variant-numeric: tabular-nums; }
.detail-pres { font-size: .9rem; color: var(--ink-soft); }
.compo.wide li { grid-template-columns: 4.4em 1fr; }
.detail-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px -18px calc(-22px - env(safe-area-inset-bottom, 0px));
  position: sticky; bottom: 0; background: var(--surface); padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
}
.detail-actions .btn { flex: 1 1 180px; }

/* sélection */
.cart-in { display: flex; flex-direction: column; overflow: hidden; height: 92vh; height: 92dvh; max-height: none; }
.cart-top { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); position: relative; }
.cart-top h2 { font: 400 1.6rem/1.15 var(--f-display); color: var(--mitre); padding-right: 50px; }
.cart-top .sheet-close { top: 8px; }
.progress { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 6px; counter-reset: p; }
.progress li {
  counter-increment: p; flex: 1; font-size: .78rem; font-weight: 700; color: var(--ink-soft);
  padding-top: 6px; border-top: 4px solid var(--line);
}
.progress li::before { content: counter(p) ". "; }
.progress li.on { color: var(--mitre); border-color: var(--mitre); }
.progress li.done { color: var(--ink); border-color: var(--rose-deep); }
.cart-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 20px; }
.cart-foot {
  border-top: 1px solid var(--line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); display: grid; gap: 10px;
}
.tot-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.tot-line strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.tot-note { margin: 2px 0 0; font-size: .82rem; color: var(--ink-soft); }
.foot-actions { display: flex; gap: 10px; }
.foot-actions .btn-next { flex: 1; }

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.line .media { width: 64px; height: 64px; border-radius: var(--r-sm); }
.line .ph svg.ico { width: 60%; }
.line .ph::before, .line .ph-tag { display: none; }
.line-main { display: grid; gap: 6px; min-width: 0; }
.line-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.line-nom { font-weight: 700; line-height: 1.3; }
.line-sub { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.line-tot { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-ctl .qty button { width: 40px; height: 40px; }
.line-del { background: none; border: 0; color: var(--danger); font-weight: 600; font-size: .88rem; text-decoration: underline; cursor: pointer; min-height: 40px; padding: 0 4px; }
.empty { text-align: center; padding: 30px 0; display: grid; gap: 14px; justify-items: center; color: var(--ink-soft); }
.suggest { margin-top: 22px; }
.suggest h3 { font: 700 1rem/1.3 var(--f-body); margin-bottom: 10px; }
.suggest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--rose-pale); }
.sug-txt { display: grid; line-height: 1.3; font-size: .92rem; min-width: 0; }
.sug-txt span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sug .btn { min-height: 40px; padding: .4em 1em; font-size: .9rem; flex: 0 0 auto; }

/* formulaire */
form.step { display: grid; gap: 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.mode-opts, .store-opts { display: grid; gap: 8px; }
.opt-card { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--surface); }
.opt-card:has(input:checked) { border-color: var(--teal); background: var(--teal-pale); }
.opt-card input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.opt-card .t { font-weight: 700; display: block; }
.opt-card .d { font-size: .86rem; color: var(--ink-soft); display: block; }
.opt-card .warn { color: var(--gold-ink); font-weight: 700; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid #dcc8cd; border-radius: var(--r-sm);
  background: #fff; font-size: 1rem;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0, 142, 153, .2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.hint { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.err { margin: 0; font-size: .86rem; color: var(--danger); font-weight: 600; }
.err:empty { display: none; }
.err-global { padding: 10px 12px; background: #fdecea; border-radius: var(--r-sm); }
.form-h { font: 700 1rem/1.3 var(--f-body); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cond { display: grid; gap: 14px; }

/* récapitulatif */
.recap { display: grid; gap: 14px; }
.recap section { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.recap h3 { font: 700 .95rem/1.3 var(--f-body); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.recap h3 button { font-size: .86rem; font-weight: 600; }
.recap p { margin: 0; font-size: .93rem; }
.recap table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.recap td { padding: 4px 0; vertical-align: top; }
.recap td.n { text-align: right; white-space: nowrap; padding-left: 10px; }
.recap tfoot td { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; }
.privacy-note { font-size: .85rem; color: var(--ink-soft); margin: 14px 0 0; }
.send-error { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: #fdecea; color: var(--danger); font-weight: 600; font-size: .93rem; }

/* succès */
.step-done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 20px 0; }
.step-done h3 { font: 400 1.7rem/1.15 var(--f-display); color: var(--mitre); }
.step-done p { margin: 0; max-width: 30rem; }
.done-mark svg { width: 64px; height: 64px; fill: var(--teal-pale); stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-ref strong { font-size: 1.15rem; letter-spacing: .04em; }
.done-demo { background: var(--yellow-pale); border: 1px solid #efe39a; padding: 10px 12px; border-radius: var(--r-sm); font-size: .9rem; }

.prose { padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.prose h2 { font: 400 1.6rem/1.15 var(--f-display); color: var(--mitre); margin-bottom: 10px; padding-right: 40px; }
.prose p { font-size: .95rem; margin: 0 0 10px; max-width: 40rem; }

/* ---------- tailles d'écran ---------- */
@media (min-width: 420px) {
  .hero-art { width: 122px; }
  .hero h1 { margin-right: 110px; }
  .peek-list { grid-auto-columns: 48%; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .row2 .field:first-child:has(#f-cp) { max-width: 9rem; }
}
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-cart-label { display: inline; }
  .steps ol { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .infos-grid { grid-template-columns: 1fr 1fr; }
  .peek-list { grid-auto-columns: 34%; }
  .logo img { width: 178px; }
}
@media (min-width: 900px) {
  :root { --gutter: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; padding-top: 44px; }
  .hero h1 { margin-right: 0; }
  .hero-art { position: relative; top: auto; right: auto; width: min(100%, 330px); justify-self: center; }
  .hero-actions { grid-auto-flow: column; align-items: center; gap: 18px; }
  .peek-list { grid-auto-columns: calc((100% - 36px) / 4); overflow: visible; padding-bottom: 28px; }
  .cartbar { display: none; }
  dialog.sheet { margin: auto; width: min(560px, 92vw); border-radius: 22px; max-height: 88vh; }
  dialog.sheet-cart { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); border-radius: 22px 0 0 22px; }
  .cart-in { height: 100vh; }
  @media (prefers-reduced-motion: no-preference) {
    dialog.sheet-cart[open] { animation: sheet-left .28s cubic-bezier(.2, .8, .2, 1); }
  }
}
@keyframes sheet-left { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
