/* Galerie minérale : fond pierre claire, encre profonde, accent laiton issu du document de projet.
   Mise en page éditoriale sur 12 colonnes, signalétique en capitales larges, repères en mono. */
:root {
  --paper: #F1F0EC;
  --surface: #FAF9F6;
  --ink: #141413;
  --ink-2: #3A3936;
  --mineral: #6E6B64;
  --line: #D8D6CF;
  --brass: #B8955A;
  --brass-soft: #E7DCC6;
  --on-ink: #F4F2EE;
  --band: #161615;
  --band-line: #34332F;
  --overlay: rgba(250, 249, 246, 0.86);
  --scrim: rgba(20, 20, 19, 0.38);
  --ok: #2F6B4F;
  --err: #A2402A;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.5rem;
  --fs-xl: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-2xl: clamp(2.4rem, 5.6vw, 4.5rem);
  --fs-hero: clamp(3.4rem, 9.4vw, 9.2rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121211; --surface: #1A1917; --ink: #EDEBE6; --ink-2: #C9C6BF; --mineral: #9B988F; --line: #2E2D2A;
    --brass: #C8A86B; --brass-soft: #3A3122; --on-ink: #141413; --band: #EDEBE6; --band-line: #CFCBC2;
    --overlay: rgba(26, 25, 23, 0.86); --scrim: rgba(0, 0, 0, 0.55); --ok: #6FB592; --err: #E08A72;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121211; --surface: #1A1917; --ink: #EDEBE6; --ink-2: #C9C6BF; --mineral: #9B988F; --line: #2E2D2A;
  --brass: #C8A86B; --brass-soft: #3A3122; --on-ink: #141413; --band: #EDEBE6; --band-line: #CFCBC2;
  --overlay: rgba(26, 25, 23, 0.86); --scrim: rgba(0, 0, 0, 0.55); --ok: #6FB592; --err: #E08A72;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { -webkit-user-select: none; content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass-soft); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mineral); }
.display { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; line-height: 0.95; text-transform: uppercase; }
.h2 { font-family: var(--f-display); font-stretch: 112%; font-size: var(--fs-2xl); font-weight: 750; line-height: 1; letter-spacing: -0.02em; }
.h3 { font-family: var(--f-display); font-stretch: 105%; font-size: var(--fs-lg); font-weight: 700; line-height: 1.15; }
.lede { font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--mineral); }
.mono { font-family: var(--f-mono); }

/* ---------- Boutons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--b-bg); border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.ghost { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.brass { --b-bg: var(--brass); --b-fg: #141413; }
.btn.small { min-height: 38px; padding: 0 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }

/* ---------- En-tête ---------- */
.demo-bar { background: var(--brass-soft); color: var(--ink); font-size: var(--fs-xs); font-family: var(--f-mono); letter-spacing: .04em; text-align: center; padding: 8px var(--gutter-r) 8px var(--gutter); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.25rem; letter-spacing: .14em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo i { width: 10px; height: 10px; background: var(--brass); border-radius: 2px; display: inline-block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ink); transition: right .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; }
@media (max-width: 1440px) {
  .nav { display: none; }
  .site-header .header-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); padding: 8px var(--gutter-r) 20px var(--gutter); border-bottom: 1px solid var(--line); gap: 0; }
  .nav.open a { padding: 14px 0; font-size: var(--fs-md); border-bottom: 1px solid var(--line); }
  .nav.open a::after { display: none; }
  .nav.open .mobile-only { display: block; }
}
.nav .mobile-only { display: none; }

