/* ============================================================
   SQUALI OS — devis interactif SHUNPO
   Charte SHUNPO en mode sombre immersif.
   ============================================================ */

:root {
  /* fonds */
  --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.66);
  --grad-zone: radial-gradient(130% 100% at 50% 0%, #101c22 0%, #090c0e 62%);

  /* encre & texte (kome / ivoire) */
  --kome: #f3f0e9;
  --ivory: #e5dfd3;
  --muted: #9fb4bc;
  --muted-2: #7c939b;

  /* accents SHUNPO */
  --brick: #b94532;        /* fushimi-glow */
  --brick-hot: #d6603f;
  --tenku: #2b718c;        /* blue-tenku */
  --tenku-hot: #4f9ec4;
  --tenku-frost: #bdc8cc;

  /* traits & verre */
  --line: rgba(79, 158, 196, 0.16);
  --line-strong: rgba(79, 158, 196, 0.34);
  --brick-line: rgba(214, 96, 63, 0.34);

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

  --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; /* la scène occupe le viewport ; le scroll vit dans les vues */
}
::selection { background: rgba(214, 96, 63, 0.32); 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; }
a { color: var(--tenku-hot); text-decoration: none; }

/* tag de section signature : [MOT ・カタカナ] */
.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); }

/* ============================================================
   SCÈNE (fond permanent)
   ============================================================ */
#stage-wrap {
  position: fixed; inset: 0; z-index: 1;
  background: var(--bg);
}
#stage-wrap squali-orchestration { position: absolute; inset: 0; }

/* voile cinéma sur la scène quand une vue de contenu est ouverte */
#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.92);
  backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px);
  opacity: 0; transition: opacity 0.7s var(--ease);
}
body[data-view]:not([data-view="constellation"]) #scene-veil { opacity: 1; }

/* vignette permanente + dégradés haut/bas facon cinéma */
#vignette {
  position: fixed; inset: 0; z-index: 22; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,12,14,0.85) 0, rgba(9,12,14,0) 150px),
    linear-gradient(0deg, rgba(9,12,14,0.9) 0, rgba(9,12,14,0) 170px),
    radial-gradient(140% 120% at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}

/* ============================================================
   OUVERTURE NARRATIVE (scrollytelling)
   ============================================================ */
#opening {
  position: fixed; inset: 0; z-index: 60;
  overflow-y: scroll; overflow-x: hidden;
  background: #090c0e;
}
#opening-inner { position: relative; height: 760vh; }
#opening-sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  display: grid; place-items: center; overflow: hidden;
}
.frag {
  position: absolute; left: 50%; top: 50%;
  width: min(860px, 90vw); text-align: center;
  transform: translate(-50%, -50%);
  opacity: 0; will-change: opacity, transform;
  color: var(--kome);
  font-weight: 300; font-family: var(--font-body);
  font-size: clamp(24px, 3.4vw, 44px); line-height: 1.22;
  letter-spacing: -0.01em; text-wrap: balance;
}
.frag em { color: var(--brick-hot); font-style: italic; }
.frag .num { color: var(--tenku-hot); font-weight: 600; font-variant-numeric: tabular-nums; }

