/* ==========================================================================
   Lumière & Matière — feuille de style du site
   Direction : clair-obscur. Ivoire le jour, nuit chaude, lumière ambrée.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night-0: #0a0908;
  --night-1: #110f0d;
  --night-2: #191613;
  --night-3: #24201c;
  --night-4: #2f2a25;
  --ivory-0: #f3eee5;
  --ivory-1: #ebe4d8;
  --ivory-2: #ddd3c3;
  --paper: #faf7f1;
  --ink: #1b1815;
  --ink-2: #4a433b;
  --ink-3: #82786b;
  --cream: #f6f1e7;
  --cream-2: rgba(246, 241, 231, 0.74);
  --cream-3: rgba(246, 241, 231, 0.5);
  --glow: #ffd49a;
  --glow-soft: rgba(255, 212, 154, 0.16);
  --amber: #f0a650;
  --ember: #c9712c;
  --line-d: rgba(27, 24, 21, 0.13);
  --line-n: rgba(246, 241, 231, 0.12);
  --ok: #7fb685;
  --warn: #e8a35a;
  --err: #e0715d;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  background: var(--night-0);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
canvas,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--glow);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* --- Typographie ----------------------------------------------------------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber);
}
.section--day .eyebrow {
  color: var(--ember);
}
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.h2 em,
.hero__title em,
.hero__cta-title em,
.brand__name em {
  font-style: italic;
  font-weight: 300;
  color: var(--glow);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.section--day .h2 em {
  color: var(--ember);
}
.lede {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--cream-2);
}
.section--day .lede {
  color: var(--ink-2);
}

/* --- Boutons --------------------------------------------------------------- */

