/* BAZART — feuille de styles unique. Polices auto-hébergées. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2"); }
/* ─────────────────────────────────────────────────────────────
   BAZART — Système visuel « The Living Gallery »
   Ivoire chaud · espresso · sable · terre cuite · laiton patiné
   ───────────────────────────────────────────────────────────── */
:root {
  /* Couleurs de base */
  --ivory: #f5efe4;
  --ivory-2: #efe6d6;
  --paper: #fbf8f2;
  --sand: #e4d5bc;
  --sand-2: #d5c09d;
  --sand-3: #b99f77;
  --espresso: #24170f;
  --espresso-2: #33241a;
  --espresso-3: #4a382b;
  --terracotta: #b0553a;
  --terracotta-deep: #8f4129;
  --terracotta-soft: #e7c3b0;
  --brass: #a8854a;
  --brass-light: #d7bd86;
  --brass-dark: #75582a;
  --majorelle: #2f4aa0;
  --olive: #5f6a45;

  /* Rôles */
  --bg: var(--ivory);
  --surface: var(--paper);
  --surface-2: var(--ivory-2);
  --ink: var(--espresso);
  --ink-2: #5b4a3c;       /* texte secondaire — contraste ≥ 7:1 sur ivoire */
  --ink-3: #75604f;       /* légendes — contraste ≥ 4.6:1 */
  --line: rgba(36, 23, 15, 0.13);
  --line-2: rgba(36, 23, 15, 0.22);
  --accent: var(--terracotta-deep);
  --focus: #1d4ed8;
  --success: #3f6b3a;
  --warning: #9a6512;
  --danger: #a3301f;
  --info: #2f4aa0;

  /* Métal — reflets retenus */
  --brass-gradient: linear-gradient(115deg, #7a5b2b 0%, #c9a76a 28%, #f1dfb2 46%, #b48c4f 62%, #7f6031 100%);
  --brass-hairline: linear-gradient(90deg, transparent, rgba(168, 133, 74, 0.7), transparent);

  /* Typographie */
  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Manrope Variable", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-3xl: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 3.3vw, 4.4rem);
  --tracking-caps: 0.16em;

  /* Espacements, rayons, profondeur */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;
  --arch: 999px 999px 0 0;
  --shadow-1: 0 1px 2px rgba(36, 23, 15, 0.06), 0 4px 14px rgba(36, 23, 15, 0.06);
  --shadow-2: 0 2px 6px rgba(36, 23, 15, 0.08), 0 18px 40px -12px rgba(36, 23, 15, 0.22);
  --shadow-3: 0 30px 80px -20px rgba(36, 23, 15, 0.45);
  --shadow-press: inset 0 2px 4px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 380ms;

  /* Textures matières (SVG inline, légères) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .14 0 0 0 0 .09 0 0 0 0 .06 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --stucco: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='4' seed='7'/><feDiffuseLighting lighting-color='%23fff7ea' surfaceScale='2.2'><feDistantLight azimuth='225' elevation='58'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23s)' opacity='.55'/></svg>");
  --zellige: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'><g fill='none' stroke='%23a8854a' stroke-width='1' opacity='.55'><path d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/><rect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/></g></svg>");
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 1ms; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { /* grain de papier fait main, très discret */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--grain); opacity: 0.55; mix-blend-mode: multiply;
}
#__main, .site { position: relative; z-index: 1; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 1em; text-wrap: pretty; }
hr { border: 0; height: 1px; background: var(--line); margin: 2rem 0; }
::selection { background: var(--terracotta-soft); color: var(--espresso); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--espresso); color: var(--ivory); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.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; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.container--text { max-width: 720px; }
.section { padding-block: clamp(56px, 8vw, 120px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

.eyebrow { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.75em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1; }
.hairline { height: 1px; background: var(--brass-hairline); border: 0; margin: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0.5rem 0 0; color: var(--ink-2); max-width: 52ch; }

@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.reveal { animation: fade-up 0.9s var(--ease-out) both; }
/* ── Boutons tactiles ─────────────────────────────────────── */
.btn {
  --b-bg: var(--espresso); --b-fg: var(--ivory); --b-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85em 1.6em; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; line-height: 1.1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 -2px 0 rgba(0, 0, 0, 0.18) inset, 0 8px 18px -8px rgba(36, 23, 15, 0.55);
  transition: transform 160ms var(--ease), box-shadow 200ms var(--ease), background 200ms;
  -webkit-tap-highlight-color: transparent; isolation: isolate; overflow: hidden; cursor: pointer;
}
.btn::after { /* reflet métallique qui glisse au survol */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(241, 223, 178, 0.28) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform 700ms var(--ease);
}
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); } .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-press); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--brass { --b-bg: var(--brass-gradient); --b-fg: var(--espresso); background: var(--brass-gradient); }
.btn--terracotta { --b-bg: var(--terracotta-deep); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --b-bd: var(--ink); }
.btn--light { --b-bg: rgba(251, 248, 242, 0.92); --b-fg: var(--espresso); }
.btn--outline-light { --b-bg: transparent; --b-fg: var(--ivory); --b-bd: rgba(245, 239, 228, 0.5); box-shadow: none; }
.btn--sm { min-height: 38px; padding: 0.6em 1.1em; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn--danger { --b-bg: var(--danger); }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; font-size: inherit; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.03em; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.link-arrow:hover { color: var(--terracotta-deep); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: inherit; position: relative; text-decoration: none;
  transition: background 200ms, border-color 200ms;
}
.icon-btn:hover { background: rgba(36, 23, 15, 0.06); }
.icon-btn .count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--terracotta-deep); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.icon { width: 20px; height: 20px; flex: none; }

