/* ============================================================
   LA CHAÎNE AUGMENTÉE — devis SHUNPO × Nikita (projet Interact Software)
   Charte SHUNPO, mode sombre immersif.
   ============================================================ */

:root {
  --bg: #090c0e;
  --bg-veil: rgba(6, 9, 11, 0.72);
  --panel: rgba(14, 20, 23, 0.74);
  --panel-solid: #0e1417;
  --card: rgba(18, 26, 30, 0.62);
  --grad-zone: radial-gradient(130% 100% at 50% 0%, #101c22 0%, #090c0e 62%);

  --kome: #f3f0e9;
  --ivory: #e5dfd3;
  --muted: #9fb4bc;
  --muted-2: #7c939b;

  --brick: #b94532;
  --brick-hot: #d6603f;
  --tenku: #2b718c;
  --tenku-hot: #4f9ec4;
  --frost: #bdc8cc;
  --gold: #d9a54a;

  --line: rgba(79, 158, 196, 0.16);
  --line-strong: rgba(79, 158, 196, 0.34);
  --brick-line: rgba(214, 96, 63, 0.32);

  --r-pill: 99rem;
  --r-card: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1160px;

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ivory);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
::selection { background: rgba(79, 158, 196, 0.34); color: #fff; }

h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.98; margin: 0; color: var(--kome);
}
em { font-style: italic; color: var(--kome); }
b, strong { color: var(--kome); font-weight: 600; }
a { color: var(--tenku-hot); text-decoration: none; }

.tag {
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--tenku-hot); display: inline-block;
}
.tag .jp { color: var(--brick-hot); }
.tag.brick { color: var(--brick-hot); }
.tag.brick .jp { color: var(--tenku-hot); }

/* ============================================================
   GARDE-FOU MOBILE
   ============================================================ */
#mobile-gate { display: none; }
@media (max-width: 900px), (pointer: coarse) and (max-width: 1100px) {
  #mobile-gate {
    display: flex; position: fixed; inset: 0; z-index: 999;
    background: var(--bg); align-items: center; justify-content: center; padding: 28px; text-align: center;
  }
  #stage-wrap, #opening, nav, #site, #vignette, #scene-veil, .enter-direct { display: none !important; }
}
.mg-inner { max-width: 420px; }
.mg-mark { font-size: 12px; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 26px; }
.mg-mark .kanji { color: var(--brick-hot); }
.mg-icon { font-size: 40px; margin-bottom: 16px; }
#mobile-gate h1 { font-size: 28px; margin-bottom: 12px; }
#mobile-gate p { color: var(--muted); font-size: 14px; }
.mg-url { margin-top: 14px; font-weight: 600; color: var(--tenku-hot); letter-spacing: 0.04em; }
.mg-foot { margin-top: 28px; font-size: 11px; letter-spacing: 0.18em; color: var(--muted-2); text-transform: uppercase; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 900; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  transition: opacity 0.6s var(--ease);
}
#loader.gone { opacity: 0; pointer-events: none; }
.ld-line { width: 210px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.ld-line i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--tenku-hot); animation: ldfill 1.4s var(--ease) forwards; }
@keyframes ldfill { from { width: 0%; } to { width: 100%; } }
.ld-brand { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; font-size: 22px; color: var(--kome); }
.ld-sub { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.ld-sub .kanji { color: var(--brick-hot); }

/* ============================================================
   SCÈNE
   ============================================================ */
#stage-wrap { position: fixed; inset: 0; z-index: 1; background: var(--bg); }
#stage-wrap interact-chaine { position: absolute; inset: 0; display: block; }

#scene-veil {
  position: fixed; inset: 0; z-index: 20; pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(43,113,140,0.10) 0%, rgba(9,12,14,0) 40%),
    rgba(9,12,14,0.93);
  backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px);
  opacity: 0; transition: opacity 0.7s var(--ease);
}
body[data-view]:not([data-view="chaine"]) #scene-veil { opacity: 1; }

#vignette {
  position: fixed; inset: 0; z-index: 22; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,12,14,0.86) 0, rgba(9,12,14,0) 140px),
    linear-gradient(0deg, rgba(9,12,14,0.92) 0, rgba(9,12,14,0) 190px),
    radial-gradient(140% 120% at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.5) 100%);
}