.btn {
  --bx: 50%;
  --by: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  isolation: isolate;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120px circle at var(--bx) var(--by), rgba(255, 255, 255, 0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before {
  opacity: 1;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn[disabled],
.btn.is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.btn--glow {
  background: linear-gradient(180deg, #ffe0b0, #f3b264);
  color: #2a1a08;
  box-shadow: 0 0 0 1px rgba(255, 214, 160, 0.45), 0 10px 40px -8px rgba(255, 180, 90, 0.55);
}
.btn--glow:hover {
  box-shadow: 0 0 0 1px rgba(255, 214, 160, 0.7), 0 14px 60px -6px rgba(255, 180, 90, 0.8);
}
.btn--light {
  background: var(--cream);
  color: var(--ink);
}
.btn--dark {
  background: var(--ink);
  color: var(--cream);
}
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost::before {
  background: radial-gradient(120px circle at var(--bx) var(--by), rgba(255, 212, 154, 0.25), transparent 60%);
}
.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.86rem;
}
.btn--block {
  width: 100%;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--amber);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-n);
  background: transparent;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* --- Bandeau d'annonce & navigation ------------------------------------------ */

.announce {
  position: relative;
  z-index: 41;
  background: var(--ink);
  color: var(--ivory-1);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 8px var(--gutter);
}
.announce p {
  margin: 0;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease), backdrop-filter 0.5s, transform 0.5s var(--ease), top 0.3s;
}
.has-announce .nav {
  top: var(--announce-h, 0px);
}
.nav.is-scrolled {
  top: 0;
}
.nav[data-tone='night'] {
  color: var(--cream);
}
.nav.is-scrolled {
  background: rgba(243, 238, 229, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-d);
}
.nav.is-scrolled[data-tone='night'] {
  background: rgba(12, 11, 9, 0.66);
  box-shadow: 0 1px 0 var(--line-n);
}
.nav.is-hidden {
  transform: translateY(-110%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 30px;
  height: 30px;
}
.brand__sun {
  fill: var(--amber);
  filter: drop-shadow(0 0 6px rgba(255, 190, 100, 0.8));
}
.brand__plate {
  fill: currentColor;
  opacity: 0.92;
}
.nav[data-tone='night'] .brand__plate,
.footer .brand__plate {
  fill: var(--cream);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 48;
}
.brand__name em {
  color: var(--amber);
}
.nav__links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover {
  opacity: 1;
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  background: transparent;
  transition: background-color 0.3s;
}
.cart-btn:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.cart-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.cart-btn__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.cart-btn__count.is-on {
  transform: scale(1);
}
.cart-btn.is-bump {
  animation: bump 0.6s var(--ease);
}
@keyframes bump {
  30% {
    transform: scale(1.15);
  }
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-btn span:first-child {
  top: 18px;
}
.menu-btn span:last-child {
  top: 25px;
}
.menu-btn[aria-expanded='true'] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* --- Mise en page générale ----------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow {
  max-width: 880px;
}
.section {
  position: relative;
  padding: clamp(88px, 12vw, 160px) 0;
}
.section--day {
  background: var(--ivory-0);
  color: var(--ink);
}
.section--night {
  background: var(--night-0);
  color: var(--cream);
}
.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: end;
}
.section-head--split .lede {
  margin: 0;
  justify-self: end;
}

/* Apparition au défilement : le texte « s'allume » */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
.section--night .reveal .h2 {
  transition: text-shadow 1.6s var(--ease) 0.2s;
}
.section--night .reveal.is-in .h2 em {
  text-shadow: 0 0 28px rgba(255, 196, 120, 0.45);
}

/* ==========================================================================
   HÉRO — la plaque, la boule de lumière, le passage du jour à la nuit
   ========================================================================== */

.hero {
  --p: 0;
  --night: 0;
  position: relative;
  height: 420vh;
  background: var(--night-0);
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.hero__room,
.hero__room > div {
  position: absolute;
  inset: 0;
}
.hero__day {
  background:
    radial-gradient(120% 90% at 78% 8%, #fbf7ef 0%, rgba(251, 247, 239, 0) 60%),
    linear-gradient(180deg, #efe9de 0%, #e7dfd1 70%, #ddd3c2 100%);
}
.hero__beams {
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 250, 238, 0.55) 26%, transparent 34%),
    linear-gradient(115deg, transparent 36%, rgba(255, 250, 238, 0.4) 42%, transparent 49%),
    linear-gradient(115deg, transparent 52%, rgba(255, 250, 238, 0.3) 57%, transparent 63%);
  mix-blend-mode: soft-light;
  opacity: calc(1 - var(--night) * 1.4);
}
.hero__night {
  background: radial-gradient(90% 80% at 50% 45%, #15120f 0%, #0a0908 60%, #060505 100%);
  opacity: var(--night);
}
.hero__spill {
  --lx: 50%;
  --ly: 48%;
  background: radial-gradient(38vmax 34vmax at var(--lx) var(--ly), rgba(255, 196, 120, 0.2), rgba(255, 170, 90, 0.07) 40%, transparent 70%);
  opacity: var(--light, 0);
}
.hero__grain {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__copy {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  top: calc(var(--nav-h) + clamp(18px, 6vh, 80px));
  max-width: min(640px, 46vw);
  opacity: calc(1 - var(--p) * 7);
  transform: translateY(calc(var(--p) * -160px));
  pointer-events: none;
}
.hero__copy .eyebrow {
  color: var(--ember);
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 8.6vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.hero__title em {
  color: var(--ember);
}
.hero__lede {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 350;
  line-height: 1.4;
  color: var(--ink-2);
  font-variation-settings: 'opsz' 24;
}

.hero__orb {
  --ox: 80vw;
  --oy: 18vh;
  --os: 1;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translate3d(var(--ox), var(--oy), 0) scale(var(--os));
  pointer-events: none;
  will-change: transform;
}
.hero__orb--core {
  z-index: 4;
}
.hero__orb--core.is-behind {
  z-index: 2;
}
.hero__orb span {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orb__core {
  width: 76px;
  height: 76px;
  background: radial-gradient(circle at 42% 38%, #fffdf8 0%, #fff4df 30%, #ffd79c 62%, #f4a857 100%);
  box-shadow: 0 0 22px 6px rgba(255, 214, 150, 0.9), 0 0 70px 20px rgba(255, 180, 90, 0.55), inset -6px -8px 16px rgba(214, 120, 40, 0.35);
  animation: breathe 5s ease-in-out infinite;
}
.orb__halo {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.55) 0%, rgba(255, 190, 110, 0.18) 38%, transparent 68%);
}
.orb__bloom {
  width: 980px;
  height: 980px;
  background: radial-gradient(circle, rgba(255, 196, 120, calc(0.1 + var(--night) * 0.22)) 0%, rgba(255, 170, 90, 0.06) 35%, transparent 65%);
}
@keyframes breathe {
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    filter: brightness(1.06);
  }
}

.hero__plate {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  z-index: 3;
  width: var(--plate-w, min(62vw, 880px));
  aspect-ratio: var(--plate-ar, 1.3);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}
.hero__plate canvas {
  width: 100%;
  height: 100%;
}
.plate-fallback {
  position: absolute;
  inset: 7%;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f1ea;
}
.plate-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.55) contrast(1.05);
  opacity: var(--light, 0);
}
.plate-fallback__white {
  position: absolute;
  inset: 0;
  background: #f4f1ea;
  opacity: calc(1 - var(--light, 0));
}

.loupe-label {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: max-content;
  max-width: 250px;
  color: var(--cream);
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.loupe-label.is-on {
  opacity: 1;
  transform: none;
}
.loupe-label small {
  color: var(--cream-3);
}
.loupe-label__x {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--glow);
}

.hero__captions {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(30px, 6.5vh, 70px);
  margin: 0;
  padding: 0;
  list-style: none;
  width: min(640px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.hero__captions li {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.hero__captions li.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}
.hero__captions p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 330;
  line-height: 1.38;
  color: var(--cap-color, var(--ink));
}
.hero__captions .eyebrow {
  color: var(--cap-accent, var(--ember));
}

.hero__cta {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: clamp(26px, 6vh, 72px);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  color: var(--cream);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.hero__cta.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero__cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero__cta .btn--ghost {
  color: var(--cream);
}

.hero__meter {
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cap-color, var(--ink));
  opacity: 0.8;
}
.hero__meter-track {
  position: relative;
  width: 110px;
  height: 2px;
  background: color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 2px;
  overflow: hidden;
}
.hero__meter-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--amber), var(--glow));
  transform-origin: left;
  transform: scaleX(var(--light, 0));
  box-shadow: 0 0 10px var(--amber);
}
.hero__hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: calc(1 - var(--p) * 12);
}
.hero__hint i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ink-2), transparent);
  animation: hint 2.2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes hint {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}
