/* Coswheel CT20 — shared stylesheet (index.html + produit.html) */
:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --studio: #e9e9e7;
  --studio-2: #c6c8c5;
  --ink-dim: #55565a;
  --ink-faint: #7f8084;
  --fg: #f4f3ef;
  --fg-dim: rgba(244, 243, 239, 0.58);
  --fg-faint: rgba(244, 243, 239, 0.16);
  --tan: #d4893a;
  --tan-soft: rgba(212, 137, 58, 0.18);
  --line-dark: rgba(11, 11, 12, 0.14);
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ink-hover: #26262a;
  --tan-hover: #e59a4a;
  --r-lg: 20px;
  --r-md: 12px;
  --lead: clamp(15px, 1.3vw, 18px);
  --track-display: -0.035em;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--tan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.logo { font-weight: 600; letter-spacing: 0.22em; font-size: 14px; }
.nav ul { display: flex; gap: 32px; list-style: none; }
.nav ul a { opacity: 0.75; transition: opacity 0.3s; }
.nav ul a:hover { opacity: 1; }
.nav .cta-sm {
  border: 1px solid currentColor; border-radius: 999px;
  padding: 9px 16px;
}
@media (max-width: 760px) { .nav ul { display: none; } }

/* ---------------------------------------------------------------- scroll film */
.film { position: relative; height: 520vh; }
.film__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--ink);
}
.film__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--ink) url("hero-poster.jpg") center / cover no-repeat;
}

/* procedural fallback, only shown if the video cannot be loaded */
.placeholder {
  position: absolute; inset: 0; display: none; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(212,137,58,0.10), transparent 70%),
    linear-gradient(var(--fg-faint) 1px, transparent 1px) 0 0 / 100% 80px,
    var(--ink);
}
.placeholder svg { width: min(78vmin, 720px); height: auto; }
.film.video-failed .placeholder { display: grid; }
.placeholder__tag {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  color: var(--fg-dim); white-space: nowrap;
}

.film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, transparent 28%, transparent 62%, rgba(11,11,12,0.85) 100%),
    linear-gradient(90deg, rgba(11,11,12,0.55) 0%, transparent 45%);
}

/* chapters */
.chapter {
  position: absolute; left: var(--gutter); bottom: clamp(96px, 14vh, 160px);
  max-width: min(640px, calc(100vw - 2 * var(--gutter)));
  opacity: 0; pointer-events: none;
}
.chapter.is-active { pointer-events: auto; }
.chapter .eyebrow { margin-bottom: 18px; }
.chapter h1, .chapter h2 {
  font-weight: 300; letter-spacing: var(--track-display); line-height: 0.95;
  font-size: clamp(44px, 8vw, 118px);
}
.chapter h2 { font-size: clamp(38px, 6vw, 84px); }
.chapter p { margin-top: 22px; color: var(--fg-dim); font-size: var(--lead); max-width: 44ch; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.word > span { display: inline-block; transform: translateY(105%); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--fg); color: var(--ink); font-weight: 500; font-size: 15px;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--ink { background: var(--ink); color: var(--fg); }
.btn--ink:hover { background: var(--ink-hover); }
.btn--tan { background: var(--tan); color: var(--ink); }
.btn--tan:hover { background: var(--tan-hover); }
.chapter .btn, .closing .btn { margin-top: 32px; }

/* HUD */
.hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; align-items: center; gap: 20px; color: var(--fg-dim);
}
.hud__bar { flex: 1; height: 1px; background: var(--fg-faint); position: relative; }
.hud__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--fg); }
.hud__ticks { position: absolute; inset: -3px 0; display: flex; justify-content: space-between; }
.hud__ticks i { width: 1px; height: 7px; background: var(--fg-dim); }
.hud__count { font-variant-numeric: tabular-nums; min-width: 7ch; text-align: right; }

