/* ==========================================================================
   HERO.CSS
   Section d'accueil plein écran : image immobilière en fond, overlay marine
   pour la lisibilité, nom de l'agence, slogan, deux CTA.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate; /* crée un contexte d'empilement propre pour l'overlay */
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay dégradé bleu marine : garantit la lisibilité du texte blanc
   sur n'importe quelle photo, et renforce l'identité premium */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(27, 30, 35, 0.75) 0%,
    rgba(46, 50, 59, 0.55) 45%,
    rgba(27, 30, 35, 0.85) 100%
  );
}

.hero__content {
  width: 100%;
  max-width: 760px;
  padding-block: var(--space-2xl);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
}

.hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background-color: var(--color-gold);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, var(--fs-5xl));
  margin-bottom: var(--space-sm);
}

.hero__title span {
  color: var(--color-gold-light);
}

.hero__slogan {
  font-size: clamp(1.1rem, 2vw, var(--fs-lg));
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__actions .btn {
  padding: 1rem 2.25rem;
}

/* ---------- Indicateurs de confiance (chiffres clés) ---------- */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-md);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-gold-light);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
}

/* ---------- Flèche de défilement (scroll indicator) ---------- */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounceDown 2.2s infinite;
}

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

@media (max-width: 640px) {
  .hero__stats {
    gap: var(--space-md);
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }
}
