/**
 * Typography - Cash Shopping
 *
 * Système de typographie simplifié et centralisé
 * 2 polices, 5 tailles, 4 poids
 */

:root {
  /* ========================================
     POLICES (2 uniquement)
     ======================================== */

  /* Police principale - Raleway pour tout */
  --font-primary: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Police secondaire - Inter pour les textes longs */
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Police code (monospace) */
  --font-mono: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;

  /* ========================================
     POIDS (4 uniquement)
     ======================================== */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ========================================
     TAILLES (7 uniquement)
     ======================================== */

  --font-size-xs: 0.75rem;    /* 12px - Très petits textes */
  --font-size-sm: 0.875rem;   /* 14px - Petits textes, labels */
  --font-size-base: 1rem;     /* 16px - Texte normal */
  --font-size-lg: 1.125rem;   /* 18px - Texte important */
  --font-size-xl: 1.5rem;     /* 24px - Sous-titres */
  --font-size-2xl: 2rem;      /* 32px - Titres principaux */
  --font-size-3xl: 2.5rem;    /* 40px - Grands titres de section */

  /* ========================================
     ALIAS TAILLES (compatibilité --text-*)
     ======================================== */

  --text-xs: var(--font-size-xs);
  --text-sm: var(--font-size-sm);
  --text-base: var(--font-size-base);
  --text-lg: var(--font-size-lg);
  --text-xl: var(--font-size-xl);
  --text-2xl: var(--font-size-2xl);
  --text-3xl: var(--font-size-3xl);

  /* ========================================
     HAUTEURS DE LIGNE (3 uniquement)
     ======================================== */

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}

/* ========================================
   CLASSES UTILITAIRES - POLICES
   ======================================== */

.font-primary {
  font-family: var(--font-primary);
}

.font-secondary {
  font-family: var(--font-secondary);
}

.font-mono {
  font-family: var(--font-mono);
}

/* ========================================
   CLASSES UTILITAIRES - POIDS
   ======================================== */

.font-regular {
  font-weight: var(--font-weight-regular);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* ========================================
   CLASSES UTILITAIRES - TAILLES
   ======================================== */

.text-sm {
  font-size: var(--font-size-sm);
}

.text-base {
  font-size: var(--font-size-base);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

/* ========================================
   CLASSES UTILITAIRES - LINE HEIGHT
   ======================================== */

.leading-tight {
  line-height: var(--line-height-tight);
}

.leading-normal {
  line-height: var(--line-height-normal);
}

.leading-relaxed {
  line-height: var(--line-height-relaxed);
}

/* ========================================
   STYLES DE BASE
   ======================================== */

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-2xl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

h4, h5, h6 {
  font-size: var(--font-size-base);
}

p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

small {
  font-size: var(--font-size-sm);
}

code, pre {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
}