.side-spec {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 22px; text-align: right; color: var(--fg-dim);
}
.side-spec b { display: block; font-family: var(--sans); font-weight: 300; font-size: 28px; color: var(--fg); letter-spacing: -0.02em; text-transform: none; }
@media (max-width: 760px) { .side-spec { display: none; } }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: 64px; color: var(--fg-dim);
  display: flex; align-items: center; gap: 10px;
}
.scroll-hint i { width: 1px; height: 36px; background: var(--fg-dim); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------------------------- light sections (product) */
.section { padding: clamp(88px, 12vw, 160px) var(--gutter); }
.eyebrow { color: var(--tan); display: flex; gap: 14px; align-items: center; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display { font-weight: 300; letter-spacing: var(--track-display); line-height: 1; font-size: clamp(36px, 5.4vw, 76px); margin-top: 22px; max-width: 16ch; }

.specs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark); margin-top: 28px;
}
.specs-head { margin-top: clamp(64px, 9vw, 120px); }
.trust { padding-top: 0; }
.trust__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line-dark);
}
.trust__item { padding-top: 24px; }
.trust__item .mono { color: var(--ink-faint); }
.trust__item b { display: block; margin-top: 14px; font-weight: 500; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.015em; line-height: 1.25; }
.trust__item p { margin-top: 10px; color: var(--ink-dim); font-size: 15px; line-height: 1.5; max-width: 30ch; }
@media (max-width: 760px) {
  .trust__grid { grid-template-columns: 1fr; gap: 0; }
  .trust__item { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
  .trust__item:last-child { border-bottom: 0; }
}
.specs-head--first { margin-top: 0; }
#galerie { padding-top: 0; }
#galerie .details { margin-top: 28px; }
.spec { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line-dark); }
.spec + .spec { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.spec .mono { color: var(--ink-faint); }
.spec strong { display: block; font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: var(--track-display); margin-top: 18px; font-variant-numeric: tabular-nums; }
.spec strong small { font-size: 0.4em; letter-spacing: 0; margin-left: 4px; color: var(--ink-faint); }
@media (max-width: 860px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(odd) { padding-left: 0; border-left: 0; }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- product */
.product { background: var(--studio); color: var(--ink); }
.product__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.product__head p { color: var(--ink-dim); max-width: 40ch; font-size: var(--lead); padding-bottom: 6px; }

.configurator {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: clamp(28px, 4vw, 72px); align-items: start; margin-top: clamp(40px, 6vw, 80px);
}
.configurator > * { min-width: 0; } /* the scrollable thumbnail rail must not widen the grid */
.stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  /* studio backdrop: slightly darker wall at the top, lighter floor, like the photos */
  background:
    radial-gradient(ellipse 70% 50% at 50% 72%, #cdcfcc 0%, rgba(205,207,204,0) 70%),
    linear-gradient(180deg, #b9bbb8 0%, #c3c5c2 50%, #c9cbc8 100%);
}
/* the <img> box hugs the painted picture (not the stage), so the edge masks fade the photo itself */
.stage img {
  position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: 100%; max-height: 100%;
  opacity: 0; transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 60%, transparent 100%);
}
/* portrait shots fill the stage height: only their side bands need to melt into the backdrop */
.stage img.is-portrait {
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%);
          mask-image:
    linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.stage img.is-on { opacity: 1; transform: translate(-50%, -50%); }
.stage__tag { position: absolute; left: 22px; top: 20px; color: var(--ink-faint); pointer-events: none; }
.stage__nav { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.stage__nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.6); color: var(--ink); display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.stage__nav button:hover { background: #fff; transform: translateY(-1px); }
.stage__nav svg { width: 16px; height: 16px; }

.views { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.views::-webkit-scrollbar { display: none; }
.view {
  flex: 0 0 auto; width: 96px; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid transparent; padding: 0; cursor: pointer; opacity: 0.55;
  background: var(--studio-2); transition: opacity 0.3s, border-color 0.3s;
}
.view img { width: 100%; height: 100%; object-fit: cover; }
.view:hover { opacity: 0.85; }
.view[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }

.panel { position: sticky; top: 96px; }
.panel .mono { color: var(--ink-faint); }
.panel h3 { font-weight: 300; font-size: clamp(34px, 3.4vw, 48px); letter-spacing: var(--track-display); line-height: 1; margin-top: 14px; }
.panel h3 small { display: block; font-size: 17px; letter-spacing: -0.01em; color: var(--ink-dim); margin-top: 12px; font-weight: 400; }
.finish-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.finish {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
}
.finish:hover { border-color: rgba(11,11,12,0.4); }
.finish[aria-pressed="true"] { border-color: var(--ink); background: rgba(11,11,12,0.05); }
.finish i { position: relative; display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.finish i::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--studio); background: var(--saddle);
}
.finish--argent i { background: linear-gradient(135deg, #e6e7e9 0%, #a7aaae 58%, #cdcfd2 100%); --saddle: #1a1a1c; }
.finish--gris-fonce i { background: linear-gradient(135deg, #5c626a 0%, #2d3136 58%, #474c53 100%); --saddle: #8a5a3c; }
.panel__desc { margin-top: 24px; color: var(--ink-dim); font-size: 16px; max-width: 40ch; }
.panel dl { margin-top: 28px; border-top: 1px solid var(--line-dark); }
.panel dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.panel dt { color: var(--ink-faint); }
.panel dd { text-align: right; }
.panel__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; }
.panel__price { color: var(--ink-dim); font-size: 15px; line-height: 1.35; }
.panel__price b { display: flex; align-items: baseline; gap: 10px; font-weight: 400; color: var(--ink); }
.panel__price-now { font-size: 22px; letter-spacing: -0.02em; }
.panel__price-was { color: var(--ink-faint); text-decoration: line-through; }

.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(64px, 9vw, 120px); }
.details figure { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--studio-2); min-height: 0; }
.details .wide { grid-column: span 2; aspect-ratio: 4 / 3; }
.details .wide img { width: 100%; height: 100%; object-fit: cover; }
.details .tall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.details img { transition: transform 1.4s var(--ease); }
.details figure:hover img { transform: scale(1.03); }
.details figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.details figcaption b { font-weight: 400; font-size: 15px; letter-spacing: -0.01em; max-width: 24ch; }
.details figcaption .mono { color: var(--ink-faint); white-space: nowrap; }

@media (max-width: 960px) {
  .configurator { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .details { grid-template-columns: 1fr 1fr; }
  .details .wide { grid-column: span 2; }
  .details .tall { aspect-ratio: 3 / 4; }
}
@media (max-width: 600px) {
  .stage, .details figure, .battery__stage, .finish-card figure { border-radius: 16px; }
  .stage { aspect-ratio: 1 / 1; }
  .details { grid-template-columns: 1fr; }
  .details .wide { grid-column: span 1; }
  .details .tall { aspect-ratio: 3 / 4; }
}

/* ---------------------------------------------------------------- battery (scroll-pinned) */
.battery { background: var(--studio); color: var(--ink); position: relative; height: 340vh; }
.battery__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(280px, 32%) 1fr; gap: clamp(24px, 4vw, 64px);
  align-items: center; padding: 72px var(--gutter) 80px;
}
.battery__copy { position: relative; min-height: 400px; }
.battery__step {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
}
.battery__step.is-active { pointer-events: auto; }
.battery__step .display { font-size: clamp(34px, 4.2vw, 64px); max-width: 12ch; }
.battery__step .display em { font-style: normal; font-variant-numeric: tabular-nums; }
.battery__step p { margin-top: 20px; color: var(--ink-dim); font-size: var(--lead); max-width: 34ch; }
.battery__facts { list-style: none; margin-top: 28px; display: grid; gap: 12px; border-top: 1px solid var(--line-dark); padding-top: 18px; color: var(--ink-faint); }
.battery__facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.battery__facts b { font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); text-align: right; }
.battery__step .btn { margin-top: 28px; align-self: flex-start; }
.battery__stage {
  position: relative; aspect-ratio: 3128 / 1696; width: 100%;
  border-radius: var(--r-lg); overflow: hidden; background: var(--studio-2);
}
.battery__stage[data-finish="gris-fonce"] { --cell-x: 35.102%; --cell-y: 37.795%; --clip-x: 57.097%; }
.battery__stage[data-finish="argent"] { --cell-x: 35.230%; --cell-y: 39.387%; --clip-x: 57.225%; }
.battery__base { position: absolute; inset: 0; width: 100%; height: 100%; }
.battery__clip { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--clip-x)); }
.battery__cell {
  position: absolute; left: var(--cell-x); top: var(--cell-y); width: 22.698%; height: auto;
  transform: translateX(calc(var(--out, 0) * 1%)); will-change: transform;
}
.battery .hud { color: var(--ink-faint); }
.battery .hud__bar { background: var(--line-dark); }
.battery .hud__fill { background: var(--ink); }
.battery .hud__ticks i { background: var(--ink-faint); }
@media (max-width: 760px) {
  .battery { height: 300vh; }
  .battery__pin { grid-template-columns: 1fr; align-content: center; gap: 20px; padding-top: 80px; }
  .battery__copy { min-height: 300px; }
  .battery__step .display { max-width: none; }
}

/* ---------------------------------------------------------------- finishes (home teaser) */
.finish-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(40px, 6vw, 80px); }
.finish-card { display: block; }
.finish-card figure { border-radius: var(--r-lg); overflow: hidden; background: var(--studio-2); aspect-ratio: 3 / 2; }
.finish-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.finish-card:hover img { transform: scale(1.03); }
.finish-card__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 4px 0; }
.finish-card__meta b { font-weight: 400; font-size: 17px; display: block; }
.finish-card__meta span { color: var(--ink-dim); font-size: 15px; display: block; margin-top: 2px; }
.finish-card__meta .mono { color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.4s var(--ease); }
.finish-card__meta .mono svg { width: 14px; height: 14px; }
.finish-card:hover .finish-card__meta .mono { transform: translateX(4px); }
.finishes + .product { padding-top: 0; }
@media (max-width: 760px) { .finish-cards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- closing */
.closing { text-align: center; position: relative; overflow: hidden; }
.closing .eyebrow { justify-content: center; }
.closing h2 { font-weight: 300; letter-spacing: -0.045em; line-height: 0.9; font-size: clamp(56px, 13vw, 210px); margin-top: 22px; }
.closing p { color: var(--fg-dim); margin: 26px auto 0; max-width: 42ch; font-size: var(--lead); }

/* ---------------------------------------------------------------- accordions (fiche technique, FAQ) */
.acc { border-top: 1px solid var(--line-dark); }
.acc:last-of-type { border-bottom: 1px solid var(--line-dark); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.4s var(--ease);
}
.acc[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc__body { padding: 0 0 26px; color: var(--ink-dim); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.acc__grid { padding-bottom: 20px; }
.acc__grid div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-top: 1px solid rgba(11, 11, 12, 0.07); font-size: 15px; }
.acc__grid dt { color: var(--ink-faint); }
.acc__grid dd { text-align: right; max-width: 62%; }
.fiche { margin-top: clamp(32px, 4vw, 56px); max-width: 980px; }
.fiche__note { margin-top: 20px; color: var(--ink-faint); font-size: 13px; max-width: 70ch; }
#fiche, #faq { padding-top: 0; }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro p { margin-top: 20px; color: var(--ink-dim); font-size: var(--lead); max-width: 38ch; }
.faq__intro .btn { margin-top: 28px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--ink); transition: gap 0.3s var(--ease); }
.more:hover { gap: 14px; }
.more svg { width: 14px; height: 14px; }

/* footer: dark, in the same register as the hero and the closing */
footer { padding: 56px var(--gutter) 28px; border-top: 1px solid var(--fg-faint); color: var(--fg-dim); }
.footer__top { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; align-items: flex-start; }
.footer__top .logo { color: var(--fg); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col span { color: var(--fg-faint); }
.footer__col a { transition: color 0.3s; }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--fg-faint);
}

