/* Thème co-marqué IMATAG × Activo (proposition du 05/11/2026), chargé après toutes les autres feuilles.
   Principe, le même que pour les courriels : IMATAG à la surface, Activo en signature.
   - Structure aux couleurs d'IMATAG : barre latérale indigo, carré menthe (le point du « i » du logo)
     comme repère de l'élément actif et des surtitres, action principale en menthe sur texte indigo.
   - Activo pour ce qui se lit et se clique dans le contenu : liens et focus au bleu Activo, logo et
     mention « par Activo Connect » en pied de barre latérale et de page.
   - Les couleurs d'état (vert, ambre, rouge) gardent leur sens ; le corail d'IMATAG ne sert qu'aux
     filets « à traiter ». Aucun changement de mise en page : seulement couleurs, repères et marque.
   Palette relevée sur imatag.com (variables du site) et activo-consulting.com. */
:root {
  --imt-indigo: #130c4f;      /* IMATAG gray-700 */
  --imt-indigo-2: #2a2460;    /* IMATAG gray-600 */
  --imt-violet-gris: #6b6895; /* IMATAG gray-400 */
  --imt-menthe: #00e8aa;      /* IMATAG primary-700 */
  --imt-menthe-clair: #b5ffeb;
  --imt-corail: #ff6247;      /* IMATAG tertiary-700 */
  --act-bleu: #215fc8;        /* bleu Activo */

  --bg: #f8f9ff;              /* IMATAG gray-50 */
  --ink: var(--imt-indigo-2);
  --navy: var(--imt-indigo);
  --muted: var(--imt-violet-gris);  /* contraste 5,4:1 sur blanc */
  --line: #dadbed;            /* IMATAG gray-200 */
  --line-soft: #eceefb;
  --accent: var(--act-bleu);
  --accent-d: #1a4ea6;
  --accent-soft: #eef3fc;
  --radius: 6px;
}
::selection { background: var(--imt-menthe-clair); color: var(--imt-indigo); }
h1, h2, .kpi-val, .brand .word { font-family: Poppins, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
h1 { font-weight: 600; letter-spacing: -.015em; }

/* Action principale : menthe IMATAG, texte indigo (contraste 11:1) */
.btn.primary { background: var(--imt-menthe); border-color: var(--imt-menthe); color: var(--imt-indigo); }
.btn.primary:hover { background: #00cf98; border-color: #00cf98; color: var(--imt-indigo); }
.btn:hover { border-color: #c4c4dc; }

/* Surtitres : précédés du carré menthe */
.report-kicker, .form-section legend { display: flex; align-items: center; gap: 8px; color: var(--imt-violet-gris); }
.report-kicker::before { content: ''; width: 7px; height: 7px; background: var(--imt-menthe); flex: none; }

/* Onglets : trait indigo, petit carré menthe sur l'onglet actif */
.report-nav a[aria-current=page] { color: var(--imt-indigo); border-color: var(--imt-indigo); }

/* Bloc « À traiter » du tableau de bord et bandeaux d'état : filet corail IMATAG, comme dans les courriels */
.alertes, .mode-band { border-left-color: var(--imt-corail); }

/* ------------------------------------------------------------ barre latérale indigo */
.workspace .topbar { background: var(--imt-indigo); border-right: 0; color: #e7e6f5; }
.workspace .brand { min-height: 64px; padding: 20px 20px 16px; gap: 12px; }
.workspace .brand img.marque-imatag { height: 19px; width: auto; }
.workspace .brand .word { border-left: 1px solid rgba(255, 255, 255, .22); color: #c4c4dc; font-size: 12.5px; font-weight: 500; padding-left: 12px; }
.workspace .brand .word b { font-weight: 500; color: #c4c4dc; }
/* Compte client : son logo sur une pastille blanche, lisible sur l'indigo */
.workspace .brand-client img { background: #fff; padding: 3px; border-radius: 4px; height: 28px; }
.workspace .brand-client .word, .workspace .brand-client .word b { color: #fff; }

.workspace .workspace-create { background: var(--imt-menthe); border-color: var(--imt-menthe); color: var(--imt-indigo); }
.workspace .workspace-create:hover { background: #00cf98; border-color: #00cf98; color: var(--imt-indigo); }

.workspace .nav-caption { color: #8f8cb5; }
.workspace .topbar nav a { position: relative; color: #d9d8ec; }
.workspace .topbar nav a .workspace-icon { opacity: .8; }
.workspace .topbar nav a[aria-current=page] { background: rgba(255, 255, 255, .08); color: #fff; }
.workspace .topbar nav a[aria-current=page] .workspace-icon { opacity: 1; }
.workspace .topbar nav a[aria-current=page]::before {
  content: ''; position: absolute; left: -7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--imt-menthe);
}

.workspace .logout { border-top-color: rgba(255, 255, 255, .1); }
.workspace-account strong { color: #fff; }
.workspace .logout .who { color: #8f8cb5; }
.workspace-avatar { background: var(--imt-menthe); color: var(--imt-indigo); }
.workspace .logout .btn { color: #d9d8ec; background: transparent; }
.workspace :is(.topbar, .workspace-navigation) :is(a, button):focus-visible { outline-color: var(--imt-menthe); }

/* Signature Activo en bas de la barre latérale */
.signature-activo { display: flex; align-items: center; gap: 10px; margin: 2px 4px 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 11.5px; line-height: 1.35; color: #8f8cb5; text-decoration: none; }
.signature-activo img { width: 26px; height: 26px; padding: 3px; border-radius: 5px; background: #fff; flex: none; object-fit: contain; }
.signature-activo strong { display: block; color: #d9d8ec; font-weight: 600; }

/* Barre d'écran et pied */
.workspace-bar { background: rgba(255, 255, 255, .92); }
.workspace-location span:first-child { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--imt-indigo); letter-spacing: .02em; }
.workspace-location span:first-child::before { content: ''; width: 6px; height: 6px; background: var(--imt-menthe); }
.workspace .page { background: #fff; }
.workspace .foot { background: #fff; color: var(--imt-violet-gris); }

/* Menu sur petit écran : même indigo que la barre latérale */
.workspace-navigation { background: var(--imt-indigo); }
@media (hover: hover) {
  .workspace .topbar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .workspace .logout .btn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
}
@media (max-width: 959px) {
  .workspace > .topbar { border-bottom: 0; }
  .workspace .topbar nav a[aria-current=page]::before { display: none; }
}

/* ------------------------------------------------------------ pages de connexion */
body:not(.workspace) { background: var(--imt-indigo); }
body:not(.workspace) > .topbar { background: transparent; border-bottom: 0; }
body:not(.workspace) > .topbar .brand { visibility: hidden; }
body:not(.workspace) > .topbar .langue, body:not(.workspace) > .topbar .langue button { color: #c4c4dc; }
body:not(.workspace) > .topbar .langue button[aria-current=true] { color: #fff; }
body:not(.workspace) > .foot { color: #8f8cb5; }
.card.auth { border: 0; border-top: 4px solid var(--imt-menthe); box-shadow: 0 24px 60px rgba(4, 2, 30, .45); }
.auth-marque { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--esp-5); }
.auth-marque img { height: 22px; width: auto; display: block; }
.auth-marque span { padding-left: 12px; border-left: 1px solid var(--line); font-size: 12.5px; color: var(--imt-violet-gris); }
