/* ==========================================================================
   Majlis Rare — feuille de styles
   Palette et typographies : remplaçables via les tokens ci-dessous.
   ========================================================================== */

:root {
  /* Palette de marque (repères du guide) */
  --sand: #E3D9CD;
  --sand-2: #EDE6DC;
  --ivory: #F6F1EA;
  --deep: #47281A;
  --mid: #614E40;
  --sage: #9D907D;
  --clay: #7A6453;
  --taupe: #998169;
  /* Accents utilisés avec retenue */
  --sadu: #6E1E24;
  --champagne: #B8996A;
  --amber: #E9B872;

  --bg: var(--ivory);
  --surface: #FBF8F3;
  --ink: var(--deep);
  --ink-2: var(--mid);
  --ink-3: #6F5F51;          /* texte secondaire, contraste AA sur ivoire */
  --line: rgba(71, 40, 26, .16);
  --line-strong: rgba(71, 40, 26, .34);
  --focus: #2F6F73;

  /* Typographie — The Seasons peut remplacer Source Serif 4 si la licence web est acquise */
  --font-display: "The Seasons", "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-ui: "Poppins", "Raleway", "Helvetica Neue", Arial, sans-serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 1.1rem + .9vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.3rem + 2vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.2vw, 5rem);
  --step-5: clamp(2.9rem, 1.2rem + 6.6vw, 7.4rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --maxw: 1360px;
  --radius: 2px;
  --arch: 999px 999px 0 0;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-slow: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .25s;
  --t-med: .6s;
  --t-slow: 1.4s;

  --nav-h: 72px;
  color-scheme: light;
}

html[data-motion="reduced"] {
  --t-fast: .01s;
  --t-med: .01s;
  --t-slow: .01s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html:not([data-motion="reduced"]) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grain « micro-enduit » très léger */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .28 0 0 0 0 .16 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, main:focus, .form-done:focus { outline: none; }

.skip {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  background: var(--deep); color: var(--ivory); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.012em;
  margin: 0;
  font-optical-sizing: auto;
}
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .num { font-variant-numeric: tabular-nums; color: var(--clay); }
.eyebrow::after {
  content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5;
}
.eyebrow.no-rule::after { display: none; }

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }

/* Signature Sadu : bande étroite, jamais en fond */
.sadu-strip {
  display: block; height: 10px; width: 88px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10' viewBox='0 0 22 10'%3E%3Crect width='22' height='10' fill='%236E1E24'/%3E%3Cpath d='M11 1 L20 5 L11 9 L2 5Z' fill='none' stroke='%23F1E6D6' stroke-width='1'/%3E%3Cpath d='M11 3.4 L14.6 5 L11 6.6 L7.4 5Z' fill='%23F1E6D6'/%3E%3Cpath d='M0 0 L2 0 L0 2Z M22 0 L20 0 L22 2Z M0 10 L2 10 L0 8Z M22 10 L20 10 L22 8Z' fill='%23C9A77A'/%3E%3C/svg%3E");
  background-size: 22px 10px;
  background-repeat: repeat-x;
}
.sadu-strip.v { width: 10px; height: 88px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='22' viewBox='0 0 10 22'%3E%3Crect width='10' height='22' fill='%236E1E24'/%3E%3Cpath d='M5 2 L9 11 L5 20 L1 11Z' fill='none' stroke='%23F1E6D6' stroke-width='1'/%3E%3Cpath d='M5 7.4 L6.6 11 L5 14.6 L3.4 11Z' fill='%23F1E6D6'/%3E%3C/svg%3E"); background-size: 10px 22px; background-repeat: repeat-y; }

/* ---------- Boutons ---------- */
.btn {
  --b-bg: var(--deep); --b-fg: var(--ivory); --b-bd: var(--deep);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  background: var(--b-bg); color: var(--b-fg);
  border: 1px solid var(--b-bd);
  border-radius: var(--radius);
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--mid);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease-slow);
}
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--deep); --b-bd: var(--line-strong); }
.btn--ghost::before { background: var(--deep); }
.btn--ghost:hover { color: var(--ivory); border-color: var(--deep); }
.btn--light { --b-bg: var(--ivory); --b-fg: var(--deep); --b-bd: var(--ivory); }
.btn--light::before { background: var(--sand); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .72rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .4; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--deep);
  padding-block: .5rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-slow);
}
.link:hover { background-size: 0 1px; background-position: right bottom; }
.link .ico { width: 14px; height: 14px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid transparent; border-radius: 50%;
  color: inherit;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 18px; height: 18px; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Étiquettes de nature des médias ---------- */
.media-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .7rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(246, 241, 234, .9); color: var(--deep);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1.2;
}
.media-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex: none; }
.media-tag[data-kind="real"]::before { background: #3F7A5A; }
.media-tag[data-kind="concept"]::before { background: var(--champagne); box-shadow: 0 0 0 2px rgba(184,153,106,.25); }
.media-tag[data-kind="inspiration"]::before { background: transparent; border: 1.5px solid var(--clay); }
.media-tag[data-kind="placeholder"]::before { background: transparent; border: 1.5px dashed var(--clay); }
.media-tag--abs { position: absolute; left: 12px; bottom: 12px; z-index: 2; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.legend .media-tag { background: transparent; padding-inline: 0; }

/* Emplacements de contenu à remplacer */
.placeholder {
  border: 1px dashed var(--line-strong);
  padding: .1em .45em;
  border-radius: 2px;
  color: var(--ink-3);
  font-style: normal;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  color: var(--deep);
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), color var(--t-med);
}
.nav.is-solid {
  background: rgba(246, 241, 234, .86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line);
}
.brand-slot { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-height: 44px; }
.brand-slot .crest { width: 30px; height: 36px; flex: none; }
.brand-slot .wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 400;
  white-space: nowrap;
}
.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav-links a {
  position: relative;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding-block: .75rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-slow);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; align-items: center; gap: .35rem; }

