/*
 * Muzelium — site vitrine
 * Identité « musée » de l'app : « Musée clair » et « Galerie sombre », un seul accent (le laiton),
 * titres en serif (Cormorant Garamond), textes en sans-serif (Inter), libellés en petites capitales.
 * Mêmes couleurs que lib/palette.ts et assets/brand/palette-tokens.css de l'app.
 * Mise en page : chaque section est une salle ; les écrans de l'app sont exposés sous cloche,
 * les prix et les notes sont présentés sur des cartels (les étiquettes posées à côté des œuvres).
 *
 * Sécurité : ce fichier est la SEULE source de styles. La CSP interdit les styles en ligne
 * (attribut style="" et balises <style>) : n'en ajoute pas, crée une classe ici.
 */

/* ---------- Polices (hébergées ici, aucune requête vers un tiers ; licence OFL) ---------- */
/* Cormorant Garamond et Inter : latin et cyrillique. Amiri (arabe) et Tiro Devanagari (hindi) : titres. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 300 550;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 551 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-500-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 100 499;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: url("../assets/fonts/amiri-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tiro Devanagari Hindi";
  src: url("../assets/fonts/tiro-devanagari-hindi-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  /* Musée clair */
  --bg: #F5F1E8;
  --surface: #FBF9F4;
  --surface-2: #EAE4D8;
  --ink: #232428;
  --ink-soft: #6A655C;
  --line: #DCD4C5;
  --rule: #B8AD99;
  /* Laiton : filets, sélection, numéros. --brass-text est lisible en petit texte. */
  --brass: #A8834A;
  --brass-text: #76582A;
  /* Anciens noms gardés : ils pointent vers les couleurs du musée. */
  --mustard: var(--brass);
  --on-mustard: #1E1F23;
  --terra: var(--brass);
  --terra-text: var(--brass-text);
  --heart: #A3252F;
  --success: #3D684A;
  /* Cartel (étiquette de musée) */
  --kraft: var(--surface);
  --kraft-ink: var(--ink);
  /* Bandeau « Galerie sombre » */
  --band: #121110;
  --band-ink: #EEE8DC;
  --band-soft: #A29C90;
  --frame: #1B1A18;
  --shadow: 59 51 38;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Les anciens « textes machine » deviennent des libellés de musée en petites capitales. */
  --font-mono: var(--font-body);

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2.2rem, 1.6rem + 2.4vw, 3.25rem);
  --step-4: clamp(3rem, 1.8rem + 5vw, 5.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --radius-sm: 4px;
  --max: 1160px;

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Galerie sombre */
    --bg: #121110;
    --surface: #1A1917;
    --surface-2: #24221F;
    --ink: #EEE8DC;
    --ink-soft: #A29C90;
    --line: #2E2B27;
    --rule: #4C463E;
    --brass: #C9A66B;
    --brass-text: #D3B37E;
    --on-mustard: #121110;
    --heart: #E2606C;
    --success: #8CC09A;
    --band: #0B0B0A;
    --band-ink: #EEE8DC;
    --band-soft: #A29C90;
    --frame: #050505;
    --shadow: 0 0 0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121110;
  --surface: #1A1917;
  --surface-2: #24221F;
  --ink: #EEE8DC;
  --ink-soft: #A29C90;
  --line: #2E2B27;
  --rule: #4C463E;
  --brass: #C9A66B;
  --brass-text: #D3B37E;
  --on-mustard: #121110;
  --heart: #E2606C;
  --success: #8CC09A;
  --band: #0B0B0A;
  --band-ink: #EEE8DC;
  --band-soft: #A29C90;
  --frame: #050505;
  --shadow: 0 0 0;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--mustard); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

.i { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--mustard); color: var(--on-mustard); padding: 10px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terra-text);
}
.h2 { font-size: var(--step-3); font-weight: 780; }
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 36ch; line-height: 1.45; }
.muted { color: var(--ink-soft); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { max-width: 52ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--ink); opacity: .88; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn .i { width: 20px; height: 20px; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 18px 8px 14px;
  border-radius: 14px; background: var(--ink); color: var(--bg);
  text-decoration: none; line-height: 1.15;
}
.store .i { width: 26px; height: 26px; }
.store small { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.store strong { font-size: 1.0625rem; }
.store[aria-disabled="true"] { cursor: default; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); }
.nav .btn { margin-inline-start: 8px; min-height: 42px; padding: 8px 18px; }
.nav-toggle {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .i { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .site-header .wrap { gap: 10px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 12px 14px; }
  .js .nav .btn { margin: 8px 0 0; }
  .nav { flex-wrap: wrap; }
}

/* Menu des langues (un <details> : marche sans JavaScript) */
.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .i { width: 18px; height: 18px; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--surface-2); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 190px; list-style: none; display: grid; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgb(var(--shadow) / .45);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; text-align: start; text-align: match-parent; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--mustard); }
[dir="rtl"] .lang-menu a[aria-current] { box-shadow: inset -3px 0 0 var(--mustard); }