/* étiquettes de poste projetées depuis la 3D */
interact-chaine .st-label {
  position: absolute; top: 0; left: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 12px 7px; cursor: pointer; white-space: nowrap;
  background: rgba(9, 14, 17, 0.62); border: 1px solid var(--line);
  border-radius: 10px; backdrop-filter: blur(6px);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), opacity 0.3s linear;
}
interact-chaine .st-label:hover { border-color: var(--line-strong); background: rgba(9, 14, 17, 0.85); }
interact-chaine .st-jp { font-size: 10px; letter-spacing: 0.18em; color: var(--brick-hot); }
interact-chaine .st-nom { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.02em; color: var(--kome); }
interact-chaine .st-state { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
interact-chaine .st-label.on { border-color: rgba(124, 196, 228, 0.5); }
interact-chaine .st-label.on .st-state { color: var(--tenku-hot); }
interact-chaine .st-label.neutral { opacity: 0.62; }

/* ============================================================
   OUVERTURE NARRATIVE
   ============================================================ */
#opening { position: fixed; inset: 0; z-index: 60; overflow-y: scroll; overflow-x: hidden; background: var(--bg); }
#opening.gone { display: none; }
#opening-inner { position: relative; height: 720vh; }
#opening-sticky { position: sticky; top: 0; height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; }

#opening-title { position: absolute; text-align: center; max-width: 900px; padding: 0 26px; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
#opening-title .kicker { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
#opening-title .kicker b { color: var(--brick-hot); }
#opening-title h1 { font-size: clamp(46px, 9vw, 118px); line-height: 0.92; }
#opening-title h1 .aug { color: var(--tenku-hot); }
#opening-title .sub { margin-top: 22px; color: var(--muted); font-size: clamp(14px, 1.5vw, 19px); max-width: 620px; margin-left: auto; margin-right: auto; }

.frag {
  position: absolute; max-width: 660px; padding: 0 26px; text-align: center;
  opacity: 0; transform: translateY(26px); transition: opacity 0.5s linear, transform 0.7s var(--ease);
  pointer-events: none;
}
.frag.in { opacity: 1; transform: translateY(0); }
.frag .k { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brick-hot); }
.frag h2 { font-size: clamp(28px, 4.2vw, 50px); margin: 14px 0 16px; }
.frag p { color: var(--muted); font-size: clamp(14px, 1.4vw, 18px); line-height: 1.65; }

#scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); }
#scroll-hint .arrow { width: 1px; height: 34px; background: linear-gradient(var(--tenku-hot), transparent); animation: sh 1.9s var(--ease) infinite; }
@keyframes sh { 0% { transform: scaleY(0.2); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.enter-direct {
  position: fixed; top: 26px; right: 28px; z-index: 70;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ivory);
  padding: 9px 17px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: all 0.3s var(--ease);
}
.enter-direct:hover { background: rgba(79,158,196,0.12); border-color: var(--tenku-hot); }
.enter-direct.gone { display: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 68px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
  background: linear-gradient(180deg, rgba(9,12,14,0.92), rgba(9,12,14,0));
  opacity: 0; pointer-events: none; transition: opacity 0.7s var(--ease);
}
body[data-phase="site"] nav { opacity: 1; pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.brand .kanji { color: var(--brick-hot); letter-spacing: 0; }
.brand .mark { color: var(--kome); font-weight: 600; }
.brand .x { color: var(--muted-2); }

.nav-tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; backdrop-filter: blur(10px); }
.nav-tabs button {
  background: transparent; border: 0; color: var(--muted); font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 16px;
  border-radius: var(--r-pill); cursor: pointer; transition: all 0.3s var(--ease);
}
.nav-tabs button:hover { color: var(--ivory); }
.nav-tabs button.active { background: rgba(79,158,196,0.16); color: var(--kome); }
.nav-ref { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }

/* ============================================================
   VUES
   ============================================================ */
#site { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
.view.active { opacity: 1; pointer-events: auto; }
.view:not(#view-chaine) { background: var(--grad-zone); }
/* 🔴 La vue « chaîne » ne doit RIEN intercepter : sinon elle couvre le canvas
   three.js (z-index 1) et le drag / la molette / le clic sur un poste ne
   parviennent jamais à la scène. Seuls ses enfants réactivent le pointeur. */
#view-chaine { background: transparent; pointer-events: none !important; }
#view-chaine .lot-rail,
#view-chaine .counters,
#view-chaine #station-panel,
#view-chaine .lot-card,
#view-chaine .ct-reset { pointer-events: auto; }
#stage-wrap { pointer-events: auto; }
#stage-wrap interact-chaine canvas { cursor: grab; -webkit-user-select: none; user-select: none; touch-action: none; }
#stage-wrap interact-chaine canvas:active { cursor: grabbing; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 120px 26px 120px; }

.view-head { max-width: 780px; margin-bottom: 56px; }
.view-head h2 { font-size: clamp(32px, 4.6vw, 58px); margin: 14px 0 18px; }
.view-head .lead { color: var(--muted); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.62; }

.section { margin: 76px 0 26px; }
.sec-title { font-size: clamp(21px, 2.4vw, 30px); margin: 12px 0 10px; }
.sec-sub { color: var(--muted); max-width: 660px; font-size: 15px; }

/* ---------- vue chaîne : contrôles ---------- */
#view-chaine .scene-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2);
}
.lot-rail {
  position: absolute; left: 26px; bottom: 26px; display: flex; flex-direction: column; gap: 10px;
  width: 310px;
}
.lot-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 13px 15px; cursor: pointer; backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease); text-align: left;
}
.lot-card:hover { border-color: var(--line-strong); }
.lot-card.on { border-color: rgba(124,196,228,0.55); background: rgba(20,38,47,0.8); }
.lot-head { display: flex; align-items: center; gap: 10px; }
.lot-sw { width: 34px; height: 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); position: relative; flex: 0 0 auto; transition: all 0.3s var(--ease); }
.lot-sw i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted-2); transition: all 0.3s var(--ease); }
.lot-card.on .lot-sw { background: rgba(79,158,196,0.28); border-color: var(--tenku-hot); }
.lot-card.on .lot-sw i { left: 18px; background: var(--tenku-hot); }
.lot-n { font-family: var(--font-display); font-weight: 900; font-size: 11px; color: var(--muted-2); }
.lot-nom { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 14px; color: var(--kome); letter-spacing: 0.01em; }
.lot-jp { font-size: 10px; letter-spacing: 0.16em; color: var(--brick-hot); margin-left: auto; }
.lot-eff { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.lot-pill { display: inline-block; margin-top: 8px; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tenku-hot); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 9px; }

.counters { position: absolute; right: 26px; bottom: 26px; display: flex; flex-direction: column; gap: 8px; width: 250px; }
.ct {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 11px 14px; backdrop-filter: blur(12px); display: flex; align-items: baseline; gap: 10px;
}
.ct .val { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--kome); min-width: 52px; }
.ct.bad .val { color: var(--brick-hot); }
.ct.bad.zero .val { color: var(--tenku-hot); }
.ct .lb { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); line-height: 1.3; }
.ct-reset { margin-top: 2px; background: transparent; border: 1px solid var(--line); color: var(--muted-2); border-radius: var(--r-pill); padding: 6px 12px; font-family: var(--font-body); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.ct-reset:hover { color: var(--ivory); border-color: var(--line-strong); }

#station-panel {
  position: absolute; top: 96px; right: 26px; width: 320px; z-index: 12;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-card);
  padding: 18px 19px; backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all 0.4s var(--ease);
}
#station-panel.in { opacity: 1; transform: none; pointer-events: auto; }
#station-panel .sp-jp { font-size: 10px; letter-spacing: 0.2em; color: var(--brick-hot); }
#station-panel h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 17px; color: var(--kome); margin: 6px 0 9px; }
#station-panel p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
#station-panel .sp-lot { margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tenku-hot); }
#station-panel .sp-close { position: absolute; top: 12px; right: 13px; background: transparent; border: 0; color: var(--muted-2); cursor: pointer; font-size: 16px; line-height: 1; }