.lang {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px;
}
.lang button {
  min-width: 40px; min-height: 36px; padding: 0 .55rem;
  border: 0; background: transparent; border-radius: 999px;
  font-size: .72rem; font-weight: 500; letter-spacing: .12em;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang button[aria-pressed="true"] { background: var(--deep); color: var(--ivory); }

.motion-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: 0 .7rem;
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.motion-toggle:hover { border-color: var(--line-strong); }
.motion-toggle .dot { width: 26px; height: 14px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background var(--t-fast); }
.motion-toggle .dot::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ivory); transition: transform var(--t-fast) var(--ease); }
.motion-toggle[aria-pressed="true"] .dot { background: var(--deep); }
.motion-toggle[aria-pressed="true"] .dot::after { transform: translateX(12px); }

.burger { display: none; }

.menu-sheet {
  position: fixed; inset: 0; z-index: 49;
  background: var(--sand);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path var(--t-med) var(--ease-slow), visibility 0s linear var(--t-med);
}
.menu-sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--t-med) var(--ease-slow); }
.menu-sheet nav { display: flex; flex-direction: column; gap: .25rem; }
.menu-sheet nav a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); text-decoration: none; line-height: 1.25;
  display: flex; align-items: baseline; gap: 1rem;
}
.menu-sheet nav a span { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .14em; color: var(--clay); }
.menu-sheet .menu-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

@media (max-width: 940px) {
  .nav-links, .nav-tools .btn, .nav-tools .motion-toggle .lbl { display: none; }
  .burger { display: inline-grid; }
  .brand-slot .wordmark { font-size: .9rem; letter-spacing: .26em; }
}
@media (max-width: 420px) {
  .nav-tools .lang { display: none; }
}

/* ==========================================================================
   Vues (routage)
   ========================================================================== */
