html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #E8E4D9;
}

.contact_page {
    width: 100%;
    background-color: #E8E4D9;
}

.contact_intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: 90%;
    max-width: 850px;

    margin: auto;
    padding: 60px 20px 40px;
}

.contact_surtitle {
    color: #71A955;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.contact_intro h2 {
    color: #17341A;
    font-size: 2.5rem;
    margin: 10px 0 20px;
}

.contact_intro p {
    max-width: 700px;
    line-height: 1.6;
    font-size: 1.05rem;
}


/* =================================
   CONTENU
================================= */

.contact_content {
    width: 90%;
    max-width: 1100px;

    margin: 0 auto;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    gap: 60px;

    padding-bottom: 70px;
}


/* =================================
   COORDONNÉES
================================= */

.contact_information {
    width: 35%;

    background-color: #17341A;
    color: white;

    padding: 35px;

    border-radius: 10px;

    box-shadow: 0 5px 15px -5px #000000;
}

.contact_information h3 {
    color: #71A955;
    font-size: 1.6rem;

    margin-top: 0;
    margin-bottom: 35px;
}

.contact_info {
    display: flex;
    flex-direction: column;

    margin-bottom: 30px;
}

.contact_info strong {
    color: #F68424;
    margin-bottom: 8px;
}

.contact_info a {
    color: white;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact_info a:hover {
    text-decoration: underline;
}

.contact_info p {
    margin: 2px 0;
}


/* =================================
   FORMULAIRE
================================= */

.contact_form_container {
    width: 55%;

    background-color: white;

    padding: 35px;

    border-radius: 10px;

    box-shadow: 0 5px 15px -5px #000000;
}

.contact_form_container h3 {
    color: #17341A;

    font-size: 1.6rem;

    margin-top: 0;
    margin-bottom: 30px;
}

.contact_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form_row {
    display: flex;
    gap: 20px;
}

.form_row .form_group {
    flex: 1;
}

.form_group {
    display: flex;
    flex-direction: column;
}

.form_group label {
    margin-bottom: 8px;

    color: #17341A;

    font-weight: 600;
}

.form_group input,
.form_group select,
.form_group textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #aaa;
    border-radius: 6px;

    background-color: #fafafa;

    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form_group textarea {
    resize: vertical;
    min-height: 150px;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    outline: none;

    border-color: #71A955;

    box-shadow: 0 0 0 3px rgba(113, 169, 85, 0.2);
}


/* =================================
   CONSENTEMENT
================================= */

.form_consent {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    font-size: 0.9rem;
    line-height: 1.4;
}

.form_consent input {
    margin-top: 3px;
}


/* =================================
   BOUTON
================================= */

.contact_submit {
    align-self: flex-start;

    padding: 14px 28px;

    border: none;
    border-radius: 8px;

    background-color: #17341A;
    color: #F68424;

    font-size: 1rem;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 2px 4px darkslategray;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.contact_submit:hover {
    transform: scale(1.05);
}


/* =================================
   RESPONSIVE
================================= */

@media screen and (max-width: 768px) {

    .contact_intro {
        width: 100%;

        padding: 40px 20px 30px;
    }

    .contact_intro h2 {
        font-size: 2rem;
    }

    .contact_content {
        width: 100%;

        flex-direction: column;

        gap: 25px;

        padding: 0 20px 50px;
    }

    .contact_information,
    .contact_form_container {
        width: 100%;
    }

    .form_row {
        flex-direction: column;
    }

    .contact_submit {
        width: 100%;
    }
}

.form_status {
    min-height: 25px;
    margin-top: 5px;

    font-size: 0.95rem;
    font-weight: 600;

    line-height: 1.4;
}

.form_success {
    color: #2e531f;

    background-color: rgba(113, 169, 85, 0.15);

    padding: 12px 15px;

    border-left: 4px solid #71A955;
    border-radius: 5px;
}

.form_error {
    color: #8b1e1e;

    background-color: rgba(180, 50, 50, 0.1);

    padding: 12px 15px;

    border-left: 4px solid #b43232;
    border-radius: 5px;
}

.contact_submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}