/**
 * Styles principaux du site
 * Auto Pièces Équipements
 */

:root {
  /* Palette de couleurs */
  --primary: #0070f3;         /* Bleu digital */
  --primary-hover: #005bb5;   /* Bleu plus sombre */
  --secondary: #ff6b00;       /* Orange mécanique */
  --tertiary: #00c896;        /* Turquoise diagnostique */
  --dark: #111827;            /* Fond sombre */
  --darker: #0a101f;          /* Fond très sombre */
  --gray-light: #94a3b8;      /* Gris clair */
  --gray-dark: #334155;       /* Gris foncé */
  --success: #10b981;         /* Vert pour validation */
  --error: #ef4444;           /* Rouge pour erreurs */
  --warning: #f59e0b;         /* Jaune pour avertissements */
  
  /* Variables spécialisées pour l'interface technique */
  --neon-blue: #4361EE;
  --neon-teal: #4CC9F0;
  --amber-glow: #F59E0B;
  --digital-red: #EF4444;
  --mecha-green: #10B981;
  
  /* Typographie */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  
  /* Effets et animations */
  --animation-curve: cubic-bezier(0.4, 0, 0.2, 1);
  --focus-ring: 0 0 0 3px rgba(0, 112, 243, 0.5);
}

/* Styles de base */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  line-height: var(--line-height-normal);
  color: #1a202c;
  background-color: #f7fafc;
}

.dark body {
  color: #e2e8f0;
  background-color: #1a202c;
}

/* Utilitaires et classes communes */
.max-w-6xl {
  max-width: 72rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.text-gray-500 {
  color: #6b7280;
}

.hover\:text-primary:hover {
  color: var(--primary);
}

.text-sm {
  font-size: 0.875rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* Grilles */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-8 {
  gap: 2rem;
}

/* Animation fade-in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* Support pour mode sombre */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3b82f6;
  }
}

/* Responsive */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
