/* ==========================================================
   Bioshop — design system
   Papier craie + encre marine ; une couleur par famille,
   reprise du bouchon des pots (cobalt, safran, lavande, corail, sauge).
   ========================================================== */

:root {
  --paper: #F1F2EE;
  --paper-2: #E7E9E3;
  --white: #FFFFFF;
  --ink: #10233A;
  --ink-70: #45566A;
  --ink-50: #6F7D8C;
  --line: rgba(16, 35, 58, .14);

  --cobalt: #3E5BE6;
  --saffron: #F2B735;
  --lavender: #A99BEA;
  --coral: #F29C8B;
  --sage: #86C2AE;

  --display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --sans: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1360px;
  --g: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hd: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(15.5px, .25vw + 14.6px, 17px)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--g); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--cobalt); }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font-size: .85rem; color: var(--ink-50); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ---------- En-tête ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.hd-in { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--g); height: var(--hd); display: flex; align-items: center; gap: 32px; }
.wordmark { font: 700 1.6rem/1 var(--sans); letter-spacing: -.04em; text-decoration: none; }
.wordmark-xl { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -.06em; }
.hd-nav { display: flex; gap: 28px; margin-right: auto; }
.hd-nav a { text-decoration: none; font-weight: 500; color: var(--ink-70); font-size: .95rem; padding: 6px 0; }
.hd-nav a:hover { color: var(--ink); }
.hd-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.seg button { border: 0; background: none; min-width: 36px; height: 30px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink-50); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(16,35,58,.12); }
.bag { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; }
.bag svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.bag-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--saffron); color: var(--ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Héro ---------- */
.hero { position: relative; min-height: min(calc(100svh - var(--hd)), 860px); display: grid; align-items: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0 0 0 calc(max(0px, (100% - var(--wrap)) / 2) + var(--g) + 500px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 50%; }
.hero-copy { position: relative; max-width: var(--wrap); width: 100%; margin-inline: auto; padding: 72px var(--g) 88px; }
.hero h1 { font-size: clamp(2.9rem, 5vw, 5rem); font-weight: 650; max-width: 8.4em; letter-spacing: -.045em; line-height: .94; }
.hero-lead { margin-top: 28px; max-width: min(29em, 480px); font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); color: var(--ink-70); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-notes { max-width: 480px; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 40px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-70); }
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* L'unique séquence d'ouverture : l'illustration se dévoile depuis la droite, le titre monte */
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: unveil 1.5s var(--ease) both; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .22s; }
  .hero-copy > :nth-child(4) { animation-delay: .32s; }
}
@keyframes unveil { from { clip-path: circle(0% at 78% 50%); } to { clip-path: circle(150% at 78% 50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(72px, 9vw, 136px); }
.sec-hd { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-hd h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); max-width: 13em; }
.sec-hd p { max-width: 30em; color: var(--ink-70); }

/* ---------- Familles ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 5.6; padding: 20px; border-radius: 22px; overflow: hidden;
  background: var(--c); color: var(--ci); text-decoration: none; isolation: isolate;
}
.cat img { position: absolute; inset: auto 0 0 0; width: 100%; height: 78%; object-fit: cover; object-position: center bottom; mix-blend-mode: multiply; filter: brightness(1.075) contrast(1.04); z-index: -1; transition: transform .6s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat h3 { font-size: clamp(1.35rem, 1.7vw, 1.9rem); letter-spacing: -.035em; }
.cat span { font-size: .85rem; font-weight: 600; opacity: .85; }

/* ---------- Boutique ---------- */
.filters {
  position: sticky; top: var(--hd); z-index: 20; display: flex; gap: 8px; overflow-x: auto;
  padding: 12px var(--g); margin: 0 calc(var(--g) * -1) 28px; background: var(--paper); scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-weight: 600; font-size: .92rem;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:not([aria-pressed="true"]):hover { border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--c); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card-img .plate { opacity: 0; mix-blend-mode: multiply; filter: brightness(1.075) contrast(1.04); transform: scale(1.06); }
@media (hover: hover) {
  .card-img:hover .plate { opacity: 1; transform: none; }
  .card-img:hover .shot { opacity: 0; }
}
.card-body { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 4px 12px; padding: 14px 4px 0; }
.card-name { grid-column: 1; font: 600 1.1rem/1.2 var(--display); letter-spacing: -.02em; text-decoration: none; }
.card-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { grid-column: 1; font-size: .88rem; color: var(--ink-50); }
.card-price { grid-column: 1; margin-top: 6px; font-weight: 600; }
.card-price small { font-weight: 400; color: var(--ink-50); font-size: .85rem; }
.card-add {
  grid-column: 2; grid-row: 1 / span 3; align-self: end;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent;
  font-weight: 600; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center;
}
.card-add:hover { background: var(--ink); color: #fff; }
.grid-empty { padding: 48px 0; color: var(--ink-50); }

/* ---------- Méthode ---------- */
.method { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.method-art { border-radius: 28px; overflow: hidden; background: var(--white); }
.method h2 { font-size: clamp(2.1rem, 3.8vw, 3.5rem); }
.method > div > p { margin-top: 22px; color: var(--ink-70); max-width: 34em; font-size: 1.08rem; }
.pillars { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.pillars li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 14px 1fr; gap: 6px 18px; }
.pillars li::before { content: ""; grid-row: span 2; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--c); }
.pillars h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.pillars p { color: var(--ink-70); max-width: 36em; }

/* ---------- Commander ---------- */
.order { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--white); border-radius: 32px; padding: clamp(28px, 5vw, 72px); }
.order h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 28px; }
.order dl { margin: 0; display: grid; gap: 22px; }
.order dt { font: 600 1.15rem/1.2 var(--display); }
.order dd { margin: 4px 0 0; color: var(--ink-70); }
.order img { border-radius: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 600 clamp(1.1rem, 1.3vw, 1.3rem)/1.25 var(--display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; line-height: .8; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--ink-70); max-width: 44em; }

/* ---------- Pied de page ---------- */
.ft { background: var(--ink); color: #fff; margin-top: clamp(48px, 6vw, 96px); }
.ft-in { max-width: var(--wrap); margin-inline: auto; padding: clamp(56px, 7vw, 96px) var(--g) 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.ft-brand p { margin-top: 18px; color: rgba(255,255,255,.7); max-width: 22em; }
.ft-col h2 { font: 600 .95rem/1 var(--sans); letter-spacing: 0; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.ft-col a { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: rgba(255,255,255,.9); }
.ft-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft-addr { margin-top: 8px; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.6); }
.ft-col i { width: 10px; height: 10px; border-radius: 50%; }
.ft-base { max-width: var(--wrap); margin-inline: auto; padding: 24px var(--g) 40px; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 10px; font-size: .84rem; color: rgba(255,255,255,.6); }
.ft-base p:first-child { max-width: 70em; }

/* ---------- Tiroir panier ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(16,35,58,.38); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s;
}
.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer-open { overflow: hidden; }
.drawer-hd { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-hd h2 { font-size: 1.6rem; }
.x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper-2); font-size: 1.5rem; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { padding: 48px 0; display: grid; gap: 20px; justify-items: start; color: var(--ink-70); }
.drawer-ft { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.sum strong { font: 600 1.5rem/1 var(--display); }
.sum-note { font-size: .85rem; color: var(--ink-50); margin-bottom: 10px; }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line.is-new { animation: flash 1.2s var(--ease); }
@keyframes flash { from { background: color-mix(in srgb, var(--saffron) 35%, transparent); } to { background: transparent; } }
.line-img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-main { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.line-name { font-weight: 600; text-decoration: none; line-height: 1.25; }
.line-fmt { font-size: .85rem; color: var(--ink-50); margin-bottom: 8px; }
.line-end { display: grid; gap: 8px; justify-items: end; text-align: right; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 52px; }
.stepper button { width: 48px; height: 100%; border: 0; background: none; font-size: 1.25rem; border-radius: 999px; }
.stepper button:hover { background: var(--paper-2); }
.stepper span, .stepper output { min-width: 28px; text-align: center; font-weight: 600; }
.stepper-sm { height: 38px; }
.stepper-sm button { width: 36px; font-size: 1.05rem; }

/* ---------- Fiche produit ---------- */
.crumb { padding-top: 24px; font-size: .9rem; color: var(--ink-50); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-top: 20px; align-items: start; }
.pdp-media { position: sticky; top: calc(var(--hd) + 20px); }
.pdp-shot { border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; background: var(--c); }
.pdp-shot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.pdp-info { padding-top: 12px; }
.pdp-fam { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink-70); }
.pdp-fam i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.pdp h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); margin-top: 14px; letter-spacing: -.045em; }
.pdp-tag { margin-top: 14px; font-size: 1.2rem; color: var(--ink-70); }
.pdp-price { margin-top: 26px; font: 600 2rem/1 var(--display); letter-spacing: -.02em; }
.pdp-unit { margin-top: 6px; font-size: .9rem; color: var(--ink-50); }
.pdp-label { display: block; margin: 30px 0 10px; font-weight: 600; font-size: .95rem; }
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.fmt {
  display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 16px;
  border: 1.5px solid var(--line); background: transparent;
}
.fmt b { font: 600 1.05rem/1.2 var(--display); }
.fmt span { font-size: .82rem; color: var(--ink-50); }
.fmt:hover { border-color: var(--ink); }
.fmt[aria-checked="true"] { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.buy { display: flex; gap: 10px; margin-top: 30px; }
.buy .btn { flex: 1; min-width: 0; padding: 0 18px; white-space: normal; text-align: center; line-height: 1.2; }
.pdp-claim { margin-top: 28px; padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, var(--c) 22%, var(--paper)); font-size: .95rem; }
.pdp-claim strong { display: block; font-size: .82rem; margin-bottom: 4px; }
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.keys li { padding: 8px 14px; border-radius: 999px; background: var(--white); font-size: .9rem; font-weight: 500; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.story-art { border-radius: 28px; overflow: hidden; background: var(--white); }
.story h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.story > div > p { margin-top: 18px; font-size: 1.12rem; color: var(--ink-70); max-width: 34em; }
.story dl { margin: 32px 0 0; display: grid; gap: 0; }
.story dl div { padding: 18px 0; border-top: 1px solid var(--line); }
.story dt { font-weight: 600; }
.story dd { margin: 4px 0 0; color: var(--ink-70); font-size: .95rem; max-width: 40em; }
.related .grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Commande ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: 32px; }
.co h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: 28px; }
.step { background: var(--white); border-radius: 24px; padding: clamp(20px, 3vw, 32px); margin-bottom: 14px; }
.step-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-hd h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 600 .95rem/1 var(--sans); }
.step.is-active .step-n { background: var(--ink); color: #fff; }
.step.is-done .step-n { background: var(--sage); }
.step-body { margin-top: 22px; }
.step:not(.is-active) .step-body { display: none; }
.step.is-done .step-sum { display: block; }
.step-sum { display: none; margin-top: 8px; color: var(--ink-70); font-size: .95rem; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field input { height: 54px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; color: inherit; }
.field input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 25%, transparent); }
.field small { color: var(--ink-50); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 22px 0; font-size: .95rem; align-items: start; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.form-err { color: #B4322A; font-size: .92rem; margin-bottom: 14px; }
.pay-intro { color: var(--ink-70); margin-bottom: 18px; }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; border: 1.5px solid var(--line); }
.pay img { border-radius: 10px; aspect-ratio: 4/5; object-fit: cover; }
.pay-name { font-weight: 600; line-height: 1.25; }
.pay-meta { font-size: .85rem; color: var(--ink-50); }
.pay-hint { font-size: .82rem; color: var(--ink-70); margin-top: 4px; }
.pay .btn { min-height: 44px; padding: 0 20px; }
.pay.is-opened { border-color: var(--saffron); }
.pay.is-paid { border-color: var(--sage); background: color-mix(in srgb, var(--sage) 14%, transparent); }
.pay-status { font-size: .85rem; font-weight: 600; }
.co-done { padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--sage) 30%, var(--paper)); font-weight: 600; }
.co-secure { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: .85rem; color: var(--ink-50); }
.co-secure svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.summary { position: sticky; top: calc(var(--hd) + 20px); background: var(--white); border-radius: 24px; padding: 24px; }
.summary h2 { font-size: 1.45rem; margin-bottom: 8px; }
.summary .sum { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Pages simples (merci, légales) ---------- */
.plain { max-width: 820px; padding-top: clamp(40px, 6vw, 80px); }
.plain h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.plain-lead { margin-top: 20px; font-size: 1.15rem; color: var(--ink-70); }
.plain .btn { margin-top: 28px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 40px; }
.legal-tabs a { text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; }
.legal-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal-updated { margin-top: 14px; color: var(--ink-50); font-size: .92rem; }
.legal-body h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin: 44px 0 14px; letter-spacing: -.025em; }
.legal-body h3 { font-size: 1.15rem; margin: 26px 0 10px; letter-spacing: -.01em; }
.legal-body p, .legal-body li { color: var(--ink-70); line-height: 1.65; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 1.2em; margin: 12px 0; }
.legal-body a { color: var(--cobalt); }
.legal-facts { margin: 18px 0; display: grid; gap: 0; background: var(--white); border-radius: 18px; padding: 6px 20px; }
.legal-facts div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.legal-facts div:first-child { border-top: 0; }
.legal-facts dt { font-weight: 600; font-size: .92rem; }
.legal-facts dd { margin: 0; color: var(--ink-70); }
.legal-callout, .callout { margin: 18px 0; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--saffron) 22%, var(--paper)); }
.legal-callout p, .callout p { color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid, .related .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; }
  .co { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 860px) {
  :root { --hd: 60px; }
  .hd-in { gap: 12px; }
  .hd-nav {
    position: fixed; top: var(--hd); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--g) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .hd-nav a { font: 600 1.6rem/1 var(--display); color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-open .hd-nav { transform: none; opacity: 1; pointer-events: auto; }
  .burger { display: block; }
  .hero { min-height: 0; align-items: start; }
  .hero-art { position: relative; inset: auto; order: 2; height: 62vw; -webkit-mask-image: none; mask-image: none; }
  .hero-art img { object-position: 92% 50%; }
  .hero { display: flex; flex-direction: column; }
  .hero-copy { padding-top: 40px; padding-bottom: 8px; }
  .method, .order, .story, .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp-media { position: static; }
  .ft-in { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .legal-facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 620px) {
  .grid, .related .grid { grid-template-columns: repeat(2, 1fr); }
  .card-body { grid-template-columns: 1fr; }
  .card-add { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; height: 38px; }
  .card-name { font-size: 1rem; }
  .hd-tools .seg button { min-width: 30px; }
  .seg { padding: 2px; }
  .wordmark { font-size: 1.4rem; }
  .pay { grid-template-columns: 48px 1fr; }
  .pay > :last-child { grid-column: 1 / -1; }
  .pay .btn { width: 100%; }
}
@media (max-width: 400px) {
  .hd-tools { gap: 6px; }
  .seg button { min-width: 28px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Récapitulatif compact de la commande */
.mini { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.mini li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; font-size: .92rem; }
.mini img { border-radius: 8px; aspect-ratio: 4/5; object-fit: cover; }
.mini span { color: var(--ink-50); display: block; font-size: .82rem; }
