/* Votre CSS existant */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #222;
    color: white;
    padding: 20px;
    text-align: center;
}

/* ... (autres règles CSS existantes) ... */

/* Solution finale ajoutée à la fin */
h2 {
    text-align: left;
}

h2.films-institutionnels {
    text-align: left !important;
}

@media screen and (max-width: 768px) {
    h2 {
        text-align: center;
    }
    h2.films-institutionnels {
        text-align: left !important;
    }
}
nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}
nav ul li {
    display: inline;
    margin: 0 10px;
}
nav ul li a {
    color: white;
    text-decoration: none;
}
.banner {
    width: 100%;
    height: 350px; /* Réduction de la hauteur */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black; /* Ajout d'un fond si l’image ne remplit pas tout */
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajuste l’image pour qu’elle soit entièrement visible sans déformation */
    transition: opacity 1s ease-in-out;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
audio {
    width: 100%;
}
footer {
    text-align: center;
    padding: 10px;
    background: #222;
    color: white;
	
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espace entre les icônes */
    margin-top: 15px; /* Espacement sous le lien English */
}

.social-icons a {
    font-size: 26px; /* Augmente la taille des icônes */
    color: #ffffff; /* Icônes bien visibles (blanc, ou une autre couleur claire) */
    text-decoration: none;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

.social-icons a:hover {
    transform: scale(1.2); /* Effet zoom au survol */
    color: #ff0000; /* Change la couleur au survol (rouge) */
}
@media screen and (max-width: 768px) {
    /* Ajuster le menu */
    nav ul {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        display: block;
        padding: 5px 0;
    }

    /* Ajuster le titre */
    h1 {
        font-size: 22px; /* Réduction de la taille du titre */
    }

    /* Centrer les icônes sociales et le drapeau */
    .social-icons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px; /* Espace entre les icônes */
        margin-top: 10px;
    }

    .social-icons a {
        font-size: 28px; /* Taille plus grande pour les icônes */
    }

    /* Style du footer */
    footer p {
        text-align: center;
        color: white; /* Couleur du texte du footer */
    }

    footer a {
        color: white; /* Couleur des liens du footer */
        text-decoration: none; /* Supprime le soulignement */
        margin-left: 10px;
    }

    footer a:hover {
        text-decoration: underline; /* Ajoute un soulignement au survol */
    }
} /* L'accolade fermante est bien ici maintenant */
footer a {
    color: white !important; /* Force la couleur blanche */
    text-decoration: none; /* Supprime le soulignement */
    margin-left: 10px;
}

footer a:hover {
    text-decoration: underline; /* Ajoute un soulignement au survol */
}

footer a:visited {
    color: white !important; /* Empêche les liens visités de devenir violets */
}
.sync-playlists {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.playlist-container {
    margin-bottom: 30px; /* Espacement entre les playlists */
}
body {
  margin: 0;
  padding: 0;
}

/* Container global des vidéos */
.video-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Chaque vidéo + sa description */
.video-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  gap: 30px;
}

/* Style de l'iframe */
.video-item iframe {
  width: 400px;
  height: 225px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Style des images */
.video-item img {
  width: 400px;
  height: 225px;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Conteneur description */
.video-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 10px 0;
}

/* Titre de la vidéo */
.video-description h3 {
  margin: 0 0 12px 0;
  font-size: 1.3em;
  color: #333;
}

/* Les paragraphes de description */
.video-description p {
  margin: 0 0 12px 0;
  color: #555;
}

/* Dernier paragraphe sans marge basse */
.video-description p:last-child {
  margin-bottom: 0;
}

/* Responsive sur tablette */
@media screen and (max-width: 900px) {
  .video-item iframe,
  .video-item img {
    width: 350px;
    height: 197px;
  }
  
  .video-section {
    gap: 25px;
    padding: 15px;
  }
}

/* Responsive sur mobile */
@media screen and (max-width: 768px) {
  .video-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .video-item iframe,
  .video-item img {
    width: 100%;
    height: 250px;
    max-width: 100%;
  }

  .video-description {
    margin-top: 0;
    text-align: left;
    width: 100%;
  }
  
  .video-section {
    gap: 40px;
    padding: 10px;
  }
}

/* Très petits écrans */
@media screen and (max-width: 480px) {
  .video-item iframe,
  .video-item img {
    height: 200px;
  }
  
  .video-description {
    font-size: 14px;
  }
  
  .video-description h3 {
    font-size: 1.1em;
  }
}

/* Bouton retour en haut */
#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 50px;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
  #scrollToTop {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media screen and (min-width: 1200px) {
  #scrollToTop {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
}