/*
Theme Name:     Addiris Theme
Template:       astra  
Version:        1.0
Author:         boodcode
Description:    Thème du site Assiris
*/

/* Tu peux ajouter ici tes styles CSS personnalisés */

.single-video {
  background-color: #FFFFFF;
  color: #000000;
}
.single-video h1 {
  padding: 20px 0 50px;
    color: #000000;

}

.single-video h3 {
  padding: 20px 0 20px;  color: #000000;

}

.video-grid {
  width:100%;
  max-width: 1140px;
    margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.video-flex {
  display: flex;
  flex-direction: column;
  width: 80%;
  margin: 0 auto;
}

.video-item {
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .1);
  transition: box-shadow 0.3s ease;
  background: #fff;
  margin: 20px;
}
.video-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.video-item a, .video-item p {color: #000000;}
.video-item .flex {display: flex;flex-direction: column;}
.video-item .video-thumbnail {width:100%;margin-bottom: 1em;}
.video-item h2 {color: #000000;font-size: 20px;padding-bottom: 0em;}


.video-detail {
  margin: 0 auto;
  padding: 2rem 2rem;
}

.video-content {
  margin-top: 1rem;
}

.video-iframe-container {
    position: relative;
    width: 80%; /* Définit la largeur à 80% de son conteneur parent */
    padding-bottom: 45%; /* Calcul du ratio 16:9, soit 9/16 = 0.5625 et 0.5625 * 100 = 56.25% */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto; /* Centrer le conteneur si nécessaire */
}
.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Assurer que l'iframe prend 100% de la largeur de son conteneur */
    height: 100%; /* L'iframe prendra la hauteur ajustée */
}