.view { animation: viewIn var(--t-med) var(--ease) both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

section { position: relative; }
.sec { padding-block: clamp(5rem, 11vw, 10rem); }
.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head h2 { font-size: var(--step-4); max-width: 14em; }

/* ---------- Reveal au défilement ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }
html[data-motion="reduced"] .rv { opacity: 1; transform: none; transition: none; }

/* ==========================================================================
   01 — Accueil
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #E9DCCB;
}
.hero-media {
  position: absolute; inset: 0;
  clip-path: inset(var(--ap-t, 0%) var(--ap-x, 0%) 0 var(--ap-x, 0%) round var(--ap-r, 0px) var(--ap-r, 0px) 0 0);
  transition: clip-path 2.4s var(--ease-slow);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  transform: scale(var(--hz, 1.08)) translateY(var(--hy, 0px));
  transition: transform 3.2s var(--ease-slow);
}
.hero.is-entering .hero-media { --ap-t: 16%; --ap-x: 34%; --ap-r: 50vw; }
.hero.is-entering .hero-media img { --hz: 1.2; }
.hero-media::after {
  /* voiles : clair en haut pour la navigation, brun chaud en bas pour le texte */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(246,236,222,.55) 0%, rgba(246,236,222,0) 18%),
    linear-gradient(0deg, rgba(33,19,12,.88) 0%, rgba(33,19,12,.66) 32%, rgba(33,19,12,.38) 55%, rgba(33,19,12,0) 76%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding-top: calc(var(--nav-h) + 2rem);
  display: grid; align-content: end; gap: 1.25rem;
  color: var(--ivory);
}
.hero h1 {
  font-size: var(--step-5);
  line-height: .98;
  max-width: 11.5em;
  color: var(--ivory);
  text-shadow: 0 2px 30px rgba(33,19,12,.25);
}
.hero h1 em { color: #F1D9B6; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; transition: transform 1.6s var(--ease-slow), opacity 1.6s var(--ease-slow); transition-delay: var(--d, 0s); }
.hero.is-entering h1 .ln > span { transform: translateY(105%); opacity: 0; }
.hero .eyebrow { color: #EBDCC7; }
.hero .lede { color: #EFE4D6; max-width: 32em; margin: 0; }
.hero .fade { transition: opacity 1.4s var(--ease-slow), transform 1.4s var(--ease-slow); transition-delay: var(--d, 0s); }
.hero.is-entering .fade { opacity: 0; transform: translateY(14px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero-ctas .btn--ghost { --b-fg: var(--ivory); --b-bd: rgba(246,241,234,.55); }
.hero-ctas .btn--ghost::before { background: var(--ivory); }
.hero-ctas .btn--ghost:hover { color: var(--deep); border-color: var(--ivory); }
.hero-foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  padding-block: 1.25rem 1.5rem;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  border-top: 1px solid rgba(246,241,234,.18);
  color: var(--ivory);
}
.scroll-cue {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--ivory);
  min-height: 44px;
}
.scroll-cue i { width: 1px; height: 36px; background: rgba(246,241,234,.4); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ivory); animation: drip 2.6s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
html[data-motion="reduced"] .scroll-cue i::after { animation: none; top: 30%; }
.hero-coords { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .9; text-align: right; }

/* ==========================================================================
   Le seuil (manifeste + lieu de référence)
   ========================================================================== */
.threshold { background: var(--ivory); }
.manifesto {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.22;
  font-weight: 300;
  max-width: 22em;
  margin: 1.5rem 0 0;
}
.manifesto em { color: var(--clay); }
.threshold-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-top: clamp(3rem, 7vw, 6rem);
  align-items: start;
}
.threshold-copy { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 2rem); display: grid; gap: 1.25rem; }
.threshold-photos { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.threshold-photos figure:nth-child(1) { grid-column: 1 / -1; }
.threshold-photos figure:nth-child(3) { margin-top: 30%; }
.photo { margin: 0; position: relative; }
.photo .frame { position: relative; overflow: hidden; background: var(--sand); }
.photo.arch .frame { border-radius: var(--arch); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-slow); }
.photo:hover img { transform: scale(1.03); }
.photo figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; font-size: var(--step--1); color: var(--ink-3); }
.photo figcaption b { font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.ratio-wide .frame { aspect-ratio: 16 / 10; }
.ratio-tall .frame { aspect-ratio: 3 / 4; }

.materials-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .78rem; color: var(--ink-2); background: var(--surface);
}
.chip i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

@media (max-width: 860px) {
  .threshold-copy, .threshold-photos { grid-column: 1 / -1; position: static; }
}

/* ==========================================================================
   Réalisations
   ========================================================================== */
.works { background: var(--sand); }
.works .sec-head { grid-template-columns: 1fr auto; align-items: end; }
.featured {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 0;
  background: var(--deep); color: var(--sand);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.featured .f-media { position: relative; min-height: 440px; overflow: hidden; }
.featured .f-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease-slow); }
.featured:hover .f-media img { transform: scale(1.04); }
.featured .f-body { padding: clamp(1.75rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.featured .eyebrow { color: #D9C6AE; }
.featured h3 { font-size: var(--step-4); color: var(--ivory); }
.featured p { color: #E6D9C8; max-width: 30em; }
.featured .meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .5rem 2rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(227,217,205,.22); }
.featured .meta dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #CDB89E; }
.featured .meta dd { margin: .2rem 0 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--ivory); }
.featured .link { color: var(--ivory); align-self: flex-start; }
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .featured .f-media { min-height: 0; aspect-ratio: 4 / 3; }
  .works .sec-head { grid-template-columns: 1fr; }
}

.cats-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin: clamp(4rem, 8vw, 6.5rem) 0 2rem; }
.cats-head h3 { font-size: var(--step-3); max-width: 16em; }
.cats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.cat {
  position: relative;
  display: grid; grid-template-rows: auto 1fr auto; gap: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 0; border-bottom: 1px solid var(--line-strong);
  background: transparent; text-align: left;
  min-height: 330px;
  transition: background var(--t-med) var(--ease);
}
.cat:not(:nth-child(3n)) { border-right: 1px solid var(--line-strong); }
.cat:hover, .cat:focus-visible { background: var(--sand-2); }
.cat .cat-n { font-size: .72rem; letter-spacing: .16em; color: var(--clay); }
.cat svg.illus { width: 100%; height: 120px; color: var(--mid); transition: transform var(--t-med) var(--ease-slow); }
.cat:hover svg.illus { transform: translateY(-4px); }
.cat h4 { font-size: 1.65rem; }
.cat p { font-size: .92rem; color: var(--ink-3); margin: .35rem 0 0; }
.cat .cat-foot { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cat .cat-foot .ico { transition: transform var(--t-fast) var(--ease); }
.cat:hover .cat-foot .ico { transform: translateX(4px); }
@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .cat:not(:nth-child(3n)) { border-right: 0; }
  .cat:nth-child(odd) { border-right: 1px solid var(--line-strong); }
}
@media (max-width: 560px) {
  .cats { grid-template-columns: 1fr; }
  .cat { min-height: 0; border-right: 0 !important; }
  .cat svg.illus { height: 90px; }
}

