/**
 * Hero Section - WebAlchimie
 * Modern gradient hero avec animations
 */

.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0077e6 0%, #7600e6 100%);
  overflow: hidden;
  padding: var(--space-16) var(--space-6);
}

/* Animated gradient background */
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Floating particles effect */
.hero-section::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 30% 80%, white, transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: particlesFloat 15s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes particlesFloat {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  color: var(--color-neutral-0);
}

.hero-content h1 {
  color: var(--color-neutral-0);
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.8s var(--ease-out);
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--space-8);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.8s var(--ease-out) 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s var(--ease-out) 0.4s backwards;
}

.hero-cta .btn {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn-light {
  background: var(--color-neutral-0);
  color: var(--color-primary-700);
}

.hero-cta .btn-light:hover {
  background: var(--color-neutral-50);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-cta .btn-outline-light {
  background: transparent;
  color: var(--color-neutral-0);
  border: 2px solid var(--color-neutral-0);
}

.hero-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-neutral-0);
}

/* Badge Strasbourg enhancement */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-0);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideUp 0.8s var(--ease-out) 0.1s backwards;
}

.hero-badge::before {
  content: '📍';
  font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
    padding: var(--space-12) var(--space-4);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .hero-section::after {
    animation: none;
  }
  
  .hero-content h1,
  .hero-content .lead,
  .hero-cta,
  .hero-badge {
    animation: none;
  }
}
