/* ============================================================
   SEOGrow — Graphiques réutilisables (evolutionChart, components/charts.js)
   ============================================================
   Partagé par le suivi de test (Insights) et le Dashboard (trafic réseau).
   Déplacé depuis pipelines.css en 0.34.0. */

/* Graphique d'évolution (barres clics + courbe position). */
.evo-chart { width: 100%; height: auto; display: block; margin-top: var(--space-2); }
.evo-bar { fill: var(--accent, #3b82f6); opacity: .35; }
.evo-line { fill: none; stroke: var(--success, #16a34a); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.evo-dot { fill: var(--success, #16a34a); }
.evo-grid { stroke: var(--border, #e5e7eb); stroke-width: 1; }
.evo-j0 { stroke: var(--text-tertiary, #9ca3af); stroke-width: 1; stroke-dasharray: 3 3; }
.evo-j0-label { fill: var(--text-tertiary, #9ca3af); font-size: 10px; font-weight: 600; }
.evo-axis { fill: var(--text-tertiary, #9ca3af); font-size: 10px; }
.evo-axis--clicks { fill: var(--accent, #3b82f6); }
.evo-axis--pos { fill: var(--success, #16a34a); }
.evo-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); font-size: 12px; color: var(--text-secondary, #6b7280); }
.evo-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.evo-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.evo-swatch--clicks { background: var(--accent, #3b82f6); opacity: .35; }
.evo-swatch--pos { background: var(--success, #16a34a); }

/* Survol interactif : bandes + ligne-guide + tooltip. */
.evo-wrap { position: relative; }
.evo-hit { fill: transparent; cursor: crosshair; }
.evo-hit:hover { fill: var(--accent, #3b82f6); fill-opacity: .06; }
.evo-cursor { stroke: var(--text-tertiary, #9ca3af); stroke-width: 1; stroke-dasharray: 2 3; pointer-events: none; }
.evo-bar { transition: opacity .12s; }
.evo-tip {
  position: absolute; z-index: 20; pointer-events: none;
  min-width: 150px; padding: 8px 10px;
  background: var(--surface-1, #fff); color: var(--text-primary, #111827);
  border: 1px solid var(--border, #e5e7eb); border-radius: 8px;
  box-shadow: var(--shadow-md, 0 6px 18px rgba(0,0,0,.12));
  font-size: 12px; line-height: 1.5;
}
.evo-tip[hidden] { display: none; }
.evo-tip__date { font-weight: 700; margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--border, #e5e7eb); }
.evo-tip__row { display: flex; justify-content: space-between; gap: 14px; color: var(--text-secondary, #6b7280); }
.evo-tip__row b { color: var(--text-primary, #111827); font-variant-numeric: tabular-nums; }
