/* ==========================================================================
   T&C Création — boutique de bougies artisanales
   Noir · or · marbre
   ========================================================================== */

:root {
  --noir: #0a0908;
  --onyx: #12100e;
  --abysse: #060505;
  --or: #d4b162;
  --or-clair: #f1dc9f;
  --or-profond: #9c7a36;
  --or-line: rgba(212, 177, 98, .35);
  --or-faint: rgba(212, 177, 98, .14);
  --ivoire: #ece6da;
  --ivoire-2: rgba(236, 230, 218, .66);
  --marbre: #f1ede6;

  --f-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --f-ui: "Jost", Futura, "Avenir Next", system-ui, sans-serif;

  --pad: clamp(18px, 4vw, 56px);
  --header-h: 84px;
  --max: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--noir); -webkit-text-size-adjust: 100%; }
html.cart-open { overflow: hidden; }
body {
  background: var(--noir);
  color: var(--ivoire);
  font: 400 15.5px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
section[id], footer[id] { scroll-margin-top: 70px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--or); color: var(--noir); }
:focus-visible { outline: 1px solid var(--or); outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Typographie ---------- */
.eyebrow { font: 500 11px/1.4 var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--or); }
.title { font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 5.4vw, 74px); line-height: 1; letter-spacing: -.02em; color: var(--ivoire); }
.title em { font-style: italic; font-weight: 400; color: var(--or); }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px;
  border: 1px solid var(--or); border-radius: 999px;
  font: 500 11.5px/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s, background-color .5s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn--gold { background: var(--or); color: var(--noir); }
.btn--gold::before { background: var(--marbre); }
.btn--ghost, .btn--line { background: transparent; color: var(--or); }
.btn--ghost::before, .btn--line::before { background: var(--or); }
.btn--ghost:hover, .btn--line:hover { color: var(--noir); }
.btn--line { width: 100%; height: 46px; }
.btn.is-added { background: var(--or); color: var(--noir); }
.btn:disabled { cursor: default; opacity: .55; }
.btn--line:disabled::before { transform: translateY(101%); }
.btn--line:disabled:hover { color: var(--or); }

/* ---------- Avant l'ouverture (vitrine) ---------- */
.offer.offer--bientot, .waitlist { display: none; }
.boutique-fermee .offer--bientot { display: inline-block; }
.boutique-fermee .offer--ouverte, .boutique-fermee .cart-btn { display: none; }
.boutique-fermee .waitlist { display: block; }
.waitlist { max-width: 620px; margin: clamp(46px, 6vw, 70px) auto 0; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--or-faint); border-radius: 6px; text-align: center; }
.waitlist__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.waitlist__title em { color: var(--or); }
.waitlist__text { margin: 10px 0 22px; color: var(--ivoire-2); }
.waitlist__form { display: flex; gap: 10px; }
.waitlist__input { flex: 1; min-width: 0; height: 50px; padding: 0 22px; border: 1px solid var(--or-line); border-radius: 999px; background: transparent; color: var(--ivoire); font: 400 15px var(--f-ui); }
.waitlist__input::placeholder { color: rgba(236, 230, 218, .45); }
.waitlist__input:focus { outline: none; border-color: var(--or); }
.waitlist__note { margin-top: 14px; font-size: 12.5px; color: var(--ivoire-2); }
.waitlist__note a { color: var(--or); text-decoration: underline; text-underline-offset: 2px; }
.waitlist__note strong { color: var(--or); font-weight: 500; }
@media (max-width: 560px) { .waitlist__form { flex-direction: column; } }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1px solid transparent;
  transition: height .5s var(--ease), background-color .5s, border-color .5s;
}
.header.is-scrolled, .header.menu-open {
  height: 70px;
  background: rgba(10, 9, 8, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--or-faint);
}
.logo { justify-self: start; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--or); }
.logo__mono { width: 90px; aspect-ratio: 1555 / 610; fill: currentColor; transition: transform .6s var(--ease); }
.logo__word { width: 66px; aspect-ratio: 1555 / 318; fill: currentColor; }
.logo:hover .logo__mono { transform: scale(1.05); }
.header .logo { transition: opacity .5s ease, visibility 0s; }
.header:not(.is-scrolled):not(.menu-open) .logo { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.header.is-scrolled .logo__mono { width: 76px; }
.header.is-scrolled .logo__word { width: 56px; }

.nav { display: flex; gap: clamp(22px, 3.4vw, 48px); }
.nav a {
  position: relative; padding: 6px 0;
  font: 500 11.5px/1 var(--f-ui); letter-spacing: .22em; text-transform: uppercase;
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--or);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover { color: var(--or); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 10px 0 18px;
  border: 1px solid var(--or-line); border-radius: 999px;
  color: var(--or); font: 500 11px/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .4s, color .4s, border-color .4s;
}
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn:hover { background: var(--or); border-color: var(--or); color: var(--noir); }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--or); color: var(--noir);
  font: 600 11px/24px var(--f-ui); letter-spacing: 0; text-align: center;
  transition: background-color .4s, color .4s;
}
.cart-btn:hover .cart-count { background: var(--noir); color: var(--or); }
.cart-count.bump { animation: bump .6s var(--ease-back); }
@keyframes bump { 40% { transform: scale(1.45); } }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--or-line); border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--or); transition: transform .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 4vw;
  padding: calc(var(--header-h) + 30px) var(--pad) 70px;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, .94) 0%, rgba(10, 9, 8, .72) 48%, rgba(10, 9, 8, .4) 100%),
    url("../img/marbre-noir.jpg") center / cover;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; background: linear-gradient(transparent, var(--noir)); }
