/* Section éditoriale et lecteur cinématographique officiel Dar Léon. */
.darVideoSection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding: 110px 8vw;
  color: #f4efe7;
  background: #15110c;
}

.darVideoSectionCopy {
  max-width: 560px;
}

.darVideoSectionCopy .eyebrow {
  color: #d7b477 !important;
  margin: 0 0 24px;
}

.darVideoSectionCopy h2 {
  margin: 0;
  color: #f4efe7;
  font: 400 clamp(52px, 5.5vw, 82px)/.96 Cormorant Garamond, serif;
}

.darVideoSectionCopy > p:last-child {
  margin: 28px 0 0;
  color: #b7aa99;
  font: 400 22px/1.55 Cormorant Garamond, serif;
}

.darPresentationVideo {
  position: relative;
  scroll-margin-top: 120px;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(154 116 59 / 45%);
  background: #15110c;
  box-shadow: 0 24px 54px rgb(0 0 0 / 28%);
}

.darPresentationVideo::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgb(215 180 119 / 22%);
  pointer-events: none;
}

.darPresentationVideo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #15110c;
}

.darVideoMiniClose {
  display: none;
}

.darVideoPlaceholder {
  width: 100%;
}

.darPresentationVideo.is-mini-player {
  position: fixed;
  right: 22px;
  bottom: var(--dar-video-bottom-offset, 22px);
  left: auto;
  top: auto;
  z-index: 90;
  width: clamp(320px, 27vw, 400px);
  margin: 0;
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
  box-shadow: 0 22px 52px rgb(0 0 0 / 48%);
  animation: darVideoMiniEnter 260ms ease-out both;
}

.darPresentationVideo.is-mini-player::after {
  inset: 5px;
}

.darPresentationVideo.is-mini-player .darVideoMiniClose {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 1px solid rgb(215 180 119 / 48%);
  border-radius: 50%;
  color: #f5f0e8;
  background: rgb(15 12 8 / 82%);
  box-shadow: 0 5px 18px rgb(0 0 0 / 28%);
  font: 300 29px/1 Manrope, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.darPresentationVideo.is-mini-player .darVideoMiniClose:focus-visible {
  outline: 2px solid #d7b477;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .darVideoSection {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 85px 24px;
  }

  .darVideoSectionCopy {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .darVideoSection {
    gap: 30px;
    padding: 76px 24px 82px;
  }

  .darVideoSectionCopy h2 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .darPresentationVideo.is-mini-player {
    top: auto;
    right: 14px;
    bottom: calc(var(--dar-video-bottom-offset, 14px) + env(safe-area-inset-bottom, 0px));
    left: auto;
    width: clamp(172px, 46vw, 198px);
    transform: none !important;
  }

  .darPresentationVideo.is-mini-player .darVideoMiniClose {
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    padding: 0 0 2px;
    font-size: 21px;
  }

  .darPresentationVideo.is-mini-player .darVideoMiniClose::before {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .darPresentationVideo.is-mini-player {
    right: 14px;
    bottom: calc(var(--dar-video-bottom-offset, 14px) + env(safe-area-inset-bottom, 0px));
    width: clamp(220px, 32vw, 300px);
  }
}

@keyframes darVideoMiniEnter {
  from { opacity: .72; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .darPresentationVideo.is-mini-player {
    animation: none;
  }
}
