/* ==========================================================================
   Isabelle Huchard — feuille de style
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --ivory: #f4efe7;
  --paper: #faf7f2;
  --sand: #e9e1d4;
  --ink: #1c1916;
  --ink-2: #4b443d;
  --muted: #8a8077;
  --line: rgba(28, 25, 22, 0.14);
  --bronze: #8e6236;
  --bronze-2: #b48a5c;
  --night: #181614;
  --night-2: #23201d;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --header-h: 76px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 1px solid var(--bronze); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7.4vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 300; color: var(--bronze); }

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  margin: 0;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-2);
  margin: 0;
}
.body-copy { color: var(--ink-2); max-width: 46ch; margin: 0; }
.body-copy + .body-copy { margin-top: 1.1em; }

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- Mise en page ---------- */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 12vw, 180px) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 120px) 0; }
.section--night { background: var(--night); color: var(--paper); }
.section--night .eyebrow { color: rgba(250, 247, 242, .6); }
.section--night .body-copy, .section--night .lead { color: rgba(250, 247, 242, .74); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

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

.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 34px;
  background: var(--bg); color: var(--fg);
  font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  border: 1px solid var(--bg);
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bronze);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--bronze); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { color: var(--paper); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .arrow { width: 18px; height: 10px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  padding: 6px 0;
}
.link-line::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .6s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); }

/* ---------- En-tête ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease), color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 231, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container {
  height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.site-header .wordmark { text-align: center; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); align-items: center; }
.nav a, .header-actions > * {
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }

.cart-toggle { display: inline-flex; align-items: center; gap: 10px; }
.cart-toggle svg { width: 19px; height: 19px; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  font-size: 10px; letter-spacing: 0; line-height: 20px; text-align: center;
  transition: transform .5s var(--ease);
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.menu-toggle { display: none; width: 34px; height: 34px; position: relative; }
.menu-toggle span {
  position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-open .menu-toggle span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

.site-header--over { color: var(--paper); }
.site-header--over.is-scrolled { color: var(--ink); }
.site-header--over:not(.is-scrolled) .cart-count { background: var(--paper); color: var(--ink); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--night); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; }
.mobile-menu a {
  font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 11vw, 64px); line-height: 1.15;
  display: block; overflow: hidden;
}
.mobile-menu a span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.menu-open .mobile-menu a span { transform: translateY(0); }
.menu-open .mobile-menu li:nth-child(2) a span { transition-delay: .06s; }
.menu-open .mobile-menu li:nth-child(3) a span { transition-delay: .12s; }
.menu-open .mobile-menu li:nth-child(4) a span { transition-delay: .18s; }
.menu-open .mobile-menu li:nth-child(5) a span { transition-delay: .24s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu .mobile-menu__foot { margin-top: 48px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }

@media (max-width: 960px) {
  .site-header .container { grid-template-columns: auto 1fr auto; }
  .site-header .wordmark { text-align: left; font-size: 11px; letter-spacing: .32em; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions .hide-sm { display: none; }
  .header-actions { gap: 18px; }
}

/* ---------- Chargement ---------- */

.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--night); color: var(--paper);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__mark { width: 92px; height: 92px; }
.loader__mark path, .loader__mark circle {
  fill: none; stroke: var(--paper); stroke-width: 1;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw 1.6s var(--ease) forwards;
}
.loader__mark text { fill: var(--paper); font-family: var(--serif); font-size: 34px; font-style: italic; opacity: 0; animation: fade .8s .7s forwards; }
.loader__word { margin-top: 26px; font-size: 10px; letter-spacing: .5em; text-transform: uppercase; opacity: 0; animation: fade .8s .9s forwards; text-align: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Apparitions au défilement ---------- */

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* clip-path sur l'image (et non le conteneur) : l'IntersectionObserver ignore sinon la cible */
.reveal-img { overflow: hidden; }
.reveal-img img { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.4s var(--ease-in-out), transform 2s var(--ease); }
.reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }

.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .1s; }
.split-line:nth-child(3) > span { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img img, .split-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .loader { display: none; }
}

/* ---------- Héros ---------- */

.hero {
  position: relative; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 64px;
  display: flex; align-items: center; overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__copy .eyebrow { margin-bottom: clamp(24px, 3vw, 40px); }
.hero__copy .lead { margin: clamp(26px, 3vw, 40px) 0 clamp(32px, 4vw, 52px); max-width: 30ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }

.hero__visual { position: relative; justify-self: end; width: min(100%, 520px); }
.arch {
  position: relative; aspect-ratio: 4 / 5.4; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--sand);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.hero__visual .arch { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); transition: clip-path 1.6s .3s var(--ease-in-out); }