.hero__logo { margin: 26px 0 20px; line-height: 0; }
.hero__logo svg { width: clamp(230px, 27vw, 400px); height: auto; overflow: visible; }
.hero__frame { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s cubic-bezier(.65, 0, .35, 1) .25s forwards; }
.hero__mono, .hero__word { opacity: 0; animation: logo-in 1.4s var(--ease) forwards; }
.hero__mono { animation-delay: .9s; }
.hero__word { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes logo-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.hero__tagline { margin-bottom: 18px; font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -.01em; color: var(--or-clair); }
.hero__lead { max-width: 40ch; font-size: 16px; color: var(--ivoire-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Entrée de l'accueil */
.hero__text > * { animation: rise 1.2s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .12s; }
.hero__text > :nth-child(3) { animation-delay: .26s; }
.hero__text > :nth-child(4) { animation-delay: .38s; }
.hero__text > :nth-child(5) { animation-delay: .5s; }
.hero__text > .hero__logo { animation: none; }
.hero__visual { animation: rise 1.6s var(--ease) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

.hero__visual { position: relative; justify-self: center; width: min(100%, 560px, 64svh); }
.hero__img {
  width: 100%; height: auto;
  border-radius: 4px;
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 66%, transparent 100%);
}

/* ---------- Flamme vivante (lueur posée sur la photo) ---------- */
.flicker {
  position: absolute; left: var(--fx, 50.3%); top: var(--fy, 24%);
  width: 30%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen; pointer-events: none;
}
.flicker::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, .55) 0%, rgba(255, 170, 80, .2) 32%, rgba(255, 150, 60, 0) 68%);
  animation: flicker 2.6s ease-in-out infinite;
}
.flicker--hero { --fx: 34%; --fy: 56.7%; width: 24%; }
@keyframes flicker {
  0%, 100% { opacity: .85; transform: scale(1); }
  18% { opacity: .62; transform: translateX(-1%) scale(.96); }
  37% { opacity: 1; transform: translate(.8%, -.8%) scale(1.05); }
  55% { opacity: .7; transform: translate(-.5%, .4%) scale(.98); }
  74% { opacity: .95; transform: translate(.4%, -.4%) scale(1.03); }
}

