/* ============================================================
   css/geostudio-analyses.css — Lémap : les écrans d'analyse (lots 2, 4, 5, 6, 8, 9) — 20/10/2026
   Apparence de la maquette v7 validée par Mika. Les composants communs (gs-mod-tete, gs-travail, gs-pile, gs-grille2,
   gs-carton, gs-kpi, gs-barre, gs-table, gs-btn, gs-pill, gs-veut-dire, gs-champ…) sont ceux de css/geostudio.css (le socle) ;
   ici, seulement ce qui est propre aux analyses, préfixé gs-an- et SANS ancêtre .gs : les Fenêtres du Deck recopient nos blocs
   hors de la page (CONTRAT v1.1 § 8). Les variables --gs-… n'existent que sous .gs : chacune a sa valeur de repli (la même teinte).
   Couleurs : UNIQUEMENT celles du HUB — variables de css/style.css et celles que css/geostudio.css pose sous .gs
   (--gs-kiabi #4a7bd0, --gs-ok-encre #12784a, --gs-risque-encre #b13650, toutes déjà dans css/geomarketing.css).
   ============================================================ */
.gs-an { min-width: 0; }
.gs-an-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gs-an-nowrap { white-space: nowrap; }
.gs-an-coche { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.gs-an-coche input { accent-color: var(--primary); }

/* les curseurs : le libellé à gauche, la valeur choisie à droite (comme la maquette) */
.gs-an .gs-champ label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gs-an .gs-champ output { font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gs-an .gs-champ input[type="range"] { width: 100%; accent-color: var(--primary); }
.gs-an .gs-champ select { width: 100%; padding: 8px 10px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }

/* l'origine de chaque chiffre : un EXEMPLE est souligné en pointillés rouges, comme dans la maquette */
.gs-an-c { font-variant-numeric: tabular-nums; }
.gs-an-c--exemple { text-decoration: underline dashed var(--danger); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* le grand chiffre d'un scénario */
.gs-an-gros { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.gs-an-gros.is-gain { color: var(--gs-ok-encre, #12784a); }
.gs-an-gros.is-perte { color: var(--gs-risque-encre, #b13650); }

/* barres : pertes, gains, Kiabi ; la pastille d'un type ou d'un critère */
.gs-barre__piste i.gs-an-perte { background: var(--danger); }
.gs-barre__piste i.gs-an-gain { background: var(--success); }
.gs-barre__piste i.gs-an-k { background: var(--gs-kiabi, #4a7bd0); }
.gs-an-point { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.gs-an-cle { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 11.5px; color: var(--text-3); margin: 6px 0 8px; }
.gs-an-cle i { display: inline-block; width: 14px; height: 6px; border-radius: 3px; background: var(--primary); margin-right: 5px; vertical-align: middle; }
.gs-an-cle i.gs-an-ref { background: var(--text, #1d2033); }
/* la légende d'une carte : une pastille par couleur dessinée (rond plein ou anneau), aux couleurs exactes du dessin */
.gs-an-cle--carte { color: var(--text-2, #5b6075); font-size: 12px; gap: 6px 14px; margin: 8px 0 2px; }
.gs-an-cle i.gs-an-rond { width: 12px; height: 12px; border-radius: 50%; }
.gs-an-cle i.gs-an-anneau { width: 12px; height: 12px; border-radius: 50%; background: #ffffff; border: 3px solid; box-sizing: border-box; }
.gs-an-cle i.gs-an-trait { height: 2px; background: var(--text); }

/* risque et potentiel : les villes classées */
.gs-an-poles { display: flex; flex-direction: column; gap: 8px; max-height: 760px; overflow: auto; padding-right: 2px; }
.gs-an-pole { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; color: var(--text); font: inherit; }
.gs-an-pole:hover { border-color: var(--primary); }
.gs-an-pole.is-actif { border-color: var(--primary); background: var(--primary-soft-2); }
.gs-an-pole__rang { font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.gs-an-pole__nom { font-weight: 700; }
.gs-an-pole__mots { grid-column: 2 / 4; font-size: 12px; color: var(--text-2, #5b6075); }
.gs-an-pile-score { grid-column: 2 / 4; display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--border); }
.gs-an-pile-score i { display: block; height: 100%; }

/* graphiques */
.gs-an-graph { width: 100%; max-width: 680px; height: auto; display: block; }
.gs-an-graph text { font-family: inherit; fill: var(--text-2); font-size: 11px; }
.gs-an-graph .gs-an-grille { stroke: var(--border); stroke-width: 1; }

/* LA carte du socle posée dans un module (CONTRAT § 10) : dans la colonne de droite (Risque), elle est moins haute */
.gs-an-carte { min-width: 0; }
.gs-an-carte--etroite .gs-carte { height: clamp(320px, 46vh, 480px); }

/* la zone de chalandise en deux versions (Profils) : celle que montre la carte est entourée */
.gs-an-zone { margin: 0; }
.gs-an-zone.is-actif { box-shadow: 0 0 0 2px var(--primary); }

/* la même chose dans une Fenêtre du Deck (plus étroite) */
.gs-an-fen { font-size: 13px; }
.gs-an-fen .gs-an-gros { font-size: 26px; }

@media (max-width: 520px) { .gs-an-gros { font-size: 28px; } }