#opening-title {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1000px, 94vw); text-align: center; will-change: opacity, transform;
}
#opening-title .kicker {
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--tenku-hot); margin-bottom: 22px;
}
#opening-title .kicker b { color: var(--brick-hot); font-weight: 600; }
#opening-title h1 {
  font-size: clamp(46px, 9vw, 118px); font-weight: 900;
  color: var(--kome); letter-spacing: -0.02em;
}
#opening-title h1 .os { color: var(--brick-hot); }
#opening-title .sub {
  margin-top: 22px; font-weight: 300; font-size: clamp(15px, 1.7vw, 20px);
  color: var(--muted); line-height: 1.55; text-wrap: balance;
}
#scroll-hint {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  color: var(--muted-2); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: hintPulse 2.4s var(--ease) infinite;
}
#scroll-hint .arrow { width: 1px; height: 34px; background: linear-gradient(var(--tenku-hot), transparent); }
@keyframes hintPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.enter-direct {
  position: absolute; top: 26px; right: 30px;
  background: rgba(14,20,23,0.7); border: 1px solid var(--line-strong);
  color: var(--ivory); border-radius: var(--r-pill); padding: 9px 20px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.1em; cursor: pointer; z-index: 62;
  transition: all 0.3s var(--ease);
}
.enter-direct:hover { border-color: var(--brick); color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(18px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(9,12,14,0.82), rgba(9,12,14,0));
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-14px); pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
body[data-phase="site"] nav { opacity: 1; transform: none; pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.brand .mark { font-size: 15px; letter-spacing: 0.02em; color: var(--kome); font-weight: 900; text-transform: uppercase; }
.brand .kanji { color: var(--brick-hot); font-weight: 400; font-size: 17px; letter-spacing: 0.12em; }
.brand .x { color: var(--muted-2); font-weight: 400; }
.nav-tabs { display: flex; gap: 4px; background: rgba(14,20,23,0.6); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; }
.nav-tabs button {
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.08em; padding: 8px 16px; border-radius: var(--r-pill);
  transition: all 0.25s var(--ease); white-space: nowrap;
}
.nav-tabs button:hover { color: var(--ivory); }
.nav-tabs button.active { background: var(--brick); color: #fff; }
.nav-cta {
  background: var(--brick); color: #fff; border: 0; border-radius: var(--r-pill);
  padding: 9px 18px; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; cursor: pointer;
  transition: all 0.3s var(--ease); white-space: nowrap;
}
.nav-cta:hover { background: var(--brick-hot); }
@media (max-width: 860px) {
  .nav-cta, .brand .x, .brand .kanji { display: none; }
  nav { padding: 12px 14px; gap: 10px; }
  .brand .mark:last-of-type { display: none; }
  .nav-tabs { overflow-x: auto; max-width: calc(100vw - 120px); flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs button { padding: 7px 11px; font-size: 11px; flex: 0 0 auto; }
}

/* ============================================================
   VUES (conteneurs de contenu)
   ============================================================ */
#site { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: 104px clamp(18px, 3vw, 40px) 120px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.view.active { opacity: 1; visibility: visible; pointer-events: auto; animation: zoneIn 0.6s var(--ease) both; }
@keyframes zoneIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* la constellation : pas de panneau plein, juste des overlays -> laisse la scène cliquable */
#view-constellation { overflow: visible; padding: 0; }
#view-constellation.active { pointer-events: none; }

/* en-tête de vue */
.view-head { margin-bottom: 42px; }
.view-head h2 { font-size: clamp(34px, 5.2vw, 64px); margin-top: 14px; }
.view-head .lead { margin-top: 18px; max-width: 660px; color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); font-weight: 300; line-height: 1.6; }
.view-head .lead b { color: var(--ivory); font-weight: 500; }

/* stat inline */
.statline { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 30px; }
.stat .v { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3vw, 40px); color: var(--kome); font-variant-numeric: tabular-nums; }
.stat .v .u { font-size: 0.5em; color: var(--tenku-hot); margin-left: 3px; }
.stat .k { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }
.stat .v.brick { color: var(--brick-hot); }

/* ============================================================
   CONSTELLATION overlays
   ============================================================ */
.scene-hint {
  position: absolute; left: clamp(18px,3vw,40px); bottom: 34px; z-index: 2;
  color: var(--muted-2); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  pointer-events: none;
}
.phase-chips {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 8px; pointer-events: auto; flex-wrap: wrap; justify-content: center;
  max-width: 92vw;
}
.phase-chips button {
  background: rgba(14,20,23,0.72); border: 1px solid var(--line); color: var(--ivory);
  border-radius: var(--r-pill); padding: 8px 15px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.08em; transition: all 0.25s var(--ease);
  backdrop-filter: blur(8px);
}
.phase-chips button:hover { border-color: var(--tenku-hot); color: #fff; }
.phase-chips button.active { border-color: var(--brick); background: rgba(185,69,50,0.25); color: #fff; }
.phase-chips button[data-p="all"].active { background: rgba(79,158,196,0.22); border-color: var(--tenku-hot); }

.legend {
  position: absolute; right: clamp(18px,3vw,40px); bottom: 34px; z-index: 2;
  display: flex; flex-direction: column; gap: 7px; pointer-events: none;
  background: rgba(14,20,23,0.5); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  backdrop-filter: blur(8px);
}
.legend .row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.legend .dot.hub { background: var(--brick-hot); box-shadow: 0 0 8px var(--brick-hot); }
.legend .dot.node { background: var(--tenku-hot); box-shadow: 0 0 8px var(--tenku-hot); }
.legend .dot.lab { background: #6fb3c9; }
.legend .dot.sample { background: var(--kome); }
@media (max-width: 720px) { .legend { display: none; } .scene-hint { display: none; } .phase-chips { bottom: 18px; } }

/* ============================================================
   PANNEAU DE LECTURE (chantier / node)
   ============================================================ */
#reading {
  position: fixed; top: 0; right: 0; height: 100%; width: min(500px, 94vw); z-index: 50;
  background: var(--panel); backdrop-filter: blur(22px);
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.85);
  transform: translateX(105%); transition: transform 0.55s var(--ease);
  overflow-y: auto; padding: 92px 34px 48px;
}
#reading.open { transform: none; }
#reading .close {
  position: absolute; top: 22px; right: 24px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--ivory);
  cursor: pointer; font-size: 18px; line-height: 1; transition: all 0.25s var(--ease);
}
#reading .close:hover { border-color: var(--brick); color: #fff; }
#reading .r-phase { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tenku-hot); }
#reading h3 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 8px; }
#reading .r-block { margin-top: 26px; }
#reading .r-block .lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brick-hot); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
#reading .r-block .lbl::before { content: ""; width: 14px; height: 1px; background: var(--brick); display: inline-block; }
#reading .r-block p { margin: 0; color: var(--ivory); font-weight: 300; font-size: 15px; line-height: 1.62; }
#reading .r-gain { background: rgba(79,158,196,0.09); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
#reading .r-gain .lbl { color: var(--tenku-hot); }
#reading .r-gain .lbl::before { background: var(--tenku-hot); }
#reading .r-gain p { color: var(--kome); font-weight: 400; }
#reading .r-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
#reading .chip { font-size: 11px; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); letter-spacing: 0.03em; }
#reading .r-kpis { list-style: none; padding: 0; margin: 10px 0 0; }
#reading .r-kpis li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
#reading .r-kpis li::before { content: "→"; position: absolute; left: 0; color: var(--tenku-hot); }

