/* Atelier Noir — noir d'encre, laiton champagne, et un seul bleu : celui de l'acier bleui à la flamme. */
:root {
  --noir: #0a0a0b;
  --graphite: #141416;
  --ivoire: #ece6d8;
  --gris: #a29d92;
  --or: #c8a76a;
  --or-clair: #e8d2a0;
  --bleu: #4a6fe0;
  --ligne: rgba(236, 230, 216, .14);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--noir); color: var(--ivoire); font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 4px; }
.defs { position: absolute; width: 0; height: 0; }
.saut { position: absolute; left: 16px; top: -60px; background: var(--ivoire); color: var(--noir); padding: 10px 16px; z-index: 100; }
.saut:focus { top: 12px; }

/* ----- En-tête ----- */
.top { position: fixed; z-index: 50; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: max(18px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 18px max(24px, env(safe-area-inset-left)); transition: transform .5s var(--ease), background .4s; }
.top.plein { background: linear-gradient(#0a0a0bee, #0a0a0b00); }
.top.cache { transform: translateY(-110%); }
.marque { font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .42em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 30px; font-size: 14px; letter-spacing: .06em; }
.top nav a { text-decoration: none; color: var(--gris); transition: color .3s; }
.top nav a:hover { color: var(--ivoire); }

.btn { display: inline-block; padding: 15px 32px; border: 1px solid var(--or); background: var(--or); color: #1a1408; font: 400 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .35s, color .35s, border-color .35s; }
.btn:hover { background: transparent; color: var(--or-clair); }
.btn.ghost { background: transparent; color: var(--ivoire); border-color: var(--ligne); }
.btn.ghost:hover { border-color: var(--or); color: var(--or-clair); }
.top .btn.mini { padding: 11px 20px; font-size: 12px; color: #1a1408; }
.top nav a.btn.mini:hover { color: var(--or-clair); }

/* ----- Histoire : la scène qui suit le défilement ----- */
.story { position: relative; height: 760vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(70% 60% at 50% 52%, #1b1b1f 0%, #0a0a0b 70%); }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s; }
.gl.on { opacity: 1; }
.fallback { display: none; position: absolute; left: 50%; top: 50%; width: min(900px, 100%); transform: translate(-50%, -50%); }
.stage.nogl .fallback { display: block; }
.hero { position: absolute; left: max(24px, 6vw); bottom: 12vh; max-width: min(560px, 90vw); z-index: 3; transition: opacity .2s; }
.kicker { margin: 0 0 22px; color: var(--or); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; font-weight: 400; }
.hero .sub { margin: 26px 0 0; max-width: 40ch; color: var(--gris); }
.scroll-cue { display: flex; align-items: center; gap: 14px; margin: 34px 0 0; color: var(--gris); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--or), transparent); transform-origin: top; animation: descend 2.2s var(--ease) infinite; }
@keyframes descend { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero > * { animation: monte 1.1s var(--ease) backwards; }
.hero > :nth-child(2) { animation-delay: .15s; } .hero > :nth-child(3) { animation-delay: .3s; } .hero > :nth-child(4) { animation-delay: .5s; }
@keyframes monte { from { opacity: 0; transform: translateY(26px); } }

.caps { position: absolute; left: max(24px, 6vw); top: 50%; transform: translateY(-50%); width: min(400px, 88vw); z-index: 3; }
.cap { position: absolute; left: 0; top: 50%; width: 100%; opacity: 0; transform: translateY(calc(-50% + 22px)); pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.cap.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.cap-i { display: block; margin-bottom: 14px; color: var(--or); font: 400 15px/1 var(--serif); letter-spacing: .3em; }
.cap h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.02; margin-bottom: 18px; }
.cap p { margin: 0; color: #cbc5b8; }
.cap dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 26px 0 0; border-top: 1px solid var(--ligne); }
.cap dl div { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.cap dt { color: var(--gris); font-size: 12px; letter-spacing: .12em; }
.cap dd { margin: 2px 0 0; font-size: 15px; }
.cap .prix { margin-top: 22px; font: 400 40px/1 var(--serif); color: var(--or-clair); }
.cap .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.chap { position: absolute; right: max(20px, 3vw); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; z-index: 3; opacity: 0; transition: opacity .5s; }
.stage.mid .chap { opacity: 1; }
.chap li { width: 7px; height: 7px; border-radius: 50%; background: rgba(236, 230, 216, .22); transition: background .4s, transform .4s var(--ease); }
.chap li.on { background: var(--or); transform: scale(1.7); }

/* ----- Bandes de texte ----- */
.band { padding: clamp(80px, 12vw, 170px) max(24px, 6vw); }
.titre { font-size: clamp(34px, 5vw, 68px); line-height: 1.04; max-width: 18ch; margin-bottom: clamp(40px, 6vw, 80px); }
.manifeste { border-top: 1px solid var(--ligne); display: grid; place-items: center; }
.mani { margin: 0; max-width: 24ch; font: 400 clamp(32px, 5.2vw, 72px)/1.1 var(--serif); letter-spacing: -.015em; text-align: center; text-wrap: balance; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); }
.geste svg { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border: 1px solid var(--ligne); }
.geste h3 { font-size: 28px; margin: 24px 0 10px; }
.geste p { margin: 0; color: var(--gris); max-width: 36ch; }

.collection { background: var(--graphite); }
.modele { display: flex; flex-direction: column; gap: 8px; }
.modele .vitrine { display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(60% 60% at 50% 45%, #232328, #0f0f11); border: 1px solid var(--ligne); margin-bottom: 18px; overflow: hidden; }
.modele img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.modele:hover img { transform: scale(1.05); }
.modele h3 { font-size: 30px; }
.modele p { margin: 0; color: var(--gris); }
.modele .prix { color: var(--or-clair); font: 400 24px/1.2 var(--serif); margin-top: 6px; }

.rdv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.rdv-txt p { margin: 0 0 28px; max-width: 40ch; color: #cbc5b8; }
.lieux { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 360px; border-top: 1px solid var(--ligne); }
.lieux li { padding: 14px 0; border-bottom: 1px solid var(--ligne); }
form { display: grid; gap: 8px; }
label { margin-top: 12px; color: var(--gris); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
input, select { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ligne); border-radius: 0; background: transparent; color: var(--ivoire); font: 300 18px/1.3 var(--sans); }
select option { background: var(--graphite); color: var(--ivoire); }
input:focus, select:focus { outline: 0; border-bottom-color: var(--or); }
form .btn { margin-top: 28px; justify-self: start; }
.retour { min-height: 1.6em; margin: 8px 0 0; }
.retour.ok { color: var(--or-clair); } .retour.err { color: #ff9a8a; }

.pied { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; padding: 40px max(24px, 6vw) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--ligne); color: var(--gris); font-size: 14px; }
.pied .marque { color: var(--ivoire); }

/* ----- Téléphone et petits écrans ----- */
/* ============ MISE EN PAGE v2 : composition centrée et symétrique ============ */
.top { display: grid; grid-template-columns: 1fr auto 1fr; justify-content: stretch; }
.top nav { gap: 34px; }
.top .nav-g { justify-self: start; }
.top .nav-d { justify-self: end; }
.top .marque { justify-self: center; font-size: 15px; letter-spacing: .5em; padding: 0 6px 0 .5em; }
.top nav a { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.top nav a:last-child { color: var(--or-clair); }
@media (min-width: 901px) {
  .hero { inset: 0; max-width: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(96px, 15vh, 150px); pointer-events: none; }
  .hero * { pointer-events: auto; }
  .kicker { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(40px, 5.4vw, 80px); }
  .hero .sub { position: absolute; left: 50%; translate: -50% 0; bottom: calc(10vh + 74px); width: min(46ch, 88vw); margin: 0; }
  .hero .scroll-cue { position: absolute; left: 50%; translate: -50% 0; bottom: 5vh; margin: 0; flex-direction: column; gap: 10px; }
  .caps { left: 50%; transform: translateX(-50%); top: auto; bottom: 5vh; width: min(640px, 90vw); text-align: center; }
  .cap { top: auto; bottom: 0; transform: translateY(22px); background: radial-gradient(90% 100% at 50% 70%, rgba(10, 10, 11, .88), rgba(10, 10, 11, 0)); padding: 36px 20px 0; }
  .cap.on { transform: none; }
  .cap dl { text-align: left; }
  .cap .actions { justify-content: center; }
  .cap h2 { font-size: clamp(32px, 3.6vw, 48px); }
}
@media (max-width: 900px) { .top .nav-d a:last-child { display: inline; } .top .nav-d a:last-child { padding: 10px 0; } }

@media (max-width: 900px) {
  .top nav a:not(.btn) { display: none; }
  .story { height: 820vh; }
  .stage { background: radial-gradient(90% 50% at 50% 28%, #1b1b1f 0%, #0a0a0b 75%); }
  .hero { bottom: 9vh; }
  .caps { left: 20px; right: 20px; width: auto; top: auto; bottom: 4vh; transform: none; }
  .cap { top: auto; bottom: 0; transform: translateY(18px); background: linear-gradient(transparent, rgba(10, 10, 11, .92) 28%); padding-top: 40px; }
  .cap.on { transform: none; }
  .cap h2 { font-size: 30px; margin-bottom: 10px; }
  .cap p { font-size: 15px; line-height: 1.5; }
  .cap dl { margin-top: 14px; }
  .cap dl div { padding: 7px 0; } .cap dd { font-size: 14px; }
  .cap .prix { font-size: 30px; margin-top: 12px; }
  .chap { display: none; }
  .trois { grid-template-columns: 1fr; }
  .modele .vitrine { aspect-ratio: 5 / 4; }
  .rdv { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .top .marque { letter-spacing: .3em; font-size: 12px; } .top .btn.mini { padding: 10px 12px; letter-spacing: .06em; font-size: 11px; white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span, .hero > * { animation: none !important; }
  .cap, .top { transition: none; }
}