/* Panneau catégorie */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; z-index: 80;
  width: min(560px, 100%); height: 100%; max-height: none; max-width: none;
  border: 0; padding: 0;
  background: var(--ivory); color: var(--ink);
  box-shadow: -30px 0 80px rgba(40,22,14,.25);
}
.drawer[open] { animation: drawerIn var(--t-med) var(--ease-slow); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.drawer::backdrop { background: rgba(40, 22, 14, .45); backdrop-filter: blur(2px); }
.drawer-inner { height: 100%; overflow: auto; padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; gap: 1.5rem; align-content: start; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer h3 { font-size: var(--step-4); }
.drawer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.drawer li { padding-left: 1.4rem; position: relative; color: var(--ink-2); }
.drawer li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--clay); }
.slot {
  border: 1px dashed var(--line-strong); padding: 1.25rem; display: grid; gap: .4rem;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(71,40,26,.03) 12px 13px);
}
.slot b { font-weight: 500; }

/* ==========================================================================
   Composer — teaser
   ========================================================================== */
.compose-teaser { background: var(--deep); color: var(--sand); overflow: hidden; }
.compose-teaser .eyebrow { color: #D2BEA5; }
.compose-teaser h2 { color: var(--ivory); }
.compose-teaser .lede { color: #E1D3C1; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.preset {
  position: relative;
  display: grid; gap: 1rem; align-content: start;
  padding: 0 0 1.25rem; border: 0; background: transparent; text-align: left; color: inherit; text-decoration: none;
}
.preset .p-art {
  aspect-ratio: 4 / 5;
  border-radius: var(--arch);
  overflow: hidden;
  position: relative;
  transition: border-radius var(--t-med) var(--ease-slow);
}
.preset:hover .p-art, .preset:focus-visible .p-art { border-radius: 120px 120px 0 0; }
.preset .p-art svg { width: 100%; height: 100%; display: block; }
.preset h3 { font-size: var(--step-3); color: var(--ivory); }
.preset p { color: #D9CAB7; font-size: .95rem; margin: 0; }
.preset .swatches { display: flex; gap: 6px; }
.preset .swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.preset .p-go { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); }
.preset .p-go .ico { transition: transform var(--t-fast); }
.preset:hover .p-go .ico { transform: translateX(4px); }
.teaser-foot { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between; border-top: 1px solid rgba(227,217,205,.2); padding-top: 1.75rem; }
.teaser-foot p { margin: 0; color: #CDBBA4; font-size: .9rem; }
@media (max-width: 860px) {
  .presets { grid-template-columns: 1fr; }
  .preset { grid-template-columns: 120px 1fr; column-gap: 1.25rem; align-items: center; }
  .preset .p-art { grid-row: 1 / span 4; aspect-ratio: 3 / 4; }
}

/* ==========================================================================
   Méthode
   ========================================================================== */
.method { background: var(--ivory); }
.method-note { display: flex; gap: .75rem; align-items: center; color: var(--ink-3); font-size: .9rem; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line); }
.steps::after {
  content: ""; position: absolute; left: 0; top: 22px; height: 1px; background: var(--deep);
  width: calc(var(--prog, 0) * 100%);
  transition: width .2s linear;
}
.step { position: relative; padding: 0 1rem 0 0; }
.step .knot {
  position: relative; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ivory);
}
.step .knot span { width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid var(--deep); background: var(--ivory); transition: background var(--t-med); }
.step.is-on .knot span { background: var(--deep); }
.step .s-n { display: block; margin-top: 1.25rem; font-size: .72rem; letter-spacing: .16em; color: var(--clay); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.45rem; margin: .4rem 0 .6rem; }
.step p { font-size: .9rem; color: var(--ink-3); margin: 0; }
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; padding-left: 0; }
  .steps::before, .steps::after { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { height: calc(var(--prog, 0) * 100%); bottom: auto; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 1.25rem; padding: 0; }
  .step .knot { grid-row: 1 / span 3; }
  .step .s-n { margin-top: .6rem; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 1.3rem + 2.9vw, 4rem); }