.hero__toggle {
  position: absolute;
  z-index: 7;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

/* Mode sans animation : héro sur un seul écran, bouton pour allumer */
.hero.is-static {
  height: auto;
}
.hero.is-static .hero__stage {
  position: relative;
  height: 100svh;
  min-height: 620px;
}
.hero.is-static .hero__hint,
.hero.is-static .hero__captions {
  display: none;
}

/* ==========================================================================
   PRINCIPE
   ========================================================================== */

.principle__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.torch {
  margin: 0;
  padding: 14px;
  background: var(--night-1);
  border-radius: var(--radius-l);
  color: var(--cream);
  box-shadow: 0 40px 80px -40px rgba(27, 24, 21, 0.5);
}
.torch__stage {
  position: relative;
  border-radius: calc(var(--radius-l) - 8px);
  overflow: hidden;
  background: radial-gradient(80% 70% at 50% 50%, #1b1714, #0b0a09);
  cursor: none;
  touch-action: none;
}
.torch__stage canvas {
  width: 100%;
  aspect-ratio: 1.36;
}
.torch__cut {
  position: absolute;
  left: 8%;
  right: 8%;
  top: var(--cut, 50%);
  height: 0;
  border-top: 1px dashed rgba(255, 212, 154, 0.55);
  opacity: 0.8;
  pointer-events: none;
}
.torch__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  margin: 0;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.6);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  color: var(--cream-2);
  white-space: nowrap;
  transition: opacity 0.6s;
  pointer-events: none;
}
.torch.is-touched .torch__hint {
  opacity: 0;
}
.torch__section {
  padding: 16px 10px 4px;
}
.torch__legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--cream-3);
  letter-spacing: 0.04em;
}
.torch__scale {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.torch__scale i {
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--ivory-1);
  border-radius: 2px;
}
.torch__scale i.thick {
  height: 10px;
  margin-left: 6px;
}
.torch__svg {
  width: 100%;
  height: 130px;
  margin-top: 8px;
}
.torch__profile {
  fill: #e9e2d5;
  stroke: #fffaf0;
  stroke-width: 0.6;
}
.torch figcaption {
  padding: 8px 10px 4px;
  font-size: 0.8rem;
  color: var(--cream-3);
}
.principle__facts {
  display: grid;
  gap: 30px;
}
.fact {
  position: relative;
  padding-left: 58px;
}
.fact__num {
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ember);
}
.fact h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.fact p {
  margin: 0;
  color: var(--ink-2);
}
.thickness {
  margin-top: 6px;
  padding: 18px;
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
}
.thickness__bar {
  display: block;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff7e6, #f1c98c 30%, #9b5a26 70%, #2b170b);
  clip-path: polygon(0 78%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.thickness__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ==========================================================================
   COLLECTION
   ========================================================================== */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.products__loading {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--cream-3);
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--night-2), var(--night-1));
  border: 1px solid var(--line-n);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.6s, box-shadow 0.6s var(--ease);
}
.product:hover,
.product.is-lit {
  border-color: rgba(255, 212, 154, 0.28);
  box-shadow: 0 30px 80px -30px rgba(255, 170, 80, 0.35);
}
.product:hover {
  transform: translateY(-4px);
}
.product__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(70% 60% at 50% 50%, #221d19, #0d0c0a 80%);
  overflow: hidden;
}
.product__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 40% at 50% 48%, rgba(255, 196, 120, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.product__visual canvas,
.product__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.9s var(--ease);
}
.product__visual img.product__photo {
  object-fit: cover;
}
.product__visual .is-lit-layer {
  opacity: 0;
}
.product:hover .product__visual::before,
.product.is-lit .product__visual::before {
  opacity: 1;
}
.product:hover .is-lit-layer,
.product.is-lit .is-lit-layer {
  opacity: 1;
}
.product:hover .is-unlit-layer,
.product.is-lit .is-unlit-layer {
  opacity: 0;
}
.product__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
}
.product__state {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.product__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px 24px 24px;
}
.product__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.product h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}
.product__price {
  font-size: 0.9rem;
  color: var(--cream-2);
  white-space: nowrap;
}
.product__price strong {
  color: var(--glow);
  font-weight: 600;
}
.product p {
  margin: 0;
  color: var(--cream-2);
  font-size: 0.92rem;
}
.product__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.product__sizes span {
  padding: 3px 10px;
  border: 1px solid var(--line-n);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--cream-3);
}
.product .btn {
  margin-top: 12px;
}

