/*
===========================================
NETWORKIT COMPONENTS 2024
Composants modernes et engageants
===========================================
*/

/* === SYSTÈME DE BOUTONS MODERNE === */

/* Base commune pour tous les boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  line-height: 1;
  min-height: 44px; /* Touch target */
  padding: var(--space-3) var(--space-6);
}

.btn:focus-visible {
  outline: 2px solid var(--color-quantum-blue);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* === VARIANTS DE BOUTONS === */

/* Bouton principal - Gradient moderne */
.btn-primary {
  background: linear-gradient(135deg, var(--color-quantum-blue) 0%, var(--color-quantum-blue-dark) 100%);
  color: white;
  box-shadow: var(--shadow-quantum-blue);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -3px rgba(14, 165, 233, 0.3), 0 6px 8px -2px rgba(14, 165, 233, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Bouton secondaire - Emerald tech */
.btn-secondary {
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-dark) 100%);
  color: white;
  box-shadow: var(--shadow-emerald);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -3px rgba(16, 185, 129, 0.3), 0 6px 8px -2px rgba(16, 185, 129, 0.15);
}

/* Bouton outline moderne */
.btn-outline {
  background: var(--color-white);
  color: var(--color-quantum-blue);
  border: 2px solid var(--color-quantum-blue);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--color-quantum-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-quantum-blue);
}

/* Bouton ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-slate-700);
  border: 1px solid var(--color-slate-300);
}

.btn-ghost:hover {
  background: var(--color-slate-50);
  color: var(--color-slate-900);
  border-color: var(--color-slate-400);
}

/* Bouton premium avec effet subtil */
.btn-premium {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.2), 0 4px 6px -2px rgba(139, 92, 246, 0.1);
}

.btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -3px rgba(139, 92, 246, 0.3), 0 6px 8px -2px rgba(139, 92, 246, 0.15);
}

/* === TAILLES DE BOUTONS === */

.btn-sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
}

.btn-lg {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
  min-height: 52px;
}

.btn-xl {
  font-size: var(--text-xl);
  padding: var(--space-5) var(--space-10);
  min-height: 60px;
}

/* Bouton pleine largeur */
.btn-full {
  width: 100%;
}

/* === GROUPES DE BOUTONS === */
.btn-group {
  display: inline-flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* === CARTES MODERNES === */

.card-modern {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-quantum-blue) 0%, var(--color-emerald) 100%);
}

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

/* Carte service avec icône */
.card-service {
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.card-service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--color-quantum-blue-50) 0%, var(--color-emerald-50) 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
}

.card-service h3 {
  color: var(--color-slate-900);
  margin-bottom: var(--space-4);
}

.card-service p {
  color: var(--color-slate-600);
  line-height: var(--leading-relaxed);
}

/* === SECTIONS HERO MODERNES === */

.hero-modern {
  background: linear-gradient(135deg, 
    var(--color-quantum-blue) 0%, 
    var(--color-quantum-blue-dark) 50%, 
    var(--color-emerald) 100%);
  color: white;
  text-align: center;
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

/* === STATISTIQUES MODERNES === */

.stats-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin: var(--space-16) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  background: linear-gradient(135deg, var(--color-quantum-blue) 0%, var(--color-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-base);
  color: var(--color-slate-600);
  font-weight: var(--font-medium);
}

/* === FORMULAIRES MODERNES === */

.form-modern {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-100);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-slate-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  background: var(--color-white);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-quantum-blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* === NAVIGATION MODERNE === */

.nav-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-200);
  position: sticky;
  top: 0;
  z-index: var(--z-50);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.nav-brand {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-slate-900);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-link-modern {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-slate-700);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link-modern:hover {
  color: var(--color-quantum-blue);
  background: var(--color-quantum-blue-50);
}

/* === ANIMATIONS ET EFFETS === */

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* === EFFETS QUANTIQUES SUBTILS === */

.quantum-glow {
  position: relative;
}

.quantum-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-quantum-blue), var(--color-emerald));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.quantum-glow:hover::before {
  opacity: 0.3;
}

/* === BADGES ET TAGS === */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--color-quantum-blue-50);
  color: var(--color-quantum-blue-dark);
}

.badge-success {
  background: var(--color-emerald-50);
  color: var(--color-emerald-dark);
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .stats-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .card-modern,
  .form-modern {
    padding: var(--space-6);
  }
  
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-modern {
    grid-template-columns: 1fr;
  }
  
  .card-modern,
  .form-modern {
    padding: var(--space-4);
  }
  
  .hero-modern {
    padding: var(--space-20) 0;
  }
}

/* === UTILITAIRES ADDITIONNELS === */

.gradient-text {
  background: linear-gradient(135deg, var(--color-quantum-blue) 0%, var(--color-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pulse {
  animation: pulse 2s infinite;
}

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