@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f3ece0; --panel: #ebe2d2; --paper: #f8f1e2;
  --ink: #2a2520; --muted: #5e544a; --accent: #a8431f;
  --line: rgba(42, 37, 32, 0.22);
  --btn: #e3c1ad; --btn-ink: #2a1a12; --btn-line: #b98670;
  --rose: #efd9cb; --rose-line: #b98670; --rose-ink: #4a2618;
  --serif: "Bodoni Moda", Didot, Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.layout { display: flex; min-height: 100vh; }
.side { flex: 0 0 60px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 28px 0; }
.side span { writing-mode: vertical-rl; text-orientation: sideways; transform: rotate(180deg); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.side .side-mark { font-family: var(--serif); font-size: 22px; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--ink); }
.main { flex: 1 1 auto; min-width: 0; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 16px clamp(16px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 28px; font-style: italic; line-height: 1; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn-line); text-decoration: none; font-weight: 600; font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.btn:hover { background: #dbb29b; }

/* Bandeau */
.stage-wrap { padding: 18px clamp(16px, 3vw, 44px) 0; }
.stage { --pos: 80%; position: relative; width: 100%; aspect-ratio: 1586 / 992; border: 1px solid var(--line); overflow: hidden; background: #f6eee2; }
.canvas { position: absolute; inset: 0; }
.stage-title { z-index: 2; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .front { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.stage-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(38%, 560px); text-align: center; color: #241f1a; pointer-events: none; }
.stage-title .eyebrow { margin: 0; font-size: clamp(9px, 0.9vw, 12px); letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.stage-title h1 { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.9vw, 44px); line-height: 1.05; }
.stage-title h1 em { color: var(--accent); }
.stage-title .lead { margin: 12px auto 0; font-size: clamp(13px, 1.25vw, 17px); line-height: 1.45; }
.stage-title .sub { margin: 6px auto 0; font-size: clamp(11px, 1vw, 14px); line-height: 1.45; color: #5a4f45; }
.stage-title .secret { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(15px, 1.6vw, 22px); font-style: italic; color: var(--accent); opacity: 0; transition: opacity .5s ease; }
.stage.is-open .stage-title .secret { opacity: 1; }
.spot { position: absolute; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; background: var(--paper); border: 1px solid #241f1a; color: #241f1a; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity .25s ease; }
.spot:hover { background: #fff; }
.spot.rain { transform: translateX(-50%); font-family: var(--serif); font-size: 17px; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }
.spot.is-hidden { opacity: 0; pointer-events: none; }
.divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--rose-line); box-shadow: 0 0 0 1px rgba(248, 241, 226, .8); pointer-events: none; }
.knob { position: absolute; top: 50%; left: var(--pos); width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rose-line); box-shadow: 0 8px 20px rgba(42, 37, 32, .22); display: grid; place-items: center; color: #6e3f2c; font-size: 26px; font-weight: 600; pointer-events: none; }
.tag { position: absolute; top: 14px; padding: 8px 14px; font-size: clamp(11px, 1.1vw, 15px); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity .25s ease; }
.tag-left { right: calc(100% - var(--pos) + 14px); background: var(--paper); border: 1px solid #241f1a; color: #241f1a; }
.tag-right { left: calc(var(--pos) + 14px); background: var(--rose); border: 1px solid var(--rose-line); color: var(--rose-ink); }
.tag.is-hidden { opacity: 0; }
.slider { position: absolute; left: 0; right: 0; top: calc(50% - 40px); height: 80px; margin: 0; }
.slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 72px; height: 80px; background: transparent; cursor: ew-resize; }
.slider input::-moz-range-thumb { width: 72px; height: 80px; background: transparent; border: 0; cursor: ew-resize; }
.slider input:focus-visible ~ .focus-ring { outline: 2px solid var(--accent); }
.no-js .divider, .no-js .knob, .no-js .tag, .no-js .slider { display: none; }
.no-js .stage .front { clip-path: none; }
.zones { padding: 10px 0 24px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); margin: 0; list-style: none; }
.zones a { color: var(--muted); }

/* Étapes */
.steps { padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 44px); background: var(--panel); }
.steps h2, .guides h2, .request h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.08; }
.step-tabs { margin: 28px 0 0; padding: 0; list-style: none; position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.step-tabs::before { content: ""; position: absolute; left: 6%; right: 6%; top: 21px; height: 1px; background: var(--line); }
.step-tabs button { position: relative; width: 100%; min-height: 88px; padding: 0 4px; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.step-tabs .num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); font-family: var(--serif); font-size: 16px; }
.step-tabs .lbl { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.step-tabs button[aria-selected="true"] .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-tabs button[aria-selected="true"] .lbl { font-weight: 600; }
.step-panel { margin-top: 20px; padding: 24px; border: 1px solid var(--line); background: var(--bg); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; }
.step-panel h3 { margin: 0; flex: 0 0 auto; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.step-panel p { margin: 0; flex: 1 1 360px; min-width: 0; font-size: 17px; line-height: 1.6; }
.step-panel a { flex: 0 0 auto; color: var(--accent); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.js .step-panel[hidden] { display: none; }

/* Guides */
.guides { padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 44px); }
.guide-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.guide-list a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guide-list strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.guide-list span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Demande */
.request { padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 44px); border-top: 1px solid var(--line); background: var(--panel); display: flex; flex-wrap: wrap; gap: 36px; }
.request-intro { flex: 1 1 300px; min-width: 0; }
.request-intro .kicker { margin: 0; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.request-intro h2 { margin-top: 12px; }
.request-intro p.lead { margin: 14px 0 0; max-width: 420px; font-size: 16px; color: var(--muted); }
.request form { flex: 2 1 480px; min-width: 0; }
.brief-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.brief-fields label { display: flex; flex-direction: column; gap: 6px; }
.brief-fields span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.brief-fields input, .brief-fields textarea { width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 16px; border-radius: 0; }
.brief-fields textarea { min-height: 88px; }
.brief-fields .full { grid-column: 1 / -1; }
.brief-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 24px; }
.brief-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.brief-submit { min-height: 54px; padding: 0 28px; }
.brief-submit[aria-busy="true"] { opacity: 0.6; cursor: wait; }
.brief-status { width: 100%; min-height: 1.4em; margin: 0; font-size: 15px; }
.brief-status.ok { font-family: var(--serif); font-size: 19px; }
.brief-status.err { color: var(--accent); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px clamp(16px, 3vw, 44px) 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (max-width: 900px) {
  .step-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
  .step-tabs::before { display: none; }
}
@media (max-width: 760px) {
  .side { display: none; }
  .stage { aspect-ratio: auto; border: 0; background: transparent; overflow: visible; }
  .canvas { position: relative; aspect-ratio: 1586 / 992; border: 1px solid var(--line); overflow: hidden; }
  .stage-title { position: static; transform: none; width: auto; margin: 0 0 16px; text-align: left; pointer-events: auto; }
  .stage-title h1 { font-size: 34px; }
  .stage-title .lead { font-size: 17px; margin-left: 0; }
  .stage-title .sub { font-size: 14px; margin-left: 0; }
  .stage-title .secret { display: none; }
  .spot { display: none; }
  .knob { width: 56px; height: 56px; margin: -28px 0 0 -28px; font-size: 20px; }
  .tag { font-size: 10px; padding: 5px 8px; top: 8px; }
  .guide-list { grid-template-columns: 1fr; }
  .brief-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
