/* ===== NVHCLOUD MODERN DESIGN SYSTEM ===== */

/* Variables CSS pour la cohérence */
:root {
  /* Couleurs principales NVHCloud */
  --nvh-primary: #0066ff;
  --nvh-primary-dark: #0052cc;
  --nvh-primary-light: #3385ff;
  --nvh-secondary: #00cc66;
  --nvh-secondary-dark: #00a352;
  --nvh-accent: #ff6b35;
  --nvh-accent-light: #ff8c66;
  
  /* Couleurs neutres modernes */
  --nvh-dark: #0a0e1a;
  --nvh-dark-light: #1a1f2e;
  --nvh-gray-900: #111827;
  --nvh-gray-800: #1f2937;
  --nvh-gray-700: #374151;
  --nvh-gray-600: #4b5563;
  --nvh-gray-500: #6b7280;
  --nvh-gray-400: #9ca3af;
  --nvh-gray-300: #d1d5db;
  --nvh-gray-200: #e5e7eb;
  --nvh-gray-100: #f3f4f6;
  --nvh-white: #ffffff;
  
  /* Gradients */
  --nvh-gradient-primary: linear-gradient(135deg, var(--nvh-primary) 0%, var(--nvh-secondary) 100%);
  --nvh-gradient-dark: linear-gradient(135deg, var(--nvh-dark) 0%, var(--nvh-dark-light) 100%);
  --nvh-gradient-accent: linear-gradient(135deg, var(--nvh-accent) 0%, var(--nvh-accent-light) 100%);
  
  /* Ombres modernes */
  --nvh-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --nvh-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --nvh-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --nvh-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --nvh-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --nvh-shadow-glow: 0 0 20px rgba(0, 102, 255, 0.3);
  
  /* Typographie */
  --nvh-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nvh-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Espacements */
  --nvh-spacing-xs: 0.25rem;
  --nvh-spacing-sm: 0.5rem;
  --nvh-spacing-md: 1rem;
  --nvh-spacing-lg: 1.5rem;
  --nvh-spacing-xl: 2rem;
  --nvh-spacing-2xl: 3rem;
  --nvh-spacing-3xl: 4rem;
  
  /* Rayons de bordure */
  --nvh-radius-sm: 0.375rem;
  --nvh-radius: 0.5rem;
  --nvh-radius-md: 0.75rem;
  --nvh-radius-lg: 1rem;
  --nvh-radius-xl: 1.5rem;
  --nvh-radius-full: 9999px;
  
  /* Transitions */
  --nvh-transition-fast: 150ms ease-in-out;
  --nvh-transition: 300ms ease-in-out;
  --nvh-transition-slow: 500ms ease-in-out;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Reset et base */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--nvh-font-primary);
  line-height: 1.6;
  color: var(--nvh-gray-800);
  background-color: var(--nvh-white);
  scroll-behavior: smooth;
}

/* Utilitaires de base */
.nvh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--nvh-spacing-md);
}

.nvh-container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--nvh-spacing-md);
}

/* Typographie moderne */
.nvh-heading-hero {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--nvh-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nvh-heading-xl {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nvh-heading-lg {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.nvh-heading-md {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.nvh-text-lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  /* Couleur par défaut, peut être surchargée par Tailwind */
  color: inherit;
}

/* Variantes de nvh-text-lead pour différents contextes */
.nvh-text-lead-dark {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--nvh-gray-600);
}

.nvh-text-lead-light {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.nvh-text-mono {
  font-family: var(--nvh-font-mono);
  font-size: 0.875rem;
  background: var(--nvh-gray-100);
  padding: var(--nvh-spacing-xs) var(--nvh-spacing-sm);
  border-radius: var(--nvh-radius-sm);
}

/* Boutons modernes */
.nvh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nvh-spacing-sm);
  padding: var(--nvh-spacing-md) var(--nvh-spacing-xl);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: none;
  border-radius: var(--nvh-radius);
  cursor: pointer;
  transition: all var(--nvh-transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.nvh-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--nvh-transition-slow);
}

.nvh-btn:hover::before {
  left: 100%;
}

.nvh-btn-primary {
  background: var(--nvh-gradient-primary);
  color: var(--nvh-white);
  box-shadow: var(--nvh-shadow-md);
}

.nvh-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--nvh-shadow-xl), var(--nvh-shadow-glow);
}

.nvh-btn-secondary {
  background: var(--nvh-white);
  color: var(--nvh-primary);
  border: 2px solid var(--nvh-primary);
  box-shadow: var(--nvh-shadow);
}

.nvh-btn-secondary:hover {
  background: var(--nvh-primary);
  color: var(--nvh-white);
  transform: translateY(-2px);
  box-shadow: var(--nvh-shadow-lg);
}