/* ---------- Engagements ---------- */
.promesses { padding: 28px var(--pad); border-block: 1px solid var(--or-faint); }
.promesses__list { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.promesses__list li { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; font: 500 11px/1.4 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; }
.promesses__list svg { width: 26px; height: 26px; flex: none; color: var(--or); }

/* ---------- Le rituel : vidéo animée au défilement ---------- */
.rituel { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.rituel__sticky { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.rituel__fallback, .rituel__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rituel__fallback { object-fit: cover; }
.rituel__canvas { display: none; }
.rituel__sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .3) 32%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(180deg, var(--noir) 0%, rgba(10, 9, 8, 0) 14%, rgba(10, 9, 8, 0) 86%, var(--noir) 100%);
}
.rituel__text { position: absolute; z-index: 2; left: clamp(22px, 6vw, 90px); top: 50%; max-width: 32ch; transform: translateY(-50%); }
.rituel__text .title { margin: 12px 0 14px; }
.rituel__text p:last-child { color: var(--ivoire-2); }
.rituel__hint { display: none; }

/* Mode animé (activé par main.js) : la section s'allonge, l'image reste fixe à l'écran */
.scrub .rituel { height: 340vh; }
.scrub .rituel__sticky { position: sticky; top: 0; }
.scrub .rituel__canvas { display: block; }
.scrub .rituel__fallback { display: none; }
.scrub .rituel__text { opacity: var(--tp, 0); translate: 0 calc((1 - var(--tp, 0)) * 30px); }
.scrub .rituel__hint {
  display: block; position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px;
  text-align: center; font: 500 10.5px/1.4 var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--ivoire-2);
  opacity: var(--hint, 1);
}
.scrub .rituel__hint::after { content: ""; display: block; width: 1px; height: 36px; margin: 12px auto 0; background: linear-gradient(var(--or), transparent); }

/* Écrans en hauteur (téléphones) : texte en bas, sous la bougie */
@media (max-aspect-ratio: 1 / 1) {
  .rituel__sticky::after { background: linear-gradient(180deg, var(--noir) 0%, rgba(10, 9, 8, 0) 14%, rgba(10, 9, 8, 0) 58%, rgba(0, 0, 0, .85) 82%, var(--noir) 100%); }
  .rituel__text { top: auto; bottom: 9%; left: 22px; right: 22px; max-width: none; transform: none; text-align: center; }
}

/* ---------- Boutique ---------- */
.boutique { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--pad); }
.section-head { max-width: 620px; margin: 0 auto clamp(46px, 6vw, 76px); text-align: center; }
.section-head .title { margin: 14px 0 18px; }
.section-head__text { color: var(--ivoire-2); }
.offer { display: inline-block; margin-top: 18px; padding: 8px 16px; border: 1px solid var(--or-line); border-radius: 999px; font: 500 10.5px/1.2 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--or); }
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--or); }
@media (hover: none) { .hint { display: none; } }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }
.product {
  display: flex; flex-direction: column;
  background: var(--onyx);
  border: 1px solid var(--or-faint); border-radius: 6px;
  overflow: hidden;
  transition: transform .7s var(--ease), border-color .6s;
}
.product:hover { transform: translateY(-8px); border-color: rgba(212, 177, 98, .6); }
.product__visual { position: relative; aspect-ratio: 1200 / 896; overflow: hidden; cursor: pointer; background: #0e0c0a; }
.product__media { position: absolute; inset: 0; transform-origin: 50% 60%; transition: transform 1.2s var(--ease); }
.product__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease; }
.product__img--lit { opacity: 0; }
.product .flicker { opacity: 0; transition: opacity .9s ease; }
.product.is-lit .product__img--lit, .product.is-lit .flicker { opacity: 1; }
.product:hover .product__media { transform: scale(1.05); }
.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 7px 12px; border-radius: 999px;
  background: var(--or); color: var(--noir);
  font: 500 9.5px/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase;
}
.product__body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 24px; }
.product__scent { font: 500 10.5px/1.4 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--or); }
.product__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 8px 0 10px; }
.product__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(23px, 2.05vw, 30px); line-height: 1.05; letter-spacing: -.015em; }
.product__price { font-family: var(--f-display); font-size: 22px; color: var(--or); white-space: nowrap; }
.product__desc { flex: 1; margin-bottom: 22px; font-size: 14.5px; color: var(--ivoire-2); }
.product__safety { margin: -10px 0 20px; font-size: 11.5px; line-height: 1.5; color: rgba(236, 230, 218, .45); }
.product__safety a { color: var(--ivoire-2); text-decoration: underline; text-underline-offset: 2px; }
.product__safety--picto { display: flex; gap: 10px; align-items: flex-start; }
.product__safety--picto img { flex: none; margin-top: 1px; }
.product__safety strong { font-weight: 500; color: var(--ivoire); }