.contact-aside { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--nav-h) + 2rem); }
.contact-aside dl { margin: 1rem 0 0; display: grid; gap: 1rem; }
.contact-aside dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.contact-aside dd { margin: .2rem 0 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; }
.field { display: grid; gap: .45rem; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .7rem 0;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 1.05rem;
  transition: border-color var(--t-fast);
  appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2347281A' stroke-width='1.3'/%3E%3C/svg%3E") right .2rem center / 12px no-repeat; padding-right: 1.5rem; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--deep); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--deep); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--focus); }
.field .err { font-size: .8rem; color: #8A2A22; min-height: 1.2em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: #8A2A22; }
.attach {
  grid-column: 1 / -1;
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem; background: var(--ivory); border-left: 3px solid var(--sadu);
}
.attach b { font-weight: 500; }
.attach .small { color: var(--ink-3); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-foot p { margin: 0; font-size: .82rem; color: var(--ink-3); max-width: 28em; }
.form-done { display: grid; gap: 1rem; padding: 2rem; background: var(--ivory); border-top: 2px solid var(--deep); }
.form-done h3 { font-size: var(--step-3); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.footer { background: var(--deep); color: #D9CAB7; padding-block: 4rem 2rem; border-top: 1px solid rgba(227,217,205,.14); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer .wordmark { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory); }
.footer h4 { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #B9A58C; margin-bottom: 1rem; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer .placeholder { color: #CDBBA4; border-color: rgba(227,217,205,.35); }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(227,217,205,.18); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .78rem; color: #B9A58C; }
.footer .legend .media-tag { color: #E6D9C8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Étude de cas — Desert Fashion Runway
   ========================================================================== */
.case-hero {
  position: relative; min-height: 92svh; display: grid; align-items: end;
  color: var(--ivory); overflow: hidden; background: #2B1A12;
}
.case-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: slowZoom 18s var(--ease) both; }
@keyframes slowZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
html[data-motion="reduced"] .case-hero > img { animation: none; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,17,11,.88) 0%, rgba(30,17,11,.35) 45%, rgba(30,17,11,.25) 100%); }
.case-hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(2rem, 6vw, 4.5rem); padding-top: calc(var(--nav-h) + 2rem); display: grid; gap: 1.25rem; }
.case-hero .eyebrow { color: #E6D3BA; }
.case-hero h1 { font-size: var(--step-5); max-width: 10em; }
.case-hero .lede { color: #EDE2D3; }
.case-hero .media-tag { justify-self: start; }
.back { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: inherit; min-height: 44px; }
.back .ico { transform: rotate(180deg); }

.status-bar { background: var(--deep); color: #E6D9C8; }
.status-bar .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; padding-block: 1rem; font-size: .82rem; }
.status-bar .pill { display: inline-flex; gap: .5rem; align-items: center; padding: .3rem .75rem; border: 1px solid rgba(227,217,205,.3); border-radius: 999px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.status-bar .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.facts { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line-strong); }
.fact { padding: 1.75rem 1rem 1.5rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: var(--step-4); font-weight: 300; line-height: 1; }
.fact span { display: block; margin-top: .6rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(3, 1fr); } .fact:nth-child(3n) { border-right: 0; } .fact:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }

.case-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.case-intro blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.22; font-weight: 300; }
.case-intro blockquote footer { margin-top: 1.25rem; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.decisions { display: grid; gap: 1.5rem; }
.decisions div { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.decisions h3 { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--clay); margin-bottom: .6rem; }
.decisions p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .case-intro { grid-template-columns: 1fr; } }

.chapter { padding-block: clamp(4rem, 9vw, 8rem); }
.chapter-head { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.chapter-head .big-n { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 7rem); line-height: .8; font-weight: 300; color: var(--taupe); font-variant-numeric: lining-nums; }
.chapter-head h2 { font-size: var(--step-4); }
.chapter-head p { grid-column: 2; margin: 0; max-width: 36em; color: var(--ink-2); }
@media (max-width: 700px) { .chapter-head { grid-template-columns: 1fr; } .chapter-head p { grid-column: 1; } }

/* Parcours invité : défilement horizontal */
.journey { position: relative; }
.journey-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 34%);
  gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1.5rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--taupe) transparent;
}
.journey-track > * { scroll-snap-align: start; }
.j-card { margin: 0; display: grid; gap: .9rem; align-content: start; }
.j-card .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.j-card .frame img { width: 100%; height: 100%; object-fit: cover; }
.j-card .frame.empty { display: grid; place-items: center; background: var(--deep); color: var(--sand); text-align: center; padding: 2rem; }
.j-card .frame.empty svg { width: 70%; max-width: 220px; }
.j-card .j-n { font-size: .72rem; letter-spacing: .16em; color: var(--clay); }
.j-card h3 { font-size: 1.6rem; }
.j-card p { margin: 0; color: var(--ink-3); font-size: .95rem; }
.journey-ctrl { display: flex; gap: .5rem; justify-content: flex-end; padding-inline: var(--gutter); margin-bottom: 1rem; }
.journey-ctrl .icon-btn { border-color: var(--line-strong); }
@media (max-width: 700px) { .journey-track { grid-auto-columns: 82%; } }

/* Scène — mise en page éditoriale */
.stage-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: start; }
.stage-grid .photo .frame { aspect-ratio: 16 / 11; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
.spec-list div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.spec-list div:nth-child(odd) { padding-right: 1rem; }
.spec-list b { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 300; line-height: 1.1; }
.spec-list span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.prose { display: grid; gap: 1rem; color: var(--ink-2); }
.prose h3 { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--clay); margin-top: 1rem; }
.prose p { margin: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: var(--gutter); }
@media (max-width: 860px) { .stage-grid, .duo { grid-template-columns: 1fr; } }

