/* ====== ENCRALYS – Popup bande-annonce centrée ====== */
/*
   ➜ Composant modal pour afficher la bande-annonce YouTube/Vidéo :
     overlay plein écran, boîte centrée en 16:9 (max 960x540),
     bouton de fermeture, iframe responsive.
*/

#encralys-trailer-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#encralys-trailer-modal.is-open {
  display: flex;
}

.encralys-trailer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.encralys-trailer-dialog {
  position: relative;
  z-index: 2;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  width: 80vw;
  max-width: 960px;
  height: 45vw;
  max-height: 540px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}

.encralys-trailer-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease;
}
.encralys-trailer-close:hover {
  transform: scale(1.2);
}

.encralys-trailer-iframe-wrap {
  width: 100%;
  height: 100%;
}
.encralys-trailer-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}