/* Homepage-only mobile refinement; the hero image and both animations keep their original rules. */
@media (max-width: 767px) {
  body[data-page="home"] .site-header .header-book,
  body[data-page="home"] #accueil .hero-actions {
    display: none;
  }

  body[data-page="home"] .site-header .header-actions {
    margin-left: auto;
  }

  /* Keep the existing discovery link above the taller safe-area booking bar. */
  body[data-page="home"] #accueil .hero-bottom {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  }

  body[data-page="home"] #accueil.logo-hero .hero-content {
    position: absolute;
    top: auto;
    right: 0;
    left: 0;
    bottom: calc(155px + env(safe-area-inset-bottom, 0px));
    bottom: calc(max(155px, 100% - 100svh + 110px) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    padding: 0 24px;
  }

  /* A softly feathered, stationary scrim maintains contrast over the lighter floor. */
  body[data-page="home"] #accueil.logo-hero .hero-content::before {
    content: "";
    position: absolute;
    inset: -38px -8% -35px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, #11120f50 0%, #11120f38 45%, transparent 76%);
  }

  body[data-page="home"] #accueil .hero-logo-lockup .hero-title-mask {
    width: 76%;
    flex: 0 1 76%;
    max-width: 500px;
  }

  body[data-page="home"] #accueil.logo-hero .hero-description {
    margin-top: 18px;
  }
}

/* On very short landscape screens, keep the title clear of both fixed bars. */
@media (max-width: 767px) and (max-height: 360px) {
  body[data-page="home"] #accueil .hero-logo-lockup .hero-title-mask {
    max-width: 320px;
    max-width: max(180px, calc(320px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-bottom, 0px)));
  }

  body[data-page="home"] #accueil.logo-hero .hero-description {
    margin-top: 10px;
  }
}