.nvh-btn-accent {
  background: var(--nvh-gradient-accent);
  color: var(--nvh-white);
  box-shadow: var(--nvh-shadow-md);
}

.nvh-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--nvh-shadow-xl);
}

.nvh-btn-lg {
  padding: var(--nvh-spacing-lg) var(--nvh-spacing-2xl);
  font-size: 1.125rem;
  border-radius: var(--nvh-radius-md);
}

/* Cards modernes */
.nvh-card {
  background: var(--nvh-white);
  border-radius: var(--nvh-radius-lg);
  box-shadow: var(--nvh-shadow);
  padding: var(--nvh-spacing-xl);
  transition: all var(--nvh-transition);
  border: 1px solid var(--nvh-gray-200);
}

.nvh-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nvh-shadow-xl);
  border-color: var(--nvh-primary-light);
}

.nvh-card-premium {
  background: var(--nvh-gradient-dark);
  color: var(--nvh-white);
  border: 1px solid var(--nvh-primary);
  position: relative;
  overflow: hidden;
}

.nvh-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--nvh-gradient-primary);
}

/* Animations modernes */
@keyframes nvh-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nvh-fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nvh-fade-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nvh-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.6);
  }
}

@keyframes nvh-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Classes d'animation */
.nvh-animate-fade-in-up {
  animation: nvh-fade-in-up 0.6s ease-out;
}

.nvh-animate-fade-in-left {
  animation: nvh-fade-in-left 0.6s ease-out;
}

.nvh-animate-fade-in-right {
  animation: nvh-fade-in-right 0.6s ease-out;
}

.nvh-animate-pulse-glow {
  animation: nvh-pulse-glow 2s ease-in-out infinite;
}

.nvh-animate-float {
  animation: nvh-float 3s ease-in-out infinite;
}

/* Effets de hover modernes */
.nvh-hover-lift {
  transition: transform var(--nvh-transition);
}

.nvh-hover-lift:hover {
  transform: translateY(-4px);
}

.nvh-hover-scale {
  transition: transform var(--nvh-transition);
}

.nvh-hover-scale:hover {
  transform: scale(1.05);
}

/* Backgrounds et patterns */
.nvh-bg-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 204, 102, 0.1) 0%, transparent 50%);
}

.nvh-bg-grid {
  background-image: 
    linear-gradient(rgba(0, 102, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Navigation moderne */
.nvh-nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--nvh-gray-200);
  transition: all var(--nvh-transition);
}

.nvh-nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--nvh-shadow-md);
}

/* Sections */
.nvh-section {
  padding: var(--nvh-spacing-3xl) 0;
}

.nvh-section-hero {
  padding: 6rem 0;
  background: var(--nvh-bg-pattern);
  position: relative;
  overflow: hidden;
}

.nvh-section-dark {
  background: var(--nvh-gradient-dark);
  color: var(--nvh-white);
}

/* Responsive */
@media (max-width: 768px) {
  .nvh-container,
  .nvh-container-wide {
    padding: 0 var(--nvh-spacing-md);
  }
  
  .nvh-section {
    padding: var(--nvh-spacing-2xl) 0;
  }
  
  .nvh-section-hero {
    padding: 4rem 0;
  }
  
  .nvh-btn {
    padding: var(--nvh-spacing-sm) var(--nvh-spacing-lg);
    font-size: 0.875rem;
  }
  
  .nvh-btn-lg {
    padding: var(--nvh-spacing-md) var(--nvh-spacing-xl);
    font-size: 1rem;
  }
}

/* Utilitaires */
.nvh-text-center { text-align: center; }
.nvh-text-left { text-align: left; }
.nvh-text-right { text-align: right; }

.nvh-flex { display: flex; }
.nvh-flex-col { flex-direction: column; }
.nvh-items-center { align-items: center; }
.nvh-justify-center { justify-content: center; }
.nvh-justify-between { justify-content: space-between; }

.nvh-grid { display: grid; }
.nvh-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.nvh-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nvh-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nvh-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.nvh-gap-4 { gap: 1rem; }
.nvh-gap-6 { gap: 1.5rem; }
.nvh-gap-8 { gap: 2rem; }

.nvh-mb-4 { margin-bottom: 1rem; }
.nvh-mb-6 { margin-bottom: 1.5rem; }
.nvh-mb-8 { margin-bottom: 2rem; }
.nvh-mb-12 { margin-bottom: 3rem; }

.nvh-mt-4 { margin-top: 1rem; }
.nvh-mt-6 { margin-top: 1.5rem; }
.nvh-mt-8 { margin-top: 2rem; }
.nvh-mt-12 { margin-top: 3rem; }

@media (max-width: 768px) {
  .nvh-grid-cols-2,
  .nvh-grid-cols-3,
  .nvh-grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}