/* ---------- Citation (bande panoramique) ---------- */
.citation { position: relative; aspect-ratio: 1584 / 672; max-height: 86vh; width: 100%; overflow: hidden; background: var(--noir); }
.citation__img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.citation::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--noir) 0%, transparent 22%, transparent 78%, var(--noir) 100%),
    linear-gradient(90deg, transparent 40%, rgba(10, 9, 8, .55) 75%);
}
.citation__quote {
  position: absolute; z-index: 1; top: 50%; transform: translateY(-50%);
  right: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  width: min(42%, 540px);
}
.citation__quote p { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.3vw, 52px); line-height: 1.1; letter-spacing: -.015em; color: var(--ivoire); }
.citation__quote em { color: var(--or); }
.citation__quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.citation__quote figcaption::before { content: ""; width: 42px; height: 1px; background: var(--or); }

/* ---------- L'atelier ---------- */
.atelier {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 100px);
  padding: clamp(40px, 6vw, 80px) var(--pad) clamp(90px, 11vw, 150px);
}
.atelier__photo { position: relative; aspect-ratio: 896 / 1200; max-height: 82vh; justify-self: center; border-radius: 4px; overflow: hidden; background: var(--onyx); }
.atelier__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.atelier__photo:hover img { transform: scale(1.04); }
.atelier__photo::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(212, 177, 98, .4); border-radius: 2px; pointer-events: none; }
.atelier__text .title { margin: 14px 0 20px; }
.atelier__lead { max-width: 46ch; color: var(--ivoire-2); }
.steps { margin-top: 34px; border-top: 1px solid var(--or-faint); }
.steps li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--or-faint); transition: padding-left .5s var(--ease); }
.steps li:hover { padding-left: 10px; }
.steps__num { font-family: var(--f-display); font-style: italic; font-size: 22px; line-height: 1.2; color: var(--or); }
.steps h3 { margin-bottom: 4px; font-family: var(--f-display); font-weight: 500; font-size: 22px; }
.steps p { font-size: 14.5px; color: var(--ivoire-2); }

/* ---------- Pied de page ---------- */
.footer { padding: clamp(60px, 7vw, 90px) var(--pad) 28px; background: var(--abysse); border-top: 1px solid var(--or-faint); }
.footer__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; color: var(--or); }
.footer__brand .logo__mono { width: 128px; }
.footer__brand .logo__word { width: 94px; margin: 7px 0 0 17px; }
.footer__brand p { max-width: 32ch; margin-top: 22px; font-size: 14px; color: var(--ivoire-2); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col .eyebrow { margin-bottom: 6px; }
.footer__col a { font-size: 14px; color: var(--ivoire-2); transition: color .3s; }
.footer__col a:hover { color: var(--or); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--or-line); border-radius: 50%; color: var(--or); transition: background-color .4s, color .4s; }
.socials a:hover { background: var(--or); color: var(--noir); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom {
  max-width: var(--max); margin: 50px auto 0; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--or-faint);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(236, 230, 218, .45);
}