/* ============================================================
   ROADMAP
   ============================================================ */
.phase-block { margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.phase-block .ph-head { padding: 24px 26px; cursor: pointer; display: flex; gap: 20px; align-items: flex-start; transition: background 0.25s var(--ease); }
.phase-block .ph-head:hover { background: rgba(79,158,196,0.05); }
.phase-block .ph-num { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--brick-hot); opacity: 0.55; min-width: 58px; }
.phase-block .ph-main { flex: 1; }
.phase-block .ph-main h3 { font-size: clamp(19px, 2.2vw, 26px); color: var(--kome); }
.phase-block .ph-main .obj { margin-top: 10px; color: var(--muted); font-weight: 300; font-size: 14.5px; line-height: 1.55; max-width: 720px; }
.phase-block .ph-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.phase-block .ph-dur { font-size: 12px; color: var(--tenku-hot); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.phase-block .ph-price { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--kome); white-space: nowrap; font-variant-numeric: tabular-nums; }
.phase-block .ph-toggle { color: var(--muted-2); font-size: 12px; transition: transform 0.3s var(--ease); }
.phase-block.open .ph-toggle { transform: rotate(180deg); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.phase-block.open .ch-grid { max-height: 1400px; }
.ch-card { background: var(--panel-solid); padding: 18px 20px; cursor: pointer; transition: background 0.25s var(--ease); position: relative; }
.ch-card:hover { background: #131b1f; }
.ch-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--kome); margin: 0 0 8px; line-height: 1.3; }
.ch-card p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.5; }
.ch-card .ch-gain { margin-top: 12px; font-size: 12px; color: var(--tenku-hot); font-weight: 500; letter-spacing: 0.02em; line-height: 1.45; }
.ch-card .ch-gain .num { color: var(--kome); }
.ch-card .ch-more { position: absolute; top: 16px; right: 16px; color: var(--muted-2); font-size: 15px; opacity: 0; transition: opacity 0.25s; }
.ch-card:hover .ch-more { opacity: 1; }

