body{
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;

 

}
#container-total{
    width: 100%;
    margin: 0;
}

.container-choice{
    height: 10%;
    display: flex;
    width: 100%;
    height: 125px;
    font-family: 'Poppins', sans-serif;
}

#img_1{
}
.container-2 {
flex: 1;
}

.modal .nav {
    position: absolute;
    top: 50%;
    font-size: 48px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transform: translateY(-50%);
    z-index: 1001;
  }
  
  .modal .prev { left: 20px; }
  .modal .next { right: 20px; }
  

.container{
    height: 80%;
    display: flex;
    overflow: hidden;
}
.container-2{
    height: 100%;
    flex: 1;
    padding: 15px;
    box-sizing: border-box;
    width: 30%;
}

.surimage {
    flex: 1; 
    width: 100%;
    margin: 7px;
    position: relative;
}
.surimage img{
    width: 100%;
    height: 100%;

}

/* Initialisation de l'overlay */
.text-overlay {
    opacity: 0;  /* Le texte est invisible par défaut */
    visibility: hidden; /* Le texte n'est pas interactif ou visible */
    position: absolute;
    top: 0;
    font-size: 0.9em;
    left: 0;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.473);  /* Fond semi-transparent */
    color: white;
    letter-spacing: 3px;
    transition: opacity 0.5s ease, visibility 0s 0.5s, background-color 0.5s ease; /* Transition fluide pour le fond */
}

/* Lors du survol de l'image */
.surimage:hover .text-overlay {
    opacity: 1;  /* Le texte devient visible, mais on ne veut pas qu'il apparaisse */
    visibility: visible; /* Le texte devient interactif, mais il sera caché par la couleur du fond */
    transition: opacity 0.5s ease, visibility 0s, background-color 0.5s ease; /* Transition fluide du fond et du texte */
}

#banniere{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#banniere a{
    background-color: cadetblue;
    border: 3px solid white;
    box-shadow: 0 0 0 3px cadetblue;
    display: flex;
    align-items: center;
    margin: 10px;
    padding: 7px 20px;
    text-decoration: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    border-radius: 7px;
    transition: 1s;
    
}
#banniere a:hover{
    background-color: rgb(21, 66, 67);
    transition: 1s;
}
.container-1{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    width: 60%;
    
}
.bibli_img{
    display: flex;
    height: 70%;
    width: 100%;
}

.bibli_img .container-a{
    box-sizing: border-box;
    padding-left: 7px;
    width: 75%;
    height: 100%;

}
.bibli_img .container-b{
    box-sizing: border-box;
    width: 25%;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: 7px;
    
}

.bibli_img .container-a img{
    width: 100%;
    height: 100%;
    cursor: pointer;

}
.bibli_img .container-b img{
    width: 100%;
    height: 100%;
    cursor: pointer;

}
.container-c{
    padding-top: 7px;
gap: 7px;    display: flex;
    height: 30%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;

}
.container-c img{
    width: 33.333%;     height: 100%;
    cursor: pointer;
    padding-left: 7px;

}



.container-c img:nth-child(1),
.container-c img:nth-child(2){
    
}
.container-c img{
}


.bibli_img .container-b img:nth-child(1),
.bibli_img .container-b img:nth-child(2){
    padding-bottom: 7px;

}
.elfsight-app-b43fbca2-e6f7-4173-80de-dd1aa3c4b34e {
    height: 10px; /* ajuste selon ton besoin */
}

#img_close{
    z-index: 2;
    left: 15px;
    position: absolute;
   display: flex;
   align-items: center;
   cursor: pointer;

    
}
#image_close{
    height: 35px;
    width: 35px;
    margin-right: 7px;
}
#img_close:hover #image_close{
    animation: squish 2s;
    transition: 2s;
}
@keyframes squish {
    0% { transform: scaleY(1); }
    30% { transform: scaleY(0.7); } /* Écrasement */
    50% { transform: scaleY(1.1); } /* Relâchement rapide */
    70% { transform: scaleY(0.9); } /* Petit retour en arrière */
    100% { transform: scaleY(1); } /* Retour à la normale */
}



/* === MODALE === */
.modal {
    display: none; /* Masquée par défaut */
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Image dans la modale */
  .modal-content {
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
  }
  
  /* Bouton de fermeture */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  
  /* Caption (nom de l'image) */
  .caption {
    margin-top: 15px;
    color: #fff;
    font-size: 18px;
    text-align: center;
  }
  