/* ============================================================================
   ROOS : scènes plein cadre (accueil à quatre portes, espace Promoteur « cinéma »).
   Chargé en plus de roos.css, uniquement sur les pages qui l'utilisent.
   Les films de fond sont des boucles tirées du film de visite (media/loop-*.mp4) ; js/stage.js les joue
   seulement quand elles sont visibles et garde l'image fixe en mouvement réduit ou économie de données.
   ============================================================================ */

/* ---------- thème « cinéma » : nuit, verre sombre, laiton clair ---------- */
html[data-theme~='cinema'] {
  --ink: #f2f4f7;
  --ink-soft: #d3dae4;
  --brass-text: #d4b87f;
  --bg: #0a1220;
  --text-2: #b9c3d1;
  --text-dim: #9eaabb;
  --text-faint: #5d6b80;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --ok: #7fd0a1;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 40px 80px -52px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
html[data-theme~='cinema'] body::before {
  background:
    radial-gradient(1000px 700px at 8% -6%, rgba(88, 112, 150, 0.28), rgba(88, 112, 150, 0) 62%),
    radial-gradient(900px 640px at 100% 40%, rgba(183, 154, 99, 0.07), rgba(183, 154, 99, 0) 64%),
    linear-gradient(172deg, #0d1829 0%, #0a1220 46%, #070d18 100%);
}
html[data-theme~='cinema'] body::after { opacity: 0.35; mix-blend-mode: screen; }
html[data-theme~='cinema'] .nav.is-scrolled { background: rgba(10, 18, 32, 0.68); border-bottom-color: rgba(255, 255, 255, 0.09); }
html[data-theme~='cinema'] .nav.is-open, html[data-theme~='cinema'] .nav.is-open .nav-links { background: #0d1626; }
html[data-theme~='cinema'] .btn--primary { color: #0f1a28; background-color: #f2efe6; border-color: #f2efe6; background-image: linear-gradient(105deg, transparent 32%, rgba(183, 154, 99, 0.35) 50%, transparent 68%); background-size: 260% 100%; background-position: 130% 0; }
html[data-theme~='cinema'] .btn--primary:hover { background-color: #fff; }
html[data-theme~='cinema'] .btn--ghost { background: rgba(255, 255, 255, 0.05); }
html[data-theme~='cinema'] .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
html[data-theme~='cinema'] .section--panel { background: rgba(255, 255, 255, 0.03); border-block-color: rgba(255, 255, 255, 0.07); box-shadow: none; }
html[data-theme~='cinema'] .footer { background: rgba(255, 255, 255, 0.025); border-top-color: rgba(255, 255, 255, 0.08); }
html[data-theme~='cinema'] .chip { background: rgba(255, 255, 255, 0.06); }
html[data-theme~='cinema'] .chip--ok { color: #7fd0a1; border-color: rgba(127, 208, 161, 0.4); }
html[data-theme~='cinema'] .state-btn { background: rgba(255, 255, 255, 0.05); }
html[data-theme~='cinema'] .state-btn:hover { background: rgba(255, 255, 255, 0.14); }
html[data-theme~='cinema'] .state-btn[aria-selected='true'] { background: #f2efe6; border-color: #f2efe6; color: #0f1a28; }
html[data-theme~='cinema'] .shot-frame { background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 56px 96px -50px rgba(0, 0, 0, 0.9); }
html[data-theme~='cinema'] .compare-line::before { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); }
html[data-theme~='cinema'] .field input, html[data-theme~='cinema'] .field select, html[data-theme~='cinema'] .field textarea { color-scheme: dark; }
html[data-theme~='cinema'] .field select option { color: #111b29; }
html[data-theme~='cinema'] .cta-card { box-shadow: var(--glass-edge), 0 70px 110px -60px rgba(0, 0, 0, 0.9); }
@media (prefers-reduced-transparency: reduce) {
  html[data-theme~='cinema'] .stats, html[data-theme~='cinema'] .callout, html[data-theme~='cinema'] .card, html[data-theme~='cinema'] .cta-card, html[data-theme~='cinema'] .nav.is-scrolled { background: rgba(14, 24, 40, 0.96); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme~='cinema'] .stats, html[data-theme~='cinema'] .callout, html[data-theme~='cinema'] .card, html[data-theme~='cinema'] .cta-card, html[data-theme~='cinema'] .nav.is-scrolled { background: rgba(14, 24, 40, 0.94); }
}

/* ---------- barre de navigation posée sur une scène (accueil) ---------- */
html[data-theme='gate'] .nav:not(.is-scrolled):not(.is-open) { --ink: #f4f6f9; --text-2: #e3e8ef; --line-strong: rgba(255, 255, 255, 0.34); }
html[data-theme='gate'] .nav:not(.is-scrolled):not(.is-open) .btn--primary { color: #0f1a28; background-color: #f4f6f9; border-color: #f4f6f9; }
html[data-theme='gate'].gate-light .nav:not(.is-scrolled):not(.is-open) { --ink: #111b29; --text-2: #4a576a; --line-strong: rgba(17, 27, 41, 0.2); }
html[data-theme='gate'].gate-light .nav:not(.is-scrolled):not(.is-open) .btn--primary { color: #eef1f5; background-color: #111b29; border-color: #111b29; }
html[data-theme='gate'] .nav { transition: transform 0.7s var(--e), background-color 0.5s, border-color 0.5s, opacity 1s var(--e), color 0.6s; }
html[data-theme='gate'] .nav-links a, html[data-theme='gate'] .nav-login, html[data-theme='gate'] .brand { transition: color 0.6s; }

/* ---------- films et images de fond ---------- */
.bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0a1220; }
.stage-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0a1220; }
.stage-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.62) 0%, rgba(6, 12, 22, 0.1) 26%, rgba(6, 12, 22, 0.28) 54%, rgba(8, 14, 24, 0.9) 100%),
    linear-gradient(90deg, rgba(6, 12, 22, 0.55) 0%, rgba(6, 12, 22, 0) 62%); }
.ai-label { margin: 0; font: 300 10px/1.5 var(--font-mono); letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.78); }
.ai-label span { display: inline-block; padding: 4px 9px; background: rgba(6, 12, 22, 0.5); border-left: 1px solid var(--brass-bright); }
.stage-ai { position: absolute; right: var(--gutter); bottom: 14px; z-index: 2; }
.vis-hold { transition: opacity 1.1s var(--e2); }

/* ---------- accueil : le choix du métier ---------- */
.gate {
  --g-fg: #f4f6f9; --g-fg2: rgba(244, 246, 249, 0.86); --g-dim: rgba(244, 246, 249, 0.72); --g-line: rgba(255, 255, 255, 0.3); --g-glass: rgba(8, 14, 24, 0.42);
  --g-on-bg: #f4f6f9; --g-on-fg: #0f1a28; --g-brass: #dcbf86;
  position: relative; isolation: isolate; min-height: 100svh; margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(20px, 4vh, 48px)) 0 clamp(22px, 4vh, 40px);
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--g-fg);
}
.gate.is-light {
  --g-fg: #111b29; --g-fg2: #2e3b4e; --g-dim: #4a576a; --g-line: rgba(17, 27, 41, 0.22); --g-glass: rgba(255, 255, 255, 0.5);
  --g-on-bg: #111b29; --g-on-fg: #f4f6f9; --g-brass: #6b5127;
}
.gate-layers { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0a1220; }
.gate-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.3s var(--e2), visibility 0s linear 1.3s; }
.gate-layer.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.gate-layer--video::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.6) 0%, rgba(6, 12, 22, 0.08) 24%, rgba(6, 12, 22, 0.3) 50%, rgba(7, 13, 23, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 12, 22, 0.62) 0%, rgba(6, 12, 22, 0) 66%); }
.gate-layer--tech { background: radial-gradient(120% 90% at 82% 8%, #1a2c45 0%, #0d1828 52%, #09111d 100%); }
.gate-layer--tech::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(205, 176, 122, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(205, 176, 122, 0.1) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(90% 80% at 78% 30%, #000 0%, transparent 78%); mask-image: radial-gradient(90% 80% at 78% 30%, #000 0%, transparent 78%); }
.tech-figs { position: absolute; right: var(--gutter); top: clamp(92px, 12.5vh, 124px); display: grid; grid-template-columns: repeat(4, auto); gap: 0 clamp(26px, 3.4vw, 60px); text-align: right; }
.tech-figs div { display: grid; justify-items: end; gap: 6px; }
.tech-figs b { font: 300 clamp(1.9rem, 3vw, 3.1rem)/1 var(--font-display); letter-spacing: -0.02em; color: #f4f6f9; font-variant-numeric: lining-nums tabular-nums; }
.tech-figs b small { font: 300 11px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--g-brass); margin-left: 10px; }
.tech-figs span { font: 300 10.5px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 246, 249, 0.7); max-width: 17ch; }
.gate-layer--air { background: radial-gradient(90% 70% at 14% 0%, #fff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(172deg, #f2f4f7 0%, #e5e8ed 55%, #d9dde4 100%); }
.gate-layer--air::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17, 27, 41, 0.05) 1px, transparent 1px); background-size: 100% 88px; -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 100%); mask-image: linear-gradient(90deg, transparent 38%, #000 100%); }
.air-bars { position: absolute; right: var(--gutter); top: clamp(120px, 20vh, 210px); width: min(34vw, 460px); display: grid; gap: 22px; }
.air-bars i { display: block; height: 6px; border-radius: 3px; background: #c9d1da; }
.air-bars i:nth-child(1) { width: 62%; background: var(--brass); }
.air-bars i:nth-child(2) { width: 48%; margin-left: 24%; }
.air-bars i:nth-child(3) { width: 56%; margin-left: 40%; }
.air-bars i:nth-child(4) { width: 34%; margin-left: 66%; }

.gate-inner { display: grid; gap: clamp(18px, 3vh, 32px); }
.gate-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px clamp(24px, 4vw, 72px); align-items: end; }
.gate-head .eyebrow { grid-column: 1 / -1; }
.gate .eyebrow { color: var(--g-dim); margin-bottom: 20px; }
.gate .eyebrow::before { background: var(--g-brass); }
.gate h1 { color: var(--g-fg); font-size: clamp(2.6rem, 5.1vw, 5.2rem); line-height: 1.02; max-width: 16ch; margin-bottom: 0; transition: color 0.8s var(--e2); }
.gate h1 .hl, .gate h1 em { color: var(--g-brass); }
.gate-sub { margin: 0 0 0.9rem; max-width: 40ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; color: var(--g-fg2); }

.gate-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gate-door { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; padding: 18px 20px 20px; text-decoration: none; color: var(--g-fg);
  border: 1px solid var(--g-line); border-radius: 2px; background: var(--g-glass); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.6s var(--e), color 0.6s var(--e), border-color 0.6s var(--e), transform 0.7s var(--e); -webkit-tap-highlight-color: transparent; }
.gate-door small { font: 400 10px/1.4 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--g-dim); transition: color 0.6s; }
.gate-door b { font: 300 clamp(1.55rem, 2.3vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -0.015em; }
.gate-door span { font-size: 13.5px; line-height: 1.45; color: var(--g-fg2); transition: color 0.6s; }
.gate-door:hover { border-color: var(--g-fg); transform: translateY(-3px); }
.gate-door:focus-visible { outline: 1px solid var(--g-fg); outline-offset: 3px; }
.gate-door[aria-selected='true'] { background: var(--g-on-bg); border-color: var(--g-on-bg); color: var(--g-on-fg); transform: none; }
.gate-door[aria-selected='true'] small, .gate-door[aria-selected='true'] span { color: var(--g-on-fg); opacity: 0.78; }

.gate-panels { position: relative; }
.gate-panel { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(22px, 4vw, 64px); align-items: end; padding-top: clamp(16px, 2.6vh, 26px); border-top: 1px solid var(--g-line); }
.gate-panel.is-active { display: grid; animation: gatein 0.9s var(--e) both; }
@keyframes gatein { from { opacity: 0; transform: translateY(14px); } }
.gate-promise { margin: 0 0 12px; max-width: 26ch; font: 300 clamp(1.45rem, 2.2vw, 2.15rem)/1.17 var(--font-display); letter-spacing: -0.015em; color: var(--g-fg); text-wrap: balance; }
.gate-proof { margin: 0; font: 300 11px/1.6 var(--font-mono); letter-spacing: 0.08em; color: var(--g-dim); max-width: 52ch; }
.gate-proof b { font-weight: 400; color: var(--g-brass); }
.gate-wish > small { display: block; margin-bottom: 12px; font: 400 10px/1.4 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--g-dim); }
.gate-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gate-chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; text-decoration: none; font: 420 13.5px/1 var(--font-ui); letter-spacing: 0.01em; color: var(--g-fg);
  border: 1px solid var(--g-line); border-radius: 2px; background: var(--g-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color 0.45s var(--e), color 0.45s var(--e), border-color 0.45s var(--e); }
.gate-chips a:hover, .gate-chips a:focus-visible { background: var(--g-on-bg); color: var(--g-on-fg); border-color: var(--g-on-bg); outline: none; }
.gate .btn--primary { color: var(--g-on-fg); background-color: var(--g-on-bg); border-color: var(--g-on-bg); transition: background-color 0.6s, color 0.6s, border-color 0.6s, background-position 1s var(--e), transform 0.5s var(--e); }
.gate .btn--primary:hover { background-color: var(--g-brass); border-color: var(--g-brass); color: #0f1a28; }
.gate .btn--ghost { color: var(--g-fg); border-color: var(--g-line); background: var(--g-glass); }
.gate .btn--ghost:hover { border-color: var(--g-fg); background: var(--g-glass); }
.gate-note { margin: 14px 0 0; }
.gate .cta-row { gap: 10px 14px; }
.gate .btn { --h: 46px; padding: 0 22px; }
.gate .ai-label { color: rgba(255, 255, 255, 0.82); }
.gate-noscript { margin: 0; }

html:not(.js) .gate-panel { display: none; }
html:not(.js) .gate-doors { margin-bottom: 24px; }

@media (max-width: 1080px) {
  .gate-head { grid-template-columns: 1fr; }
  .gate-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gate-panel { grid-template-columns: 1fr; align-items: start; }
  .tech-figs { display: none; }
  .air-bars { opacity: 0.5; }
}
@media (max-width: 520px) {
  .gate { padding-top: calc(var(--nav-h) + 20px); }
  .gate h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .gate-door { padding: 14px 14px 16px; }
  .gate-door span { display: none; }
  .gate-chips a { min-height: 44px; }
}

/* ---------- espace « cinéma » : héros plein cadre ---------- */
.cine { position: relative; isolation: isolate; min-height: 100svh; margin-top: calc(var(--nav-h) * -1); padding: calc(var(--nav-h) + 8vh) 0 clamp(52px, 10vh, 120px); display: flex; align-items: flex-end; }
.cine h1 { font-size: clamp(2.9rem, 7vw, 7.2rem); max-width: 13ch; line-height: 1; margin-bottom: 30px; }
.cine .lead { max-width: 50ch; color: #d4dbe6; }
.cine .eyebrow { color: #c3cddb; }
.cine .eyebrow::before { background: var(--brass-bright); }
.cine-cue { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 24px; z-index: 2; }
.cine-ai { position: absolute; right: var(--gutter); bottom: 20px; z-index: 2; }
@media (max-width: 720px) { .cine { padding-bottom: 76px; } .cine-cue { display: none; } .cine-ai { left: var(--gutter); right: auto; bottom: 16px; } }

/* ---------- « Je veux… » : toutes les fonctions du métier en un coup d'œil ---------- */
.picker { position: relative; }
.picker-lead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-bottom: 26px; }
.picker-lead h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
.picker-tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.picker-tabs::-webkit-scrollbar { display: none; }
.picker-tab { position: relative; flex: 1 1 0; min-width: 142px; text-align: left; padding: 20px 18px 22px; border-left: 1px solid var(--line); font: 400 1.2rem/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--text-dim); transition: color 0.5s, background-color 0.5s; }
.picker-tab:first-child { border-left: 0; }
.picker-tab small { display: block; margin-bottom: 10px; font: 300 10px/1 var(--font-mono); letter-spacing: 0.2em; color: var(--text-dim); transition: color 0.5s; }
.picker-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.picker-tab[aria-selected='true'] { color: var(--ink); }
.picker-tab[aria-selected='true'] small { color: var(--brass-text); }
.picker-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass-bright); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--e); }
.picker-tab[aria-selected='true']::after { transform: scaleX(1); }
.picker-panels { padding-top: clamp(28px, 4vw, 56px); }
.picker-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); gap: clamp(28px, 4.4vw, 76px); align-items: center; }
.js .picker-panel:not(.is-active) { display: none; }
.js .picker-panel.is-active { animation: gatein 0.9s var(--e) both; }
html:not(.js) .picker-tabs { display: none; }
html:not(.js) .picker-panel { margin-bottom: 64px; }
.picker-copy h3 { margin-bottom: 16px; font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.picker-copy p { font-size: 15.5px; }
.picker-copy .cta-row { margin-top: 24px; }
.picker-visual > * + * { margin-top: 20px; }
.picker-visual .phones { justify-content: flex-start; }
@media (max-width: 960px) { .picker-panel { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) { .picker-tab { min-width: 128px; padding: 16px 14px 18px; font-size: 1.1rem; } }

/* ---------- chapitres : la visite, plan par plan, pendant que la page défile ---------- */
.chapters { position: relative; height: calc(var(--n, 5) * 88svh + 12svh); }
.chap-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; background: #0a1220; }
.chap-media { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--e2), visibility 0s linear 1.2s; }
.chap-media.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.chap-stick::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.5) 0%, rgba(6, 12, 22, 0) 22%, rgba(6, 12, 22, 0.2) 54%, rgba(6, 12, 22, 0.88) 100%), linear-gradient(90deg, rgba(6, 12, 22, 0.5), rgba(6, 12, 22, 0) 58%); }
.chap-ui { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 24px) 0 clamp(34px, 7vh, 72px); }
.chap-head { max-width: 40ch; }
.chap-head .eyebrow { color: #c3cddb; margin-bottom: 14px; }
.chap-head .eyebrow::before { background: var(--brass-bright); }
.chap-head p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #d4dbe6; }
.chap-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.chap-texts { display: grid; }
.chap-text { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--e), transform 1.1s var(--e); pointer-events: none; }
.chap-text.is-active { opacity: 1; transform: none; pointer-events: auto; }
.chap-text small { display: block; margin-bottom: 14px; font: 400 10.5px/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-bright); }
.chap-text h3 { font: 300 clamp(2.4rem, 5.6vw, 5.4rem)/1 var(--font-display); letter-spacing: -0.02em; color: #f4f6f9; margin-bottom: 14px; }
.chap-text p { margin: 0; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; color: #d4dbe6; }
.chap-index { display: grid; gap: 2px; justify-items: end; }
.chap-index button { display: flex; align-items: center; gap: 14px; padding: 7px 0; font: 300 10px/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 246, 249, 0.72); transition: color 0.4s; }
.chap-index button::after { content: ''; width: 16px; height: 1px; background: rgba(255, 255, 255, 0.4); transition: width 0.7s var(--e), background-color 0.4s; }
.chap-index button:hover { color: #fff; }
.chap-index button[aria-current='true'] { color: #fff; }
.chap-index button[aria-current='true']::after { width: 44px; background: var(--brass-bright); }
.chap-ai { position: absolute; z-index: 3; right: var(--gutter); bottom: 12px; }
html:not(.js) .chapters { height: auto; }
html:not(.js) .chap-stick { position: relative; height: 100svh; }
@media (max-width: 720px) {
  .chap-foot { grid-template-columns: 1fr; gap: 20px; }
  .chap-index { grid-auto-flow: column; justify-content: start; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .chap-index button { padding: 12px 0; white-space: nowrap; }
  .chap-index button::after { display: none; }
  .chap-index button[aria-current='true'] { border-bottom: 1px solid var(--brass-bright); }
  .chap-ai { left: var(--gutter); right: auto; }
}

/* ---------- compléments ---------- */
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats--4 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .gate-layer, .chap-media { transition: none !important; }
  .gate-panel.is-active, .js .picker-panel.is-active { animation: none; }
}

html.hero-in .gate [data-split] .wi { transform: none; }
.gate.is-init .gate-layer, .gate.is-init .gate-door, .gate.is-init h1 { transition: none !important; }
.gate.is-init .gate-panel.is-active { animation: none; }

/* ---------- accueil : le modèle qui se dessine ---------- */
.home-iso { width: 100%; max-width: 780px; justify-self: center; }
.home-iso .iso { width: 100%; height: auto; }
.js .home-iso .iso .ln.d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .home-iso.is-in .iso .ln.d { animation: drawline 2.4s var(--e2) forwards; animation-delay: calc(var(--i) * 70ms); }
.js .home-iso .iso .fade { opacity: 0; transition: opacity 1.6s var(--e) 2s; }
.js .home-iso.is-in .iso .fade { opacity: 1; }
html.no-split .home-iso .iso .ln.d { stroke-dashoffset: 0; }
html.no-split .home-iso .iso .fade { opacity: 1; }
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* ---------- thème « air » : espace Maîtres d'œuvre ----------
   Blanc cassé, filets fins, peu de texte, index numéroté plutôt que cartes. */
html[data-theme='air'] body::before {
  background:
    radial-gradient(1200px 760px at 6% -10%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 64%),
    linear-gradient(172deg, #f7f8fa 0%, #eceef2 52%, #e1e4ea 100%);
}
html[data-theme='air'] .section { padding: clamp(96px, 13vw, 190px) 0; }
html[data-theme='air'] .section--panel { background: rgba(255, 255, 255, 0.34); }
.page-hero--air { padding-top: clamp(72px, 11vw, 150px); }
.page-hero--air h1 { max-width: 20ch; font-size: clamp(2.4rem, 4.8vw, 4.7rem); line-height: 1.04; }
.page-hero--air .lead { max-width: 46ch; }

.index-list { counter-reset: none; border-top: 1px solid var(--line-strong); }
.index-row { display: grid; grid-template-columns: 5ch minmax(0, 0.9fr) minmax(0, 1.7fr); gap: 12px clamp(20px, 4vw, 64px); align-items: baseline; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.index-row small { font: 400 10.5px/1 var(--font-mono); letter-spacing: 0.2em; color: var(--brass-text); }
.index-row h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 300; }
.index-row p { margin: 0; font-size: 15.5px; max-width: 58ch; }
.index-foot { margin: 22px 0 0; font: 300 11px/1.6 var(--font-mono); letter-spacing: 0.06em; color: var(--text-dim); max-width: 90ch; }
@media (max-width: 760px) { .index-row { grid-template-columns: 4ch 1fr; } .index-row p { grid-column: 2; } }

.frise { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-top: 38px; }
.frise::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--line-strong); }
.frise li { position: relative; padding-right: 14px; display: grid; gap: 6px; align-content: start; }
.frise li::before { content: ''; position: absolute; left: 0; top: -33px; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.frise b { font: 400 11px/1 var(--font-mono); letter-spacing: 0.2em; color: var(--ink); }
.frise span { font: 300 clamp(1.15rem, 1.7vw, 1.5rem)/1.2 var(--font-display); color: var(--text-2); }
@media (max-width: 860px) {
  .frise { grid-template-columns: 1fr; padding: 0 0 0 26px; gap: 22px; }
  .frise::before { left: 3px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .frise li { grid-template-columns: 5ch 1fr; align-items: baseline; padding: 0; }
  .frise li::before { left: -26px; top: 0.5em; }
}

/* ---------- thème « tech » (cinéma + quadrillage) : espace Entreprises, chiffres d'abord ---------- */
html[data-theme~='tech'] body::after { opacity: 1; mix-blend-mode: normal;
  background-image: linear-gradient(rgba(205, 176, 122, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(205, 176, 122, 0.06) 1px, transparent 1px); background-size: 56px 56px; }
.tech-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(28px, 4vw, 56px); }
.tech-hero h1 { font-size: clamp(2.3rem, 4.4vw, 4.3rem); max-width: 22ch; margin-bottom: 26px; line-height: 1.05; }
.tech-hero .lead { margin-bottom: 34px; }
.tech-hero .stats { margin-top: clamp(40px, 5vw, 72px); }
html[data-theme~='tech'] .stat-n { font-family: var(--font-mono); font-weight: 300; letter-spacing: -0.04em; }
.pu { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pu-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--glass-line); margin-top: 26px; }
.pu-parts div { padding: 16px 16px 18px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.pu-parts div:first-child { border-left: 0; }
.pu-parts b { font: 400 10px/1.3 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-text); }
.pu-parts span { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 960px) { .pu { grid-template-columns: 1fr; } .pu-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pu-parts div:nth-child(3) { border-left: 0; } .pu-parts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.vocab { display: flex; flex-wrap: wrap; gap: 8px; }
.vocab span { font: 300 11.5px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 12px; border: 1px solid var(--line-strong); color: var(--text-2); }
.pu h2 { margin-bottom: 18px; }

/* ---------- héros sur film dans une page claire (espace Particulier) ---------- */
.hero-video h1 { color: #f4f6f9; }
.hero-video h1 .hl { color: var(--brass-bright); }
.hero-video .lead { color: #e3e8ef; }
.hero-video .btn--primary { color: #0f1a28; background-color: #f4f6f9; border-color: #f4f6f9; }
.hero-video .btn--primary:hover { background-color: #fff; }
.hero-video .btn--ghost { color: #f4f6f9; border-color: rgba(255, 255, 255, 0.45); background: rgba(8, 14, 24, 0.3); }
.hero-video .btn--ghost:hover { background: rgba(8, 14, 24, 0.55); border-color: #fff; }

/* ---------- parcours guidé : cinq étapes, une à la fois ---------- */
.guide-note { display: flex; gap: 12px; align-items: baseline; margin: 0 0 30px; padding: 12px 0 12px 16px; border-left: 1px solid var(--brass); font: 300 11.5px/1.6 var(--font-mono); letter-spacing: 0.04em; color: var(--text-dim); max-width: 78ch; }
.guide .stepper-tab { min-width: 150px; }
.step-next { margin-top: 26px; }
.guide .stepper-panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr); }
.guide .stepper-visual > * + * { margin-top: 18px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.ex-chips span { font: 400 13.5px/1.35 var(--font-ui); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: rgba(255, 255, 255, 0.34); color: var(--ink); }
@media (max-width: 960px) { .guide .stepper-panel { grid-template-columns: 1fr; } }

/* lisibilité sur les films clairs (ciel, mer, murs blancs du reel) : ombre douce sous le texte, voile un peu plus dense au centre */
.gate:not(.is-light) .gate-head h1, .gate:not(.is-light) .gate-sub, .gate:not(.is-light) .gate-promise, .gate:not(.is-light) .gate-proof { text-shadow: 0 1px 18px rgba(6, 12, 22, 0.6), 0 0 2px rgba(6, 12, 22, 0.25); }
.gate-layer--video::after { background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.6) 0%, rgba(6, 12, 22, 0.14) 24%, rgba(6, 12, 22, 0.42) 52%, rgba(7, 13, 23, 0.93) 100%),
    linear-gradient(90deg, rgba(6, 12, 22, 0.62) 0%, rgba(6, 12, 22, 0.12) 66%, rgba(6, 12, 22, 0.1) 100%); }
.cine h1, .cine .lead, .chap-text h3, .chap-text p { text-shadow: 0 1px 18px rgba(6, 12, 22, 0.55); }
.stage-bg::after { background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.62) 0%, rgba(6, 12, 22, 0.16) 26%, rgba(6, 12, 22, 0.4) 56%, rgba(8, 14, 24, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 12, 22, 0.58) 0%, rgba(6, 12, 22, 0.1) 64%); }
.chap-stick::after { background: linear-gradient(180deg, rgba(6, 12, 22, 0.52) 0%, rgba(6, 12, 22, 0.08) 22%, rgba(6, 12, 22, 0.3) 54%, rgba(6, 12, 22, 0.9) 100%), linear-gradient(90deg, rgba(6, 12, 22, 0.52), rgba(6, 12, 22, 0.05) 58%); }
