/* ==========================================================================
   Logiciels fictifs du hero (Linéa CRM · Terrava BTP) — composants dm-*
   Toutes les règles sont limitées au hero. Aucun violet : bleu (Linéa) et
   orange (Terrava) restent confinés aux produits, la palette Kora est intacte.
   Animations : transform / opacity / stroke uniquement (voir kora-hero.js).
   ========================================================================== */

.kora-hero .dm-app {
  --dm-text: #1b2430;
  --dm-muted: #5d697a;
  --dm-line: #e6eaf0;
  --dm-bg: #f6f8fb;
  --dm-good: #15803d;
  --dm-good-soft: #e5f5ec;
  --dm-warn: #b45309;
  --dm-warn-soft: #fff3d9;
  --dm-bad: #b42318;
  --dm-bad-soft: #feecea;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  background: #fff;
  color: var(--dm-text);
  font-family: Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* ── Identités fictives ───────────────────────────────────────────────── */
.kora-hero .dm-app[data-product="linea"] {
  --dm-accent: #2563eb;
  --dm-accent-2: #7fb0ff;
  --dm-soft: #eaf1ff;
  --dm-soft-2: #d6e5ff;
  --dm-ink: #0f2a5c;
}
.kora-hero .dm-app[data-product="terrava"] {
  --dm-accent: #c2570c;
  --dm-accent-2: #f6a45f;
  --dm-soft: #fff1e4;
  --dm-soft-2: #fbd9bb;
  --dm-ink: #3d2108;
}

/* ── Barre latérale ───────────────────────────────────────────────────── */
.kora-hero .dm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  padding: 18px 12px 14px;
  background: var(--dm-bg);
  border-right: 1px solid var(--dm-line);
  color: #4a5668;
}
.kora-hero .dm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  color: var(--dm-ink);
  font: 700 17px/1.15 Inter, sans-serif;
  letter-spacing: -.035em;
}
.kora-hero .dm-brand > svg { width: 30px; height: 30px; min-width: 30px; display: block; flex: none; }
.kora-hero .dm-brand small {
  display: block;
  margin-top: 3px;
  font: 400 11px/1.2 Inter, sans-serif;
  letter-spacing: 0;
  color: var(--dm-muted);
}
.kora-hero .dm-workspace {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 6px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 8px;
  font: 600 11px/1.25 Inter, sans-serif;
  color: var(--dm-text);
}
.kora-hero .dm-workspace small { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; color: var(--dm-muted); }
.kora-hero .dm-workspace > svg { width: 14px; height: 14px; margin-left: auto; color: var(--dm-muted); flex: none; }
.kora-hero .dm-ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dm-accent); box-shadow: 0 0 0 3px var(--dm-soft); flex: none; }
.kora-hero .dm-sidebar-section {
  margin: 16px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #7b8798;
}
.kora-hero .dm-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4a5668;
  font: 500 11px/1.3 Inter, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s cubic-bezier(.23, 1, .32, 1), color .16s cubic-bezier(.23, 1, .32, 1);
}
.kora-hero .dm-nav-item > svg { width: 16px; height: 16px; min-width: 16px; flex: none; display: block; }
@media (hover: hover) and (pointer: fine) {
  .kora-hero .dm-nav-item:hover { background: #fff; color: var(--dm-ink); }
}
.kora-hero .dm-nav-item[aria-pressed="true"] {
  background: #fff;
  color: var(--dm-accent);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 30, 55, .08), 0 0 0 1px var(--dm-line);
}
.kora-hero .dm-count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--dm-soft);
  color: var(--dm-accent);
  font: 600 11px/1.5 Inter, sans-serif;
  text-align: center;
}
.kora-hero .dm-sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 6px 0;
  border-top: 1px solid var(--dm-line);
  font: 600 11px/1.3 Inter, sans-serif;
  color: var(--dm-text);
}
.kora-hero .dm-sidebar-bottom small { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; color: var(--dm-muted); }
.kora-hero .dm-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--dm-soft);
  color: var(--dm-accent);
  font: 700 11px/1 Inter, sans-serif;
}
.kora-hero .dm-avatar-sm { width: 26px; height: 26px; }

