/* Masquer par défaut le popup de contact */
#popup-overlay-contact {
    display: none; /* Masquer le popup par défaut */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
    z-index: 1000;
}
 
/* Style pour afficher le popup lorsqu'il est actif */
#popup-overlay-contact.active {
    display: flex; /* Montre le popup quand il est actif */
}

/* Popup contenu */
#popup-content-contact {
    background-color: rgba(255, 255, 255, 0.9); /* Fond blanc semi-transparent */
    padding: 40px;
    border-radius: 20px;
    width: 70%; /* Ajustement de la largeur */
    max-width: 600px; /* Largeur maximale */
    max-height: 70vh; /* Hauteur maximale */
    text-align: center;
    transform: scale(0); /* Par défaut, réduit la taille à 0 */
    transition: transform 0.5s ease-in-out;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto; /* Ajout d'un ascenseur si le contenu dépasse */
}

/* Transition pour l'apparition de la popup */
#popup-content-contact.active {
    transform: scale(1); /* Apparition progressive */
}

/* Styles pour le formulaire de contact */
#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1002;
}

/* Ajout de la couleur blanche pour les labels */
#contact-form label {
    color: white; /* Texte en blanc pour les labels */
    font-size: 16px;
    background-color: rgba(135, 90, 60, 0.7); /* Fond léger derrière le label */
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #6B8E23;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8); /* Fond plus clair pour mieux voir le texte */
}

#contact-form input:focus, #contact-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

#contact-form button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #45a049;
}

#contact-form textarea {
    resize: none;
    height: 150px;
}

/* Bouton de redirection */
.redirect-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3b589f; /* Couleur de fond */
    color: white; /* Couleur du texte */
    border: none; /* Sans bordure */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Curseur en forme de main */
}

.redirect-button:hover {
    background-color: #45a049; /* Couleur lors du survol */
}

/* Style pour le bouton "Retour au site" */
.return-button {
    display: block;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.return-button:hover {
    background-color: #218838;
}

/* Responsive pour écrans plus petits */
@media (max-width: 768px) {
    #popup-content-contact {
        width: 90%;
        padding: 20px;
    }

    #contact-form input, #contact-form textarea {
        font-size: 14px;
    }

    #contact-form button {
        font-size: 16px;
        padding: 8px 15px;
    }
}
