/* ==========================================================================
   FICHES INTERVENTION - Design System Variables
   Style: Industrial Precision - Professional, robust, distinctive
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     COLOR PALETTE - Slate & Copper Industrial
     A professional palette with warm copper accents for field work
     ------------------------------------------------------------------------- */

  /* Primary - Deep Slate Blue (trustworthy, professional) */
  --color-primary-50: #f0f4f8;
  --color-primary-100: #d9e2ec;
  --color-primary-200: #bcccdc;
  --color-primary-300: #9fb3c8;
  --color-primary-400: #829ab1;
  --color-primary-500: #627d98;
  --color-primary-600: #486581;
  --color-primary-700: #334e68;
  --color-primary-800: #243b53;
  --color-primary-900: #102a43;
  --color-primary: var(--color-primary-700);

  /* Accent - Copper/Amber (action, energy, field work) */
  --color-accent-50: #fffbeb;
  --color-accent-100: #fef3c7;
  --color-accent-200: #fde68a;
  --color-accent-300: #fcd34d;
  --color-accent-400: #fbbf24;
  --color-accent-500: #f59e0b;
  --color-accent-600: #d97706;
  --color-accent-700: #b45309;
  --color-accent-800: #92400e;
  --color-accent-900: #78350f;
  --color-accent: var(--color-accent-500);

  /* Neutral - Warm Slate (backgrounds, text, borders) */
  --color-slate-50: #f9fafb;
  --color-slate-100: #f3f4f6;
  --color-slate-200: #e5e7eb;
  --color-slate-300: #d1d5db;
  --color-slate-400: #9ca3af;
  --color-slate-500: #6b7280;
  --color-slate-600: #4b5563;
  --color-slate-700: #374151;
  --color-slate-800: #1f2937;
  --color-slate-900: #111827;
  --color-slate-950: #030712;

  /* Semantic Colors - Enhanced for field visibility */
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-200: #a7f3d0;
  --color-success: #10b981;
  --color-success-dark: #059669;

  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning: #f59e0b;
  --color-warning-dark: #d97706;

  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-200: #fecaca;
  --color-error: #ef4444;
  --color-error-dark: #dc2626;

  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-200: #bfdbfe;
  --color-info: #3b82f6;
  --color-info-dark: #2563eb;

  /* -------------------------------------------------------------------------
     TYPOGRAPHY - Sora (Display) + Source Sans 3 (Body)
     Distinctive, professional, highly readable on mobile
     ------------------------------------------------------------------------- */

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Type Scale - Optimized for mobile readability */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.8125rem;    /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-lg: 1.0625rem;    /* 17px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Letter Spacing */
  --tracking-tighter: -0.04em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.04em;
  --tracking-widest: 0.08em;

  /* -------------------------------------------------------------------------
     SPACING - 4px base unit with generous touch targets
     ------------------------------------------------------------------------- */

  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;  /* 2px */
  --space-1: 0.25rem;     /* 4px */
  --space-1-5: 0.375rem;  /* 6px */
  --space-2: 0.5rem;      /* 8px */
  --space-2-5: 0.625rem;  /* 10px */
  --space-3: 0.75rem;     /* 12px */
  --space-3-5: 0.875rem;  /* 14px */
  --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-12: 3rem;       /* 48px */
  --space-14: 3.5rem;     /* 56px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */

  /* -------------------------------------------------------------------------
     BORDERS & RADIUS - Softer, more refined
     ------------------------------------------------------------------------- */

  --radius-none: 0;
  --radius-xs: 0.1875rem;  /* 3px */
  --radius-sm: 0.3125rem;  /* 5px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.25rem;   /* 20px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  --border-width: 1px;
  --border-width-2: 2px;
  --border-width-3: 3px;
  --border-width-4: 4px;

  /* -------------------------------------------------------------------------
     SHADOWS - Layered depth with warm tones
     ------------------------------------------------------------------------- */

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.2);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.04);
  --shadow-inner-lg: inset 0 4px 8px 0 rgb(0 0 0 / 0.06);

  /* Colored shadows for interactive states */
  --shadow-primary: 0 4px 14px 0 rgb(51 78 104 / 0.25);
  --shadow-primary-lg: 0 8px 24px 0 rgb(51 78 104 / 0.3);
  --shadow-accent: 0 4px 14px 0 rgb(245 158 11 / 0.35);
  --shadow-accent-lg: 0 8px 24px 0 rgb(245 158 11 / 0.4);
  --shadow-success: 0 4px 14px 0 rgb(16 185 129 / 0.3);
  --shadow-error: 0 4px 14px 0 rgb(239 68 68 / 0.3);

  /* Card shadows with subtle lift */
  --shadow-card: 0 1px 3px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.04);
  --shadow-card-hover: 0 4px 12px rgb(0 0 0 / 0.1), 0 8px 24px rgb(0 0 0 / 0.06);

  /* -------------------------------------------------------------------------
     TRANSITIONS - Smooth, professional motion
     ------------------------------------------------------------------------- */

  --duration-instant: 50ms;
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-250: 250ms;
  --duration-300: 300ms;
  --duration-400: 400ms;
  --duration-500: 500ms;
  --duration-700: 700ms;

  --ease-linear: linear;
  --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);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* -------------------------------------------------------------------------
     Z-INDEX SCALE
     ------------------------------------------------------------------------- */

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-toast: 700;
  --z-tooltip: 800;
  --z-max: 9999;

  /* -------------------------------------------------------------------------
     COMPONENT SPECIFIC
     ------------------------------------------------------------------------- */

  /* Header */
  --header-height: 4.5rem;  /* 72px */

  /* Navigation */
  --nav-height: 4.25rem;     /* 68px */

  /* Safe areas for iOS */
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);

  /* -------------------------------------------------------------------------
     GRADIENTS - Subtle, professional
     ------------------------------------------------------------------------- */

  --gradient-primary: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-800) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent-400) 0%, var(--color-accent-600) 100%);
  --gradient-surface: linear-gradient(180deg, var(--color-slate-50) 0%, white 100%);
  --gradient-card: linear-gradient(180deg, white 0%, var(--color-slate-50) 100%);
  --gradient-shine: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: var(--color-slate-900);
    --color-bg-elevated: var(--color-slate-800);
    --color-text: var(--color-slate-100);
    --color-text-muted: var(--color-slate-400);
    --color-border: var(--color-slate-700);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-75: 0ms;
    --duration-100: 0ms;
    --duration-150: 0ms;
    --duration-200: 0ms;
    --duration-250: 0ms;
    --duration-300: 0ms;
    --duration-400: 0ms;
    --duration-500: 0ms;
    --duration-700: 0ms;
  }
}