@media (prefers-reduced-motion: reduce) {
  .word > span { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i { animation: none; }
}

/* ---------------------------------------------------------------- legal pages (mentions, confidentialité, CGV) */
.legal { padding-top: clamp(120px, 14vw, 180px); }
.legal__layout { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 88px); align-items: start; }
.legal__toc { position: sticky; top: 96px; display: grid; gap: 10px; color: var(--ink-faint); }
.legal__toc a { transition: color 0.3s; }
.legal__toc a:hover { color: var(--ink); }
.legal__body { max-width: 72ch; font-size: 16px; line-height: 1.65; color: var(--ink-dim); }
.legal__body section { padding: 28px 0 32px; border-top: 1px solid var(--line-dark); scroll-margin-top: 88px; }
.legal__body h2 { color: var(--ink); font-weight: 500; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 14px; }
.legal__body h3 { color: var(--ink); font-weight: 500; font-size: 16px; margin: 20px 0 6px; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 12px; }
.legal__body ul { padding-left: 1.1em; display: grid; gap: 6px; }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-dark); }
.legal__body strong { color: var(--ink); font-weight: 500; }
.legal__body dl { display: grid; }
.legal__body dl div { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-top: 1px solid rgba(11, 11, 12, 0.07); }
.legal__body dt { color: var(--ink-faint); }
.legal__body dd { color: var(--ink); text-align: right; }
.legal__updated { margin-top: 18px; color: var(--ink-faint); }
.legal__form { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line-dark); border-radius: var(--r-md); font-size: 15px; }
/* fields still to fill in before going live */
.todo { background: var(--tan-soft); color: #8a4f12; padding: 0 4px; border-radius: 4px; }
@media (max-width: 860px) {
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .legal__body dl div { flex-direction: column; gap: 2px; }
  .legal__body dd { text-align: left; }
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__bottom nav a { transition: color 0.3s; }
.footer__bottom nav a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- boutique (commande, paiement, merci, suivi) */
.shop { padding-top: clamp(120px, 14vw, 180px); min-height: 100vh; }
.shop__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.shop__card { border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); background: rgba(255,255,255,0.35); }
.shop__item { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.shop__item img { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); background: var(--studio-2); }
.shop__item b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.shop__item span { display: block; color: var(--ink-dim); font-size: 14px; margin-top: 4px; }
.shop__lines { margin-top: 22px; border-top: 1px solid var(--line-dark); }
.shop__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; color: var(--ink-dim); }
.shop__lines div b { color: var(--ink); font-weight: 500; }
.shop__lines .total { font-size: 17px; color: var(--ink); }
.shop__lines .total b { font-size: 22px; letter-spacing: -0.02em; font-weight: 400; }
.shop__note { margin-top: 18px; color: var(--ink-faint); font-size: 13px; line-height: 1.5; }
.shop__stock { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-dim); }
.shop__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f9b5d; }
.shop__stock.is-low::before { background: var(--tan); }
.shop__stock.is-out::before { background: #c0392b; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 999px; overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--ink); }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty output { min-width: 28px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; color: var(--ink-dim); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-dark); border-radius: var(--r-md);
  padding: 13px 14px; transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.field.is-error input { border-color: #c0392b; }
.field__err { font-size: 13px; color: #c0392b; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-dim); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-dark); }
.form .btn { justify-content: center; width: 100%; padding: 17px 22px; }
.form .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.form__status { font-size: 14px; color: #c0392b; min-height: 1.4em; }
.form__status.is-ok { color: #3f9b5d; }
.shop__secure { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 13px; }
.shop__secure svg { width: 14px; height: 14px; }
.shop__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink-dim); font-size: 14px; }
.shop__back svg { width: 14px; height: 14px; }
.shop__alert { padding: 14px 16px; border-radius: var(--r-md); background: var(--tan-soft); color: #8a4f12; font-size: 14px; line-height: 1.5; }

.timeline { display: grid; gap: 0; margin-top: 8px; }
.timeline div { position: relative; padding: 0 0 20px 28px; font-size: 15px; }
.timeline div::before { content: ""; position: absolute; left: 6px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.timeline div::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1px; background: var(--line-dark); }
.timeline div:last-child::after { display: none; }
.timeline time { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 13px; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tan); }
.status-pill.is-shipped::before, .status-pill.is-delivered::before { background: #3f9b5d; }
.status-pill.is-cancelled::before, .status-pill.is-refunded::before, .status-pill.is-returned::before { background: #c0392b; }
.shop__big { font-weight: 300; letter-spacing: var(--track-display); line-height: 1; font-size: clamp(32px, 4vw, 56px); margin-top: 18px; }
.shop__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn--ghost { background: transparent; border: 1px solid var(--line-dark); color: var(--ink); }
.btn--ghost:hover { background: rgba(11,11,12,0.05); }
.shop address { font-style: normal; font-size: 15px; line-height: 1.55; color: var(--ink-dim); }
.shop address b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .shop__layout { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
.panel__price .shop__stock { display: flex; margin-top: 8px; }

.finish { position: relative; }
.finish.is-soon::after { content: "Bientôt"; position: absolute; right: -6px; top: -9px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--tan); color: var(--ink); border-radius: 999px; padding: 2px 7px; }

/* paiement intégré (Stripe Elements) */
.pay { display: grid; gap: 22px; }
.pay__step > .mono { display: block; margin-bottom: 4px; }
.stripe-el { margin-top: 10px; min-height: 48px; }
.promo { display: flex; gap: 8px; margin-top: 14px; }
.promo input { flex: 1; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 10px 14px; }
.promo input:focus { outline: 0; border-color: var(--ink); }
.btn--sm { padding: 10px 14px; font-size: 14px; }
.pay .btn--ink { justify-content: center; width: 100%; padding: 17px 22px; }
.pay .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.shop__card.is-locked .finish-group, .shop__card.is-locked .qty { opacity: 0.45; pointer-events: none; }
