/*/----RESET ---/*/
*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    list-style-type: none;
    /* box-shadow: 0 0 0 3px greenyellow inset; */
}



/*-----------------------------------*/
/*-----         RECURRENT       -----*/
/*-----------------------------------*/



#background {

    top: 0;
    left: 0;
    width: 100vh;
    max-width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
}

#background img {
    position: absolute;
}

#background .nuage img {
    top: 0;
    overflow: hidden;
    opacity: 45%;
    animation: nuages calc(12s * var(--i)) linear infinite;
}

#background .chateau img {
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#background .arbre {
    position: fixed;
    height: 100%;
    width: 100vh;
    max-width: 100%;
    bottom: 0;
}

#background .arbreg {
    left: 0;
    background-image: url(img/background/ArbreG.png);
    background-size: 100vh;
    background-repeat: no-repeat;
    background-position: bottom left;
    animation: gradient 15s ease infinite;
}

#background .arbred {
    right: 0;
    background-image: url(img/background/ArbreD.png);
    background-size: 100vh;
    background-repeat: no-repeat;
    background-position: bottom right;
    animation: gradient 15s ease infinite;
}


h1,
h2,
h3,
h4,
h5,
h6,
p,
i,
a,
input,
button,
textarea {
    font-family: "Poiret One", serif;
    font-weight: 400;
    font-style: normal;
    font-weight: bolder;
    color: white;
    text-align: center;
}

p {
    text-shadow: 2px 2px +2px #111;
    /* text-align: justify; */
}

input,
button,
textarea {
    color: black;
}

.center {
    width: 50vw;
    margin: auto;
}

.glass {
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
    background-color: rgba(79, 99, 53, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.3);
}

.myButton {
    box-shadow: inset 0px 1px 0px 0px #caefab;
    background-color: #71b33b;
    border-radius: 6px;
    border: 2px solid #268a16;
    display: inline-block;
    cursor: pointer;
    color: white;
    font-size: clamp(15px, 1vw, 65px);
    font-weight: bolder;
    text-shadow: 2px 2px +2px #111;
    padding: 6px 24px;
    text-decoration: none;
}

.myButton:hover {
    background-color: #3f830b;
}

.myButton:active {
    position: relative;
    top: 1px;
}

.contact {
    animation: contact 1s linear infinite;
}

.message {
    display: none;
    /* Par défaut, les messages sont masqués */
    position: absolute;
    top: 40px;
    left: 42.5%;
    text-align: center;
    z-index: 12;
    width: 15vw;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.visible {
    display: block;
    /* Afficher le message lorsque cette classe est ajoutée */
}

#tarteaucitronManager img {
    display: none;
}


/*-----------------------------------*/
/*-----           header        -----*/
/*-----------------------------------*/

h1 {
    font-family: "Labrada", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-size: clamp(30px, 2vw, 125px);
    margin: 4vh auto;
    text-shadow: 4px 4px 2px #545c3399;
    color: rgb(15, 15, 15);
}

/*-----------------------------------*/
/*-----            main         -----*/
/*-----------------------------------*/

main {
    display: flex;
    flex-direction: column;
}

.acceuil {
    display: flex;
    margin: 12vh auto !important;
}

.acceuil .accimg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1vw;
}

.acceuil .accimg img {
    width: 15vw;
    border-radius: 5px;
}

.acctxt {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
}

.acctxt h2 {
    width: 100%;
    font-family: "Labrada", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: clamp(40px, 1.2vw, 65px);
    text-shadow: 4px 4px 2px #545c3399;
}

.acctxt .boutons {
    width: 100%;
    display: flex;
    margin: 0 1vw;
    justify-content: space-around;
}

.acctxt .boutons a {
    margin: 1.5vw;
}

main {
    z-index: 4;
}

.form {
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    margin-top: 7vh;
    width: 25vw;
}

.form h1 {
    margin: 4vh auto 0vh;
}

