@import url(colors.css);
@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;700&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: "Kanit", sans-serif;
}

main {
    min-width: 340px;
}

h2 {
    font-weight: bolder;
    font-size: 46px;
    margin-left: 50px;
}

h3 {
    font-weight: bolder;
    font-style: italic;
    font-size: 30px;
    text-align: left;
    margin-bottom: 25px;
}

a,
button {
    font-weight: bolder;
    font-size: 20px;
    border: none;
}
p {
    text-align: left;
}
.header_wrapper {
    position: relative;
    width: 100%;
}

.header_bg {
    position: relative;
    width: 100%;
    height: 750px;
    background-image: url(/images/background-ombrage.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;

    font-size: 0;
    display: flex;
    flex-direction: column;
    align-content: space-between;
}

.header_bg span,
.section_4 h2 span {
    display: block;
}

img {
    width: 100%;
}

.logo {
    position: absolute;
    top: 25px;
    left: 150px;
}

.logo img {
    width: 270px;
}

.elements {
    width: 65%;
    position: absolute;
    top: 75px;
    right: 150px;
    display: flex;
    justify-content: right;
    align-items: center;
    color: var(--white);
}

.elements a,
.elements button {
    color: var(--white);
    margin-left: 25px;
    display: inline;
    text-decoration: none;
}

.elements img {
    width: 25px;
}

.elements button {
    background-color: var(--red);
    padding: 10px;
    border: solid var(--white) 3px;
}

.header_wrapper {
    z-index: 10;
}
.header_bg h1 {
    text-align: center;
    width: 1000px;
    margin: 0 auto;
    color: var(--white);
    padding-top: 300px;
    font-size: 50px;
}

.section_1 {
    height: 595px;
    position: relative;
    font-size: 0;
    color: var(--white);
    background-color: var(--red);
    display: flex;
    justify-content: right;
    align-items: center;
}

.section_1 p {
    margin-top: 25px;
}

.tree {
    bottom: -50px;
    display: inline-block;
    width: 60%;
}

.s1_text {
    width: 50%;
    font-size: 16px;
    display: inline-block;
    padding: 50px;
}

.section_2 {
    background-color: var(--white);
    padding: 100px;
}

.section_2 img {
    width: 100%;
}

.section_2 p {
    padding: 25px 0 0 0;
}

.s2_container {
    display: flex;
}

.s2_container div {
    margin: 50px;
}

.s2_container h3 {
    width: 280px;
}

.button-container {
    display: flex;
    justify-content: center;
}

.button-container button {
    padding: 10px 40px;
    color: var(--white);
    background-color: var(--red);
    border: 3px solid var(--red);
}

.section_3 {
    position: relative;
    background-image: url(/images/abattage-abre.jpg);
    background-size: cover;
    width: 100%;
    height: 600px;
}
.mobile picture:last-of-type img {
    position: absolute;
    top: 370px;
    left: 200px;
    width: 825px;
}
.mobile picture:first-of-type,
.mobile picture:nth-child(2) {
    display: none;
}

.section_3 h3 {
    position: absolute;
    color: var(--white);
    top: 50%;
    left: 250px;
}

.section_4 {
    margin-top: 75px;
    padding: 200px 150px 50px 150px;
    display: flex;
    align-items: flex-end;
    font-size: 0;
}

.section_4 > div:first-child {
    width: 650px;
    min-width: 650px;
    font-size: 16px;
}

.image-container {
    width: auto;
    min-width: 850px;
    padding-left: 5%;
}

.section_4 div:first-of-type img {
    width: 300px;
}

.section_4 h2 {
    margin: 0;
}

.section_4 p {
    width: 75%;
}

.section_5 {
    width: 100%;
    font-size: 0;
    padding: 0 150px 50px 150px;
    vertical-align: top;
    display: flex;
    flex-direction: row;
}

.contact_form {
    vertical-align: top;
    display: inline-block;
    width: 650px;
    min-width: 650px;
    text-align: left;
    font-size: 16px;
}

#honeypot {
    display: none;
}

.form_group_label label {
    display: none;
}
.form_group_label input {
    width: 80%;
    height: 50px;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    border: solid 1px var(--red);
    font-weight: bolder;
}

.form_group_label input::placeholder {
    color: black;
}
.form_group_checkbox input {
    margin: 30px 0 30px 30px;
}
.service_checkbox:checked::before {
    background-color: red;
    border: red;
}

.form_group_upload {
    position: relative;
    align-items: center;
    margin: 0 auto;
    align-items: center;
}
.form_group_upload label {
    display: none;
}

.form_group_upload input[type="file"] {
    position: absolute;
    opacity: 0;
    max-width: 350px;
    height: 100%;
    cursor: pointer;
}

