/* ALIVE - composition propre à chaque vue (le chrome et les briques partagées
   sont dans app-shell.css). Une section par écran de maquette. */

/* ════════════════════ Accueil ════════════════════ */

.hero-card {
  position: relative;
  display: flex; align-items: stretch; gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  margin: 0 0 20px;
  overflow: hidden;
}
.hero-card-main { flex: 1; min-width: 0; }
.hero-brand { display: flex; align-items: center; gap: 14px; }
.hero-mark { display: inline-flex; }
.hero-mark img { height: 56px; width: auto; display: block; }
.hero-name { margin: 0; font-size: 46px; font-weight: 800; letter-spacing: .01em; color: var(--navy); line-height: 1; }
.hero-sub { margin: 12px 0 0; font-size: 21px; font-weight: 700; color: var(--alive); }
.hero-lead { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.hero-steps { display: flex; flex-wrap: wrap; gap: 30px 44px; margin: 24px 0 0; }
.hero-step { display: flex; align-items: center; gap: 12px; }
.hero-step-ic {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--alive-soft); color: var(--alive);
}
.hero-step-ic.is-green { background: rgba(24,169,87,.12); color: var(--green); }
.hero-step-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-step-h { margin: 0; font-size: 14px; font-weight: 700; color: var(--navy); }
.hero-step-p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); max-width: 16ch; }

/* Illustration isométrique (/assets/alive-hero.png), conforme à la maquette
   (plus grande que l'ancienne version). Débordement vertical autorisé pour
   gagner en taille sans étirer la carte. */
.hero-card-art {
  flex: none; width: 500px; align-self: stretch;
  margin: -18px -10px -18px 0;
  background: url("/assets/alive-hero.png") center right / contain no-repeat;
}

/* Grille principale : (KPIs + dernières activités) | accès rapides */
.accueil-grid { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 20px; align-items: start; }
.accueil-main { min-width: 0; }
.accueil-main .kpi-row { grid-template-columns: repeat(4, 1fr); }
.accueil-main .panel { margin-bottom: 0; }