/* ---------- Vues ---------- */
[data-view] { display: none; }
[data-view].active { display: block; animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

section.block { padding-block: clamp(64px, 10vw, 140px); }
.block-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.block-head .eyebrow { grid-column: 1 / span 3; align-self: start; padding-top: .6em; }
.block-head h2 { grid-column: 4 / span 6; }
.block-head .aside { grid-column: 10 / span 3; justify-self: end; }
@media (max-width: 860px) {
  .block-head { grid-template-columns: 1fr; gap: 14px; }
  .block-head .eyebrow, .block-head h2, .block-head .aside { grid-column: auto; justify-self: start; }
}

/* ---------- Accueil : héros ---------- */
.hero { padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-word { font-size: var(--fs-hero); display: flex; overflow: hidden; margin-left: -0.04em; letter-spacing: 0.02em; }
.hero-word span { display: inline-block; }
.hero-word.anim span { animation: rise .8s var(--ease) both; }
.hero-word.anim span:nth-child(2) { animation-delay: .05s; }
.hero-word.anim span:nth-child(3) { animation-delay: .1s; }
.hero-word.anim span:nth-child(4) { animation-delay: .15s; }
.hero-word.anim span:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.fade-up { animation: fadeUp .7s var(--ease) .25s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-tag { font-family: var(--f-display); font-stretch: 100%; font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.1; margin-top: clamp(14px, 2vw, 22px); letter-spacing: -0.015em; }
.hero-intro { margin-top: 18px; max-width: 44ch; color: var(--ink-2); font-size: var(--fs-md); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.preview {
  position: relative; aspect-ratio: 4 / 4.6; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: #E9E7E1; cursor: pointer; isolation: isolate; border: 0; padding: 0; display: block; width: 100%; text-align: left;
}
.preview .poster { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; transition: opacity .8s; }
.preview .scene-host { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 1s; }
.preview.live .scene-host { opacity: 1; }
.preview.live .poster { opacity: 0; }
.preview .cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: #141413; z-index: 2;
}
.preview .cap b { background: rgba(250,249,246,.9); padding: 8px 12px; border-radius: 999px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.preview .cap .go { background: #141413; color: #F4F2EE; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); display: inline-block; }
.preview.live .dot { animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-word { font-size: clamp(3.2rem, 18.5vw, 9rem); }
  .preview { aspect-ratio: 4 / 3; }
}

.acro { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acro ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.acro li { padding: 22px 20px 24px 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; }
.acro li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.acro .tile { grid-row: span 2; width: 38px; height: 38px; border-radius: 8px; background: var(--brass); color: #141413; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; }
.acro strong { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-base); }
.acro span { font-size: var(--fs-sm); color: var(--mineral); line-height: 1.4; }
@media (max-width: 960px) {
  .acro ol { grid-template-columns: 1fr 1fr; }
  .acro li, .acro li + li { padding: 18px 12px 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .acro li:first-child { border-top: 0; }
  .acro li:nth-child(2) { border-top: 0; }
}
@media (max-width: 520px) { .acro ol { grid-template-columns: 1fr; } .acro li:nth-child(2) { border-top: 1px solid var(--line); } }

/* ---------- Le lieu ---------- */
.place { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.plan-fig { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2vw, 24px); }
.plan-fig svg { width: 100%; height: auto; display: block; }
.plan-fig figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.facts { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.facts li b { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .place { grid-template-columns: 1fr; } }

.plan-svg .stand { cursor: pointer; transition: opacity .2s; }
.plan-svg .stand:hover rect.fillr, .plan-svg .stand:focus rect.fillr { opacity: .85; }
.plan-svg text { font-family: var(--f-mono); }

/* ---------- Index des marques ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) 88px 28px; gap: 20px; align-items: center;
  padding: 18px 0; text-decoration: none; position: relative;
}
.index .st { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--mineral); }
.index .nm { font-family: var(--f-display); font-stretch: 115%; font-weight: 750; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.05; text-transform: uppercase; transition: transform .35s var(--ease); }
.index .ct { font-size: var(--fs-sm); color: var(--mineral); }
.index .th { width: 88px; aspect-ratio: 4/5; border-radius: 2px; overflow: hidden; transform: scale(.92); transition: transform .35s var(--ease); }
.index .th img { width: 100%; height: 100%; object-fit: cover; }
.index .ar { font-size: 1.2rem; transition: transform .3s var(--ease); }
.index a:hover .nm { transform: translateX(10px); }
.index a:hover .th { transform: scale(1); }
.index a:hover .ar { transform: translateX(4px); }
.tag-demo { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px; color: var(--mineral); vertical-align: middle; text-transform: uppercase; }
@media (max-width: 720px) {
  .index a { grid-template-columns: 52px minmax(0, 1fr) 64px; gap: 12px; }
  .index .ct, .index .ar { display: none; }
  .index .th { width: 64px; }
}

/* ---------- Produits mis en avant ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.gallery .g { grid-column: span 4; }
.gallery .g:first-child { grid-column: span 6; grid-row: span 2; }
.gallery .g:nth-child(2), .gallery .g:nth-child(3) { grid-column: span 3; }
.gallery .g:nth-child(4), .gallery .g:nth-child(5) { grid-column: span 3; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g, .gallery .g:first-child, .gallery .g:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .gallery .g:first-child { grid-column: span 2; }
}
.pcard { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.pcard .im { aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; background: var(--line); }
.gallery .g:first-child .pcard .im { aspect-ratio: 4/4.4; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover img { transform: scale(1.035); }
.pcard .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; align-items: baseline; }
.pcard .pn { font-weight: 600; }
.pcard .pb { font-size: var(--fs-sm); color: var(--mineral); }
.pcard .pp { font-family: var(--f-mono); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Concept ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { padding: 26px 24px 8px 0; counter-increment: s; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--brass); display: block; margin-bottom: 40px; }
.steps h3 { font-family: var(--f-display); font-size: var(--fs-md); font-weight: 700; margin-bottom: 10px; }
.steps p { color: var(--mineral); font-size: var(--fs-sm); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 22px 16px 18px 0; border-left: 0; }
  .steps li::before { margin-bottom: 16px; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Bande "Pour les marques" ---------- */
.band { background: var(--band); color: var(--on-ink); }
.band .eyebrow, .band .muted { color: var(--on-ink); opacity: .7; color: color-mix(in srgb, var(--on-ink) 62%, transparent); }
.band .btn { --b-bg: var(--on-ink); --b-fg: var(--band); }
.band .btn.ghost { --b-bg: transparent; --b-fg: var(--on-ink); border-color: var(--on-ink); }
.band .btn.ghost:hover { background: var(--on-ink); color: var(--band); }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--band-line); }
.perks div { padding: 26px 26px 28px 0; border-bottom: 1px solid var(--band-line); }
.perks div:nth-child(2n) { padding-left: 26px; border-left: 1px solid var(--band-line); }
.perks h3 { font-family: var(--f-display); font-size: var(--fs-lg); font-weight: 700; margin-bottom: 8px; }
.perks p { color: var(--on-ink); color: color-mix(in srgb, var(--on-ink) 66%, transparent); max-width: 40ch; }
@media (max-width: 720px) { .perks { grid-template-columns: 1fr; } .perks div:nth-child(2n) { padding-left: 0; border-left: 0; } }
.band-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 44px; }

.final { text-align: left; }
.final .big { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 8rem); line-height: .92; letter-spacing: -0.01em; }
.final .row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 36px; }

/* ---------- Modèle économique ---------- */
.rev-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.rev-intro .lede { grid-column: 4 / span 6; }
.rev-intro .rev-note { grid-column: 4 / span 6; font-size: var(--fs-sm); margin-top: -8px; }
.rev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rev-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 16px; margin-inline: -16px; border-bottom: 1px solid var(--line); border-radius: 2px;
}
.rev-list .rev-row.rv {
  transition: background-color .45s var(--ease), opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: 0s, calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms);
}
.rev-n { grid-column: 1 / span 3; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .08em; color: var(--brass); padding-left: 0; transition: padding-left .45s var(--ease); }
.rev-t { grid-column: 4 / span 5; font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.15; transition: transform .45s var(--ease); }
.rev-d { grid-column: 9 / span 3; font-size: var(--fs-sm); color: var(--mineral); line-height: 1.5; }
.rev-s { grid-column: 12 / span 1; justify-self: end; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mineral); white-space: nowrap; }
@media (hover: hover) {
  .rev-row:hover { background-color: var(--surface); }
  .rev-row:hover .rev-n { padding-left: 12px; }
  .rev-row:hover .rev-t { transform: translateX(8px); }
}
@media (max-width: 860px) {
  .rev-intro { grid-template-columns: 1fr; gap: 14px; }
  .rev-intro .lede, .rev-intro .rev-note { grid-column: auto; margin-top: 0; }
  .rev-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 12px; }
  .rev-n { grid-column: 1; grid-row: 1; }
  .rev-t { grid-column: 2; grid-row: 1; }
  .rev-s { grid-column: 3; grid-row: 1; }
  .rev-d { grid-column: 2 / span 2; grid-row: 2; }
}

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: var(--fs-sm); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: span 2; } }