/* ── Corps (défilable uniquement par programme : navigation latérale) ── */
.kora-hero .dm-body {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.kora-hero .dm-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: #fff; /* pas de backdrop-filter ici : imbriqué dans le cadre vitré, il vidait le contenu pendant le changement de fenêtre */
  border-bottom: 1px solid var(--dm-line);
}
.kora-hero .dm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
  padding: 6px 10px;
  border: 1px solid var(--dm-line);
  border-radius: 8px;
  background: var(--dm-bg);
  color: var(--dm-muted);
}
.kora-hero .dm-search > svg { width: 14px; height: 14px; flex: none; }
.kora-hero .dm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 400 11px/1.4 Inter, sans-serif;
  color: var(--dm-text);
}
.kora-hero .dm-search:focus-within { border-color: var(--dm-accent); box-shadow: 0 0 0 3px var(--dm-soft); background: #fff; }
.kora-hero .dm-search kbd {
  padding: 1px 5px;
  border: 1px solid var(--dm-line);
  border-radius: 5px;
  background: #fff;
  font: 500 11px/1.6 Inter, sans-serif;
  color: var(--dm-muted);
}
.kora-hero .dm-topbar-right { display: flex; align-items: center; gap: 12px; }
.kora-hero .dm-bell { position: relative; display: grid; place-items: center; width: 28px; height: 28px; color: var(--dm-muted); }
.kora-hero .dm-bell svg { width: 16px; height: 16px; }
.kora-hero .dm-bell i { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--dm-bad); box-shadow: 0 0 0 2px #fff; }
.kora-hero .dm-content { padding: 16px 20px 20px; }
.kora-hero .dm-mobile-toolbar { display: none; }

.kora-hero .dm-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.kora-hero .dm-header p { margin-bottom: 5px; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--dm-muted); }
.kora-hero .dm-header h2 {
  margin-bottom: 5px;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -.04em;
  color: var(--dm-text);
}
.kora-hero .dm-header div > span { font-size: 11px; line-height: 1.5; color: var(--dm-muted); }
.kora-hero .dm-header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.kora-hero .dm-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--dm-line);
  border-radius: 8px;
  background: #fff;
  font: 500 11px/1.3 Inter, sans-serif;
  color: var(--dm-text);
  white-space: nowrap;
}
.kora-hero .dm-period svg { width: 13px; height: 13px; color: var(--dm-muted); }
.kora-hero .dm-export {
  min-height: 30px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--dm-accent);
  color: #fff;
  font: 600 11px/1.3 Inter, sans-serif;
  cursor: pointer;
  transition: background-color .16s cubic-bezier(.23, 1, .32, 1), transform .16s cubic-bezier(.23, 1, .32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .kora-hero .dm-export:hover { background: color-mix(in srgb, var(--dm-accent) 88%, #000); }
}
.kora-hero .dm-export:active { transform: scale(.97); }

/* ── Indicateurs ──────────────────────────────────────────────────────── */
.kora-hero .dm-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.kora-hero .dm-kpis > div {
  position: relative;
  min-width: 0;
  padding: 12px 14px 12px;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 35, 60, .04);
}
.kora-hero .dm-kpis > div > span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 500; color: var(--dm-muted); }
.kora-hero .dm-kpis strong {
  display: block;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--dm-text);
}
.kora-hero .dm-kpis strong small { margin-left: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--dm-muted); }
.kora-hero .dm-kpis p { margin-top: 6px; font-size: 11px; line-height: 1.45; color: var(--dm-muted); }
.kora-hero .dm-delta { font-weight: 600; }
.kora-hero .dm-up { color: var(--dm-good); }
.kora-hero .dm-warn { color: var(--dm-warn); }
.kora-hero .dm-flat { color: var(--dm-muted); }
.kora-hero .dm-spark { position: absolute; top: 12px; right: 12px; width: 52px; height: 18px; overflow: visible; }
.kora-hero .dm-spark .dm-chart-line { stroke-width: 1.6; }

/* ── Panneaux ─────────────────────────────────────────────────────────── */
.kora-hero .dm-commercial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.kora-hero .dm-main-column, .kora-hero .dm-aside-column { display: grid; gap: 12px; min-width: 0; align-content: start; }
.kora-hero .dm-panel {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 35, 60, .04);
}
.kora-hero .dm-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 16px; }
.kora-hero .dm-panel-heading h3 { font: 650 12px/1.4 Inter, sans-serif; letter-spacing: -.015em; color: var(--dm-text); }
.kora-hero .dm-panel-heading > span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.5; color: var(--dm-muted); text-align: right; }

