html, body {
  height: 100%;
}

.global-size {
  max-width: 1920px;
  margin: 0 auto;
}

video {
  object-fit: cover;
}
.Effet_Nature {

  background: url('img/Fond_Nature.png') no-repeat bottom;
  background-attachment: fixed;
  background-size: cover;
  min-height: 250px;

}

.nav-link:hover {
  text-decoration: underline;
  transition-duration: 500ms;
  
}

/* Gestion des rotations des icônes */

.rotate-book {
  transform: rotate(45deg);  /* Rotation de 45 degrés */
}

/* Gestion des icônes du site Web */

.book::after {
  content:"-";
  background: url(img/book.png);
  background-repeat: no-repeat;
}

/* Conteneur principal pour la superposition */
.media-container {
  position: relative;
  width: 426px; /* Largeur fixe pour la vidéo et l'image */
  height: 284px; /* Largeur fixe pour la vidéo et l'image */
  overflow: hidden;
  border: 1px solid #fff; 
  border-radius: 0.25rem; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  cursor: pointer; 
}

/* Style pour l'image et la vidéo */
.media-container img,
.media-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

/* Par défaut, l'image est visible */
.media-container img {
  z-index: 1;
  opacity: 1;
}

/* La vidéo est cachée */
.media-container video {
  z-index: 0;
  opacity: 0;
}

/* Au survol, on affiche la vidéo */
.media-container:hover img {
  opacity: 0;
}

.media-container:hover video {
  opacity: 1;
}

/* Légende au-dessus de la vidéo */
.media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
  color: #fff; /* Texte blanc */
  text-align: center;
  font-size: 1rem;
  opacity: 0; /* Caché par défaut */
  transition: opacity 0.5s ease;
  z-index:2;
}

/* La légende apparaît au survol */
.media-container:hover .media-caption {
  opacity: 1;
}