/* Bandeau mobile HyRunFit — unique, iOS/Android, ouvrir ou télécharger, refermable */
#hyrunfit-open-app-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647;
  min-height: calc(72px + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 11px;
  background: rgba(5, 13, 38, 0.98);
  border-bottom: 1px solid rgba(166, 242, 209, 0.20);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#hyrunfit-open-app-banner[hidden] { display: none !important; }

.hyrunfit-app-banner__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #a6f2d1, #2e52a6 58%, #7ee5b8);
  color: #050d26;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 8px 20px rgba(0,0,0,.20);
}

.hyrunfit-app-banner__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hyrunfit-app-banner__fallback-logo {
  display: none;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hyrunfit-app-banner__icon--fallback .hyrunfit-app-banner__fallback-logo {
  display: grid;
  place-items: center;
}

.hyrunfit-app-banner__copy {
  min-width: 0;
  line-height: 1.15;
}

.hyrunfit-app-banner__title {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.hyrunfit-app-banner__subtitle {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #b9c4d6;
}

.hyrunfit-app-banner__cta {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background: #a6f2d1;
  color: #050d26;
  -webkit-tap-highlight-color: transparent;
}

.hyrunfit-app-banner__cta--download {
  background: #ffffff;
  color: #050d26;
}

.hyrunfit-app-banner__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
  html.hyrunfit-app-banner-active nav {
    top: calc(92px + env(safe-area-inset-top)) !important;
  }

  html.hyrunfit-app-banner-active main {
    padding-top: calc(215px + env(safe-area-inset-top)) !important;
  }

  html.hyrunfit-app-banner-active body {
    scroll-padding-top: calc(92px + env(safe-area-inset-top));
  }
}

@media (max-width: 390px) {
  #hyrunfit-open-app-banner {
    grid-template-columns: 42px minmax(0, 1fr) auto 28px;
    gap: 8px;
    padding-left: 10px;
    padding-right: 8px;
  }

  .hyrunfit-app-banner__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hyrunfit-app-banner__title { font-size: 14px; }
  .hyrunfit-app-banner__subtitle { max-width: 150px; font-size: 11px; }
  .hyrunfit-app-banner__cta {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 335px) {
  .hyrunfit-app-banner__subtitle { display: none; }
  .hyrunfit-app-banner__cta { padding-inline: 10px; }
}