.is-loaded .hero__visual .arch { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }

.badge-rotate {
  position: absolute; left: -54px; bottom: 12%; width: 128px; height: 128px; z-index: 3;
  background: var(--ivory); border-radius: 50%; display: grid; place-items: center;
}
.badge-rotate svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-rotate text { font-size: 9.6px; letter-spacing: .32em; text-transform: uppercase; fill: var(--ink); font-family: var(--sans); font-weight: 500; }
.badge-rotate .badge-rotate__center { position: absolute; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--bronze); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge-rotate svg { animation: none; } }

.hero__caption {
  position: absolute; right: 0; bottom: -34px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 1px; height: 54px; background: var(--line); overflow: hidden;
}
.scroll-cue::after {
  content: ''; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--ink);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue { to { top: 100%; } }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); }
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; width: min(86%, 420px); margin-top: 24px; }
  .badge-rotate { left: -28px; width: 100px; height: 100px; }
  .scroll-cue { display: none; }
}

/* ---------- Bandeau défilant ---------- */

.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0; background: var(--ivory);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); font-style: italic; font-weight: 300;
  padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.marquee__track span::after { content: '✦'; font-style: normal; font-size: .4em; color: var(--bronze); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Manifeste ---------- */

.manifesto { text-align: center; }
.manifesto .eyebrow { margin-bottom: 40px; }
.manifesto__text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.7vw, 56px); line-height: 1.22;
  max-width: 22ch; margin: 0 auto; letter-spacing: -0.005em;
}
.manifesto__text .w { opacity: .14; transition: opacity .4s linear; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__sign { margin-top: 48px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bronze); }

/* ---------- Savoir-faire (images collantes) ---------- */

.craft { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.craft__media { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.craft__media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 1.8s var(--ease); }
.craft__media figure.is-active { opacity: 1; transform: scale(1); }
.craft__media img { width: 100%; height: 100%; object-fit: cover; }
.craft__media figcaption {
  position: absolute; left: 20px; bottom: 18px; color: var(--paper); font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}
.craft__progress { position: absolute; right: 20px; top: 20px; display: flex; gap: 6px; z-index: 2; }
.craft__progress i { width: 22px; height: 2px; background: rgba(255, 255, 255, .4); transition: background .5s; }
.craft__progress i.on { background: #fff; }
.craft__intro { margin-bottom: clamp(48px, 8vw, 120px); }
.craft__intro .h2 { margin: 24px 0 28px; }
.step { padding: clamp(40px, 7vw, 96px) 0; border-top: 1px solid var(--line); min-height: 52vh; }
.step__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--bronze); display: block; margin-bottom: 18px; }
.step .h3 { margin-bottom: 20px; }
.step__media-sm { display: none; }

@media (max-width: 960px) {
  .craft { grid-template-columns: 1fr; }
  .craft__media { display: none; }
  .step { min-height: 0; }
  .step__media-sm { display: block; margin-top: 28px; aspect-ratio: 4 / 3; overflow: hidden; }
  .step__media-sm img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- Héritage ---------- */

.heritage { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.heritage__img { position: relative; }
.heritage__img .frame { aspect-ratio: 690 / 531; overflow: hidden; }
.heritage__img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) contrast(1.05); }
.heritage__img figcaption { margin-top: 16px; font-size: 11px; letter-spacing: .14em; color: rgba(250, 247, 242, .5); font-style: italic; font-family: var(--serif); font-size: 15px; letter-spacing: .01em; }
.heritage .h2 { margin: 24px 0 32px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid rgba(250, 247, 242, .16); }
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; display: block; }
.stat__label { display: block; margin-top: 12px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(250, 247, 242, .6); }
@media (max-width: 960px) { .heritage { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } .stats > :last-child { grid-column: 1 / -1; } }

/* ---------- Cartes produit ---------- */