/* ---------- grilles génériques ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 21px; }
.card h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 14.5px; color: var(--kome); margin: 0 0 9px; letter-spacing: 0.01em; }
.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.58; }
.card .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tenku-hot); display: block; margin-bottom: 9px; }

/* ---------- sécurité : la coupe ---------- */
.coupe { display: grid; grid-template-columns: 1fr 62px 1fr; gap: 0; align-items: stretch; margin: 8px 0 20px; }
.coupe-side { background: var(--card); border: 1px solid var(--line); padding: 24px 25px; }
.coupe-side.in { border-radius: var(--r-card) 0 0 var(--r-card); border-right: 0; }
.coupe-side.out { border-radius: 0 var(--r-card) var(--r-card) 0; border-left: 0; background: rgba(30, 20, 18, 0.4); border-color: var(--brick-line); }
.coupe-wall { position: relative; }
.coupe-wall::before {
  content: ''; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--tenku-hot) 12%, var(--tenku-hot) 88%, transparent);
  box-shadow: 0 0 22px rgba(79,158,196,0.6);
}
.coupe-wall span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-90deg);
  font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tenku-hot); white-space: nowrap;
  background: var(--bg); padding: 5px 8px;
}
.coupe-side h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 15px; color: var(--kome); margin: 0 0 14px; }
.coupe-side.out h4 { color: var(--brick-hot); }
.coupe-side ul { margin: 0; padding: 0; list-style: none; }
.coupe-side li { position: relative; padding-left: 18px; margin-bottom: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.coupe-side li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--tenku-hot); }
.coupe-side.out li::before { background: var(--brick-hot); }

.rd-note { margin-top: 26px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: 20px 22px; background: rgba(14,20,23,0.5); }
.rd-note h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 13.5px; color: var(--tenku-hot); margin: 0 0 10px; }
.rd-note p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- méthode : échelle ---------- */
.echelle { display: flex; flex-direction: column; gap: 0; }
.ech {
  display: grid; grid-template-columns: 74px 1fr 190px; gap: 20px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.ech:last-child { border-bottom: 1px solid var(--line); }
.ech .n { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--tenku); line-height: 1; }
.ech h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 17px; color: var(--kome); margin: 0 0 8px; }
.ech p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.58; }
.ech .t { justify-self: end; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brick-hot); border: 1px solid var(--brick-line); border-radius: var(--r-pill); padding: 5px 11px; white-space: nowrap; }

.audit-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 16px; }
.audit-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 23px; }
.audit-col.livrable { border-color: var(--line-strong); background: rgba(16,28,34,0.6); }
.audit-col h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 13.5px; margin: 0 0 15px; color: var(--tenku-hot); }
.audit-col ol { margin: 0; padding-left: 0; list-style: none; counter-reset: a; }
.audit-col li { counter-increment: a; position: relative; padding-left: 27px; margin-bottom: 11px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.audit-col li::before { content: counter(a, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--font-display); font-weight: 900; font-size: 10.5px; color: var(--tenku); }

.inconnues { display: flex; flex-direction: column; gap: 0; }
.inc { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 19px 0; border-top: 1px solid var(--line); }
.inc:last-child { border-bottom: 1px solid var(--line); }
.inc .q { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 14.5px; color: var(--kome); }
.inc p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- bloc destinataire ---------- */
#destinataire {
  border-left: 2px solid var(--brick-hot); padding: 4px 0 4px 20px; margin-bottom: 34px;
}
#destinataire .dst-k { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brick-hot); margin-bottom: 8px; }
#destinataire .dst-n { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 18px; color: var(--kome); margin-bottom: 10px; }
#destinataire .dst-o { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
#destinataire .dst-o b { color: var(--frost); font-weight: 600; }

