.contactsection {
    background: var(--backgroundaccueil);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    width: 100%;
    gap: 5rem;
    padding-inline: calc(var(--espacecote) * 3);
    overflow: hidden;
}

.coordonnee {
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
}

.coordonnee img {
    width: 15rem;
}

.presentationpersonne {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0px;
}

.presentationpersonne h2 {
    font-family: var(--ibm);
    font-size: 2rem;
    color: #000000;
}

.presentationpersonne p {
    color: #000000;
    padding: 0px;
    margin: 0px;
    font-family: var(--ibm);

}

.mentioncontact {
    color: #00000083;
    font-size: 0.8rem;
    padding: 0px;
    margin: 0px;
}

.contact-container {
    z-index: 1;
    width: 40%;
    min-width: 500px;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: fit-content;
}


.espacetexte {
    height: 1rem;
}

#casedemig {
    width: calc(50% - 7px);
    margin-right: 5px;
}

#casedemid {
    width: calc(50% - 7px);
    margin-left: 5px;
}


.contact-container img {
    width: 10rem;
}

.contact-title {
    color: #000000;
    font-size: 2rem;
    text-align: center;
    padding: 0px;
    margin: 0px;
    text-transform: uppercase;
    background-color: var(--vertmarque);
    padding-inline: 0.5rem;
    margin-bottom: 1rem;
}

.contact-input,
.contact-textarea {
    font-family: var(--ibm);
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background-color: var(--backgroundaccueil);
    border: 1.8px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.contact-textarea {
    min-height: 200px;
    max-height: 200px;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: var(--vertmarque);
    color: var(--vertmarquedeux);
    outline: none;
}

.contact-button {
    width: 100%;
    background-color: var(--greymouvaplan);
    color: grey;
    font-family: var(--ibm);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: var(--anglebouton);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.contact-button:hover {
    background-color: var(--vertmarque);
    color: var(--vertmarquedeux);
}

@media (max-width: 768px) {

    .contactsection {
        background: var(--backgroundaccueil);
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        padding-top: 10rem;
        height: 85vh;
        width: 100%;
        gap: 1rem;
        padding-inline: var(--espacecote);
        overflow: hidden;
    }

    .coordonnee img {
        display: none;
    }

    .coordonnee {
        display: none;
        z-index: 3;
        height: 100%;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
    }

    .contact-container {
        z-index: 1;
        width: 40%;
        min-width: 1%;
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 1rem;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        height: fit-content;
    }

    #casedemig {
        width: calc(50% - 7px);
        margin-right: 5px;
    }

    #casedemid {
        width: calc(50% - 7px);
        margin-left: 5px;
    }


    .contact-container img {
        width: 10rem;
    }

    .contact-title {
        color: #000000;
        font-size: 2rem;
        text-align: center;
        padding: 0px;
        margin: 0px;
        text-transform: uppercase;
        background-color: var(--vertmarque);
        padding-inline: 0.5rem;
        margin-bottom: 1rem;
    }

    .contact-input,
    .contact-textarea {
        font-family: var(--ibm);
        width: 100%;
        padding: 12px 15px;
        margin-bottom: 15px;
        background-color: var(--backgroundaccueil);
        border: 1.8px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        resize: vertical;
        transition: border-color 0.3s ease;
    }

    .contact-textarea {
        min-height: 100px;
        max-height: 100px;
    }

    .contact-input:focus,
    .contact-textarea:focus {
        border-color: var(--vertmarque);
        color: var(--vertmarquedeux);
        outline: none;
    }

    .contact-button {
        width: 100%;
        background-color: var(--greymouvaplan);
        color: grey;
        font-family: var(--ibm);
        border: none;
        padding: 15px;
        font-size: 1.1rem;
        border-radius: var(--anglebouton);
        cursor: pointer;
        font-weight: 600;
        transition: background-color 0.3s ease;
        display: flex;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
    }

    .contact-button:hover {
        background-color: var(--vertmarque);
        color: var(--vertmarquedeux);
    }
}

@media (min-width: 2000px) {
    .contactsection {
        background: var(--backgroundaccueil);
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 100vh;
        width: 100%;
        gap: 5rem;
        padding-inline: calc(var(--espacecote) * 1);
        overflow: hidden;
    }

}