.form form {
    width: 25vw;
    margin: 0 auto 0;
    padding: 2vw;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.form form input {
    width: 12vw;
    height: 3vh;
    text-align: center;
    border-radius: 10px;
    font-size: clamp(12px, 0.8vw, 65px);
}

.form form textarea {
    width: 20vw;
    height: 15vh;
    font-size: clamp(12px, 0.8vw, 65px);
    border-radius: 10px;
    color: black;
}

.form form button {
    width: 10vw;
    height: 2vw;
}

.form h2 {
    margin: 2vh auto;
}

.form .reseaux {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 5vh;
    width: 10vw;
}

.form .reseaux i {
    font-size: clamp(52px, 1.6vw, 85px);
}

.prestations {
    display: flex;
    flex-direction: column;
    margin-top: 5vh;
}

.prestations>h1 {
    margin: 1vh auto;
}

.prestations .prestas .prestaequestre>h2,
.prestaagri>h2 {
    margin: 2vh auto;
    text-decoration: underline;
}

.prestations .prestas {
    display: flex;
    justify-content: center;
}

.prestations .prestas .prestaequestre,
.prestaagri {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25vw;
    padding: 20px;
}

.prestations .prestas .prestaequestre>img,
.prestaagri>img {
    width: 15vw;
}

.prestations>.boutons {
    min-height: 5vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.retour {
    margin-top: 0.5vh;
    display: flex !important;
    align-items: center;
    width: 100vw;
    max-width: 100%;
    justify-content: center;
}

.retour i,
i>a {
    color: white;
    padding: 15px;
}

.retour i {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.cgv {
    margin: 2vw auto 8vw !important;
}

.cgv h2 {
    margin: 1vh auto;
    color: black;
    font-family: "Labrada", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: clamp(30px, 2vw, 45px);
}

.cgv p {
    margin: auto 4vw;
    font-size: clamp(20px, 0.75vw, 25px);
    text-shadow: 2px 2px +2px #111;
}

.cgv .ps {
    margin-bottom: 2vh;
}

.cgv .rgpd {
    margin: 2vh auto;
}

.cgv .rgpd div {
    margin: 1vw;
}

.cgv .rgpd div>h3 {
    font-size: clamp(20px, 1.5vw, 35px);
    color: rgb(5, 5, 5);
    text-decoration: underline;
}

/*-----------------------------------*/
/*-----           footer        -----*/
/*-----------------------------------*/

footer {
    display: flex;
    position: static;
    justify-content: center;
    width: 100%;
    margin: 3vh auto;
}

footer .footer {
    bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: rgba(32, 36, 28, 0.75);
}

footer .footeracceuil {
    position: fixed !important;
    bottom: 5vh;
    margin: auto;
}

.footer p,
.footer p>a {
    font-family: 'Poiret One', cursive;
    color: #ffffff;
    text-wrap: nowrap;
}

.footer .emulsion {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.footer .emulsion img {
    width: 100px;
}

/*-----------------------------------*/
/*-----     Scroll To Top       -----*/
/*-----------------------------------*/

.scrollToTopBtn {
    background-color: rgba(32, 36, 28, 0.75);
    border: none;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    line-height: 48px;
    width: 3vw;
    position: fixed;
    bottom: 6vh;
    right: 40px;
    z-index: 75;
    opacity: 0;
    transform: translateY(100px);
    transition: all .5s ease;
}

.showBtn {
    opacity: 1;
    transform: translateY(0);
}



/*-----------------------------------*/
/*-----         Animations      -----*/
/*-----------------------------------*/

@keyframes nuages {
    0% {
        transform: translateX(100%) scaleY(-1);
    }

    100% {
        transform: translateX(-100%) scaleY(-1);
    }
}

@keyframes gradient {
    0% {
        background-size: 100vh;

    }

    50% {
        background-size: 103vh;
    }

    100% {
        background-size: 100vh;
    }
}

@keyframes contact {
    0% {
        transform: scale(1);

    }

    50% {
        transform: scale(1.05);

    }

    100% {
        transform: scale(1);
    }
}


/*-----------------------------------*/
/*-----        Responsive       -----*/
/*-----------------------------------*/

@media screen and (max-width:1500px) {
    footer .footeracceuil {
        flex-direction: column;
    }
}

@media screen and (max-width:1300px) {
    .arbre {
        display: none;
    }

    .center {
        width: 90vw;
    }

    .acceuil {
        margin: 5vh auto !important;
    }

    .acceuil .accimg img {
        width: 25vw;
        margin-top: 2vh;
    }

    .form form {
        width: 70vw;
    }

    .form form input {
        width: 30vw;
    }

    .form form textarea {
        width: 45vw;
        height: 15vh;
    }

    .form form button {
        width: 15vw;
        height: 4vw;
    }

    .form .reseaux {
        width: 20vw;
    }

    .prestations .prestas .prestaequestre,
    .prestaagri {
        width: 40vw;
    }

    .prestations>.boutons {
        margin-bottom: 10vh;
    }
}

@media screen and (max-width:850px) {
    .message {
        left:32.5%;
        width: 35vw;
    }

    footer .footer p>a {
        font-size: clamp(15px, 1vw, 85px);
    }

    .prestations .prestas {
        flex-direction: column;
    }

    .prestations .prestas .prestaequestre,
    .prestaagri {
        margin: auto;
        width: 80vw;
    }

    .prestations>.boutons {
        margin-bottom: 18vh;
    }

    .prestations .prestas .prestaequestre>img,
    .prestaagri>img {
        width: 35vw;
    }
}

@media screen and (max-width:760px) {
    .acceuil {
        margin-bottom: 35vh !important;
    }

    .acceuil .acctxt h1 {
        margin: auto;
    }

    .acceuil .acctxt .boutons {
        margin: 6vh auto;
    }

    .acceuil .acctxt .boutons a {
        margin: auto;
    }

    .scrollToTopBtn {
        width: 5vw;
    }

    .prestations>.boutons {
        margin-bottom: 3vh;
    }

    footer .footer {
        flex-direction: column;
        padding-top: 15px;
    }

    footer .footer a {
        padding: 0.5vh;
    }

    footer,
    footer>.footeracceuil {
        position: static !important;
    }
}

@media screen and (max-width:700px) {

    .acceuil {
        flex-direction: column;
        margin: 5vh auto !important;
    }

    .acceuil .accimg img {
        width: 75vw;
    }

    .form form {
        width: 70vw;
    }

    .form form input {
        width: 50vw;
    }

    .form form textarea {
        width: 55vw;
        height: 15vh;
    }

    .form form button {
        width: 25vw;
        height: 6vw;
    }

    .form .reseaux {
        width: 30vw;
    }
}

@media screen and (max-width:500px) {
    .form form button {
        width: 30vw;
        height: 8vw;
    }

    .myButton {
        padding: 2px;
    }
}