/* Section Hero ultra-moderne */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(112, 71, 235, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 31, 142, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(79, 70, 229, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeInLeft 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(112, 71, 235, 0.1);
  border: 1px solid rgba(112, 71, 235, 0.3);
  border-radius: var(--border-radius-2xl);
  color: var(--primary-purple);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-badge i {
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.hero-card {
  background: var(--background-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-card-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.hero-card-info h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-card-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-card-content {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-card-rating {
  display: flex;
  gap: 0.25rem;
  color: #fbbf24;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

/* Responsive Hero */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }
}

/* Responsive Hero optimisé */
@media (max-width: 768px) {
  .hero-section {
    min-height: 85vh;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 0 1rem;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.125rem);
    max-width: 100%;
    margin-bottom: 2rem;
    line-height: 1.5;
  }

  .hero-cta {
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .hero-cta .btn {
    min-width: 160px;
  }

  .hero-stats {
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .hero-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .hero-card-content {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 80vh;
  }

  .hero-content {
    padding: 0 0.75rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 240px;
  }

  .hero-stats {
    flex-direction: row;
    gap: 1rem;
  }

  .stat-item {
    flex: 1;
    min-width: 80px;
  }

  .hero-card {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-cta .btn {
    max-width: 220px;
    font-size: 0.85rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* Optimisations Hero pour thème clair */
body.light-theme .hero-badge {
  background: rgba(112, 71, 235, 0.08);
  border: 1px solid rgba(112, 71, 235, 0.2);
  color: var(--primary-purple);
}

body.light-theme .hero-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-theme .hero-card::before {
  background: var(--gradient-primary);
}

body.light-theme .hero-card-info h4 {
  color: #1e293b;
}

body.light-theme .hero-card-info p {
  color: #64748b;
}

body.light-theme .hero-card-content {
  color: #475569;
}

body.light-theme .stat-label {
  color: #64748b;
}