/* ============================================================
   AVANT / APRÈS (diagnostic)
   ============================================================ */
.aa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 10px; }
@media (max-width: 760px) { .aa-grid { grid-template-columns: 1fr; } }
.aa-col { border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; background: var(--card); }
.aa-col.avant { border-color: var(--brick-line); }
.aa-col .aa-tag { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: 0.12em; margin-bottom: 18px; }
.aa-col.avant .aa-tag { color: var(--brick-hot); }
.aa-col.apres .aa-tag { color: var(--tenku-hot); }
.aa-col ul { list-style: none; padding: 0; margin: 0; }
.aa-col li { position: relative; padding-left: 26px; margin-bottom: 15px; font-size: 14.5px; color: var(--ivory); font-weight: 300; line-height: 1.5; }
.aa-col.avant li::before { content: "✕"; position: absolute; left: 0; color: var(--brick); font-size: 12px; top: 2px; }
.aa-col.apres li::before { content: "→"; position: absolute; left: 0; color: var(--tenku-hot); }

/* méthode */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 10px; }
.method-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; background: var(--card); }
.method-card .mc-num { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--brick-hot); letter-spacing: 0.1em; }
.method-card h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 18px; color: var(--kome); margin: 12px 0 10px; letter-spacing: -0.005em; }
.method-card p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.55; }

/* ============================================================
   INVESTISSEMENT
   ============================================================ */
.invest-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.invest-table th { text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); padding: 0 16px 14px; border-bottom: 1px solid var(--line); }
.invest-table th.num, .invest-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.invest-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.invest-table .ph-label { font-weight: 500; color: var(--kome); font-size: 15px; }
.invest-table .ph-jh { color: var(--muted-2); font-size: 12px; margin-top: 3px; }
.invest-table .price { font-family: var(--font-display); font-weight: 900; color: var(--kome); font-size: 17px; white-space: nowrap; }
.invest-table tr:hover td { background: rgba(79,158,196,0.04); }
.invest-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 26px; padding: 26px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: rgba(79,158,196,0.06); }
.invest-total .t-label { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 15px; color: var(--muted); letter-spacing: 0.06em; }
.invest-total .t-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4vw, 48px); color: var(--kome); font-variant-numeric: tabular-nums; }
.invest-total .t-cii { text-align: right; }
.invest-total .t-cii .t-label { color: var(--tenku-hot); }
.invest-total .t-cii .t-big { color: var(--tenku-hot); }

.cii-band { margin-top: 22px; border: 1px solid var(--brick-line); border-radius: var(--r-card); padding: 22px 24px; background: rgba(185,69,50,0.07); display: flex; gap: 18px; align-items: flex-start; }
.cii-band .cii-badge { font-family: var(--font-display); font-weight: 900; color: var(--brick-hot); font-size: 34px; line-height: 1; white-space: nowrap; }
.cii-band p { margin: 0; font-size: 14px; color: var(--ivory); font-weight: 300; line-height: 1.55; }

.recurring { margin-top: 30px; }
.recurring .rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.recurring .rec-item { background: var(--panel-solid); padding: 18px 20px; }
.recurring .rec-item .r-price { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--kome); }
.recurring .rec-item .r-price .u { font-size: 0.55em; color: var(--muted-2); }
.recurring .rec-item .r-label { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.assumptions { margin-top: 30px; }
.assumptions ul { list-style: none; padding: 0; margin: 12px 0 0; }
.assumptions li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 13.5px; color: var(--muted); font-weight: 300; line-height: 1.55; }
.assumptions li::before { content: "·"; position: absolute; left: 6px; color: var(--tenku-hot); font-size: 20px; top: -4px; }