.product-card { position: relative; display: block; text-align: left; width: 100%; }
.product-card__visual { position: relative; overflow: hidden; }
.product-card__media {
  position: relative; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden;
  display: grid; place-items: center;
}
.product-card__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .7), transparent 60%);
}
.product-card__media .piece, .product-card__media img {
  width: 88%; height: auto; transition: transform 1.2s var(--ease);
}
.product-card__media img.photo { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .piece { transform: scale(1.06) rotate(-2deg); }
.product-card__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
  background: var(--ivory); padding: 6px 10px;
}
.product-card__quick {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  min-height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
  transform: translateY(calc(100% + 20px)); transition: transform .6s var(--ease), background .4s;
}
.product-card__quick:hover { background: var(--bronze); }
.product-card:hover .product-card__quick, .product-card:focus-within .product-card__quick { transform: none; }
@media (hover: none) { .product-card__quick { display: none; } }
.product-card__info { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px 0; }
.product-card__name { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin: 0; font-weight: 400; }
.product-card__meta { font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.product-card__price { font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.product-card__dots { display: flex; gap: 6px; margin-top: 12px; }
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

/* ---------- Carrousel ---------- */

.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.rail-head .h2 { margin-top: 20px; }
.rail-controls { display: flex; gap: 10px; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s;
}
.rail-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rail-btn svg { width: 16px; height: 16px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 360px); gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) 8px; margin: 0 calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter);
  cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }
.rail-progress { height: 1px; background: var(--line); margin-top: 40px; position: relative; }
.rail-progress i { position: absolute; left: 0; top: 0; height: 1px; background: var(--ink); width: 20%; transition: transform .2s linear; }

/* ---------- Matières ---------- */

.materials { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: clamp(48px, 6vw, 80px); }
.material { text-align: center; display: block; }
.material__swatch { aspect-ratio: 1; border-radius: 50%; overflow: hidden; transition: transform 1s var(--ease), box-shadow 1s var(--ease); box-shadow: 0 18px 40px -24px rgba(40, 25, 10, .5); }
.material:hover .material__swatch { transform: translateY(-10px) scale(1.04); box-shadow: 0 30px 50px -24px rgba(40, 25, 10, .55); }
.material__swatch svg { width: 100%; height: 100%; transition: transform 6s linear; }
.material:hover .material__swatch svg { transform: rotate(40deg) scale(1.2); }
.material__name { display: block; margin-top: 20px; font-family: var(--serif); font-size: 21px; }
.material__count { display: block; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 960px) { .materials { grid-template-columns: repeat(3, 1fr); row-gap: 40px; } }

/* ---------- En salon ---------- */

.salon { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.salon__imgs { position: relative; padding-bottom: 18%; }
.salon__imgs .a { width: 78%; aspect-ratio: 4 / 5; }
.salon__imgs .b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 10px solid var(--ivory); }
.salon__imgs .reveal-img img { width: 100%; height: 100%; object-fit: cover; }
.salon .h2 { margin: 24px 0 28px; }
.salons-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.salons-list li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.salons-list strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.salons-list span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.salon__pro { margin-top: 44px; padding: 32px; background: var(--paper); display: grid; gap: 16px; }
.salon__pro p { margin: 0; color: var(--ink-2); }
@media (max-width: 960px) { .salon { grid-template-columns: 1fr; } }

/* ---------- Bande pleine image ---------- */

