/* Vidéo de présentation Ordenia, en remplacement du visuel du hero. */

.ordenia-hero-video-host > .ordenia-dashboard-brand,
.ordenia-hero-video-host > .ordenia-dashboard-copy {
  display: none !important;
}

.ordenia-hero-video-host > .ordenia-hero-dashboard {
  visibility: hidden;
}

.ordenia-hero-video {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  background: var(--ordenia-ink, #0b0c2b);
  isolation: isolate;
}

.ordenia-hero-video__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--ordenia-ink, #0b0c2b);
}

.ordenia-hero-video__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  color: #fff;
  background:
    radial-gradient(
      42% 42% at 50% 50%,
      rgba(11, 12, 43, 0.58) 0%,
      rgba(11, 12, 43, 0) 100%
    ),
    linear-gradient(rgba(11, 12, 43, 0.32), rgba(11, 12, 43, 0.32));
  cursor: pointer;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.ordenia-hero-video__cover:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

.ordenia-hero-video__badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--ordenia-blue, #3355ff);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 10px 30px rgba(11, 12, 43, 0.32),
    0 0 0 0 rgba(255, 255, 255, 0.45);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.ordenia-hero-video__badge svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  fill: currentColor;
}

.ordenia-hero-video__cover:hover .ordenia-hero-video__badge,
.ordenia-hero-video__cover:focus-visible .ordenia-hero-video__badge {
  transform: scale(1.07);
  box-shadow:
    0 14px 36px rgba(11, 12, 43, 0.4),
    0 0 0 10px rgba(255, 255, 255, 0.18);
}

.ordenia-hero-video__label {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(11, 12, 43, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font:
    600 15px/1.3 inherit;
  letter-spacing: -0.1px;
  text-align: center;
}

.ordenia-hero-video__duration {
  display: block;
  margin-top: 4px;
  font:
    500 12px/1.3 inherit;
  letter-spacing: 0.2px;
  opacity: 0.82;
}

.ordenia-hero-video.is-playing .ordenia-hero-video__cover {
  display: none;
}

@media (max-width: 767.98px) {
  .ordenia-hero-video__cover {
    gap: 10px;
  }

  .ordenia-hero-video__badge {
    width: 54px;
    height: 54px;
  }

  .ordenia-hero-video__badge svg {
    width: 19px;
    height: 19px;
    margin-left: 3px;
  }

  .ordenia-hero-video__label {
    font-size: 13px;
  }

  .ordenia-hero-video__duration {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ordenia-hero-video__badge {
    transition: none;
  }

  .ordenia-hero-video__cover:hover .ordenia-hero-video__badge,
  .ordenia-hero-video__cover:focus-visible .ordenia-hero-video__badge {
    transform: none;
  }
}