/* Comparateur d'assises */
.seating { background: var(--sand); }
.seat-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; margin-bottom: 1.5rem; }
.seat-switch button { min-height: 44px; padding: 0 1.25rem; border: 0; background: transparent; border-radius: 999px; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: background var(--t-fast), color var(--t-fast); }
.seat-switch button[aria-pressed="true"] { background: var(--deep); color: var(--ivory); }
.seat-stage { position: relative; aspect-ratio: 1645 / 941; overflow: hidden; background: #2B1A12; }
.seat-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease); }
.seat-stage img.off { opacity: 0; }
.seat-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .92rem; }
.seat-table th, .seat-table td { text-align: left; padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.seat-table th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); }
.seat-table tr.is-active td { color: var(--deep); font-weight: 500; }
.seat-table tr:not(.is-active) td { color: var(--ink-3); }
.reco { margin-top: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem; background: var(--ivory); }
.reco .sadu-strip.v { height: 100%; min-height: 60px; }
.table-scroll { overflow-x: auto; }

/* Matières */
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.swatch { display: grid; gap: .6rem; }
.swatch i { aspect-ratio: 1; border-radius: 999px 999px 2px 2px; display: block; box-shadow: inset 0 0 0 1px rgba(71,40,26,.08); }
.swatch b { font-weight: 500; font-size: .9rem; }
.swatch span { font-size: .78rem; color: var(--ink-3); }
@media (max-width: 860px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }

.todo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); counter-reset: t; }
.todo-list li { counter-increment: t; display: grid; grid-template-columns: 2.5rem 1fr; padding: 1rem 0; border-bottom: 1px solid rgba(227,217,205,.2); color: #E6D9C8; }
.todo-list li::before { content: counter(t, decimal-leading-zero); font-size: .75rem; letter-spacing: .14em; color: #B9A58C; padding-top: .2rem; }
@media (max-width: 700px) { .todo-list { grid-template-columns: 1fr; } }
.case-cta { background: var(--deep); color: var(--sand); }
.case-cta h2 { color: var(--ivory); font-size: var(--step-4); }
.case-cta .lede { color: #E1D3C1; }
.case-cta .eyebrow { color: #D2BEA5; }

/* ==========================================================================
   Studio de composition (configurateur + 3D)
   ========================================================================== */
.studio {
  --panel-w: 440px;
  display: grid;
  grid-template-columns: 1fr var(--panel-w);
  height: 100svh;
  padding-top: var(--nav-h);
  background: var(--sand);
}
.stage3d {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #CFC3B4, #E8DCCB);
  min-height: 0;
}
.stage3d canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.stage3d .s-top {
  position: absolute; z-index: 5; left: 1rem; right: 1rem; top: 1rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; pointer-events: none;
}
.stage3d .s-top > * { pointer-events: auto; }
.prelim {
  display: inline-flex; gap: .6rem; align-items: center;
  max-width: 360px;
  padding: .55rem .85rem; border-radius: 999px;
  background: rgba(246,241,234,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .72rem; line-height: 1.35; color: var(--ink-2);
}
.prelim b { font-weight: 500; color: var(--deep); letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; }
.seg {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(246,241,234,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(40,22,14,.08);
}
.seg button {
  min-height: 38px; padding: 0 .85rem; border: 0; border-radius: 999px; background: transparent;
  font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.seg button:hover { background: rgba(71,40,26,.07); }
.seg button[aria-pressed="true"] { background: var(--deep); color: var(--ivory); }
.seg .ico { width: 15px; height: 15px; }
.stage3d .s-bottom {
  position: absolute; z-index: 5; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem; flex-wrap: wrap; pointer-events: none;
}
.stage3d .s-bottom > * { pointer-events: auto; }
.timeline { display: grid; gap: .35rem; padding: .6rem .9rem .5rem; border-radius: 14px; background: rgba(246,241,234,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 240px; }
.timeline label { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.timeline label output { color: var(--deep); font-weight: 500; }
.timeline input[type=range] { width: 100%; }
.timeline .ticks { display: flex; justify-content: space-between; font-size: .64rem; color: var(--ink-3); letter-spacing: .06em; }

input[type=range] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--deep) var(--fill, 50%), var(--line-strong) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line-strong); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--deep); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--ivory); border: 1.5px solid var(--deep); box-shadow: 0 2px 6px rgba(40,22,14,.2); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ivory); border: 1.5px solid var(--deep); }
input[type=range]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Étiquettes 3D */
.labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.lbl3d {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .65rem .3rem .4rem;
  border: 0; border-radius: 999px;
  background: rgba(246,241,234,.92); color: var(--deep);
  font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(40,22,14,.14);
  transition: opacity var(--t-fast), background var(--t-fast);
  min-height: 30px;
}
.lbl3d::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--sadu); flex: none; margin-left: .2rem; }
.lbl3d::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 1px; height: 10px; background: rgba(246,241,234,.92); }
.lbl3d:hover, .lbl3d[aria-expanded="true"] { background: var(--deep); color: var(--ivory); }
.lbl3d.hide { opacity: 0; pointer-events: none; }
.labels.off .lbl3d { opacity: 0; pointer-events: none; }
.info-card {
  position: absolute; z-index: 6; left: 1rem; bottom: 7.75rem;
  width: min(320px, calc(100% - 2rem));
  padding: 1.1rem 1.2rem; background: var(--ivory); box-shadow: 0 18px 40px rgba(40,22,14,.2);
  display: grid; gap: .4rem;
  animation: viewIn var(--t-fast) var(--ease);
}
.info-card h3 { font-size: 1.4rem; }
.info-card p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.info-card .icon-btn { position: absolute; top: .3rem; right: .3rem; }