.band { position: relative; height: clamp(420px, 80vh, 820px); overflow: hidden; display: grid; place-items: center; color: var(--paper); text-align: center; }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 55%, rgba(24, 22, 20, .62), rgba(24, 22, 20, .32)); }
.band .display em { color: #e9cfa8; }
.band__copy { position: relative; z-index: 2; padding: 0 var(--gutter); }
.band__copy .display { font-size: clamp(40px, 6vw, 96px); }
.band__copy .eyebrow { color: rgba(250, 247, 242, .8); margin-bottom: 28px; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
.contact .h2 { margin: 24px 0 28px; }
.contact-details { margin-top: 40px; display: grid; gap: 20px; }
.contact-details dt { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; }
.form { display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 26px 0 12px; font-size: 16px; border-radius: 0; outline: none;
  transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field label {
  position: absolute; left: 0; top: 26px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  pointer-events: none; transition: transform .4s var(--ease), font-size .4s var(--ease), color .4s;
  transform-origin: left;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-22px) scale(.82); color: var(--ink-2); }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field input:focus ~ .field__line, .field textarea:focus ~ .field__line { transform: scaleX(1); }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  border: 1px solid var(--line); padding: 12px 18px; cursor: pointer;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: all .4s var(--ease);
}
.choice input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + label { outline: 1px solid var(--bronze); outline-offset: 3px; }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--night); color: var(--paper); padding: clamp(72px, 9vw, 130px) 0 36px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: rgba(250, 247, 242, .5); font-weight: 500; margin: 0 0 22px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(250, 247, 242, .82); transition: color .3s; }
.footer-grid a:hover { color: var(--bronze-2); }
.footer-tag { font-family: var(--serif); font-size: 26px; font-weight: 300; line-height: 1.3; max-width: 18ch; margin: 22px 0 0; color: rgba(250, 247, 242, .82); }
.footer-giant {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: .8;
  font-size: clamp(48px, 12.6vw, 196px); white-space: nowrap; margin: clamp(64px, 8vw, 120px) 0 28px;
  color: transparent; -webkit-text-stroke: 1px rgba(250, 247, 242, .22);
  text-align: center;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; letter-spacing: .14em; color: rgba(250, 247, 242, .5); border-top: 1px solid rgba(250, 247, 242, .12); padding-top: 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Boutique ---------- */

.page-head { padding: calc(var(--header-h) + clamp(48px, 7vw, 110px)) 0 clamp(40px, 5vw, 72px); }
.page-head .display { margin-top: 22px; }
.page-head .lead { margin-top: 28px; max-width: 46ch; }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(244, 239, 231, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: top .6s var(--ease);
}
.header-hidden .toolbar { top: 0; }
.toolbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.tabs { display: flex; gap: clamp(14px, 2.6vw, 36px); flex-wrap: wrap; }
.tab { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding: 8px 0; position: relative; transition: color .3s; }
.tab sup { font-size: 9px; letter-spacing: 0; margin-left: 3px; }
.tab[aria-pressed="true"], .tab:hover { color: var(--ink); }
.tab::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transition: transform .5s var(--ease); transform-origin: left; }
.tab[aria-pressed="true"]::after { transform: scaleX(1); }
.toolbar__right { display: flex; align-items: center; gap: 22px; }
.select { position: relative; }
.select select {
  border: 0; background: transparent; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  padding: 8px 22px 8px 0; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.select::after { content: ''; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 7px 12px 7px 8px; border-radius: 40px;
  font-size: 11px; letter-spacing: .06em; transition: all .4s var(--ease);
}
.chip .dot { width: 16px; height: 16px; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.chip:hover { border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 28px); padding: clamp(40px, 5vw, 72px) 0 clamp(80px, 10vw, 140px); }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } .product-card__name { font-size: 18px; } .product-card__price { font-size: 17px; } .product-card__info { flex-direction: column; gap: 4px; } }
.grid .product-card { animation: cardIn .9s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px); } }
.empty { grid-column: 1 / -1; text-align: center; padding: 80px 0; color: var(--muted); font-family: var(--serif); font-size: 24px; }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 56px 0; border-top: 1px solid var(--line); }
.promise div { display: grid; gap: 8px; }
.promise strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.promise span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr 1fr; } }

/* ---------- Fiche produit (dialogue) ---------- */

.pdp {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  visibility: hidden; pointer-events: none;
}
.pdp.is-open { visibility: visible; pointer-events: auto; }
.pdp__backdrop { position: absolute; inset: 0; background: rgba(24, 22, 20, .5); opacity: 0; transition: opacity .6s var(--ease); }
.pdp.is-open .pdp__backdrop { opacity: 1; }
.pdp__panel {
  position: relative; width: min(1120px, 100%); max-height: calc(100svh - 48px); overflow: auto;
  background: var(--ivory); display: grid; grid-template-columns: 1.1fr 1fr;
  opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.pdp.is-open .pdp__panel { opacity: 1; transform: none; }
.pdp__media { background: var(--paper); display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); min-height: 420px; position: relative; }
.pdp__media .piece { width: 100%; max-width: 480px; animation: float 6s ease-in-out infinite; }
.pdp__media img.photo { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@keyframes float { 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .pdp__media .piece { animation: none; } }
.pdp__body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 26px; }
.pdp__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.02; margin: 10px 0 0; }
.pdp__price { font-family: var(--serif); font-size: 28px; }
.pdp__desc { color: var(--ink-2); margin: 0; }
.pdp__label { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.pdp__label b { color: var(--ink); font-weight: 500; margin-left: 6px; }
.finishes { display: flex; gap: 12px; flex-wrap: wrap; }
.finish {
  width: 44px; height: 44px; border-radius: 50%; padding: 3px; border: 1px solid transparent; transition: border-color .3s, transform .4s var(--ease);
}
.finish:hover { transform: scale(1.08); }
.finish[aria-checked="true"] { border-color: var(--ink); }
.finish svg { width: 100%; height: 100%; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 54px; }
.qty button { width: 46px; height: 100%; font-size: 18px; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp__buy { display: flex; gap: 12px; }
.pdp__buy .btn { flex: 1; }
.pdp__details { border-top: 1px solid var(--line); }
.pdp__details details { border-bottom: 1px solid var(--line); }
.pdp__details summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.pdp__details summary::-webkit-details-marker { display: none; }
.pdp__details summary::after { content: '+'; font-weight: 300; font-size: 18px; line-height: 1; transition: transform .4s var(--ease); }
.pdp__details details[open] summary::after { transform: rotate(45deg); }
.pdp__details p { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.close-btn { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); transition: transform .5s var(--ease); }
.close-btn:hover { transform: rotate(90deg); }
.close-btn svg { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .pdp { padding: 0; align-items: end; }
  .pdp__panel { display: block; max-height: 94svh; transform: translateY(100%); }
  .pdp__media { min-height: 0; height: min(42svh, 360px); padding: 16px; }
  .pdp__media .piece { height: 100%; width: auto; }
  .pdp__buy .btn { padding: 0 18px; letter-spacing: .2em; white-space: nowrap; }
  .pdp__buy .btn .arrow { display: none; }
  .pdp__media .piece { max-width: 340px; }
}

/* ---------- Panier (tiroir) ---------- */

.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(24, 22, 20, .45); opacity: 0; transition: opacity .6s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%);
  background: var(--ivory); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .8s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--serif); font-weight: 300; font-size: 30px; margin: 0; }
