.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  
  h2 {
    margin-top: 0;
  }
  
  .buttons {
    text-align: center;
    margin-top: 20px;
  }
  
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
  }
  
  .btn i {
    margin-left: 5px;
  }

  #animadeID {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: black;
  }
  /* Styles pour le centrage */
.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* 100% de la hauteur de la fenêtre */
  overflow: hidden; /* Cache le débordement */
  background-color: black;
}

/* Styles pour l'image (ajustez la taille au besoin) */
.centered img {
  max-width: 10%;
  max-height: 10%;
  opacity: 0; /* L'image est initialement invisible */
  transform: scale(0.2); /* Taille initiale réduite */
  transition: transform 20s, opacity 20s;
}

/* Animation pour afficher et agrandir l'image */
.centered img.animate {
  
  opacity: 1;
  transform: scale(1);
}

/* Animation pour cacher l'image */
.centered img.animate-hide {

  opacity: 0;
  transform: scale(32.5);
  transition: transform 20s, opacity 20s;
 
}