/* ===== Identité Blachère (comptes client BIFR, 2026-11-21) =====
   Thème CLAIR posé par MainLayout (classe .identite-blachere) à la place du thème sombre DAYOS :
   bleu nuit pour la structure (barre, menu, en-têtes de tableau), blanc pour les espaces de
   travail, vert pour les actions et les validations, orange pour les alertes, rouge pour les
   blocages critiques (cahier des charges Projets IA, « Identité visuelle »).
   Couleurs PROVISOIRES reprises de la maquette : à remplacer par la charte officielle de Blachère,
   ici (variables ci-dessous) ET dans _themeBlachere (MainLayout.razor).
   Écrans couverts : ceux qu'un compte client peut ouvrir (tableau de bord et KPI des backups,
   module Projets IA). Les écrans réservés aux salariés Dayos ne sont pas retouchés. */
.identite-blachere {
    --bl-nuit: #12203A;
    --bl-nuit-2: #1D3157;
    --bl-vert: #2E8B4F;
    --bl-vert-fonce: #1F6B3A;
    --bl-fond: #F3F5F9;
    --bl-texte: #1B2434;
    --bl-texte-2: #5B6677;
    --bl-ligne: #DBE1EA;
    --bl-orange-texte: #9A5600;
    --bl-rouge-texte: #B3261E;
    --bl-bleu-texte: #1F5FB8;

    /* Variables du thème sombre DAYOS redéfinies : toutes les règles qui s'en servent suivent. */
    --dc-fond: var(--bl-fond);
    --dc-beige: var(--bl-vert);
    --dc-navy: var(--bl-nuit);
    --sombre-surface: #FFFFFF;
    --sombre-surface-2: #EEF1F6;
    --sombre-ligne: var(--bl-ligne);
    --sombre-texte: var(--bl-texte);
    --sombre-texte-2: var(--bl-texte-2);
    --st-ok-fond: #E7F4EC;
    --st-avert-fond: #FFF3E0;
    --st-echec-fond: #FDECEA;
    --st-manquant-fond: #F8E1E1;
    --viz-grille: #E3E7EE;
    --viz-axe: var(--bl-texte-2);
    --pia-abandonne: #A0A8B5;
    color: var(--bl-texte);
}

