/* Nuebe · canvas v2 — d'après Melius : canvas à points, nœuds reliés, blocs sombres */
:root {
  --bg: #F3F3F0;
  --card: #FFFFFF;
  --tint: #E9E9E4;
  --ink: #141414;
  --muted: #5A5A55;
  --line: #E0DFD9;
  --line-strong: #C9C8C0;
  --primary: #2B3FE0;
  --primary-soft: #E3E6FB;
  --accent: #FF6A3D;
  --accent-soft: #FFE4DA;
  --ok: #178A55;
  --on-ink: #FFFFFF;
  --on-primary: #FFFFFF;
  --on-accent: #141414;
  --dot: #CFCEC7;
  --bar: #DEDDD6;
  --bar-soft: #ECEBE5;
  /* blocs sombres (nav, canvas de nœuds, questions, pied de page) */
  --dark: #151515;
  --dark-2: #212121;
  --dark-line: rgba(255,255,255,.13);
  --dark-muted: #B9B8B2;
  --dark-dot: rgba(255,255,255,.09);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --shadow: 0 1px 2px rgba(17,17,17,.05), 0 10px 26px -14px rgba(17,17,17,.16);
  --ease: cubic-bezier(.2,.7,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip; transition: background .4s, color .4s;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
em { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.it { font-family: var(--serif); font-style: italic; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.dots { background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px); background-size: 20px 20px; }

/* ── Titres : grande serif, à la Melius ── */
h1, h2, .pivot { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 10.4vw, 5.25rem); line-height: 1; text-wrap: nowrap; }
@media (min-width: 620px) { h1 { font-size: clamp(3.75rem, 6.4vw, 5.25rem); } }
.hl { display: block; white-space: nowrap; }
.legal h1 { text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.04; }
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.01em; }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.125rem; max-width: 50ch; }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { text-align: center; }
.sec-head.center .sub { margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-s); cursor: pointer;
  background: var(--btn-bg, var(--ink)); color: var(--btn-fg, var(--on-ink)); text-decoration: none;
  font: 500 1rem/1 var(--sans);
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--btn-hover, var(--primary)); color: var(--btn-hover-fg, var(--on-primary)); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #fff; color: #141414; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.link { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }

