:root {
  /* Nouvelle Charte Calytia - Clean & Deep Ocean */
  --color-deep-night: #0f172a;    /* Bleu nuit profond */
  --color-intense-blue: #3b82f6;  /* Bleu intense */
  --color-blue-grey: #64748b;     /* Bleu gris */
  --color-light-blue: #f1f5f9;    /* Bleu très clair */
  --color-green-accent: #10b981;  /* Vert */
  
  --bg-soft: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;

  /* Overrides for Semantic Variables */
  --color-primary-600: var(--color-intense-blue);
  --color-primary-700: #1d4ed8;
  --color-secondary-600: var(--color-deep-night);
  --bg-body: var(--bg-soft);

  /* Polyfills for missing design-system.css */
  --text-color-muted: var(--color-blue-grey);
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-12: 3rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --brand-primary-600: var(--color-intense-blue);
  --brand-primary-800: #1e40af; /* A darker shade of intense blue */

  /* Polyfills for Legacy/Inline Theme Variables (Header/Sidebar) */
  --color-primary: var(--color-intense-blue);
  --color-primary-dark: var(--color-deep-night);
  --color-text-primary: #ffffff; /* Header title text on dark bg */
  --color-text-secondary: var(--color-blue-grey); /* Icon colors */
  --color-text-tertiary: var(--color-blue-grey); /* Section headers */
  --color-text-light: var(--color-blue-grey); /* Search icon */
  
  --color-surface: var(--color-deep-night); /* Header background */
  --border-color: rgba(255,255,255,0.1); /* Subtle borders */
  --color-background-alt: rgba(255,255,255,0.05); /* Hover states */
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
}

/* Sidebar Styling Override */
.sidebar {
  background-color: var(--color-deep-night) !important;
  color: white !important;
  border-right: 1px solid var(--border-color) !important;
}

.sidebar .nav-link {
  color: var(--color-blue-grey) !important;
}

.sidebar .nav-link:hover {
  color: white !important;
  background-color: rgba(255,255,255,0.05) !important;
}

.btn-primary {
  background-color: var(--color-intense-blue) !important;
  border-color: var(--color-intense-blue) !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: #1d4ed8 !important; /* Darker Blue */
}

/* Navbar Global Styles */
.navbar-pro, .glass-nav {
  background-color: #0f172a !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  color: white !important;
}

.navbar-pro a, .glass-nav a {
  color: #94a3b8 !important; /* Blue Grey text */
}

.navbar-pro a:hover, .glass-nav a:hover {
  color: white !important;
}

.sidebar-pro {
  background-color: var(--color-deep-night) !important;
  border-right: 1px solid var(--border-color) !important;
  color: white !important;
}

.badge-primary {
  background-color: var(--color-intense-blue) !important;
  color: white !important;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Card Styles Extended */
.card, .glass-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.dark .navbar-pro {
  background-color: #0f172a;
}