/* ==========================================================================
   CONFIGURATEUR
   ========================================================================== */

.configurator {
  background:
    radial-gradient(60% 50% at 25% 30%, rgba(255, 180, 90, 0.07), transparent 70%),
    var(--night-0);
}
.cfg {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.cfg__preview {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.cfg__stage {
  position: relative;
  border-radius: var(--radius-l);
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(255, 190, 110, var(--stage-glow, 0.1)), transparent 72%),
    linear-gradient(180deg, #16130f, #0c0b09);
  border: 1px solid var(--line-n);
  overflow: hidden;
  touch-action: none;
}
.cfg__stage canvas {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  max-height: calc(100vh - var(--nav-h) - 140px);
}
.cfg__stage.has-photo canvas {
  cursor: grab;
}
.cfg__stage.is-dragging canvas {
  cursor: grabbing;
}
.cfg__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  color: var(--cream-3);
  pointer-events: none;
}
.cfg__empty p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.cfg__empty-plate {
  width: 120px;
  height: 150px;
  border-radius: 6px;
  background: linear-gradient(160deg, #3a342d, #221e1a);
  box-shadow: 6px 6px 0 #16130f, 0 0 60px rgba(255, 190, 110, 0.08);
  animation: plate-wait 3.2s ease-in-out infinite;
}
@keyframes plate-wait {
  50% {
    box-shadow: 6px 6px 0 #16130f, 0 0 80px rgba(255, 190, 110, 0.22);
  }
}
.cfg__drag {
  position: absolute;
  left: 50%;
  bottom: 14px;
  margin: 0;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.6);
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  color: var(--cream-2);
  white-space: nowrap;
  pointer-events: none;
}
.cfg__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cfg__note {
  margin: 0;
  font-size: 0.76rem;
  color: var(--cream-3);
}

.switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-n);
  background: var(--night-2);
}
.switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--cream-2);
  transition: color 0.4s;
}
.switch button[aria-checked='true'] {
  color: var(--ink);
}
.switch__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--ivory-1);
  transition: transform 0.5s var(--ease), background 0.5s, box-shadow 0.5s;
}
.switch.is-on .switch__thumb {
  transform: translateX(100%);
  background: linear-gradient(180deg, #ffe0b0, #f3b264);
  box-shadow: 0 0 24px rgba(255, 180, 90, 0.6);
}

.cfg__steps {
  display: grid;
  gap: 14px;
}
.step {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-n);
  background: linear-gradient(180deg, var(--night-2), var(--night-1));
  padding: 22px clamp(18px, 2.4vw, 28px) 24px;
  overflow: hidden;
  transition: border-color 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.step.is-done {
  border-color: rgba(255, 212, 154, 0.22);
}
.step__head {
  display: flex;
  gap: 16px;
  align-items: center;
}
.step__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.step__sub {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--cream-3);
}
.step__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-n);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream-2);
  transition: all 0.8s var(--ease);
}
.step.is-done .step__num,
.step.is-current .step__num {
  border-color: transparent;
  background: radial-gradient(circle at 40% 35%, #fff6e4, #f2b465);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(255, 190, 110, 0.55);
}
.step__body {
  margin-top: 20px;
  transition: filter 1s var(--ease), opacity 1s var(--ease);
}
/* Étapes verrouillées : une plaque éteinte, floue, qui s'illumine une fois débloquée */
.step__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, rgba(40, 35, 30, 0.55), rgba(20, 18, 15, 0.7));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease);
}
.step__lock span {
  margin-top: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-n);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--cream-3);
  background: rgba(10, 9, 8, 0.5);
}
.step.is-locked .step__lock {
  opacity: 1;
  pointer-events: auto;
}
.step.is-locked .step__body {
  filter: blur(7px) grayscale(1);
  opacity: 0.35;
  max-height: 150px;
  overflow: hidden;
  user-select: none;
}
.step.is-locked .step__head {
  opacity: 0.6;
}
.step::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 214, 160, 0.28) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.step.is-unlocking::after {
  animation: light-sweep 1.4s var(--ease) forwards;
}
.step.is-unlocking {
  box-shadow: 0 0 0 1px rgba(255, 212, 154, 0.3), 0 0 60px -10px rgba(255, 180, 90, 0.4);
}
@keyframes light-sweep {
  to {
    transform: translateX(100%);
  }
}

.drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 34px 20px;
  border: 1.5px dashed rgba(246, 241, 231, 0.22);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.drop:hover,
.drop.is-over {
  border-color: var(--amber);
  background: rgba(255, 190, 110, 0.06);
}
.drop svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.5;
  stroke-linejoin: round;
  margin-bottom: 6px;
}
.drop strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
}
.drop span {
  font-size: 0.84rem;
  color: var(--cream-3);
}
.photo-info {
  display: grid;
  gap: 18px;
}
.photo-info__row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
}
.photo-info__row img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}
.photo-info__name {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-info__quality {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--cream-3);
}
.photo-info__quality b {
  font-weight: 600;
}
.q-good {
  color: var(--ok);
}
.q-mid {
  color: var(--warn);
}
.q-low {
  color: var(--err);
}
.sliders {
  display: grid;
  gap: 12px;
}
.range {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--cream-2);
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber), rgba(246, 241, 231, 0.2));
}
input[type='range']::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: rgba(246, 241, 231, 0.2);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6e4, #f2b465);
  box-shadow: 0 0 12px rgba(255, 190, 110, 0.6);
  border: 0;
}
input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6e4, #f2b465);
  border: 0;
}

.field-label {
  margin: 18px 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.format {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-n);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.format svg {
  width: 34px;
  height: 34px;
  fill: rgba(246, 241, 231, 0.1);
  stroke: var(--cream-2);
  stroke-width: 1.4;
}
.format b {
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.2;
}
.format small {
  font-size: 0.74rem;
  color: var(--cream-3);
}
.format:hover {
  border-color: rgba(255, 212, 154, 0.35);
}
.format[aria-checked='true'] {
  border-color: var(--amber);
  background: rgba(255, 190, 110, 0.08);
  box-shadow: 0 0 30px -10px rgba(255, 180, 90, 0.5);
}
.format[aria-checked='true'] svg {
  fill: rgba(255, 212, 154, 0.35);
  stroke: var(--glow);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-n);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color 0.3s, background-color 0.3s;
}
.chip small {
  color: var(--cream-3);
}
.chip:hover {
  border-color: rgba(255, 212, 154, 0.4);
}
.chip[aria-checked='true'] {
  border-color: var(--amber);
  background: rgba(255, 190, 110, 0.12);
}
.chip[aria-checked='true'] small {
  color: var(--glow);
}
.extras {
  display: grid;
  gap: 8px;
}
.extra {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-n);
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.extra:hover {
  border-color: rgba(255, 212, 154, 0.35);
}
.extra.is-checked {
  border-color: var(--amber);
  background: rgba(255, 190, 110, 0.07);
}
.extra input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--amber);
}
.extra__label {
  font-size: 0.92rem;
}
.extra__price {
  font-size: 0.86rem;
  color: var(--glow);
  white-space: nowrap;
}
.extra__text {
  grid-column: 1 / -1;
}
.extra__text input {
  width: 100%;
}
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.qty-row .field-label {
  margin: 0;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-n);
  border-radius: 999px;
}
.qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 1.1rem;
}
.qty output {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}
.recap {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}
.recap div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.recap dt {
  color: var(--cream-3);
}
.recap dd {
  margin: 0;
  text-align: right;
}
.recap__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-n);
}
.recap__total strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--glow);
}

