/* ==================== 00-variables.css ==================== */
/* Variables CSS centralisées pour fxlive.trading */
/* Basé sur les variables existantes + extensions */

:root {
  /* ==================== COULEURS - MODE CLAIR ==================== */
  
  /* Couleurs de fond */
  --color-bg: #fafafa;
  --color-bg-secondary: #f5f5f5;
  --color-surface: #ffffff;
  
  /* Couleurs de texte */
  --color-text: #222;
  --color-text-secondary: #666;
  --color-text-disabled: #999;
  
  /* Couleurs primaires */
  --color-primary: #2196F3;
  --color-primary-dark: #1976D2;
  --color-primary-light: #64B5F6;
  
  /* Couleurs fonctionnelles - Trading */
  --color-profit: #1a9d3e;
  --color-profit-bg: #e6ffe6;
  --color-loss: #d13b3b;
  --color-loss-bg: #ffecec;
  --color-buy: #2196F3;
  --color-sell: #FF9800;
  
  /* Couleurs fonctionnelles - UI */
  --color-success: #4CAF50;
  --color-warning: #FF9800;
  --color-error: #F44336;
  --color-info: #2196F3;
  
  /* Bordures et dividers */
  --color-border: #ddd;
  --color-divider: #e0e0e0;
  
  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
  
  /* ==================== TYPOGRAPHIE ==================== */
  
  --font-family-base: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-family-mono: 'Courier New', Courier, monospace;
  
  /* Tailles de police */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;    /* 18px */
  --font-size-xl: 1.25rem;     /* 20px */
  --font-size-2xl: 1.5rem;     /* 24px */
  --font-size-3xl: 1.875rem;   /* 30px */
  
  /* Poids de police */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Hauteur de ligne */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ==================== ESPACEMENTS ==================== */
  
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  
  /* Espacements spécifiques (compatibilité avec l'ancien système) */
  --gap: 5px;
  --box-gap: 6px;
  --section-gap: 8px;
  
  /* ==================== BORDURES ==================== */
  
  --border-width: 1px;
  --border-radius-sm: 4px;
  --border-radius-md: 6px;      /* Ancien --radius */
  --border-radius-lg: 8px;      /* Ancien --radius-block */
  --border-radius-xl: 12px;
  --border-radius-2xl: 16px;
  --border-radius-full: 9999px;
  
  /* Compatibilité */
  --radius: 6px;
  --radius-block: 8px;
  
  /* ==================== TRANSITIONS ==================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* ==================== BREAKPOINTS (pour référence) ==================== */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 900px;    /* Ton max-width actuel */
  --breakpoint-xl: 1280px;
  
  /* ==================== DIMENSIONS ==================== */
  
  --container-max-width: 900px;
  --header-height: 60px;
  --footer-height: 40px;
  
  /* ==================== Z-INDEX (pour gérer les couches) ==================== */
  
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==================== MODE SOMBRE ==================== */

:root[data-theme="dark"] {
  /* Couleurs de fond */
  --color-bg: #121212;
  --color-bg-secondary: #1a1a1a;
  --color-surface: #1e1e1e;
  
  /* Couleurs de texte */
  --color-text: #e0e0e0;
  --color-text-secondary: #aaa;
  --color-text-disabled: #666;
  
  /* Couleurs primaires (plus claires en dark mode) */
  --color-primary: #64B5F6;
  --color-primary-dark: #42A5F5;
  --color-primary-light: #90CAF9;
  
  /* Couleurs fonctionnelles - Trading (ajustées pour dark) */
  --color-profit: #4caf50;
  --color-profit-bg: #1b3d1b;
  --color-loss: #ff6b6b;
  --color-loss-bg: #3d1b1b;
  --color-buy: #64B5F6;
  --color-sell: #FFB74D;
  
  /* Couleurs fonctionnelles - UI */
  --color-success: #66BB6A;
  --color-warning: #FFA726;
  --color-error: #EF5350;
  --color-info: #42A5F5;
  
  /* Bordures et dividers */
  --color-border: #333;
  --color-divider: #424242;
  
  /* Ombres (plus prononcées en dark mode) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* ==================== UTILITAIRES DE DEBUG ==================== */

/* Activer en dev pour voir les variables */
/*
body::before {
  content: 'Theme: ' attr(data-theme);
  position: fixed;
  top: 0;
  right: 0;
  background: var(--color-error);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  z-index: 9999;
  border-radius: 0 0 0 4px;
}
*/