/* ==========================================================================
   BATIMART DESIGN SYSTEM — DESIGN TOKENS
   Fichier unique centralisant toutes les variables CSS de l'application.
   Aucune couleur ni espacement en dur dans les pages.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/Inter-Bold.woff2') format('woff2');
}

:root {
  /* --- PALETTE DE LA MARQUE BATIMART --- */
  --brand-cyan: #00AEEF;
  --brand-cyan-hover: #0098D3;
  --brand-cyan-light: #E6F7FD;
  --brand-magenta: #EC008C;
  --brand-yellow: #FFF100;
  --brand-dark: #0F1B2D;
  --brand-navy: #1E293B;

  /* Couleur d'action principale accessible (WCAG AA >= 4.5:1 sur fond blanc) */
  --color-primary: #0077B6;
  --color-primary-hover: #005F94;
  --color-primary-light: #E8F4FA;
  --color-primary-border: #BCE0F5;
  --color-accent: var(--brand-magenta);

  /* --- NEUTRES CHAUDS & SURFACES --- */
  --bg-app: #F5F7FA;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EDF2F7;
  --bg-hover: #F8FAFC;
  --bg-sidebar: #0F1B2D;
  --bg-sidebar-hover: #1A2942;
  --bg-sidebar-active: #0077B6;

  /* --- COULEURS DE TEXTE --- */
  --text-main: #0F1B2D;
  --text-muted: #5B6778;
  --text-subtle: #8A97A6;
  --text-inverse: #FFFFFF;
  --text-sidebar: #CBD5E1;
  --text-sidebar-muted: #94A3B8;

  /* --- BORDURES --- */
  --border-light: #E3E8EF;
  --border-medium: #CBD5E1;
  --border-focus: var(--color-primary);

  /* --- COULEURS DE STATUT --- */
  --color-success: #059669;
  --color-success-bg: #ECFDF5;
  --color-success-border: #A7F3D0;

  --color-warning: #D97706;
  --color-warning-bg: #FFFBEB;
  --color-warning-border: #FDE68A;

  --color-danger: #DC2626;
  --color-danger-bg: #FEF2F2;
  --color-danger-border: #FECACA;

  --color-info: #0284C7;
  --color-info-bg: #F0F9FF;
  --color-info-border: #BAE6FD;

  /* --- TYPOGRAPHIE --- */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 0.9375rem; /* 15px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.75rem;   /* 28px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-huge: 2.25rem;  /* 36px */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* --- GRILLE 8PX & ESPACEMENTS --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* --- RAYONS DE BORDURE --- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* --- OMBRES DOUCES --- */
  --shadow-xs: 0 1px 2px rgba(15, 27, 45, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 27, 45, 0.06), 0 1px 2px rgba(15, 27, 45, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 27, 45, 0.07), 0 2px 4px -2px rgba(15, 27, 45, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 27, 45, 0.08), 0 4px 6px -4px rgba(15, 27, 45, 0.04);
  --shadow-glow: 0 0 20px -3px rgba(0, 119, 182, 0.25);

  /* --- TRANSITIONS & MICRO-ANIMATIONS --- */
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-default: all var(--duration-normal) var(--ease-smooth);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --transition-default: none;
  }
}
