/* ==========================================================================
   Cartoine — hero de l'accueil
   La boucle vidéo (et son poster) en fond, la phrase de positionnement en bas à gauche.
   Sur cette page, le header se pose par-dessus (body.page--hero).
   ========================================================================== */
.page--hero .site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(92vh, 820px);
  background: var(--c-surface-2);
  overflow: hidden;
}

.hero__media,
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Voile : lisibilité du header en haut et du texte en bas */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 14, .55) 0%, rgba(14, 14, 14, 0) 30%, rgba(14, 14, 14, .15) 55%, rgba(14, 14, 14, .92) 100%);
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: auto;
  padding-top: 7rem;                               /* sous le header posé dessus */
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero__title { max-width: 15ch; text-wrap: balance; }
.hero__lead  { max-width: 44rem; }

/* Hero d'une page intérieure (Inspection drone) : moins haut, texte sous le header */
.hero--page { min-height: min(70vh, 640px); }
