/* Ajout de l'image de background */
body {
    background: url('../images/contact.jpg') no-repeat center center fixed;
    background-size: cover;
}

.contact-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Légère transparence pour lisibilité */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
}

.contact-container h1 {
    text-align: center;
    color: black;
    font-size: 2.2em;
    margin-bottom: 25px;
}

.contact-container h2 {
    color: #6BBAAE;
    border-bottom: 2px solid #6BBAAE;
    padding-bottom: 5px;
    margin-top: 25px;
}

.contact-info, .contact-map, .contact-form {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8); /* Légère opacité pour lisibilité */
    border-radius: 8px;
}

.contact-container a {
    color: #6BBAAE;
    text-decoration: none;
    font-weight: bold;
}

.contact-container a:hover {
    text-decoration: underline;
}

/* Carte Google Maps */
.map-container {
    width: 100%;
    height: 350px;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

/* Bouton Doctolib */
.button-container {
    text-align: center;
    margin-top: 20px;
}

.btn-doctolib {
    background-color: #6db3a3;
    color: white !important;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-doctolib:hover {
    background-color: #5a9b8d;
}

/* Formulaire */
.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: bold;
    margin-top: 10px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 5px;
}

.contact-form textarea {
    resize: vertical;
}

.btn-submit {
    margin-top: 15px;
    padding: 10px;
    background-color: #6db3a3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: #5a9b8d;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-container {
        width: 95%;
        margin: 30px auto;
        display: block;              /* ✅ évite les effets de flex */
        box-sizing: border-box;      /* ✅ sécurité côté padding */
    }

    .contact-container h1 {
        font-size: 1.8em;
    }
}