.form_group_upload::before {
    background-image: url(/images/downloard-icon.png);
    background-repeat: no-repeat;
    background-position-x: 170px;
    padding: 5px 0px;
    overflow: visible;
    content: "Téléverser vos photos";
    display: inline-block;
    width: 100%;
    color: var(--grey);
    font-weight: bolder;
}

.offset {
    position: absolute;
    top: 0;
    left: 0;
}

.error {
    color: red;
}

li {
    list-style: none;
}

.contact_form button {
    color: var(--white);
    margin: 25px auto;
    border: solid 3px var(--red);
    background-color: var(--red);
    padding: 10px 100px 10px 100px;
}

button:hover {
    border: solid 3px var(--grey);
    background-color: var(--grey);
}

.section_5 > div:last-of-type {
    display: inline-block;
    font-size: 16px;
    padding-left: 5%;
    min-width: 250px;
}

.section_5 > div:last-of-type a {
    margin: auto 0;
}

.section_5 img {
    width: 25px;
}

.section_5 a {
    display: block;
    width: max-content;
    color: var(--black);
    text-decoration: none;
    margin: 10px 10px;
}

.bg_section_4_5 {
    background-image: url(/images/Tronc.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 40%;
}

.section_6 {
    padding: 100px 150px;
    text-align: center;
    width: 80%;
}

.section_6 h3 {
    margin: 0;
}

.footer_bg {
    background-image: url(/images/background-footer.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

footer {
    position: relative;

    color: var(--white);
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    top: 150px;
}

footer .logo div {
    margin-left: 50px;
    width: max-content;
    font-size: 14px;
}

footer .elements {
    top: 175px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

footer .elements a:first-child,
footer .elements > div:last-child {
    font-weight: lighter;
    font-size: 14px;
}

#cookies-configuration-link{
    font-weight: lighter;
    font-size: 14px;
}

footer .elements > div:last-child {
    margin-top: 25px;
}

footer .elements > div:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
}

footer > a {
    text-align: center;
    margin: 0 auto;
    max-width: max-content;
    margin-bottom: 50px;
    font-size: 12px;
    color: var(--white);
    text-decoration: none;
    font-weight: lighter;
}
.g-recaptcha {
    margin: 15px auto;
}

a:hover {
    color: var(--grey);
}
.footer_wrapper {
    padding-top: 300px;
}

#ty_message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    text-align: center;
}
#ty_message.active {
    opacity: 1;
}
#ty_message div {
    font-family: "Kanit", sans-serif;
    font-size: 20px;
    color: var(--white);
}

.algoperfo a{
    color:#000;
    font-size: 1em;
    text-decoration: none;
    text-align: left;
    font-weight: normal;
}

@media only screen and (max-width: 1213px) {
    .footer_wrapper .logo div {
        display: none;
    }
}

