/* ============================================================
   Atlas · Correctifs mode clair (audit n°17)
   ------------------------------------------------------------
   Surcouche chargée après les modules : corrige les couleurs
   codées en dur dans le HTML généré par JS (onglets actifs,
   points or, validations vertes, texte bleu clair) qui manquent
   de contraste sur fond blanc. Ne touche pas au mode sombre.
   ============================================================ */

/* Onglets actifs des modules Écoute client (texte bleu clair → bleu foncé) */
body.theme-light .btn[style*="#93c5fd"]{color:#1e4cc4 !important;background:rgba(37,99,235,.1) !important;border-color:rgba(37,99,235,.35) !important}
body.theme-light .btn[style*="#c4b5fd"]{color:#6d28d9 !important;background:rgba(124,58,237,.1) !important;border-color:rgba(124,58,237,.3) !important}
body.theme-light .btn[style*="#ffb182"]{color:#c2410c !important;background:rgba(255,107,26,.1) !important;border-color:rgba(255,107,26,.35) !important}

/* Points « or » et validations sur fond blanc */
body.theme-light b[style*="#fbbf24"],
body.theme-light .kpi-num[style*="#fbbf24"]{color:#b45309 !important}
body.theme-light .btn[style*="#34d399"]{color:#0f7a43 !important;background:rgba(34,197,94,.12) !important;border-color:rgba(34,197,94,.4) !important}
body.theme-light .kpi-num[style*="#34d399"]{color:#0f7a43 !important}
body.theme-light b[style*="#34d399"]{color:#0f7a43 !important}
body.theme-light p[style*="#60a5fa"]{color:#1e4cc4 !important}
body.theme-light b[style*="#f87171"],body.theme-light .kpi-num[style*="#f87171"]{color:#be1e3c !important}
body.theme-light .kpi-num[style*="#a882ff"]{color:#6d28d9 !important}
body.theme-light span[style*="color:#fda4af"],body.theme-light b[style*="#fda4af"]{color:#be1e3c !important}

/* Chips colorées inline (labels de statut) : renforcer la lisibilité */
body.theme-light .chip[style*="#6b88b5"]{color:#4a5878 !important}
body.theme-light .chip[style*="#fbbf24"]{color:#9a6a08 !important}
body.theme-light .chip[style*="#f59e0b"]{color:#9a6a08 !important}
body.theme-light .chip[style*="#22c55e"]{color:#0f7a43 !important}
body.theme-light .chip[style*="#60a5fa"]{color:#1e4cc4 !important}
body.theme-light .chip[style*="#a882ff"]{color:#6d28d9 !important}
body.theme-light .chip[style*="#ff6b1a"]{color:#c2410c !important}
body.theme-light .chip[style*="#f0556a"]{color:#be1e3c !important}

/* Notes internes / fils de dossier (Experience Hub) */
body.theme-light p[style*="border-left"]{color:#3a5280 !important}
body.theme-light p[style*="border-left"] b{color:#0d1f5c !important}

/* Barres de progression : rails plus visibles sur blanc */
body.theme-light .fv-qbar,body.theme-light .fv-cap,body.theme-light .vx-cap{background:rgba(13,31,92,.1)}

/* Étoiles ★ inline (avis admin) */
body.theme-light span[style*="#fbbf24"][style*="letter-spacing"]{color:#d97706 !important}

/* Spinner de chargement différé */
body.theme-light span[style*="border-top-color:#60a5fa"]{border-color:rgba(13,31,92,.15) !important;border-top-color:#2563eb !important}

/* ============================================================
   Élargissement du 4 juillet (audit n°17) : les correctifs ci-dessus
   ciblaient les modules Écoute client / audités. Cette section
   généralise aux vues vitrine restantes (suite IA : Brain, Venture,
   Scout, Simulator, Predictions…) qui codent en dur la même palette
   d'accent sombre (bleu clair, violet clair, or, rose/rouge clair)
   sans repasser par les variables du design system. Filet de
   sécurité générique par valeur de couleur inline — pas un audit
   exhaustif page par page (voir Audit §17 pour le détail du statut).
   ============================================================ */
body.theme-light [style*="color:#60a5fa"],body.theme-light [style*="color: #60a5fa"]{color:#1e4cc4 !important}
body.theme-light [style*="color:#93c5fd"],body.theme-light [style*="color: #93c5fd"]{color:#1e4cc4 !important}
body.theme-light [style*="color:#818cf8"],body.theme-light [style*="color: #818cf8"]{color:#4338ca !important}
body.theme-light [style*="color:#a882ff"],body.theme-light [style*="color: #a882ff"]{color:#6d28d9 !important}
body.theme-light [style*="color:#c4b5fd"],body.theme-light [style*="color: #c4b5fd"]{color:#6d28d9 !important}
body.theme-light [style*="color:#34d399"],body.theme-light [style*="color: #34d399"]{color:#0f7a43 !important}
body.theme-light [style*="color:#4ade80"],body.theme-light [style*="color: #4ade80"]{color:#0f7a43 !important}
body.theme-light [style*="color:#fbbf24"],body.theme-light [style*="color: #fbbf24"]{color:#9a6a08 !important}
body.theme-light [style*="color:#fda4af"],body.theme-light [style*="color: #fda4af"]{color:#be1e3c !important}
body.theme-light [style*="color:#f87171"],body.theme-light [style*="color: #f87171"]{color:#be1e3c !important}
body.theme-light [style*="color:#fb923c"],body.theme-light [style*="color: #fb923c"]{color:#c2410c !important}
body.theme-light [style*="color:#22d3ee"],body.theme-light [style*="color: #22d3ee"]{color:#0e7490 !important}
body.theme-light [style*="color:#f472b6"],body.theme-light [style*="color: #f472b6"]{color:#be185d !important}
