.cards {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .card {
    width: calc(33.33% - 10px);
    margin: 5px 5px;
    border-radius: 10px;
  }

  .card video {
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
}

h4 {
  color: #00796b;
  text-decoration: underline;
  text-align: center;
}



/* Fullscreen modal styles */
.modalmp4 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


.modalmp4 video {
    max-width: 90%;
    max-height: 80%; 
}


.modalmp4-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.card-image {
  position: relative; /* Nécessaire pour que les éléments enfants utilisent position: absolute */
  width: 100%;
  height: fit-content;
  overflow: auto !important;
}


video {
  height: 100%;
}
