/* Accueil Loca’Hop uniquement : les autres héros gardent leurs mises en page. */
body[data-lh-home]:has(.site-header[data-brand='locahop']) .location-hero--video {
  --lh-hero-img: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
  min-height: 0;
  padding: clamp(184px, 19vh, 224px)
    max(calc(var(--container-gutter) / 2), calc((100% - var(--container-wide-max)) / 2))
    clamp(48px, 6vw, 88px);
  background: #fff;
  overflow: hidden;
}

body[data-lh-home] .location-hero--video::before {
  display: none;
}

body[data-lh-home] .location-hero--video > .hero-copy {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

body[data-lh-home]:has(.site-header[data-brand='locahop']) .location-hero--video h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--lh-ink);
  font-size: clamp(2rem, 3.55vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-shadow: none;
  overflow-wrap: normal;
  word-break: normal;
}

body[data-lh-home]:has(.site-header[data-brand='locahop']) .location-hero--video .lead {
  max-width: 43ch;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
}

body[data-lh-home] .location-hero--video .hero-actions {
  margin-top: 24px;
  gap: 12px;
}

body[data-lh-home] .location-hero--video .lh-hero-trust {
  margin-top: 22px;
  gap: 8px;
  font-size: 0.88rem;
}

body[data-lh-home] .lh-home-film {
  width: 100%;
  min-width: 0;
}

body[data-lh-home] .lh-home-film__stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: #f4f1f6;
  box-shadow: 0 26px 70px rgba(13, 27, 61, 0.1);
}

body[data-lh-home] .lh-home-film__poster,
body[data-lh-home] .lh-home-film__poster img,
body[data-lh-home] .lh-home-film__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-lh-home] .lh-home-film__poster {
  opacity: 1;
}

body[data-lh-home] .lh-home-film__video {
  opacity: 0;
  pointer-events: none;
}

body[data-lh-home] .lh-home-film[data-video-ready='true'] .lh-home-film__poster {
  opacity: 0;
}

body[data-lh-home] .lh-home-film[data-video-ready='true'] .lh-home-film__video {
  opacity: 1;
}

body[data-lh-home] .lh-home-film__controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

body[data-lh-home] .lh-home-film__toggle {
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #455069;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body[data-lh-home] .lh-home-film__toggle[hidden] {
  display: none;
}

body[data-lh-home] .lh-home-film__toggle:hover {
  color: #662483;
}

body[data-lh-home] .lh-home-film__toggle:focus-visible {
  outline: 3px solid #662483;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body[data-lh-home]:has(.site-header[data-brand='locahop']) .location-hero--video {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 100px;
    padding-bottom: 44px;
  }

  body[data-lh-home] .location-hero--video > .hero-copy {
    display: contents;
  }

  body[data-lh-home]:has(.site-header[data-brand='locahop']) .location-hero--video h1 {
    order: 1;
    max-width: 24ch;
    margin: 0;
    font-size: clamp(1.9rem, 5.9vw, 2.8rem);
    line-height: 1.12;
  }

  body[data-lh-home]:has(.site-header[data-brand='locahop']) .location-hero--video .lead {
    order: 4;
    max-width: 54ch;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
  }

  body[data-lh-home]:has(.site-header[data-brand='locahop']) .location-hero--video .hero-actions {
    order: 2;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    margin: 0;
  }

  body[data-lh-home] .location-hero--video .hero-actions > .btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-lh-home] .location-hero--video .lh-hero-trust {
    order: 5;
    margin: 0;
  }

  body[data-lh-home] .lh-home-film {
    order: 3;
  }

  body[data-lh-home] .lh-home-film__stage {
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(13, 27, 61, 0.08);
  }

  body[data-lh-home] .lh-home-film__toggle {
    font-size: 0.75rem;
  }
}