/* ==========================================================================
   ATELIER
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process__step {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--line-d);
  counter-increment: step;
}
.process__step::before {
  content: '0' counter(step);
  position: absolute;
  top: 18px;
  right: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-3);
}
.process__step svg {
  width: 88px;
  height: 88px;
  margin: 0 0 16px -8px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.draw * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease-io);
}
.is-in .draw * {
  stroke-dashoffset: 0;
}
.is-in .draw *:nth-child(2) {
  transition-delay: 0.25s;
}
.is-in .draw *:nth-child(3) {
  transition-delay: 0.5s;
}
.is-in .draw *:nth-child(4) {
  transition-delay: 0.75s;
}
.process__step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.35rem;
}
.process__step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--cream);
}
.stats div {
  display: grid;
  gap: 4px;
}
.stats strong {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--glow);
  white-space: nowrap;
}
.stats small {
  font-size: 0.45em;
  color: var(--cream-2);
}
.stats span {
  font-size: 0.86rem;
  color: var(--cream-2);
}

/* ==========================================================================
   GALERIE
   ========================================================================== */

.tiles {
  columns: 4 240px;
  column-gap: clamp(12px, 1.6vw, 22px);
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(12px, 1.6vw, 22px);
  break-inside: avoid;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  background: radial-gradient(70% 60% at 50% 45%, #1f1a16, #0c0b09 80%);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}
.tile__visual {
  position: relative;
}
.tile__visual canvas,
.tile__visual img {
  width: 100%;
  height: auto;
  transition: opacity 1s var(--ease);
}
.tile__visual > :nth-child(2) {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.tile:hover .tile__visual > :nth-child(2),
.tile.is-lit .tile__visual > :nth-child(2) {
  opacity: 1;
}
.tile__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--line-n);
  border-radius: var(--radius);
  pointer-events: none;
}
.tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(8, 7, 6, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.tile:hover figcaption,
.tile.is-lit figcaption {
  opacity: 1;
  transform: none;
}
.tile figcaption b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
}
.tile figcaption span {
  font-size: 0.78rem;
  color: var(--cream-3);
}

/* ==========================================================================
   FAQ & CONTACT
   ========================================================================== */

.faq__list {
  border-top: 1px solid var(--line-d);
}
.faq details {
  border-bottom: 1px solid var(--line-d);
}
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 26px;
  max-width: 70ch;
  color: var(--ink-2);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact__meta {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--cream-2);
}
.contact__meta a {
  color: var(--glow);
  text-decoration: none;
}

