/* Revart — charte (docs/CHARTE.md), direction 3C « Observatoire » (docs/design/site-direction/accueil-3c2.html).
   Une seule feuille : tokens, composants, pages publiques, webapp, Studio, WebAR, impression.
   Site en mode clair seulement (Gary, 2026-10-18) : aucun thème sombre, aucun choix de thème. */

/* Polices (Gary, 2026-10-18) : Fraunces pour les titres et le titre italique des cartels (axes « SOFT » 100, « WONK » 1,
   graisse 600), DM Sans pour le texte et l'interface. Licence OFL, servies depuis ce serveur (/fonts), rien chez Google.
   Le logo Revart est dessiné (SVG), il ne dépend d'aucune police. */
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-italic-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-latin.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-latin-ext.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-italic-latin.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-italic-latin-ext.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F6F2EA; --surface: #FFFDF8; --surface-2: #EEE7DB; --line: #DED4C5;
  --text: #191612; --text-2: #4D463F; --text-3: #6B635A;
  --gold: #C99A45; --on-gold: #191612; --gold-text: #835E1E; --logo-gold: #AA7E2E;
  --danger: #A3362C; --success: #2F6E40; --warning: #8A5A0C;
  --scrim: rgba(14, 12, 10, .55);
  --wall: #E7DFD1;
  --st-wall: #ECE6DC; --st-ceiling: #F3EFE8; --st-floor: #CDB99B; --st-plinth: #DDD4C6; --st-edge: #8C8378; --st-paper: #FFFDF8; --st-ink: #191612; --st-ink-2: #6B635A;
  --shadow: 0 1px 2px rgba(25, 22, 18, .06), 0 10px 30px -12px rgba(25, 22, 18, .22);
  --art-shadow: 0 30px 60px -36px rgba(25, 22, 18, .38);
  --hang: 0 2px 3px rgba(25, 22, 18, .12), 0 18px 40px -18px rgba(25, 22, 18, .45);
  --edge: transparent;
  --hair: color-mix(in srgb, var(--logo-gold) 45%, transparent); /* filet d'or fin, uni */
  --hero-wall: radial-gradient(1100px 620px at 72% 42%, rgba(255, 250, 238, .95), rgba(255, 250, 238, 0) 70%), linear-gradient(180deg, #EFE8DC, #E5DCCB);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --r-field: 10px; --r-card: 16px; --r-sheet: 22px; --r-pill: 999px; --r-label: 6px;
  --gutter: clamp(16px, 4vw, 72px); --max: 1920px;
  /* Mise en page « mix » : le texte dans une colonne de 1440 px au plus, les œuvres peuvent en sortir (.bleed). */
  --col: 1440px; --side: max(var(--gutter), (100vw - var(--col)) / 2); --c1: calc(min(var(--col), 100vw - 2 * var(--gutter)) / 12);
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; -webkit-tap-highlight-color: rgba(201, 154, 69, .18); scrollbar-color: color-mix(in srgb, var(--text-3) 55%, transparent) transparent; caret-color: var(--gold-text); }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans); overflow-x: hidden; overflow-x: clip; overflow-wrap: break-word;
  font-variation-settings: "SOFT" 100, "WONK" 1; /* axes de Fraunces (titres, cartels) ; DM Sans les ignore */
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, video, svg, canvas { max-width: 100%; }
img, video { height: auto; display: block; }
svg { display: inline-block; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.015em; text-wrap: balance; font-optical-sizing: auto; }
h1, h2, h3 { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(34px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: .8em; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-gold); }
[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; }
.i { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.i-lg { width: 24px; height: 24px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 15px; }
.tiny { font-size: 13px; }
.serif { font-family: var(--serif); }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right)); }
.measure { max-width: 70ch; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.smallcaps { font: 600 12.5px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--on-gold); border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- en-tête */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px/1 var(--serif); letter-spacing: .01em; min-height: 44px; }
/* Logo Revart : le nom en tracés (Outfit Medium), le a doré. */
.rv-word { display: block; height: 28px; width: auto; overflow: visible; }
.rv-ink { fill: currentColor; }
.rv-gold { fill: var(--logo-gold); }
.brand-tag { font: 600 11px/1 var(--sans); letter-spacing: .04em; color: var(--text-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 7px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
/* Liens du menu en petites capitales espacées (maquette 3C) ; la page courante est soulignée d'un filet d'or. */
.nav a, .header-actions .link { color: var(--text); text-decoration: none; font: 600 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav a:hover, .header-actions .link:hover { color: var(--gold-text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .8em; text-decoration-thickness: 1px; }
.nav { gap: 10px; margin-left: clamp(16px, 2.4vw, 40px); }
.header-actions .link .i { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang-link { font: 600 13px/1 var(--sans); letter-spacing: .04em; }
.menu { display: none; margin-left: auto; position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; font-size: 15px; font-weight: 600; background: var(--surface); }
.menu > summary::-webkit-details-marker { display: none; }
.menu .menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 2 * var(--gutter))); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px; }
.menu .menu-panel a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 48px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 17px; }
.menu .menu-panel a:hover { background: var(--surface-2); }
.menu .menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
.menu .menu-panel a.menu-cta { margin-top: 6px; justify-content: center; background: var(--gold); color: var(--on-gold); font-weight: 600; border-radius: var(--r-pill); }
.menu .menu-panel a[aria-current="page"] { background: var(--surface-2); font-weight: 600; }
.menu .menu-panel { overscroll-behavior: contain; }
@media (max-width: 1199px) {
  .nav, .header-actions { display: none; }
  .menu { display: block; }
}

/* ---------------------------------------------------------------- pied de page */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 15px; }
.site-footer .container { padding-block: 48px 32px; display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 600 13px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--text); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover { text-decoration: underline; }
.footer-blurb p { max-width: 38ch; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.draft-mark { display: inline-block; font: 600 12px/1.3 var(--sans); color: var(--warning); border: 1px solid currentColor; border-radius: var(--r-pill); padding: 3px 10px; }

/* Choix du thème (segmenté) */
.segmented { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.segmented button { appearance: none; border: 0; background: transparent; color: var(--text-2); font: 600 13px/1 var(--sans); padding: 0 12px; min-height: 36px; border-radius: var(--r-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.segmented .i { width: 16px; height: 16px; vertical-align: 0; }

/* ---------------------------------------------------------------- boutons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); white-space: nowrap; }
.btn:hover { border-color: var(--text-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: color-mix(in srgb, var(--gold) 88%, var(--text)); border-color: color-mix(in srgb, var(--gold) 88%, var(--text)); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.btn-danger:hover { border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
/* Boutons d'appel de la maquette 3C : capitales espacées, flèche dans une pastille. */
.btn-caps { text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; }
.btn-caps.btn-sm { font-size: 12px; padding: 0 20px; }
.btn-arrow { min-height: 52px; padding: 0 8px 0 26px; gap: 14px; }
.btn-arrow i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--on-gold) 12%, transparent); font-style: normal; transition: transform .5s var(--ease-out); }
.btn-arrow i svg { width: 14px; height: 14px; }
.btn-arrow:hover i { transform: translate(2px, -1px) scale(1.05); }
.link-caps { display: inline-flex; align-items: center; min-height: 48px; text-transform: uppercase; letter-spacing: .16em; font: 600 12.5px/1 var(--sans); color: var(--gold-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .7em; padding: 0 2px; transition: text-underline-offset .5s var(--ease-out); }
.link-caps:hover { text-underline-offset: .45em; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn[aria-pressed="true"] { border-color: var(--gold-text); color: var(--gold-text); }
.btn .spinner { width: 16px; height: 16px; }
.link-btn { appearance: none; background: none; border: 0; padding: 8px 4px; min-height: 44px; color: var(--gold-text); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-btn.danger { color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 480px) { .btn-row.stretch > .btn { flex: 1 1 100%; } }
.badge-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px dashed var(--text-3); color: var(--text-2); font: 600 14px/1.2 var(--sans); }
.badge-soon svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- champs */
.field { display: grid; gap: 6px; }
.field > label, .field > .label, fieldset > legend { font: 600 15px/1.3 var(--sans); color: var(--text); }
.field .hint { font-size: 14px; color: var(--text-2); }
.field .error { font-size: 14px; color: var(--danger); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-field); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 400 16px/1.4 var(--sans);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--gold-text); outline-offset: 0; border-color: transparent; background: var(--surface); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 56px; }
.input-wrap .reveal { position: absolute; right: 4px; top: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold-text); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.choice-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .choice-body { display: grid; gap: 4px; height: 100%; padding: 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.choice .choice-title { font: 600 18px/1.3 var(--serif); }
.choice .choice-text { font-size: 15px; color: var(--text-2); }
.choice input:checked + .choice-body { border-color: var(--gold-text); box-shadow: 0 0 0 1px var(--gold-text); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
input[type="range"] { width: 100%; accent-color: var(--gold-text); min-height: 32px; }
.range-value { font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: right; color: var(--text-2); }
input[type="color"] { width: 48px; height: 40px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }

/* ---------------------------------------------------------------- puces, score, progression */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 11px; border-radius: var(--r-pill); font: 600 13px/1.2 var(--sans); border: 1px solid currentColor; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-published, .chip-approved { color: var(--success); }
.chip-processing, .chip-pending { color: var(--text-2); }
.chip-processing::before, .chip-pending::before { animation: pulse 1.4s ease-in-out infinite; }
.chip-needs_attention { color: var(--warning); }
.chip-unpublished, .chip-rejected { color: var(--text-3); }
.chip-removed { color: var(--danger); }
.chip-draft { color: var(--text-2); }
.chip-posted { color: var(--success); }
.chip-scheduled { color: var(--gold-text); white-space: normal; }
.chip-unposted { color: var(--text-2); }
.badge-artist { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 3px 10px; border-radius: var(--r-pill); font: 600 12px/1.2 var(--sans); letter-spacing: .02em; vertical-align: middle; white-space: nowrap; color: var(--gold-text, var(--gold)); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.badge-artist .i { width: 13px; height: 13px; }
h1 + .badge-artist { margin: 8px 0 0; }
.chip-neutral { color: var(--text-2); }
.chip-neutral::before { display: none; }
@keyframes pulse { 50% { opacity: .25; } }
.quality { display: grid; gap: 10px; }
.quality-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.quality-label { font: 600 20px/1.2 var(--serif); }
.quality-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: 260px; }
.quality-meter span { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.quality-meter span.on { background: var(--gold); border-color: var(--gold); }
.quality.low .quality-meter span.on { background: var(--warning); border-color: var(--warning); }
.quality-details { display: grid; gap: 4px; font-size: 14px; color: var(--text-2); margin: 0; padding: 0; list-style: none; }
.quality-details li { display: flex; justify-content: space-between; gap: 12px; max-width: 360px; border-bottom: 1px dotted var(--line); padding: 3px 0; }
.advice { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s linear; }
.progress.indeterminate > span { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.spinner { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- cartel (composant central) */
/* Cartel de musée sous l'œuvre (charte §8) : titre en italique, artiste, « année · technique · dimensions ». */
.cartel { margin-top: 24px; max-width: 62ch; }
.cartel-title { font: italic 600 clamp(26px, 3vw, 38px)/1.12 var(--serif); letter-spacing: -.015em; margin: 0; }
.cartel-artist { margin-top: 10px; font: 600 11.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.cartel-artist a { color: var(--text); text-decoration-color: var(--gold); }
.cartel-meta { margin-top: 6px; font: 400 15px/1.5 var(--sans); color: var(--text-3); }
.cartel-story { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 17px/1.65 var(--sans); color: var(--text-2); }
.cartel-story p + p { margin-top: .7em; }
.cartel-credit { margin-top: 16px; font-size: 13px; color: var(--text-3); }
.cartel-credit a { color: var(--text-3); }

/* ---------------------------------------------------------------- mur, œuvres, cartes */
.wall { background: var(--wall); border-radius: var(--r-sheet); padding: clamp(20px, 5vw, 56px); display: grid; place-items: center; position: relative; }
.hung { box-shadow: var(--hang); background: var(--surface-2); }
.art-grid { columns: 2; column-gap: 16px; }
@media (min-width: 720px) { .art-grid { columns: 3; column-gap: 24px; } }
@media (min-width: 1080px) { .art-grid { columns: 4; } }
@media (min-width: 1400px) { .art-grid { columns: 5; column-gap: 28px; } }
@media (min-width: 1700px) { .art-grid { columns: 6; } }
.art-card { break-inside: avoid; margin: 0 0 24px; display: block; color: var(--text); text-decoration: none; }
.art-card .art-frame { display: block; position: relative; overflow: hidden; border-radius: 4px; background: var(--surface-2); box-shadow: var(--hang); }
.art-card img { width: 100%; height: auto; }
.art-card video { position: absolute; left: 0; top: 50%; width: 100%; height: auto; transform: translateY(-50%); opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
.art-card.is-playing video { opacity: 1; }
/* Cartel sous l'œuvre, comme au musée (jamais par-dessus) : titre, artiste et année, technique et dimensions.
   Aligné sur le bord gauche de l'œuvre ; dans les grilles, titre sur 2 lignes au plus, technique sur une ligne
   (le texte entier reste le nom accessible du lien, et la page de l'œuvre le montre en entier). */
.art-cartel { display: grid; gap: 0; padding-top: 14px; min-width: 0; text-align: left; }
.art-cartel .art-title { font: italic 600 clamp(17px, 1.4vw, 21px)/1.22 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.art-cartel .art-artist { margin-top: 6px; font: 600 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-cartel .art-meta { margin-top: 4px; font: 400 14px/1.45 var(--sans); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-grid { list-style: none; margin: 0; padding: 0; }
.art-card:hover .art-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .18em; }
.art-card .fav-dot { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--scrim); color: #fff; display: grid; place-items: center; }
.art-card .fav-dot .i { width: 16px; height: 16px; vertical-align: 0; }
.artist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.artist-chip { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; min-height: 64px; }
.artist-chip:hover { border-color: var(--text-3); }
.artist-chip .name { font: 600 17px/1.25 var(--serif); }
.artist-chip .count { font-size: 13px; color: var(--text-2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; font: 600 18px/1 var(--serif); color: var(--text-2); border: 1px solid var(--line); overflow: hidden; }
.avatar-lg { width: 96px; height: 96px; font-size: 38px; }
.expo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.expo-card { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; height: 100%; }
.expo-card:hover { border-color: var(--text-3); }
.expo-card img, .expo-card .expo-ph { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.expo-card .t { display: block; font: 600 18px/1.25 var(--serif); }
.expo-card .m { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(48px, 8vw, 96px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head p { color: var(--text-2); max-width: 60ch; margin-top: 8px; }
.lede { font: 400 clamp(19px, 2.2vw, 22px)/1.5 var(--sans); color: var(--text-2); max-width: 46ch; }
.page-head { padding-block: clamp(32px, 6vw, 64px) 8px; }
.page-head p { margin-top: 12px; }
.breadcrumb { font-size: 14px; color: var(--text-2); margin: 20px 0 12px; }
.breadcrumb a { color: var(--text-2); }

/* L'œuvre dans son cadre (doré par défaut : moulure, passe-partout), ombre portée sur le mur. Les proportions viennent
   de --ar (hauteur / largeur réelles), posé sur le cadre ou son conteneur : le cadre ne le redéfinit jamais. */
.picture-frame { position: relative; width: calc(min(100cqw - var(--fm), (var(--stage-h) - var(--fm)) / var(--ar)) + var(--fm)); max-width: 100%;
  border: var(--fw) solid transparent; border-image: linear-gradient(135deg, #7A5618 0%, #C9973F 17%, #F2DB9E 38%, #D5A653 52%, #E9C77A 66%, #A47628 84%, #6B4A13 100%) 1;
  background: #F4EFE5; transition: width .5s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(64, 42, 10, .55), inset 3px 4px 9px rgba(40, 26, 6, .28), 0 1px 0 rgba(255, 244, 214, .4), 0 3px 4px rgba(40, 26, 8, .3), 0 26px 44px -16px rgba(40, 26, 8, .55), 0 70px 110px -60px rgba(40, 26, 8, .55); }
.picture-frame::before { content: ""; position: absolute; inset: calc(-1 * var(--fw)); pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 238, 190, .45), inset 0 0 0 2px rgba(90, 60, 14, .35); }
.mat { padding: var(--mw); background: linear-gradient(160deg, #F9F5EC, #EDE5D7); }
.canvas.comp { position: relative; width: 100%; aspect-ratio: 1 / var(--ar); overflow: hidden; background: #2A2520; box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 2px rgba(110, 90, 60, .28); perspective: 2400px; }
.canvas.comp > img.comp-target { width: 100%; height: 100%; object-fit: cover; }
.canvas img, .canvas .comp-layers { transition: opacity .45s var(--ease); }
.canvas.is-swapping img, .canvas.is-swapping .comp-layers { opacity: 0; }
/* Reconnaissance : un filet d'or se dessine et un balayage de lumière traverse la toile, puis l'animation apparaît. */
.canvas::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(105deg, rgba(255, 236, 190, 0) 36%, rgba(255, 236, 190, .6) 50%, rgba(255, 236, 190, 0) 64%) 115% 0 / 260% 100% no-repeat; }
.canvas::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(232, 192, 116, 0); }
.canvas.is-sweep::after { animation: g-sweep 1.15s cubic-bezier(.45, .05, .35, 1) forwards; }
.canvas.is-sweep::before { animation: g-seam 1.7s ease-out forwards; }
@keyframes g-sweep { 0% { opacity: 0; background-position: 115% 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; background-position: -15% 0; } }
@keyframes g-seam { 0% { box-shadow: inset 0 0 0 1.5px rgba(232, 192, 116, 0); } 30% { box-shadow: inset 0 0 0 1.5px rgba(232, 192, 116, .95); } 100% { box-shadow: inset 0 0 0 1.5px rgba(232, 192, 116, 0); } }
/* Badges des stores : officiels, « Bientôt disponible », non cliquables */
.stores { margin-top: 30px; display: grid; gap: 10px; justify-items: start; }
.stores-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: block; padding: 0; border: 0; background: none; border-radius: 9px; cursor: not-allowed; }
.store img { display: block; height: 46px; width: auto; }
.stores-soon { font: 600 13px/1.3 var(--sans); letter-spacing: .02em; color: var(--gold-text); }
.stores-compact { margin-top: 4px; gap: 6px; }
.stores-compact .store img { height: 36px; }

/* FAQ (le signe +/− est dessiné, pas un caractère) */
.faq { border-top: 1px solid var(--line); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font: 600 clamp(18px, 1.5vw, 21px)/1.35 var(--sans); letter-spacing: -.01em; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 1.5px; background: var(--gold-text); transition: transform .2s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .answer { padding: 0 0 24px; color: var(--text-2); max-width: 68ch; }


/* ---------------------------------------------------------------- page œuvre */
.artwork-layout { display: grid; gap: clamp(24px, 4vw, 48px); padding-block: 24px 0; align-items: start; }
@media (min-width: 960px) { .artwork-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .artwork-side { position: sticky; top: 88px; } }
.player { position: relative; }
.player-stage { --ar: 1; --fw: clamp(10px, 1.2vw, 20px); --mw: clamp(8px, 1.9vw, 30px); --fm: calc(2 * (var(--fw) + var(--mw))); position: relative; margin-inline: auto; width: min(100%, calc((74vh - var(--fm)) / var(--ar) + var(--fm))); }
.player-stage .picture-frame { width: 100%; }
/* Cadres au choix de l'artiste (frame_style) : épaisseur et passe-partout posés sur le conteneur, qui en déduit la place
   du cadre (--fm) ; règles placées après .player-stage pour les remplacer. */
[data-frame-style="black"] { --fw: clamp(5px, .5vw, 9px); --mw: 0px; }
[data-frame-style="wood"] { --fw: clamp(9px, 1vw, 16px); --mw: 0px; }
[data-frame-style="white"] { --fw: clamp(8px, .85vw, 14px); --mw: clamp(8px, 1.6vw, 24px); }
[data-frame-style="none"] { --fw: 0px; --mw: 0px; }
[data-frame-style="black"] .picture-frame { border-image: linear-gradient(135deg, #3a3531 0%, #0d0c0b 34%, #211e1b 62%, #060505 100%) 1; }
[data-frame-style="wood"] .picture-frame { border-image: linear-gradient(135deg, #a3764a 0%, #d6b487 28%, #c19665 52%, #e0c599 74%, #986c40 100%) 1; }
[data-frame-style="white"] .picture-frame { border-image: linear-gradient(135deg, #d8d3ca 0%, #fbfaf6 36%, #efebe4 66%, #cfcac0 100%) 1; }
[data-frame-style="white"] .mat { background: #FBFAF7; }
[data-frame-style="none"] .picture-frame { box-shadow: 2px 3px 0 rgba(30, 24, 16, .5), 0 3px 4px rgba(40, 26, 8, .3), 0 26px 44px -16px rgba(40, 26, 8, .55), 0 70px 110px -60px rgba(40, 26, 8, .55); }
[data-frame-style]:not([data-frame-style="gold"]) .picture-frame::before { display: none; }
:is([data-frame-style="black"], [data-frame-style="wood"], [data-frame-style="none"]) .canvas.comp { box-shadow: none; }
/* Atelier : aperçu de l'œuvre dans son cadre, et choix du cadre (pastilles dessinées avec les mêmes règles) */
.frame-preview { padding: clamp(18px, 4vw, 32px); }
.frame-preview .player-stage { width: min(100%, calc((56vh - var(--fm)) / var(--ar) + var(--fm))); }
.frame-choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.frame-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; }
.frame-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.frame-choice:has(input:checked) { border-color: var(--gold-text); box-shadow: 0 0 0 1px var(--gold-text); }
.frame-choice:has(input:focus-visible) { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.frame-swatch { --fw: 5px; --mw: 0px; flex: none; display: block; width: 30px; height: 38px; } /* --fw : bordure valide hors d'une scène */
.frame-swatch .picture-frame { display: block; width: 100%; height: 100%; border-width: 5px; background: linear-gradient(160deg, #7a6650, #2A2520); box-shadow: 0 2px 4px rgba(40, 26, 8, .35); }
.frame-swatch .picture-frame::before { display: none; }
.frame-swatch[data-frame-style="black"] .picture-frame { border-width: 3px; }
.frame-swatch[data-frame-style="none"] .picture-frame { border-width: 0; }
.wall-gallery { background: var(--hero-wall); }
.comp { position: relative; overflow: hidden; background: var(--surface-2); box-shadow: var(--hang); perspective: 2400px; }
.comp > img.comp-target { width: 100%; height: auto; }
.comp .comp-layers { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.comp .layer { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; }
.comp .layer > video, .comp .layer > img, .comp .layer > canvas { display: block; width: 100%; height: 100%; object-fit: fill; }
.comp.is-idle .comp-layers { visibility: hidden; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; }
.play-btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: var(--r-pill); background: rgba(14,12,10,.78); color: #F6F2EA; font: 600 16px/1 var(--sans); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.play-btn:hover { background: rgba(14,12,10,.9); }
.player-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 12px; }
.artwork-actions { display: grid; gap: 12px; margin-top: 20px; }
.ar-explain { font-size: 14px; color: var(--text-2); }
.owner-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; }
.rec-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.rec { display: grid; gap: 8px; }
.rec video { width: 100%; aspect-ratio: var(--ratio, 9 / 16); object-fit: cover; border-radius: 12px; background: #000; }
.rec .who { font-size: 14px; color: var(--text-2); }
.related { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; background: var(--surface); }
.pill-link:hover { border-color: var(--text-3); }

/* ---------------------------------------------------------------- page artiste / accrochage */
.profile-head { display: grid; gap: 20px; grid-template-columns: auto 1fr; align-items: center; padding-block: clamp(32px, 6vw, 64px) 8px; }
.profile-head h1 { font-size: clamp(34px, 5vw, 56px); }
.profile-meta { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.profile-bio { max-width: 64ch; font: 400 18px/1.65 var(--sans); color: var(--text-2); }
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; background: var(--surface); }
.social a:hover { border-color: var(--text-3); }
.social .i { width: 18px; height: 18px; vertical-align: 0; }
.expo-head .dates { font: 600 13px/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-top: 14px; }

/* Textes (aide, légal) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose code { font-size: .9em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
.prose a { overflow-wrap: anywhere; }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
.prose .table-wrap table { margin: 0; display: table; }
.prose li + li { margin-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 12px 8px 0; vertical-align: top; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.notice .i { margin-top: 2px; }
.notice.warn { border-color: color-mix(in srgb, var(--warning) 50%, var(--line)); }
.notice.warn .i { color: var(--warning); }
.notice.ok .i { color: var(--success); }
.notice.err { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.notice.err .i { color: var(--danger); }
.dev-banner { background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px); border-bottom: 1px solid var(--line); text-align: center; font: 600 14px/1.4 var(--sans); padding: 10px var(--gutter); color: var(--warning); }

/* États */
.empty { display: grid; gap: 12px; justify-items: start; padding: 32px; border-radius: var(--r-card); border: 1px dashed var(--line); background: var(--surface); }
.empty h3 { font: 400 22px/1.3 var(--serif); }
.empty p { color: var(--text-2); max-width: 56ch; }
.state-error { border-style: solid; border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-line { height: 14px; margin: 8px 0; }
.skel-title { height: 28px; width: 50%; margin: 6px 0 14px; }
.skel-card { height: 96px; border-radius: var(--r-card); margin-bottom: 12px; }
.skel-art { aspect-ratio: 4 / 5; border-radius: 4px; }
.err-page { padding-block: clamp(64px, 12vw, 140px); }
.err-code { font: 600 14px/1 var(--sans); letter-spacing: .08em; color: var(--gold-text); }
.err-page h1 { margin-top: 12px; max-width: 16ch; }
.err-page .lede { margin-top: 16px; }
.err-page .btn-row { margin-top: 28px; }

/* ---------------------------------------------------------------- dialogues, toasts */
dialog.sheet { overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog.sheet::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: rise .2s var(--ease); }
@keyframes rise { from { transform: translateY(12px); opacity: .6; } }
.sheet-body { padding: 24px; display: grid; gap: 16px; }
.sheet-body h2 { font-size: 24px; }
.sheet-actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; padding: 16px 24px 24px; }
@media (max-width: 480px) {
  dialog.sheet { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet-actions > .btn { flex: 1 1 100%; }
}
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: none; /* simple message : un toucher passe à travers (onglets du Studio, barre du bas) */ display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font: 600 15px/1.35 var(--sans); box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); animation: rise .2s var(--ease); }
.toast.err { background: var(--danger); color: var(--bg); }
.toast .i { width: 18px; height: 18px; vertical-align: 0; }

/* ---------------------------------------------------------------- webapp */
.app-head { padding-block: 28px 24px; }
.app-head h1 { font-size: clamp(30px, 4vw, 44px); }
.subnav { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 2px; margin: 20px 0 28px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; color: var(--text-2); text-decoration: none; font: 600 15px/1 var(--sans); padding: 14px 12px; min-height: 44px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.count-dot { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: var(--on-gold); font: 700 12px/22px var(--sans); text-align: center; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr)); max-width: 760px; }
@media (max-width: 560px) { .tile { padding: 12px 14px; } .tile .n { font-size: 28px; } .tile .l { font-size: 13px; } }
.tile { padding: 16px 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.tile .n { font: 400 34px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.tile .l { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.panel { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 24px; margin-bottom: 4px; }
.panel > .muted:first-of-type { margin-bottom: 16px; }
.panel-danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.work-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 720px) { .work-row { grid-template-columns: 88px 1fr auto; } }
.work-row img { width: 72px; height: 72px; object-fit: contain; background: var(--surface-2); border-radius: 8px; }
@media (min-width: 720px) { .work-row img { width: 88px; height: 88px; } }
.work-row .t { font: italic 600 18px/1.25 var(--serif); } /* titre d'œuvre : italique, comme au cartel */
.work-row .t a { color: var(--text); text-decoration: none; }
.work-row .t a:hover { text-decoration: underline; }
.work-row .m { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--text-2); margin-top: 4px; }
.work-row .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 720px) { .work-row .actions { grid-column: auto; justify-content: flex-end; } }
.reason { font-size: 14px; color: var(--warning); margin-top: 4px; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .two-col.wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.side-nav { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 20px; padding: 0 var(--gutter) 4px; }
.side-nav::-webkit-scrollbar { display: none; }
@media (max-width: 999px) { .side-nav a { flex: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; } }
@media (min-width: 1000px) {
  .account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
  .side-nav { position: sticky; top: 96px; flex-direction: column; flex-wrap: nowrap; overflow: visible; margin: 0; padding: 0; }
}
.side-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: flex; align-items: center; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }

/* Assistant de dépôt */
.wizard-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: w; }
.wizard-steps li { counter-increment: w; font: 600 13px/1.3 var(--sans); color: var(--text-3); padding-top: 10px; border-top: 3px solid var(--line); }
.wizard-steps li::before { content: counter(w) ". "; }
.wizard-steps li[aria-current="step"] { color: var(--text); border-top-color: var(--gold); }
.wizard-steps li.done { color: var(--text-2); border-top-color: var(--gold-text); }
@media (max-width: 560px) { .wizard-steps li span { display: none; } .wizard-steps li[aria-current="step"] span { display: inline; } }
.dropzone { position: relative; display: grid; place-items: center; text-align: center; gap: 10px; padding: 36px 20px; border-radius: var(--r-card); border: 2px dashed var(--line); background: var(--surface); transition: border-color .15s var(--ease), background .15s var(--ease); }
.dropzone.is-over { border-color: var(--gold-text); background: var(--surface-2); }
.dropzone .i { width: 32px; height: 32px; color: var(--gold-text); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone input[type="file"]:focus-visible + .dz-label { outline: 3px solid var(--gold-text); outline-offset: 4px; border-radius: 6px; }
.upload-card { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 720px) { .upload-card.with-preview { grid-template-columns: 220px 1fr; align-items: start; } }
.upload-card .preview { width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.wizard-nav { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.recap { display: grid; gap: 20px; }
@media (min-width: 760px) { .recap { grid-template-columns: 240px 1fr; } }
.recap dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 15px; }
.recap dt { color: var(--text-2); }
.recap dd { margin: 0; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.success-mark .i { width: 30px; height: 30px; }
.qr-box { display: inline-grid; gap: 8px; justify-items: center; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr-box svg, .qr-box img { width: 160px; height: 160px; }

/* Statistiques */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--gold); }
.chart .bar:hover { fill: var(--gold-text); }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--text-2); font: 12px var(--sans); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.hbar { height: 8px; border-radius: 4px; background: var(--gold); min-width: 2px; }

/* Modération */
.report { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 760px) { .report { grid-template-columns: 120px 1fr; } }
.report img { width: 120px; height: 120px; object-fit: contain; background: var(--surface-2); border-radius: 8px; }

/* Vidéos du public (atelier) */
.inbox { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.inbox-item { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); align-content: start; }
.inbox-item video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }

/* Authentification */
.auth { max-width: 560px; margin-inline: auto; padding-block: clamp(32px, 6vw, 64px) 0; }
.auth h1 { font-size: clamp(30px, 5vw, 44px); }
.auth .lede { margin-top: 10px; font-size: 18px; }
.auth form { margin-top: 28px; }
.auth-alt { margin-top: 24px; font-size: 15px; color: var(--text-2); }

/* ---------------------------------------------------------------- Studio : salle 3D (studio-3d.js) + panneau latéral */
/* La page du Studio tient exactement dans la fenêtre : jamais de défilement de page (la molette sert au zoom de la
   scène) ; seul un panneau trop long pour un très petit écran défile, en interne. */
:root:has(body.is-studio) { overflow: hidden; overscroll-behavior: none; }
body.is-studio { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.is-studio > .site-footer, body.is-studio .breadcrumb { display: none; }
body.is-studio > main, body.is-studio > main > .container, body.is-studio #app-root { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
/* Aperçu en situation (?apercu=1) : la salle et l'œuvre, sans outils. */
body.st-apercu .studio-bar, body.st-apercu .st-side, body.st-apercu .st-tools:not(.st-tools-top),
body.st-apercu .st-tools-top > :not(.st-env) { display: none; }
body.st-apercu .studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); padding-bottom: 0; }
.studio { flex: 1 1 0; min-height: 0; display: grid; gap: 12px; padding-bottom: 12px; grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); }
.st-main { min-width: 0; min-height: 0; display: grid; }
.st-side { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
@media (min-width: 1000px) { .studio { grid-template-columns: minmax(0, 1fr) clamp(320px, 25vw, 390px); grid-template-rows: minmax(0, 1fr); } }
.st-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.st-tab { appearance: none; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 8px 2px 6px; font: 600 11px/1.1 var(--sans); cursor: pointer; }
.st-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.st-side { container-type: inline-size; }
@container (max-width: 350px) { .st-tab span { display: none; } .st-tab { padding: 11px 0 10px; } } /* barre étroite : icônes seules, nom en infobulle */
.st-tab .i { width: 20px; height: 20px; }
.st-tab:hover:not(:disabled) { color: var(--text); }
.st-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold-text); }
.st-tab:disabled { opacity: .35; cursor: default; }
.st-tab:focus-visible { outline: 2px solid var(--gold-text); outline-offset: -2px; }
.st-name { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 15px/1.2 var(--sans); }
.st-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-panel { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 10px 14px 12px; display: grid; gap: 10px; align-content: start; }
.st-panel:focus-visible { outline: 2px solid var(--gold-text); outline-offset: -2px; }
.st-sec { display: grid; gap: 4px; }
.st-sec + .st-sec { border-top: 1px solid var(--line); padding-top: 10px; }
.st-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-sec-head .btn.st-ic { width: 32px; min-height: 30px; }
.st-note-line { margin: 0; }
.st-sec h3 { margin: 0 0 2px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.st-row { display: grid; grid-template-columns: minmax(64px, 36%) minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 32px; }
.st-row > label { font: 600 13px/1.2 var(--sans); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row input[type="range"] { width: 100%; min-width: 0; margin: 0; accent-color: var(--gold-text); }
.st-row .st-num { width: 58px; min-height: 30px; padding: 2px 6px; font-size: 13px; }
.btn.st-ic { width: 36px; min-height: 36px; padding: 0; border-color: transparent; background: none; }
.btn.st-ic:hover:not(:disabled) { border-color: var(--line); background: var(--surface-2); }
.btn.st-ic[aria-pressed="true"] { border-color: var(--gold-text); color: var(--gold-text); }
.st-icons { display: flex; flex-wrap: wrap; gap: 2px; }
.check.st-check { gap: 8px; align-items: center; min-height: 32px; font-size: 13.5px; }
.check.st-check input { width: 18px; height: 18px; margin: 0; }
.st-chroma { display: flex; align-items: center; gap: 6px; }
.st-chroma .st-check { flex: 1; }
.st-chroma input[type="color"] { width: 36px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: none; }
.st-add { margin-top: 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.st-add .btn { min-height: 40px; padding: 0 8px; width: auto; }
/* Objet 3D : bibliothèque (vignettes) et import */
dialog.st-model-sheet { width: min(760px, calc(100vw - 24px)); }
dialog.st-model-sheet.is-busy .sheet-body { cursor: progress; }
dialog.st-model-sheet.is-busy .st-lib-item, dialog.st-model-sheet.is-busy .st-drop { opacity: .5; pointer-events: none; }
.st-lib { max-height: min(56vh, 520px); overflow: auto; overscroll-behavior: contain; display: grid; gap: 8px; }
.st-lib-cat { margin: 6px 0 0; font: 600 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.st-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.st-lib-item { appearance: none; display: grid; justify-items: center; gap: 4px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 600 12.5px/1.2 var(--sans); text-align: center; cursor: pointer; }
.st-lib-item:hover, .st-lib-item:focus-visible { border-color: var(--gold-text); }
.st-lib-item img { width: 96px; height: 96px; object-fit: contain; }
.st-import { display: grid; gap: 14px; }
.st-drop { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line); border-radius: var(--r-card); text-align: center; cursor: pointer; }
.st-import.is-over .st-drop, .st-drop:hover { border-color: var(--gold-text); }
.st-formats { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.st-formats dt { font-weight: 600; }
.st-formats dd { margin: 0; color: var(--text-2); }

/* Retouche : sous-sections en pastilles, une seule ouverte */
.st-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.st-chip { appearance: none; min-height: 30px; padding: 0 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: none; color: var(--text-2); font: 600 12px/1 var(--sans); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-chip:hover { color: var(--text); }
.st-chip[aria-pressed="true"] { border-color: var(--gold-text); color: var(--text); background: var(--surface-2); }
.st-sub-body { display: grid; gap: 4px; }
.segmented.st-seg { padding: 2px; }
.segmented.st-seg button { min-height: 28px; padding: 0 10px; font-size: 12px; }
.st-curves { display: grid; gap: 6px; }
.st-curve { width: 100%; aspect-ratio: 512 / 360; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: crosshair; touch-action: none; }
.st-blend { width: 100%; }
.is-disabled { opacity: .5; pointer-events: none; }
.studio-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.studio-bar .btn { min-height: 40px; }
.studio-bar .btn-icon { width: 40px; }
.studio-bar .grow { flex: 1; }
.st-title { margin: 0; min-width: 0; flex: 0 1 auto; font: 600 20px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 599px) { .st-title, .st-help-btn, .st-help { display: none; } } /* raccourcis clavier : inutiles au doigt */
.dirty-flag { font: 600 13px/1 var(--sans); color: var(--warning); display: inline-flex; align-items: center; gap: 6px; }
.dirty-flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-stage { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.st-view { position: relative; min-height: 0; background: var(--st-wall); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
/* Studio : le fil d'Ariane double le lien « Œuvre » de la barre ; la scène récupère sa hauteur. */
.breadcrumb:has(+ #app-root[data-section="atelier-studio"]) { display: none; }
.st-view:focus-visible { outline: 3px solid var(--gold-text); outline-offset: -3px; border-radius: var(--r-card) var(--r-card) 0 0; }
.st-view[data-cursor="move"] { cursor: move; }
.st-view[data-cursor="pan"], .st-view[data-cursor="orbit"] { cursor: grab; }
.st-view.is-dragging { cursor: grabbing; }
.st-canvas { display: block; width: 100%; height: 100%; }
.st-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.st-overlay.is-off { visibility: hidden; }
.st-overlay polygon { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.st-overlay line { stroke: var(--gold); stroke-width: 1.5; }
.st-overlay .st-guide { stroke-width: 1; stroke-dasharray: 5 4; }
.st-handle { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); touch-action: none; cursor: nwse-resize; }
.st-handle::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
.st-h-ne, .st-h-sw { cursor: nesw-resize; }
.st-h-rot { background: var(--gold); cursor: grab; }
/* Profondeur : poignée sous la couche, empreinte de la couche sur l'œuvre, distance en cm */
.st-h-depth { width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; cursor: ns-resize; color: var(--gold-text); font: 700 15px/1 var(--sans); }
.st-h-depth::before { content: "⇅"; }
.st-overlay .st-stem2 { stroke-dasharray: 3 3; }
.st-overlay .st-foot { stroke-dasharray: 6 5; opacity: .8; }
.st-overlay .st-leg { stroke-width: 1; stroke-dasharray: 2 4; opacity: .8; }
.st-depth-tag { position: absolute; left: 0; top: 0; margin: 0; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--text); border: 1px solid var(--gold-text); font: 600 12px/1.3 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.st-note { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px 16px; border-radius: var(--r-field); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 15px; text-align: center; }
.st-fallback { position: absolute; left: 24px; top: 24px; width: calc(100% - 48px); height: calc(100% - 112px); object-fit: contain; }
.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--line); container-type: inline-size; }
@container (max-width: 720px) {
  .st-tools .st-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .st-tools .st-compact { width: 44px; padding: 0; }
}
.st-tools .grow { flex: 1; }
.st-tools .segmented { padding: 2px; }
.st-tools .segmented button { min-height: 36px; padding: 0 14px; font-size: 14px; }
.st-tools .btn { min-height: 40px; }
.st-tools .btn-icon { width: 40px; }
.st-help { margin: 0; }
.st-tools-top { border-top: 0; border-bottom: 1px solid var(--line); }
.st-env { display: inline-flex; align-items: center; gap: 8px; }
.st-env-lbl { font: 600 13px/1 var(--sans); color: var(--text-2); }
.st-select { min-height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 600 14px/1 var(--sans); cursor: pointer; }
.st-scrubbox { flex: 1 1 180px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-scrub { flex: 1; min-width: 80px; accent-color: var(--gold-text); }
.st-clock { font: 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.st-badge { position: absolute; left: 12px; top: 12px; margin: 0; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 13px/1.3 var(--sans); box-shadow: var(--shadow); }
/* Salle réaliste en chargement : discret, en bas à gauche, une fine barre de progression (--p, studio.js). */
.st-load { top: auto; bottom: 10px; left: 10px; padding: 4px 10px 6px; overflow: hidden; color: var(--text-2); font-size: 12px; font-weight: 500; box-shadow: none; opacity: .92; pointer-events: none; }
.st-load::after { content: ""; position: absolute; left: 0; bottom: 0; width: var(--p, 0%); height: 2px; background: var(--gold-text); transition: width .3s; }
/* Fondu enchaîné d'une salle à l'autre (studio-3d.js) : la dernière image, figée par-dessus, s'efface. */
.st-still { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.st-still.is-fading { opacity: 0; transition: opacity .45s ease; }
.st-view.is-picking, .st-view.is-picking[data-cursor] { cursor: crosshair; }
.st-view.is-painting, .st-view.is-painting[data-cursor] { cursor: none; }
.st-brush { position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); pointer-events: none; }
.st-loupe { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .4); pointer-events: none; }
.st-perf { position: absolute; right: 8px; top: 8px; margin: 0; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; pointer-events: none; }
.st-h-crop { width: 24px; height: 9px; margin: -4.5px 0 0 -12px; border-radius: 5px; }
.st-h-cl, .st-h-cr { cursor: ew-resize; } .st-h-ct, .st-h-cb { cursor: ns-resize; }
.st-overlay polygon.is-locked { stroke-dasharray: 6 5; }
.st-overlay .st-guide { opacity: .5; }
.st-overlay .st-guide.is-snap { opacity: 1; stroke-width: 1.5; stroke-dasharray: none; }
.st-numbox { display: inline-flex; align-items: center; gap: 4px; }
.st-num { width: 78px; min-height: 36px; padding: 4px 8px; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.st-unit { min-width: 14px; color: var(--text-3); font-size: 12px; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 46px; padding: 4px 6px 4px 14px; border-bottom: 1px solid var(--line); }
.st-head-ops { display: flex; gap: 0; flex: none; }
.st-head-ops .btn-icon { width: 36px; min-height: 36px; border-color: transparent; background: none; }
.st-head-ops .btn-icon[aria-pressed="true"] { border-color: var(--gold-text); color: var(--gold-text); }
.layer-item.is-hidden .pick { opacity: .55; }
.layer-item .ops .btn-icon[aria-pressed="true"] { color: var(--gold-text); }
dialog.st-help-sheet { width: min(780px, calc(100vw - 24px)); }
.st-keys { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 16px 0 0; align-items: baseline; }
.st-keys dd { margin: 0; color: var(--text-2); font-size: 14px; }
@media (min-width: 720px) { .st-keys { grid-template-columns: max-content 1fr max-content 1fr; column-gap: 14px; } }
kbd { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--text); font: 600 13px/1.4 var(--sans); white-space: nowrap; }
.layers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.layer-item { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.layer-item.is-selected { border-color: var(--gold-text); box-shadow: 0 0 0 1px var(--gold-text); }
.layer-item.drag-over { border-style: dashed; border-color: var(--gold-text); }
.layer-item .grip { color: var(--text-3); cursor: grab; display: grid; place-items: center; height: 30px; }
.layer-item .pick { appearance: none; border: 0; background: none; color: var(--text); text-align: left; font: 600 14px/1.25 var(--sans); padding: 2px 4px; min-height: 30px; cursor: pointer; display: flex; align-items: center; gap: 8px; min-width: 0; }
.layer-item .pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-item .ops { display: flex; }
.layer-item .ops .btn-icon { width: 30px; min-height: 30px; border: 0; background: none; }
.pick-canvas { width: 100%; height: auto; border-radius: 8px; cursor: crosshair; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.swatch { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); display: inline-block; vertical-align: middle; }

/* ---------------------------------------------------------------- Studio au doigt (téléphone, tablette) */
.st-grab { display: none; }
body.is-studio { touch-action: pan-x pan-y; overscroll-behavior: none; } /* pincer ou toucher deux fois ne zoome pas la page */
.st-panel, .st-lib { touch-action: pan-y; }
@media (pointer: coarse) {
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; } /* fil d'Ariane : retour au doigt */
  /* Cibles d'au moins 44 pt ; champs en 16 px : Safari n'agrandit plus la page quand on y tape. */
  .studio input, .studio select, .studio textarea, .st-model-sheet input, .st-model-sheet select { font-size: 16px; }
  .st-row { min-height: 44px; }
  .st-row input[type="range"] { height: 32px; }
  .st-row .st-num { width: 64px; min-height: 40px; }
  .btn.st-ic, .st-head-ops .btn-icon { width: 44px; min-height: 44px; }
  .st-sec-head .btn.st-ic { width: 44px; min-height: 40px; }
  .check.st-check { min-height: 44px; }
  .check.st-check input { width: 22px; height: 22px; }
  .st-chip { min-height: 38px; font-size: 13px; }
  .segmented.st-seg button { min-height: 38px; }
  .layer-item .grip { height: 42px; }
  .layer-item .pick { min-height: 42px; }
  .layer-item .ops .btn-icon { width: 40px; min-height: 42px; }
  .st-handle { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .st-handle::after { inset: -10px; }
  .st-h-crop { width: 34px; height: 12px; margin: -6px 0 0 -17px; }
  .st-h-crop::after { inset: -16px -5px; }
  .st-h-depth { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 18px; }
}
/* Téléphone en portrait : la scène en haut, les outils dans une feuille en bas (repliée, moitié, pleine). */
@media (max-width: 999px) and (orientation: portrait), (max-width: 599px) {
  body.is-studio .site-header, body.is-studio .dev-banner { display: none; }
  body.is-studio > main > .container { padding-inline: 0; }
  .studio-bar { flex-wrap: nowrap; gap: 6px; margin-bottom: 0; padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
  .studio-bar .btn { min-height: 44px; }
  .studio-bar .btn-icon { width: 44px; }
  .studio-bar .btn-primary { padding: 0 16px; }
  .studio-bar .btn-ghost { padding: 0 8px; }
  .dirty-flag { font-size: 0; gap: 0; } /* le point seul */
  .studio { gap: 0; padding-bottom: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .st-stage { border-radius: 0; border-inline: 0; border-bottom: 0; }
  .st-tools { gap: 6px; padding: 4px max(6px, env(safe-area-inset-right)) 4px max(6px, env(safe-area-inset-left)); }
  .st-tools-top .st-env-lbl { display: none; }
  .st-tools-top .st-select { max-width: 112px; padding: 0 8px; font-size: 14px; }
  .st-tools-top .segmented button { padding: 0 9px; font-size: 13px; }
  .st-side { position: relative; z-index: 2; border-radius: 18px 18px 0 0; border-bottom: 0; border-inline: 0; padding-bottom: env(safe-area-inset-bottom);
    grid-template-rows: auto auto auto minmax(0, 1fr); box-shadow: 0 -10px 30px rgba(0, 0, 0, .28); }
  .studio[data-sheet="collapsed"] .st-head, .studio[data-sheet="collapsed"] .st-panel { display: none; }
  .studio[data-sheet="half"] .st-side { height: 46dvh; }
  .studio[data-sheet="full"] .st-side { height: calc(100dvh - 210px); }
  .st-grab { display: grid; place-items: center; width: 100%; height: 24px; border: 0; background: none; cursor: grab; touch-action: none; }
  .st-grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--text-3); opacity: .6; }
  .st-tab { padding-top: 2px; }
}
/* Téléphone en paysage : scène à gauche, outils à droite, sans feuille. */
@media (orientation: landscape) and (max-height: 560px) {
  body.is-studio .site-header, body.is-studio .dev-banner { display: none; }
  .studio-bar { padding: max(4px, env(safe-area-inset-top)) 0 4px; margin-bottom: 4px; }
  .studio-bar .btn { min-height: 40px; }
  .dirty-flag { font-size: 0; gap: 0; }
  .studio { grid-template-columns: minmax(0, 1fr) minmax(260px, 40%); grid-template-rows: minmax(0, 1fr); gap: 8px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .st-tools-top .st-env-lbl { display: none; }
}

/* ---------------------------------------------------------------- WebAR (toujours sombre) */
.ar-page { background: #000; color: #F1EBE1; overflow: hidden; height: 100dvh; }
.ar-page main { position: fixed; inset: 0; }
#ar-container { position: absolute; inset: 0; overflow: hidden; }
#ar-container video { position: absolute; max-width: none; max-height: none; }
#ar-container canvas { position: absolute; left: 0; top: 0; }
.ar-top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 18px; background: linear-gradient(rgba(0,0,0,.65), transparent); }
.ar-top a.back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(24,21,18,.7); color: #F1EBE1; }
.ar-top .t { font: 600 17px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-top .a { font-size: 13px; color: #BDB3A6; }
.ar-status { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.72); }
.ar-card { width: min(380px, 100%); background: #181512; border: 1px solid #342E28; border-radius: var(--r-sheet); padding: 24px 22px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.ar-card h1 { font: 400 24px/1.25 var(--serif); color: #F1EBE1; }
.ar-card p { color: #BDB3A6; font-size: 15px; }
.ar-card.is-error h1 { color: #EE8A7F; }
.ar-card .progress { width: 100%; background: #221E1A; border-color: #342E28; }
.ar-card .progress > span { background: #D9AA5C; }
.ar-card .btn-primary { background: #D9AA5C; border-color: #D9AA5C; color: #191612; }
.ar-card .btn { background: transparent; color: #F1EBE1; border-color: #342E28; }
.ar-card .btn.btn-primary { background: #D9AA5C; color: #191612; }
.ar-card img.target-thumb { width: 120px; height: auto; border-radius: 4px; box-shadow: 0 10px 30px -10px #000; }
.ar-card :focus-visible, .ar-top :focus-visible, .ar-bottom :focus-visible { outline-color: #E1B66B; }
.ar-bottom { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.ar-hint { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(24,21,18,.82); font-size: 14px; color: #F1EBE1; }
.ar-hint img { width: 44px; height: auto; border-radius: 3px; }
.ar-bottom .btn { background: rgba(24,21,18,.82); color: #F1EBE1; border-color: #342E28; }

/* ---------------------------------------------------------------- impression */
.print-page { background: var(--wall); }
.print-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px var(--gutter); max-width: 900px; margin: 0 auto; }
.print-help { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter) 24px; color: var(--text-2); font-size: 15px; }
.sheet-cartel { width: 105mm; height: 74mm; margin: 24px auto; background: #fff; color: #191612; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); display: grid; grid-template-columns: 1fr 30mm; gap: 5mm; padding: 7mm 7mm 6mm; font-family: var(--serif); overflow: hidden; }
.sheet-cartel .pc-title { font: italic 600 13.5pt/1.15 var(--serif); margin: 0; }
.sheet-cartel .pc-artist { font: 400 10.5pt/1.25 var(--serif); margin-top: 1.2mm; }
.sheet-cartel .pc-meta { font: 600 6.6pt/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #4D463F; margin-top: 1.6mm; }
.sheet-cartel .pc-story { font: 400 7.6pt/1.42 var(--serif); margin-top: 2.6mm; padding-top: 2.2mm; border-top: .25mm solid #DED4C5; color: #191612; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-cartel .pc-credit { font: 400 5.8pt/1.3 var(--sans); color: #6B635A; margin-top: 1.6mm; }
.sheet-cartel .pc-left { display: flex; flex-direction: column; min-width: 0; }
.sheet-cartel .pc-brand { margin-top: auto; font: 600 6.4pt/1 var(--sans); color: #4D463F; display: flex; align-items: center; gap: 1.6mm; padding-top: 2mm; }
.sheet-cartel .pc-brand .rv-word { height: 3.6mm; --logo-gold: #AA7E2E; }
.sheet-cartel .pc-right { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1.6mm; text-align: center; }
.sheet-cartel .qr { width: 30mm; height: 30mm; }
.sheet-cartel .pc-scan { font: 600 6.2pt/1.25 var(--sans); color: #191612; }
.sheet-cartel .pc-url { font: 400 5.4pt/1.2 var(--sans); color: #4D463F; word-break: break-all; }
.sheet-poster { width: 210mm; min-height: 297mm; margin: 24px auto; background: #fff; color: #191612; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); padding: 18mm 18mm 14mm; display: flex; flex-direction: column; font-family: var(--serif); }
.sheet-poster .pp-dates { font: 600 9pt/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #835E1E; margin-top: 4mm; }
.sheet-poster h1 { font: 400 38pt/1.04 var(--serif); margin-top: 4mm; letter-spacing: -.01em; }
.sheet-poster .pp-venue { font: 400 15pt/1.3 var(--serif); margin-top: 3mm; color: #4D463F; }
.sheet-poster .pp-main { display: grid; grid-template-columns: 78mm 1fr; gap: 12mm; margin-top: 14mm; align-items: start; }
.sheet-poster .qr { width: 78mm; height: 78mm; }
.sheet-poster .pp-scan { font: 600 13pt/1.3 var(--sans); margin-top: 4mm; }
.sheet-poster .pp-url { font: 400 8.5pt/1.3 var(--sans); color: #4D463F; margin-top: 1.5mm; word-break: break-all; }
.sheet-poster ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 3.5mm; }
.sheet-poster li { display: grid; grid-template-columns: 16mm 1fr; gap: 4mm; align-items: center; font-size: 11pt; line-height: 1.25; }
.sheet-poster li img { width: 16mm; height: 16mm; object-fit: cover; }
.sheet-poster li .pa { font: 400 9pt/1.3 var(--sans); color: #4D463F; }
.sheet-poster .pp-desc { font: 400 11pt/1.5 var(--serif); margin-top: 6mm; color: #191612; max-width: 150mm; }
.sheet-poster .pp-foot { margin-top: auto; padding-top: 8mm; display: flex; justify-content: space-between; align-items: center; font: 600 9pt/1 var(--sans); color: #4D463F; }
.sheet-poster .pp-foot .rv-word { height: 6mm; --logo-gold: #AA7E2E; }
/* Écrans étroits : l'aperçu est réduit (zoom) ; l'impression garde le format exact (zoom: 1 en @media print). */
@media (max-width: 860px) { .print-page .sheet-poster { zoom: .45; } }
@media (max-width: 400px) { .print-page .sheet-poster { zoom: .36; } }
@media (max-width: 440px) { .print-page .sheet-cartel { zoom: .76; } }
@media print {
  @page { margin: 0; }
  body.print-page { background: #fff; display: block; }
  .print-toolbar, .print-help, .site-header, .site-footer, .toasts, .skip { display: none !important; }
  .sheet-cartel, .sheet-poster { margin: 0; box-shadow: none; page-break-after: always; zoom: 1 !important; }
}
.print-cartel { --page: cartel; }
@page cartel { size: 105mm 74mm; margin: 0; }
.print-cartel .sheet-cartel { page: cartel; }
@page poster { size: A4 portrait; margin: 0; }
.print-poster .sheet-poster { page: poster; }

/* ---------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .skel::after { display: none; }
  /* Rétroaction essentielle conservée : un chargement doit rester visible (plus lent). */
  .spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
  .progress.indeterminate > span { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
}

/* ---------------------------------------------------------------- utilitaires (évitent les attributs style) */
.mt-6 { margin-top: 6px; } .mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .pt-32 { padding-top: 32px; } .m-0 { margin: 0; }
.jc-center { justify-content: center; } .minw-0 { min-width: 0; } .break-all { word-break: break-all; }
.grow-240 { flex: 1 1 240px; } .maxw-640 { max-width: 640px; } .fs-20 { font-size: 20px; } .fs-14 { font-size: 14px; } .pre-wrap { white-space: pre-wrap; }

/* ---------------------------------------------------------------- dossiers (privés) */
.work-row-pick { grid-template-columns: auto 72px 1fr; }
@media (min-width: 720px) { .work-row-pick { grid-template-columns: auto 88px 1fr auto; } }
.work-row .pick { width: 22px; height: 22px; margin: 0 2px; accent-color: var(--gold-text); }
.pick-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.folder-ph { display: grid; place-items: center; color: var(--gold-text); }
.folder-ph .i { width: 34px; height: 34px; }
.folder-panel-head { margin-bottom: 16px; }
.folder-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--text-2); font-size: 15px; }
.folder-meta .chip .i { width: 14px; height: 14px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-3); }
.crumbs a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }
.folder-search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.folder-search .input { flex: 1 1 220px; }
.folder-item { break-inside: avoid; margin: 0 0 24px; }
.folder-item .art-card { margin-bottom: 8px; }
.folder-item-state { margin-bottom: 6px; }
.folder-item-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.folder-tree { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; max-height: 46vh; overflow: auto; }

/* ================================================================ site : direction 3C (maquette accueil-3c2.html)
   Mise en page « mix » sur les pages du site (chrome « site ») : le texte dans une colonne de 1440 px, les œuvres
   (.bleed) sortent jusqu'aux marges. Les pages de l'application (Atelier, Studio, compte) gardent leur conteneur. */
.chrome-site .container { max-width: none; padding-inline: max(var(--side), env(safe-area-inset-left)) max(var(--side), env(safe-area-inset-right)); }
@media (min-width: 1000px) { .chrome-site .bleed { margin-inline: calc(var(--gutter) - var(--side)); } }

/* Étiquettes d'instrument : petites capitales espacées. */
.caps { text-transform: uppercase; letter-spacing: .2em; font-weight: 600; font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.eyebrow { color: var(--gold-text); margin: 0 0 18px; }
.page-head .eyebrow, .profile-head .eyebrow { margin: 0 0 14px; }
.page-head h1 { max-width: 18ch; }
/* Phrase d'accroche d'une page (artiste, œuvre) : la direction éditoriale, en Fraunces, sous le titre. */
.claim { font: 600 clamp(24px, 2.6vw, 38px)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 22ch; }
.art-intro { padding-block: clamp(8px, 2vw, 24px) clamp(12px, 2vw, 28px); }
.art-intro .eyebrow { margin-bottom: 10px; }
.artwork-side .lede { margin-bottom: 8px; font-size: clamp(17px, 1.4vw, 20px); }
.art-card .art-frame { border-radius: 2px; box-shadow: var(--art-shadow); }

/* ── Accueil ── */
.home main { overflow-x: clip; }
.home .intro { font-size: clamp(18px, 1.46vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 34em; }
.home h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -.03em; }
.home h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; letter-spacing: -.012em; }
.nw { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.sec { padding-block: clamp(80px, 11.1vw, 160px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.alt { background: var(--surface); }
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(48px, 6.7vw, 96px); }
.sec-top .intro { margin-top: 20px; }

/* 1 · Scène : l'œuvre dans la lentille */
.stage { position: relative; border-bottom: 1px solid var(--line); overflow: clip; }
.hero { display: grid; gap: 40px; padding-block: clamp(24px, 4vw, 48px) clamp(48px, 5vw, 72px); --lens: min(64vw, 340px); min-height: min(calc(100svh - 64px), 1100px); align-content: center; }
.hero-eye { position: relative; display: grid; justify-items: center; padding: calc(var(--lens) * .08) 0; }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; width: 100%; margin-top: 24px; }
.hero-cartel { color: var(--text); text-decoration: none; max-width: 19em; }
.hero-cartel:hover .art-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .18em; }
.hero-cartel .art-cartel { padding-top: 0; }
.hero-copy h1 { font-size: clamp(48px, 8.33vw, 120px); line-height: .96; letter-spacing: -.035em; }
.hero-copy .intro { margin: 28px 0 36px; max-width: 30em; }
.hero-note { margin-top: 24px; font-size: 14px; color: var(--text-3); }
.ctrl { appearance: none; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; min-height: 44px; padding: 0 16px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; flex: none; }
.ctrl:hover { border-color: var(--text-3); }
@media (min-width: 1000px) {
  .hero { --lens: min(42vw, calc((100svh - 160px) / 1.3), 1180px); grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 clamp(48px, 5vw, 120px); }
  .chrome-site .hero { padding-right: 0; }
  .hero-eye { grid-column: 2; grid-row: 1; padding: calc(var(--lens) * .1) var(--gutter) calc(var(--lens) * .2) 0; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-copy h1 { font-size: clamp(52px, min(5.3vw, 10.5svh), 150px); line-height: .94; margin-left: -.05em; }
  .hero-copy h1 span { display: block; }
  .hero-meta { position: absolute; right: var(--gutter); bottom: 0; width: auto; flex-direction: column; align-items: flex-end; text-align: right; gap: 18px; margin: 0; }
  .hero-meta .art-cartel { text-align: right; }
}
.scope { position: relative; width: var(--lens); aspect-ratio: 1; flex: none; }
.scope::after { content: ""; position: absolute; inset: calc(var(--lens) * -.018); border: 1px solid var(--gold); border-radius: 50%; pointer-events: none; }
.lens { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--surface-2); isolation: isolate; box-shadow: 0 40px 80px -40px rgba(25,22,18,.45), 0 0 0 1px rgba(25,22,18,.06); }
.lens img, .lens video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.04; }
.lens video { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.scope.on .lens video { opacity: 1; }
.iris { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); pointer-events: none; display: none; clip-path: circle(50% at 50% 50%); }
.iris g { transform-box: fill-box; transform-origin: center; }
.scope.opening .iris { display: block; }
.scope.opening .lens { animation: aperture 2s var(--ease-out) .2s both; }
.scope.opening .iris g { animation: blades 2s var(--ease-out) .2s both; }
@keyframes aperture { from { clip-path: circle(13.5% at 50% 50%); } to { clip-path: circle(50% at 50% 50%); } }
@keyframes blades { from { transform: rotate(-40deg) scale(1.04); opacity: 1; } 30% { opacity: .9; } 70% { opacity: 0; } to { transform: rotate(50deg) scale(3.85); opacity: 0; } }

/* 2 · Comment ça marche : trois plaques d'instrument sur un même axe */
.plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; position: relative; }
.plates::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.plates li { display: grid; grid-template-columns: 72px 1fr; gap: 0 24px; align-items: start; position: relative; }
.plate { width: 72px; height: 72px; color: var(--gold); background: var(--bg); grid-row: span 3; }
.plate * { vector-effect: non-scaling-stroke; }
.plate .arc { transform-box: fill-box; transform-origin: center; animation: turn 9s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.plates .caps { color: var(--gold-text); margin: 6px 0 14px; }
.plates h3 { margin-bottom: 10px; }
.plates p:not(.caps) { color: var(--text-2); max-width: 26em; }
@media (min-width: 900px) {
  .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 64px); }
  .plates::before { left: 0; right: 0; top: 64px; bottom: auto; width: auto; height: 1px; }
  .plates li { grid-template-columns: 1fr; }
  .plate { width: 128px; height: 128px; margin-bottom: 32px; grid-row: auto; }
}
.public { margin-top: clamp(56px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.public p { margin: 0; }
.public p:first-child { font-size: clamp(18px, 1.46vw, 21px); color: var(--text); max-width: 36em; }
.public p + p { color: var(--text-2); max-width: 40em; }
@media (min-width: 1000px) { .plates, .public { margin-left: calc(var(--c1) * 3); } .public { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 48px; } #comment .sec-top > div { max-width: calc(var(--c1) * 10); } }

/* 3 · L'app */
#app { overflow: clip; }
.app { display: grid; gap: 64px; align-items: center; }
.app .intro { margin-top: 24px; }
.phones { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: clamp(14px, 3vw, 40px); isolation: isolate; }
.phones::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(130%, 720px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 calc(12.5% - 1px), var(--hair) calc(12.5% - 1px) 12.5%);
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 72%); mask: radial-gradient(circle, #000 40%, transparent 72%); }
.phone { width: min(44%, 280px); margin: 0; border-radius: clamp(26px, 3vw, 44px); padding: clamp(5px, .6vw, 8px); background: #2A2622; box-shadow: inset 0 0 0 1px rgba(243,238,230,.16), 0 40px 80px -40px rgba(25,22,18,.5), 0 12px 24px -16px rgba(25,22,18,.3); }
.phone > img { border-radius: calc(clamp(26px, 3vw, 44px) - clamp(5px, .6vw, 8px)); width: 100%; }
.phone + .phone { margin-top: clamp(48px, 8vw, 120px); }
.feats { display: grid; gap: 0 40px; margin: 48px 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .feats { grid-template-columns: 1fr 1fr; } }
.feats li { padding: 24px 0; border-top: 1px solid var(--line); }
.feats h3 { margin-bottom: 8px; }
.feats p { color: var(--text-2); }
.no-app { color: var(--text-2); }
@media (min-width: 1000px) {
  .app { grid-template-columns: minmax(0, 1fr) calc(var(--c1) * 6); gap: var(--c1); }
  .app .phones { order: -1; margin-left: calc(var(--gutter) - var(--side)); }
  .phone { width: min(40%, 360px); }
  .phones::before { width: min(120%, 1100px); }
}

/* 4 · La collection : un axe central, les œuvres à leur taille relative (largeur réelle en cm : --w) */
.home-grid { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; align-items: end; position: relative; }
.home-grid .art-card { margin: 0; }
@media (min-width: 760px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 4.4vw, 72px) clamp(32px, 4vw, 64px); }
  .home-grid::before { content: ""; position: absolute; top: -48px; bottom: -48px; left: 50%; width: 1px; background: var(--hair); }
  .home-grid .art-card { width: calc(40% + var(--w, 60) * .62%); max-width: 100%; }
  .home-grid .art-card:nth-child(3n + 2) { margin-inline: auto; }
  .home-grid .art-card:nth-child(3n + 2) .art-cartel { text-align: center; position: relative; background: var(--bg); padding-bottom: 8px; }
  .home-grid .art-card:nth-child(3n) { margin-left: auto; }
  .home-grid .art-card:nth-child(3n) .art-cartel { text-align: right; }
}
/* Révélation en objectif (home.js) : l'image s'ouvre en cercle depuis son centre quand elle entre dans le champ. */
.home-grid.reveal .art-frame { clip-path: circle(0% at 50% 50%); transition: clip-path 1.5s var(--ease-out); }
.home-grid.reveal .art-cartel { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease-out) .5s, transform 1s var(--ease-out) .5s; }
.home-grid.reveal .seen .art-frame { clip-path: circle(72% at 50% 50%); }
.home-grid.reveal .seen .art-cartel { opacity: 1; transform: none; }
.hang { margin-top: clamp(64px, 6vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 20px 40px; align-items: center; }
.hang svg { width: 56px; height: 56px; color: var(--gold); }
.hang .caps { color: var(--gold-text); margin-bottom: 12px; }
.hang h3 { margin-bottom: 6px; }
.hang h3 a { color: inherit; text-decoration: none; }
.hang p:not(.caps) { color: var(--text-2); }
@media (min-width: 760px) { .hang { grid-template-columns: auto 1fr auto; } }
@media (min-width: 1000px) { .hang { margin-left: calc(var(--c1) * 3); } #collection .sec-top > div { max-width: calc(var(--c1) * 8); } }

/* 5 · Pour les artistes : le mur, le cadre de visée trouve la toile, le cartel imprimé dessous */
.split { display: grid; gap: 56px; }
.who { list-style: none; margin: 40px 0 48px; padding: 0; counter-reset: s; }
.who li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.who li:last-child { border-bottom: 1px solid var(--line); }
.who li::before { content: counter(s, upper-roman); font: 700 26px/1 var(--sans); color: var(--gold-text); grid-row: span 2; }
.who h3 { margin-bottom: 10px; }
.who p { color: var(--text-2); max-width: 34em; }
.h-wall { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: clamp(48px, 7vw, 96px) 16px clamp(40px, 6vw, 80px); background: var(--surface-2); overflow: hidden; isolation: isolate; }
.h-wall::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .6; background: linear-gradient(var(--hair), var(--hair)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--hair), var(--hair)) 0 42% / 100% 1px no-repeat; }
.h-wall .target { position: relative; width: min(66%, 380px); }
.h-wall .target.player-stage { width: min(66%, 380px, calc((52vh - var(--fm)) / var(--ar) + var(--fm))); margin-inline: auto; }
.h-wall .target i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--gold); }
.h-wall .target i:nth-of-type(1) { left: -14px; top: -14px; border-width: 1px 0 0 1px; } .h-wall .target i:nth-of-type(2) { right: -14px; top: -14px; border-width: 1px 1px 0 0; }
.h-wall .target i:nth-of-type(3) { left: -14px; bottom: -14px; border-width: 0 0 1px 1px; } .h-wall .target i:nth-of-type(4) { right: -14px; bottom: -14px; border-width: 0 1px 1px 0; }
.printed { width: min(86%, 380px); margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; background: var(--surface); padding: 16px 16px 16px 18px; box-shadow: 0 1px 0 rgba(25,22,18,.06), 0 18px 30px -22px rgba(25,22,18,.35); }
.printed .art-cartel { padding: 0; }
.printed .qr { width: 64px; height: 64px; display: block; }
.printed small { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 10px; }
@media (min-width: 1000px) {
  .split { grid-template-columns: calc(var(--c1) * 5) minmax(0, 1fr); gap: var(--c1); }
  .split > .head { position: sticky; top: 96px; align-self: start; }
  .split .h-wall { margin-right: calc(var(--gutter) - var(--side)); padding-block: clamp(64px, 7vw, 160px); }
  .h-wall .printed { width: min(60%, 620px); }
  .h-wall .target.player-stage { width: min(60%, 620px, calc((62vh - var(--fm)) / var(--ar) + var(--fm))); }
}

/* 6 · Offre */
.offer-grid { display: grid; gap: clamp(64px, 7vw, 96px); }
.offer-grid h2 { max-width: 12em; }
.offer-grid .intro { margin: 28px 0 40px; }
.promises { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: s; }
.promises li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises li::before { content: counter(s, upper-roman); font: 700 18px/1.3 var(--sans); color: var(--gold-text); }
.free { margin-bottom: 36px; color: var(--text-2); }
.faq-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; margin-bottom: 12px; }
.faq-top h3.caps { font: 600 11px/1.5 var(--sans); letter-spacing: .2em; color: var(--text-3); }
@media (min-width: 1000px) { .offer-grid { grid-template-columns: calc(var(--c1) * 6) calc(var(--c1) * 5); justify-content: space-between; gap: 0; } }

/* 7 · Dernier mot : la lentille du bas répond à celle du haut */
.finale { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(64px, 6vw, 96px); overflow: clip; }
.finale .container { display: grid; gap: 64px; align-items: center; --lens: min(62vw, 300px); }
.finale h2 { max-width: 9em; margin-bottom: 24px; }
.finale .intro { margin-bottom: 36px; }
.finale .eye { display: grid; justify-items: center; gap: 28px; }
.finale .hero-cartel .art-cartel { text-align: center; }
@media (min-width: 1000px) {
  .finale .container { grid-template-columns: auto minmax(0, calc(var(--c1) * 5)); justify-content: space-between; gap: var(--c1); --lens: min(40vw, calc(100svh - 200px), 1040px); }
  .finale .eye { order: -1; margin-left: calc(var(--gutter) - var(--side)); padding-left: var(--gutter); }
}

/* Pied de page du site, plus ample (maquette 3C) */
.chrome-site .site-footer { background: var(--surface-2); margin-top: 0; }
.chrome-site:not(.home) .site-footer { margin-top: clamp(64px, 8vw, 120px); }
.chrome-site .site-footer .container { padding-block: clamp(56px, 7vw, 112px) 40px; }
.site-footer h2 { font-size: 11px; letter-spacing: .2em; }

@media (prefers-reduced-motion: reduce) {
  .scope.opening .lens, .scope.opening .iris g, .plate .arc { animation: none; }
  .scope.opening .iris { display: none; }
  .home-grid.reveal .art-frame { clip-path: none; }
  .home-grid.reveal .art-cartel { opacity: 1; transform: none; }
}

/* Pages de l'application (Atelier, compte) et pages simples : la réalité augmentée annoncée en haut de page. */
.app-eyebrow { margin: 28px 0 -8px; }
.breadcrumb + .app-eyebrow { margin-top: 8px; }
.atelier-intro { display: grid; gap: 14px; justify-items: start; padding: 20px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.atelier-intro .lede { max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); }
.auth .eyebrow { margin-bottom: 14px; }
.err-page .eyebrow { margin-bottom: 0; }
/* Pied de page sur téléphone : les listes de liens sur deux colonnes (maquette 3C). */
@media (max-width: 759px) { .site-footer .container { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer-blurb, .footer-bottom { grid-column: 1 / -1; } }
