/* Hero vidéo plein écran + intro sous la vidéo
   ---------------------------------------------------------------------------
   Pas de breakpoint : mise en page fluide (clamp, %) pour toutes largeurs.
   --------------------------------------------------------------------------- */

.hero--video {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Safari : masquer le bouton play natif si l’autoplay échoue brièvement */
.hero__video::-webkit-media-controls {
  display: none !important;
}

.hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.hero__center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero__logo-grand {
  width: clamp(220px, 42vw, 400px);
  max-width: 90vw;
  height: auto;
}

.section--intro {
  background: var(--color-bg);
}

/* 125px sous la vidéo hero ; bas : air avant la section prestations (responsive via clamp) */
.section.section--intro.section--tight {
  padding-top: 125px;
}

/* Bloc texte + image sous le hero — marges latérales maquette */
.hero-intro-section {
  width: 100%;
  max-width: var(--grid-max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, var(--grid-margin-inline));
  box-sizing: border-box;
}

/* Un seul bloc : surtitre + titre — centré dans la section, texte aligné au début */
.hero-intro__copy {
  max-width: 56rem;
  margin-inline: auto;
  text-align: start;
}

/* 125px entre ce bloc texte et l’image (si présente) */
.hero-intro-section:has(.hero-intro__figure) .hero-intro__copy {
  margin-bottom: 125px;
}

/* Surtitre : sans empattement, petit, capitales */
.hero-intro__tagline {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  color: #917c6a;
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
}

/* Titre d’accroche : serif */
.hero-intro__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
  color: #68523f;
}

.hero-intro__title-line {
  display: block;
}

.hero-intro__title-line + .hero-intro__title-line {
  margin-top: clamp(0.65rem, 1.5vw, 0.85rem);
}

.hero-intro__figure {
  margin: 0;
  padding: 0;
  width: 100%;
  line-height: 0;
}

.hero-intro__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Tablette / mobile : même gouttière que le reste (--grid-margin-inline), sans doubler avec .hero-intro-section */
@media (max-width: 900px) {
  .section.section--tight.section--intro {
    padding-left: max(env(safe-area-inset-left), var(--grid-margin-inline));
    padding-right: max(env(safe-area-inset-right), var(--grid-margin-inline));
    box-sizing: border-box;
  }

  .section.section--tight.section--intro .hero-intro-section {
    padding-inline: 0;
  }

  /* Texte d'intro centré (on comprend que c'est l'accroche du site) */
  .section.section--tight.section--intro .hero-intro__copy {
    text-align: center;
    max-width: 44rem;
  }

  /* Image plus présente : elle s'étire vers le bas pour combler le vide */
  .section.section--tight.section--intro .hero-intro__img {
    height: clamp(300px, 56vh, 520px);
    object-fit: cover;
    object-position: center top;
  }
}

@media (max-width: 600px) {
  .section.section--intro.section--tight {
    padding-top: clamp(3rem, 12vw, 125px);
    /* Moins d'air en bas : l'image comble déjà l'espace avant les prestations */
    padding-bottom: clamp(1.25rem, 5vw, 2.5rem);
  }

  .hero-intro-section:has(.hero-intro__figure) .hero-intro__copy {
    margin-bottom: clamp(2rem, 8vw, 3.5rem);
  }

  .section.section--tight.section--intro .hero-intro__img {
    height: clamp(280px, 52vh, 460px);
    object-position: center top;
  }

  .hero-intro__tagline {
    letter-spacing: 0.06em;
  }
}