/* --- Formulaires ------------------------------------------------------------- */

.form {
  display: grid;
  gap: 16px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--cream-2);
}
.field > span {
  font-weight: 500;
}
.field input,
.field select,
.field textarea,
.extra__text input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-n);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream);
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f6f1e7' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option {
  color: #111;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.extra__text input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255, 190, 110, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 190, 110, 0.12);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--err);
}
.form-msg {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--cream-2);
}
.form-msg.is-error {
  color: var(--err);
}
.form-msg.is-ok {
  color: var(--ok);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */

.footer {
  background: var(--night-1);
  color: var(--cream-2);
  padding: 72px 0 28px;
  border-top: 1px solid var(--line-n);
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer .brand {
  color: var(--cream);
}
.footer__brand p {
  max-width: 34ch;
  margin: 16px 0 0;
}
.footer__col {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer__col h4 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-3);
  font-weight: 600;
}
.footer__col a {
  text-decoration: none;
  width: fit-content;
}
.footer__col a:hover {
  color: var(--cream);
}
.footer__col p {
  margin: 0;
}
.footer__pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-n);
  border-radius: 999px;
  color: var(--glow);
  font-weight: 600;
  font-size: 0.84rem;
}
.footer__pro::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line-n);
  font-size: 0.8rem;
  color: var(--cream-3);
}
.footer__bottom p {
  margin: 0;
}

/* ==========================================================================
   PANIER (tiroir), NOTIFICATIONS, LUMIÈRE DU CURSEUR
   ========================================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--night-1);
  color: var(--cream);
  border-left: 1px solid var(--line-n);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
}
.drawer.is-open {
  pointer-events: auto;
}
.drawer.is-open .drawer__backdrop {
  opacity: 1;
}
.drawer.is-open .drawer__panel {
  transform: none;
}
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-n);
}
.drawer__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}
.drawer__empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 60px 0;
  text-align: center;
  color: var(--cream-3);
}
.drawer__empty .cfg__empty-plate {
  width: 80px;
  height: 100px;
}
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-n);
}
.cart-item__thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: contain;
  background: radial-gradient(circle, #2a221b, #0e0c0a);
}
.cart-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
}
.cart-item p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--cream-3);
}
.cart-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.cart-item .qty button {
  width: 32px;
  height: 32px;
}
.cart-item__price {
  font-weight: 600;
  color: var(--glow);
}
.cart-item__remove {
  margin-top: 6px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--cream-3);
  text-decoration: underline;
}
.drawer__foot {
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-n);
}
.drawer__line {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}
.drawer__ship {
  margin: 6px 0 16px;
  font-size: 0.82rem;
  color: var(--cream-3);
}

.toasts {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.9rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.5s var(--ease);
}
.toast.is-error {
  background: #3a1a14;
  color: #ffd9cf;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 130, 0.07), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  mix-blend-mode: screen;
}
.cursor-light.is-on {
  opacity: 1;
}

/* ==========================================================================
   PAGES SECONDAIRES (commande, merci, mentions)
   ========================================================================== */

.page-simple .nav {
  background: rgba(12, 11, 9, 0.8);
  backdrop-filter: blur(14px);
  color: var(--cream);
  box-shadow: 0 1px 0 var(--line-n);
}
.page-simple .nav .brand__plate {
  fill: var(--cream);
}
.page-main {
  padding: calc(var(--nav-h) + 48px) 0 96px;
  min-height: 80vh;
}
.page-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.page-title em {
  font-style: italic;
  color: var(--glow);
  font-weight: 300;
}
.panel {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-l);
  border: 1px solid var(--line-n);
  background: linear-gradient(180deg, var(--night-2), var(--night-1));
}
.panel h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
}
.notice {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 212, 154, 0.3);
  background: rgba(255, 190, 110, 0.07);
  color: var(--cream);
  font-size: 0.92rem;
}
.notice.is-error {
  border-color: rgba(224, 113, 93, 0.5);
  background: rgba(224, 113, 93, 0.08);
}