/* ---------- Panier ---------- */
.cart { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s .6s; }
.cart.is-open { visibility: visible; transition: visibility 0s; }
.cart__overlay { position: absolute; inset: 0; background: rgba(5, 5, 4, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .5s; }
.cart.is-open .cart__overlay { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--onyx); border-left: 1px solid var(--or-line);
  transform: translateX(100%); transition: transform .6s var(--ease);
}
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 26px; border-bottom: 1px solid var(--or-faint); }
.cart__title { font-family: var(--f-display); font-weight: 500; font-size: 28px; }
.cart__close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--or-line); border-radius: 50%; color: var(--or); transition: background-color .4s, color .4s, transform .5s var(--ease); }
.cart__close:hover { background: var(--or); color: var(--noir); transform: rotate(90deg); }
.cart__close svg { width: 18px; height: 18px; }
.cart__items { flex: 1; overflow-y: auto; padding: 4px 26px; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--or-faint); }
.cart-item__img { width: 56px; height: 56px; object-fit: cover; object-position: 50% 50%; border-radius: 4px; }
.cart-item__name { font-family: var(--f-display); font-size: 19px; line-height: 1.15; }
.cart-item__price { font-size: 13px; color: var(--ivoire-2); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--or-line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--or); font-size: 16px; }
.qty button:hover { color: var(--ivoire); }
.qty span { min-width: 22px; text-align: center; font-size: 13px; }
.cart-item__end { text-align: right; }
.cart-item__total { font-family: var(--f-display); font-size: 18px; color: var(--or); }
.cart-item__remove { margin-top: 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivoire-2); text-decoration: underline; text-underline-offset: 3px; }
.cart-item__remove:hover { color: var(--or); }
.cart__empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 26px; text-align: center; color: var(--ivoire-2); }
.cart.is-empty .cart__empty { display: flex; }
.cart.is-empty .cart__items, .cart.is-empty .cart__foot { display: none; }
.cart__foot { padding: 22px 26px 26px; border-top: 1px solid var(--or-faint); }
.cart__line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; font-size: 13px; color: var(--ivoire-2); }
.cart__line span:last-child { white-space: nowrap; color: var(--ivoire); }
.cart__offer { margin: 2px 0 14px; font-size: 12px; color: var(--or); }
.cart__offer.is-done::before { content: "✓ "; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.cart__sum { font-family: var(--f-display); font-weight: 500; font-size: 28px; letter-spacing: 0; color: var(--or); }
.cart__note { margin: 12px 0 0; font-size: 12px; text-align: center; color: var(--ivoire-2); }
.cart__checkout { width: 100%; }
.cart__checkout.is-loading { opacity: .7; pointer-events: none; }
.cart__cgv { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 16px; font-size: 12.5px; line-height: 1.45; color: var(--ivoire-2); cursor: pointer; }
.cart__cgv input { flex: none; width: 16px; height: 16px; margin-top: 1px; accent-color: var(--or); cursor: pointer; }
.cart__cgv a { color: var(--or); text-decoration: underline; text-underline-offset: 2px; }
.cart__cgv.is-missing { color: var(--or-clair); animation: cgv-shake .4s; }
@keyframes cgv-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Notification ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  display: flex; align-items: center; gap: 16px;
  max-width: calc(100vw - 32px); padding: 13px 14px 13px 22px; border-radius: 999px;
  background: var(--or); color: var(--noir);
  font: 500 13px/1.3 var(--f-ui);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s .6s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.toast button { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--noir); color: var(--or); font: 500 10.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; translate: 0 34px; transition: opacity 1s var(--ease) var(--d, 0s), translate 1.1s var(--ease) var(--d, 0s); }
.js .product.reveal { transition: opacity 1s var(--ease) var(--d, 0s), translate 1.1s var(--ease) var(--d, 0s), transform .7s var(--ease), border-color .6s; }
.js .reveal.is-in { opacity: 1; translate: none; }

/* ==========================================================================
   Tablette & mobile
   ========================================================================== */