/* ── Formulaires (surfaces planes et lisibles) ─────────────── */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field .error, .form-error { font-size: var(--fs-sm); color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #fffdf9; border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color 160ms, box-shadow 160ms;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2324170f' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; padding: 6px 0; min-height: 32px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--espresso); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-family: var(--font-serif); font-size: var(--fs-xl); margin-bottom: 12px; padding: 0; }

/* Options radio en tuiles */
.choice { display: grid; gap: 10px; }
.choice label {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: #fffdf9; cursor: pointer; transition: border-color 160ms, box-shadow 160ms;
}
.choice label:has(input:checked) { border-color: var(--espresso); box-shadow: 0 0 0 1px var(--espresso), var(--shadow-1); }
.choice label:has(input:disabled) { opacity: 0.55; cursor: not-allowed; background: var(--surface-2); }
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--espresso); flex: none; }
.choice .c-title { font-weight: 600; }
.choice .c-meta { font-size: var(--fs-sm); color: var(--ink-2); }
.choice .c-price { margin-left: auto; font-weight: 600; white-space: nowrap; }

/* Sélecteur de variante */
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pills label { position: relative; }
.variant-pills input { position: absolute; opacity: 0; inset: 0; }
.variant-pills span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fffdf9; font-size: var(--fs-sm); cursor: pointer;
}
.variant-pills input:checked + span { border-color: var(--espresso); background: var(--espresso); color: var(--ivory); }
.variant-pills input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.variant-pills input:disabled + span { text-decoration: line-through; opacity: 0.5; cursor: not-allowed; }

/* Quantité */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: #fffdf9; height: 48px; }
.stepper button { width: 44px; height: 100%; border: 0; background: none; font-size: 18px; border-radius: 999px; }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper input, .stepper output { width: 40px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.stepper--sm { height: 36px; }
.stepper--sm button { width: 34px; }

/* ── Badges, puces, alertes ───────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
  background: rgba(251, 248, 242, 0.92); color: var(--espresso); border: 1px solid var(--line);
}
.badge--unique { background: var(--espresso); color: var(--brass-light); border-color: transparent; }
.badge--new { background: var(--terracotta-deep); color: #fff; border-color: transparent; }
.badge--demo { background: #fff3cd; color: #6b4b00; border-color: #e3c56b; }
.badge--out { background: var(--surface-2); color: var(--ink-2); }
.badge--ok { background: #e6efe2; color: var(--success); border-color: #c7d9bf; }
.badge--warn { background: #fbefd9; color: var(--warning); border-color: #ecd3a6; }
.badge--danger { background: #f8e2dd; color: var(--danger); border-color: #ebc0b6; }
.badge--info { background: #e3e8f6; color: var(--info); border-color: #c4cdea; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--espresso); color: var(--ivory); font-size: var(--fs-sm); text-decoration: none; min-height: 36px; }
.chip svg { width: 16px; height: 16px; opacity: 0.8; }
.alert { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); font-size: var(--fs-sm); display: flex; gap: 12px; align-items: flex-start; }
.alert--info { background: #eef1fa; border-color: #c9d2ef; }
.alert--warn { background: #fdf4e3; border-color: #efd8a8; }
.alert--danger { background: #fbeeeb; border-color: #efc5bb; }
.alert--ok { background: #eef5eb; border-color: #cddfc4; }
.alert--demo { background: repeating-linear-gradient(135deg, #fff8e1 0 12px, #fff3d0 12px 24px); border-color: #e6cd7a; color: #5c4300; }

/* ── Panneaux flottants, tiroirs, dialogues ────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: clamp(18px, 3vw, 32px); }
.panel--float { box-shadow: var(--shadow-2); }
.scrim { position: fixed; inset: 0; background: rgba(24, 15, 9, 0.42); backdrop-filter: blur(3px); z-index: 80; animation: fade-in 240ms var(--ease) both; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(460px, 100%); z-index: 90; display: flex; flex-direction: column;
  background: var(--paper); box-shadow: -30px 0 80px -20px rgba(24, 15, 9, 0.5);
  border-left: 1px solid var(--line); animation: drawer-in 420ms var(--ease-out) both;
}
.drawer--left { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); animation-name: drawer-in-left; }
.drawer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--brass), transparent); opacity: 0.6; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-in-left { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: var(--fs-xl); margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet { /* panneau bas (mobile) */
  position: fixed; left: 0; right: 0; bottom: 0; max-height: 88svh; z-index: 90; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: 0 -30px 80px -20px rgba(24, 15, 9, 0.5); animation: sheet-in 420ms var(--ease-out) both;
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.dialog {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; pointer-events: none;
}
.dialog__card {
  pointer-events: auto; width: min(960px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); border: 1px solid var(--line);
  animation: dialog-in 420ms var(--ease-out) both; position: relative;
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(0.98) perspective(900px) rotateX(4deg); } to { opacity: 1; transform: none; } }
.dialog__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(251, 248, 242, 0.9); }