/* ---------- investissement ---------- */
.price-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end;
  border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 28px 30px;
  background: linear-gradient(135deg, rgba(20,38,47,0.72), rgba(14,20,23,0.6));
}
.price-hero .ph-tag { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brick-hot); }
.price-hero h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 32px); color: var(--kome); margin: 11px 0 8px; }
.price-hero .ph-detail { font-size: 14px; color: var(--muted); }
.price-hero .ph-note { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; max-width: 520px; line-height: 1.5; }
.price-hero .ph-amount { text-align: right; }
.price-hero .ph-amount .v { font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 5vw, 62px); color: var(--kome); line-height: 0.9; }
.price-hero .ph-amount .u { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.price-hero .ph-amount .cii { font-size: 12.5px; color: var(--tenku-hot); margin-top: 9px; }

.lot-price { border-top: 1px solid var(--line); padding: 24px 0; }
.lot-price:last-of-type { border-bottom: 1px solid var(--line); }
.lp-head { display: flex; align-items: baseline; gap: 16px; cursor: pointer; }
.lp-head .nm { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 16px; color: var(--kome); }
.lp-head .jr { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.lp-head .rg { margin-left: auto; font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--tenku-hot); white-space: nowrap; }
.lp-head .caret { color: var(--muted-2); font-size: 12px; transition: transform 0.3s var(--ease); }
.lot-price.open .lp-head .caret { transform: rotate(90deg); }
.lp-body { display: none; margin-top: 16px; }
.lot-price.open .lp-body { display: block; }
.lp-body table { width: 100%; border-collapse: collapse; }
.lp-body td { padding: 7px 0; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid rgba(79,158,196,0.07); }
.lp-body td:last-child { text-align: right; color: var(--frost); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* porte des fourchettes : en réunion on ne montre que le forfait d'audit,
   et on n'ouvre le chiffrage du build que si on décide de l'ouvrir. */
.build-gate {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font-body); background: rgba(14,20,23,0.5);
  border: 1px dashed var(--line-strong); border-radius: var(--r-card);
  padding: 26px 28px; transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.build-gate:hover { border-color: var(--tenku-hot); background: rgba(20,38,47,0.6); }
.build-gate .bg-k { display: block; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.build-gate .bg-t { display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(17px, 2vw, 22px); color: var(--kome); margin-bottom: 9px; }
.build-gate .bg-p { display: block; font-size: 13px; color: var(--muted); max-width: 560px; line-height: 1.55; }

.total-row { display: flex; align-items: baseline; gap: 18px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.total-row .lb { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.total-row .v { margin-left: auto; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3vw, 36px); color: var(--kome); }

/* simulateur */
.sim { border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 26px 28px; background: rgba(14,20,23,0.6); }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin: 22px 0 26px; }
.sim-f label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.sim-f .out { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--kome); margin-bottom: 8px; }
.sim-f input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 2px; background: var(--line-strong); border-radius: 2px; outline: none; }
.sim-f input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--tenku-hot); cursor: pointer; box-shadow: 0 0 14px rgba(79,158,196,0.6); }
.sim-f input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--tenku-hot); cursor: pointer; }
.sim-res { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.sim-cell { background: rgba(9,14,17,0.6); border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px; }
.sim-cell .lb { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.sim-cell .v { font-family: var(--font-display); font-weight: 900; font-size: 25px; color: var(--kome); }
.sim-cell.hi { border-color: rgba(124,196,228,0.5); background: rgba(20,38,47,0.7); }
.sim-cell.hi .v { color: var(--tenku-hot); }
.sim-note { margin-top: 18px; font-size: 12.5px; color: var(--muted-2); line-height: 1.55; }

.fine { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fine-box { border: 1px solid var(--line); border-radius: var(--r-card); padding: 19px 21px; }
.fine-box.warn { border-color: var(--brick-line); background: rgba(30,20,18,0.32); }
.fine-box.warn h4 { color: var(--brick-hot); }
.fine-box h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 12.5px; color: var(--muted); margin: 0 0 11px; letter-spacing: 0.06em; }
.fine-box ul { margin: 0; padding-left: 17px; }
.fine-box li { font-size: 13px; color: var(--muted-2); line-height: 1.55; margin-bottom: 7px; }

.outro { margin-top: 76px; border-top: 1px solid var(--line); padding-top: 44px; }
.outro h3 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 16px; }
.outro p { color: var(--muted); max-width: 620px; font-size: 16px; }
.outro .sig { margin-top: 34px; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }

/* scrollbars discrètes */
.view::-webkit-scrollbar, #opening::-webkit-scrollbar { width: 8px; }
.view::-webkit-scrollbar-thumb, #opening::-webkit-scrollbar-thumb { background: rgba(79,158,196,0.2); border-radius: 8px; }
.view::-webkit-scrollbar-track, #opening::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1180px) {
  .grid3, .sim-grid, .sim-res { grid-template-columns: 1fr 1fr; }
  .audit-split, .grid2, .fine { grid-template-columns: 1fr; }
  .inc, .ech { grid-template-columns: 1fr; gap: 10px; }
  .ech .t { justify-self: start; }
  .lot-rail { width: 260px; }
  .counters { width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.15s !important; }
  #opening-inner { height: auto; }
  #opening-sticky { position: static; height: auto; padding: 90px 0; flex-direction: column; gap: 60px; }
  .frag { position: static; opacity: 1; transform: none; }
  #opening-title { position: static; }
}