/* Fond de page : <body> est hors du layout, d'où :has(). */
body:has(.identite-blachere) { background: #F3F5F9; color: #1B2434; }
.identite-blachere h1, .identite-blachere h2, .identite-blachere h3 { color: var(--bl-nuit); font-family: Montserrat, Poppins, sans-serif; }
.identite-blachere a { color: var(--bl-vert-fonce); }
.identite-blachere .mud-drawer { border-right: none; }
.identite-blachere .mud-appbar a, .identite-blachere .mud-appbar { color: #FFFFFF; }
.app-brand-client {
    margin-left: 0.9rem; padding-left: 0.9rem; border-left: 1px solid rgba(255, 255, 255, 0.35);
    font-family: Montserrat, Poppins, sans-serif; font-weight: 600; letter-spacing: 0.02em; color: #FFFFFF; white-space: nowrap;
}
@media (max-width: 600px) { .app-brand-client { display: none; } }

/* Cartes et tuiles : surfaces blanches avec un filet, sans ombre lourde */
.identite-blachere .kpi-tuile, .identite-blachere .pia-carte, .identite-blachere .pia-colonne,
.identite-blachere .pia-bandeau, .identite-blachere .barres-h, .identite-blachere .graphe {
    box-shadow: 0 1px 3px rgba(18, 32, 58, 0.06);
}
.identite-blachere .kpi-valeur, .identite-blachere .pia-resultat-score { color: var(--bl-nuit); }
.identite-blachere a.kpi-tuile.kpi-lien:hover, .identite-blachere .kpi-lien-bloc:hover { border-color: var(--bl-vert); }

/* Tableaux : en-tête bleu nuit */
.identite-blachere .tdb-table th { background: var(--bl-nuit); color: #FFFFFF; border-bottom: none; }
.identite-blachere .tdb-table a, .identite-blachere .alerte-lien { color: var(--bl-vert-fonce); }
.identite-blachere .pia-ligne-clic:hover td { background: #EEF1F6; }
.identite-blachere .pia-ligne-choisie td { background: #E7F4EC; }

/* Tableau de bord des backups */
.identite-blachere .tuile-tous { background: var(--bl-nuit); border-color: var(--bl-nuit); }
.identite-blachere .tuile-neutre { background: var(--bl-texte-2); }
.identite-blachere a.tdb-tuile.tuile-active { outline-color: var(--bl-vert); }
.identite-blachere .tdb-bouton-tous { color: #FFFFFF !important; }
.identite-blachere .tdb-rien-ok { color: var(--bl-vert-fonce); }
.identite-blachere .tdb-filtre-client select { border-color: var(--bl-ligne); color-scheme: light; }
.identite-blachere .tdb-dialog { border-color: var(--bl-ligne); box-shadow: 0 20px 60px rgba(18, 32, 58, 0.35); }
.identite-blachere .tdb-dialog::backdrop { background: rgba(18, 32, 58, 0.5); }
.identite-blachere .tdb-dialog-entete { background: var(--bl-nuit); border-bottom: none; }
.identite-blachere .tdb-dialog-entete h3 { color: #FFFFFF; }
.identite-blachere .dlg-erreurs { color: var(--bl-rouge-texte); }
.identite-blachere .dlg-avertissements { color: var(--bl-orange-texte); }
.identite-blachere .solution summary { color: var(--bl-orange-texte); }
.identite-blachere .solution-texte { background: #FFF8E1; border-color: #F0D9A0; }

/* Champs natifs du module Projets IA */
.identite-blachere .pia-select, .identite-blachere .pia-saisie, .identite-blachere .pia-champ-date input {
    background: #FFFFFF; color: var(--bl-texte); border-color: #B8C1CE; color-scheme: light;
}
.identite-blachere .pia-select:focus-visible, .identite-blachere .pia-saisie:focus-visible { outline-color: var(--bl-vert); }
.identite-blachere .pia-client { border-color: var(--bl-ligne); }

/* Projets IA : barres, notation, Kanban */
.identite-blachere .pia-piste { background: #E6EAF0; }
.identite-blachere .pia-barre { background: var(--bl-vert); }
.identite-blachere .pia-niveau { background: #FFFFFF; border-color: #B8C1CE; color: var(--bl-texte); }
.identite-blachere .pia-niveau-actif { background: var(--bl-vert); border-color: var(--bl-vert); color: #FFFFFF; }
.identite-blachere .pia-carte-projet { background: #F7F9FC; border-color: var(--bl-ligne); }
.identite-blachere .pia-carte-projet a { color: var(--bl-texte); }
.identite-blachere .pia-carte-projet a:hover { color: var(--bl-vert-fonce); }
.identite-blachere .pia-zone:hover { background: rgba(18, 32, 58, 0.03); }
.identite-blachere .pia-plan-jalon { background: #FFFFFF; }

/* Projets IA : libellés colorés, assombris pour rester lisibles sur blanc */
.identite-blachere .pia-retard { color: var(--bl-rouge-texte); border-color: var(--bl-rouge-texte); }
.identite-blachere .pia-corrige { color: var(--bl-orange-texte); }
.identite-blachere .pia-bande-prioritaire { color: var(--bl-vert-fonce); background: #E7F4EC; }
.identite-blachere .pia-bande-acadrer { color: var(--bl-bleu-texte); background: #E8F0FB; }
.identite-blachere .pia-bande-backlog { color: var(--bl-orange-texte); background: #FFF3E0; }
.identite-blachere .pia-bande-areporter { color: var(--bl-texte-2); border-color: #A0A8B5; }
.identite-blachere .pia-etat-attente { color: var(--bl-rouge-texte); }
.identite-blachere .pia-action-encours { color: var(--bl-bleu-texte); }
.identite-blachere .pia-action-fait { color: var(--bl-vert-fonce); }
.identite-blachere .pia-action-annulee { color: var(--bl-texte-2); }
.identite-blachere .pia-niveau-eleve { color: var(--bl-rouge-texte); }
.identite-blachere .pia-niveau-moyen { color: var(--bl-orange-texte); }
.identite-blachere .pia-niveau-faible { color: var(--bl-vert-fonce); }
.identite-blachere .pia-alerte-information { background: #E8F0FB; }
.identite-blachere .alerte-action { background: #F7F9FC; border-left-color: var(--bl-vert); }
.identite-blachere .alerte-action-systeme { border-left-color: #A0A8B5; }

/* Diagnostic des services (2026-11-22) */
.identite-blachere .pia-bande-critique { color: var(--bl-rouge-texte); background: #FDECEA; }
.identite-blachere .pia-parcours li, .identite-blachere .pia-axe, .identite-blachere .pia-pb { border-color: #D5DAE2; background: #FFFFFF; }
.identite-blachere .pia-parcours li b { color: var(--bl-nuit); }
.identite-blachere .pia-parcours li.pia-parcours-ici { border-color: var(--bl-vert); }
.identite-blachere .pia-etape-courante .pia-etape-num { background: var(--bl-vert); border-color: var(--bl-vert); color: #FFFFFF; }
.identite-blachere .pia-etape-faite .pia-etape-num { border-color: var(--bl-vert); color: var(--bl-vert); }
.identite-blachere .pia-etapes li.pia-etape-faite::before, .identite-blachere .pia-etapes li.pia-etape-courante::before { background: var(--bl-vert); }
.identite-blachere .pia-etape-num { background: #FFFFFF; border-color: #B8C1CE; color: var(--bl-texte); }
.identite-blachere .pia-puce, .identite-blachere .pia-pb-choix { color: var(--bl-texte); border-color: #B8C1CE; }
.identite-blachere .pia-puce-active, .identite-blachere .pia-pb-choisi { background: #E7F4EC; border-color: var(--bl-vert); }
.identite-blachere .pia-citations-val { background: #E8F0FB; color: var(--bl-bleu-texte); }
.identite-blachere .pia-impact-titre { color: var(--bl-orange-texte); }
.identite-blachere .pia-rdv { color: var(--bl-texte); }
.identite-blachere .pia-agenda-ligne { border-top-color: #E3E7ED; }
