/* =========================
   AMG — Design tokens
   Palette reprise du logo (A vert / M bleu / G bleu-vert) vu sur les
   visuels de marque, sur un fond atelier sombre/béton avec accents LED.
   ========================= */

:root {

  /* Marque */
  --amg-green: #1fae67;
  --amg-green-deep: #0f7a48;
  --amg-blue: #2563eb;
  --amg-blue-deep: #173f9e;
  --amg-teal: #0d9488;

  /* Surfaces */
  --color-bg: #f4f6f7;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f2;
  --color-border: #e0e4e6;

  /* Texte */
  --color-text: #16201c;
  --color-text-muted: #5b6a64;
  --color-text-faint: #8a9993;

  /* Accent (actions principales) */
  --color-primary: var(--amg-green);
  --color-primary-deep: var(--amg-green-deep);
  --color-secondary: var(--amg-blue);

  /* États sémantiques */
  --color-success: #1fae67;
  --color-success-bg: #e8f7ef;
  --color-warning: #b45309;
  --color-warning-bg: #fef3e2;
  --color-danger: #c0273c;
  --color-danger-bg: #fce9ec;

  /* Rayons / ombres */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 2px 10px rgba(15, 30, 25, .06);
  --shadow-modal: 0 20px 60px rgba(10, 20, 16, .25);

  /* Barre latérale admin — sombre, esprit "atelier premium" */
  --sidebar-bg: #12161a;
  --sidebar-bg-alt: #1a2027;
  --sidebar-text: #d7ded9;
  --sidebar-text-muted: rgba(215, 222, 217, .55);
  --sidebar-active: var(--amg-green);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0e1210;
    --color-surface: #161c19;
    --color-surface-2: #1d2420;
    --color-border: #2a332e;
    --color-text: #e7ece9;
    --color-text-muted: #a3b0aa;
    --color-text-faint: #74827b;
  }
}

:root[data-theme="dark"] {
  --color-bg: #0e1210;
  --color-surface: #161c19;
  --color-surface-2: #1d2420;
  --color-border: #2a332e;
  --color-text: #e7ece9;
  --color-text-muted: #a3b0aa;
  --color-text-faint: #74827b;
}