/* ── Prix & disponibilité ─────────────────────────────────── */
.price { font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.price s { color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.avail--ok { color: var(--success); }
.avail--low { color: var(--warning); }
.avail--out { color: var(--ink-3); }

/* ── Squelettes de chargement ─────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--ivory-2), #f7f1e6, var(--ivory-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Tableaux (surfaces plates) ──────────────────────────── */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf9; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbf5ea; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { border-bottom: 1px solid var(--line); padding: 10px 4px; }
  .table--cards td { border: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table--cards td::before { content: attr(data-label); font-weight: 600; color: var(--ink-3); text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; }
  .table--cards td.num { justify-content: space-between; }
}

/* Onglets */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 16px; border: 0; background: none; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }

/* Motif géométrique — usage parcimonieux */
.geo-rule { height: 14px; background: var(--zellige) center / 28px 28px repeat-x; opacity: 0.8; }
.khatam { width: 22px; height: 22px; color: var(--brass); }
/* ═══════════ Bandeau, en-tête, navigation ═══════════ */
.announce { background: var(--espresso); color: var(--sand); font-size: var(--fs-xs); letter-spacing: 0.08em; text-align: center; padding: 9px var(--gutter); position: relative; z-index: 31; }
.announce a { color: var(--brass-light); }
.demo-ribbon { background: repeating-linear-gradient(135deg, #f3dc8c 0 14px, #f0d57a 14px 28px); color: #4a3600; font-size: var(--fs-xs); font-weight: 600; text-align: center; padding: 6px var(--gutter); position: relative; z-index: 31; }
.demo-ribbon a { color: inherit; }

.header { position: sticky; top: 0; z-index: 30; transition: background 300ms, box-shadow 300ms, backdrop-filter 300ms; background: rgba(245, 239, 228, 0.86); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid var(--line); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 76px; }
.header__nav { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; }
.header__nav a { text-decoration: none; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.02em; position: relative; padding: 8px 0; white-space: nowrap; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__tools { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.header__burger { display: none; }
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__burger { display: inline-grid; }
  .header__inner { grid-template-columns: auto 1fr auto; min-height: 64px; }
  .header__brand { justify-self: center; }
}
@media (max-width: 420px) { .header__tools .hide-xs { display: none; } }

.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark__star { width: 30px; height: 30px; color: var(--brass); flex: none; }
.wordmark__text { display: grid; line-height: 1; }
.wordmark__small { font-family: var(--font-sans); font-size: 9px; letter-spacing: 0.42em; font-weight: 600; color: var(--ink-3); margin-bottom: 5px; padding-left: 2px; }
.wordmark__big { font-family: var(--font-serif); font-size: 30px; font-weight: 500; letter-spacing: 0.32em; margin-right: -0.32em; }
@media (max-width: 640px) { .wordmark__big { font-size: 24px; letter-spacing: 0.26em; } .wordmark__star { width: 24px; height: 24px; } .wordmark__small { font-size: 8px; } }

.mobile-menu nav { display: grid; gap: 2px; padding: 8px 0 24px; }
.mobile-menu nav a { font-family: var(--font-serif); font-size: 1.7rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .sub { display: grid; gap: 6px; padding-top: 16px; }
.mobile-menu .sub a { font-size: var(--fs-sm); text-decoration: none; padding: 8px 0; }

/* Recherche */
.search-panel { position: fixed; inset: 0 0 auto 0; z-index: 95; background: var(--paper); box-shadow: var(--shadow-3); border-bottom: 1px solid var(--line); animation: search-in 380ms var(--ease-out) both; max-height: 100svh; overflow: auto; }
@keyframes search-in { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.search-panel__bar { display: flex; gap: 12px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.search-panel__bar input { flex: 1; border: 0; background: none; font-family: var(--font-serif); font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); padding: 8px 0; min-width: 0; }
.search-panel__bar input:focus { outline: none; }
.search-results { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding-block: 24px 36px; }
@media (max-width: 760px) { .search-results { grid-template-columns: 1fr; } }
.search-results h3 { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); }
.search-results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.search-results li a { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 8px; border-radius: var(--radius); }
.search-results li a:hover, .search-results li a[aria-selected="true"] { background: var(--ivory-2); }
.search-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--ivory-2); object-fit: contain; padding: 4px; flex: none; }

/* ═══════════ Introduction (chargement raffiné) ═══════════ */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--espresso); color: var(--brass-light); animation: intro-out 600ms var(--ease) 1000ms both; pointer-events: none; }
.intro svg { width: 64px; height: 64px; }
.intro path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 900ms var(--ease) both; }
.intro__word { font-family: var(--font-serif); letter-spacing: 0.5em; margin-top: 18px; font-size: 22px; animation: fade-up 700ms var(--ease) 200ms both; padding-left: 0.5em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
html.intro-seen .intro { display: none; }

/* ═══════════ Scène d'ouverture — niche architecturale 3D ═══════════ */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(ellipse 60% 70% at 72% 40%, rgba(255, 246, 228, 0.9), transparent 70%),
  linear-gradient(180deg, var(--ivory) 0%, #ecdfca 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--stucco); opacity: 0.35; mix-blend-mode: soft-light; pointer-events: none; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); align-items: center; gap: clamp(16px, 4vw, 64px); min-height: min(860px, calc(100svh - 76px)); padding-block: clamp(32px, 5vw, 72px); }
.hero__copy h1 { font-size: var(--fs-hero); font-weight: 400; line-height: 0.98; margin-bottom: 0.4em; letter-spacing: -0.02em; }
.hero__copy h1 .line { display: block; animation: fade-up 1s var(--ease-out) both; }
.hero__copy h1 .line:nth-child(2) { font-style: italic; color: var(--terracotta-deep); animation-delay: 120ms; padding-left: 0.6em; }
.hero__copy p { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; animation: fade-up 1s var(--ease-out) 240ms both; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; animation: fade-up 1s var(--ease-out) 360ms both; }
.hero__meta { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 28px; }
  .hero__copy { text-align: left; }
  .hero__meta { display: none; }
}

.niche { position: relative; aspect-ratio: 0.86; width: min(100%, 540px, 58svh); justify-self: center; perspective: 1500px; perspective-origin: 50% 40%; touch-action: pan-y; }
@media (max-width: 900px) { .niche { width: min(100%, 440px); } }
.niche__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.niche__layer { position: absolute; inset: 0; transform-style: preserve-3d; }
/* Mur enduit percé d'une arche */
.niche__wall {
  position: absolute; inset: 0;
  background: var(--stucco), linear-gradient(180deg, #f0e5d2, #e2d1b4);
  background-size: 300px 300px, cover;
  box-shadow: inset 0 -40px 60px -30px rgba(80, 52, 30, 0.25);
  transform: translateZ(40px);
  -webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 46%, #000 72%, transparent 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 83% 100%, 83.00% 37.38%, 82.72% 33.68%, 81.88% 30.03%, 80.49% 26.52%, 78.58% 23.19%, 76.18% 20.10%, 73.33% 17.31%, 70.09% 14.86%, 66.50% 12.80%, 62.63% 11.16%, 58.54% 9.97%, 54.31% 9.24%, 50.00% 9.00%, 45.69% 9.24%, 41.46% 9.97%, 37.37% 11.16%, 33.50% 12.80%, 29.91% 14.86%, 26.67% 17.31%, 23.82% 20.10%, 21.42% 23.19%, 19.51% 26.52%, 18.12% 30.03%, 17.28% 33.68%, 17.00% 37.38%, 17% 100%, 0 100%);
}
.niche__arch { position: absolute; left: 17%; right: 17%; top: 9%; bottom: 0; border-radius: var(--arch); transform-style: preserve-3d; }
.niche__ring { position: absolute; inset: 0; border-radius: var(--arch); }
.niche__ring--1 { transform: translateZ(40px); box-shadow: inset 0 0 0 1.5px rgba(168, 133, 74, 0.75), inset 0 0 0 7px rgba(239, 228, 208, 0.6); }
.niche__side { position: absolute; top: 37.4%; bottom: 0; width: 74px; transform-origin: 0 50%; background: linear-gradient(90deg, #d6c19c, #a98a62); }
.niche__side--l { left: 17%; transform: translateZ(40px) rotateY(90deg); }
.niche__side--r { left: 83%; transform: translateZ(40px) rotateY(90deg); background: linear-gradient(90deg, #c4a87f, #8f714c); }
.niche__ring--2 { inset: 0 -0.5%; transform: translateZ(18px); background: linear-gradient(90deg, #cdb894, #e8dac3 18%, #e8dac3 82%, #b99f77); }
.niche__ring--3 { transform: translateZ(-6px); background: linear-gradient(90deg, #b39770, #dccbb0 22%, #dccbb0 78%, #a88c66); }
.niche__back {
  position: absolute; inset: 0; border-radius: var(--arch); transform: translateZ(-34px); overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 12%, rgba(255, 238, 205, 0.95), transparent 70%),
    linear-gradient(180deg, #d9c19b 0%, #b8956a 55%, #8e6b45 100%);
  box-shadow: inset 0 30px 60px -20px rgba(60, 38, 20, 0.45), inset 22px 0 40px -18px rgba(60, 38, 20, 0.5), inset -22px 0 40px -18px rgba(60, 38, 20, 0.5);
}
.niche__back::before { content: ""; position: absolute; inset: 0; background-image: var(--stucco); background-size: 260px; opacity: 0.6; mix-blend-mode: soft-light; }
.niche__back::after { /* bandeau de zellige, discret, en bas de niche */
  content: ""; position: absolute; left: 0; right: 0; bottom: 15%; height: 18px; background: var(--zellige) center / 18px 18px repeat-x; opacity: 0.9;
}
.niche__light { position: absolute; inset: 0; border-radius: var(--arch); transform: translateZ(10px); pointer-events: none;
  background: radial-gradient(ellipse 46% 36% at 50% 8%, rgba(255, 244, 220, 0.75), transparent 72%); mix-blend-mode: screen; }
.niche__shelf { position: absolute; left: 17%; right: 17%; bottom: 0; height: 15%; transform: translateZ(4px); transform-style: preserve-3d;
  background: linear-gradient(180deg, #ceb48c 0%, #b39065 30%, #8e6b45 100%); border-top: 1px solid rgba(255, 240, 210, 0.6); }
.niche__shelf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brass-gradient); opacity: 0.85; }
.niche__floor { position: absolute; left: -14%; right: -14%; bottom: -6%; height: 8%; transform: translateZ(60px); background: linear-gradient(180deg, #d9c6a6, #cbb48f); border-top: 1px solid rgba(255, 255, 255, 0.4); -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }

.niche__item { position: absolute; transform-style: preserve-3d; transform: translateZ(var(--z, 0px)) translateX(-50%); bottom: var(--b, 21%); left: var(--x, 50%); width: var(--w, 30%); transition: transform 600ms var(--ease-out); }
.niche__item a { display: block; position: relative; }
.niche__item img { width: 100%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 18px 18px rgba(50, 30, 15, 0.35)) drop-shadow(0 2px 2px rgba(50, 30, 15, 0.3)); transition: transform 500ms var(--ease-out), filter 500ms; transform-origin: 50% 100%; }
.niche__item::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -3%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(45, 26, 12, 0.55), transparent 70%); z-index: 0; }
.niche__item:hover img, .niche__item a:focus-visible img { transform: translateY(-6px) scale(1.03); filter: drop-shadow(0 26px 22px rgba(50, 30, 15, 0.38)) drop-shadow(0 2px 2px rgba(50, 30, 15, 0.3)); }
.niche__item .tag { position: absolute; left: 50%; bottom: 104%; transform: translate(-50%, 6px); opacity: 0; transition: 300ms var(--ease); white-space: nowrap; z-index: 3; background: rgba(36, 23, 15, 0.88); color: var(--ivory); font-size: 11px; letter-spacing: 0.06em; padding: 6px 10px; border-radius: 999px; pointer-events: none; }
.niche__item:hover .tag, .niche__item a:focus-visible .tag { opacity: 1; transform: translate(-50%, 0); }
.niche__plate img { filter: drop-shadow(0 10px 12px rgba(50, 30, 15, 0.35)); }
.niche__plate::after { display: none; }
.niche__flooritem img { transform: rotateX(64deg); transform-origin: 50% 100%; filter: drop-shadow(0 30px 16px rgba(50, 30, 15, 0.35)); }
.niche__flooritem:hover img { transform: rotateX(58deg) translateY(-4px); }
.niche__flooritem::after { bottom: 2%; height: 22%; left: 4%; right: 4%; }
.niche__caption { position: absolute; left: 0; right: 0; bottom: -2.6rem; text-align: center; font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: 0.08em; }

/* ═══════════ Fiches produits (cartes) ═══════════ */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(12px, 1.6vw, 24px); }
.pgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pgrid, .pgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard__media {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 80% 60% at 50% 32%, #fffaf2 0%, #f1e7d6 62%, #e6d7bf 100%);
  box-shadow: inset 0 0 0 1px rgba(36, 23, 15, 0.05);
  transition: box-shadow 400ms var(--ease), transform 500ms var(--ease-out);
}
.pcard__media::before { /* plinthe */ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 17%; background: linear-gradient(180deg, rgba(185, 159, 119, 0.12), rgba(185, 159, 119, 0.28)); border-top: 1px solid rgba(255, 255, 255, 0.5); z-index: -1; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 11% 10% 12%; transition: opacity 500ms var(--ease), transform 700ms var(--ease-out); filter: drop-shadow(0 14px 14px rgba(50, 30, 15, 0.22)); }
.pcard__img[data-kind="detail"] { object-fit: cover; padding: 0; filter: none; }
.pcard__img--alt { opacity: 0; }
.pcard__shadow { position: absolute; left: 22%; right: 22%; bottom: 10%; height: 5%; border-radius: 50%; background: radial-gradient(ellipse, rgba(45, 26, 12, 0.32), transparent 70%); z-index: -1; transition: transform 500ms var(--ease-out), opacity 500ms; }
@media (hover: hover) {
  .pcard:hover .pcard__media { box-shadow: var(--shadow-2); }
  .pcard:hover .pcard__img:not(.pcard__img--alt) { transform: translateY(-6px) scale(1.025); }
  .pcard:hover .pcard__img--alt + .pcard__img, .pcard:hover .pcard__img--alt { }
  .pcard.has-alt:hover .pcard__img--main { opacity: 0; }
  .pcard.has-alt:hover .pcard__img--alt { opacity: 1; }
  .pcard:hover .pcard__shadow { transform: scale(0.88); opacity: 0.7; }
  .pcard:hover .pcard__quick { opacity: 1; transform: translateY(0); }
}
.pcard__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.pcard__wish { position: absolute; top: 6px; right: 6px; z-index: 3; }
.pcard__quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; opacity: 0; transform: translateY(8px); transition: 300ms var(--ease); }
@media (hover: none) { .pcard__quick { opacity: 1; transform: none; left: auto; right: 8px; bottom: 8px; } .pcard__quick .btn { min-height: 40px; padding: 0 12px; } .pcard__quick .lbl { display: none; } }
.pcard__body { padding: 14px 2px 0; display: grid; gap: 4px; }
.pcard__cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.pcard__name { font-family: var(--font-serif); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.2; text-decoration: none; font-weight: 500; }
.pcard__hit { position: absolute; inset: 0; z-index: 1; }
.pcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard--out .pcard__img { opacity: 0.6; filter: grayscale(0.4); }

/* Wishlist */
.wish-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; display: grid; place-items: center; background: rgba(251, 248, 242, 0.85); backdrop-filter: blur(4px); transition: transform 200ms; }
.wish-btn:active { transform: scale(0.9); }
.wish-btn svg { width: 18px; height: 18px; }
.wish-btn[aria-pressed="true"] svg { fill: var(--terracotta-deep); stroke: var(--terracotta-deep); }

/* ═══════════ Sections d'accueil ═══════════ */
.intro-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.intro-block h2 { font-size: var(--fs-3xl); font-weight: 400; }
.intro-block h2 em { color: var(--terracotta-deep); }
.intro-block p { font-size: var(--fs-lg); color: var(--ink-2); columns: 1; }
@media (max-width: 860px) { .intro-block { grid-template-columns: 1fr; } }

/* Cartes de collection en perspective */
.colgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.colgrid > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1000px) { .colgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .colgrid > :nth-child(1) { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .colgrid { grid-template-columns: 1fr; } .colgrid > :nth-child(1) { grid-column: auto; } }
.tilt { perspective: 1100px; }
.colcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; height: 100%;
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ivory);
  background: var(--tone, var(--espresso)); transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 500ms var(--ease-out), box-shadow 500ms;
  box-shadow: var(--shadow-1);
}
.colcard:hover { box-shadow: var(--shadow-3); }
.colcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255, 240, 210, 0.28), transparent 70%), linear-gradient(180deg, transparent 40%, rgba(15, 9, 5, 0.65)); z-index: 1; pointer-events: none; }
.colcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 236, 200, 0.22), transparent 45%); z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.colcard__img { position: absolute; inset: 9% 18% 36%; width: 64%; height: 55%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45)); transform: translateZ(50px); transition: transform 600ms var(--ease-out); }
.colgrid > :nth-child(1) .colcard__img { inset: 6% 14% 24%; width: 72%; height: 70%; }
.colcard:hover .colcard__img { transform: translateZ(70px) translateY(-6px) scale(1.03); }
.colcard__body { position: relative; z-index: 3; padding: 22px 24px; transform: translateZ(30px); }
.colcard__body h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); margin: 0 0 4px; font-weight: 400; color: #fff; }
.colcard__body p { margin: 0; font-size: var(--fs-sm); color: rgba(245, 239, 228, 0.85); }
.colcard__arch { position: absolute; left: 16%; right: 16%; top: 6%; bottom: 22%; border-radius: var(--arch); border: 1px solid rgba(215, 189, 134, 0.45); z-index: 1; background: radial-gradient(ellipse at 50% 20%, rgba(255, 240, 210, 0.16), transparent 70%); }