/* ---------- Héros ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }
.hero h1 em {
  font-style: normal; position: relative; white-space: nowrap;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--mustard) 70%, transparent) 62%, color-mix(in srgb, var(--mustard) 70%, transparent) 92%, transparent 92%);
}
.hero .lead { max-width: 34ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9375rem; color: var(--ink-soft); }
.chips li { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.chips .i { width: 18px; height: 18px; color: var(--success); }
.promise {
  justify-self: start; max-width: 40ch; padding: 12px 16px; border-radius: 14px;
  background: var(--surface-2); border-inline-start: 4px solid var(--mustard); line-height: 1.4;
}
.promise strong { display: block; font-size: var(--step-1); font-weight: 750; }
.promise span { color: var(--ink-soft); }

/* La cloche : un dôme de verre derrière le téléphone, comme sur le logo */
.showcase { position: relative; display: grid; place-items: center; padding: 28px 0 48px; min-width: 0; }
.showcase::before {
  content: ""; position: absolute; z-index: 0;
  width: min(430px, 100%); aspect-ratio: 0.82; bottom: 30px;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 60%, transparent), color-mix(in srgb, var(--surface-2) 70%, transparent));
  border: 3px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.showcase::after {
  content: ""; position: absolute; z-index: 0; bottom: 14px;
  width: min(480px, 104%); height: 22px; border-radius: 999px; background: var(--terra);
}
.showcase .knob { position: absolute; z-index: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--mustard); top: 4px; }
.showcase .phone { position: relative; z-index: 1; }

/* Étiquettes kraft suspendues */
.tag {
  position: absolute; z-index: 2;
  display: grid; gap: 2px; padding: 10px 14px 10px 26px;
  background: var(--kraft); color: var(--kraft-ink);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 4px 12px 12px 4px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  box-shadow: 0 10px 22px rgb(var(--shadow) / .18);
  line-height: 1.25;
}
.tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); }
.tag b { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.01em; text-transform: none; font-weight: 800; }
.tag .hearts { color: var(--heart); }
.tag .hearts .i { width: 16px; height: 16px; }
.tag .hearts .i.o { color: var(--kraft-ink); opacity: .5; }
.tag--a { top: 16%; left: -2%; transform: rotate(-7deg); }
.tag--b { top: 44%; right: -3%; transform: rotate(5deg); }
.tag--c { bottom: 17%; right: 1%; transform: rotate(-4deg); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .tag--a { left: 0; }
  .tag--b { right: 0; }
  .tag--c { right: 0; }
}
@media (max-width: 420px) {
  .tag { font-size: 0.6875rem; padding: 8px 10px 8px 22px; }
  .tag b { font-size: 1.0625rem; }
}

