/* ============================================================
   sections/hero/style.css
   hero.css + hero-background.css fusionnés
   ============================================================ */

/* ── Fond grille cyberpunk ─────────────────────────────────── */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.2;
}

.grid {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    linear-gradient(var(--primary-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(80deg);
  animation: gridMove 10s linear infinite;
}

.grid::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
}

/* ── Section hero ──────────────────────────────────────────── */
.hero {
  padding: 120px 0 7rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--primary-color);
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.25;
  top: -250px;
  left: -250px;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--secondary-color);
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.25;
  bottom: -200px;
  right: -200px;
  animation: float 10s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
}

.hero h1 .intro-text {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 300;
  display: block;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-transform: none;
  letter-spacing: 0;
}

.hero h1 .highlight {
  font-family: var(--font-headers);
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  position: relative;
  animation: glitch 1s linear infinite;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
}

h1 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--header-color);
  animation: fadeInUp 1s ease-out;
}

.lead {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-buttons .btn {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .cta-buttons {
    margin-top: 3rem;
    margin-bottom: 2rem;
    justify-content: center;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Désactiver les orbes flous animés sur iOS */
  .hero::before,
  .hero::after {
    display: none;
  }

  .hero h1 .highlight {
    animation: none;
  }

  .grid {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: none;
  }
}
