.video {
  position: relative;
  width: 100%;
  color: var(--color-white);
  height: fit-content;
  aspect-ratio: 16/9;
  margin: 0 auto;
}

.video .overlay {
  display: none;
}

.video.paused .overlay {
  pointer-events: none;
  position: absolute;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(0deg, var(--color-primary--1) 0%, var(--color-primary--1) 100%);
  opacity: 0.5;
  z-index: 2;
}

.video video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  cursor: pointer;
  border-radius: 15px;
}

/* Style du bouton "Mettre en pause" */
#video-js button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  cursor: pointer;
  opacity: 0;
  z-index: 3;
  transition: all .50s cubic-bezier(.475,.425,0,.995);
  width: 36px;
  height: 36px;
  font-size: 25px;
  background-color: transparent;
  color: var(--color-secondary--1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 36px;
  background: #FFF;
}




/* Affichage du bouton au survol de la vidéo quand elle est en lecture */
#video-js:hover button {
  opacity: 1; /* Afficher le bouton au survol */
}
/* Cacher le bouton quand la vidéo est en pause */
#video-js.paused button {
  opacity: 1; /* Ne pas afficher le bouton au survol si la vidéo est en pause */
}
/* Cacher le bouton quand la vidéo est en pause */
#video-js.paused:hover button {
  opacity: 1; /* Ne pas afficher le bouton au survol si la vidéo est en pause */
}


/* Iframe */
.media--type-remote-video iframe.media-oembed-content {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}
