/**
 * TechniPro - Design System Variables
 * Version 1.0
 * 
 * Ce fichier contient toutes les variables CSS pour maintenir
 * la cohérence visuelle de la plateforme TechniPro
 */

:root {
  /* ==================== COULEURS ==================== */
  
  /* Couleurs principales */
  --technipro-blue-primary: #1e3a8a;
  --technipro-blue-secondary: #0066cc;
  --technipro-blue-light: #1e88e5;
  --technipro-blue-dark: #1e40af;
  
  --technipro-orange-primary: #f57c00;
  --technipro-orange-secondary: #ff8800;
  --technipro-orange-light: #ff9800;
  --technipro-orange-dark: #e65100;
  
  /* Couleurs neutres */
  --technipro-gray-darkest: #2c3e50;
  --technipro-gray-dark: #475569;
  --technipro-gray-medium: #64748b;
  --technipro-gray-light: #94a3b8;
  --technipro-gray-lighter: #cbd5e1;
  --technipro-gray-lightest: #f1f5f9;
  
  /* Couleurs d'état */
  --technipro-success: #10b981;
  --technipro-warning: #f59e0b;
  --technipro-error: #ef4444;
  --technipro-info: #3b82f6;
  
  /* Couleurs de fond */
  --technipro-bg-primary: #ffffff;
  --technipro-bg-secondary: #f8fafc;
  --technipro-bg-tertiary: #f1f5f9;
  
  /* ==================== TYPOGRAPHIE ==================== */
  
  /* Font Family */
  --technipro-font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --technipro-text-xs: 0.75rem;      /* 12px */
  --technipro-text-sm: 0.875rem;     /* 14px */
  --technipro-text-base: 1rem;       /* 16px */
  --technipro-text-lg: 1.125rem;     /* 18px */
  --technipro-text-xl: 1.25rem;      /* 20px */
  --technipro-text-2xl: 1.5rem;      /* 24px */
  --technipro-text-3xl: 1.875rem;    /* 30px */
  --technipro-text-4xl: 2.25rem;     /* 36px */
  --technipro-text-5xl: 3rem;        /* 48px */
  --technipro-text-6xl: 3.75rem;     /* 60px */
  
  /* Font Weights */
  --technipro-font-regular: 400;
  --technipro-font-medium: 500;
  --technipro-font-semibold: 600;
  --technipro-font-bold: 700;
  --technipro-font-extrabold: 800;
  
  /* Line Heights */
  --technipro-leading-tight: 1.2;
  --technipro-leading-normal: 1.5;
  --technipro-leading-relaxed: 1.75;
  
  /* ==================== ESPACEMENTS ==================== */
  
  --technipro-spacing-xs: 0.25rem;    /* 4px */
  --technipro-spacing-sm: 0.5rem;     /* 8px */
  --technipro-spacing-md: 1rem;       /* 16px */
  --technipro-spacing-lg: 1.5rem;     /* 24px */
  --technipro-spacing-xl: 2rem;       /* 32px */
  --technipro-spacing-2xl: 3rem;      /* 48px */
  --technipro-spacing-3xl: 4rem;      /* 64px */
  
  /* ==================== BORDURES ==================== */
  
  --technipro-border-radius-sm: 0.375rem;   /* 6px */
  --technipro-border-radius-md: 0.5rem;     /* 8px */
  --technipro-border-radius-lg: 0.75rem;    /* 12px */
  --technipro-border-radius-xl: 1rem;       /* 16px */
  --technipro-border-radius-2xl: 1.5rem;    /* 24px */
  --technipro-border-radius-full: 9999px;
  
  --technipro-border-width: 1px;
  --technipro-border-width-2: 2px;
  --technipro-border-width-4: 4px;
  
  /* ==================== OMBRES ==================== */
  
  --technipro-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --technipro-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --technipro-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --technipro-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --technipro-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --technipro-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* ==================== TRANSITIONS ==================== */
  
  --technipro-transition-fast: 150ms ease-in-out;
  --technipro-transition-base: 200ms ease-in-out;
  --technipro-transition-slow: 300ms ease-in-out;
  
  /* ==================== Z-INDEX ==================== */
  
  --technipro-z-dropdown: 1000;
  --technipro-z-sticky: 1020;
  --technipro-z-fixed: 1030;
  --technipro-z-modal-backdrop: 1040;
  --technipro-z-modal: 1050;
  --technipro-z-popover: 1060;
  --technipro-z-tooltip: 1070;
}

/* ==================== CLASSES UTILITAIRES ==================== */

/* Couleurs de texte */
.text-blue-primary { color: var(--technipro-blue-primary); }
.text-blue-secondary { color: var(--technipro-blue-secondary); }
.text-orange-primary { color: var(--technipro-orange-primary); }
.text-gray-dark { color: var(--technipro-gray-darkest); }
.text-gray-medium { color: var(--technipro-gray-medium); }

/* Couleurs de fond */
.bg-blue-primary { background-color: var(--technipro-blue-primary); }
.bg-blue-secondary { background-color: var(--technipro-blue-secondary); }
.bg-orange-primary { background-color: var(--technipro-orange-primary); }
.bg-gray-lightest { background-color: var(--technipro-gray-lightest); }

/* Gradients */
.gradient-blue {
  background: linear-gradient(135deg, var(--technipro-blue-primary) 0%, var(--technipro-blue-secondary) 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, var(--technipro-orange-primary) 0%, var(--technipro-orange-secondary) 100%);
}

