/* Pao — maquette haute fidélité · direction « Sceau & rouille » + gravures */

:root {
  --white: #ffffff;
  --rust: #8a3a22;
  --rust-deep: #6b2b17;
  --gold: #d2ad62;
  --gold-light: #ecd3a0;
  --seal: #b8321f;
  --label: #e9e5df;
  --label-soft: #f4f2ee;
  --ink: #1a1714;
  --ink-2: #57504a;
  --line: #d8d2ca;

  --g-brown: #7a5638;
  --g-yellow: #f3d648;
  --g-blue: #a9c4ec;
  --g-mint: #9eddb2;

  --f-display: "Federo", "Didot", serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-label: "Outfit", "Jost", sans-serif;
  --f-zh: "Noto Serif SC", "Songti SC", serif;
  --f-seal: "Ma Shan Zheng", "Kaiti SC", cursive;

  --gutter: 20px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } :root { --gutter: 40px; } }

/* ---------- Typo ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rust);
}
.h-display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .01em;
}
.h1 { font-size: clamp(34px, 8.4vw, 64px); }
.h2 { font-size: clamp(30px, 6.4vw, 48px); }
.h3 { font-size: clamp(22px, 4.6vw, 28px); }
.label-title {
  font-family: var(--f-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
}
.lead { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.zh { font-family: var(--f-zh); font-weight: 500; }
.muted { color: var(--ink-2); }
.todo {
  background: #fff3cd;
  color: #6b4e00;
  font-size: .82em;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---------- Seal ---------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--seal); color: #f7e6cf;
  font-family: var(--f-seal);
  width: 30px; height: 30px; font-size: 20px; line-height: 1;
  border-radius: 2px;
  flex-shrink: 0;
}
.seal--sm { width: 22px; height: 22px; font-size: 14px; }
.seal-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--seal); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 2px;
  font-family: var(--f-body); font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--rust); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Placeholders (assets à venir) ---------- */
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, #efebe5 0 10px, #e7e2db 10px 20px);
  border: 1px dashed #b9b0a5;
  display: flex; align-items: flex-end;
  min-height: 220px;
  overflow: hidden;
}
.ph span {
  margin: 12px; padding: 6px 10px;
  background: rgba(255, 255, 255, .92);
  font-size: 12px; line-height: 1.4; color: var(--ink-2);
  max-width: 90%;
}
.ph span::before { content: "Visuel à venir · "; font-weight: 500; color: var(--ink); }
.ph--dark { background: repeating-linear-gradient(135deg, #7b3320 0 10px, #742f1d 10px 20px); border-color: #b0614a; }
.ph--ratio-45 { aspect-ratio: 4 / 5; min-height: 0; }
.ph--ratio-11 { aspect-ratio: 1 / 1; min-height: 0; }
.ph--ratio-169 { aspect-ratio: 16 / 9; min-height: 0; }

.dev-note {
  border: 1px dashed #c9a43a; background: #fffbea; color: #5c4800;
  font-size: 14px; padding: 14px 16px; border-radius: 2px;
}
.dev-note strong { font-weight: 500; }

/* ---------- Bars & header ---------- */
.mockbar { background: var(--ink); color: #d9d3cb; font-size: 12px; text-align: center; padding: 6px var(--gutter); }
.announce { background: var(--rust); color: var(--gold-light); font-size: 13px; letter-spacing: .06em; text-align: center; padding: 9px var(--gutter); }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__word { font-family: var(--f-display); font-size: 28px; letter-spacing: .14em; line-height: 1; }
.nav { display: none; gap: 32px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { background: none; border: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--seal); color: #fff; border-radius: 9px;
  font-size: 11px; line-height: 18px; text-align: center;
}
.cart-count[data-empty="true"] { display: none; }
.menu-panel { border-top: 1px solid var(--line); padding: 12px var(--gutter) 24px; }
.menu-panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle, .menu-panel { display: none !important; }
}

/* ---------- Hero ---------- */
/* Mobile : texte sur fond uni, photo entière en dessous (pas de recadrage). */
.hero { background: #e8d8c7; color: var(--ink); overflow: hidden; }
.hero__grid { display: grid; padding-top: 40px; padding-bottom: 0; }
.hero__text { display: grid; gap: 20px; max-width: 34em; padding-bottom: 28px; }
.hero__media { order: 2; margin: 0 calc(var(--gutter) * -1); }
.hero__media .pic { aspect-ratio: 3 / 2; height: auto; border-radius: 0; background: transparent; }
.hero__media .pic { -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
.hero__media img { object-position: 50% 100%; }
.hero__text .eyebrow { color: var(--rust); }
.hero__sub { color: var(--ink); opacity: .82; font-size: 18px; max-width: 30em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 8px; }
.hero__ctas .link-arrow { color: var(--ink); }
.hero__zh { font-family: var(--f-zh); color: var(--rust); font-size: 15px; letter-spacing: .3em; }
@media (min-width: 900px) {
  .hero { position: relative; isolation: isolate; }
  .hero__grid { min-height: clamp(560px, 46vw, 700px); align-content: center; padding-top: 72px; padding-bottom: 96px; }
  .hero__text { max-width: 30em; padding-bottom: 0; }
  .hero__media { position: absolute; inset: 0; margin: 0; z-index: -1; }
  .hero__media .pic { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero__media img { object-position: 50% 50%; }
  .hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(232,216,199,.92) 0%, rgba(232,216,199,.7) 34%, rgba(232,216,199,0) 58%); }
}

/* ---------- Reassurance ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust ul { display: grid; grid-template-columns: 1fr 1fr; }
.trust li { display: flex; gap: 12px; align-items: center; padding: 18px 8px; font-size: 14px; line-height: 1.35; }
.trust svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--rust); }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); } .trust li { justify-content: center; padding: 24px 12px; } }

/* ---------- Section heads ---------- */
.head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 720px; }
.head--center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- Gravures (polygones colorés) ---------- */
.engr {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18% 16% 16%;
  color: var(--ink);
}
.engr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--engr-bg, var(--g-yellow));
  clip-path: var(--engr-shape, polygon(8% 4%, 96% 12%, 90% 96%, 2% 86%));
}
.engr__zh { font-family: var(--f-zh); font-weight: 500; font-size: 26px; line-height: 1; }
.engr__fr { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.engr__ph {
  border: 1px dashed rgba(26, 23, 20, .45);
  font-size: 11px; line-height: 1.35; padding: 8px; color: rgba(26, 23, 20, .8);
}
.engr--brown { --engr-bg: var(--g-brown); color: #f6ecdc; }
.engr--brown .engr__ph { border-color: rgba(246, 236, 220, .5); color: #f6ecdc; }
.engr--blue { --engr-bg: var(--g-blue); --engr-shape: polygon(2% 14%, 86% 2%, 98% 82%, 18% 98%); }
.engr--mint { --engr-bg: var(--g-mint); --engr-shape: polygon(12% 2%, 98% 8%, 88% 92%, 0 98%); }
.engr--yellow { --engr-bg: var(--g-yellow); }
.engr { isolation: isolate; }

/* ---------- Ritual steps ---------- */
.steps { display: grid; gap: 36px; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 8px 18px; align-items: start; }
.step .engr { grid-row: span 2; width: 120px; padding: 22% 18%; }
.step .engr .engr__zh { font-size: 22px; }
.step .engr .engr__fr { font-size: 11px; }
.step .engr__ph { display: none; }
.step--plain { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .step { grid-template-columns: 1fr; gap: 18px; }
  .step .engr { grid-row: auto; width: 100%; max-width: 300px; padding: 18% 16% 16%; }
  .step .engr .engr__zh { font-size: 26px; }
  .step .engr__ph { display: block; }
}
.step__num { display: flex; align-items: center; gap: 12px; }
.circle-num {
  width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 20px;
}
.step h3 { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; }
.step p { color: var(--ink-2); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- Coffret cards (étiquettes d'herboristerie) ---------- */
.bundles {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 14px var(--gutter) 8px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.bundles::-webkit-scrollbar { display: none; }
.bundle {
  scroll-snap-align: center;
  background: var(--label);
  padding: 20px 20px 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  border: 1px solid transparent;
}
.bundle--featured { border-color: var(--ink); background: var(--label); }
.bundle__top { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--f-label); font-size: 13px; }
.bundle__flag { position: absolute; top: -13px; left: 18px; }
.bundle__name { font-size: 30px; }
.bundle__tagline { border-top: 1px solid #9a948c; padding-top: 8px; font-size: 15px; }
.bundle__media .ph { min-height: 180px; }
.bundle__list { font-size: 15px; display: grid; gap: 4px; }
.bundle__list li { display: flex; gap: 8px; }
.bundle__list li::before { content: "—"; color: var(--rust); }
.bundle__price { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.bundle__price strong { font-family: var(--f-label); font-size: 26px; font-weight: 600; }
.bundle__price small { color: var(--ink-2); font-size: 13px; }
.scroll-hint { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 12px; }
@media (min-width: 900px) {
  .bundles { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 14px 0 0; margin: 0; gap: 24px; }
  .scroll-hint { display: none; }
}

/* ---------- Story ---------- */
.story { display: grid; gap: 32px; }
.story__media { position: relative; }
.story__zh {
  position: absolute; top: 16px; right: 16px;
  writing-mode: vertical-rl; font-family: var(--f-zh); font-size: 30px; letter-spacing: .2em;
  color: var(--ink); background: rgba(255, 255, 255, .85); padding: 10px 6px;
}
.story__text { display: grid; gap: 20px; align-content: center; }
.story blockquote {
  margin: 0; padding-left: 20px; border-left: 2px solid var(--seal);
  font-family: var(--f-display); font-size: 24px; line-height: 1.3;
}
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ---------- Sensations (rust band) ---------- */
.band { background: var(--rust); color: #f3e3c3; }
.band .h2, .band .eyebrow { color: var(--gold); }
.band .eyebrow { color: var(--gold-light); }
.senses { display: grid; gap: 0; border-top: 1px solid rgba(236, 211, 160, .3); }
.senses li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid rgba(236, 211, 160, .3); }
.senses .zh { font-size: 30px; color: var(--gold); line-height: 1.1; }
.senses h3 { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; color: var(--gold-light); font-size: 18px; letter-spacing: .03em; }
.senses p { font-size: 16px; }
.band__note { font-size: 13px; color: var(--gold-light); opacity: .85; margin-top: 24px; }
@media (min-width: 900px) { .senses { grid-template-columns: 1fr 1fr; column-gap: 64px; } }

/* ---------- Box contents ---------- */
.inbox { display: grid; gap: 32px; }
.inbox__list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.inbox__list li span:last-child { color: var(--ink-2); text-align: right; font-size: 15px; }
@media (min-width: 900px) { .inbox { grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; } }

/* ---------- Plants collage ---------- */
.plants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 640px; }
.plants .engr { padding: 20% 16% 16%; }
.split > *, .story > *, .inbox > *, .pdp > *, .news__in > * { min-width: 0; }
.plants .engr:nth-child(2) { margin-top: 40px; }
.plants .engr:nth-child(3) { margin-top: -24px; }
.commit { display: grid; gap: 0; }
.commit li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.commit h3 { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; font-size: 17px; letter-spacing: .03em; margin-bottom: 4px; }
.commit p { color: var(--ink-2); font-size: 16px; }
.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 500; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }
.faq .faq__a p + p { margin-top: 10px; }

/* ---------- Newsletter ---------- */
.news { background: var(--label-soft); }
.news__in { display: grid; gap: 24px; }
.news form { display: flex; flex-wrap: wrap; gap: 10px; }
.news input {
  flex: 1 1 220px; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--ink); border-radius: 2px; background: var(--white);
  font: inherit;
}
.news__msg { font-size: 14px; min-height: 1.4em; }
@media (min-width: 900px) { .news__in { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }

/* ---------- Footer ---------- */
.footer { background: var(--rust-deep); color: #ead6b4; padding: 64px 0 32px; font-size: 15px; }
.footer .logo__word { color: var(--gold); }
.footer__grid { display: grid; gap: 36px; }
.footer h3 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 12px; }
.footer a { text-decoration: none; display: inline-block; padding: 5px 0; }
.footer a:hover { color: var(--white); }
.footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(234, 214, 180, .25); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Product page ---------- */
.crumbs { font-size: 13px; color: var(--ink-2); padding: 16px 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 900px) { .pdp { padding-top: 56px; } }
.gallery__main .ph { min-height: 0; }
.gallery__track .ph { aspect-ratio: 1 / 1; }
@media (min-width: 900px) { .gallery__track .ph { aspect-ratio: 4 / 5; } }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > * { scroll-snap-align: start; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.gallery__dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--ink); background: transparent; }
.gallery__dots button[aria-current="true"] { background: var(--ink); }
.gallery__thumbs { display: none; }

.buy { display: grid; gap: 20px; align-content: start; }
.buy__title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.buy__title .label-title { font-size: clamp(34px, 8vw, 46px); }
.buy__sub { font-family: var(--f-display); font-size: 22px; color: var(--rust); }
.options { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.options legend { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt label {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  padding: 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.opt label::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); box-shadow: inset 0 0 0 4px var(--white); }
.opt input:checked + label { border-color: var(--ink); background: var(--label-soft); }
.opt input:checked + label::before { background: var(--ink); }
.opt input:focus-visible + label { outline: 2px solid var(--seal); outline-offset: 2px; }
.opt__name { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.opt__desc { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; font-family: var(--f-body); text-transform: none; font-weight: 400; width: 100%; }
.opt__price { font-family: var(--f-label); font-weight: 600; font-size: 18px; }
.opt .seal-tag { font-size: 11px; padding: 2px 8px; font-family: var(--f-body); text-transform: none; }

.contents { background: var(--label); padding: 18px 20px; }
.contents h3 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.contents ul { display: grid; gap: 4px; font-size: 15px; }
.contents li { display: flex; gap: 8px; }
.contents li::before { content: "—"; color: var(--rust); }

.price-row { display: flex; align-items: baseline; gap: 12px; }
.price-row strong { font-family: var(--f-label); font-weight: 600; font-size: 32px; }
.micro { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.micro li { display: flex; gap: 10px; align-items: center; }
.micro svg { width: 18px; height: 18px; color: var(--rust); flex-shrink: 0; }

.acc { border-top: 1px solid var(--ink); }

.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-atc.is-on { transform: none; }
.sticky-atc__info { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-atc__info strong { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__info span { font-size: 14px; color: var(--ink-2); }
.sticky-atc .btn { min-height: 48px; padding: 0 20px; font-size: 13px; }

@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
  .gallery { position: sticky; top: 88px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
  .gallery__main { order: 2; }
  .gallery__track { margin: 0; }
  .gallery__dots { display: none; }
  .gallery__thumbs { display: grid; gap: 10px; align-content: start; }
  .gallery__thumbs button { padding: 0; border: 1px solid var(--line); background: none; }
  .gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
  .gallery__thumbs .ph { min-height: 0; aspect-ratio: 1; border: 0; }
  .gallery__thumbs .ph span { display: none; }
  .sticky-atc { display: none; }
}

.compare { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.compare th, .compare td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-2); }
.compare thead th { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; font-size: 12px; vertical-align: bottom; }
@media (min-width: 900px) { .compare { font-size: 15px; } .compare th, .compare td { padding: 14px 12px; } .compare thead th { font-size: 15px; } }
.compare .is-featured { background: var(--label-soft); }
.compare .yes { color: var(--rust); font-weight: 500; }

.xsell { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xsell__card { display: grid; gap: 10px; align-content: start; }
.xsell__card .ph { min-height: 0; aspect-ratio: 1; }
.xsell__card h3 { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; font-size: 15px; }
.xsell__card p { font-size: 14px; color: var(--ink-2); }
.xsell__card .btn { min-height: 42px; padding: 0 12px; font-size: 12px; }
@media (min-width: 900px) { .xsell { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(26, 23, 20, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(440px, 100%); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease);
  visibility: hidden;
}
.drawer.is-on { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--f-display); font-weight: 400; font-size: 26px; }
.drawer__ship { padding: 14px var(--gutter); background: var(--label-soft); font-size: 14px; }
.drawer__ship:empty { display: none; }
.progress { height: 4px; background: var(--line); margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--rust); width: 0; transition: width .4s var(--ease); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .ph { min-height: 0; aspect-ratio: 1; }
.line .ph span { display: none; }
.line__name { font-family: var(--f-label); font-weight: 600; text-transform: uppercase; font-size: 14px; }
.line__meta { font-size: 13px; color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.qty button { width: 34px; height: 34px; background: none; border: 0; font-size: 16px; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.line__remove { background: none; border: 0; font-size: 12px; color: var(--ink-2); text-decoration: underline; padding: 4px 0; margin-top: 6px; display: block; }
.empty { padding: 48px 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.upsell { margin: 16px 0; padding: 14px; background: var(--label); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.upsell strong { font-family: var(--f-label); text-transform: uppercase; font-weight: 600; display: block; }
.upsell .btn { min-height: 40px; padding: 0 14px; font-size: 12px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
/* Barre à paliers — orange = en cours, vert = débloqué */
.tiers {
  --tier: #2f6b45; --tier-soft: #e6f2ea; --tier-gold: #d2ad62;
  --go: #e8742c; --go-2: #f5a04a; --go-soft: #fdeee2;
  --track: #efebe6; --dot: 26px;
}
.tiers__msg { margin: 0 0 12px; text-align: center; font-size: 13.5px; line-height: 1.35; color: var(--ink); min-height: 18px; }
.tiers__msg strong { font-weight: 600; }
.tiers__amt { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--go); }
.tiers__msg.is-swap > span { display: inline-block; animation: tier-msg .5s var(--ease) both; }
.tiers.is-complete .tiers__msg { color: var(--tier); }

.tiers__track { position: relative; height: 8px; margin: 0 calc(var(--dot) / 2) 26px; background: var(--track); border-radius: 999px; }
.tiers__fill, .tiers__won { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.tiers__fill {
  background: linear-gradient(90deg, var(--go-2), var(--go)); overflow: hidden;
  box-shadow: 0 0 0 0 rgba(232, 116, 44, 0);
  transition: width 1s cubic-bezier(.22, 1, .36, 1);
}
.tiers__fill::before { /* rayures qui défilent : la barre « avance » */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px);
  background-size: 17px 17px; animation: tier-stripes 1s linear infinite;
}
.tiers__fill::after { /* reflet */
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: tier-sheen 2.6s ease-in-out .9s infinite;
}
.tiers.is-moving .tiers__fill { animation: tier-glow 1s ease-out; }
.tiers.is-complete .tiers__fill::before, .tiers.is-complete .tiers__fill::after { animation: none; opacity: 0; }
.tiers__won { background: var(--tier); transition: width .55s cubic-bezier(.65, 0, .35, 1); }

.tiers__steps { list-style: none; margin: 0; padding: 0; }
.tiers__step { position: absolute; top: 50%; left: var(--x); }
.tiers__dot {
  position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot); transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white); border: 1.5px solid var(--line); color: var(--ink-2);
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(26, 23, 20, .08);
  transition: background .35s, border-color .35s, color .35s;
}
.tiers__dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tiers__ic, .tiers__check { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.tiers__check { opacity: 0; transform: scale(.3) rotate(-30deg); }
.tiers__check svg { stroke: #fff; stroke-width: 2.8; }

/* Palier proche : la pastille appelle, en orange */
.tiers__step.is-near .tiers__dot { border-color: var(--go); color: var(--go); background: var(--go-soft); animation: tier-wiggle 2.4s ease-in-out 1.2s infinite; }
.tiers__step.is-near .tiers__dot::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 2px solid var(--go);
  animation: tier-call 1.6s ease-out infinite;
}

/* Palier débloqué */
.tiers__step.is-done .tiers__dot { background: var(--tier); border-color: var(--tier); color: #fff; animation: none; }
.tiers__step.is-done .tiers__ic { opacity: 0; transform: scale(.4); }
.tiers__step.is-done .tiers__check { opacity: 1; transform: none; }
.tiers__step.is-new .tiers__dot { animation: tier-pop .65s cubic-bezier(.34, 1.56, .64, 1); }
.tiers__step.is-new .tiers__dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--tier);
  animation: tier-ring .8s ease-out forwards;
}
.tiers__burst { position: absolute; inset: 0; pointer-events: none; }
.tiers__burst b { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--tier); opacity: 0; }
.tiers__burst b:nth-child(3n) { background: var(--go); }
.tiers__burst b:nth-child(even) { background: var(--tier-gold); width: 4px; height: 8px; border-radius: 2px; }
.tiers__step.is-new .tiers__burst b { animation: tier-burst .8s cubic-bezier(.2, .8, .3, 1) .06s both; }

.tiers__label {
  position: absolute; top: calc(var(--dot) / 2 + 5px); left: 0; transform: translateX(-50%);
  white-space: nowrap; font-size: 11px; line-height: 1.2; color: var(--ink-2); transition: color .35s;
}
.tiers__step:last-child .tiers__label { left: auto; right: calc(var(--dot) / -2); transform: none; }
.tiers__step.is-near .tiers__label { color: var(--go); font-weight: 500; }
.tiers__step.is-done .tiers__label { color: var(--tier); font-weight: 500; }

/* Lignes du panier */
.line__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.line__ctrl .qty { margin-top: 0; }
.line__ctrl .line__remove { margin: 0; padding: 4px 0; display: inline; }
.line__price { transition: color .3s; }
.line.is-in { animation: line-in .55s cubic-bezier(.22, 1, .36, 1) both; }
.line.is-out { animation: line-out .28s ease-in forwards; pointer-events: none; }
.line--gift .line__img { border-radius: 8px; }
.line--gift .line__gift { color: var(--tier, #2f6b45); }
.line__free { font-family: var(--f-label); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #2f6b45; background: #e6f2ea; padding: 4px 9px; border-radius: 999px; }
.line--gift.is-new { animation: tier-gift .8s cubic-bezier(.22, 1, .36, 1) 1s both; }

/* Suggestion + chip « Débloque » posé au-dessus de la carte */
.upsell-wrap { margin: 18px 0 8px; }
.upsell-wrap .upsell { margin: 0; }
.upsell-wrap.is-in { animation: line-in .6s cubic-bezier(.22, 1, .36, 1) .15s both; }
.upsell__unlock {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px;
  border-radius: var(--r, 12px) var(--r, 12px) 0 0; background: #2f6b45; color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .01em;
}
.upsell__unlock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: tier-nudge 1.8s ease-in-out infinite; }
.upsell.has-unlock { border-top-left-radius: 0; border-top-right-radius: 0; border-color: #2f6b45; border-top-width: 0; }

.upsell__add.is-added { background: #2f6b45; animation: add-ok .4s cubic-bezier(.34, 1.56, .64, 1); }
.upsell-wrap.is-leaving { animation: upsell-out .38s cubic-bezier(.55, 0, .7, .2) forwards; pointer-events: none; }
.line.is-in { animation: line-in .6s cubic-bezier(.22, 1, .36, 1) both, line-flash 1.6s ease-out .2s both; }
.line.is-bump .qty span, .line.is-bump .line__price { display: inline-block; animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); }
.line.is-bump { animation: line-flash 1.4s ease-out both; }
.drawer__body > .upsell-wrap.is-in { animation: upsell-in .55s cubic-bezier(.22, 1, .36, 1) .55s both; }
@keyframes add-ok { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes upsell-out { to { opacity: 0; transform: translateY(-18px) scale(.96); } }
@keyframes upsell-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes line-flash { 0%, 30% { background: #fdeee2; box-shadow: -12px 0 0 #fdeee2, 12px 0 0 #fdeee2; } 100% { background: transparent; box-shadow: -12px 0 0 transparent, 12px 0 0 transparent; } }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: none; } }

/* Pied du panier */
.drawer__foot { gap: 10px; padding-top: 14px; }
.drawer__foot .drawer__total { font-size: 15px; }
.btn--checkout { display: inline-flex; align-items: center; justify-content: center; gap: 9px; position: relative; overflow: hidden; }
.btn__lock { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--checkout::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); animation: tier-sheen 3.4s ease-in-out 2s infinite; }

/* Ouverture du panier : tout entre en cascade */
.drawer.is-entering .drawer__body > .line,
.drawer.is-entering .drawer__body > .upsell-wrap { animation: line-in .6s cubic-bezier(.22, 1, .36, 1) both; }
.drawer.is-entering .drawer__body > :nth-child(1) { animation-delay: .12s; }
.drawer.is-entering .drawer__body > :nth-child(2) { animation-delay: .19s; }
.drawer.is-entering .drawer__body > :nth-child(3) { animation-delay: .26s; }
.drawer.is-entering .drawer__body > :nth-child(4) { animation-delay: .33s; }
.drawer.is-entering .drawer__body > :nth-child(n+5) { animation-delay: .4s; }
.drawer.is-entering .drawer__foot > * { animation: foot-in .6s cubic-bezier(.22, 1, .36, 1) both; }
.drawer.is-entering .drawer__foot > :nth-child(2) { animation-delay: .08s; }
.drawer.is-entering .drawer__foot > :nth-child(3) { animation-delay: .14s; }

@keyframes line-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes line-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes foot-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tier-stripes { to { background-position: 17px 0; } }
@keyframes tier-sheen { to { transform: translateX(120%); } }
@keyframes tier-glow { 0% { box-shadow: 0 0 0 0 rgba(232, 116, 44, .45); } 100% { box-shadow: 0 0 0 7px rgba(232, 116, 44, 0); } }
@keyframes tier-call { from { transform: scale(1); opacity: .6; } to { transform: scale(1.75); opacity: 0; } }
@keyframes tier-wiggle { 0%, 80%, 100% { transform: translate(-50%, -50%) rotate(0); } 84% { transform: translate(-50%, -50%) rotate(-12deg); } 88% { transform: translate(-50%, -50%) rotate(10deg); } 92% { transform: translate(-50%, -50%) rotate(-6deg); } }
@keyframes tier-pop { 0% { transform: translate(-50%, -50%) scale(.6); } 55% { transform: translate(-50%, -50%) scale(1.3); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes tier-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(2.3); opacity: 0; } }
@keyframes tier-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-28px) scale(.6); } }
@keyframes tier-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tier-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(2px); } }
@keyframes tier-gift { 0% { opacity: 0; transform: translateY(-10px) scale(.98); background: #e6f2ea; } 40% { opacity: 1; transform: none; background: #e6f2ea; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .tiers *, .tiers *::before, .tiers *::after, .line, .line *, .upsell__add, .upsell-wrap, .drawer__foot > *, .upsell__unlock svg, .btn--checkout::after { animation: none !important; transition: none !important; }
}
.drawer__total { display: flex; justify-content: space-between; font-size: 18px; }
.drawer__total strong { font-family: var(--f-label); font-weight: 600; }
.drawer__fine { font-size: 12px; color: var(--ink-2); text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--white); font-size: 14px; padding: 12px 18px;
  transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Mode vitrine : notes de travail masquées (afficher avec ?dev) ---------- */
html:not(.dev) .todo,
html:not(.dev) .dev-only,
html:not(.dev) .dev-note { display: none !important; }
