/**
 * Variables CSS - Design System
 * NAVS - Navigation Application for Pilots
 *
 * PILOTES & PIJONTS
 * Z4134 UN PAM3ER 6Al0N
 */

:root {
  /* ========================================
     DESIGN SYSTEM - NAVS
     Basé sur README.md
     ======================================== */

  /* DARK THEME (Primary) */
  --background-dark: #1a2d35;
  --background-dark-alt: #203943;
  --text-light: #e8dcc8;
  --text-light-alt: #ffffff;
  --accent-gold: #c9b896;

  /* LIGHT THEME (Secondary) */
  --background-light: #ddd5ca;
  --background-light-alt: #e5dfd7;
  --text-dark: #0a1a1f;
  --text-dark-alt: #1a1f2e;
  --accent-navy: #0d1b24;

  /* ========================================
     COULEURS PRINCIPALES - Thème Aviation
     ======================================== */

  /* Bleu Principal - Sky */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Couleurs Secondaires - Gold/Navy from design system */
  --secondary-50: #faf8f4;
  --secondary-100: #e8dcc8;
  --secondary-200: #d4c5a8;
  --secondary-300: #c9b896;
  --secondary-400: #b8a37d;
  --secondary-500: #a08d6a;
  --secondary-600: #8a7759;
  --secondary-700: #6b5d45;
  --secondary-800: #4d4331;
  --secondary-900: #2f291f;

  /* ========================================
     ÉTATS MÉTÉO (VFR, MVFR, IFR, LIFR)
     ======================================== */

  --vfr: #10b981;              /* Vert - Visual Flight Rules */
  --vfr-light: #d1fae5;
  --vfr-dark: #059669;

  --mvfr: #3b82f6;             /* Bleu - Marginal VFR */
  --mvfr-light: #dbeafe;
  --mvfr-dark: #1d4ed8;

  --ifr: #f59e0b;              /* Orange - Instrument Flight Rules */
  --ifr-light: #fef3c7;
  --ifr-dark: #d97706;

  --lifr: #ef4444;             /* Rouge - Low IFR */
  --lifr-light: #fee2e2;
  --lifr-dark: #dc2626;

  /* ========================================
     COULEURS SÉMANTIQUES
     ======================================== */

  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #059669;

  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #d97706;

  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-dark: #dc2626;

  --info: #3b82f6;
  --info-light: #dbeafe;
  --info-dark: #1d4ed8;

  /* ========================================
     NUANCES DE GRIS
     ======================================== */

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* ========================================
     COULEURS DE FOND
     ======================================== */

  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-dark: #1f2937;
  --bg-darker: #111827;

  /* ========================================
     COULEURS DE TEXTE
     ======================================== */

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-light: #9ca3af;
  --text-inverse: #ffffff;

  /* ========================================
     TYPOGRAPHIE
     ======================================== */

  /* Familles de Police - Design System NAVS */
  --font-primary: 'Garnet Capitals Light', 'Inter', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', 'Courier', monospace;
  --font-display: 'Garnet Capitals Light', 'Inter', sans-serif;

  /* Tailles de Police */
  --text-xs: 0.75rem;          /* 12px */
  --text-sm: 0.875rem;         /* 14px */
  --text-base: 1rem;           /* 16px */
  --text-lg: 1.125rem;         /* 18px */
  --text-xl: 1.25rem;          /* 20px */
  --text-2xl: 1.5rem;          /* 24px */
  --text-3xl: 1.875rem;        /* 30px */
  --text-4xl: 2.25rem;         /* 36px */
  --text-5xl: 3rem;            /* 48px */
  --text-6xl: 3.75rem;         /* 60px */

  /* Poids de Police */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Hauteur de Ligne */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ========================================
     ESPACEMENTS
     ======================================== */

  --space-0: 0;
  --space-1: 0.25rem;          /* 4px */
  --space-2: 0.5rem;           /* 8px */
  --space-3: 0.75rem;          /* 12px */
  --space-4: 1rem;             /* 16px */
  --space-5: 1.25rem;          /* 20px */
  --space-6: 1.5rem;           /* 24px */
  --space-7: 1.75rem;          /* 28px */
  --space-8: 2rem;             /* 32px */
  --space-9: 2.25rem;          /* 36px */
  --space-10: 2.5rem;          /* 40px */
  --space-11: 2.75rem;         /* 44px */
  --space-12: 3rem;            /* 48px */
  --space-14: 3.5rem;          /* 56px */
  --space-16: 4rem;            /* 64px */
  --space-20: 5rem;            /* 80px */
  --space-24: 6rem;            /* 96px */

  /* ========================================
     RAYONS DE BORDURE
     ======================================== */

  --radius-none: 0;
  --radius-sm: 0.375rem;       /* 6px */
  --radius-md: 0.5rem;         /* 8px */
  --radius-lg: 0.75rem;        /* 12px */
  --radius-xl: 1rem;           /* 16px */
  --radius-2xl: 1.5rem;        /* 24px */
  --radius-3xl: 2rem;          /* 32px */
  --radius-full: 9999px;

  /* ========================================
     OMBRES
     ======================================== */

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* ========================================
     TRANSITIONS
     ======================================== */

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonctions d'Ease */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ========================================
     LARGEURS DE CONTENEUR
     ======================================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;

  /* ========================================
     BREAKPOINTS (pour référence JS)
     ======================================== */

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ========================================
     Z-INDEX
     ======================================== */

  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-notification: 1080;

  /* ========================================
     BORDURES
     ======================================== */

  --border-width-0: 0;
  --border-width-1: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
  --border-width-8: 8px;

  --border-color: var(--gray-200);
  --border-color-light: var(--gray-100);
  --border-color-dark: var(--gray-300);

  /* ========================================
     OPACITÉ
     ======================================== */

  --opacity-0: 0;
  --opacity-5: 0.05;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-25: 0.25;
  --opacity-30: 0.3;
  --opacity-40: 0.4;
  --opacity-50: 0.5;
  --opacity-60: 0.6;
  --opacity-70: 0.7;
  --opacity-75: 0.75;
  --opacity-80: 0.8;
  --opacity-90: 0.9;
  --opacity-95: 0.95;
  --opacity-100: 1;

  /* ========================================
     DIMENSIONS COMMUNES
     ======================================== */

  --navbar-height: 72px;
  --footer-height: 320px;
  --sidebar-width: 280px;

  /* ========================================
     FORMULAIRES
     ======================================== */

  --input-height: 42px;
  --input-height-sm: 36px;
  --input-height-lg: 48px;

  --input-padding-x: 1rem;
  --input-padding-y: 0.625rem;

  --input-border-color: var(--gray-300);
  --input-border-color-focus: var(--primary-500);
  --input-bg: var(--bg-primary);
  --input-bg-disabled: var(--gray-100);

  /* ========================================
     BOUTONS
     ======================================== */

  --btn-padding-x: 1.5rem;
  --btn-padding-y: 0.75rem;
  --btn-font-size: var(--text-base);
  --btn-border-radius: var(--radius-md);

  --btn-padding-x-sm: 1rem;
  --btn-padding-y-sm: 0.5rem;
  --btn-font-size-sm: var(--text-sm);

  --btn-padding-x-lg: 2rem;
  --btn-padding-y-lg: 1rem;
  --btn-font-size-lg: var(--text-lg);
}

/* ========================================
   MODE SOMBRE (optionnel pour le futur)
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    /* À implémenter si nécessaire */
  }
}

/* ========================================
   CLASSES UTILITAIRES BASÉES SUR VARIABLES
   ======================================== */

.container {
  max-width: var(--container-2xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }

/* Badges météo */
.badge-vfr {
  background-color: var(--vfr-light);
  color: var(--vfr-dark);
}

.badge-mvfr {
  background-color: var(--mvfr-light);
  color: var(--mvfr-dark);
}

.badge-ifr {
  background-color: var(--ifr-light);
  color: var(--ifr-dark);
}

.badge-lifr {
  background-color: var(--lifr-light);
  color: var(--lifr-dark);
}