.gradient-blue-to-orange {
  background: linear-gradient(135deg, var(--technipro-blue-primary) 0%, var(--technipro-orange-primary) 100%);
}

/* ==================== COMPOSANTS ==================== */

/* Boutons */
.technipro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--technipro-font-primary);
  font-weight: var(--technipro-font-semibold);
  font-size: var(--technipro-text-base);
  line-height: 1.5;
  border-radius: var(--technipro-border-radius-lg);
  transition: all var(--technipro-transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.technipro-btn-primary {
  background: linear-gradient(135deg, var(--technipro-orange-primary) 0%, var(--technipro-orange-secondary) 100%);
  color: white;
  box-shadow: var(--technipro-shadow-md);
}

.technipro-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--technipro-shadow-lg);
}

.technipro-btn-secondary {
  background-color: var(--technipro-blue-secondary);
  color: white;
}

.technipro-btn-secondary:hover {
  background-color: var(--technipro-blue-primary);
}

.technipro-btn-outline {
  background-color: transparent;
  color: var(--technipro-blue-secondary);
  border: 2px solid var(--technipro-blue-secondary);
}

.technipro-btn-outline:hover {
  background-color: var(--technipro-blue-secondary);
  color: white;
}

/* Cartes */
.technipro-card {
  background-color: white;
  border-radius: var(--technipro-border-radius-xl);
  padding: var(--technipro-spacing-xl);
  box-shadow: var(--technipro-shadow-md);
  transition: all var(--technipro-transition-base);
}

.technipro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--technipro-shadow-xl);
}

.technipro-card-header {
  margin-bottom: var(--technipro-spacing-lg);
}

.technipro-card-title {
  font-size: var(--technipro-text-2xl);
  font-weight: var(--technipro-font-bold);
  color: var(--technipro-gray-darkest);
  margin-bottom: var(--technipro-spacing-sm);
}

.technipro-card-description {
  font-size: var(--technipro-text-base);
  color: var(--technipro-gray-medium);
  line-height: var(--technipro-leading-normal);
}

/* Badges */
.technipro-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  font-size: var(--technipro-text-sm);
  font-weight: var(--technipro-font-semibold);
  border-radius: var(--technipro-border-radius-full);
}

.technipro-badge-blue {
  background-color: var(--technipro-blue-secondary);
  color: white;
}

.technipro-badge-orange {
  background-color: var(--technipro-orange-primary);
  color: white;
}

.technipro-badge-success {
  background-color: var(--technipro-success);
  color: white;
}

/* Formulaires */
.technipro-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--technipro-font-primary);
  font-size: var(--technipro-text-base);
  border: 2px solid var(--technipro-gray-lighter);
  border-radius: var(--technipro-border-radius-lg);
  transition: all var(--technipro-transition-base);
  outline: none;
}

.technipro-input:focus {
  border-color: var(--technipro-blue-secondary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.technipro-label {
  display: block;
  font-size: var(--technipro-text-sm);
  font-weight: var(--technipro-font-semibold);
  color: var(--technipro-gray-darkest);
  margin-bottom: var(--technipro-spacing-sm);
}

/* Alertes */
.technipro-alert {
  padding: var(--technipro-spacing-lg);
  border-radius: var(--technipro-border-radius-lg);
  border-left: 4px solid;
  margin-bottom: var(--technipro-spacing-lg);
}

.technipro-alert-success {
  background-color: #d1fae5;
  border-color: var(--technipro-success);
  color: #065f46;
}

.technipro-alert-error {
  background-color: #fee2e2;
  border-color: var(--technipro-error);
  color: #991b1b;
}

.technipro-alert-warning {
  background-color: #fef3c7;
  border-color: var(--technipro-warning);
  color: #92400e;
}

.technipro-alert-info {
  background-color: #dbeafe;
  border-color: var(--technipro-info);
  color: #1e3a8a;
}

/* Containers */
.technipro-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--technipro-spacing-lg);
  padding-right: var(--technipro-spacing-lg);
}

/* Sections */
.technipro-section {
  padding-top: var(--technipro-spacing-3xl);
  padding-bottom: var(--technipro-spacing-3xl);
}

.technipro-section-title {
  font-size: var(--technipro-text-4xl);
  font-weight: var(--technipro-font-bold);
  color: var(--technipro-gray-darkest);
  margin-bottom: var(--technipro-spacing-lg);
  text-align: center;
}

.technipro-section-subtitle {
  font-size: var(--technipro-text-xl);
  color: var(--technipro-gray-medium);
  text-align: center;
  margin-bottom: var(--technipro-spacing-2xl);
}

/* ==================== ANIMATIONS ==================== */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==================== RESPONSIVE ==================== */

/* Mobile First Breakpoints */
@media (min-width: 640px) {
  .technipro-container {
    padding-left: var(--technipro-spacing-xl);
    padding-right: var(--technipro-spacing-xl);
  }
}

@media (min-width: 768px) {
  .technipro-section-title {
    font-size: var(--technipro-text-5xl);
  }
}

@media (min-width: 1024px) {
  .technipro-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ==================== UTILITIES ==================== */

/* Espacement */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Texte */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: var(--technipro-font-bold); }
.font-semibold { font-weight: var(--technipro-font-semibold); }
.font-regular { font-weight: var(--technipro-font-regular); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

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

/* Visibilité */
.hidden { display: none; }

@media (max-width: 767px) {
  .mobile-hidden { display: none; }
}

@media (min-width: 768px) {
  .desktop-hidden { display: none; }
}
