#sfid_listeSommaire.video-list-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start; /* utile si certaines hauteurs varient */
}

#sfid_listeSommaire .academy-vid-ct-container .home-page-acad-container {
    --home-acad-pad-side: 0;
}

#sfid_listeSommaire .video-block {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 0px;
  padding: 0px;
    margin-bottom: 20px;
}

/* S'assurer que la partie description remplit la hauteur */
#sfid_listeSommaire .video-block .video-desc-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 20px;
}

/* Responsive : 1 colonne par ligne sur mobile */
@media screen and (max-width: 768px) {
  #sfid_listeSommaire .video-block {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


#sfid_listeSommaire .video-block .video-desc-wrapper {
    margin-left: 0px;
    text-align: center;
}

/* Appliquer ce style seulement sur desktop (au-dessus de 1024px) */
@media screen and (min-width: 1024px) {
  #sf-acad-video {
    max-height: 600px;
    width: auto;
    display: block;
    margin: 0 auto; /* centrer horizontalement */
  }
}
