/* assets/css/components/videoModal.css */
.videoModal {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.videoModal[hidden] {
  display: none !important;
}

.videoModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.videoModal__dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.videoModal__content {
  width: min(1000px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.videoModal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.videoModal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* Optionnel : empêcher le scroll quand la modale est ouverte */
body.isVideoModalOpen {
  overflow: hidden;
}