/* Carrousel horizontal */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 23%); gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 62%; } }

/* Pièces remarquables : grille asymétrique sur fond espresso */
.remarkable { background: var(--espresso); color: var(--ivory); position: relative; overflow: hidden; }
.remarkable::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 20% 0%, rgba(168, 133, 74, 0.22), transparent 70%); }
.remarkable .eyebrow { color: var(--sand-2); }
.remarkable .section-head p { color: rgba(245, 239, 228, 0.75); }
.remgrid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.remcard { position: relative; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.remcard:nth-child(1) { grid-column: 1 / span 5; grid-row: span 2; }
.remcard:nth-child(2) { grid-column: 6 / span 4; }
.remcard:nth-child(3) { grid-column: 10 / span 3; }
.remcard:nth-child(4) { grid-column: 6 / span 3; }
.remcard:nth-child(5) { grid-column: 9 / span 4; }
.remcard:nth-child(n+6) { grid-column: span 4; }
@media (max-width: 860px) { .remgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .remcard:nth-child(n) { grid-column: auto; grid-row: auto; } .remcard:nth-child(1) { grid-column: span 2; } }
.remcard__stage { position: relative; flex: 1; min-height: 240px; aspect-ratio: auto; border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius); overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 18%, rgba(255, 232, 190, 0.28), transparent 70%), linear-gradient(180deg, #3b2a1f, #24170f); border: 1px solid rgba(215, 189, 134, 0.18); }
.remcard:nth-child(1) .remcard__stage { min-height: 520px; border-radius: 300px 300px var(--radius) var(--radius); }
.remcard__stage img { position: absolute; inset: 10% 12% 12%; width: 76%; height: 78%; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.55)); transition: transform 700ms var(--ease-out); }
.remcard:hover .remcard__stage img { transform: translateY(-8px) scale(1.03); }
.remcard__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; align-items: baseline; }
.remcard__meta h3 { font-size: var(--fs-lg); font-family: var(--font-serif); margin: 0; font-weight: 500; font-size: 1.25rem; }
.remcard__meta .price { color: var(--brass-light); }