.stage-loading, .stage-fallback {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; text-align: center;
  padding: 2rem;
}
.stage-loading .loader { display: grid; gap: 1rem; justify-items: center; color: var(--ink-2); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.stage-loading .sadu-strip { animation: weave 1.6s linear infinite; }
@keyframes weave { to { background-position: 22px 0; } }
.stage-fallback { background: var(--sand-2); place-items: stretch; padding: 4.5rem 1rem 6rem; }
.stage-fallback svg { width: 100%; height: 100%; }
.plan2d { position: absolute; inset: 0; z-index: 4; background: var(--sand-2); padding: 4.5rem 1rem 6rem; }
.plan2d svg { width: 100%; height: 100%; }
.fallback-note { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; z-index: 6; font-size: .8rem; color: var(--ink-2); background: var(--ivory); padding: .75rem 1rem; }

/* Panneau de configuration */
.panel {
  display: grid; grid-template-rows: auto auto 1fr auto;
  min-height: 0;
  background: var(--ivory);
  border-left: 1px solid var(--line);
}
.panel-head { padding: 1.25rem 1.5rem .75rem; display: grid; gap: .3rem; }
.panel-head h1 { font-size: 1.9rem; }
.panel-head p { margin: 0; font-size: .85rem; color: var(--ink-3); }
.stepper {
  display: flex; gap: 2px; padding: .25rem 1.5rem 1rem; overflow-x: auto; scrollbar-width: none;
  list-style: none; margin: 0;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1 0 auto; }
.stepper button {
  width: 100%; min-width: 44px; min-height: 44px;
  display: grid; gap: 6px; justify-items: start; align-content: end;
  padding: 0 .1rem .2rem; border: 0; background: transparent;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.stepper button::before { content: ""; width: 100%; height: 2px; background: var(--line); transition: background var(--t-fast); }
.stepper button.done::before { background: var(--taupe); }
.stepper button[aria-current="step"] { color: var(--deep); font-weight: 500; }
.stepper button[aria-current="step"]::before { background: var(--deep); }
.stepper .st-n { font-variant-numeric: tabular-nums; }
.stepper .st-l { display: none; }
.stepper button[aria-current="step"] .st-l { display: inline; }

.panel-body { overflow-y: auto; padding: .25rem 1.5rem 1.5rem; min-height: 0; overscroll-behavior: contain; }
.step-pane { display: grid; gap: 1rem; animation: paneIn var(--t-med) var(--ease-slow); }
@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } }
.step-pane h2 { font-size: 1.7rem; }
.step-pane .hint { font-size: .85rem; color: var(--ink-3); margin: -.4rem 0 0; }