.checkout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 32px;
}
.checkout .form {
  gap: 22px;
}
.ship-options {
  display: grid;
  gap: 8px;
}
.ship-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-n);
  cursor: pointer;
}
.ship-option:has(input:checked) {
  border-color: var(--amber);
  background: rgba(255, 190, 110, 0.07);
}
.ship-option input {
  accent-color: var(--amber);
  width: 18px;
  height: 18px;
}
.ship-option small {
  display: block;
  color: var(--cream-3);
}
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.88rem;
  color: var(--cream-2);
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--amber);
}
.check a {
  color: var(--glow);
}
.summary {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.summary__items {
  display: grid;
  gap: 4px;
}
.summary__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--cream-2);
}
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-n);
}
.summary__total strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--glow);
}
.pay-note {
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: var(--cream-3);
}

.thanks {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.thanks__plate {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-l);
  background: radial-gradient(60% 55% at 50% 50%, rgba(255, 190, 110, 0.18), transparent 70%), var(--night-1);
  border: 1px solid var(--line-n);
  overflow: hidden;
}
.thanks__plate img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  animation: light-up 3s var(--ease) both 0.3s;
}
@keyframes light-up {
  from {
    filter: brightness(0.25) saturate(0);
  }
}
.timeline {
  display: grid;
  gap: 0;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 0 0 18px 30px;
  color: var(--cream-3);
  font-size: 0.92rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--cream-3);
}
.timeline li::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--line-n);
}
.timeline li:last-child::after {
  display: none;
}
.timeline li.is-done {
  color: var(--cream);
}
.timeline li.is-done::before {
  border-color: transparent;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.legal {
  max-width: 820px;
}
.legal h2 {
  margin: 56px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
}
.legal h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}
.legal p,
.legal li {
  color: var(--cream-2);
}
.legal .placeholder {
  color: var(--warn);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
  }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    background: var(--night-0);
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 1.9rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
  }
  .nav.menu-open {
    color: var(--cream);
    background: transparent !important;
    box-shadow: none !important;
  }
  .nav.menu-open .brand__plate {
    fill: var(--cream);
  }
  .menu-btn {
    display: block;
  }
  .section-head--split {
    grid-template-columns: 1fr;
  }
  .section-head--split .lede {
    justify-self: start;
  }
  .principle__grid,
  .cfg,
  .contact__grid,
  .checkout,
  .thanks {
    grid-template-columns: 1fr;
  }
  .cfg__preview {
    position: sticky;
    top: calc(var(--nav-h) + 4px);
    z-index: 5;
  }
  .cfg__stage canvas {
    aspect-ratio: 1.35;
    max-height: 38vh;
  }
  .cfg__toolbar {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(10, 9, 8, 0.8);
    backdrop-filter: blur(10px);
  }
  .cfg__note {
    display: none;
  }
  .summary {
    position: static;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero__copy {
    max-width: calc(100% - 2 * var(--gutter));
  }
  .hero__captions {
    bottom: clamp(24px, 5vh, 60px);
  }
}

@media (max-width: 640px) {
  .products {
    grid-template-columns: 1fr;
  }
  .formats {
    grid-template-columns: repeat(3, 1fr);
  }
  .process {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__meter,
  .loupe-label {
    display: none;
  }
  .brand__name {
    font-size: 1.1rem;
  }
  .tiles {
    columns: 2 140px;
  }
  .range {
    grid-template-columns: 80px 1fr;
  }
  .toasts {
    top: calc(var(--nav-h) + 10px);
    bottom: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Aperçu vide quand WebGL dessine déjà une plaque vierge */
.cfg__stage.has-gl .cfg__empty {
  place-content: end center;
  padding-bottom: 22px;
}
.cfg__stage.has-gl .cfg__empty-plate {
  display: none;
}
.cfg__stage:not(.has-photo) {
  cursor: pointer;
}
