/* ============================================================
   HERO
   css/components/hero.css
   ============================================================ */


/* ── CONTENEUR PRINCIPAL ───────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 445px;
  overflow: hidden;
}


/* ── IMAGE ─────────────────────────────────────────────────── */

.hero__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* L'image Drupal remplit tout le bloc */
.hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ── OVERLAY (boîte centrée semi-transparente) ─────────────── */

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__overlay .container {
  background: var(--hero-overlay-bg);
  max-width: var(--hero-content-width);
  width: 100%;
  padding: var(--space-10) var(--space-12);
  text-align: center;
}


/* ── TITRE ─────────────────────────────────────────────────── */

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-regular);
  color: var(--clr-text-inverse);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0 0 var(--space-6);
}


/* ── SOUS-TITRE ────────────────────────────────────────────── */

.hero__subtitle {
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
  color: var(--clr-text-inverse);
  line-height: var(--lh-body);
  margin-inline: auto;
  opacity: 0.9;
}


/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 767px) {
  .hero {
    height: 320px;
  }

  .hero__overlay .container {
    padding: var(--space-6) var(--space-5);
  }

  .hero__title {
    font-size: var(--fs-xl);
  }
}
