/* graphiques_series.css : styles de la famille « séries » (cascade, Pareto, entonnoir, jauge, puce,
   radar, treemap, calendrier). Uniquement des jetons existants (app.css, graphiques.css) ;
   à charger après graphiques.css. Aucun attribut style dans le HTML (CSP). */

/* Communs */
.gg text.gs-lib-etape { font-size: var(--gg-fs-base); fill: var(--ink); }
.gg text.gs-info-val { font-size: var(--gg-fs-fort); font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.gg text.gs-info-sous { font-size: var(--gg-fs-petit); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.gg text.gs-txt-ok { fill: var(--ok); }
.gg text.gs-txt-bad { fill: var(--bad); }
.gs-nd-cadre { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 2; }
.gs-zone-transparente { fill: transparent; stroke: none; pointer-events: all; }

/* Cascade */
.gs-connecteur { stroke: var(--graph-axe); stroke-width: 1; stroke-dasharray: 3 2; shape-rendering: crispEdges; }
.gg text.gs-ecart { font-size: var(--gg-fs-base); fill: var(--warn); }

/* Entonnoir */
.gs-lien { fill: color-mix(in srgb, var(--ink) 7%, transparent); stroke: none; }
.gg text.gs-perte { font-size: var(--gg-fs-petit); fill: var(--bad); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--graph-fond); stroke-width: 3px; stroke-linejoin: round; }

/* Jauge */
.gs-piste { fill: color-mix(in srgb, var(--ink) 10%, transparent); }
.gs-zone { opacity: .85; }
.gs-zone.gs-ton-ok { fill: var(--ok); }
.gs-zone.gs-ton-warn { fill: var(--warn); }
.gs-zone.gs-ton-bad { fill: var(--bad); }
.gs-arc { fill: var(--c); }
.gs-cible { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.gs-spark { stroke-width: 1.4; opacity: .8; }
.gg text.gs-val-l { font-size: var(--gg-fs-valeur-l); font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.gg text.gs-val-m { font-size: var(--gg-fs-valeur-m); font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.gg text.gs-val-s { font-size: var(--gg-fs-fort); font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.gg text.gs-jauge-sous { font-size: var(--gg-fs-petit); fill: var(--ink-2); }
.gg text.gs-jauge-nom { font-size: var(--gg-fs-base); font-weight: 600; fill: var(--ink); }

/* Puce */
.gs-plage-0 { fill: color-mix(in srgb, var(--ink) 26%, transparent); }
.gs-plage-1 { fill: color-mix(in srgb, var(--ink) 18%, transparent); }
.gs-plage-2 { fill: color-mix(in srgb, var(--ink) 12%, transparent); }
.gs-plage-3 { fill: color-mix(in srgb, var(--ink) 7%, transparent); }
.gs-precedent { fill-opacity: .55; }
line.gs-cible.gg-serie { stroke: var(--ink); stroke-width: 3; }

/* Radar */
.gs-toile { fill: none; stroke: var(--graph-grille); stroke-width: 1; }
.gs-rayon { stroke: var(--graph-grille); stroke-width: 1; }
.gs-radar-aire { fill: var(--c); fill-opacity: .12; stroke: none; }
.gs-radar-ligne { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; }
.gg-trace.gg-avant .gs-radar.gg-actif .gs-radar-aire { fill-opacity: .3; }
.gg-trace.gg-avant .gs-radar.gg-actif .gs-radar-ligne { stroke-width: 2.8; }
.gs-radar-moyenne { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 4 3; }
.gs-secteur.gg-survol { fill: var(--graph-curseur); filter: none; }

/* Treemap */
.gs-tuile { stroke: var(--graph-fond); stroke-width: 1; }
.gs-nuance-1 { fill-opacity: .86; }
.gs-nuance-2 { fill-opacity: .74; }
.gs-nuance-3 { fill-opacity: .62; }
.gs-groupe-fond { fill: color-mix(in srgb, var(--c) 16%, var(--graph-fond)); stroke: color-mix(in srgb, var(--c) 55%, transparent); stroke-width: 1; }
.gg text.gs-tuile-txt { font-size: var(--gg-fs-base); font-weight: 600; fill: var(--graph-sur); pointer-events: none; }
.gg text.gs-tuile-sous { font-size: var(--gg-fs-petit); fill: var(--graph-sur); opacity: .85; font-variant-numeric: tabular-nums; pointer-events: none; }
.gg text.gs-groupe-titre { font-size: var(--gg-fs-base); font-weight: 600; fill: var(--ink); pointer-events: none; }

/* Calendrier (5 classes : intensité de la couleur de la série) */
.gs-cal { stroke: none; }
.gs-q1 { fill: color-mix(in srgb, var(--c) 20%, var(--graph-fond)); }
.gs-q2 { fill: color-mix(in srgb, var(--c) 38%, var(--graph-fond)); }
.gs-q3 { fill: color-mix(in srgb, var(--c) 57%, var(--graph-fond)); }
.gs-q4 { fill: color-mix(in srgb, var(--c) 78%, var(--graph-fond)); }
.gs-q5 { fill: var(--c); }
.gs-cal-vide { fill: color-mix(in srgb, var(--ink) 4%, transparent); stroke: none; }
.gs-cal-nd { fill: none; stroke: var(--ink-2); stroke-width: .8; stroke-dasharray: 1.5 1.5; }
.gs-mois-sep { fill: none; stroke: var(--ink-2); stroke-width: 1.1; opacity: .7; pointer-events: none; }
.gs-weekend { fill: var(--graph-curseur); }
.gs-repere { fill: var(--ink); stroke: var(--graph-fond); stroke-width: 1; pointer-events: none; }
.gs-calendrier .gs-cal.gg-survol, .gs-calendrier .gs-cal-nd.gg-survol { stroke: var(--ink); stroke-width: 1.5; filter: none; }

@media (forced-colors: active) {
  .gs-q1, .gs-q2, .gs-q3, .gs-q4, .gs-q5, .gs-arc { fill: CanvasText; }
  .gs-radar-ligne, .gs-cible, .gs-mois-sep { stroke: CanvasText; }
}