/* ---------- Page marque ---------- */
.brand-hero { padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 28px; font-size: var(--fs-sm); color: var(--mineral); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.brand-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 40px); align-items: end; }
.mono-badge { width: clamp(72px, 10vw, 120px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); overflow: hidden; }
.mono-badge img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.brand-name { font-size: clamp(2.6rem, 8vw, 6.5rem); }
.brand-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.brand-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: var(--fs-xs); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) {
  .brand-head { grid-template-columns: auto minmax(0, 1fr); }
  .brand-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .brand-body { grid-template-columns: 1fr; }
}
.preview-banner { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 30; background: var(--brass); color: #141413; padding: 10px var(--gutter-r) 10px var(--gutter); display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: var(--fs-sm); flex-wrap: wrap; }

/* ---------- Rejoindre ---------- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.join .form-box { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.qa { border-top: 1px solid var(--line); }
.qa > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px; }
.qa h3 { font-family: var(--f-display); font-size: var(--fs-base); font-weight: 700; }
.qa p { color: var(--ink-2); }
.join-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: j; }
.join-steps li { counter-increment: j; display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.join-steps li::before { content: counter(j); font-family: var(--f-mono); color: var(--brass); }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } .join .form-box { position: static; } .qa > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .lbl { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { font-size: var(--fs-xs); color: var(--mineral); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brass-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field .err { color: var(--err); font-size: var(--fs-xs); display: none; }
.field.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.notice { padding: 14px 16px; border-radius: var(--radius); font-size: var(--fs-sm); border: 1px solid var(--line); background: var(--paper); }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.notice.err { border-color: var(--err); color: var(--err); }
.notice.info { border-color: var(--brass); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.copy-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.copy-row code { font-family: var(--f-mono); background: var(--surface); padding: 6px 10px; border-radius: 3px; user-select: all; }

/* ---------- Fiche produit ---------- */
.scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: var(--scrim); z-index: 80; opacity: 0; transition: opacity .3s; }
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .42s var(--ease);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
  box-shadow: -20px 0 60px rgba(0,0,0,.08);
}
.sheet.show { transform: none; }
.sheet .sh-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 12px; }
.sheet .sh-body { overflow-y: auto; flex: 1; padding: 0 0 24px; overscroll-behavior: contain; }
.sheet .main-img { aspect-ratio: 4/3.3; background: var(--line); overflow: hidden; }
.sheet .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px 18px 0; }
.thumbs button { width: 58px; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: 2px; padding: 0; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); outline: 1px solid var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet .info { padding: 22px 22px 0; display: grid; gap: 14px; }
.sheet .pname { font-family: var(--f-display); font-stretch: 110%; font-size: var(--fs-xl); font-weight: 750; line-height: 1.02; }
.sheet .price { font-family: var(--f-mono); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.sheet .sh-actions { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sheet .sh-actions .btn { width: 100%; }
@media (max-width: 640px) {
  .sheet { top: auto; left: 0; width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 14px 14px 0 0; transform: translateY(100%); padding-left: env(safe-area-inset-left, 0px); }
  .sheet .main-img { aspect-ratio: 16/12; }
  .sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; }
}
.sheet .grab { display: none; }
@media (max-width: 640px) { .sheet .grab { display: block; } }

/* ---------- Showroom plein écran ---------- */
.showroom { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; background: #E9E7E1; color: #141413; overflow: hidden; }
.showroom .scene-host { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.scene-canvas { display: block; touch-action: none; outline: none; }
.sr-ui { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.sr-ui > * { pointer-events: auto; }
.sr-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter-r) 12px var(--gutter);
  pointer-events: none;
}
.sr-top > * { pointer-events: auto; }
.sr-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(250,249,246,.9); color: #141413; border: 1px solid rgba(20,20,19,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.sr-pill:hover { background: #fff; }
.sr-pill.dark { background: #141413; color: #F4F2EE; border-color: #141413; }
.sr-pill[aria-pressed="true"] { background: #141413; color: #F4F2EE; }
.sr-top .logo { color: #141413; margin-right: auto; background: rgba(250,249,246,.9); padding: 0 14px; height: 42px; border-radius: 999px; }
.sr-top .sp { flex: 1; }
.sr-top .lbl-short { display: none; }
@media (max-width: 720px) { .sr-top .lbl-long { display: none; } .sr-top .lbl-short { display: inline; } .sr-top .logo span { display: none; } .sr-pill { padding: 0 13px; } .sr-top { gap: 6px; } }

.sr-side {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 70px); left: var(--gutter); width: 260px; max-height: calc(100% - 200px);
  overflow: auto; background: rgba(250,249,246,.92); border-radius: 10px; padding: 8px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(20,20,19,.08);
}
.sr-side h2 { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: #6E6B64; padding: 8px 10px 6px; }
.sr-side button { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: #141413; }
.sr-side button:hover, .sr-side button.on { background: rgba(20,20,19,.06); }
.sr-side .s { font-family: var(--f-mono); font-size: 11px; color: #6E6B64; }
.sr-side .n { font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; }
.sr-side .n small { display: block; font-weight: 400; color: #6E6B64; font-size: 12px; }
.sr-side hr { border: 0; border-top: 1px solid rgba(20,20,19,.1); margin: 6px 4px; }

.minimap { position: absolute; right: var(--gutter-r); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); width: 150px; background: rgba(250,249,246,.92); border-radius: 10px; padding: 8px; border: 1px solid rgba(20,20,19,.08); }
.minimap svg { width: 100%; height: auto; display: block; }
.minimap .stand { cursor: pointer; }

.sr-chips { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); display: none; gap: 8px; overflow-x: auto; padding: 4px var(--gutter-r) 4px var(--gutter); scrollbar-width: none; }
.sr-chips::-webkit-scrollbar { display: none; }
.sr-chips button { flex: 0 0 auto; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(20,20,19,.08); background: rgba(250,249,246,.94); font-weight: 600; font-size: var(--fs-sm); color: #141413; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.sr-chips button i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sr-chips button.on { background: #141413; color: #F4F2EE; }
@media (max-width: 860px) {
  .sr-side { display: none; }
  .sr-side.open { display: block; left: var(--gutter); right: var(--gutter-r); width: auto; bottom: 80px; max-height: none; }
  .sr-chips { display: flex; }
  .minimap { bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); width: 108px; }
}

.sr-tip { position: fixed; z-index: 75; pointer-events: none; background: #141413; color: #F4F2EE; font-size: 12px; padding: 6px 10px; border-radius: 6px; transform: translate(14px, 14px); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.sr-tip.show { opacity: 1; }

.hints { position: absolute; left: 16px; right: 16px; margin: 0 auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); max-width: 560px; background: #141413; color: #F4F2EE; border-radius: 12px; padding: 18px 20px; display: grid; gap: 14px; animation: fadeUp .5s var(--ease) both; }
.hints ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hints li { font-size: var(--fs-sm); line-height: 1.35; color: #CFCBC2; }
.hints li b { display: block; color: #F4F2EE; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.hints .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hints .btn { --b-bg: #F4F2EE; --b-fg: #141413; min-height: 38px; }
.hints .t-touch { display: none; }
@media (pointer: coarse) { .hints .t-mouse { display: none; } .hints .t-touch { display: block; } }
@media (max-width: 860px) { .hints { bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); } .hints ul { grid-template-columns: 1fr; gap: 8px; } }

.loader { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; background: #E9E7E1; z-index: 5; transition: opacity .5s; }
.loader.done { opacity: 0; pointer-events: none; }
.loader .box { width: min(320px, 80%); display: grid; gap: 14px; text-align: center; color: #141413; }
.loader .word { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 2.2rem; letter-spacing: .18em; }
.loader .bar { height: 2px; background: rgba(20,20,19,.12); overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: #141413; transition: width .4s var(--ease); }
.loader .sub { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: #6E6B64; }

/* Vue 2D (alternative) */
.plan2d { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; background: var(--paper); color: var(--ink); padding: calc(env(safe-area-inset-top, 0px) + 76px) var(--gutter-r) 40px var(--gutter); }
.plan2d .in { max-width: 1100px; margin: 0 auto; }
.plan2d .zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.zone { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.zone header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.zone header button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.zone .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.zone .row button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: 12px; }
.zone .row img { aspect-ratio: 4/5; width: 100%; object-fit: cover; border-radius: 2px; margin-bottom: 6px; }
.zone.empty { border-style: dashed; display: grid; place-items: center; min-height: 140px; text-align: center; padding: 20px; }
@media (max-width: 720px) { .plan2d .zones { grid-template-columns: 1fr; } }

/* ---------- Gestion ---------- */
.admin { padding-block: 40px 100px; }
.admin-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.admin-list .hd { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.admin-list ul { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto; }
.admin-list li button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px; border: 0; background: none; border-radius: 4px; cursor: pointer; text-align: left; }
.admin-list li button:hover, .admin-list li button.on { background: var(--paper); }
.pill { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.pill.on { color: var(--ok); }
.pill.off { color: var(--mineral); }
.admin-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(18px, 3vw, 32px); }
.admin-panel h2 { font-family: var(--f-display); font-size: var(--fs-lg); margin-bottom: 4px; }
.admin-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.admin-section > h3 { font-size: var(--fs-sm); font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--mineral); margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: var(--fs-sm); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.prod-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prod-row img { width: 56px; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; background: var(--line); }
.prod-row .pr-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.img-list { display: flex; gap: 8px; flex-wrap: wrap; }
.img-list .it { position: relative; width: 74px; }
.img-list img { width: 74px; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.img-list .it button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(20,20,19,.8); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.swatch-row { display: flex; gap: 10px; align-items: center; }
.swatch-row input[type="color"] { width: 52px; height: 46px; padding: 4px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--surface); padding: 16px 0 calc(env(safe-area-inset-bottom, 0px) + 4px); margin-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.sticky-actions .grp { display: flex; gap: 10px; flex-wrap: wrap; }
.confirm-inline { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-sm); flex-wrap: wrap; }
.apps { display: grid; gap: 12px; }
.apps article { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--paper); }
.apps dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: var(--fs-sm); }
.apps dt { color: var(--mineral); }
.apps dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } .admin-list { position: static; } .apps dl { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: var(--fs-sm); z-index: 95; opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Révélations au défilement ---------- */
.rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.pre { opacity: 0; transform: translateY(22px); }

/* ---------- États vides ---------- */
.empty-row { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv.pre { opacity: 1; transform: none; }
}

/* ---------- Studio de pilotage (espace de gestion) ---------- */
.st-tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 20; background: var(--paper); padding: 10px 0; margin-bottom: 18px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs button { flex: 0 0 auto; }
.st-grid-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.st-kpi { background: var(--surface); padding: 18px 20px; display: grid; gap: 4px; }
.st-k-l { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--mineral); }
.st-k-v { font-family: var(--f-display); font-stretch: 105%; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-k-s { font-size: var(--fs-sm); color: var(--mineral); }
.st-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.st-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.st-head h2 { margin: 0; }
.st-legend { font-size: var(--fs-xs); color: var(--mineral); display: inline-flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; }
.st-legend i { width: 10px; height: 10px; border-radius: 2px; border: 1px dashed var(--line); display: inline-block; }
.st-legend i.on { background: var(--ink); border: 0; }
.st-legend i.draft { background: var(--brass-soft); border: 1px solid var(--brass); }
.st-cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.st-cell { min-height: 64px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); padding: 8px; text-align: left; display: grid; align-content: space-between; cursor: pointer; transition: border-color .2s, background-color .2s; color: var(--ink); }
.st-cell span { font-family: var(--f-mono); font-size: 11px; color: var(--mineral); }
.st-cell small { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cell:hover { border-color: var(--ink); }
.st-cell.on { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.st-cell.on span { color: var(--line); }
.st-cell.draft { background: var(--brass-soft); border: 1px solid var(--brass); }
.st-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; margin-bottom: 14px; }
.st-bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; align-items: end; text-align: center; gap: 4px; }
.st-bar i { display: block; background: var(--ink); border-radius: 2px 2px 0 0; min-height: 1px; align-self: end; }
.st-bar .st-bv { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.st-bar small { font-size: 10.5px; color: var(--mineral); white-space: nowrap; }
.st-pipe { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); color: var(--mineral); border-top: 1px solid var(--line); padding-top: 12px; }
.st-pipe b { color: var(--ink); font-variant-numeric: tabular-nums; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.st-item { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.st-item:first-child { border-top: 0; padding-top: 0; }
.st-item.ignored { opacity: .6; }
.st-item-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.st-item p { font-size: var(--fs-sm); }
.st-status { margin-left: auto; font-size: var(--fs-xs); color: var(--mineral); }
.st-prio { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.st-prio.p1 { color: var(--err); }
.st-prio.p2 { color: var(--brass); }
.st-prio.p3 { color: var(--mineral); }
.st-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.st-log { list-style: none; margin: 0; padding: 0; }
.st-log li { display: grid; grid-template-columns: 170px 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); align-items: baseline; }
.st-log li:first-child { border-top: 0; }
.st-log-t { color: var(--mineral); font-variant-numeric: tabular-nums; }
.st-tag { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mineral); }
.st-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.st-inline { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.st-inline select { min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 0 10px; }
.st-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: var(--fs-sm); }
.st-dl dt { color: var(--mineral); }
.st-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.st-ai { margin-top: 16px; padding: 14px 16px; border-left: 2px solid var(--brass); background: var(--paper); font-size: var(--fs-sm); }
.st-ai ul { margin: 4px 0 0; padding-left: 1.1em; }
.st-steps { list-style: none; counter-reset: x; display: flex; gap: 8px 22px; flex-wrap: wrap; padding: 0; margin: 4px 0 14px; font-size: var(--fs-sm); color: var(--mineral); }
.st-steps li { counter-increment: x; display: inline-flex; gap: 8px; align-items: center; }
.st-steps li::before { content: counter(x); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-family: var(--f-mono); font-size: 11px; }
.st-steps li.done { color: var(--ink); }
.st-steps li.done::before { content: "✓"; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.st-goals { display: flex; flex-wrap: wrap; gap: 8px; }
.st-goal { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: var(--fs-sm); color: var(--ink); transition: border-color .2s; }
.st-goal:hover { border-color: var(--ink); }
.st-goal.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.st-progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.st-progress i { display: block; height: 100%; background: var(--brass); transition: width .5s var(--ease); }
.st-plan { list-style: none; margin: 0; padding: 0; }
.st-plan li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.st-plan li:first-child { border-top: 0; }
.st-plan li.done { color: var(--mineral); }
.st-plan li .check { grid-column: 1 / span 2; }
.st-check { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; }
.st-plan li.done .st-check { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.st-confirm { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; background: var(--scrim); display: grid; place-items: center; padding: 20px; }
.st-confirm-box { background: var(--surface); border-radius: 10px; padding: 22px; max-width: 440px; width: 100%; display: grid; gap: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.st-confirm-box .st-row { justify-content: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) {
  .st-grid-kpi { grid-template-columns: 1fr 1fr; }
  .st-two { grid-template-columns: 1fr; }
  .st-log li { grid-template-columns: 1fr; gap: 2px; }
  .st-dl { grid-template-columns: 1fr; gap: 2px; }
  .st-dl dd { margin-bottom: 8px; }
}
@media (max-width: 520px) { .st-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-plan li { grid-template-columns: 26px minmax(0, 1fr); } .st-plan li .btn { grid-column: 2; justify-self: start; } }

/* ---------- Bouton « Les avis » (accueil) ---------- */
@media (max-width: 560px) {
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { width: 100%; padding: 0 14px; }
  .hero-actions .btn:first-child { grid-column: 1 / -1; }
}
@media (max-width: 340px) { .hero-actions { grid-template-columns: 1fr; } }

/* ---------- Les avis ---------- */
.rv-head .aside { white-space: nowrap; }
.rv-lede { margin: calc(-1 * clamp(16px, 3vw, 40px)) 0 clamp(32px, 4vw, 48px); max-width: 60ch; }
.rv-panel { margin-bottom: clamp(32px, 4vw, 56px); max-width: 640px; }
.rv-panel.open { animation: fadeUp .45s var(--ease) both; }
.rv-panel .form-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 40px); }
.rv-summary .chips { margin-left: auto; }
.rv-avg { display: inline-flex; align-items: center; gap: 10px; }
.rv-avg b { font-family: var(--f-display); font-size: var(--fs-lg); font-weight: 700; }
.stars { display: inline-flex; gap: 3px; flex: none; }
.stars i { width: 12px; height: 12px; background: var(--line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: var(--brass); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.rv-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s var(--ease); animation: fadeUp .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.rv-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.rv-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rv-card h3 { font-family: var(--f-display); font-size: var(--fs-md); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.rv-role { display: inline-block; margin-top: 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mineral); }
.rv-card blockquote { margin: 0; color: var(--ink-2); line-height: 1.6; overflow-wrap: anywhere; }
.rv-card footer { margin-top: auto; font-size: var(--fs-xs); color: var(--mineral); }
.rv-empty { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 48px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.rv-empty-t { font-family: var(--f-display); font-size: var(--fs-xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.rv-empty .muted { max-width: 52ch; }
.rv-empty .btn { margin-top: 8px; }
.rv-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-opt { position: relative; cursor: pointer; }
.rv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rv-opt span { display: inline-block; font-size: var(--fs-sm); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); transition: border-color .2s, background-color .2s, color .2s; }
.rv-opt:hover span { border-color: var(--ink); }
.rv-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rv-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--brass-soft); }
.rv-rate-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rv-rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rv-rate input { position: absolute; opacity: 0; pointer-events: none; }
.rv-rate label { width: 30px; height: 30px; cursor: pointer; background: var(--line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: background-color .15s, transform .15s var(--ease); }
.rv-rate label:hover, .rv-rate label:hover ~ label, .rv-rate input:checked ~ label { background: var(--brass); }
.rv-rate label:hover { transform: scale(1.08); }
.rv-rate input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.rv-clear { font-size: var(--fs-xs); color: var(--mineral); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-mod { display: grid; gap: 12px; }
.rv-mod-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.rv-mod-row .rv-card { animation: none; }
.rv-mod-act { display: flex; flex-direction: column; gap: 8px; }
.rv-add { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
.rv-add-wide { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .rv-summary .chips { margin-left: 0; }
  .rv-mod-row { grid-template-columns: 1fr; }
  .rv-mod-act { flex-direction: row; }
  .rv-add { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rv-card, .rv-panel.open { animation: none; } .rv-card:hover { transform: none; } }

/* Demandes : filtres par type */
.rq-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.rq-dash { margin: 20px 0; } .rq-dash .rq-types { margin-bottom: 0; }
.rq-type { --k: var(--ink); display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; cursor: pointer; position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.rq-type::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k); }
.rq-type:hover { border-color: var(--k); transform: translateY(-1px); }
.rq-type[aria-selected="true"] { border-color: var(--k); box-shadow: inset 0 0 0 1px var(--k); }
.rq-type b { font-size: 28px; line-height: 1.1; }
.rq-type span { font-weight: 600; }
.rq-type i, .rq-type em { font-style: normal; font-size: 12px; color: var(--mineral); }
.rq-type i { color: var(--k); font-weight: 600; }
.k-all { --k: var(--ink); } .k-stand { --k: #651D32; } .k-site { --k: #2F6FB3; } .k-pack { --k: #B8955A; }
.rq-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--k); margin-bottom: 4px; }
.rq-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.rq-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.admin-section h3 { margin: 18px 0 10px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--mineral); }
