/* Réinitialisation de la marge et du padding pour le corps */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Section de contact avec un fond couvrant toute la hauteur */
#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 8%;
    flex: 1; /* Permet d'étendre cette section pour remplir l'espace disponible */
    background: url('../images/bibli.webp') no-repeat center center fixed;
    background-size: cover;
    box-sizing: border-box;
    width: 100%;
}

/* Conteneur de localisation et formulaire */
.localisation_contact_div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px; /* Limite la largeur totale pour une meilleure apparence */
    background-color: rgba(255, 255, 255, 0.9); /* Fond transparent pour contraste */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; /* Pour meilleure responsivité */
}

/* Section de localisation */
.localisation, .form_contact {
    width: 48%; /* Les deux sections prennent chacune 48% de la largeur */
    padding: 20px;
}

/* Iframe Google Maps */
.localisation iframe {
    width: 100%;
    border-radius: 8px;
    height: 300px; /* Taille fixe pour l'iframe */
}

/* Titres de section */
.form_contact h3, .localisation h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    color: #d4af37; /* Or */
}

/* Style du formulaire */
.form_contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Champs de formulaire */
.form_contact input, .form_contact textarea {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background-color: #fff;
}

/* Bouton de soumission */
.form_contact input[type="submit"] {
    background-color: #d4af37;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.form_contact input[type="submit"]:hover {
    background-color: #333;
}

/* Style du footer */
footer {
    background-color: #d4af37;
    width: 100%;
    text-align: center;
    padding: 10px;
    color: #fff;
    margin-top: auto; /* Pour coller le footer en bas de la page */
    box-sizing: border-box;
}

/* Amélioration de la responsivité */
@media (max-width: 900px) {
    .localisation, .form_contact {
        width: 100%; /* Les sections prennent 100% de la largeur sur petits écrans */
        margin-bottom: 20px;
    }

    #contact {
        padding: 30px 5%;
    }

    .form_contact h3, .localisation h3 {
        font-size: 20px;
    }

    .form_contact input, .form_contact textarea {
        font-size: 13px;
    }

    .form_contact input[type="submit"] {
        padding: 10px;
        font-size: 14px;
    }
}
