/* =============================================
   HERO.CSS — Section d'accueil
   ============================================= */

#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 5% 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--accent2);
}

/* Description */
.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* Photo blob */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-ring {
  width: 320px; height: 320px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 3px;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%,  100% { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
  25%        { border-radius: 58% 42% 48% 52% / 43% 57% 43% 57%; }
  50%        { border-radius: 45% 55% 60% 40% / 55% 40% 60% 45%; }
  75%        { border-radius: 60% 40% 42% 58% / 50% 55% 45% 50%; }
}

.hero-photo-inner {
  width: 100%; height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--bg3);
}

.hero-photo-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%);
}

/* Glow décoratif */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
}

.bg-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91, 127, 255, 0.15), transparent 70%);
  top: -100px; right: 200px;
}

.bg-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56, 226, 180, 0.1), transparent 70%);
  bottom: 0; left: 0;
}

/* Stats bar */
#stats {
  padding: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 5%;
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo-wrap {
    justify-content: center;
    order: -1;
  }

  .hero-eyebrow {
    margin: 0 auto 1.5rem;
  }

  .hero-desc {
    margin: 0 auto 2.5rem;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-photo-ring {
    width: 240px; height: 240px;
  }
}