/* Matières */
.materials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .materials { grid-template-columns: 1fr; } }
.material { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.material__swatch { height: 170px; position: relative; background-size: cover; background-position: center; }
.material__swatch--photo { background-size: 240%; }
.material__body { padding: 18px 20px 22px; }
.material__body h3 { font-size: 1.45rem; margin-bottom: 6px; }
.material__body p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.tex-ceramique { background: radial-gradient(circle at 30% 30%, #fff 0 2%, transparent 3%), conic-gradient(from 0deg at 50% 50%, #24407f, #2f6fa0, #e9e2d0, #24407f, #b07a32, #24407f); filter: saturate(0.85); }
.tex-ceramique::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 40% at 35% 25%, rgba(255, 255, 255, 0.55), transparent 60%); }
.tex-metal { background: var(--brass-gradient); }
.tex-metal::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px); }
.tex-os { background: linear-gradient(135deg, #efe6d4, #dccdb2); }
.tex-os::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(45deg, rgba(36, 23, 15, 0.55) 0 2px, transparent 2px), linear-gradient(-45deg, rgba(36, 23, 15, 0.55) 0 2px, transparent 2px); background-size: 34px 34px; opacity: 0.5; }
.tex-cuir { background: radial-gradient(ellipse at 30% 20%, #c4683f, #7b2f1b 70%); }
.tex-cuir::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 1; mix-blend-mode: multiply; }
.tex-bois { background: repeating-linear-gradient(100deg, #6b4428 0 6px, #7c5233 6px 9px, #5e3a22 9px 16px); }
.tex-lin { background: repeating-linear-gradient(0deg, #e6dccb 0 2px, #ddd1bd 2px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 2px, transparent 2px 4px); }

/* Shop the scene */
.scene { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-2); }
@media (max-width: 760px) { .scene { aspect-ratio: 4 / 5; } }
.scene__bg { position: absolute; inset: 0; z-index: -1; }
.scene__arch { position: absolute; left: 32%; right: 32%; top: 8%; bottom: 22%; border-radius: 999px 999px 0 0; background: var(--arch-c, #3d5aa8); box-shadow: inset 0 30px 60px -20px rgba(0,0,0,.35), inset 18px 0 30px -14px rgba(0,0,0,.3), inset -18px 0 30px -14px rgba(0,0,0,.3); }
.scene__arch::before { content: ""; position: absolute; inset: -10px -10px 0; border-radius: inherit; border: 1px solid rgba(168, 133, 74, .6); }
@media (max-width: 760px) { .scene__arch { left: 18%; right: 18%; } }
.scene__item--floor img { transform: perspective(600px) rotateX(58deg); transform-origin: 50% 100%; }
.scene__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18)); border-top: 1px solid rgba(255, 255, 255, 0.25); }
.bg-arch-indigo { --arch-c: #34509c; background: radial-gradient(ellipse 60% 50% at 50% 10%, rgba(255, 240, 210, 0.5), transparent 70%), linear-gradient(180deg, #ebdfca, #d6c3a2); }
.bg-arch-espresso { --arch-c: #3a2a20; background: radial-gradient(ellipse 60% 50% at 50% 10%, rgba(255, 240, 210, 0.5), transparent 70%), linear-gradient(180deg, #ebdfca, #d6c3a2); }
.bg-arch-terracotta { --arch-c: #a54d33; background: radial-gradient(ellipse 60% 50% at 50% 10%, rgba(255, 240, 210, 0.5), transparent 70%), linear-gradient(180deg, #ebdfca, #d6c3a2); }
.bg-arch-sand { --arch-c: #c7ad85; background: radial-gradient(ellipse 60% 50% at 50% 10%, rgba(255, 240, 210, 0.5), transparent 70%), linear-gradient(180deg, #ebdfca, #d6c3a2); }
.scene__item { position: absolute; transform: translate(-50%, -50%); width: var(--w); z-index: var(--z); }
.scene__item img { width: 100%; filter: drop-shadow(0 20px 20px rgba(40, 24, 12, 0.4)); }
.hotspot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.hotspot::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: rgba(251, 248, 242, 0.95); box-shadow: 0 0 0 6px rgba(251, 248, 242, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3); transition: transform 200ms; }
.hotspot::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(251, 248, 242, 0.9); animation: pulse 2.4s infinite var(--ease); }
.hotspot:hover::before, .hotspot[aria-expanded="true"]::before { transform: scale(1.2); background: var(--brass-light); }
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.hotspot-card { position: absolute; z-index: 10; width: min(280px, 80%); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 12px; display: flex; gap: 12px; align-items: center; animation: fade-up 300ms var(--ease-out) both; }
.hotspot-card img { width: 64px; height: 64px; object-fit: contain; background: var(--ivory-2); border-radius: 8px; padding: 4px; }
.scene-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.scene-tabs button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 10px 18px; font-size: var(--fs-sm); min-height: 44px; }
.scene-tabs button[aria-selected="true"] { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

/* Journal */
.jgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
@media (max-width: 900px) { .jgrid { grid-template-columns: 1fr; } }
.jcard { text-decoration: none; display: grid; gap: 12px; }
.jcard__img { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: radial-gradient(ellipse at 50% 30%, #fffaf1, #eadcc5); overflow: hidden; position: relative; }
.jcard__img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(50, 30, 15, 0.25)); transition: transform 700ms var(--ease-out); }
.jcard:hover .jcard__img img { transform: scale(1.04) rotate(-1deg); }
.jcard h3 { margin: 0; font-size: 1.6rem; }
.jcard p { color: var(--ink-2); margin: 0; font-size: var(--fs-sm); }

/* Visite / newsletter */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.visit__art { min-height: 320px; position: relative; background: linear-gradient(180deg, #d9c19b, #8e6b45); }
.visit__art::before { content: ""; position: absolute; left: 22%; right: 22%; top: 12%; bottom: 0; border-radius: var(--arch); background: linear-gradient(180deg, #f6ead2, #e2cfae); box-shadow: inset 0 20px 40px -10px rgba(0, 0, 0, 0.25); }
.visit__art img { position: absolute; left: 50%; bottom: 8%; width: 42%; transform: translateX(-50%); filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.35)); }
.visit__body { padding: clamp(24px, 4vw, 56px); }
.hours { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.hours li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.unverified { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #6b4b00; background: #fff3cd; border: 1px solid #e3c56b; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.newsletter { background: var(--espresso); color: var(--ivory); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: var(--zellige) center / 40px 40px; opacity: 0.25; border-radius: 50%; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter .input { background: rgba(255, 255, 255, 0.06); border-color: rgba(245, 239, 228, 0.3); color: var(--ivory); }
.newsletter .input::placeholder { color: rgba(245, 239, 228, 0.6); }
.newsletter .check { color: rgba(245, 239, 228, 0.85); }

/* ═══════════ Pied de page ═══════════ */
.footer { background: var(--espresso); color: rgba(245, 239, 228, 0.82); margin-top: clamp(48px, 8vw, 120px); position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--brass-gradient); opacity: 0.8; }
.footer a { color: var(--ivory); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: 32px; padding-block: 64px 40px; }
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer h2 { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--brass-light); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.footer .wordmark { color: var(--ivory); }
.footer .wordmark__small { color: var(--sand-2); }
.footer__bottom { border-top: 1px solid rgba(245, 239, 228, 0.12); padding-block: 20px 28px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: var(--fs-xs); color: rgba(245, 239, 228, 0.65); }

/* ═══════════ Catalogue ═══════════ */
.page-hero { padding-block: clamp(32px, 5vw, 72px) clamp(20px, 3vw, 40px); position: relative; }
.page-hero h1 { margin-bottom: 0.2em; }
.breadcrumb { font-size: var(--fs-xs); color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 960px) { .catalog { grid-template-columns: 1fr; } .catalog__filters--desktop { display: none; } }
@media (min-width: 961px) { .only-mobile { display: none !important; } }
.catalog__filters { position: sticky; top: 100px; max-height: calc(100svh - 120px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.filter-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-group summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; font-weight: 400; font-size: 18px; color: var(--ink-3); }
.filter-group[open] summary::after { content: "–"; }
.filter-group .opts { display: grid; gap: 2px; padding-top: 8px; }
.filter-group .count { color: var(--ink-3); font-size: var(--fs-xs); margin-left: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-xs); background: #fffdf9; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); background: var(--c); }
.swatch input:checked + span { border-color: var(--espresso); box-shadow: 0 0 0 1px var(--espresso); }
.swatch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.empty { text-align: center; padding: clamp(40px, 8vw, 96px) 16px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.empty svg { margin: 0 auto 16px; width: 56px; height: 56px; color: var(--brass); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: var(--fs-sm); padding: 0 12px; }
.pagination [aria-current="page"] { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.cat-strip a { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: var(--fs-sm); min-height: 40px; display: inline-flex; align-items: center; }
.cat-strip a[aria-current="true"] { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

/* ═══════════ Fiche produit ═══════════ */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding-top: 12px; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } }
.pdp__info { position: sticky; top: 96px; }
@media (max-width: 960px) { .pdp__info { position: static; } }
.pdp__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); font-weight: 400; margin-bottom: 6px; }
.pdp__subtitle { color: var(--ink-3); font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.pdp__price { font-size: 1.5rem; margin: 12px 0 4px; }
.pdp__buy { display: grid; gap: 14px; margin: 24px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.pdp__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pdp__actions .btn--primary { flex: 1; min-width: 200px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; font-size: var(--fs-sm); margin: 0; }
.specs dt { color: var(--ink-3); font-weight: 600; }
.specs dd { margin: 0; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 600; min-height: 52px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 300ms; margin-right: 4px; }
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion .acc-body { padding: 0 0 18px; color: var(--ink-2); font-size: var(--fs-sm); }

/* Galerie */
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery__thumbs { order: 2; flex-direction: row !important; overflow-x: auto; } }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumbs button { width: 76px; height: 76px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 30%, #fffaf2, #ece0cc); padding: 6px; overflow: hidden; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--espresso); box-shadow: 0 0 0 1px var(--espresso); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs img[data-kind="detail"] { object-fit: cover; }
.stage { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; isolation: isolate;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #fffbf4, #efe3cf 65%, #e2d0b2); }
.stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: linear-gradient(180deg, rgba(185, 159, 119, 0.12), rgba(185, 159, 119, 0.32)); border-top: 1px solid rgba(255, 255, 255, 0.55); z-index: -1; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; filter: drop-shadow(0 26px 22px rgba(50, 30, 15, 0.28)); animation: fade-in 400ms var(--ease) both; }
.stage img[data-kind="detail"] { object-fit: cover; padding: 0; filter: none; }
.stage__lens { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 220%; opacity: 0; transition: opacity 200ms; pointer-events: none; z-index: 2; background-color: #f4ead8; }
.stage.is-zooming .stage__lens { opacity: 1; }
.stage__hint { position: absolute; right: 12px; bottom: 12px; z-index: 3; font-size: 11px; letter-spacing: 0.06em; background: rgba(251, 248, 242, 0.9); padding: 6px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.stage--statement { aspect-ratio: 4 / 5; border-radius: 360px 360px var(--radius-lg) var(--radius-lg);
  background: radial-gradient(ellipse 60% 40% at 50% 10%, rgba(255, 232, 190, 0.35), transparent 70%), linear-gradient(180deg, #3e2d21, #24170f); }
.stage--statement::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35)); border-top-color: rgba(215, 189, 134, 0.3); }
.stage--statement img { filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.6)); padding: 10% 12% 9%; }
.stage--statement .stage__lens { background-color: #2b1d14; }
.stage--small img { padding: 16%; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(20, 12, 7, 0.94); display: grid; place-items: center; touch-action: none; }
.lightbox img { max-width: 96vw; max-height: 92svh; object-fit: contain; transition: transform 200ms; cursor: grab; }
.lightbox .icon-btn { color: var(--ivory); position: absolute; background: rgba(255, 255, 255, 0.08); }
.model-wrap { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #fffbf4, #e2d0b2); }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(251, 248, 242, 0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform 300ms var(--ease-out); box-shadow: 0 -10px 30px -10px rgba(36, 23, 15, 0.2); }
.buybar.is-visible { transform: none; }
.buybar img { width: 48px; height: 48px; object-fit: contain; background: var(--ivory-2); border-radius: 8px; padding: 3px; }
.buybar .grow { min-width: 0; }
.buybar .name { font-family: var(--font-serif); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
@media (min-width: 961px) { .buybar { display: none; } }

/* ═══════════ Panier ═══════════ */
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line__img { width: 84px; height: 84px; border-radius: 10px; background: radial-gradient(ellipse at 50% 30%, #fffaf2, #ece0cc); padding: 6px; object-fit: contain; }
.cart-line__name { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.2; text-decoration: none; }
.cart-line__issue { color: var(--danger); font-size: var(--fs-xs); margin-top: 4px; }
.totals { display: grid; gap: 8px; font-size: var(--fs-sm); }
.totals .row { justify-content: space-between; }
.totals .total { font-size: var(--fs-lg); font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .cart-page { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 96px; }

/* ═══════════ Checkout ═══════════ */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .checkout .summary { position: static; order: -1; } }
.steps { display: flex; gap: 8px; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; flex-wrap: wrap; }
.steps b { color: var(--ink); }
.test-banner { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); padding: 10px 14px; border-radius: var(--radius); background: #eef1fa; border: 1px dashed #8b9bd3; color: #22336b; }

/* ═══════════ Compte ═══════════ */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } }
.account__nav { display: grid; gap: 2px; position: sticky; top: 96px; }
@media (max-width: 860px) { .account__nav { position: static; display: flex; overflow-x: auto; gap: 6px; } .account__nav a { white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; } }
.account__nav a { text-decoration: none; padding: 10px 14px; border-radius: 10px; font-size: var(--fs-sm); min-height: 44px; display: flex; align-items: center; }
.account__nav a[aria-current="page"] { background: var(--espresso); color: var(--ivory); }
.auth-card { max-width: 480px; margin: clamp(24px, 5vw, 64px) auto; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; font-size: var(--fs-sm); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 20px 0; }
.track span { height: 4px; border-radius: 2px; background: var(--line-2); }
.track span.on { background: var(--brass-gradient); }
.track-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* Éditorial */
.prose { font-size: var(--fs-lg); color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 1.6em; font-size: var(--fs-2xl); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; font-family: var(--font-serif); font-size: 1.35rem; padding: 18px 0; list-style: none; color: var(--ink); min-height: 52px; }
.qa summary::-webkit-details-marker { display: none; }
.qa p { padding-bottom: 18px; margin: 0; }
.review-note { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-xs); background: #fff3cd; color: #5c4300; border: 1px solid #e3c56b; padding: 6px 10px; border-radius: 6px; margin-bottom: 18px; }

/* Paiement test */
.paybox { max-width: 520px; margin: 40px auto; }
.paybox .card-visual { aspect-ratio: 1.6; border-radius: 16px; background: linear-gradient(135deg, #2c3e7a, #182654); color: #e7ecff; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; font-family: ui-monospace, monospace; box-shadow: var(--shadow-2); }
@media (max-width: 900px) { .editorial-grid { grid-template-columns: 1fr !important; } }
@media print { .header, .footer, .announce, .demo-ribbon, .no-print, .buybar { display: none !important; } body::before { display: none; } .panel { box-shadow: none; border: 0; } }

[hidden] { display: none !important; }