/* ---------- Téléphone (maquettes d'écran en HTML/CSS) ---------- */
.phone {
  width: 290px; max-width: 100%;
  aspect-ratio: 290 / 600;
  border-radius: 44px; padding: 10px;
  background: var(--frame);
  box-shadow: 0 30px 60px -20px rgb(var(--shadow) / .45), inset 0 0 0 2px var(--rule);
}
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 34px; background: var(--bg);
  display: flex; flex-direction: column;
  font-size: 12px; line-height: 1.3; color: var(--ink);
}
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 4px; font-weight: 700; font-size: 11px; }
.statusbar .island { width: 76px; height: 22px; border-radius: 999px; background: var(--frame); }
.statusbar .batt { width: 20px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; gap: 8px; }
.appbar .i { width: 18px; height: 18px; }
.appbar .icon-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.scr-body { flex: 1; min-height: 0; overflow: hidden; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.scr-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.scr-sub { color: var(--ink-soft); font-size: 11px; }
.tabbar { display: flex; justify-content: space-around; padding: 8px 20px 18px; border-top: 1px solid var(--line); background: var(--surface); font-size: 10px; color: var(--ink-soft); }
.tabbar span { display: grid; justify-items: center; gap: 2px; }
.tabbar .on { color: var(--ink); font-weight: 700; }
.tabbar .i { width: 18px; height: 18px; }

.m-col { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); flex: none; }
.m-banner { height: 62px; position: relative; overflow: hidden; }
.m-banner svg { position: absolute; width: 74px; height: 74px; }
.m-banner--vinyl { background: #C9A35E; }
.m-banner--vinyl svg:nth-child(1) { left: 10px; top: -6px; }
.m-banner--vinyl svg:nth-child(2) { left: 70px; top: 6px; }
.m-banner--vinyl svg:nth-child(3) { right: 16px; top: -10px; }
.m-banner--watch { background: #2F3742; }
.m-banner--watch svg { left: 50%; margin-left: -37px; top: -6px; }
.m-banner--coin { background: #6E3B45; }
.m-banner--coin svg:nth-child(1) { left: 18px; top: -4px; width: 64px; height: 64px; }
.m-banner--coin svg:nth-child(2) { left: 96px; top: 8px; width: 56px; height: 56px; }
.m-banner--coin svg:nth-child(3) { right: 20px; top: -8px; width: 60px; height: 60px; }
.m-col-body { padding: 8px 10px 10px; display: grid; gap: 4px; }
.m-row { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.m-row strong { font-size: 13px; }
.m-badge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); }
.m-price { font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.m-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.m-bar i { display: block; height: 100%; width: 68%; background: var(--mustard); border-radius: inherit; }
.m-cta { margin-top: auto; background: var(--mustard); color: var(--on-mustard); border-radius: 999px; text-align: center; padding: 9px; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 6px; }
.m-cta .i { width: 14px; height: 14px; }

.m-hero-banner { height: 84px; margin: 0 -14px; background: #C4A27A; position: relative; overflow: hidden; flex: none; }
.m-hero-banner svg { position: absolute; width: 96px; height: 96px; }
.m-hero-banner svg:nth-child(1) { left: -8px; top: -4px; }
.m-hero-banner svg:nth-child(2) { left: 88px; top: 10px; }
.m-hero-banner svg:nth-child(3) { right: -6px; top: -14px; }
.m-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.m-total { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 7px; display: grid; gap: 2px; min-width: 0; }
.m-total span { font-size: 9px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-total b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; white-space: nowrap; }
.m-total .up { color: var(--success); }
.m-pills { display: flex; gap: 5px; font-size: 10px; }
.m-pills span { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.m-pills .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.m-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; display: grid; gap: 3px; min-width: 0; }
.m-thumb { aspect-ratio: 1.25; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.m-thumb svg { width: 72%; height: 72%; }
.m-thumb--dark { background: #2F3742; }
.m-thumb--red { background: #A9543F; }
.m-thumb--mustard { background: #C9A35E; }
.m-item p { font-size: 10px; font-weight: 700; padding-inline: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item .m-meta { display: flex; justify-content: space-between; align-items: center; padding: 0 3px 3px; }
.m-item .m-price { font-size: 9.5px; color: var(--ink-soft); }
.hearts { display: inline-flex; gap: 1px; color: var(--heart); }
.hearts .i { width: 10px; height: 10px; }
.hearts .i.o { color: var(--ink-soft); }

.m-photo { margin: 0 -14px; aspect-ratio: 1.5; background: #C4A27A; display: grid; place-items: center; position: relative; flex: none; }
.m-photo--dark { background: #2F3742; }
.m-photo svg { width: 62%; height: 62%; }
.m-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.m-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgb(245 241 232 / .6); }
.m-dots i:first-child { background: #F5F1E8; width: 14px; border-radius: 3px; }
.m-count { position: absolute; top: 8px; right: 10px; font-family: var(--font-mono); font-size: 9px; background: rgb(18 17 16 / .6); color: #F5F1E8; padding: 2px 7px; border-radius: 999px; }
.m-details { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.m-details div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 10.5px; }
.m-details div + div { border-top: 1px solid var(--line); }
.m-details dt { color: var(--ink-soft); }
.m-details dd { margin: 0; font-weight: 600; text-align: end; }
.m-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.m-tags span { font-size: 9.5px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); font-weight: 600; }
.hearts--lg .i { width: 15px; height: 15px; }

/* Paywall (page Tarifs) */
.m-pay { align-items: stretch; text-align: center; gap: 12px; }
.m-pay img { width: 54px; height: 54px; margin: 6px auto 0; border-radius: 14px; }
.m-pay ul { list-style: none; display: grid; gap: 7px; text-align: start; font-size: 11px; }
.m-pay li { display: flex; gap: 7px; align-items: flex-start; }
.m-pay li .i { width: 15px; height: 15px; color: var(--terra); }
.m-plan { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); text-align: start; font-size: 11px; }
.m-plan.on { border-color: var(--mustard); background: var(--surface-2); }
.m-plan .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-soft); flex: none; }
.m-plan.on .dot { border: 4px solid var(--ink); }
.m-plan div { flex: 1; min-width: 0; }
.m-plan small { display: block; color: var(--ink-soft); font-size: 9px; }
.m-plan b { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.m-plan em { font-style: normal; font-size: 8.5px; font-weight: 700; background: var(--mustard); color: var(--on-mustard); padding: 1px 6px; border-radius: 999px; margin-inline-start: 4px; }
.m-fine { font-size: 8.5px; color: var(--ink-soft); }

/* Prix masqués (démo du bouton œil) */
[data-prices].prices-hidden .price-val { color: transparent; position: relative; }
[data-prices].prices-hidden .price-val::after {
  content: "•••"; position: absolute; inset-inline-start: 0; top: 0; color: var(--ink-soft); letter-spacing: .1em;
}

/* ---------- Bande « pour tout ce qui se collectionne » ---------- */
.shelf-strip { border-block: 1px solid var(--line); background: var(--surface-2); }
.shelf-strip .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding-block: 20px; }
.shelf-strip p { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.shelf-strip ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }

/* ---------- Fonctions ---------- */
.spotlights { display: grid; gap: clamp(20px, 3vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spot {
  display: grid; align-content: start; gap: 14px; min-width: 0;
  padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.spot h3 { font-size: var(--step-1); font-weight: 750; }
.spot p { color: var(--ink-soft); }
.spot-demo { border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); padding: 14px 16px; display: grid; gap: 10px; min-height: 164px; align-content: center; }
.demo-totals { display: grid; gap: 4px; }
.demo-totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.demo-totals span { font-size: 0.875rem; color: var(--ink-soft); }
.demo-totals b { font-family: var(--font-mono); font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.demo-totals .up { color: var(--success); }
.eye-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.875rem/1 var(--font-body); cursor: pointer;
}
.eye-btn .i { width: 18px; height: 18px; }
.eye-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.demo-hearts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-hearts .hearts .i { width: 28px; height: 28px; }
.demo-hearts .m-price { font-size: 0.8125rem; color: var(--ink-soft); }
.demo-series { display: grid; gap: 8px; }
.demo-series .m-row { font-size: 0.9375rem; }
.demo-series .m-row b { font-family: var(--font-mono); font-weight: 500; }
.demo-series .m-bar { height: 10px; }
.demo-series .coins { display: flex; gap: 4px; }
.demo-series .coins svg { width: 22px; height: 22px; }
.demo-series .coins .miss { opacity: .25; filter: grayscale(1); }

.features { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); list-style: none; }
.features li { display: grid; align-content: start; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding-block: 20px; border-top: 1px solid var(--line); }
.features .i { width: 26px; height: 26px; color: var(--terra); grid-row: span 2; margin-top: 2px; }
.features h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.features p { color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 960px) {
  .spotlights, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlights .spot:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .spotlights, .features { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Aperçu (captures) ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
  gap: clamp(20px, 4vw, 48px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px 4px 24px; margin-inline: -4px;
}
.gallery figure { margin: 0; display: grid; justify-items: center; gap: 18px; scroll-snap-align: center; }
.gallery figcaption { text-align: center; max-width: 30ch; display: grid; gap: 4px; }
.gallery figcaption b { font-family: var(--font-display); font-size: var(--step-1); }
.gallery figcaption span { color: var(--ink-soft); font-size: 0.9375rem; }
.gallery:focus-visible { outline-offset: 6px; }
.scroll-hint { display: none; font-size: 0.875rem; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 960px) { .scroll-hint { display: block; } }

/* ---------- Bande « tes données » ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--mustard); }
.band .lead { color: var(--band-soft); }
.band-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.promises { list-style: none; display: grid; gap: 0; counter-reset: p; }
.promises li { display: grid; align-content: start; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding-block: 18px; border-top: 1px solid rgb(238 232 220 / .16); }
.promises li:first-child { border-top: 0; padding-top: 0; }
.promises .i { width: 26px; height: 26px; color: var(--mustard); grid-row: span 2; }
.promises h3 { font-size: 1.1875rem; font-weight: 700; }
.promises p { color: var(--band-soft); }
@media (max-width: 860px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); align-items: stretch; max-width: 960px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0;
  padding: clamp(22px, 3vw, 36px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.plan--pro { border: 2px solid var(--mustard); box-shadow: 0 24px 50px -28px rgb(var(--shadow) / .5); }
.plan-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-name h3 { font-size: var(--step-2); font-weight: 800; }
.pill { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--mustard); color: var(--on-mustard); }
.pill--soft { background: var(--surface-2); color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 2vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--ink-soft); }
.price b.price-tbd { font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem); letter-spacing: -0.03em; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); }
.option--main { border-color: var(--mustard); background: var(--surface-2); }
.option div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.option strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.option small { color: var(--ink-soft); font-size: 0.875rem; }
.option .amount { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; text-align: end; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.checks .i { width: 20px; height: 20px; color: var(--success); margin-top: 3px; }
.checks .soon { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--terra-text); margin-inline-start: 4px; white-space: nowrap; }
.plan .btn { margin-top: auto; }
.plan-note { font-size: 0.875rem; color: var(--ink-soft); }
.plans-foot { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 340px; font-variant-numeric: tabular-nums; }
.compare caption { text-align: start; padding: 18px 20px 6px; font-family: var(--font-display); font-size: var(--step-1); font-weight: 750; }
.compare th, .compare td { padding: 13px 20px; text-align: start; border-top: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 500; }
.compare td { width: 20%; text-align: center; }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 12px 10px; }
  .compare caption { padding-inline: 12px; }
  .compare td { width: 72px; }
}
.compare thead th:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 500; }
.compare .i { width: 20px; height: 20px; margin-inline: auto; }
.compare .yes { color: var(--success); }
.compare .no { color: var(--ink-soft); }
.compare .group th { background: var(--surface-2); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; }

.rules { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.rules li { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.rules .rule-n { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--terra-text); }
.rules h3 { font-size: 1.125rem; font-weight: 700; }
.rules p { color: var(--ink-soft); font-size: 0.9375rem; }

.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pay-layout .phone { width: 270px; }
@media (max-width: 860px) { .pay-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; } .pay-layout > div { justify-self: stretch; } }

/* ---------- Feuille de route ---------- */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.roadmap > li { display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.roadmap .when { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terra-text); }
.roadmap > li.now { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.roadmap > li.now .when { color: var(--mustard); }
.roadmap > li.now p, .roadmap > li.now ul li { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.roadmap h3 { font-size: 1.25rem; font-weight: 750; }
.roadmap p { font-size: 0.9375rem; color: var(--ink-soft); }
.roadmap ul { list-style: none; display: grid; gap: 6px; font-size: 0.9375rem; }
.roadmap ul li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); }
.roadmap ul .i { width: 18px; height: 18px; margin-top: 2px; color: var(--terra); }
.roadmap > li.now ul .i { color: var(--mustard); }
.roadmap-note { margin-top: 18px; color: var(--ink-soft); font-size: 0.9375rem; }
@media (max-width: 900px) { .roadmap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2) center / 14px 14px no-repeat;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-size: 12px 2px, 2px 12px;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 22px; color: var(--ink-soft); display: grid; gap: 10px; max-width: 68ch; }
.faq .answer strong { color: var(--ink); }
.faq-groups { display: grid; gap: clamp(40px, 6vw, 64px); }
.faq-group h2 { font-size: var(--step-2); font-weight: 780; margin-bottom: 12px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; list-style: none; }
.faq-nav a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.faq-nav a:hover { border-color: var(--ink); }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; }
.more-link .i { width: 18px; height: 18px; }

/* ---------- Appel final ---------- */
.final { text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: 22px; }
.final img { width: 84px; height: 84px; }
.final .h2 { max-width: 18ch; }
.final .lead { margin-inline: auto; text-align: center; }
.final .store-row { justify-content: center; }

/* ---------- Pages simples (légal, 404) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.04em; }
.prose { max-width: 72ch; display: grid; gap: 16px; padding-bottom: clamp(64px, 9vw, 120px); }
.prose h2 { font-size: var(--step-2); font-weight: 750; margin-top: 24px; }
.prose h3 { font-size: var(--step-1); font-weight: 700; margin-top: 8px; }
.prose ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.todo { background: color-mix(in srgb, var(--mustard) 30%, transparent); color: var(--ink); padding: 0 4px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.875em; }
.callout { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.callout--note { background: transparent; border-style: dashed; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Choix de la langue (page « / ») et page introuvable ---------- */
.picker { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; padding-block: 48px; }
.picker .wrap { display: grid; justify-items: center; gap: 20px; text-align: center; }
.picker img { width: 84px; height: 84px; }
.picker h1 { font-size: var(--step-3); font-weight: 800; }
.picker .tag { position: static; transform: rotate(-4deg); }
.lang-list { list-style: none; display: grid; gap: 10px; width: min(100%, 520px); margin-top: 8px; }
.lang-list a {
  display: grid; gap: 2px; padding: 14px 18px; text-align: start; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.lang-list a:hover { border-color: var(--ink); }
.lang-list b { font-family: var(--font-display); font-size: var(--step-1); }
.lang-list span { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding-block: 48px 36px; font-size: 0.9375rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .about { display: grid; gap: 12px; align-content: start; color: var(--ink-soft); max-width: 34ch; }
.site-footer .legal-line { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.875rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .about { grid-column: 1 / -1; } }

/* ---------- Identité « musée » (réglages communs, placés après les composants) ----------
 * Titres en serif de poids moyen, libellés en petites capitales espacées, filets fins, angles discrets.
 * Les mêmes détails que l'app : cartel encadré d'un filet, numéro d'inventaire en laiton. */
:is(h1, h2, h3, h4, .h2, .brand, .scr-title, .spot h3, .features h3, .promises h3, .plan-name h3, .price b,
  .compare caption, .rules h3, .roadmap h3, .faq-group h2, .page-head h1, .prose h2, .prose h3, .picker h1,
  .shelf-strip ul, .lang-list b) { font-weight: 500; letter-spacing: -0.01em; }
.hero h1 { font-weight: 500; letter-spacing: -0.02em; line-height: 0.98; }
.hero h1 em { font-style: italic; background: none; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0.04em; bottom: 0.02em; height: 2px; background: var(--brass); }
.page-head h1 { letter-spacing: -0.02em; }
.brand { font-weight: 600; letter-spacing: 0.02em; }
.promise strong { font-weight: 600; }
.eyebrow, .site-footer h2, .compare thead th, .compare .group th, .rules .rule-n, .roadmap .when,
  .checks .soon, .pill, .shelf-strip p { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.16em; color: var(--brass-text); }
.site-footer h2, .compare thead th, .shelf-strip p { color: var(--ink-soft); }
.btn { border-radius: 6px; font-weight: 600; }
.store small { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; opacity: .75; }
.features h3, .share-points h3, .promises h3, .rules h3 { font-size: 1.375rem; line-height: 1.15; }
.spot h3, .roadmap h3 { font-size: 1.625rem; line-height: 1.1; }
.btn--ghost { border-width: 1px; border-color: var(--rule); }
.nav a { border-radius: 4px; font-weight: 500; }
.pill { background: transparent; color: var(--brass-text); border: 1px solid var(--brass); border-radius: 3px; }
.plan--pro { border: 1px solid var(--brass); }
.m-cta { background: var(--ink); color: var(--bg); border-radius: 6px; font-weight: 600; }
.m-plan em { background: transparent; color: var(--brass-text); border: 1px solid var(--brass); border-radius: 3px; }
.m-bar { height: 2px; border-radius: 0; background: var(--line); }
.m-bar i { background: var(--brass); border-radius: 0; }
.m-col { border-radius: 4px; }
.m-item, .m-total { border-radius: 4px; }
.m-pills span { border-radius: 3px; }
.showcase::after { background: var(--rule); height: 14px; }
.showcase .knob { background: var(--brass); }

/* Cartels autour du téléphone (anciennes étiquettes kraft) : papier, filet fin, petites capitales. */
.tag {
  padding: 10px 14px; border: 1px solid var(--rule); border-radius: 0; clip-path: none;
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: .14em; color: var(--ink-soft);
  box-shadow: 0 12px 26px -12px rgb(var(--shadow) / .35);
}
.tag::before { content: none; }
.tag b { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; color: var(--ink); letter-spacing: 0; }
.tag--a { transform: rotate(-2deg); }
.tag--b { transform: rotate(1.5deg); }
.tag--c { transform: rotate(-1deg); }

/* Maquettes : la fiche d'une pièce comme dans l'app (photo en héros, puis cartel). */
.m-hero { margin: 0 -14px; aspect-ratio: 1.05; background: #C4A27A; display: grid; place-items: center; flex: none; }
.m-hero--dark { background: #2F3742; }
.m-hero svg { width: 66%; height: 66%; filter: drop-shadow(0 8px 12px rgb(0 0 0 / .25)); }
.m-pager { display: flex; align-items: center; gap: 3px; font-size: 8px; letter-spacing: .14em; color: var(--ink-soft); }
.m-pager i { flex: 1; max-width: 22px; height: 1.5px; background: var(--line); }
.m-pager i:first-child { background: var(--ink); }
.m-pager span { margin-inline-start: auto; }
.m-cartel { border: 1px solid var(--rule); background: var(--surface); padding: 10px 11px; display: grid; gap: 5px; }
.m-cartel-head { display: flex; justify-content: space-between; gap: 6px; font-size: 7.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.m-cartel-head .no { color: var(--brass-text); white-space: nowrap; }
.m-cartel-title { font-family: var(--font-display); font-size: 21px; line-height: 1.05; font-weight: 500; }
.m-cartel-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.m-cartel-prices span { display: block; font-size: 7px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.m-cartel-prices b { font-size: 11px; font-weight: 600; white-space: nowrap; }
.m-share { background: var(--ink); color: var(--bg); text-align: center; padding: 8px; border-radius: 5px; font-weight: 600; font-size: 11px; }
.m-room { font-size: 8px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text); }
.m-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
.m-wall .m-thumb { aspect-ratio: 0.8; border-radius: 1px; box-shadow: 0 6px 12px -6px rgb(var(--shadow) / .45); }
.m-wall p { font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-wall small { display: block; font-size: 7px; letter-spacing: .14em; color: var(--brass-text); font-weight: 600; margin-top: 3px; }

/* ---------- Le partage en cartel (section de l'accueil) ---------- */
.posters { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 36px); }
.poster {
  --p-bg: #121110; --p-paper: #1A1917; --p-ink: #EEE8DC; --p-soft: #A29C90; --p-rule: #4C463E; --p-brass: #D3B37E; --p-heart: #E2606C;
  width: min(230px, 42vw); aspect-ratio: 9 / 16; background: var(--p-bg); color: var(--p-ink); outline: 1px solid var(--rule); outline-offset: -1px;
  padding: 13% 7% 7%; display: flex; flex-direction: column; gap: 6%;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .45);
}
.poster--light { --p-bg: #F5F1E8; --p-paper: #FBF9F4; --p-ink: #232428; --p-soft: #6A655C; --p-rule: #B8AD99; --p-brass: #76582A; --p-heart: #A3252F; aspect-ratio: 1; width: min(260px, 46vw); flex-direction: row; align-items: center; padding: 6%; gap: 6%; }
.poster-art { flex: 1; display: grid; place-items: center; min-height: 0; }
.poster-art span { width: 86%; aspect-ratio: 1; background: #C4A27A; display: grid; place-items: center; box-shadow: 0 10px 18px -8px rgb(0 0 0 / .5); }
.poster--light .poster-art { width: 100%; }
.poster--light .poster-art span { background: #2F3742; aspect-ratio: 0.8; width: 100%; }
.poster--light .poster-art, .poster--light .poster-cartel { flex: 1 1 0; min-width: 0; }
.poster-art svg { width: 72%; height: 72%; }
.poster-cartel { border: 1px solid var(--p-rule); background: var(--p-paper); padding: 9px 11px; display: grid; gap: 4px; }
.poster--light .poster-cartel { flex: 1; }
.poster-cartel .m-cartel-head { color: var(--p-soft); }
.poster-cartel .m-cartel-head .no { color: var(--p-brass); }
.poster-cartel .m-cartel-title { color: var(--p-ink); font-size: 19px; }
.poster-cartel .hearts { color: var(--p-heart); }
.poster-cartel p { font-size: 9px; color: var(--p-soft); line-height: 1.4; }
.poster-sign { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 7px; letter-spacing: .22em; text-transform: uppercase; color: var(--p-soft); }
.poster--light .poster-sign { display: none; }
.share-points { list-style: none; display: grid; gap: 14px; max-width: 46ch; }
.share-points li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-points .i { color: var(--brass); width: 20px; height: 20px; margin-top: 2px; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .poster-cartel { padding: 6px 7px; } .poster-cartel .m-cartel-title { font-size: 15px; } .poster-cartel p { font-size: 8px; } }

/* ---------- Le journal d'une pièce (section de l'accueil) ----------
 * Même mise en page que le partage, image à gauche pour alterner. Reprend la frise de l'app :
 * jour en petites capitales, entrées reliées par un filet, commentaire souligné de laiton. */
.journal-grid > .journal-demo { order: -1; }
@media (max-width: 860px) { .journal-grid > .journal-demo { order: 0; } }
.journal-demo {
  justify-self: center; width: min(360px, 100%); background: var(--surface); border: 1px solid var(--rule);
  padding: 20px 22px 22px; display: grid; gap: 10px; box-shadow: 0 30px 60px -32px rgb(var(--shadow) / .45);
}
.jd-head { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.jd-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; font-weight: 500; }
.jd-day { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.jd-rail { list-style: none; display: grid; gap: 16px; border-inline-start: 2px solid var(--line); padding-inline-start: 18px; }
.jd-rail li { position: relative; display: grid; gap: 4px; }
.jd-rail li::before { content: ""; position: absolute; inset-inline-start: -23px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.jd-rail .jd-note::before { background: var(--brass); }
.jd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.jd-kind { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.jd-note .jd-kind { color: var(--brass-text); }
.jd-time { font-size: .75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.jd-note-title { font-weight: 500; }
.jd-text { font-size: .875rem; color: var(--ink-soft); }
.jd-change { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-variant-numeric: tabular-nums; }
.jd-change s { color: var(--ink-soft); }
.jd-change b { font-weight: 600; }
.jd-change .i { width: 14px; height: 14px; color: var(--ink-soft); }
.jd-comment { font-size: .875rem; font-style: italic; border-inline-start: 2px solid var(--brass); padding-inline-start: 10px; margin-top: 2px; }
.jd-snap { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.jd-snap span { color: var(--ink-soft); }
.jd-snap b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Langues et écritures (en fin de fichier : ces réglages l'emportent sur ceux du dessus) ----------
 * Cormorant Garamond et Inter couvrent le latin et le cyrillique. Pour les autres écritures, les titres
 * prennent une serif hébergée ici (Amiri pour l'arabe, Tiro Devanagari pour le hindi ; le chinois prend la
 * serif de l'appareil) et le texte courant les polices installées sur l'appareil. Aucune police d'un autre site.
 * Nouvelle langue avec une nouvelle écriture : ajoute-la ici (voir docs/traduction.md). */
[lang]:lang(zh) {
  --font-script: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-script-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}
[lang]:lang(ar) {
  --font-script: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
  --font-script-serif: "Amiri", "Noto Naskh Arabic", serif;
}
[lang]:lang(hi) {
  --font-script: "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", Mangal, sans-serif;
  --font-script-serif: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
}
[lang]:is(:lang(zh), :lang(ar), :lang(hi)) {
  --font-display: "Cormorant Garamond", var(--font-script-serif);
  --font-body: "Inter", var(--font-script);
  --font-mono: var(--font-body);
  font-family: var(--font-body);
}
/* Pas de petites capitales hors latin et cyrillique : la casse n'existe pas, on garde le texte tel quel. */
:is(:lang(zh), :lang(ar), :lang(hi)) :is(.eyebrow, .tag, .m-cartel-head, .m-room, .jd-day, .jd-kind) { text-transform: none; }
/* L'espacement des lettres casse les liaisons de l'arabe et la ligne du devanagari, et serre trop le chinois. */
:is(:lang(zh), :lang(ar), :lang(hi)) { letter-spacing: normal !important; }
/* Ces écritures ont besoin de plus de hauteur de ligne (signes au-dessus et au-dessous des lettres). */
body:is(:lang(ar), :lang(hi)) { line-height: 1.75; }
:is(:lang(ar), :lang(hi)) :is(h1, h2, h3, h4, .brand, .price b, .tag b, .m-cartel-title, .jd-title) { line-height: 1.35; }
:is(:lang(ar), :lang(hi)) .hero h1 { line-height: 1.2; }
:lang(zh) :is(h1, h2, h3, h4) { line-height: 1.25; }
:lang(zh) .hero h1 { line-height: 1.15; }
/* Droite à gauche : les flèches et chevrons pointent dans l'autre sens. */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
