/* Style pour le fond qui grise l'arrière-plan */
#popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Par défaut, il est caché */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Style pour le pop-up lui-même */
#popup {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative; /* Permet la position absolue du bouton */
    text-align: left;
    width: 80%;
    max-width: 600px;
}

/* Style pour le contenu du pop-up avec flexbox */
#popup-content {
    display: flex;
    align-items: center;
}

/* Style pour l'image dans le pop-up */
#popup-image {
    width: 30%;
    max-width: 150px;
    margin-right: 20px;
}

/* Style pour le texte dans le pop-up */
#popup-text {
    flex: 1;
}

/* Style pour le bouton de fermeture */
#close-popup {
    position: absolute;
    top: -16px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #c7700d;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

#close-popup:hover {
    background-color: #c52307;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: hidden;
    text-align: center;
  }
  #overlay img {
    max-width: 75%;
    max-height: 75%;
    margin-top: 8%;
    margin-left: auto;
    margin-right: auto;
    animation: zoom-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  @keyframes zoom-in {
    from { transform: scale(0); }
    to { transform: scale(1); }
  }