/* ══════════════════════════════════════════════
   LDS Équitation — Section Hero
   ══════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  text-align: left;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: grayscale(100%);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

/* Gradient latéral : sombre à gauche pour le texte, transparent à droite */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20, 30, 20, 0.82) 0%, rgba(20, 30, 20, 0.55) 45%, rgba(20, 30, 20, 0.15) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35) 100%);
}

/* Grain texture subtil */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  z-index: 1;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 2rem 3rem 2rem 7vw;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(245, 240, 232, 0.5);
}

.hero-tag::after {
  display: none;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.hero-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.hero-h2 em {
  font-style: normal;
  color: var(--terracotta-light);
  font-weight: 600;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.85);
  max-width: 480px;
  margin: 0 0 3rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Surcharges contextuelles des boutons pour fond sombre */
.hero .btn-primary {
  background: var(--cream);
  color: var(--forest);
}

.hero .btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 240, 232, 0.6);
}

.hero .btn-outline:hover {
  background: rgba(245, 240, 232, 0.12);
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* Indicateur de scroll animé */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245, 240, 232, 0.5), transparent);
  animation: heroScrollLine 2s ease-in-out infinite;
}

@keyframes heroScrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    white-space: normal;
  }

  .hero-h2 {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    white-space: normal;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .hero {
    text-align: center;
    justify-content: center;
  }

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

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

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