/* ── Navigation : barre sombre flottante ── */
.nav { position: sticky; top: 10px; z-index: 50; padding: 0 10px; }
.nav-bar { display: flex; align-items: center; gap: 22px; max-width: 1260px; height: 58px; margin: 10px auto 0; padding: 0 9px 0 18px;
  background: var(--dark); color: #fff; border: 1px solid var(--dark-line); border-radius: var(--r-m); box-shadow: 0 10px 30px -16px rgba(0,0,0,.5); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.logo-word { font-weight: 600; font-size: 1.1875rem; letter-spacing: -.04em; }
.nav-links { display: none; gap: 26px; margin-left: 10px; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.78); font-size: .9375rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav .btn { margin-left: auto; }
.nav :focus-visible { outline-color: #fff; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ── Hero ── */
.hero { position: relative; margin-top: -78px; padding: 230px 16px 210px; text-align: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-in { position: relative; z-index: 2; max-width: 800px; margin-inline: auto; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; margin-bottom: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-size: .8125rem; font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.status span { transition: opacity .25s, filter .25s; }
.status.is-swap span { opacity: 0; filter: blur(4px); }
.status.is-done i { background: var(--ok); animation: none; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.rot { display: inline-block; white-space: nowrap; }
.rot em { display: inline-block; color: var(--primary); transition: opacity .45s var(--ease), filter .45s var(--ease), transform .45s var(--ease); }
.rot.is-out em { opacity: 0; filter: blur(10px); transform: translateY(.12em); }
.lead { margin: 24px auto 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.45; color: var(--muted); max-width: 30ch; }
.br-wide { display: none; }
@media (min-width: 700px) { .br-wide { display: inline; } .lead { max-width: none; } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* L'arc de cartes */
.orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.oc { position: absolute; left: var(--mx); top: var(--my); width: calc(var(--w) * .74); translate: -50% -50%;
  opacity: 0; scale: .86; filter: blur(10px);
  transition: opacity .7s var(--ease), scale .8s var(--spring), filter .7s var(--ease); }
.oc.is-on { opacity: 1; scale: 1; filter: none; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--n) * -.9s); }
.oc-wide { display: none; }
@keyframes float { 50% { transform: translateY(-9px); } }
.oc-tag { display: flex; align-items: center; gap: 6px; margin: 0 0 6px 2px; font-size: .75rem; font-weight: 500; color: var(--muted); }
.oc-tag i { width: 10px; height: 8px; border-radius: 2px; border: 1.5px solid currentColor; }
.oc-body { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 760px) {
  .hero { padding: 250px 16px 250px; }
  .oc { left: var(--x); top: var(--y); width: var(--w); }
  .oc-wide { display: block; }
  .oc-side { display: none; }
}
@media (min-width: 1120px) { .oc-side { display: block; } }
.oc .ln { display: block; flex: 1; height: 6px; border-radius: 99px; background: var(--bar); }
.oc .ln.soft { background: var(--bar-soft); }
.w12 { flex: none !important; width: 12%; } .w30 { flex: none !important; width: 30%; } .w60 { flex: none !important; width: 60%; }
.oc-header .oc-body { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; }
.oc-header .av { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); flex: none; }
.oc-header .sp { flex: 1; }
.oc-header .pill { width: 34px; height: 18px; border-radius: 6px; background: var(--ink); flex: none; }
.oc-palette .oc-body { display: flex; gap: 6px; padding: 10px; height: 58px; }
.oc-palette .oc-body span { flex: 1; border-radius: 6px; background: var(--primary); }
.oc-palette .oc-body span:nth-child(2) { background: var(--accent); }
.oc-palette .oc-body span:nth-child(3) { background: var(--ink); }
.oc-palette .oc-body span:nth-child(4) { background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.oc-calendar .oc-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 12px; }
.oc-calendar .oc-body i { aspect-ratio: 1; border-radius: 4px; background: var(--bar-soft); }
.oc-calendar .oc-body i:nth-child(4), .oc-calendar .oc-body i:nth-child(10) { background: var(--primary-soft); }
.oc-calendar .oc-body i:nth-child(12) { background: var(--accent); }
.oc-chart .oc-body { display: flex; align-items: flex-end; gap: 7px; height: 96px; padding: 14px 14px 12px; }
.oc-chart .oc-body i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--primary-soft); }
.oc-chart .oc-body i:last-child { background: var(--primary); }
.oc-list .oc-body { display: grid; gap: 10px; padding: 12px; }
.oc-list .r { display: flex; align-items: center; gap: 9px; }
.sq { width: 20px; height: 20px; border-radius: 6px; background: var(--primary-soft); flex: none; }
.sq.s2 { background: var(--accent-soft); } .sq.s3 { background: var(--tint); }
.oc-message .oc-body { display: grid; gap: 8px; padding: 12px; }
.oc-message .bub { display: grid; gap: 5px; width: 76%; padding: 9px 10px; border-radius: 10px 10px 10px 3px; background: var(--tint); }
.oc-message .bub.me { justify-self: end; width: 56%; background: var(--primary); border-radius: 10px 10px 3px 10px; }
.oc-message .bub.me .ln { background: rgba(255,255,255,.75); }
.oc-toggle .oc-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.oc-form .oc-body { display: grid; gap: 8px; padding: 12px; }
.fd { display: block; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); }
.oc-form .go { height: 22px; width: 50%; border-radius: 6px; background: var(--ink); }
.oc-image .oc-body { height: 100px; background: var(--primary-soft); }
.oc-image svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 66%; fill: var(--primary); opacity: .3; }
.sun { position: absolute; right: 16%; top: 20%; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); }
.oc-button .oc-body { padding: 8px; }
.cta { display: grid; place-items: center; height: 34px; border-radius: 8px; background: var(--primary); }
.cta i { width: 44%; height: 6px; border-radius: 99px; background: var(--on-primary); }
.oc-search .oc-body { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 999px; }
.lens { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.oc-tile .oc-body { display: flex; align-items: center; gap: 10px; padding: 10px; }
.thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--accent-soft); flex: none; }
.oc-tile .col { flex: 1; display: grid; gap: 7px; }
.sw { width: 34px; height: 20px; padding: 2px; border-radius: 99px; background: var(--line-strong); flex: none; }
.sw i { display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw2 { background: var(--primary); } .sw2 i { transform: translateX(14px); }

/* ── Onglets (pilule) ── */
.tabs { display: flex; gap: 4px; padding: 5px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.8); font-size: .9375rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tabs :focus-visible { outline-color: #fff; outline-offset: 1px; }
.tabs-light { background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.tabs-light button { color: var(--muted); }
.tabs-light button:hover { color: var(--ink); }
.tabs-light :focus-visible { outline-color: var(--primary); }

/* ── Ce qu'on fait : la scène ── */
.scene { display: grid; border-radius: var(--r-l); overflow: hidden; background: var(--dark); box-shadow: var(--shadow); }
@media (min-width: 940px) { .scene { grid-template-columns: 1fr 1.12fr; } }
.scene-left { position: relative; min-height: 460px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, var(--accent), transparent 60%), radial-gradient(120% 100% at 100% 100%, var(--primary), transparent 62%), color-mix(in srgb, var(--accent) 45%, var(--primary)); }
@media (min-width: 940px) { .scene-left { min-height: 560px; } }
.scene-dev { position: absolute; inset: var(--ph, 150px) 0 0 0; overflow: hidden; }
.dev-strip { height: 100%; display: flex; flex-direction: column; transform: translateY(calc(var(--pos, 0) * -100%)); will-change: transform; }
.scene:not(.is-scroll) .dev-strip, .scene.is-step .dev-strip { transition: transform .7s cubic-bezier(.3,.7,.15,1); }
.dev { flex: 0 0 100%; min-height: 0; display: grid; grid-template: minmax(0, 100%) / minmax(0, 100%); place-items: center; overflow: hidden; }
.dev > * { scale: var(--ds, 1); }
.prompt { position: absolute; left: 16px; right: 16px; top: 16px; max-width: 500px; background: color-mix(in srgb, var(--dark) 92%, transparent); border: 1px solid var(--dark-line); border-radius: var(--r-m); color: #fff; box-shadow: 0 16px 40px -18px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.prompt .tabs { border-bottom: 1px solid var(--dark-line); }
.prompt-txt { display: flex; gap: 12px; min-height: 86px; padding: 14px 16px 16px; font-size: 1rem; line-height: 1.4; }
.prompt-txt svg { flex: none; margin-top: 2px; opacity: .6; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--accent); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.f-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; }
.f-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.f-bar b { flex: 1; max-width: 46%; height: 10px; margin-left: 10px; border-radius: 99px; background: var(--line); }
.f-notch { width: 30%; height: 6px; margin: 9px auto 0; border-radius: 99px; background: var(--line-strong); flex: none; }
.browser { width: min(86%, 420px); background: var(--card); border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.b-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.b-head { display: flex; align-items: center; gap: 8px; }
.b-head span { width: 18px; height: 18px; border-radius: 6px; background: var(--primary); }
.b-head i { width: 28px; height: 6px; border-radius: 99px; background: var(--bar); }
.b-head i:first-of-type { margin-left: auto; }
.b-head b { width: 44px; height: 18px; border-radius: 6px; background: var(--ink); }
.b-img { position: relative; height: clamp(84px, 11vw, 120px); border-radius: 8px; background: var(--primary-soft); overflow: hidden; }
.b-img svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; fill: var(--primary); opacity: .28; }
.b-line { height: 8px; border-radius: 99px; background: var(--bar); }
.b-line.short { width: 58%; }
.b-btn { width: 34%; height: 24px; border-radius: 7px; background: var(--primary); margin-top: 2px; }
.dev.is-run .drop { animation: drop .75s var(--spring) both; animation-delay: calc(var(--d) * .17s + .15s); }
@keyframes drop { from { opacity: 0; transform: translateY(-28px) scale(.96); } }
.phone { width: 168px; height: 290px; display: flex; flex-direction: column; background: var(--card); border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.screens { position: relative; flex: 1; margin: 12px 14px 16px; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateX(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.screen.is-on { opacity: 1; transform: none; }
.screen.is-out { transform: translateX(-16px); }
.screen .t { width: 46%; height: 9px; border-radius: 99px; background: var(--ink); margin-bottom: 3px; }
.s-list .r { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 9px; background: var(--tint); }
.s-list .r span { width: 18px; height: 18px; border-radius: 6px; background: var(--primary-soft); }
.s-list .r:nth-child(3) span { background: var(--accent-soft); }
.s-list .r i { flex: 1; height: 6px; border-radius: 99px; background: var(--bar); }
.s-grid .g { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-grid .g span { border-radius: 10px; background: var(--tint); }
.s-grid .g span:nth-child(2) { background: var(--primary-soft); }
.s-grid .g span:nth-child(5) { background: var(--accent-soft); }
.s-form .f { height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); }
.s-form .f.tall { flex: 1; }
.s-form .go { height: 30px; border-radius: 8px; background: var(--primary); }

.scene-right { display: flex; flex-direction: column; color: #fff; background-image: radial-gradient(circle, var(--dark-dot) 1px, transparent 1.4px); background-size: 20px 20px; }
.graph { position: relative; aspect-ratio: 600 / 260; margin: 28px 20px 0; }
.graph svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.graph circle { fill: var(--accent); }
.wire { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.scene.is-draw .wire { animation: wire .9s var(--ease) both; }
.scene.is-draw .w2 { animation-delay: .55s; }
@keyframes wire { from { stroke-dashoffset: 1; } }
.gn { position: absolute; }
.gn-1 { left: 4%; top: 14%; width: 21%; height: 34%; }
.gn-2 { left: 40%; top: 34%; width: 22%; height: 50%; }
.gn-3 { left: 76%; top: 12%; width: 20%; height: 46%; }
.gn-l { position: absolute; left: 0; bottom: calc(100% + 5px); font-size: .6875rem; color: var(--dark-muted); white-space: nowrap; }
.gn-t { position: absolute; left: 0; top: calc(100% + 6px); padding: 2px 7px; border-radius: 5px; background: var(--accent); color: var(--on-accent); font-size: .6875rem; font-weight: 500; white-space: nowrap; }
.gn-t.ok { background: var(--ok); color: #fff; }
.gn-b { position: absolute; inset: 0; border-radius: 8px; background: var(--dark-2); border: 1px solid var(--dark-line); overflow: hidden; }
.scene.is-draw .gn { animation: gn .6s var(--ease) both; }
.scene.is-draw .gn-2 { animation-delay: .45s; }
.scene.is-draw .gn-3 { animation-delay: 1s; }
@keyframes gn { from { opacity: 0; filter: blur(8px); transform: translateY(6px); } }
.gn-1 .gn-b { display: flex; flex-direction: column; justify-content: center; gap: 12%; padding: 12%; }
.gn-1 .ln { display: block; height: 5px; flex: none; border-radius: 99px; background: rgba(255,255,255,.3); }
.wf { position: absolute; inset: 9%; display: flex; flex-direction: column; gap: 7%; transition: inset .6s var(--ease); }
.scene[data-shape="phone"] .wf { inset: 8% 26%; }
.scene[data-shape="tab"] .wf { inset: 14% 8%; flex-direction: row; }
.scene[data-shape="tab"] .wf-a { height: auto; width: 34%; }
.scene[data-shape="tab"] .wf-c { height: auto; width: 22%; }
.wf i { border-radius: 4px; border: 1.5px dashed rgba(255,255,255,.4); transition: border-radius .6s; }
.wf-a { height: 16%; } .wf-b { flex: 1; } .wf-c { height: 14%; width: 46%; }
.scene[data-shape="phone"] .wf-c { width: 100%; border-radius: 99px; }
.wf-fill i { border: 0; }
.wf-fill .wf-a { background: #fff; }
.wf-fill .wf-b { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.wf-fill .wf-c { background: var(--accent); }
.scene-txts { display: grid; padding: clamp(24px, 4vw, 44px); margin-top: auto; }
.scene-txt { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .6s var(--ease), visibility .45s; }
.js .scene-txt:not(.is-on) { opacity: 0; transform: translateY(34px); visibility: hidden; }
.js .scene-txt.is-prev:not(.is-on) { transform: translateY(-34px); }
.scene-txt + .scene-txt { margin-top: 28px; }
.js .scene-txt + .scene-txt { margin-top: 0; }
.scene-txt .tag { font-size: .875rem; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.scene-txt h3 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
.scene-txt h3 + p { margin-top: 12px; color: var(--dark-muted); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 5px 12px; border: 1px solid var(--dark-line); border-radius: 7px; font-size: .8125rem; font-weight: 500; color: var(--dark-muted); }
.pivot { text-align: center; margin: clamp(48px, 7vw, 88px) auto 0; max-width: 20ch; font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.04; }
.pivot .it, h2 .it { color: var(--primary); }

/* ── Comment on travaille : nœuds reliés ── */
.dots-band { background-color: var(--tint); border-block: 1px solid var(--line); }
.flow { position: relative; }
.flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-wires path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.flow-wires .bg { stroke: var(--line-strong); }
.flow-wires .fg { stroke: var(--accent); }
.flow ol { display: grid; gap: 34px; }
.fnode { position: relative; padding: 18px 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow);
  opacity: .55; transition: opacity .5s var(--ease), border-color .5s, transform .6s var(--ease); }
.fnode.is-lit { opacity: 1; border-color: var(--line-strong); }
.port { position: absolute; z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: background .4s, box-shadow .4s; }
.fnode:first-child .port.in, .fnode:last-child .port.out { display: none; }
.port.in { left: 36px; top: -5px; } .port.out { left: 36px; bottom: -5px; }
.fnode.is-lit .port { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.fhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ftag { padding: 2px 8px; border-radius: 5px; background: var(--tint); color: var(--muted); font-size: .75rem; font-weight: 600; transition: background .4s, color .4s; }
.fnode.is-lit .ftag { background: var(--accent); color: var(--on-accent); }
.ficon { color: var(--muted); }
.fnode h3 { margin-bottom: 8px; }
.fnode p { color: var(--muted); font-size: 1rem; }
@media (min-width: 940px) {
  .flow ol { grid-template-columns: repeat(4, 1fr); gap: 44px; padding-bottom: 60px; }
  .fnode:nth-child(even) { top: 60px; }
  .port.in { left: -5px; top: 50%; margin-top: -4px; } .port.out { left: auto; right: -5px; top: 50%; bottom: auto; margin-top: -4px; }
}

/* ── Pourquoi du sur mesure : carte centrale + onglets ── */
.sol { position: relative; display: grid; justify-items: center; gap: 22px; padding: clamp(28px, 6vw, 72px) 16px clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r-l); background-color: var(--tint); overflow: hidden; }
.sol-stage { display: grid; gap: 16px; width: min(100%, 460px); }
.sol-card { padding: 10px 10px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); transition: opacity .5s var(--ease), filter .5s var(--ease), scale .5s var(--ease); }
.js .sol-card { grid-area: 1 / 1; }
.js .sol-card:not(.is-on) { opacity: 0; filter: blur(10px); scale: .97; visibility: hidden; }
.sol-card h3 { margin: 22px 14px 8px; }
.sol-card p { margin: 0 14px; color: var(--muted); }
.sol .tabs { max-width: 100%; }
.sol-float { display: none; position: absolute; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font: italic 400 1.125rem/1.2 var(--serif); color: var(--muted); animation: float 8s ease-in-out infinite; }
@media (min-width: 1000px) {
  .sol-float { display: block; }
  .sf1 { left: 7%; top: 20%; rotate: -4deg; } .sf2 { right: 8%; top: 14%; rotate: 3deg; animation-delay: -2s; }
  .sf3 { left: 11%; bottom: 24%; rotate: 2deg; animation-delay: -4s; } .sf4 { right: 10%; bottom: 30%; rotate: -3deg; animation-delay: -6s; }
}
.why-viz { position: relative; height: 190px; border-radius: var(--r-s); background: var(--tint); overflow: hidden; }
.wv { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wv-drag { gap: 10px; }
.slot-s { width: 46px; height: 46px; border-radius: 10px; border: 1.5px dashed var(--line-strong); }
.wv-drag .blk { position: absolute; left: calc(50% - 79px); top: calc(50% - 23px); width: 46px; height: 46px; border-radius: 10px; background: var(--primary); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--primary) 60%, transparent); }
.wv-drag .cur { position: absolute; left: calc(50% - 54px); top: calc(50% + 2px); }
.sol-card.is-on :is(.blk, .cur) { animation: drag 3.2s cubic-bezier(.65,0,.2,1) infinite; }
@keyframes drag { 0%, 12% { transform: none; } 45%, 62% { transform: translateX(112px); } 92%, 100% { transform: none; } }
.wv-toggle { flex-direction: column; gap: 10px; padding: 0 22px; }
.wv-toggle .row { width: 100%; max-width: 230px; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.wv-toggle .ln { flex: 1; height: 6px; border-radius: 99px; background: var(--bar); }
.wv-toggle .ln.short { flex: .6; margin-right: auto; }
.sol-card.is-on .sw:not(.sw2) { animation: swbg 2.6s var(--ease) infinite; }
.sol-card.is-on .sw:not(.sw2) i { animation: swknob 2.6s var(--spring) infinite; }
@keyframes swbg { 0%, 20% { background: var(--line-strong); } 35%, 80% { background: var(--primary); } 95%, 100% { background: var(--line-strong); } }
@keyframes swknob { 0%, 20% { transform: none; } 35%, 80% { transform: translateX(14px); } 95%, 100% { transform: none; } }
.wv-grow { inset: 26px 26px 26px; }
.wv-grow svg { width: 100%; height: 100%; overflow: visible; }
.wv-grow path { fill: none; vector-effect: non-scaling-stroke; }
.wv-grow .gl { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.wv-grow .gc { stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; }
.wv-grow .clip { position: absolute; inset: -6px; padding: 6px; }
.wv-grow .pt { position: absolute; right: -2px; top: 4%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sol-card.is-on .clip { animation: grow 2.8s var(--ease) infinite; }
.sol-card.is-on .pt { animation: pt 2.8s var(--spring) infinite; }
@keyframes grow { 0% { clip-path: inset(0 100% 0 0); } 60%, 100% { clip-path: inset(0); } }
@keyframes pt { 0%, 52% { transform: scale(0); } 66%, 100% { transform: scale(1); } }
.wv-chat { flex-direction: column; gap: 8px; padding: 0 26px; }
.wv-chat .bub { display: grid; gap: 6px; width: 62%; padding: 11px 12px; border-radius: 14px 14px 14px 4px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; }
.wv-chat .bub i { display: block; height: 6px; border-radius: 99px; background: var(--bar); }
.wv-chat .bub i.short { width: 60%; }
.wv-chat .bub.b2 { position: relative; align-self: flex-end; width: 54%; background: var(--primary); border-color: var(--primary); border-radius: 14px 14px 4px 14px; }
.b2 .reply { display: grid; gap: 6px; }
.b2 .reply i { background: rgba(255,255,255,.75) !important; }
.b2 .typing { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; }
.b2 .typing i { width: 6px; height: 6px !important; border-radius: 50%; background: #fff !important; }
.sol-card.is-on .b2 { animation: bub 3.4s var(--spring) infinite; }
.sol-card.is-on .typing { animation: typing 3.4s linear infinite; }
.sol-card.is-on .typing i { animation: dot .9s ease-in-out infinite; }
.sol-card.is-on .typing i:nth-child(2) { animation-delay: .15s; }
.sol-card.is-on .typing i:nth-child(3) { animation-delay: .3s; }
.sol-card.is-on .reply { animation: reply 3.4s linear infinite; }
@keyframes bub { 0%, 8% { opacity: 0; transform: translateY(8px) scale(.9); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes typing { 0%, 12% { opacity: 0; } 18%, 48% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes reply { 0%, 50% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes dot { 50% { transform: translateY(-3px); opacity: .6; } }

/* ── Quelques idées ── */
.ideas { padding: 0 0 clamp(64px, 9vw, 120px); text-align: center; }
.ideas-t { font: italic 400 1.5rem/1.2 var(--serif); color: var(--muted); margin-bottom: 26px; padding: 0 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { margin-right: 10px; padding: 11px 18px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); font-weight: 500; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ideas-out { margin-top: 28px; padding: 0 20px; font: 400 clamp(1.625rem, 3vw, 2.25rem)/1.1 var(--serif); }
.ideas-out .it { color: var(--primary); }

/* ── Bloc sombre : questions, contact, pied de page ── */
.dark { background-color: var(--dark); color: #fff; --dot: var(--dark-dot); }
.dark :focus-visible { outline-color: #fff; }
.dark h2 .it { color: var(--accent); }
.section.dark { padding-bottom: clamp(40px, 6vw, 72px); }
.faq { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--dark-line); }
.faq details { border-bottom: 1px solid var(--dark-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 20px; height: 20px; opacity: .7; transition: opacity .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { opacity: 1; color: var(--accent); }
.faq details[open] summary i::after { transform: none; }
.faq summary:hover i { opacity: 1; }
.faq-a { padding: 0 44px 24px 2px; color: var(--dark-muted); max-width: 62ch; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

.foot { position: relative; padding: clamp(40px, 8vw, 110px) 0 24px; overflow: hidden; }
.giant { position: relative; z-index: 0; margin: 0 0 -.34em; text-align: center; font: 600 clamp(6rem, 27vw, 24rem)/.8 var(--sans); letter-spacing: -.07em; color: rgba(255,255,255,.085); user-select: none; }
.foot-card { position: relative; z-index: 1; padding: clamp(22px, 4.5vw, 56px); background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r-l); }
.contact { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.contact .sub { color: var(--dark-muted); }
.direct { margin-top: 30px; color: var(--dark-muted); font-size: 1rem; line-height: 1.8; }
.direct a { color: #fff; font-weight: 500; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; }
.direct a:hover { text-decoration-color: #fff; }
.form { display: grid; gap: 16px; }
.f2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .f2 { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 8px; font-size: .9375rem; font-weight: 500; color: #DAD9D3; }
.form input, .form textarea { width: 100%; padding: 13px 14px; border-radius: var(--r-s); border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #fff; font: 400 1rem/1.4 var(--sans); transition: border-color .2s, background .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:hover, .form textarea:hover { border-color: rgba(255,255,255,.4); }
.form :is(input, textarea):focus-visible { outline: 2px solid #fff; outline-offset: 2px; background: rgba(255,255,255,.1); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.note { flex: 1; min-width: 200px; font-size: .875rem; color: #B5B4AE; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--dark-line); }
.foot-min .foot-row { margin-top: 0; padding-top: 0; border-top: 0; }
.foot-min { padding-top: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-right: auto; }
.footer-nav a { color: var(--dark-muted); text-decoration: none; font-size: .9375rem; padding: 4px 0; }
.footer-nav a:hover { color: #fff; }
.copy { color: var(--dark-muted); font-size: .9375rem; }

/* ── Mentions légales ── */
.legal { max-width: 720px; padding: 64px 0 80px; }
.legal h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 20px; }
.legal h2 { font-size: 1.75rem; margin: 36px 0 10px; }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal .legal-h1b { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line-strong); }
.legal h2 + p, .legal p + p { margin-top: 0; }
.legal a { color: var(--primary); text-underline-offset: 3px; }
.legal .legal-date { margin-top: 40px; font-size: .9375rem; }
.legal mark { background: var(--accent-soft); color: var(--ink); padding: 1px 6px; border-radius: 6px; }

/* ── Apparitions au scroll (« mise au point » par défaut via data-rv="flou") ── */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
.js[data-rv="flou"] .rv { transform: none; filter: blur(10px); transition: opacity .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js[data-rv="flou"] .rv.in { filter: none; }
.js[data-rv="zoom"] .rv { transform: scale(.965); transform-origin: 50% 80%; }
.js[data-rv="zoom"] .rv.in { transform: none; }

/* ── Mouvement réduit et mode capture (?fige) : tout est posé, rien ne bouge ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js[data-rv] .rv { opacity: 1; transform: none; filter: none; }
}
html.still { scroll-behavior: auto; }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.js.still .rv, .js.still[data-rv] .rv { opacity: 1; transform: none; filter: none; }

/* ── Thèmes de couleur (html[data-theme]) — « encre » est le thème par défaut ── */
html[data-theme="bordeaux"] {
  --bg: #F6F1EA; --tint: #ECE4D9; --ink: #1E1214; --muted: #655A58; --line: #E3D9CB; --line-strong: #CDBFAE;
  --primary: #6E1423; --primary-soft: #F0DADD; --accent: #C89B4A; --accent-soft: #F1E3C6;
  --dot: #D5C9B8; --bar: #E0D6C8; --bar-soft: #ECE4D8; --dark: #2A0A10; --dark-2: #3A1119;
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-hover: var(--ink); --btn-hover-fg: #fff;
}
html[data-theme="vert"] {
  --bg: #F3F1E8; --tint: #E8E5D8; --ink: #121A15; --muted: #565F59; --line: #DEDBCC; --line-strong: #C5C2B0;
  --primary: #14402E; --primary-soft: #D9E6DD; --accent: #C89B4A; --accent-soft: #F1E3C6;
  --dot: #CFCCBA; --bar: #DAD7C8; --bar-soft: #E8E5D8; --dark: #0C2219; --dark-2: #143024;
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-hover: var(--ink); --btn-hover-fg: #fff;
}
html[data-theme="marine"] {
  --bg: #F3F2EE; --tint: #E8E6DF; --ink: #10151F; --muted: #575C68; --line: #DFDDD4; --line-strong: #C6C4BA;
  --primary: #14274E; --primary-soft: #DADFEC; --accent: #C89B4A; --accent-soft: #F1E3C6;
  --dot: #D0CEC4; --bar: #DCDAD0; --bar-soft: #E9E7DF; --dark: #0B1730; --dark-2: #13233F;
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-hover: var(--ink); --btn-hover-fg: #fff;
}
html[data-theme="mauve"] {
  --bg: #F5F2F2; --tint: #EAE5E7; --ink: #19121D; --muted: #5F5764; --line: #E0D9DD; --line-strong: #C9BFC7;
  --primary: #4B2A5E; --primary-soft: #E6DDEC; --accent: #C89B4A; --accent-soft: #F1E3C6;
  --dot: #D2C9D0; --bar: #DDD5DB; --bar-soft: #EAE4E8; --dark: #1F0F29; --dark-2: #2D1839;
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-hover: var(--ink); --btn-hover-fg: #fff;
}
html[data-theme="nuit"] {
  --bg: #0F1012; --card: #17181B; --tint: #1B1C20; --ink: #F3F2EE; --muted: #A5A49E; --line: #26272C; --line-strong: #3A3B42;
  --primary: #7C8CFF; --primary-soft: #252A52; --accent: #FF8A5C; --accent-soft: #4A2A1E; --ok: #4CC38A;
  --on-ink: #111111; --on-primary: #111111; --dot: #2C2D33; --bar: #34353C; --bar-soft: #2A2B31; --dark: #08090A; --dark-2: #17181B;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}
/* Versions sombres « prestige » : la couleur devient le fond, l'or devient la couleur d'action */
html[data-theme="bordeaux-nuit"], html[data-theme="vert-nuit"], html[data-theme="marine-nuit"], html[data-theme="mauve-nuit"] {
  --ink: #F5EFE4; --primary: #D4A64A; --accent: #D4A64A; --ok: #7BC79E;
  --on-ink: #1A1410; --on-primary: #1A1410; --on-accent: #1A1410;
  --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-hover: #EBD49E; --btn-hover-fg: var(--on-primary);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}
html[data-theme="bordeaux-nuit"] {
  --bg: #1F0A0F; --card: #2A1016; --tint: #2F1319; --muted: #C6B0AB; --line: #3D1B22; --line-strong: #5A2B33;
  --primary-soft: #4A2A1C; --accent-soft: #4A3320; --dot: #3F1D24; --bar: #4B262D; --bar-soft: #3B1A21; --dark: #14060A; --dark-2: #2A1016;
}
html[data-theme="vert-nuit"] {
  --bg: #0C1F17; --card: #12291F; --tint: #153024; --muted: #A9BBAF; --line: #1E3D2F; --line-strong: #2F5A45;
  --primary-soft: #33402A; --accent-soft: #3A4028; --dot: #214233; --bar: #2A4D3C; --bar-soft: #1E3D2F; --dark: #07150F; --dark-2: #12291F;
}
html[data-theme="marine-nuit"] {
  --bg: #0B1426; --card: #111D35; --tint: #14223E; --muted: #A8B3C8; --line: #1D2E50; --line-strong: #2E4575;
  --primary-soft: #2C3550; --accent-soft: #3A3A32; --dot: #1F3157; --bar: #293C66; --bar-soft: #1D2E50; --dark: #070D1A; --dark-2: #111D35;
}
html[data-theme="mauve-nuit"] {
  --bg: #180D20; --card: #23142E; --tint: #281834; --muted: #BDB0C6; --line: #34213F; --line-strong: #503562;
  --primary-soft: #43303F; --accent-soft: #43352A; --dot: #382547; --bar: #453053; --bar-soft: #34213F; --dark: #0F0715; --dark-2: #23142E;
}
html[data-theme$="nuit"] .nav-bar { background: var(--dark-2); }
html[data-theme$="nuit"] .cur path { fill: #fff; stroke: #111; }

/* ── Scène accrochée (écrans larges) : on défile, les services se succèdent ── */
.scene-right { position: relative; overflow: hidden; }
.pips { position: absolute; right: 18px; top: 16px; display: flex; gap: 5px; }
.pips i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); transition: width .4s var(--ease), background .4s; }
.pips i.is-on { width: 20px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.still) .scene-track { --sh: calc(100svh - 100px); height: calc(var(--sh) + (var(--n) - 1) * 70vh); }
  html:not(.still) .scene { position: sticky; top: 86px; height: var(--sh); grid-template-rows: minmax(0, 1fr) minmax(0, 1.1fr); }
  html:not(.still) .scene-left { min-height: 0; }
}
@media (max-width: 939px) and (prefers-reduced-motion: no-preference) {
  /* Téléphone : la scène doit tenir dans la zone réellement visible (barres du navigateur comprises).
     On garde l'essentiel : la demande, la maquette, le texte. Le canvas de nœuds est réservé aux grands écrans. */
  html:not(.still) .scene-track { height: calc(var(--sh) + (var(--n) - 1) * 62vh); }
  html:not(.still) .scene { grid-template-rows: minmax(0, 1.45fr) minmax(0, 1fr); }
  html:not(.still) .prompt { left: 10px; right: 10px; top: 10px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--dark); }
  html:not(.still) .prompt .tabs button { min-height: 34px; padding: 0 12px; font-size: .875rem; }
  html:not(.still) .prompt-txt { min-height: 0; height: 3.9em; padding: 8px 12px; gap: 9px; font-size: .875rem; line-height: 1.35; overflow: hidden; }
  html:not(.still) .prompt-txt svg { width: 16px; height: 16px; }
  html:not(.still) .graph { display: none; }
  html:not(.still) .scene-right { justify-content: center; }
  html:not(.still) .scene-txts { padding: 30px 18px 16px; margin-top: 0; }
  html:not(.still) .scene-txt h3 { font-size: 1.625rem; }
  html:not(.still) .scene-txt h3 + p { margin-top: 8px; font-size: .9375rem; line-height: 1.45; }
  html:not(.still) .scene-txt .tag { margin-bottom: 4px; font-size: .8125rem; }
  html:not(.still) .chips { display: none; }
  html:not(.still) .dev > * { box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); }
}
@media (max-width: 939px) and (max-height: 640px) and (prefers-reduced-motion: no-preference) {
  html:not(.still) .scene { grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); }
  html:not(.still) .scene-txts { padding: 26px 18px 8px; }
  html:not(.still) .scene-txt h3 { font-size: 1.5rem; }
}
@media (min-width: 940px) and (prefers-reduced-motion: no-preference) {
  html:not(.still) .scene-track { --sh: max(540px, min(640px, 100vh - 116px)); height: calc(var(--sh) + (var(--n) - 1) * 60vh); }
  html:not(.still) .scene { top: 92px; grid-template-rows: none; }
}

/* ── Maquettes des services ── */
.tablet { width: min(88%, 430px); aspect-ratio: 4 / 2.7; display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; padding: 14px; background: var(--card); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.tb-l { display: grid; place-items: center; align-content: center; gap: 10px; border-radius: 10px; background: var(--tint); }
.tb-clock { font: 600 clamp(1.5rem, 3vw, 2.25rem)/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tb-qr { width: 44%; padding: 7%; background: #fff; border-radius: 8px; }
.qr { width: 100%; height: auto; fill: #141414; }
.tb-r { display: grid; align-content: center; gap: 9px; }
.tb-row { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 9px; border: 1px solid var(--line); }
.tb-row span { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); flex: none; }
.tb-row:nth-child(2) span { background: var(--accent-soft); }
.tb-row i { flex: 1; height: 6px; border-radius: 99px; background: var(--bar); }
.tb-row em { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--line-strong); font-size: .6875rem; font-weight: 600; flex: none; }
.tb-row.ok em { border: 0; background: var(--ok); color: #fff; }
.ph { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 9px; margin: 12px 14px 16px; color: var(--ink); }
.ph-t { font: 600 .9375rem/1 var(--sans); letter-spacing: -.02em; margin-bottom: 2px; }
.mi { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 10px; background: var(--tint); }
.mi .th { width: 30px; height: 30px; border-radius: 7px; background: var(--accent-soft); flex: none; }
.mi .th.t2 { background: var(--primary-soft); } .mi .th.t3 { background: var(--bar); }
.mi .col { flex: 1; display: grid; gap: 5px; }
.mi .col i { height: 6px; border-radius: 99px; background: var(--bar); }
.mi .col i.s { width: 50%; background: var(--line-strong); }
.mi em { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line-strong); font-weight: 600; font-size: .875rem; line-height: 1; flex: none; }
.ph-bar { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; border-radius: 9px; background: var(--primary); }
.ph-bar i { width: 42%; height: 6px; border-radius: 99px; background: var(--on-primary); }
.ph-bar b { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .6875rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 9px; border-radius: 10px; background: var(--tint); }
.cal i { aspect-ratio: 1; border-radius: 50%; background: var(--card); }
.cal i.off { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal i.on { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.slots { display: flex; gap: 6px; }
.slots span { flex: 1; padding: 7px 0; border-radius: 8px; border: 1px solid var(--line-strong); text-align: center; font-size: .6875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.slots span.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.ph-go { margin-top: auto; display: grid; place-items: center; height: 34px; border-radius: 9px; background: var(--primary); }
.ph-go i { width: 46%; height: 6px; border-radius: 99px; background: var(--on-primary); }
.pl { display: grid; gap: 7px; padding: 12px 14px 16px; color: var(--ink); }
.pl-head, .pl-row { display: grid; grid-template-columns: 26px repeat(5, 1fr); gap: 6px; align-items: center; }
.pl-head i { font: 600 .6875rem/1 var(--sans); font-style: normal; color: var(--muted); text-align: center; }
.pl-row .av { width: 22px; height: 22px; border-radius: 50%; background: var(--bar); }
.pl-row i { height: 24px; border-radius: 6px; background: var(--tint); }
.pl-row i.a { background: var(--primary-soft); } .pl-row i.b { background: var(--accent-soft); } .pl-row i.p { background: var(--primary); }

/* Maquette « sur mesure » : une question, et les pièces de la réponse qui s'assemblent */
.sm-l { display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); }
.sm-q { font: italic 400 clamp(4rem, 9vw, 6.5rem)/1 var(--serif); color: var(--primary); }
.sm-r { display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 10px; min-height: 0; }
.sm-b { display: grid; align-content: end; gap: 6px; padding: 10px; border-radius: 12px; background: var(--tint); min-height: 0; }
.sm-b i { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.75); }
.sm-b i:last-child { width: 60%; }
.sm-b.a { background: var(--primary); }
.sm-b.b { background: var(--accent); }
.sm-b.c i { background: var(--bar); width: 70%; }
.sm-b.plus { place-content: center; background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); font: 500 1.5rem/1 var(--sans); }

/* ══ Thème « Rouge profond » : uniquement les couleurs de la planche Nuebe du 22/11 ══
   Rouge profond #6A0D0D · Crème #F7F5F2 · Noir intense #0B0B0B · Gris doux #D6D3CF
   (logo, police et formes inchangés, à la demande de Bastien) */
html[data-theme="rouge"] {
  --bg: #F7F5F2; --card: #FFFFFF; --tint: #EEEBE6; --ink: #0B0B0B; --muted: #5B5754; --line: #E4E1DC; --line-strong: #D6D3CF;
  --primary: #6A0D0D; --primary-soft: #F1E0DE; --accent: #E5595B; --accent-soft: #F6DDDB; --on-accent: #0B0B0B;
  --dot: #D6D3CF; --bar: #DFDCD7; --bar-soft: #ECE9E5;
  --dark: #170404; --dark-2: #260808; --dark-muted: #CDBFBD; --dark-dot: rgba(255,255,255,.07);
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-hover: var(--ink); --btn-hover-fg: #fff;
}
[data-theme="rouge"] .btn-accent { background: #F7F5F2; color: #0B0B0B; }
[data-theme="rouge"] .btn-accent:hover { background: var(--accent); color: #0B0B0B; }
[data-theme="rouge"] .gn-t.ok { background: #F7F5F2; color: #0B0B0B; }
[data-theme="rouge"] .scene-left { background: linear-gradient(155deg, #861414, #3A0808 62%, #1F0505); }
[data-theme="rouge"] .wf-fill .wf-b { background: linear-gradient(135deg, #E5595B, #6A0D0D); }