/* Liste d'activités */
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity {
  display: grid; grid-template-columns: 36px 1fr auto auto;
  align-items: center; column-gap: 14px;
  padding: 13px 4px; border-bottom: 1px solid var(--line-2);
}
.activity:last-child { border-bottom: none; padding-bottom: 2px; }
.activity:first-child { padding-top: 2px; }
.activity-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.activity-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.activity-ic.is-ok { background: rgba(24,169,87,.12); color: var(--green); }
.activity-ic.is-alive { background: rgba(37,99,235,.10); color: var(--alive); }
.activity-ic.is-warn { background: rgba(224,123,26,.13); color: var(--warn); }
.activity-h { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.activity-p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.activity-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* Accès rapides (colonne droite) */
.quick-card { align-self: stretch; }
.quick-row {
  display: grid; grid-template-columns: 38px 1fr 16px;
  align-items: center; column-gap: 12px;
  padding: 11px 6px; border-radius: 10px; text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.quick-row:last-child { border-bottom: none; }
.quick-row:hover { background: var(--bg); }
.quick-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.quick-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick-h { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.quick-p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.quick-chev { width: 16px; height: 16px; fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) {
  .accueil-grid { grid-template-columns: 1fr; }
  .hero-card-art { display: none; }
  .accueil-main .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════ Briques partagées (Activités, Scénarios, PCA…) ════════════════════ */

/* Rangée de 5 cartes KPI (icône ronde à droite) */
.kpi-row-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0 0 20px; }
.kpi-lg { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kpi-lg-txt { min-width: 0; }
.kpi-lg-label { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi-lg-value { margin: 8px 0 0; font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.kpi-lg-value.is-warn { color: var(--warn); }
.kpi-lg-sub { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.kpi-lg .kpi-trend { margin-top: 10px; }
.kpi-lg-ic { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.kpi-lg-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Grille 3 colonnes (matrice | top5 | répartition) */
.grid-3 { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr) minmax(0,0.95fr); gap: 18px; margin: 0 0 20px; align-items: start; }
.grid-3 > .panel { margin: 0; height: 100%; }

/* Matrice / heatmap (impact x probabilité) */
.heat { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.heat-ylab { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 10.5px; font-weight: 600; color: var(--muted); grid-row: 1; }
.heat-grid { grid-column: 2; display: grid; grid-template-columns: 64px repeat(5, 1fr); gap: 5px; align-items: stretch; }
.heat-row-h { display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 11px; color: var(--muted); }
.heat-cell { position: relative; aspect-ratio: 1.5 / 1; border-radius: 6px; min-height: 30px; }
.heat-cell.l-green  { background: #d6efdd; }
.heat-cell.l-yellow { background: #fbf0c4; }
.heat-cell.l-orange { background: #fbdcc0; }
.heat-cell.l-red    { background: #f7cccd; }
.heat-bubble {
  position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--alive); color: #fff; font-size: 12px; font-weight: 700; font-style: normal;
  display: grid; place-items: center; box-shadow: 0 4px 10px -3px rgba(37,99,235,.6);
}
.heat-corner { grid-column: 1; }
.heat-col-h { font-size: 9.5px; color: var(--muted); text-align: center; line-height: 1.2; padding-top: 4px; }
.heat-xlab { margin: 8px 0 0; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.risk-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; }
.risk-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }

/* Top 5 (liste classée) */
.top5 { list-style: none; margin: 0; padding: 0; }
.top5-row { display: grid; grid-template-columns: 4px 1fr auto auto auto; align-items: center; column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.top5-row:last-child { border-bottom: none; }
.top5-rank { width: 4px; align-self: stretch; border-radius: 3px; background: var(--c, var(--alive)); }
.top5-body { min-width: 0; }
.top5-h { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.top5-p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.top5-kv { text-align: right; }
.top5-kv span { display: block; font-size: 10.5px; color: var(--muted-2); }
.top5-kv b { font-size: 13px; color: var(--navy); }
.panel-link-center { display: flex; justify-content: center; margin-top: 14px; }

/* Donut (conic-gradient) + légende */
.donut-block { display: flex; align-items: center; gap: 18px; }
.donut { width: 120px; height: 120px; border-radius: 50%; flex: none; background: var(--g); display: grid; place-items: center; }
.donut-hole { width: 78px; height: 78px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.donut-hole b { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.donut-hole span { font-size: 10.5px; color: var(--muted); }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink); padding: 3px 0; }
.donut-legend li b { margin-left: auto; color: var(--muted); font-weight: 600; }

/* Mini graphe ligne (évolution) */
.chart-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.chart-title { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.chart-pill { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; }
.linechart { width: 100%; height: 96px; display: block; }
.linechart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart-xaxis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--muted-2); }

/* Barre d'outils de tableau (recherche + filtres) */
.toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.search-input { width: 100%; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0 12px 0 36px; font: inherit; font-size: 13px; color: var(--ink); }
.search-input::placeholder { color: var(--muted-2); }
.search-input:focus { outline: none; border-color: #c9d3dc; }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* Propriétaire (avatar + nom) */
.owner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ava { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }

/* Barre de couverture */
.cover { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cover-bar { width: 70px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cover-bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); }

/* Sous-libellé en cellule */
.cell-sub { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.data-table td .cell-lead span br + .cell-sub { display: inline-block; margin-top: 2px; }

/* Variantes Scénarios : icône carrée arrondie + delta + teal + notes */
.kpi-lg-ic.is-square { border-radius: 11px; }
.n-teal { background: rgba(20,184,166,.12); color: #0f9b8e; }
.kpi-lg-delta { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi-lg-delta.is-up { color: var(--ok); }

.heat-note { display: flex; align-items: flex-start; gap: 7px; margin: 14px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.heat-note .ic { width: 14px; height: 14px; flex: none; margin-top: 1px; stroke: var(--muted-2); }

.note-card { display: flex; gap: 12px; margin: 18px 0 0; padding: 14px; background: #fff8ec; border: 1px solid #f5e2c0; border-radius: 12px; }
.note-ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: rgba(224,123,26,.14); color: var(--warn); }
.note-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.note-h { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.note-p { margin: 3px 0 8px; font-size: 12px; line-height: 1.45; color: var(--muted); }

.cell-2l { line-height: 1.35; }

/* ════════════════════ PCA & PRI ════════════════════ */

.cov-top { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr 1fr; gap: 16px; margin: 0 0 20px; align-items: stretch; }
.cov-top > .panel { margin: 0; }
.cov-main { display: flex; flex-direction: column; }
.cov-main .donut-block { flex: 1; }
.donut-lg { width: 150px; height: 150px; }
.donut-lg .donut-hole { width: 102px; height: 102px; }
.donut-lg .donut-hole b { font-size: 28px; }
.donut-lg .donut-hole span { font-size: 10px; max-width: 12ch; line-height: 1.2; }
.cov-main .panel-link { margin-top: 14px; }

.stat-card { display: flex; flex-direction: column; }
.stat-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.stat-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat-label { margin: 12px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat-value { margin: 8px 0 0; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-sub { margin: 5px 0 12px; font-size: 12px; color: var(--muted); }
.stat-card .panel-link { margin-top: auto; }

/* Barres horizontales (couverture par type) */
.tabs-mini { display: inline-flex; gap: 4px; background: var(--bg); border-radius: 9px; padding: 3px; margin: 0 0 14px; }
.tabm { border: 0; background: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 16px; border-radius: 7px; }
.tabm.is-active { background: #fff; color: var(--alive); box-shadow: 0 1px 3px rgba(20,37,58,.12); }
.barlist { list-style: none; margin: 0 0 14px; padding: 0; }
.barlist li { display: grid; grid-template-columns: 130px 1fr 38px; align-items: center; gap: 12px; margin-bottom: 13px; }
.bl-label { font-size: 12.5px; color: var(--ink); }
.bl-track { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bl-track i { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.bl-val { font-size: 12.5px; font-weight: 700; color: var(--navy); text-align: right; }

/* Barres segmentées (couverture par criticité) */
.segbars { list-style: none; margin: 0 0 8px; padding: 0; }
.segbars li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.sb-label { font-size: 12.5px; color: var(--ink); }
.sb-track { display: flex; height: 16px; border-radius: 5px; overflow: hidden; background: var(--line); }
.sb-track i { display: block; height: 100%; }
.sb-axis { display: flex; justify-content: space-between; margin: 0 0 0 76px; font-size: 10.5px; color: var(--muted-2); }
.seg-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; }
.seg-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }

/* Jauge semi-circulaire (préparation) */
.gauge-block { position: relative; width: 200px; margin: 4px auto 6px; text-align: center; }
.gauge { width: 200px; height: 124px; display: block; }
.gauge-txt { position: absolute; left: 0; right: 0; bottom: 6px; }
.gauge-txt b { display: block; font-size: 26px; font-weight: 800; color: var(--alive); line-height: 1; }
.gauge-txt span { font-size: 11.5px; color: var(--muted); }
.prep-list { list-style: none; margin: 6px 0 14px; padding: 0; }
.prep-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink); }
.prep-list li b { margin-left: auto; font-size: 13px; color: var(--navy); }
.prep-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.prep-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Points d'attention */
.attn-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.attn-card { display: flex; gap: 11px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fcfdfe; }
.attn-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; }
.attn-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.attn-card.is-red    { background: #fdf3f3; border-color: #f6d6d7; } .attn-card.is-red .attn-ic    { background: rgba(229,72,77,.13); color: var(--danger); }
.attn-card.is-amber  { background: #fdf8ef; border-color: #f3e3c5; } .attn-card.is-amber .attn-ic  { background: rgba(224,123,26,.14); color: var(--warn); }
.attn-card.is-violet { background: #f8f6fd; border-color: #e2dbf6; } .attn-card.is-violet .attn-ic { background: rgba(124,92,236,.14); color: #7c5cec; }
.attn-card.is-blue   { background: #f2f6fe; border-color: #d4e2fb; } .attn-card.is-blue .attn-ic   { background: rgba(37,99,235,.12); color: var(--alive); }
.attn-h { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.attn-p { margin: 4px 0 8px; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Bas PCA : tests (chart) + table */
.pca-bottom { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 20px; }
.pca-bottom > .panel { margin: 0; }
.tests-grid { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 18px; align-items: center; }
.linechart-tall { height: 150px; }
.tests-legend { list-style: none; margin: 0; padding: 0; }
.tests-legend li { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.tests-legend li:last-child { border-bottom: none; }
.tl-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.tl-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-name { font-size: 12.5px; color: var(--ink); }
.tests-legend li b { font-size: 14px; color: var(--navy); }
.tl-pct { font-size: 11.5px; color: var(--muted); min-width: 32px; text-align: right; }

/* ════════════════════ Plans ════════════════════ */

.plans-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr); gap: 18px; margin: 0 0 20px; align-items: stretch; }
.plans-top > .panel { margin: 0; }

.lib-card { display: flex; flex-direction: column; }
.lib-head { display: flex; gap: 14px; }
.lib-fold { flex: none; display: grid; place-items: center; }
.lib-fold img { width: 76px; height: auto; display: block; }
.lib-h { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.lib-p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lib-bullets { list-style: none; margin: 16px 0 0; padding: 0; }
.lib-bullets li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink); }
.lib-bullets .ic { width: 17px; height: 17px; stroke: var(--alive); }

.ov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ov-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 0; }
.ov-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 4px; }
.ov-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ov-num { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; }
.ov-lab { font-size: 12px; color: var(--muted); }
.ov-delta { font-size: 11.5px; color: var(--muted-2); font-weight: 600; }
.ov-delta.is-up { color: var(--ok); }

.revlist { list-style: none; margin: 0 0 14px; padding: 0; }
.revlist li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.revlist li:last-child { border-bottom: none; }
.rev-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.rev-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rev-h { margin: 0; font-size: 13px; font-weight: 600; color: var(--navy); }
.rev-p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

.badge-ico { gap: 5px; }
.badge-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cell-sub.is-red { color: #c0383c; }
.cell-sub.is-amber { color: #b45f12; }

/* ════════════════════ Dépendances ════════════════════ */

.tabpane[hidden] { display: none; }
.dep-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
.dep-layout > .panel { margin: 0; }
.dep-side { display: flex; flex-direction: column; gap: 18px; }
.dep-side > .panel { margin: 0; }
.vh-btn-sm { height: 32px; padding: 0 11px; font-size: 12px; }

/* Barre d'outils (graphe + matrice) */
.graph-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.glegend { display: flex; align-items: center; gap: 7px 14px; flex-wrap: wrap; }
.glegend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.gl-arrow { position: relative; padding-left: 20px; }
.gl-arrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; background: var(--c); border-radius: 2px; }
.gl-arrow::after { content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); border-left: 5px solid var(--c); border-top: 3px solid transparent; border-bottom: 3px solid transparent; }

/* Scène du graphe */
.gstage { position: relative; height: 580px; border: 1px solid var(--line-2); border-radius: 12px; background: radial-gradient(circle at 50% 46%, #fff 0, #f7f9fb 100%); overflow: hidden; }
.gzoom { position: absolute; top: 14px; left: 14px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.gzoom button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--muted); }
.gzoom button:hover { background: var(--bg); color: var(--navy); }
.gzoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.glines line { stroke-width: 1.6px; vector-effect: non-scaling-stroke; opacity: .85; }

.gnode { position: absolute; transform: translate(-50%, -50%); z-index: 2; width: 150px; display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 10px 24px -14px rgba(20,37,58,.4); }
.gnode-ic { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.gnode-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gnode-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gnode-name { font-size: 11px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.gnode .badge { align-self: flex-start; padding: 1px 7px; font-size: 9.5px; }
.gnode-center { width: 168px; border: 1.5px solid rgba(37,99,235,.45); background: #f3f7ff; box-shadow: 0 14px 30px -14px rgba(37,99,235,.5); z-index: 3; }
.gnode-center .gnode-ic { width: 38px; height: 38px; }
.gnode-center .gnode-name { font-size: 12.5px; }

.gminimap { position: absolute; left: 14px; bottom: 14px; width: 130px; height: 84px; border: 1px solid #c7d2e0; border-radius: 8px; background: repeating-linear-gradient(45deg,#fff,#fff 7px,#f2f5f8 7px,#f2f5f8 8px); z-index: 5; }
.gsearch { position: absolute; left: 160px; bottom: 18px; width: 280px; max-width: 42%; z-index: 5; }
.gsearch .search-input { height: 36px; background: #fff; }
.gfull { position: absolute; right: 16px; bottom: 16px; z-index: 5; background: #fff; }

/* Panneaux latéraux dépendances */
.dep-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.dep-stats > div { display: flex; flex-direction: column; gap: 2px; }
.dep-stat-v { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.dep-stat-l { font-size: 11.5px; color: var(--muted); }
.dep-stat-s { font-size: 11px; color: var(--muted-2); }

.risk-list { list-style: none; margin: 0; padding: 0; }
.risk-list li { display: grid; grid-template-columns: 14px 1fr 16px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.risk-list li:last-child { border-bottom: none; }
.diamond { width: 11px; height: 11px; background: var(--c); transform: rotate(45deg); border-radius: 2px; }
.risk-h { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.risk-p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }

.qa-list { list-style: none; margin: 0; padding: 0; }
.qa-list li { display: flex; align-items: center; gap: 11px; padding: 9px 0; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.qa-list li:last-child { border-bottom: none; }
.qa-list .qa-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.qa-list .qa-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.linklegend { list-style: none; margin: 0; padding: 0; }
.linklegend li { display: grid; grid-template-columns: 26px auto 1fr; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; }
.linklegend li b { color: var(--navy); font-weight: 700; }
.linklegend li span { color: var(--muted); }
.ll-arrow { position: relative; height: 2px; background: var(--c); border-radius: 2px; }
.ll-arrow::after { content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%); border-left: 6px solid var(--c); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* Matrice des dépendances */
.matrix-panel { display: flex; flex-direction: column; }
.mxgrid-wrap { overflow-x: auto; }
.mxgrid { display: grid; grid-template-columns: 150px repeat(8, minmax(58px, 1fr)); gap: 5px; min-width: 660px; }
.mx-corner { font-size: 10.5px; font-weight: 600; color: var(--muted); display: flex; align-items: flex-end; padding-bottom: 6px; }
.mx-colh { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 9px; line-height: 1.2; color: var(--muted); padding-bottom: 4px; }
.mx-colh-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.mx-colh-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mx-rowh { display: flex; align-items: center; font-size: 11px; color: var(--ink); padding-right: 6px; }
.mx { position: relative; border-radius: 6px; min-height: 34px; display: grid; place-items: center; font-size: 12px; color: var(--muted-2); }
.mx.l-fort   { background: #f7cccd; }
.mx.l-moyen  { background: #fbdcc0; }
.mx.l-faible { background: #d6efdd; }
.mx.l-none   { background: #f4f6f8; }
.mx.l-self   { background: #fbfcfd; border: 1px dashed var(--line); }
.mx.l-fort::after, .mx.l-moyen::after, .mx.l-faible::after { content: "↑"; font-size: 14px; font-weight: 700; }
.mx.l-fort::after   { color: #d23b40; }
.mx.l-moyen::after  { color: #c4720f; }
.mx.l-faible::after { color: #138a47; }
.mx-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.mx-foot-l { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.mx-foot-l .ic { width: 15px; height: 15px; stroke: var(--muted-2); }

.ovm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.ovm-grid > div { display: flex; flex-direction: column; gap: 4px; }
.ovm-l { font-size: 11.5px; color: var(--muted); }
.ovm-v { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1; }
.ovm-v em { font-size: 12px; font-weight: 600; color: var(--muted); font-style: normal; }

.critpath { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.critpath-v { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1; }
.critpath-l { display: block; font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.critpath-ic { width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(24,169,87,.10); color: var(--green); }
.critpath-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.lastupd { list-style: none; margin: 0; padding: 0; }
.lastupd li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12.5px; color: var(--ink); }
.lastupd .ic { width: 16px; height: 16px; stroke: var(--muted-2); }

@media (max-width: 1180px) {
  .dep-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1280px) {
  .kpi-row-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .cov-top { grid-template-columns: 1fr 1fr; }
  .attn-row { grid-template-columns: 1fr 1fr; }
  .pca-bottom { grid-template-columns: 1fr; }
  .plans-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kpi-row-5 { grid-template-columns: 1fr 1fr; }
  .cov-top { grid-template-columns: 1fr; }
  .attn-row { grid-template-columns: 1fr; }
}