.drawer__head .close-btn { position: static; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 28px; }
.drawer__foot { padding: 24px 28px 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.ship-meter { font-size: 12px; color: var(--ink-2); }
.ship-meter__bar { height: 2px; background: var(--line); margin-top: 10px; position: relative; overflow: hidden; }
.ship-meter__bar i { position: absolute; inset: 0; background: var(--bronze); transform-origin: left; transition: transform .8s var(--ease); }
.line-item { display: grid; grid-template-columns: 86px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item__media { aspect-ratio: 1; background: var(--paper); display: grid; place-items: center; }
.line-item__media .piece { width: 92%; }
.line-item__media img { width: 100%; height: 100%; object-fit: cover; }
.line-item__name { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.line-item__meta { font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-top: 2px; }
.line-item__qty { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
.line-item__qty button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; line-height: 1; }
.line-item__right { text-align: right; display: grid; gap: 10px; justify-items: end; }
.line-item__price { font-family: var(--serif); font-size: 19px; }
.line-item__remove { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.totals { display: grid; gap: 8px; font-size: 13px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--serif); font-size: 24px; padding-top: 8px; }
.cart-empty { text-align: center; padding: 64px 0; }
.cart-empty p { font-family: var(--serif); font-size: 24px; margin: 0 0 24px; }

/* ---------- Commande ---------- */

.checkout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(80px, 10vw, 140px); align-items: start; }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 48px; display: grid; gap: 26px; }
.checkout legend { font-family: var(--serif); font-size: 28px; font-weight: 300; padding: 0; margin-bottom: 8px; display: flex; gap: 14px; align-items: baseline; }
.checkout legend span { font-style: italic; color: var(--bronze); font-size: 20px; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); padding: clamp(24px, 3vw, 40px); }
.summary h2 { font-family: var(--serif); font-weight: 300; font-size: 28px; margin: 0 0 8px; }
.summary .line-item { grid-template-columns: 64px 1fr auto; }
.summary .totals { margin-top: 24px; }
.notice { background: var(--sand); padding: 18px 20px; font-size: 13px; color: var(--ink-2); }
.confirm { text-align: center; max-width: 640px; margin: 0 auto; padding-bottom: 120px; }
.confirm .h2 { margin: 24px 0; }
.confirm pre { text-align: left; white-space: pre-wrap; background: var(--paper); padding: 24px; font-size: 13px; font-family: var(--sans); margin: 32px 0; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }

/* ---------- Pages d'information ---------- */

.legal { max-width: 760px; padding-bottom: 120px; }
.legal h2 { font-family: var(--serif); font-weight: 300; font-size: 34px; margin: 64px 0 16px; scroll-margin-top: calc(var(--header-h) + 80px); }
.legal h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 28px 0 8px; font-weight: 500; }
.legal p, .legal li { color: var(--ink-2); }
.legal mark { background: #f1e2c9; padding: 0 4px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* ---------- Notification ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); padding: 16px 22px; display: flex; gap: 18px; align-items: center;
  font-size: 13px; transition: transform .7s var(--ease); max-width: calc(100% - 32px);
}
.toast:not(.is-on) { visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; }
.toast.is-on { transform: translate(-50%, 0); }
.toast button { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

/* ---------- Curseur ---------- */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink);
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, opacity .4s;
  display: grid; place-items: center; mix-blend-mode: normal; opacity: 0;
}
.cursor span { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); opacity: 0; transition: opacity .3s; font-weight: 500; }
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: rgba(28, 25, 22, .88); }
.cursor.is-big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
