/* VIDEOS POP UP SANS TEXTES */

.videospopupst-container-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.videospopupst-image-card {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 800px;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.videospopupst-image-card img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
}

/* Icône Play */

.videospopupst-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease-in-out;
}

.videospopupst-play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  background: rgba(0, 0, 0, 0.6);
  margin-left: 4px;
}

.videospopupst-image-card:hover .videospopupst-play-icon {
  background: rgba(0, 0, 0, 0.8);
}

.videospopupst-image-card h2 {
  margin: 10px 0 5px;
  text-align: left;
  font-size: 12px;
  font-weight: lighter;
  color: #EDE6D3;
}

.videospopupst-container {
  position: relative;
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px;
}

/* POPUP */

.videospopupst-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 3px;
  border-radius: 3px;
  z-index: 1000;
  width: 970px;
  height: auto;
}

.videospopupst-popup video {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 3px;
}

/* MESSAGE DE CHARGEMENT */

.videospopupst-loading-message {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1002;
  text-align: center;
  font-family: Figtree, Arial, sans-serif;
  color: #EDE6D3;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.videospopupst-loading-message.active {
  display: block;
}

/* CERCLE QUI TOURNE */

.videospopupst-loading-spinner {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  border: 3px solid rgba(237, 230, 211, 0.35);
  border-top-color: #EDE6D3;
  border-radius: 50%;
  animation: videospopupst-spin 0.8s linear infinite;
}

@keyframes videospopupst-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.videospopupst-loading-text {
  display: block;
}

/* BOUTON FERMETURE */

.videospopupst-popup .videospopupst-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5349;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 1003;
}

/* OVERLAY */

.videospopupst-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.videospopupst-overlay.active,
.videospopupst-popup.active {
  display: block;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .videospopupst-popup {
    width: 750px;
    height: auto;
  }

  .videospopupst-popup video {
    max-width: 740px;
  }
}

@media (max-width: 768px) {
  .videospopupst-popup {
    width: 550px;
    height: auto;
  }

  .videospopupst-popup video {
    max-width: 540px;
  }
}

@media (max-width: 576px) {
  .videospopupst-popup {
    width: 410px;
    height: auto;
  }

  .videospopupst-popup video {
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .videospopupst-popup {
    width: 300px;
    height: auto;
  }

  .videospopupst-popup video {
    max-width: 290px;
  }
}