body {
    margin: 0;
    padding: 0 2%;
    overflow: auto;
    background-image: url("../images/fond.webp");
    background-size: cover;
    background-attachment: fixed;
}

.contact {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    margin: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #000;
    border-radius: 15px;
    box-shadow: 0 0 5px #000;
}

.contact-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
}

@media screen and (min-width: 800px) {
    .contact-container {
        flex-direction: row-reverse;
        margin-top: 15vh;
    }

    .contact {
        max-width: 45%;
    }

    .contact:first-child {
        p {
            padding: 0 15px;
            margin: auto;
        }
        width: fit-content;
    }
}

form {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
}

h2 {
    text-align: center;
}

input {
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #000;
}

button {
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #000;
    background-color: #000;
    color: #fff;
}

#message {
    display: block;
    overflow-y: auto;
    min-height: calc(3em + 20px);
    max-height: calc(10em + 20px);
    line-height: 20px;
    background: white;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #000;
    box-sizing: border-box;
    font-family: monospace;
    color: fieldtext;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 10px;
    bottom: 10px;
    max-width: 20%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.8);
    border: solid 3px #000;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 5px #000;
}