/* ============================================================
   FONTES LOCALES — Calibre / SF Pro Display / Noto Sans SC / Minion Pro
   ============================================================ */
@font-face { font-family: "Calibre"; src: url("fonts/CalibreLight.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Calibre"; src: url("fonts/CalibreRegular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Calibre"; src: url("fonts/CalibreRegularItalic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Calibre"; src: url("fonts/CalibreMedium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Calibre"; src: url("fonts/CalibreSemibold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Calibre"; src: url("fonts/CalibreBold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Calibre"; src: url("fonts/CalibreBlack.otf") format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("fonts/SF-Pro-Display-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("fonts/SF-Pro-Display-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("fonts/SF-Pro-Display-Semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("fonts/SF-Pro-Display-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans SC"; src: url("fonts/NotoSansSC-VariableFont_wght.ttf") format("truetype-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Minion Pro"; src: url("fonts/MinionPro-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }

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

:root {
  /* fonds */
  --bg: #06080b;
  --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%, #0e1a20 0%, #06080b 62%);

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

  /* accents SHUNPO */
  --brick: #c89020;        /* fushimi-glow */
  --brick-hot: #ffc848;
  --tenku: #2f89ac;        /* blue-tenku */
  --tenku-hot: #4fc3e8;
  --tenku-frost: #bdc8cc;

  /* traits & verre */
  --line: rgba(79, 195, 232, 0.16);
  --line-strong: rgba(79, 195, 232, 0.34);
  --brick-line: rgba(255, 200, 72, 0.34);

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

  --font-display: "Calibre", "Arial Black", system-ui, sans-serif;
  --font-body: "SF Pro Display", -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(255, 200, 72, 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 opnr-grid { 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(47,137,172,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: #06080b;
}
#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.7s var(--ease) both; }
@keyframes zoneIn { from { opacity: 0; transform: translateY(28px) scale(0.988); filter: blur(9px); } to { opacity: 1; transform: none; filter: 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(200,144,32,0.25); color: #fff; }
.phase-chips button[data-p="all"].active { background: rgba(79,195,232,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,195,232,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,195,232,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,195,232,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,195,232,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(200,144,32,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,195,232,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: #ffc848; }
.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: #c89020; }
.app-body { padding: 15px 17px 18px; }
.app-tagline { font-size: 11.5px; color: #6a5f52; background: rgba(200,144,32,0.08); border-left: 2px solid #c89020; 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: #c89020; color: #fff; border-color: #c89020; 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(200,144,32,0.13); color: #c89020; }
.badge.bl { background: rgba(47,137,172,0.13); color: #2f89ac; }
.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: #2f89ac; background: rgba(47,137,172,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: #ffc848; }
.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: #2f89ac; } .app-tile .v.br { color: #c89020; }
.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, #2f89ac, #4fc3e8); }
.gantt-bar.p1 { background: linear-gradient(90deg, #38809f, #5fcdf0); }
.gantt-bar.p2 { background: linear-gradient(90deg, #45859a, #7fdcf6); }
.gantt-bar.p3 { background: linear-gradient(90deg, #c89020, #ffc848); }
.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,195,232,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(200,144,32,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(200,144,32,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,195,232,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(200,144,32,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(200,144,32,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; }

/* ============================================================
   V4 — LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 200; background: #06080b;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.ld-cell { position: relative; width: 150px; height: 150px; margin-bottom: 34px; }
.ld-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(79,195,232,0.35); inset: 0; animation: ldSpin 6s linear infinite; }
.ld-ring.r1 { inset: 0; border-style: dashed; opacity: 0.5; }
.ld-ring.r2 { inset: 18px; animation-duration: 4.2s; animation-direction: reverse; border-color: rgba(79,195,232,0.5); }
.ld-ring.r3 { inset: 38px; animation-duration: 3s; border-style: dotted; opacity: 0.7; }
@keyframes ldSpin { to { transform: rotate(360deg); } }
.ld-nucleus {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ff9a6a, #c89020 70%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 26px 6px rgba(255,200,72,0.55);
  animation: ldPulse 1.8s var(--ease) infinite;
}
@keyframes ldPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.18); } }
.ld-dot { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #f0e2c4; opacity: 0.85; animation: ldOrbit 3.4s linear infinite; }
.ld-dot.d2 { animation-delay: -0.6s; width: 4px; height: 4px; } .ld-dot.d3 { animation-delay: -1.2s; }
.ld-dot.d4 { animation-delay: -1.8s; width: 3px; height: 3px; } .ld-dot.d5 { animation-delay: -2.4s; } .ld-dot.d6 { animation-delay: -3s; width: 4px; height: 4px; }
@keyframes ldOrbit {
  from { transform: translate(-50%,-50%) rotate(0deg) translateX(56px) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(56px) rotate(-360deg); }
}
.ld-brand { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); color: var(--kome); letter-spacing: -0.01em; animation: ldGlow 2.4s ease infinite; }
.ld-brand b { color: var(--brick-hot); }
@keyframes ldGlow { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
.ld-sub { margin-top: 8px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-2); }
.ld-sub i { font-style: normal; color: var(--brick-hot); }
.ld-sub .jp { color: var(--brick-hot); letter-spacing: 0.2em; }
.ld-bar { margin-top: 30px; width: min(240px, 60vw); height: 2px; background: rgba(255,255,255,0.08); border-radius: 99rem; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--tenku-hot), var(--brick-hot)); border-radius: 99rem; transition: width 0.3s ease; }
.ld-pct { margin-top: 10px; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; letter-spacing: 0.14em; }

/* ============================================================
   V4 — RÉVÉLATIONS & TITRES PARTICULES
   ============================================================ */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.rv-in { opacity: 1; transform: none; }
.t-ch { display: inline-block; white-space: pre; }
h2.t-anim .t-ch {
  opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.3); filter: blur(7px);
  animation: chIn 0.85s var(--ease) forwards; animation-delay: calc(var(--i) * 26ms);
}
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
.tag { position: relative; }
.view.active .view-head .tag::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--brick-hot), transparent);
  transform: scaleX(0); transform-origin: left; animation: tagLine 0.9s var(--ease) 0.3s forwards;
}
@keyframes tagLine { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  h2.t-anim .t-ch { opacity: 1; transform: none; filter: none; animation: none; }
  #loader .ld-ring, #loader .ld-dot, #loader .ld-nucleus { animation: none; }
}

/* ============================================================
   V4 — CRAINTES → RÉPONSES
   ============================================================ */
.craintes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.crainte-card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.crainte-card .cr-top { padding: 20px 22px 16px; border-bottom: 1px solid var(--brick-line); background: rgba(200,144,32,0.06); }
.crainte-card .cr-top .cr-k { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brick-hot); margin-bottom: 8px; }
.crainte-card .cr-top h4 { margin: 0 0 8px; font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--kome); }
.crainte-card .cr-top .cr-q { font-size: 13px; color: var(--ivory); font-weight: 300; font-style: italic; line-height: 1.5; opacity: 0.85; }
.crainte-card .cr-bottom { padding: 16px 22px 20px; flex: 1; }
.crainte-card .cr-bottom .cr-k { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tenku-hot); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.crainte-card .cr-bottom .cr-k::before { content: "→"; }
.crainte-card .cr-bottom p { margin: 0; font-size: 13.5px; color: var(--muted); font-weight: 300; line-height: 1.55; }
.crainte-card .cr-bottom p b { color: var(--ivory); font-weight: 500; }

/* ============================================================
   V5 — HALO CURSEUR / GANTT VIVANT / SORTIE DE LOADER
   ============================================================ */
#cursor-glow {
  position: fixed; left: 0; top: 0; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,232,0.14) 0%, rgba(255,200,72,0.05) 40%, transparent 68%);
  pointer-events: none; z-index: 15; opacity: 0; transition: opacity 0.6s ease;
  mix-blend-mode: screen; will-change: transform;
}
body[data-phase="site"][data-view="constellation"] #cursor-glow { opacity: 1; }

.gantt-row .gantt-bar { transform-origin: left center; }
.gantt-row.rv .gantt-bar { transform: scaleX(0); }
.gantt-row.rv-in .gantt-bar { transform: scaleX(1); transition: transform 1.1s var(--ease) 0.25s; }
.gantt-row.rv .gantt-milestone { opacity: 0; }
.gantt-row.rv-in .gantt-milestone { opacity: 1; transition: opacity 0.4s ease 1.3s; }

#loader.done .ld-cell { transform: scale(3.2); opacity: 0; transition: transform 0.95s var(--ease), opacity 0.7s ease; }
#loader.done .ld-brand, #loader.done .ld-sub, #loader.done .ld-bar, #loader.done .ld-pct {
  opacity: 0; transform: translateY(-14px); transition: opacity 0.45s ease, transform 0.45s ease;
}

.mockup-card, .team-card, .verbatim-card, .method-card { will-change: transform; }
.nav-cta, .final-cta .btn, .phase-chips button { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  #cursor-glow { display: none; }
  .gantt-row.rv .gantt-bar { transform: none; }
}

/* ============================================================
   V6 — MENU DES BRIQUES (constellation)
   ============================================================ */
#brique-menu {
  position: absolute; left: clamp(16px, 2vw, 32px); top: 92px; bottom: 96px;
  width: 308px; z-index: 4; pointer-events: auto;
  background: rgba(12, 17, 20, 0.66); border: 1px solid var(--line);
  border-radius: 20px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 24px 20px; overflow-y: auto; scrollbar-width: thin;
  opacity: 0; transform: translateX(-24px);
  transition: opacity 0.8s var(--ease) 0.4s, transform 0.8s var(--ease) 0.4s;
}
body[data-phase="site"] #brique-menu { opacity: 1; transform: none; }
#brique-menu::-webkit-scrollbar { width: 4px; }
#brique-menu::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99rem; }
#brique-menu .bm-kicker { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--tenku-hot); }
#brique-menu .bm-title { font-family: var(--font-body); font-weight: 300; font-style: italic; font-size: 19px; color: var(--kome); margin: 8px 0 20px; }
#brique-menu .bm-label { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); margin: 20px 0 10px; }
.bm-phase { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; overflow: hidden; background: rgba(255,255,255,0.02); transition: border-color 0.3s var(--ease), background 0.3s; }
.bm-phase.active { border-color: var(--brick-line); background: rgba(200,144,32,0.07); }
.bm-phase .bm-head { display: flex; align-items: center; gap: 13px; padding: 13px 14px; cursor: pointer; }
.bm-phase .bm-head:hover { background: rgba(79,195,232,0.05); }
.bm-phase .bm-kanji { color: var(--brick-hot); font-size: 17px; line-height: 1.15; width: 22px; text-align: center; flex-shrink: 0; }
.bm-phase .bm-name { flex: 1; }
.bm-phase .bm-name b { display: block; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--kome); }
.bm-phase .bm-name span { font-size: 11.5px; color: var(--muted-2); }
.bm-phase .bm-chev { color: var(--muted-2); font-size: 11px; transition: transform 0.3s var(--ease); }
.bm-phase.active .bm-chev { transform: rotate(180deg); }
.bm-phase .bm-list { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.bm-phase.active .bm-list { max-height: 320px; }
.bm-phase .bm-item { display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 49px; cursor: pointer; font-size: 12.5px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.bm-phase .bm-item::before { content: "◇"; color: var(--tenku-hot); font-size: 9px; }
.bm-phase .bm-item:hover { color: var(--kome); background: rgba(79,195,232,0.06); }
.bm-phase .bm-item:last-child { padding-bottom: 13px; }
.bm-trans { display: flex; align-items: center; gap: 13px; padding: 9px 6px; }
.bm-trans .bm-kanji { color: var(--tenku-hot); font-size: 15px; line-height: 1.2; width: 22px; text-align: center; flex-shrink: 0; }
.bm-trans .t { font-size: 13px; color: var(--ivory); font-weight: 300; }
@media (max-width: 940px) { #brique-menu { display: none; } }

/* ============================================================
   V8 — SIMULATEUR COÛT & GAINS
   ============================================================ */
.sim { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; margin-top: 8px; }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } }
.sim-controls { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.sim-lbl { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.sim-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.sim-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; transition: all 0.25s var(--ease); }
.sim-chip b { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--muted); }
.sim-chip span { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sim-chip.active { border-color: var(--brick-line); background: rgba(200,144,32,0.10); }
.sim-chip.active b { color: var(--kome); }
.sim-chip.active span { color: var(--brick-hot); }
.sim-chip::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex-shrink: 0; order: -1; transition: all 0.2s; }
.sim-chip.active::before { background: var(--brick); border-color: var(--brick); box-shadow: inset 0 0 0 2px var(--panel-solid); }
.sim-field { margin-bottom: 18px; }
.sim-field:last-child { margin-bottom: 0; }
.sim-field-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sim-field-top label { font-size: 12.5px; color: var(--muted); }
.sim-val { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--tenku-hot); font-variant-numeric: tabular-nums; }
.sim-controls input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99rem; background: rgba(255,255,255,0.10); outline: none; }
.sim-controls input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--tenku-hot); cursor: pointer; box-shadow: 0 0 0 4px rgba(79,195,232,0.18); transition: box-shadow 0.2s; }
.sim-controls input[type=range]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(79,195,232,0.26); }
.sim-controls input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--tenku-hot); cursor: pointer; }
.sim-out { display: flex; flex-direction: column; gap: 18px; }
.sim-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; }
@media (max-width: 560px) { .sim-kpis { grid-template-columns: repeat(2, 1fr); } }
.sim-kpi { background: var(--panel-solid); padding: 18px 16px; }
.sim-kpi .v { font-family: var(--font-display); font-weight: 900; font-size: clamp(19px, 2.4vw, 27px); color: var(--kome); font-variant-numeric: tabular-nums; line-height: 1; }
.sim-kpi .k { font-size: 11px; color: var(--muted-2); margin-top: 7px; letter-spacing: 0.04em; }
.sim-kpi.cost .v { color: var(--kome); }
.sim-kpi.gain .v { color: var(--tenku-hot); }
.sim-kpi.pay .v { color: var(--brick-hot); }
.sim-kpi.cost { background: rgba(255,255,255,0.015); }
.sim-kpi.pay { background: rgba(200,144,32,0.06); }
.sim-chart-wrap { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); padding: 18px 20px 8px; }
.sim-chart-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.sim-chart-head #sim-payback-label { font-size: 12.5px; color: var(--muted); }
.sim-chart-head #sim-payback-label b { color: var(--kome); font-weight: 600; }
.sim-chart { width: 100%; }
.sim-chart svg { display: block; overflow: visible; }
#roi-blocks .rb { cursor: pointer; transition: background 0.2s; border-radius: 8px; padding-left: 8px; padding-right: 8px; margin-left: -8px; margin-right: -8px; }
#roi-blocks .rb:hover { background: rgba(79,195,232,0.05); }
#roi-blocks .rb .track i { animation: none; }
.sim-toggle { display: inline-flex; gap: 3px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 99rem; padding: 3px; }
.sim-toggle button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; padding: 6px 13px; border-radius: 99rem; transition: all 0.2s var(--ease); }
.sim-toggle button.active { background: var(--tenku); color: #fff; }
.sim-bars { width: 100%; margin-top: 6px; }
.sim-bars svg { display: block; overflow: visible; }
.sim-bars rect { transition: height 0.35s var(--ease), y 0.35s var(--ease); }
.sim-blegend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.sim-blegend .lg { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.sim-blegend .lg::before { content: ""; width: 11px; height: 11px; border-radius: 3px; }
.sim-blegend .lg.g::before { background: #4fc3e8; }
.sim-blegend .lg.c::before { background: #b05f60; }
.sim-blegend .lg.b::before { background: #ffc848; }

/* ============================================================
   V10 — BLOC FOCUS PHASE 1
   ============================================================ */
#p1-focus { border: 1px solid var(--brick-line); border-radius: var(--r-card); background: linear-gradient(180deg, rgba(200,144,32,0.08), rgba(18,26,30,0.4)); padding: 30px clamp(20px, 3vw, 34px); }
.p1-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 6px; align-items: start; }
@media (max-width: 860px) { .p1-grid { grid-template-columns: 1fr; } }
.p1-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .p1-cols { grid-template-columns: 1fr; } }
.p1-col .p1-h { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.p1-col.get .p1-h { color: var(--tenku-hot); }
.p1-col.not .p1-h { color: var(--muted-2); }
.p1-col ul { list-style: none; padding: 0; margin: 0; }
.p1-col li { position: relative; padding-left: 22px; margin-bottom: 11px; font-size: 13.5px; line-height: 1.45; font-weight: 300; }
.p1-col.get li { color: var(--ivory); }
.p1-col.get li::before { content: "✓"; position: absolute; left: 0; color: var(--tenku-hot); font-weight: 700; }
.p1-col.not li { color: var(--muted-2); }
.p1-col.not li::before { content: "○"; position: absolute; left: 0; color: var(--muted-2); font-size: 11px; top: 2px; }
.p1-side { border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(9,12,14,0.5); padding: 22px; }
.p1-side .p1-price { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--kome); line-height: 1; }
.p1-side .p1-net { font-size: 12.5px; color: var(--tenku-hot); margin-top: 6px; }
.p1-when { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.p1-when:first-of-type { margin-top: 16px; border-top: 1px solid var(--line); }
.p1-when span { color: var(--muted-2); }
.p1-when b { color: var(--ivory); font-weight: 500; text-align: right; }
.p1-cta { width: 100%; margin-top: 18px; background: var(--brick); color: #fff; border: 0; border-radius: var(--r-pill); padding: 12px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12.5px; cursor: pointer; transition: background 0.3s var(--ease); }
.p1-cta:hover { background: var(--brick-hot); }
.p1-mockup { margin-top: 24px; }
.p1-mockup .p1-h { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tenku-hot); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.p1-demo-btn { background: var(--tenku); color: #fff; border: 0; border-radius: var(--r-pill); padding: 9px 18px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; cursor: pointer; transition: all 0.25s var(--ease); white-space: nowrap; }
.p1-demo-btn:hover { background: var(--tenku-hot); transform: translateY(-1px); }
.p1-demo-btn.solo { margin-top: 20px; }
.p1-mockup-preview { position: relative; cursor: pointer; border-radius: 12px; overflow: hidden; transition: transform 0.3s var(--ease); }
.p1-mockup-preview:hover { transform: translateY(-3px); }
.p1-mockup-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,12,14,0) 60%, rgba(47,137,172,0.25)); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.p1-mockup-preview:hover::after { opacity: 1; }
.p1-mockup-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--tenku); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 16px; border-radius: 99rem; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 2; }
.p1-mockup-preview:hover .p1-mockup-hint { opacity: 1; }

/* ============================================================
   PROTOTYPE INTERACTIF PHASE 1 (thème app clair)
   ============================================================ */
.pd-overlay { position: fixed; inset: 0; z-index: 300; opacity: 0; transition: opacity 0.35s var(--ease); }
.pd-overlay.open { opacity: 1; }
.pd-app { position: absolute; inset: 0; height: 100%; display: grid; grid-template-columns: 240px 1fr; grid-template-rows: minmax(0, 1fr); overflow: hidden; background: #eee9df; color: #1e2629; font-family: var(--font-body); font-size: 13.5px; }
@keyframes pdIn { from { transform: scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
/* transition de page fluide : seul le contenu d'écran entre en fondu, la sidebar/topbar restent stables */
@keyframes pdScreenIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pd-screen.pd-screen-in { animation: pdScreenIn 0.34s var(--ease) both; }
/* sidebar */
.pd-side { background: #12181b; color: #cdd8dc; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.pd-brand { font-family: var(--font-display); font-weight: 900; font-size: 18px; color: #fff; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 4px; }
.pd-brand .k { color: var(--brick-hot); }
.pd-brand b { color: var(--brick-hot); }
.pd-sidelabel { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #6f858c; margin: 10px 0 10px; }
.pd-navitem { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: transparent; border: 0; color: #aebbc0; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-family: var(--font-body); transition: all 0.2s; }
.pd-navitem .ic { width: 18px; text-align: center; opacity: 0.8; }
.pd-navitem:hover { background: rgba(255,255,255,0.05); color: #fff; }
.pd-navitem.active { background: var(--brick); color: #fff; font-weight: 600; }
.pd-count { margin-left: auto; background: rgba(255,255,255,0.16); border-radius: 99rem; font-size: 11px; padding: 1px 8px; }
.pd-sidefoot { margin-top: auto; font-size: 10.5px; color: #55686e; letter-spacing: 0.04em; }
/* main */
.pd-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: #f3f0e9; }
.pd-top { display: flex; align-items: center; gap: 16px; padding: 14px 26px; padding-right: 190px; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.07); }
@media (max-width: 620px) { .pd-top { padding-right: 26px; } .pd-close { font-size: 0; padding: 8px 12px; } .pd-close::before { content: '✕'; font-size: 13px; } }
.pd-search { flex: 1; background: #f0ece3; border-radius: 99rem; padding: 9px 16px; color: #8a97a0; font-size: 13px; }
.pd-topr { display: flex; align-items: center; gap: 14px; }
.pd-bell { position: relative; font-size: 16px; cursor: default; }
.pd-bell i { position: absolute; top: -6px; right: -8px; background: var(--brick); color: #fff; font-size: 10px; font-style: normal; border-radius: 99rem; padding: 0 5px; font-weight: 700; }
.pd-new { background: var(--brick); color: #fff; border: 0; border-radius: 99rem; padding: 9px 16px; font-weight: 600; font-size: 13px; cursor: pointer; }
.pd-new:hover { background: var(--brick-hot); }
.pd-user { width: 34px; height: 34px; border-radius: 50%; background: #1e2629; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pd-screen { padding: 26px 30px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.pd-h { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 20px; color: #1e2629; margin: 0; letter-spacing: -0.01em; }
.pd-sub { color: #6a7a82; margin: 6px 0 20px; font-size: 12.5px; }
.pd-mono, .mono { font-variant-numeric: tabular-nums; }
/* kpis */
.pd-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
/* ===== responsive maquette (scroll OK à toutes tailles) ===== */
@media (max-width: 1040px) {
  .pd-app { grid-template-columns: 208px 1fr; }
  .pd-screen { padding: 22px 20px; }
  .pd-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  /* sidebar verticale -> bandeau horizontal scrollable en haut, nav toujours accessible */
  .pd-app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .pd-side { flex-direction: row; align-items: center; gap: 6px; padding: 8px 12px; overflow-x: auto; overflow-y: hidden; }
  .pd-brand, .pd-sidefoot, .pd-navphase { display: none; }
  .pd-sidescroll { flex-direction: row; overflow-x: auto; overflow-y: hidden; margin: 0; padding: 0; gap: 6px; }
  .pd-navitem { white-space: nowrap; width: auto; flex: 0 0 auto; padding: 8px 12px; }
  .pd-top { padding: 10px 14px; gap: 10px; }
  .pd-search { display: none; }
  .pd-new { font-size: 0; padding: 9px 13px; }
  .pd-new::before { content: '+'; font-size: 17px; line-height: 1; }
  .pd-screen { padding: 16px 14px; }
  .pd-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pd-cols2, .pd-dashgrid, .pd-inbox { grid-template-columns: 1fr !important; }
  /* tables scrollables horizontalement sans casser la page */
  .pd-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pd-table > thead, .pd-table > tbody { display: table; width: 100%; min-width: 560px; }
}
@media (max-width: 440px) { .pd-kpis { grid-template-columns: 1fr; } }
.pd-kpi { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 18px; }
.pd-kpi .v { font-family: var(--font-display); font-weight: 900; font-size: 25px; color: #1e2629; line-height: 1; }
.pd-kpi .k { color: #6a7a82; font-size: 12px; margin-top: 6px; }
.pd-kpi.br .v { color: var(--brick); } .pd-kpi.bl .v { color: var(--blue-tenku); } .pd-kpi.am .v { color: #a07a10; }
/* card */
.pd-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.pd-cardh { font-weight: 700; font-size: 13px; color: #1e2629; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.pd-actline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 13.5px; cursor: pointer; }
.pd-actline:last-child { border-bottom: 0; }
.pd-actline:hover { color: var(--brick); }
.pd-actline em { color: var(--tenku); font-style: normal; font-weight: 600; margin-left: 8px; }
.pd-empty { color: #6a7a82; padding: 8px 0; }
/* chips */
.pd-chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-chip { background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 99rem; padding: 7px 15px; font-size: 12.5px; cursor: pointer; color: #4a5a62; transition: all 0.2s; }
.pd-chip.active { background: #1e2629; color: #fff; border-color: #1e2629; }
/* table */
.pd-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.pd-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a97a0; padding: 13px 14px; border-bottom: 1px solid rgba(0,0,0,0.08); background: #faf8f3; }
.pd-table td { padding: 13px 14px; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 13.5px; }
.pd-table.sm th, .pd-table.sm td { padding: 9px 12px; font-size: 13px; }
.pd-table tbody tr[data-open] { cursor: pointer; transition: background 0.15s; }
.pd-table tbody tr[data-open]:hover { background: #f3fafc; }
.pd-table .arr { color: #b6c2c7; text-align: right; font-size: 18px; }
.pd-table td.mono { font-variant-numeric: tabular-nums; color: #4a5a62; }
/* badges */
.pd-badge { font-size: 11px; padding: 3px 10px; border-radius: 99rem; font-weight: 600; white-space: nowrap; }
.pd-badge.br { background: rgba(200,144,32,0.12); color: var(--brick); }
.pd-badge.gr { background: rgba(60,140,90,0.15); color: #2f7d4f; }
.pd-badge.bl { background: rgba(47,137,172,0.13); color: var(--blue-tenku); }
.pd-badge.am { background: rgba(200,150,20,0.18); color: #9a7400; }
.pd-badge.gy { background: rgba(0,0,0,0.07); color: #6a7a82; }
/* detail */
.pd-back { background: transparent; border: 0; color: var(--tenku); cursor: pointer; font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 14px; }
.pd-dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.pd-dhead .pd-mono { color: #6a7a82; font-size: 13px; margin-top: 5px; }
.pd-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .pd-cols2 { grid-template-columns: 1fr; } }
.pd-traca { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.pd-traca div { background: #faf8f3; border-radius: 10px; padding: 11px 13px; }
.pd-traca span { display: block; font-size: 11px; color: #8a97a0; text-transform: uppercase; letter-spacing: 0.04em; }
.pd-traca b { font-size: 15px; }
.pd-dispatch label { display: block; font-size: 12px; font-weight: 600; color: #4a5a62; margin-bottom: 8px; }
.pd-dispatch .row { display: flex; gap: 10px; }
.pd-dispatch select { flex: 1; padding: 10px; border: 1px solid rgba(0,0,0,0.15); border-radius: 10px; font-size: 13.5px; background: #fff; }
.pd-btn { background: var(--brick); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pd-btn:hover { background: var(--brick-hot); }
.pd-btn.full { width: 100%; margin-top: 16px; }
.pd-dispatch .hint, .pd-card .hint { display: block; font-size: 11.5px; color: #8a97a0; margin-top: 10px; line-height: 1.4; }
.pd-doneline { background: rgba(60,140,90,0.1); color: #2f7d4f; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; }
/* intake */
.pd-ia { background: var(--tenku); color: #fff; font-size: 10px; padding: 1px 7px; border-radius: 99rem; vertical-align: middle; }
.pd-mailh { font-size: 13px; color: #4a5a62; line-height: 1.6; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.pd-attach { display: inline-block; margin: 12px 0; background: #faf8f3; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 8px 13px; font-size: 13px; }
.pd-mailbody { font-size: 13.5px; color: #4a5a62; line-height: 1.55; margin: 0; }
.pd-field { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 14px; }
.pd-field span { width: 90px; color: #8a97a0; font-size: 12.5px; }
.pd-field b { flex: 1; }
.pd-tag { font-style: normal; font-size: 10.5px; color: var(--tenku); background: rgba(47,137,172,0.1); padding: 2px 8px; border-radius: 99rem; }
/* toast + close */
.pd-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #1e2629; color: #fff; padding: 12px 22px; border-radius: 99rem; font-size: 13.5px; font-weight: 600; opacity: 0; transition: all 0.4s var(--ease); z-index: 320; box-shadow: 0 12px 40px -10px rgba(0,0,0,0.5); }
.pd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pd-close { position: absolute; top: 16px; right: 20px; z-index: 330; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.1); color: #1e2629; border-radius: 99rem; padding: 8px 16px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.06em; cursor: pointer; }
.pd-close:hover { background: #fff; }

/* ===== Maquette Phase 1 — extensions v15 ===== */
/* logout */
.pd-logout { background: transparent; border: 0; color: #8a97a0; font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; border-radius: 8px; }
.pd-logout:hover { color: var(--brick); background: rgba(0,0,0,0.04); }

/* login */
.pd-login { position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% -10%, #1a2529 0%, #0d1214 60%, #0a0e10 100%); display: grid; place-items: center; overflow: hidden; animation: pdIn 0.4s var(--ease) both; }
.pd-login-orbs { position: absolute; inset: 0; overflow: hidden; }
.pd-login-orbs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; animation: pdOrb 14s ease-in-out infinite; }
.pd-login-orbs i:nth-child(1) { width: 420px; height: 420px; background: rgba(200,144,32,0.5); top: -120px; left: -80px; }
.pd-login-orbs i:nth-child(2) { width: 380px; height: 380px; background: rgba(47,137,172,0.5); bottom: -140px; right: -60px; animation-delay: -5s; }
.pd-login-orbs i:nth-child(3) { width: 300px; height: 300px; background: rgba(255,200,72,0.35); top: 40%; left: 55%; animation-delay: -9s; }
@keyframes pdOrb { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,30px) scale(1.12); } 66% { transform: translate(-30px,20px) scale(0.95); } }
.pd-login-card { position: relative; z-index: 2; width: min(380px, 88vw); background: rgba(20,26,29,0.72); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.09); border-radius: 20px; padding: 34px 30px 26px; box-shadow: 0 30px 90px -30px rgba(0,0,0,0.8); animation: pdCard 0.6s var(--ease) both; }
@keyframes pdCard { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.pd-login-brand { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: #fff; text-transform: uppercase; letter-spacing: -0.01em; }
.pd-login-brand .k, .pd-login-brand b { color: var(--brick-hot); }
.pd-login-sub { color: #8ea1a8; font-size: 13px; margin: 6px 0 22px; }
.pd-login-card label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #7f939a; margin: 14px 0 6px; }
.pd-login-card input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 11px 13px; color: #fff; font-size: 14px; font-family: var(--font-body); }
.pd-login-card input:focus { outline: none; border-color: var(--brick-hot); background: rgba(255,255,255,0.1); }
.pd-login-btn { width: 100%; margin-top: 22px; background: var(--brick); color: #fff; border: 0; border-radius: 10px; padding: 13px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.pd-login-btn:hover { background: var(--brick-hot); transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(255,200,72,0.6); }
.pd-login-hint { text-align: center; color: #5f727a; font-size: 11.5px; margin-top: 16px; }

/* notifications */
.pd-bellwrap { position: relative; }
.pd-bell { background: transparent; border: 0; font-size: 16px; cursor: pointer; position: relative; padding: 4px; line-height: 1; }
.pd-bell.ring { animation: pdRing 0.8s var(--ease); transform-origin: 50% 0; }
@keyframes pdRing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-13deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.pd-notifpanel { position: absolute; top: 42px; right: 0; width: 320px; background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 14px; box-shadow: 0 24px 60px -18px rgba(0,0,0,0.35); z-index: 50; overflow: hidden; animation: pdDrop 0.24s var(--ease) both; }
@keyframes pdDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.pd-notifhead { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-bottom: 1px solid rgba(0,0,0,0.07); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.pd-notifhead button { background: none; border: 0; color: var(--tenku); font-size: 11.5px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 600; }
.pd-notif { display: flex; gap: 11px; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 12px 15px; cursor: pointer; transition: background 0.15s; align-items: flex-start; }
.pd-notif:hover { background: #f6f3ec; }
.pd-notif.unread { background: rgba(47,137,172,0.05); }
.pd-notif .nic { width: 26px; height: 26px; border-radius: 8px; background: #f0ece3; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.pd-notif.unread .nic { background: rgba(200,144,32,0.14); }
.pd-notif .ntxt { display: block; font-size: 13px; color: #1e2629; line-height: 1.35; }
.pd-notif .nt { display: block; font-size: 11px; color: #8a97a0; margin-top: 3px; }

/* ping (nouveau mail) */
.pd-ping { position: absolute; top: 64px; right: 22px; z-index: 320; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-left: 3px solid var(--brick); border-radius: 12px; padding: 13px 16px; width: 290px; box-shadow: 0 18px 50px -14px rgba(0,0,0,0.4); opacity: 0; transform: translateX(30px); transition: all 0.4s var(--ease); }
.pd-ping.show { opacity: 1; transform: none; }
.pd-ping .ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(200,144,32,0.14); color: var(--brick); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.pd-ping b { display: block; font-size: 12.5px; color: #1e2629; }
.pd-ping span { display: block; font-size: 12px; color: #6a7a82; margin-top: 2px; }

/* dashboard extras */
.pd-kpi { cursor: pointer; text-align: left; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.pd-kpi[data-kpi]:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -16px rgba(0,0,0,0.3); }
.pd-kpispark { position: absolute; right: 14px; bottom: 12px; width: 40px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08)); }
.pd-dashgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 860px) { .pd-dashgrid { grid-template-columns: 1fr; } }
.pd-week { display: flex; align-items: flex-end; gap: 12px; height: 140px; padding-top: 8px; }
.pd-week-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 7px; }
.pd-week-bar { width: 100%; max-width: 34px; background: rgba(47,137,172,0.25); border-radius: 6px 6px 0 0; position: relative; min-height: 6px; animation: pdBar 0.7s var(--ease) both; transform-origin: bottom; }
.pd-week-bar.today { background: var(--brick); }
.pd-week-bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #4a5a62; }
.pd-week-col em { font-size: 11px; color: #8a97a0; font-style: normal; }
@keyframes pdBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pd-live { color: #2f7d4f; font-size: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; margin-left: 8px; animation: pdPulse 2s ease-in-out infinite; }
@keyframes pdPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.pd-feed { display: flex; flex-direction: column; }
.pd-feeditem { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,0.05); align-items: flex-start; animation: pdFeedIn 0.4s var(--ease) both; }
.pd-feeditem:last-child { border-bottom: 0; }
.pd-feeditem .fic { width: 24px; height: 24px; border-radius: 7px; background: #f0ece3; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.pd-feeditem span { font-size: 12.5px; color: #1e2629; line-height: 1.3; }
.pd-feeditem em { display: block; font-size: 10.5px; color: #8a97a0; font-style: normal; margin-top: 2px; }
@keyframes pdFeedIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.pd-count-inline { display: inline-block; background: rgba(200,144,32,0.12); color: var(--brick); border-radius: 99rem; font-size: 11px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.pd-count.hot { background: var(--brick); color: #fff; }

/* registre bar + view toggle */
.pd-regbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-regbar .pd-chips { margin-bottom: 0; }
.pd-viewtoggle { display: inline-flex; background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; }
.pd-viewtoggle button { background: transparent; border: 0; padding: 8px 15px; font-size: 12.5px; cursor: pointer; color: #4a5a62; font-family: var(--font-body); }
.pd-viewtoggle button.active { background: #1e2629; color: #fff; }

/* row-in animation */
.pd-rowin { animation: pdRowIn 0.7s var(--ease) both; }
@keyframes pdRowIn { 0% { background: rgba(255,200,72,0.22); } 100% { background: transparent; } }

/* kanban */
.pd-kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.pd-kcol { flex: 1; min-width: 210px; background: #efece4; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; transition: background 0.2s, box-shadow 0.2s; }
.pd-kcol.over { background: rgba(47,137,172,0.12); box-shadow: inset 0 0 0 2px var(--tenku); }
.pd-kcol-h { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 8px 10px; color: #4a5a62; }
.pd-kcol-h i { font-style: normal; background: rgba(0,0,0,0.08); border-radius: 99rem; padding: 1px 8px; font-size: 11px; }
.pd-kcol-h.br { color: var(--brick); } .pd-kcol-h.bl { color: var(--blue-tenku); } .pd-kcol-h.am { color: #9a7400; } .pd-kcol-h.gr { color: #2f7d4f; }
.pd-kcol-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; padding: 4px; }
.pd-kcard { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 11px; padding: 12px; cursor: grab; box-shadow: 0 2px 6px -3px rgba(0,0,0,0.2); transition: transform 0.15s, box-shadow 0.15s; }
.pd-kcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,0.35); }
.pd-kcard.dragging { opacity: 0.45; transform: rotate(-2deg); cursor: grabbing; }
.pd-kcard-top { display: flex; justify-content: space-between; font-size: 11px; color: #8a97a0; margin-bottom: 5px; }
.pd-kcard-est { color: var(--tenku); font-weight: 700; }
.pd-kcard b { font-size: 13.5px; color: #1e2629; }
.pd-kcard-mat { display: block; font-size: 12px; color: #6a7a82; margin: 2px 0 8px; }
.pd-kcard-foot { display: flex; justify-content: space-between; font-size: 11px; color: #8a97a0; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 7px; }
.pd-kcard-ca { color: #4a5a62; font-weight: 600; }
.pd-kempty { color: #b6c2c7; font-size: 12px; text-align: center; padding: 14px 0; }

/* détail : timeline + estimation */
.pd-timeline { display: flex; justify-content: space-between; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 18px 22px; margin-bottom: 16px; position: relative; }
.pd-tstep { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; }
.pd-tstep:not(:last-child)::after { content: ''; position: absolute; top: 7px; left: 50%; width: 100%; height: 2px; background: rgba(0,0,0,0.1); z-index: 0; }
.pd-tstep.done:not(:last-child)::after { background: var(--tenku); }
.pd-tstep .dot { width: 16px; height: 16px; border-radius: 50%; background: #d9dfe1; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); z-index: 1; }
.pd-tstep.done .dot { background: var(--tenku); }
.pd-tstep.cur .dot { background: var(--brick); box-shadow: 0 0 0 4px rgba(200,144,32,0.2); animation: pdPulse 1.8s ease-in-out infinite; }
.pd-tstep em { font-size: 11px; color: #6a7a82; font-style: normal; }
.pd-tstep.done em { color: #1e2629; font-weight: 600; }
.pd-estim { margin-top: 16px; border-top: 1px dashed rgba(0,0,0,0.12); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pd-estim div { display: flex; justify-content: space-between; font-size: 13.5px; }
.pd-estim span { color: #6a7a82; }
.pd-estim b { font-variant-numeric: tabular-nums; }
.pd-estim .marg b { color: #2f7d4f; }

/* intake inbox */
.pd-inbox { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
@media (max-width: 820px) { .pd-inbox { grid-template-columns: 1fr; } }
.pd-card.mailbox { padding: 14px; }
.pd-mailrow { display: flex; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 11px 10px; cursor: pointer; align-items: flex-start; transition: background 0.15s; animation: pdRowIn 0.6s var(--ease) both; }
.pd-mailrow:hover { background: #f6f3ec; }
.pd-mailrow.active { background: rgba(47,137,172,0.08); }
.pd-maildot { width: 8px; height: 8px; border-radius: 50%; background: var(--brick); margin-top: 5px; flex-shrink: 0; }
.pd-mailrow b { display: block; font-size: 13.5px; color: #1e2629; }
.pd-mailrow span { display: block; font-size: 12px; color: #4a5a62; margin: 1px 0; line-height: 1.3; }
.pd-mailrow em { display: block; font-size: 11px; color: #8a97a0; font-style: normal; }
.pd-extract { margin: 4px 0 6px; }

/* labos */
.pd-labhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pd-iso { font-size: 10px; background: rgba(47,137,172,0.12); color: var(--tenku); padding: 1px 7px; border-radius: 99rem; vertical-align: middle; font-weight: 600; }
.pd-labrow { cursor: pointer; }
.pd-labrow:hover { background: #f3fafc; }
.pd-labsub td { padding: 0 !important; background: #faf8f3; }
.pd-labtests { padding: 14px 18px; animation: pdFeedIn 0.3s var(--ease) both; }
.pd-testrow { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 13px; }
.pd-testrow:last-child { border-bottom: 0; }

/* modal */
.pd-modal-back { position: absolute; inset: 0; background: rgba(15,20,22,0.55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 340; animation: pdIn 0.25s var(--ease) both; padding: 20px; }
.pd-modal { width: min(460px, 92vw); background: #fff; border-radius: 18px; padding: 26px; max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 90px -30px rgba(0,0,0,0.6); animation: pdCard 0.35s var(--ease) both; }
.pd-modalh { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 18px; color: #1e2629; margin-bottom: 16px; }
.pd-modalh.sm { font-size: 12px; margin: 20px 0 10px; color: #6a7a82; }
.pd-modal label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #8a97a0; margin: 12px 0 5px; }
.pd-modal input { width: 100%; border: 1px solid rgba(0,0,0,0.15); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-family: var(--font-body); }
.pd-modal input:focus { outline: none; border-color: var(--tenku); }
.pd-modal2 { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.pd-modal2 > div:first-child { grid-column: auto; }
.pd-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.pd-btn.ghost { background: transparent; color: #6a7a82; border: 1px solid rgba(0,0,0,0.15); }
.pd-btn.ghost:hover { background: #f3f0e9; }

/* services */
.pd-svcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.pd-svc { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 20px; animation: pdFeedIn 0.4s var(--ease) both; }
.pd-svc-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.pd-svc-k { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; color: #fff; }
.pd-svc-k.br { background: var(--brick); } .pd-svc-k.bl { background: var(--tenku); } .pd-svc-k.am { background: #b58a1a; }
.pd-svc-top b { display: block; font-size: 15px; color: #1e2629; }
.pd-svc-top em { display: block; font-size: 12px; color: #6a7a82; font-style: normal; margin-top: 3px; line-height: 1.35; }
.pd-svc-resp { font-size: 12.5px; color: #6a7a82; padding: 10px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.pd-svc-team { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.pd-av { width: 30px; height: 30px; border-radius: 50%; background: #1e2629; color: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; }
.pd-svc-n { font-size: 12px; color: #8a97a0; margin-left: 4px; }
.pd-svc-loadh { display: flex; justify-content: space-between; font-size: 12px; color: #6a7a82; margin-bottom: 6px; }
.pd-gauge { height: 8px; border-radius: 99rem; background: #eee9df; overflow: hidden; }
.pd-gauge-f { height: 100%; border-radius: 99rem; background: var(--tenku); transition: width 0.8s var(--ease); animation: pdGauge 0.9s var(--ease) both; }
.pd-gauge-f.mid { background: #ffc848; } .pd-gauge-f.hi { background: var(--brick); }
@keyframes pdGauge { from { width: 0 !important; } }
.pd-orgnote { font-size: 13.5px; color: #4a5a62; line-height: 1.55; }
.pd-orgnote b { color: #1e2629; }

/* ===== OPNR OS — shell modulaire (v16) ===== */
/* couleurs de phase */
.pd-app { --p1: #2f89ac; --p2: #c89020; --p3: #38809f; --p4: #5f8c72; }
/* sidebar scrollable + groupes de phase */
.pd-side { overflow: hidden; }
.pd-sidescroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; margin: 6px -6px; padding: 0 6px; }
.pd-sidescroll::-webkit-scrollbar { width: 6px; } .pd-sidescroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
.pd-navphase { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #6f858c; margin: 14px 0 6px; display: flex; align-items: center; gap: 7px; padding: 0 4px; }
.pd-navphase:first-child { margin-top: 2px; }
.pd-navphase .k { font-size: 13px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; }
.pd-navphase .k.p1 { background: var(--p1); } .pd-navphase .k.p2 { background: var(--p2); } .pd-navphase .k.p3 { background: var(--p3); } .pd-navphase .k.p4 { background: var(--p4); }
.pd-navitem { font-size: 13px; padding: 9px 11px; }
.pd-navitem.active.p1 { background: var(--p1); } .pd-navitem.active.p2 { background: var(--p2); } .pd-navitem.active.p3 { background: var(--p3); } .pd-navitem.active.p4 { background: var(--p4); }
.pd-navitem.active { color: #fff; font-weight: 600; }
/* mini indicateurs dashboard */
.pd-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 760px) { .pd-minis { grid-template-columns: 1fr; } }
.pd-mini { background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 14px 16px; }
.pd-mini span { display: block; font-size: 12px; color: #6a7a82; }
.pd-mini b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #1e2629; margin-top: 4px; }
.pd-mini em { display: block; font-size: 11px; color: #8a97a0; font-style: normal; margin-top: 3px; }
.pd-mini.alert { border-color: rgba(200,144,32,0.3); background: rgba(200,144,32,0.04); }
.pd-mini.alert b { color: var(--brick); }
/* statuts additionnels */
.pd-badge.te { background: rgba(47,137,172,0.13); color: var(--tenku); }
.pd-iso.warn { background: rgba(200,144,32,0.13); color: var(--brick); }
/* devis : gates */
.pd-gates { display: inline-flex; gap: 3px; vertical-align: middle; }
.pd-gate { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.14); display: inline-block; }
.pd-gate.on { background: #2f7d4f; }
.pd-gategrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 760px) { .pd-gategrid { grid-template-columns: 1fr; } }
.pd-gatecard { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 16px; }
.pd-gatecard.on { border-color: rgba(47,125,79,0.4); background: rgba(47,125,79,0.05); }
.pd-gateh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pd-gateh b { font-size: 13.5px; }
.pd-gateok { font-size: 11.5px; color: #2f7d4f; font-weight: 700; }
.pd-gatecard span { font-size: 12px; color: #6a7a82; }
.pd-btn.sm { padding: 7px 13px; font-size: 12.5px; margin-top: 12px; }
.pd-linkbtn { background: none; border: 0; color: #1e2629; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 13.5px; padding: 0; }
.pd-linkbtn:hover { color: var(--brick); }