/* Pipeline : barre empilée + étapes */
.kora-hero [data-demo-bar] { transform-origin: left center; }
.kora-hero .dm-stack { display: flex; gap: 3px; height: 10px; margin-bottom: 12px; }
.kora-hero .dm-stack i { display: block; width: var(--fill); height: 100%; border-radius: 99px; }
.kora-hero .dm-s1, .kora-hero .dm-st1 u { background: #a9c6fb; }
.kora-hero .dm-s2, .kora-hero .dm-st2 u { background: #6f9cf3; }
.kora-hero .dm-s3, .kora-hero .dm-st3 u { background: #2563eb; }
.kora-hero .dm-s4, .kora-hero .dm-st4 u { background: var(--dm-good); }
.kora-hero .dm-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kora-hero .dm-pipeline > div { min-width: 0; }
.kora-hero .dm-pipeline span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dm-muted); white-space: nowrap; }
.kora-hero .dm-pipeline u { display: block; width: 7px; height: 7px; border-radius: 2px; flex: none; }
.kora-hero .dm-pipeline b { margin-left: auto; font-weight: 600; font-size: 11px; padding: 0 5px; border-radius: 99px; background: var(--dm-bg); color: var(--dm-text); }
.kora-hero .dm-pipeline strong { display: block; margin-top: 5px; font-size: 13px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
.kora-hero .dm-pipeline strong small { font-size: 11px; font-weight: 500; color: var(--dm-muted); }

/* Courbes / barres */
.kora-hero .dm-line-plot { position: relative; padding-left: 32px; }
.kora-hero .dm-line-plot svg { display: block; width: 100%; height: 118px; overflow: visible; }
.kora-hero .dm-grid-lines { stroke: #edf0f5; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.kora-hero .dm-goal-line { stroke: #f0b429; stroke-width: 1; stroke-dasharray: 4 4; fill: none; vector-effect: non-scaling-stroke; }
.kora-hero .dm-bars rect { fill: var(--dm-soft-2); transform-box: fill-box; transform-origin: 50% 100%; }
.kora-hero .dm-bars .dm-bar-hi { fill: var(--dm-accent); }
.kora-hero .dm-chart-line {
  fill: none;
  stroke: var(--dm-accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.kora-hero .dm-line-plot .dm-chart-line { stroke: var(--dm-ink); stroke-width: 1.6; opacity: .55; }
.kora-hero .dm-y-axis { position: absolute; left: 0; top: 2px; bottom: 22px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--dm-muted); }
.kora-hero .dm-x-axis { display: flex; justify-content: space-around; margin-top: 6px; font-size: 11px; color: var(--dm-muted); }
.kora-hero .dm-bar-tip {
  position: absolute;
  right: 1.2%;
  top: -3px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--dm-ink);
  color: #fff;
  font: 600 11px/1.5 Inter, sans-serif;
}
.kora-hero .dm-key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-left: 4px; }
.kora-hero .dm-key-bar { background: var(--dm-accent); }
.kora-hero .dm-key-goal { height: 0; border-top: 2px dashed #f0b429; border-radius: 0; width: 10px; }

/* Objectif / budget : anneau */
.kora-hero .dm-goal-content { display: flex; align-items: center; gap: 16px; min-width: 0; }
.kora-hero .dm-donut { position: relative; width: 96px; flex: 0 0 96px; }
.kora-hero .dm-donut svg { display: block; width: 100%; height: auto; }
.kora-hero .dm-donut circle { fill: none; stroke: #edf0f5; stroke-width: 11; }
.kora-hero .dm-donut [data-demo-donut] { stroke-linecap: round; }
.kora-hero .dm-donut > strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 25px; font-weight: 650; letter-spacing: -.05em; }
.kora-hero .dm-donut small { margin: 6px 0 0 2px; font-size: 11px; font-weight: 500; }
.kora-hero .dm-goal-content p { min-width: 0; font-size: 11px; line-height: 1.5; }
.kora-hero .dm-goal-content p b { display: block; font-size: 13px; font-weight: 650; letter-spacing: -.02em; }
.kora-hero .dm-goal-content p span { display: block; margin-top: 4px; font-size: 11px; color: var(--dm-muted); }
.kora-hero .dm-pill { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 99px; font: 600 11px/1.6 Inter, sans-serif; font-style: normal; }
.kora-hero .dm-pill-ok { background: var(--dm-good-soft); color: var(--dm-good); }

/* Agenda */
.kora-hero .dm-agenda, .kora-hero .dm-alerts ul, .kora-hero .dm-finance-list { list-style: none; margin: 0; padding: 0; }
.kora-hero .dm-agenda li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #eef1f5; }
.kora-hero .dm-agenda li:first-child { border-top: 0; padding-top: 0; }
.kora-hero .dm-agenda time { min-width: 34px; font-size: 11px; font-weight: 600; color: var(--dm-muted); }
.kora-hero .dm-agenda strong, .kora-hero .dm-alerts strong { display: block; font-size: 11px; font-weight: 600; line-height: 1.4; }
.kora-hero .dm-agenda div > span, .kora-hero .dm-alerts div > span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--dm-muted); }
.kora-hero .dm-tag { margin-left: auto; padding: 2px 8px; border-radius: 99px; font: 600 11px/1.6 Inter, sans-serif; white-space: nowrap; }
.kora-hero .dm-tag-blue { background: var(--dm-soft); color: var(--dm-accent); }
.kora-hero .dm-tag-amber { background: var(--dm-warn-soft); color: var(--dm-warn); }

/* Registre / tableau */
.kora-hero .dm-register { margin-bottom: 12px; }
.kora-hero .dm-filter { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dm-muted); }
.kora-hero .dm-filter select {
  min-height: 30px;
  padding: 5px 26px 5px 9px;
  border: 1px solid var(--dm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--dm-text);
  font: 500 11px Inter, sans-serif;
  cursor: pointer;
}
.kora-hero .dm-table-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c9d1dd #f3f5f8; }
.kora-hero .dm-table-scroll table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; white-space: nowrap; }
.kora-hero .dm-table-scroll th, .kora-hero .dm-table-scroll td { padding: 9px 10px; border-bottom: 1px solid #eef1f5; font-weight: 400; vertical-align: middle; }
.kora-hero .dm-table-scroll thead th { padding-top: 7px; padding-bottom: 7px; background: var(--dm-bg); font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--dm-muted); }
.kora-hero .dm-table-scroll thead th:first-child { border-radius: 8px 0 0 8px; }
.kora-hero .dm-table-scroll thead th:last-child { border-radius: 0 8px 8px 0; }
.kora-hero .dm-table-scroll tbody th { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--dm-text); }
.kora-hero .dm-table-scroll tbody th small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--dm-muted); }
.kora-hero .dm-table-scroll tbody tr { transition: background-color .15s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) {
  .kora-hero .dm-table-scroll tbody tr:hover { background: #f8fafc; }
}
.kora-hero .dm-table-scroll tbody tr[hidden] { display: none; }
.kora-hero .dm-table-scroll tbody tr[data-demo-row="alerte"] { background: #fffaf0; }
.kora-hero .dm-num { text-align: right; }
.kora-hero .dm-table-scroll td.dm-num { font-weight: 600; }
.kora-hero .dm-logo {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px;
  font: 700 11px/1 Inter, sans-serif; font-style: normal; background: #e6f1ff; color: #1d4ea0;
}
.kora-hero .dm-l2 { background: #dff5ee; color: #11695a; }
.kora-hero .dm-l3 { background: #fff0d6; color: #8a5a0c; }
.kora-hero .dm-l4 { background: #fde8e8; color: #a02727; }
.kora-hero .dm-l5 { background: #e8edf3; color: #3c4b5f; }
.kora-hero .dm-app[data-product="terrava"] .dm-logo { background: var(--dm-soft); color: var(--dm-accent); }
.kora-hero .dm-app[data-product="terrava"] .dm-l2 { background: var(--dm-warn-soft); color: var(--dm-warn); }
.kora-hero .dm-thumb { display: block; flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 30, 55, .1); background: var(--dm-soft); }
.kora-hero .dm-photo { position: relative; margin: 12px 0 0; border-radius: 10px; overflow: hidden; background: var(--dm-soft); }
.kora-hero .dm-photo img { display: block; width: 100%; height: 84px; object-fit: cover; object-position: 50% 62%; }
.kora-hero .dm-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 14px 10px 6px; background: linear-gradient(to top, rgba(20, 14, 8, .72), transparent); color: #fff; font: 400 11px/1.3 Inter, sans-serif; }
.kora-hero .dm-photo figcaption b { margin-right: 4px; font-weight: 650; }
.kora-hero .dm-owner { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; background: var(--dm-soft); color: var(--dm-accent); font: 700 11px/1 Inter, sans-serif; font-style: normal; vertical-align: middle; }
.kora-hero .dm-o2 { background: #dff5ee; color: #11695a; }
.kora-hero .dm-o3 { background: #fff0d6; color: #8a5a0c; }
.kora-hero .dm-badge { display: inline-block; padding: 3px 8px; border-radius: 99px; font: 600 11px/1.5 Inter, sans-serif; white-space: nowrap; background: var(--dm-soft); color: var(--dm-accent); }
.kora-hero .dm-b1 { background: #eaf1ff; color: #3b66b8; }
.kora-hero .dm-b2 { background: #d9e6ff; color: #2c58b0; }
.kora-hero .dm-b3 { background: #c8dcff; color: #1d49a0; }
.kora-hero .dm-b4 { background: var(--dm-good-soft); color: var(--dm-good); }
.kora-hero .dm-progress { display: inline-block; width: 52px; height: 5px; margin-right: 8px; vertical-align: middle; border-radius: 99px; background: #e8edf4; overflow: hidden; }
.kora-hero .dm-progress i { display: block; width: var(--fill); height: 100%; border-radius: 99px; background: var(--dm-accent); }
.kora-hero .dm-progress-warn i { background: #e0891a; }
.kora-hero .dm-table-note { margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--dm-muted); }
.kora-hero .dm-action-status:empty { display: none; }
.kora-hero .dm-action-status { margin: 8px 0 0; font-size: 11px; font-weight: 500; color: var(--dm-good); }

/* ── Terrava : planning, budget, alertes ─────────────────────────────── */
.kora-hero .dm-btp-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, 1fr) minmax(200px, .9fr); gap: 12px; margin-bottom: 12px; }
.kora-hero .dm-gantt-head { display: grid; grid-template-columns: 92px repeat(4, 1fr); gap: 0; margin-bottom: 8px; font-size: 11px; color: var(--dm-muted); white-space: nowrap; }
.kora-hero .dm-gantt-rows { position: relative; }
.kora-hero .dm-gantt-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; margin-top: 8px; }
.kora-hero .dm-gantt-row > span { font-size: 11px; font-weight: 600; line-height: 1.3; }
.kora-hero .dm-gantt-row small { display: block; font-size: 11px; font-weight: 400; color: var(--dm-muted); }
.kora-hero .dm-gantt-row > div {
  height: 26px;
  border-radius: 7px;
  background: repeating-linear-gradient(to right, #f6f8fb 0, #f6f8fb calc(25% - 1px), #e6eaf0 calc(25% - 1px), #e6eaf0 25%);
}
.kora-hero .dm-gbar { position: relative; display: block; width: var(--w); height: 26px; margin-left: var(--start); border-radius: 7px; background: var(--dm-accent); overflow: hidden; }
.kora-hero .dm-gbar > i { position: absolute; inset: 0 auto 0 0; width: var(--fill); background: rgba(61, 33, 8, .3); }
.kora-hero .dm-gbar em { position: relative; z-index: 1; display: block; padding: 0 8px; font: 600 11px/26px Inter, sans-serif; font-style: normal; color: #fff; white-space: nowrap; }
.kora-hero .dm-gbar-warn { background: #d97706; }
.kora-hero .dm-today { position: absolute; z-index: 2; top: -4px; bottom: -4px; left: calc(92px + (100% - 92px) * .07); width: 0; border-left: 1.5px solid var(--dm-bad); pointer-events: none; }
.kora-hero .dm-today b { position: absolute; bottom: -15px; left: 0; transform: translateX(-50%); padding: 1px 6px; border-radius: 5px; background: var(--dm-bad); color: #fff; font: 600 11px/1.5 Inter, sans-serif; white-space: nowrap; }
.kora-hero .dm-gantt-rows { padding: 2px 0 14px; }
.kora-hero .dm-legend { min-width: 0; }
.kora-hero .dm-legend > div + div { margin-top: 11px; }
.kora-hero .dm-legend dt { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 11px; color: var(--dm-muted); }
.kora-hero .dm-legend dd { font-size: 11px; font-weight: 650; white-space: nowrap; letter-spacing: -.01em; }
.kora-hero .dm-legend i { display: block; width: 7px; height: 7px; border-radius: 2px; background: var(--dm-accent); }
.kora-hero .dm-legend > div + div i { background: var(--dm-soft-2); }
.kora-hero .dm-cats { display: flex; gap: 3px; height: 8px; margin: 14px 0 9px; }
.kora-hero .dm-cats i { display: block; width: var(--fill); height: 100%; border-radius: 99px; }
.kora-hero .dm-c1 { background: #c2570c; }
.kora-hero .dm-c2 { background: #e08a3c; }
.kora-hero .dm-c3 { background: #f2b87a; }
.kora-hero .dm-c4 { background: #f9dbbd; }
.kora-hero .dm-cat-list { display: grid; grid-template-columns: 1fr; gap: 4px; list-style: none; margin: 0; padding: 0; }
.kora-hero .dm-cat-list li { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dm-muted); background: none; white-space: nowrap; }
.kora-hero .dm-cat-list u { display: block; width: 7px; height: 7px; border-radius: 2px; background: currentColor; flex: none; }
.kora-hero .dm-cat-list li.dm-c1 u { background: #c2570c; }
.kora-hero .dm-cat-list li.dm-c2 u { background: #e08a3c; }
.kora-hero .dm-cat-list li.dm-c3 u { background: #f2b87a; }
.kora-hero .dm-cat-list li.dm-c4 u { background: #f9dbbd; }
.kora-hero .dm-cat-list b { margin-left: auto; font-weight: 650; color: var(--dm-text); }
.kora-hero .dm-alerts li { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.kora-hero .dm-alerts li:first-child { margin-top: 0; }
.kora-hero .dm-alerts li > b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.kora-hero .dm-al-red > b { background: var(--dm-bad-soft); color: var(--dm-bad); }
.kora-hero .dm-al-blue > b { background: #e6f1ff; color: #1d4ea0; }
.kora-hero .dm-al-amber > b { background: var(--dm-warn-soft); color: var(--dm-warn); }
.kora-hero .dm-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kora-hero .dm-finance-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #eef1f5; font-size: 11px; font-weight: 500; }
.kora-hero .dm-finance-list li:first-child { border-top: 0; padding-top: 0; }
.kora-hero .dm-finance-list small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--dm-muted); line-height: 1.4; }
.kora-hero .dm-finance-list strong { font-size: 11px; font-weight: 650; white-space: nowrap; }
.kora-hero .dm-finance-list strong small { display: inline; margin: 0 0 0 3px; font-size: inherit; font-weight: inherit; color: inherit; }

.kora-hero .dm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kora-hero .dm-app :focus-visible { outline: 2px solid var(--dm-accent); outline-offset: 2px; }
/* Repérage après navigation : anneau en surcouche, animé en opacity uniquement */
.kora-hero .dm-flash { position: relative; }
.kora-hero .dm-flash::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 3px var(--dm-soft-2); opacity: 0; animation: dm-flash .9s cubic-bezier(.23, 1, .32, 1); }
@keyframes dm-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .kora-hero .dm-flash::after { animation: none; }
  .kora-hero .dm-nav-item, .kora-hero .dm-export, .kora-hero .dm-table-scroll tbody tr { transition: none; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1250px) {
  .kora-hero .dm-app { grid-template-columns: 150px minmax(0, 1fr); }
  .kora-hero .dm-content { padding: 14px 16px 16px; }
  .kora-hero .dm-topbar { padding: 9px 16px; }
  .kora-hero .dm-kpis strong { font-size: 17px; }
  .kora-hero .dm-kpis strong small { display: block; margin: 2px 0 0; }
  .kora-hero .dm-btp-grid { grid-template-columns: 1.3fr 1fr; }
  .kora-hero .dm-alerts { grid-column: 1 / -1; }
  .kora-hero .dm-alerts ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .kora-hero .dm-alerts li { margin-top: 0; }
  .kora-hero .dm-spark { display: none; }
}
/* Carte statique (une seule fenêtre) : plus de défilement programmatique à limiter */
@media (max-width: 1100px) {
  .kora-hero .dm-body { overflow: visible; }
  .kora-hero .dm-topbar { position: static; }
}
@media (max-width: 950px) {
  .kora-hero .dm-app { display: block; }
  .kora-hero .dm-sidebar, .kora-hero .dm-topbar { display: none; }
  .kora-hero .dm-mobile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--dm-line); }
  .kora-hero .dm-mobile-toolbar .dm-brand { font-size: 17px; }
  .kora-hero .dm-mobile-toolbar .dm-brand > svg { width: 28px; height: 28px; min-width: 28px; }
  .kora-hero .dm-mobile-toolbar select { max-width: 150px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--dm-line); border-radius: 8px; background: #fff; color: var(--dm-ink); font: 500 11px Inter, sans-serif; }
  .kora-hero .dm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kora-hero .dm-kpis strong { font-size: 21px; }
  .kora-hero .dm-kpis strong small { display: inline; }
  .kora-hero .dm-spark { display: block; }
  .kora-hero .dm-commercial-grid, .kora-hero .dm-btp-grid { grid-template-columns: minmax(0, 1fr); }
  .kora-hero .dm-filter select { min-height: 44px; }
  .kora-hero .dm-table-scroll table { font-size: 11px; }
  .kora-hero .dm-table-scroll th, .kora-hero .dm-table-scroll td { padding: 12px; }
}
@media (max-width: 700px) {
  .kora-hero .dm-content { padding: 14px; }
  .kora-hero .dm-header { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .kora-hero .dm-header h2 { font-size: 23px; }
  .kora-hero .dm-header div > span { font-size: 12px; }
  .kora-hero .dm-header-actions { flex-wrap: wrap; }
  .kora-hero .dm-export { min-height: 44px; }
  .kora-hero .dm-period { font-size: 11px; }
  .kora-hero .dm-kpis > div { padding: 12px; }
  .kora-hero .dm-kpis strong { font-size: 19px; }
  .kora-hero .dm-kpis strong small { display: block; }
  .kora-hero .dm-kpis p { font-size: 11px; }
  .kora-hero .dm-kpis > div > span { font-size: 11px; }
  .kora-hero .dm-spark { display: none; }
  .kora-hero .dm-bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .kora-hero .dm-panel { padding: 14px; }
  .kora-hero .dm-panel-heading { flex-wrap: wrap; gap: 8px; }
  .kora-hero .dm-panel-heading h3 { font-size: 13px; }
  .kora-hero .dm-panel-heading > span { font-size: 11px; text-align: left; }
  .kora-hero .dm-pipeline { grid-template-columns: 1fr 1fr; gap: 14px; }
  .kora-hero .dm-pipeline span { font-size: 11px; }
  .kora-hero .dm-pipeline strong { font-size: 15px; }
  .kora-hero .dm-line-plot svg { height: 130px; }
  .kora-hero .dm-x-axis, .kora-hero .dm-y-axis { font-size: 11px; }
  .kora-hero .dm-goal-content p b { font-size: 13px; }
  .kora-hero .dm-goal-content p span { font-size: 11px; }
  .kora-hero .dm-agenda li { padding: 12px 0; gap: 8px; }
  .kora-hero .dm-agenda strong, .kora-hero .dm-alerts strong { font-size: 11px; }
  .kora-hero .dm-agenda div > span, .kora-hero .dm-alerts div > span { font-size: 11px; }
  .kora-hero .dm-tag { font-size: 11px; }
  .kora-hero .dm-filter { width: 100%; justify-content: space-between; font-size: 11px; }
  .kora-hero .dm-filter select { font-size: 11px; max-width: 85%; }
  .kora-hero .dm-register .dm-table-note { font-size: 11px; }
  .kora-hero .dm-alerts ul { display: block; }
  .kora-hero .dm-alerts li { margin-top: 14px; }
  .kora-hero .dm-btp-grid .dm-alerts { grid-column: auto; }
  .kora-hero .dm-gantt-head { grid-template-columns: 74px repeat(4, 1fr); }
  .kora-hero .dm-gantt-row { grid-template-columns: 74px minmax(0, 1fr); }
  .kora-hero .dm-today { left: calc(74px + (100% - 74px) * .07); }
  .kora-hero .dm-gantt-row > span { font-size: 11px; }
  .kora-hero .dm-finance-list li { flex-wrap: wrap; gap: 6px; font-size: 11px; padding: 12px 0; }
  .kora-hero .dm-finance-list small { font-size: 11px; }
  .kora-hero .dm-finance-list strong { font-size: 12px; }
  .kora-hero .dm-legend dt { font-size: 11px; }
  .kora-hero .dm-legend dd { font-size: 12px; }
}
