@import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap");

.custom-video-block ul li {
  width: 270px; /* Ajustement pour un format story */
  height: 480px; /* Plus haut que large */
  border: 5px double #8bb78b;
  list-style-type: none;
  display: inline-block;
}

.custom-video-block ul li a .video {
    opacity: 0.5;
}

.custom-video-block ul li a .video:hover {
    opacity: 1 !important;
}


.custom-video-block h2 {
    display: none !important;
}

.custom-video-block  p {
    display: none !important;
}

.custom-video-block  ul li a .video .bg {
  width: 270px;
  height: 480px;
  z-index: 2;
  position: absolute;
  top: 0;
  background: transparent !important;
}

.custom-video-block ul li {
    width: 470px;
    height: 480px;
    border: 5px double #8bb78b;
    list-style-type: none;
    display: inline-block;
    padding-right: 20px !important;
    padding-left: 20px;
    flex-grow: inherit;
}

.custom-video-block  li {
  border: none !important;
}

.custom-video-block  video {
  width: 100%;
  height: 740px;
  object-fit: cover;
  border-radius: 40px;
}

.custom-video-block  ul li a {
  color: #aaa;
  text-decoration: none;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.custom-video-block  ul li a .video {
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.custom-video-block  ul li a .video .vdo {
  z-index: 1;
}

.custom-video-block  ul li a .video .bg {
  width: 270px;
  height: 480px;
  z-index: 2;
  position: absolute;
  top: 0;
}

.custom-video-block  ul li a .video .red {
  background-image: linear-gradient(to right, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.1));
}

.custom-video-block  ul li a .video .green {
  background-image: linear-gradient(to right, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.1));
}

.custom-video-block  ul li a .video .blue {
  background-image: linear-gradient(to right, rgba(0, 0, 255, 0.1), rgba(0, 0, 255, 0.1));
}

.custom-video-block  ul li a .video .name {
  position: absolute;
  left: 0;
  top: 33%;
  width: 100%;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  opacity: 1;
  z-index: 3;
  letter-spacing: 3px;
  font-family: "Montserrat", sans-serif;
  transition: all 1s;
}

.custom-video-block  ul li a .video .name h2 {
  font-size: 6em;
  margin: 0;
}

.custom-video-block  ul li a .video .name p {
  font-size: 1em;
  margin: 0;
}

.custom-video-block  ul li:hover .name {
  opacity: 0.5;
}

.custom-video-block ul {
    background: black !important;
}

.custom-video-block ul {
    padding: 0 !important;
    margin: 0 !important;
        text-align: center;
	height: 740px;
}


.custom-video-block ul li {
    margin-bottom: 310px;
}


/* Responsive pour les ordinateurs portables de 15 pouces */
@media screen and (max-width: 1366px) {
    .custom-video-block ul li {
        width: 25%;  /* Toujours 4 vidéos sur la ligne */
    }
}

/* Responsive pour les écrans plus petits */
@media screen and (max-width: 1024px) {
    .custom-video-block ul li {
        width: 50%;  /* 2 vidéos par ligne sur des écrans plus petits */
    }
}

/* Responsive pour les smartphones */
@media screen and (max-width: 600px) {
    .custom-video-block ul li {
        width: 100%;  /* 1 vidéo par ligne sur les petits écrans */
    }
}

/* 

    .custom-video-block ul li .video::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Ajuste la hauteur du dégradé */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); /* Noir vers transparent */
    pointer-events: none; /* Permet de ne pas bloquer l'interaction avec la vidéo */