@media only screen and (max-width: 1100px) {
    .header_wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .logo {
        padding: 50px;
        position: unset;
        width: 100%;
        display: flex;
        justify-content: center;
        transition: background-color 1s ease;
    }
    .logo img {
        width: 300px;
        text-align: center;
    }

    .elements {
        width: 100%;
        top: 275%;
        left: 50%;
        transform: translate(-50%, -50%);
        justify-content: center;
    }

    .elements a {
        display: none;
    }
    .elements button {
        font-size: 26px;
        margin: 0;
    }

    .header_bg h1 {
        padding: 10px;
        width: 100%;
        font-size: 45px;
    }
    .section_1 {
        flex-wrap: wrap-reverse;
        height: auto;
    }

    .s1_text {
        width: 100%;
        padding-top: 0;
    }

    .s1_text h3 {
        font-size: 27px;
        width: 100%;
        margin: 0 auto 25px;
        text-align: center;
    }

    .tree {
        width: 100%;
    }
    .section_2 {
        padding: 0;
    }

    .section_2 h2 {
        margin: 50px 0px;
        text-align: center;
        font-size: 70px;
    }

    .s2_container {
        flex-direction: column;
    }

    .s2_container div {
        margin: 10px;
    }

    .section_2 button {
        margin-top: 25px;
    }

    .section_3 {
        height: auto;
        margin-top: 50px;
        background-image: unset;
        background-color: yellow;
    }

    .section_3 > picture img {
        position: absolute;
        left: 50%;
        top: 95%;
        transform: translate(-50%, -50%);
        width: 90%;
    }

    .section_3 div:first-child {
        width: 100%;
    }

    .section_3 div:first-child img {
        width: 100%;
        position: unset;
        margin: 0;
        padding: 0;
    }

    .mobile {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .mobile picture:first-of-type,
    .mobile picture:nth-child(2) {
        display: flex;
    }

    .section_3 div:first-child {
        width: 100%;
    }

    .section_3 picture:last-of-type img {
        width: 80%;
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        top: 95%;
        z-index: 20;
    }

    .section_3 h3 {
        all: unset;
        width: 80%;
        position: absolute;
        left: 50%;
        top: 70%;
        font-size: 50px;
        transform: translate(-50%, -50%);
        text-align: center;
        font-family: "Kanit", sans-serif;
        font-style: italic;
        font-weight: bolder;
        color: var(--white);
    }

    .section_4 {
        margin-top: 150px;
        padding: 0;
        display: block;
        position: relative;
        padding-bottom: 50px;
    }

    .section_4 div:first-child {
        min-width: unset;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .section_4 div:first-child picture {
        width: min-content;
        margin: 0 auto;
    }

    .section_4 div:first-child img {
        width: 350px;
    }

    .image-container {
        all: unset;
        position: absolute;
        width: 100%;
        top: 430px;
        left: 50%;
        transform: translate(-50%);
        margin: 0;
        max-width: 600px;
        padding: 0;
    }

    .section_4 h2 {
        margin: 50px auto 550px;
        text-align: center;
        max-height: 200px;
    }

    .section_4 h3 {
        max-width: 60%;
    }

    .section_4 h3,
    .section_4 p {
        margin: 50px auto 0;
        text-align: center;
    }

    .image-container img {
        width: 100%;
    }
    .form_group_checkbox {
        display: flex;
        justify-content: space-around;
    }

    .section_5 {
        all: unset;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .section_5 .contact_form {
        all: unset;
        display: flex;
        flex-direction: column;
    }
    .form_group_upload::before {
        width: 200px;
    }

    .bg_section_4_5 {
        background-size: 60%;
    }

    .contact_form div {
        display: flex;
        justify-content: center;
    }

    .form_group_checkbox {
        all: unset;
        margin: 20px 0;
    }

    .form_group_checkbox label {
        display: none;
    }
    .form_group_checkbox input {
        margin: 0 20px;
    }

    .section_5 > div:last-child {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        text-align: center;
        padding: 0;
    }

    .section_5 a {
        margin: 10px 0px;
        width: 100%;
    }

    .section_5 > div:last-child a:nth-of-type(2) {
        font-weight: lighter;
    }

    .section_6 {
        width: 100%;
        padding: 0;
    }

    .section_6 h3,
    .section_6 p {
        width: 100%;
        text-align: center;
        margin: 10px 0;
        padding: 0 25px;
    }

    .footer_wrapper {
        display: flex;
        flex-direction: column;
        padding: 50px;
    }

    .footer_wrapper .logo div {
        display: none;
    }

    .footer_wrapper .logo img {
        width: 400px;
    }

    footer .elements {
        margin-top: 175px;
        width: max-content;
    }
}
@media only screen and (max-width: 870px) {
    .section_3 h3 {
        width: 100%;
    }
}

@media only screen and (max-width: 550px) {
    .section_4 h2 {
        margin: 50px auto 350px;
        text-align: center;
        max-height: 200px;
    }
    .section_4 {
        background-size: 300px;
        background-position-y: 800px;
    }
    .section_4 {
        margin-top: 20%;
    }
}
@media only screen and (max-width: 430px) {
    .header_bg h1 {
        font-size: 36px;
    }
    .header_bg .elements {
        top: 260%;
    }

    .header_bg .elements button {
        font-size: 20px;
        padding: 15px 30px;
    }
    .section_1 h3 {
        font-size: 20px;
    }
    p {
        text-align: left;
    }

    .tree {
        height: 225px;
    }

    .tree img {
        position: absolute;
        top: 68%;
    }

    .section_2 {
        margin: 40px 10px 10px 10px;
    }

    .section_2 h2 {
        font-size: 40px;
    }

    .section_2 button {
        margin: 25px;
        margin-bottom: 0;
        font-size: 16px;
    }

    .section_3 h3 {
        font-size: 33px;
    }

    .section_4 h2 {
        padding: 0 5px;
        font-size: 31px;
    }

    .image-container {
        top: 325px;
    }

    .section_4 h3 {
        margin-top: 0;
        font-size: 28px;
        max-width: 80%;
    }

    .section_4 p {
        width: 90%;
    }

    input.service_checkbox {
        margin: 0 10px;
    }
    .section_6 h3 {
        padding: 0;
        font-size: 20px;
    }

    .footer_wrapper .logo img {
        width: 300px;
    }

    .footer_wrapper .elements div:last-child,
    footer > a {
        font-size: 16px;
    }

    .footer_wrapper .elements div:last-child {
        margin-top: unset;
    }
}
@media only screen and (max-width: 375px) {
    .tree img {
        top: 73%;
    }
    .image-container {
        top: 26%;
    }
}

@media only screen and (max-width: 360px) {
    .image-container {
        top: 29%;
    }
}

@media only print {
    h1,
    h2,
    h3,
    h4,
    p,
    a,
    li {
        color: #000 !important;
    }
    nav {
        display: none;
    }
}
