/* =============================================================================
   INTERGO — Design System · TOKENS
   Source : canvas Claude Design « InterGo — Maquette app intervention ».
   Un seul fichier de vérité pour les 3 surfaces (app chauffeur, back-office,
   console de supervision) + portail client. Importer AVANT components.css.
   Typo : Inter (corps) + Space Grotesk (titres).
   ============================================================================= */

:root {
  /* ---- Typographie ---- */
  --ig-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ig-font-display: 'Space Grotesk', var(--ig-font-body);

  --ig-text-11: 11px; --ig-text-12: 12px; --ig-text-13: 13px; --ig-text-14: 14px;
  --ig-text-15: 15px; --ig-text-16: 16px; --ig-text-17: 17px; --ig-text-19: 19px;
  --ig-text-22: 22px; --ig-text-24: 24px; --ig-text-28: 28px; --ig-text-32: 32px;
  --ig-weight-regular: 400; --ig-weight-medium: 500; --ig-weight-semibold: 600; --ig-weight-bold: 700;

  /* ---- Accent (défaut = bleu, surfaces app + back-office) ---- */
  --ig-accent: #0B5FD6;
  --ig-accent-hover: #0848A6;
  --ig-accent-contrast: #FFFFFF;
  --ig-accent-soft: #E8EEF7;      /* fond d'info / surbrillance légère */
  --ig-accent-on-dark: #7FB2FF;   /* « Go » du logo sur sidebar sombre */

  /* ---- Neutres ---- */
  --ig-bg: #F4F6F8;               /* fond d'écran */
  --ig-surface: #FFFFFF;          /* cartes, en-têtes */
  --ig-surface-2: #EEF1F4;        /* zones secondaires, séparateurs de lignes */
  --ig-ink: #0E1726;              /* texte principal */
  --ig-ink-2: #3A4555;            /* texte secondaire / labels forts */
  --ig-ink-3: #556070;            /* texte tertiaire / légendes */
  --ig-muted: #9AA4B2;            /* placeholder / désactivé */
  --ig-line: #DDE2E8;             /* bordure par défaut */
  --ig-line-2: #C9D0D9;           /* bordure champs */
  --ig-line-3: #EEF1F4;           /* filets de tableau */

  /* ---- Surfaces sombres (sidebar / carte accentuée) ---- */
  --ig-dark: #0E1726;             /* sidebar back-office + carte « temps passé » */
  --ig-dark-active: #1F2A3C;      /* item de nav actif */
  --ig-dark-ink: #C9D2DE;         /* texte sur sombre */
  --ig-dark-ink-2: #B8C2D0;       /* texte atténué sur sombre */

  /* ---- Statuts (badges / pastilles) ---- */
  --ig-status-todo-bg: #EEF1F4;   --ig-status-todo-fg: #3A4555;
  --ig-status-doing-bg: #FFF1E5;  --ig-status-doing-fg: #A13E00;
  --ig-status-done-bg: #E6F4EC;   --ig-status-done-fg: #13653A;
  --ig-status-urgent-bg: #FDECEC; --ig-status-urgent-fg: #B42318; --ig-status-urgent-line: #F5C2C0;

  /* ---- Sémantique ---- */
  --ig-success: #1A8F4E;
  --ig-success-bg: #E6F4EC; --ig-success-fg: #13653A;
  --ig-warning: #D9620B;   --ig-warning-fg: #A13E00; --ig-warning-accent: #FFB020;
  --ig-danger: #B42318;    --ig-danger-bg: #FDECEC;  --ig-danger-fg: #B42318;
  --ig-info-bg: #E8EEF7;   --ig-info-fg: #24324A;

  /* ---- Rayons ---- */
  --ig-radius-sm: 8px;
  --ig-radius: 12px;       /* champs, icon-buttons */
  --ig-radius-md: 14px;    /* boutons primaires, petites cartes */
  --ig-radius-lg: 16px;    /* cartes */
  --ig-radius-xl: 20px;    /* grandes cartes (login) */
  --ig-radius-2xl: 24px;   /* logo */
  --ig-radius-pill: 999px;

  /* ---- Espacements ---- */
  --ig-space-1: 4px; --ig-space-2: 6px; --ig-space-3: 8px; --ig-space-4: 10px;
  --ig-space-5: 12px; --ig-space-6: 14px; --ig-space-7: 16px; --ig-space-8: 20px;
  --ig-space-9: 24px; --ig-space-10: 28px;

  /* ---- Divers ---- */
  --ig-touch: 44px;                       /* cible tactile minimale */
  --ig-shadow-1: 0 1px 2px rgba(0,0,0,.12);
  --ig-shadow-card: 0 1px 3px rgba(14,23,38,.06);
  --ig-focus: 0 0 0 2px var(--ig-accent);
}

/* -----------------------------------------------------------------------------
   Variante TEAL — console de supervision (Infoforma). Appliquer sur un conteneur :
   <body class="ig-theme-teal"> … </body>
   ----------------------------------------------------------------------------- */
.ig-theme-teal {
  --ig-accent: #0F766E;
  --ig-accent-hover: #0B5A54;
  --ig-accent-soft: #E6F0EE;
  --ig-accent-on-dark: #5FD0C4;
  --ig-bg: #F3F5F4;
  --ig-line: #D8DFDD;
  --ig-line-3: #ECF0EF;
  --ig-ink-3: #4F5D5B;
  --ig-dark: #10201E;
  --ig-dark-active: #1E3A36;
  --ig-dark-ink: #C5D6D3;
  --ig-dark-ink-2: #A7C4BF;
}