/* CTA final */
.final-cta { margin-top: 46px; text-align: center; padding: 48px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--grad-zone); }
.final-cta h3 { font-size: clamp(26px, 3.6vw, 42px); }
.final-cta p { color: var(--muted); margin: 16px auto 26px; max-width: 500px; font-weight: 300; }
.final-cta .btn { background: var(--brick); color: #fff; border: 0; border-radius: var(--r-pill); padding: 14px 30px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; cursor: pointer; transition: all 0.3s var(--ease); }
.final-cta .btn:hover { background: var(--brick-hot); transform: translateY(-1px); }

/* pied */
.foot { max-width: var(--maxw); margin: 60px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 12px; }
.foot .kanji { color: var(--brick-hot); font-size: 15px; }

/* sep interne */
.section { margin-top: 56px; }
.section > .tag { margin-bottom: 14px; display: block; }
.section > h3.sec-title { font-size: clamp(22px, 3vw, 34px); margin-bottom: 8px; }
.section > .sec-sub { color: var(--muted); font-weight: 300; max-width: 640px; margin-bottom: 26px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.12s !important; }
  #scroll-hint { animation: none; }
}

/* ============================================================
   V2 — GAINS / ROI
   ============================================================ */
.roi-assump { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.roi-assump .a { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--card); min-width: 150px; }
.roi-assump .a .v { font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--kome); font-variant-numeric: tabular-nums; }
.roi-assump .a .k { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }
.roi-headline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; }
.roi-headline .h { background: rgba(79,158,196,0.06); padding: 24px 20px; }
.roi-headline .h .v { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3vw, 38px); color: var(--tenku-hot); font-variant-numeric: tabular-nums; line-height: 1; }
.roi-headline .h .v.brick { color: var(--brick-hot); }
.roi-headline .h .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px; }
@media (max-width: 820px) { .roi-headline { grid-template-columns: 1fr 1fr; } }
.rb { display: grid; grid-template-columns: 1fr 96px 132px; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.rb .rb-l { color: var(--kome); font-size: 14.5px; }
.rb .rb-l .sub { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 4px; }
.rb .rb-l .track { height: 6px; background: rgba(255,255,255,0.05); border-radius: 99rem; margin-top: 9px; overflow: hidden; }
.rb .rb-l .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--tenku), var(--tenku-hot)); border-radius: 99rem; transform-origin: left; animation: growBar 1s var(--ease) both; }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rb .rb-h { text-align: right; color: var(--tenku-hot); font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums; }
.rb .rb-e { text-align: right; color: var(--kome); font-weight: 500; font-variant-numeric: tabular-nums; }
.roi-note { color: var(--muted); font-size: 13px; font-weight: 300; line-height: 1.6; margin-top: 20px; max-width: 780px; }
.roi-note b { color: var(--ivory); font-weight: 500; }

/* ============================================================
   V2 — MAQUETTES D'APP (thème clair) + galerie
   ============================================================ */
