/* Tableau de bord — démo (dataviz : marks fins, grille discrète, labels directs) */
.dash { padding-block: clamp(28px, 5vw, 52px); }
.dash-head { max-width: 700px; margin-bottom: 30px; }
.dash-head h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); margin: 6px 0 12px; }

/* KPIs */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 20px 22px; }
.kpi b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--terre); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .84rem; color: var(--ink-soft); }

/* Blocs graphes */
.chart-block { padding: 22px 24px; margin-bottom: 18px; }
.chart-block h2 { font-size: 1.15rem; margin-bottom: 4px; }
.chart-sub { font-size: .84rem; color: var(--ink-soft); margin-bottom: 10px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); }

/* Grille/axes discrets */
.grid-line { stroke: var(--line); stroke-width: 1; }
.axis-label { fill: var(--ink-soft); font-size: 11px; }
.mark-label { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-name { fill: var(--ink); font-size: 12.5px; }

/* Tooltip */
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 6px 10px; border-radius: 7px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; white-space: nowrap; }
.tip.show { opacity: 1; transform: none; }

/* Table accessible */
.dash-table { margin: 6px 0 18px; }
.dash-table summary { cursor: pointer; font-weight: 600; color: var(--terre); padding: 8px 0; }
.dash-table table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.dash-table th, .dash-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.dash-table th { background: var(--accent-tint); font-weight: 700; }
.dash-table td:last-child { font-variant-numeric: tabular-nums; }

.dash-note { max-width: 760px; margin: 0 auto 22px; padding: 14px 18px; background: var(--paper-2); border-left: 4px solid var(--terre); border-radius: var(--radius-sm); font-size: .9rem; }

@media (max-width: 860px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}

.cta-band { margin-top: 8px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: linear-gradient(120deg, var(--ink), #1c5171); color: var(--paper); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h3 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: color-mix(in srgb, #fff 82%, transparent); max-width: 52ch; font-size: .95rem; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--terre-tint); }

.sim-tag { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--font); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a5a12; background: #fff1cc; border: 1px solid #f0dca0; border-radius: 999px; padding: 2px 9px; }
.sim-banner { grid-column: 1 / -1; font-size: .84rem; color: #7a5a12; background: #fff7e0; border: 1px solid #f0dca0; border-radius: var(--radius-sm); padding: 9px 14px; }