@media (max-width: 960px) {
  .citation { aspect-ratio: auto; max-height: none; }
  .citation__img { aspect-ratio: 16 / 10; height: auto; object-position: 30% 60%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 58%, transparent 100%); }
  .citation::after { display: none; }
  .citation__quote { position: relative; top: auto; right: auto; transform: none; width: auto; max-width: 560px; margin: -10vw auto 0; padding: 0 var(--pad) clamp(30px, 6vw, 50px); text-align: center; }
  .citation__quote figcaption { justify-content: center; }
  .atelier__photo { width: min(100%, 460px); }
  .hero { grid-template-columns: 1fr; gap: 10px; padding-bottom: 40px; }
  .hero__visual { width: min(100%, 480px); }
  .grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .atelier { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .promesses__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .promesses__list li { justify-content: flex-start; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .header { grid-template-columns: auto 1fr; }
  .header__actions { grid-column: 2; }
  .burger { display: block; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 8px 0 12px; }
  .logo__mono { width: 74px; }
  .logo__word { width: 54px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 6px var(--pad) 22px;
    background: var(--noir); border-bottom: 1px solid var(--or-faint);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease), visibility 0s; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--or-faint); font-size: 12px; }
  .nav a::after { display: none; }
}

@media (max-width: 520px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Pages légales (CGV, mentions légales)
   ========================================================================== */
.header--solid { height: 70px; background: rgba(10, 9, 8, .92); border-bottom-color: var(--or-faint); }
.header--solid .logo, .header--solid:not(.is-scrolled):not(.menu-open) .logo { flex-direction: row; gap: 12px; opacity: 1; visibility: visible; }
.header--solid .logo img { width: 70px; height: auto; }
.header--solid .logo span { font: 500 11px/1 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--or); }
.legal { max-width: 820px; margin: 0 auto; padding: calc(70px + clamp(50px, 8vw, 90px)) var(--pad) clamp(70px, 9vw, 110px); }
.legal .title { margin: 14px 0 10px; }
.legal__date { font-size: 13px; color: var(--ivoire-2); }
.legal__toc { margin: 34px 0 10px; padding: 20px 24px; border: 1px solid var(--or-faint); border-radius: 6px; columns: 2; column-gap: 30px; }
.legal__toc a { display: block; padding: 4px 0; font-size: 14px; color: var(--ivoire-2); transition: color .3s; }
.legal__toc a:hover { color: var(--or); }
.legal h2 { margin: 46px 0 14px; padding-top: 22px; border-top: 1px solid var(--or-faint); font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 30px); color: var(--or); scroll-margin-top: 90px; }
.legal h3 { margin: 22px 0 8px; font: 500 12px/1.4 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ivoire); }
.legal p, .legal li { font-size: 15px; color: var(--ivoire-2); }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0 10px 20px; list-style: disc; }
.legal li { margin: 5px 0; }
.legal a { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }
.legal blockquote { margin: 12px 0; padding: 14px 18px; border-left: 2px solid var(--or-line); background: rgba(255, 255, 255, .02); font-size: 14px; }
.legal blockquote p { font-size: 14px; }
.todo { padding: 1px 6px; border-radius: 3px; background: rgba(212, 177, 98, .2); color: var(--or-clair); font-weight: 500; }
.legal__back { margin-top: 50px; }
.legal a.btn { text-decoration: none; }
.legal a.btn--gold { color: var(--noir); }
.legal--center { min-height: 70vh; text-align: center; }
.legal--center p { max-width: 560px; margin-left: auto; margin-right: auto; }
.legal__safety { margin: 12px 0; padding: 16px 18px; border: 1px solid var(--or-faint); border-radius: 6px; }
.legal__safety h3 { margin-top: 0; }
#securite { scroll-margin-top: 90px; }
.legal__safety--picto { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
.legal__safety--picto img { grid-row: span 3; }
@media (max-width: 600px) { .legal__toc { columns: 1; } }