.app-window { background: #f3f0e9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 30px 80px -34px rgba(0,0,0,0.75); color: #1e2629; font-family: var(--font-body); }
.app-topbar { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: #e7e1d5; border-bottom: 1px solid rgba(0,0,0,0.07); }
.app-dots { display: flex; gap: 5px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #c4bcae; display: block; }
.app-dots i.r { background: #d6603f; }
.app-title { font-weight: 600; font-size: 12.5px; color: #1e2629; }
.app-brand { margin-left: auto; font-family: var(--font-display); font-weight: 900; font-size: 11px; letter-spacing: 0.06em; color: #b94532; }
.app-body { padding: 15px 17px 18px; }
.app-tagline { font-size: 11.5px; color: #6a5f52; background: rgba(185,69,50,0.08); border-left: 2px solid #b94532; padding: 7px 10px; border-radius: 0 6px 6px 0; margin-bottom: 14px; line-height: 1.4; }
.app-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.app-meta .m { font-size: 11px; padding: 6px 11px; border-radius: 8px; background: #fff; border: 1px solid rgba(0,0,0,0.08); color: #474747; white-space: nowrap; }
.app-meta .m.primary { background: #b94532; color: #fff; border-color: #b94532; font-weight: 600; }
.app-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.app-table th { text-align: left; font-weight: 600; color: #7c939b; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; padding: 0 9px 8px; border-bottom: 1px solid rgba(0,0,0,0.1); white-space: nowrap; }
.app-table td { padding: 9px; border-bottom: 1px solid rgba(0,0,0,0.055); vertical-align: middle; }
.app-table tr:last-child td { border-bottom: 0; }
.badge { font-size: 10px; padding: 3px 9px; border-radius: 99rem; font-weight: 600; white-space: nowrap; display: inline-block; }
.badge.br { background: rgba(185,69,50,0.13); color: #b94532; }
.badge.bl { background: rgba(43,113,140,0.13); color: #2b718c; }
.badge.gr { background: rgba(45,130,80,0.15); color: #2f8c57; }
.badge.am { background: rgba(190,140,20,0.18); color: #9a7410; }
.app-ia { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: #2b718c; background: rgba(43,113,140,0.1); padding: 4px 9px; border-radius: 99rem; }
.app-kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.app-kcol { background: #fff; border-radius: 8px; padding: 9px; border: 1px solid rgba(0,0,0,0.05); }
.app-kcol h5 { margin: 0 0 8px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #7c939b; display: flex; justify-content: space-between; }
.app-kcard { background: #f3f0e9; border-radius: 6px; padding: 7px 8px; margin-bottom: 6px; font-size: 10px; line-height: 1.35; border-left: 2px solid #bdc8cc; white-space: pre-line; }
.app-kcard.ecart { border-left-color: #d6603f; }
.app-dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.app-tile { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; padding: 14px; }
.app-tile .v { font-family: var(--font-display); font-weight: 900; font-size: 24px; color: #1e2629; }
.app-tile .v.bl { color: #2b718c; } .app-tile .v.br { color: #b94532; }
.app-tile .k { font-size: 10.5px; color: #7c939b; margin-top: 4px; }
.app-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-pane { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; padding: 13px; font-size: 12px; }
.app-pane h6 { margin: 0 0 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: #7c939b; }
.app-kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); font-size: 11.5px; }
.app-kv b { color: #1e2629; }

/* galerie */
.mockup-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 8px; }
.mockup-card { cursor: pointer; border-radius: 14px; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); position: relative; }
.mockup-card:hover { transform: translateY(-6px); }
.mockup-frame { height: 210px; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); position: relative; -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
.mockup-frame .app-window { transform: scale(0.62); transform-origin: top left; width: 161%; pointer-events: none; }
.mockup-card .mc-cap { margin-top: 12px; }
.mockup-card .mc-cap .t { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 14px; color: var(--kome); letter-spacing: -0.005em; }
.mockup-card .mc-cap .s { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.mockup-card .mc-open { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(9,12,14,0.7); color: #fff; border-radius: 99rem; font-size: 11px; padding: 4px 10px; opacity: 0; transition: opacity 0.3s; }
.mockup-card:hover .mc-open { opacity: 1; }
/* maquette dans le panneau de lecture */
.r-mockup { margin-top: 26px; }
.r-mockup .lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tenku-hot); margin-bottom: 12px; }
.r-mockup .app-window { font-size: 11px; }
#reading.wide { width: min(920px, 96vw); }

/* ============================================================
   V2 — GANTT
   ============================================================ */
#gantt { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; background: var(--card); }
.gantt-axis { display: grid; margin: 0 0 12px 190px; }
.gantt-axis .mo { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; border-left: 1px solid var(--line); padding-left: 6px; }
.gantt-row { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 14px; margin-bottom: 12px; }
.gantt-lab { font-size: 13px; color: var(--ivory); }
.gantt-lab .d { display: block; color: var(--muted-2); font-size: 11px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.gantt-track { position: relative; height: 38px; background: rgba(255,255,255,0.025); border-radius: 8px; border: 1px solid var(--line); }
.gantt-grid { position: absolute; inset: 0; display: grid; }
.gantt-grid span { border-left: 1px solid rgba(255,255,255,0.04); }
.gantt-bar { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; display: flex; align-items: center; padding: 0 12px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; box-shadow: 0 6px 20px -8px rgba(0,0,0,0.6); transform-origin: left; animation: growBar 1.1s var(--ease) both; }
.gantt-bar.p0 { background: linear-gradient(90deg, #2b718c, #4f9ec4); }
.gantt-bar.p1 { background: linear-gradient(90deg, #356b83, #59b0d2); }
.gantt-bar.p2 { background: linear-gradient(90deg, #3f6f80, #74c7e6); }
.gantt-bar.p3 { background: linear-gradient(90deg, #b94532, #d6603f); }
.gantt-milestone { position: absolute; top: -3px; width: 10px; height: 10px; background: var(--kome); transform: rotate(45deg); border: 1px solid var(--bg); }
.gantt-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--muted-2); }
.gantt-legend .ms { display: inline-flex; align-items: center; gap: 6px; }
.gantt-legend .ms i { width: 8px; height: 8px; background: var(--kome); transform: rotate(45deg); display: inline-block; }
@media (max-width: 720px) { .gantt-axis { margin-left: 110px; } .gantt-row { grid-template-columns: 110px 1fr; } .gantt-lab { font-size: 11px; } }

/* ============================================================
   V2 — CARTOGRAPHIE AS-IS
   ============================================================ */
.carto-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.carto-filter button { background: rgba(14,20,23,0.6); border: 1px solid var(--line); color: var(--ivory); border-radius: 99rem; padding: 7px 14px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; cursor: pointer; transition: all 0.25s var(--ease); }
.carto-filter button:hover { border-color: var(--tenku-hot); }
.carto-filter button.active { background: var(--tenku); border-color: var(--tenku-hot); color: #fff; }
#carto { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
.carto-step { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: all 0.3s var(--ease); position: relative; }
.carto-step .n { font-family: var(--font-display); font-weight: 900; color: var(--muted-2); font-size: 12px; }
.carto-step .t { color: var(--ivory); margin-top: 4px; line-height: 1.32; font-size: 12px; font-weight: 300; }
.carto-step .time { color: var(--brick-hot); font-size: 10.5px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.carto-step.killed { border-color: var(--tenku-hot); background: rgba(79,158,196,0.13); transform: translateY(-2px); }
.carto-step.killed .t { color: var(--kome); }
.carto-step.killed .time { color: var(--tenku-hot); text-decoration: line-through; }
.carto-step.dim { opacity: 0.34; }

/* ============================================================
   V2 — ÉQUIPE / ACCOMPAGNEMENT / TRANSFORMATION / ACTIF
   ============================================================ */
.team-lead { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .team-lead { grid-template-columns: 1fr; } }
.team-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; background: var(--card); }
.team-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; display: block; border: 2px solid var(--line-strong); }
.team-card .role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tenku-hot); }
.team-card .name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 19px; color: var(--kome); margin-top: 8px; }
.team-card .d { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; font-weight: 300; }
.team-support { display: flex; gap: 20px 26px; flex-wrap: wrap; align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.team-support .s { display: flex; align-items: center; gap: 11px; }
.team-support img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.team-support .s .nm { font-size: 13px; color: var(--ivory); }
.team-support .s .rl { font-size: 11px; color: var(--muted-2); }

.accomp-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
@media (max-width: 760px) { .accomp-track { grid-template-columns: 1fr 1fr; } }
.accomp-step { padding: 24px 20px 22px; border-top: 2px solid var(--line); position: relative; }
.accomp-step::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--brick); }
.accomp-step .num { font-family: var(--font-display); font-weight: 900; font-size: 13px; color: var(--brick-hot); letter-spacing: 0.08em; }
.accomp-step h4 { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--kome); margin: 10px 0 8px; }
.accomp-step p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.5; margin: 0; }

.transform-band { border: 1px solid var(--brick-line); background: rgba(185,69,50,0.06); border-radius: var(--r-card); padding: 34px; }
.transform-band .sec-title { font-size: clamp(24px, 3.4vw, 40px); }
.transform-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 760px) { .transform-points { grid-template-columns: 1fr; } }
.transform-points .p { border-left: 2px solid var(--brick); padding-left: 15px; font-size: 14px; color: var(--ivory); font-weight: 300; line-height: 1.5; }
.transform-points .p .num { color: var(--brick-hot); font-weight: 600; }

.valuation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 760px) { .valuation-grid { grid-template-columns: 1fr; } }
.val-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--card); }
.val-card .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 12px; min-height: 30px; }
.val-card .v { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); color: var(--tenku-hot); font-variant-numeric: tabular-nums; }
.val-card:first-child .v { color: var(--kome); }
.val-card:last-child .v { color: var(--brick-hot); }
.val-card .n { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; font-weight: 300; }
.asset-logic { color: var(--muted); font-size: 13px; margin-top: 20px; max-width: 780px; font-weight: 300; line-height: 1.6; }

/* ============================================================
   V3 — VERBATIMS / SÉCURITÉ / ENGAGEMENTS / CLÔTURE
   ============================================================ */
.verbatim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.verbatim-card { border: 1px solid var(--brick-line); border-radius: var(--r-card); padding: 22px 24px; background: rgba(185,69,50,0.05); position: relative; }
.verbatim-card::before { content: "「"; position: absolute; top: 10px; right: 16px; font-size: 28px; color: var(--brick-hot); opacity: 0.4; }
.verbatim-card .vq { font-size: 16px; color: var(--kome); font-weight: 300; line-height: 1.5; font-style: italic; }
.verbatim-card .vm { margin-top: 12px; font-size: 11.5px; color: var(--muted-2); display: flex; gap: 10px; align-items: baseline; }
.verbatim-card .vm .ts { color: var(--brick-hot); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 8px; }
.sec-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--card); }
.sec-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--kome); margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.sec-card h4::before { content: "◆"; color: var(--tenku-hot); font-size: 10px; }
.sec-card p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.5; }
.ia-interne { margin-top: 20px; border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 22px 24px; background: rgba(79,158,196,0.07); }
.ia-interne h4 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 15px; color: var(--tenku-hot); margin: 0 0 10px; }
.ia-interne p { margin: 0; font-size: 13.5px; color: var(--ivory); font-weight: 300; line-height: 1.55; }

.eng-quote { margin: 18px 0 24px; border-left: 3px solid var(--brick); padding: 14px 22px; font-size: clamp(15px, 1.8vw, 19px); color: var(--kome); font-weight: 300; font-style: italic; line-height: 1.5; background: rgba(185,69,50,0.05); border-radius: 0 12px 12px 0; }
.eng-quote .ts { display: block; margin-top: 10px; font-style: normal; font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; }
.eng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.eng-card { background: var(--panel-solid); padding: 20px; }
.eng-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--kome); margin: 0 0 8px; }
.eng-card h4::before { content: "✓ "; color: var(--brick-hot); }
.eng-card p { margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 300; line-height: 1.5; }

.next-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 860px; margin: 6px auto 30px; text-align: left; }
.next-steps .ns { border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; background: rgba(255,255,255,0.02); font-size: 13px; color: var(--ivory); font-weight: 300; line-height: 1.45; }
.next-steps .ns b { color: var(--tenku-hot); font-weight: 600; display: block; margin-bottom: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.r-verbatim { margin-top: 22px; border-left: 2px solid var(--brick); padding: 10px 16px; font-style: italic; color: var(--kome); font-weight: 300; font-size: 14px; line-height: 1.5; background: rgba(185,69,50,0.05); border-radius: 0 8px 8px 0; }
.r-verbatim .ts { display: block; font-style: normal; margin-top: 6px; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.06em; }