.presets-mini { display: flex; gap: .5rem; flex-wrap: wrap; }
.presets-mini button {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 40px; padding: .3rem .8rem .3rem .4rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font-size: .78rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.presets-mini button:hover { border-color: var(--deep); }
.presets-mini button[aria-pressed="true"] { background: var(--deep); color: var(--ivory); border-color: var(--deep); }
.presets-mini .sw { display: inline-flex; }
.presets-mini .sw i { width: 14px; height: 14px; border-radius: 50%; margin-right: -4px; box-shadow: 0 0 0 1.5px var(--ivory); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.opts legend { padding: 0; margin-bottom: .6rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt .card {
  display: grid; gap: .5rem; align-content: start;
  height: 100%;
  padding: .7rem .7rem .8rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.opt .card .vis { height: 64px; border-radius: 1px; overflow: hidden; display: grid; place-items: center; background: var(--sand-2); color: var(--mid); }
.opt .card .vis svg { width: 100%; height: 100%; }
.opt .card b { font-weight: 500; font-size: .9rem; line-height: 1.3; }
.opt .card small { font-size: .76rem; color: var(--ink-3); line-height: 1.4; }
.opt:hover .card { border-color: var(--line-strong); }
.opt input:checked + .card { border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); background: #FFFCF7; }
.opt input:checked + .card::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23F6F1EA' stroke-width='1.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.opt input:focus-visible + .card { outline: 2px solid var(--focus); outline-offset: 2px; }
.opts.wide { grid-template-columns: 1fr; }
.opts.wide .card { grid-template-columns: 84px 1fr; align-items: center; column-gap: .9rem; }
.opts.wide .card .vis { grid-row: 1 / span 2; height: 56px; }

.guests { display: grid; gap: 1rem; }
.guests-out { display: flex; align-items: baseline; gap: .6rem; }
.guests-out output { font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; }
.guests-out span { color: var(--ink-3); }
.guests .ticks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); }
.guests .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.guests .chips button { min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: .8rem; }
.guests .chips button[aria-pressed="true"] { background: var(--deep); color: var(--ivory); border-color: var(--deep); }
.note {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  padding: .85rem 1rem; background: var(--sand-2); font-size: .82rem; color: var(--ink-2);
}
.note .ico { margin-top: 2px; color: var(--clay); }

.summary { display: grid; gap: 1rem; }
.summary-name { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.05; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 1px solid var(--line); }
.summary dt, .summary dd { padding: .65rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .88rem; }
.summary dt { color: var(--ink-3); padding-right: 1rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; align-self: center; }
.summary dd { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.summary dd button { border: 0; background: transparent; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.summary dd button:hover { color: var(--deep); }
.summary .actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.summary .actions .btn { width: 100%; }
.summary .actions .btn.full { grid-column: 1 / -1; }
.mood { display: flex; height: 36px; }
.mood i { flex: 1; }

.panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .75rem 1.5rem calc(.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
.panel-foot .count { white-space: nowrap; font-size: .75rem; color: var(--ink-3); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.panel-foot .tools { display: flex; gap: .25rem; }
.panel-foot .tools .icon-btn { color: var(--ink-2); }
.panel-foot .tools .icon-btn:hover { border-color: var(--line-strong); }

@media (max-width: 1080px) { .studio { --panel-w: 380px; } }
@media (max-width: 820px) {
  .studio { grid-template-columns: 1fr; grid-template-rows: 46svh auto; height: auto; min-height: 100svh; }
  .stage3d { position: sticky; top: var(--nav-h); z-index: 4; height: 46svh; }
  .panel { border-left: 0; grid-template-rows: auto auto auto auto; }
  .panel-body { overflow: visible; padding-bottom: 6rem; }
  .panel-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; box-shadow: 0 -10px 30px rgba(40,22,14,.08); }
  .stepper { position: sticky; top: calc(var(--nav-h) + 46svh); z-index: 3; background: var(--ivory); padding-top: .5rem; }
  .prelim { max-width: 220px; font-size: .64rem; padding: .4rem .7rem; }
  .prelim .long { display: none; }
  .stage3d .s-top { left: .5rem; right: .5rem; top: .5rem; flex-wrap: wrap; }
  .stage3d .s-bottom { left: .5rem; right: .5rem; bottom: .5rem; }
  .seg button { min-height: 36px; padding: 0 .6rem; font-size: .62rem; }
  .seg button .t { display: none; }
  .seg button .ico { width: 17px; height: 17px; }
  .timeline { min-width: 0; flex: 1; max-width: 230px; padding: .35rem .7rem .2rem; gap: 0; }
  .timeline .ticks { display: none; }
  .timeline input[type=range] { height: 24px; }
  .panel-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .panel-foot .btn--sm { padding-inline: .8rem; }
  .info-card { bottom: 5rem; }
  .plan2d, .stage-fallback { padding: 3.5rem .5rem 4.5rem; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200;
  transform: translate(-50%, 140%);
  padding: .85rem 1.25rem; background: var(--deep); color: var(--ivory);
  font-size: .85rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(40,22,14,.3);
  transition: transform var(--t-med) var(--ease-slow), visibility 0s linear var(--t-med);
  max-width: calc(100% - 2rem);
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform var(--t-med) var(--ease-slow); }
@media (max-width: 820px) { .toast { bottom: 5.5rem; } }

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.stage3d.no3d .s-bottom { display: none; }

/* ---------- WhatsApp & anti-spam ---------- */
.btn--wa { --b-bg: #1F5C45; --b-fg: #F6F1EA; --b-bd: #1F5C45; }
.btn--wa::before { background: #174636; }
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 52px; padding: 0 1.1rem 0 .95rem; border-radius: 999px;
  background: #1F5C45; color: #F6F1EA; text-decoration: none;
  font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(31, 92, 69, .35);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.wa-float:hover { transform: translateY(-2px); background: #174636; }
.wa-float .ico { width: 22px; height: 22px; }
body.in-studio .wa-float { bottom: 5.5rem; }
@media (max-width: 820px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 52px; justify-content: center; } }
@media (min-width: 821px) { body.in-studio .wa-float { bottom: 5.5rem; right: calc(var(--panel-w, 440px) + 1rem); } }
.footer a, .contact-aside dd a { text-underline-offset: 4px; }
.contact-aside dd a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
