/* ROOT */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    max-width: 100%;
}

main {
    width: 90%;
    margin: 0 auto;
}

h1 {
    font-family: "droid-serif", serif;
    font-weight: 700;
    font-size: 20px;
}

h2 {
    font-family: "droid-serif", serif;
    font-weight: 600;
}

p {
    font-family: "droid-serif", serif;
    font-weight: 400;
}

.stop-scroll {
    position: fixed;
}

/* ENTER BODY */
.body-enter {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 85vh;
}

.body-enter img {
    margin-top: 20px;
    width: 200px;
}

.body-enter h1 {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 15px;
    border-bottom: 2px solid #435A03;
}

.body-enter p {
    margin-top: 70px;
    margin-bottom: 0;
    font-size: 12px;
}

.body-enter iconify-icon {
    margin-top: 26px;
    font-size: 50px;
}

.icon-langue {
    display: grid;
    grid-template-areas: "fr en";
    grid-template-columns: 50% 50%;
    justify-content: space-between;
    justify-items: center;
    width: 80%;
}

.body-enter .fr {
    grid-area: fr;
}

.body-enter .en {
    grid-area: en;
}


/* ENTER FOOTER */
footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #435A03;
    width: 100%;
    position: relative;
    bottom: 0;
}

footer img {
    margin-top: 10px;
    width: 100px;
}

footer p {
    color: #FFF;
    margin: 10 0;
    font-size: 12px;
}

/*---------------------------------------------- VERSION FR ----------------------------------------------*/

/* HEADER */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-bottom: 10px;
    padding-top: 10px;
    display: grid;
    grid-template-columns: 20% 60% 20%;
    align-items: center;
    justify-items: center;
    background-color: #FFF;
    box-shadow: 0 3px 11px 3px;
    z-index: 3;
}

.main-link {
    font-size: 17px;
    font-weight: 700;
    margin-left: 27px;
    text-decoration: none;
    color: #435A03;
    border-bottom: 2px solid #435A03;
}

nav img {
    width: 80px;
    margin: 0 auto;
}

/* MENU */

/* -------------- Burgur styling ----------------- */

.btn {
    height: 30px;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    flex-direction: column;
    cursor: pointer;
}

.btn .bar1,
.btn .bar3 {
    height: 2px;
    width: 35px;
    background: #435A03;
    -webkit-transition: -webkit-transform .5s ease-in-out;
    -ms-transition: -ms-transform .5s ease-in-out;
    transition: transform 500ms ease-in-out;
}

.btn .bar2 {
    height: 2px;
    width: 45px;
    background: #ACAD86;
    transition: all .5s ease-in-out;
    transform: rotate(540deg);
}

/* ----------- close btn ------------- */
.close-btn {
    height: 8px;
    width: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.close-btn .bar1 {
    transform: rotate(-130deg);
    height: 2px;
    width: 35.98px;
    display: block;
    background: #435A03;
    position: fixed;
    -webkit-transition: -webkit-transform .8s ease-in-out;
    -ms-transition: -ms-transform .8s ease-in-out;
    transition: transform .8s ease-in-out;
}

.close-btn .bar2 {
    transform: rotateZ(130deg);
    height: 2px;
    width: 30px;
    display: block;
    background: #2D3A69;
    position: fixed;
    -webkit-transition: -webkit-transform .5s ease-in-out;
    -ms-transition: -ms-transform .5s ease-in-out;
    transition: transform .5s ease-in-out;
}

.close-btn .bar3 {
    transform: rotateZ(130deg);
    height: 2px;
    width: 35.98px;
    display: block;
    background: #ACAD86;
    position: fixed;
    -webkit-transition: -webkit-transform .5s ease-in-out;
    -ms-transition: -ms-transform .5s ease-in-out;
    transition: transform .5s ease-in-out;
}

/* ------------- Hide menu ----------- */
.menu {
    display: none;
}

/* ------------------- Menu styling --------------- */
.open-menu {
    width: 100%;
    height: 100%;
    background-color: #ACAD86;
    margin-top: 90px;
    display: flex;
    position: fixed;
    justify-content: space-around;
    top: 0;
    z-index: 2;
}

.open-menu ul li {
    padding-top: 5px;
    list-style: none;
    text-align: center;
}

ul {
    max-height: 80%;
    margin-top: 0;
    margin-bottom: 0px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.open-menu ul li a {
    z-index: 200;
    position: relative;
    font-size: 18px;
    font-family: "droid-serif", serif;
    font-weight: 600;
    text-decoration: none;
    color: #FFF;
}

.open-menu ul li a:hover {
    border-bottom: 5px solid #435A03;
    transition: 0.2s all;
}

/* BODY ACCUEIL*/
header {
    padding-top: 80px;
    width: 100%;
    position: relative;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

header img {
    margin-top: 0px;
    width: 100%;
    object-fit: cover;
}

header h2 {
    color: #FFF;
    background-color: rgb(67, 90, 3, 0.5);
    width: 80%;
    position: absolute;
    top: 50%;
    font-size: 20px;
    border-radius: 5px;
}

/* CARROUSEL */
.slider-section {
    height: 50vh;
    overflow: hidden;
    width: 90%;
    margin: 0 auto;
}

.hero {
    text-align: center;
    border-bottom: 2px solid #435A03;
}

#slider {
    width: 90%;
    margin: 0 auto;
    position: absolute;
    height: inherit;
}
#slider a{
    background-color: #435A03;
    padding: 0 20px;
    border-radius: 20px;
}

.img-container.active a{
    z-index: 2;
}

/* pour le slider d'images seules */
.slider-section.slider-img {
    width: auto;
    margin-bottom: 20px;
}

.slider-img #slider {
    left: 50%;
    transform: translateX(-50%);
}

.slider-img .img-container {
    display: block;
}

.img-container {
    height: 100%;
    width: 100%;
    margin: 0 auto;
    transition: 1s opacity ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    /* par défaut l'image n'a pas d'opacité (= invisible) */
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

.img-container h1 {
    position: absolute;
    color: #FFF;
    background-color: rgb(67, 90, 3, 0.8);
    text-align: center;
    font-size: 16px;
    left: 50%;
    transform: translate(-50%);
    width: 70%;
    border-radius: 5px;
    margin-bottom: 40px;
}

.img-container a {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    text-decoration: none;
    color: #FFF;
}

.img-container button {
    position: absolute;
    color: #FFF;
    background-color: rgb(67, 90, 3, 0.8);
    font-size: 12px;
    left: 50%;
    transform: translateY(-50%);
    border-radius: 15px;
    z-index: 1;
}

.img-container.active {
    /* si notre div de classe 'img-container' a, en plus de ça, la classe 'active' */
    opacity: 1;
    /* alors l'opacité sera de 1 (= visible) */
}

.img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

 /* CAROUSEL GALLERY */
 .carousel_gallery{
    padding-left: 5px;
    padding-right: 5px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 13px 77px 4px;
    border-radius: 8px;
    height: 320px;
    margin: 30px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    overflow-y: hidden; 
  }
.image_container_gallery{
    display: flex;
    gap: 120px;
    overflow-x: auto;
    scroll-snap-type:x mandatory;
}

.image_container_gallery .img img{
    width: auto;
    height: 100%;
    object-fit: cover;
}
/* Code du slider précédent/suivant */
.btn-container button {
    font-size: 35px;
    text-align: center;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}

.btn-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#prev {
    padding: 0;
    padding-left: 5px;
    color: #ACAD86;
}

#prev iconify-icon {
    background-color: #435A03;
    border-radius: 60px;
}

#next {
    padding: 0;
    padding-right: 5px;
    color: #ACAD86;
}

#next iconify-icon {
    background-color: #435A03;
    border-radius: 60px;
}

.piscine {
    display: flex;
    flex-flow: column;
    align-items: center;
}
.piscine-section .img{
    height: 300px;
}
.img-box {
    margin: 0 auto;
    width: 90%;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.piscine-section p {
    margin: 13px 20px;
    line-height: 25px;
    text-align: justify;
}

.localisation-section {
    width: 100%;
}

/*----------------------------- GITE -----------------------------*/
/* BODY FERME*/
.body-ferme{
    margin-top: 19px;
}
.body-ferme p {
    margin: 20px;
    text-align: center;
}

.body-ferme canvas {
    width: 100%;
    height: 2px;
    background-color: #435A03;
}
.body-ferme h2{
    text-align: center;
}

.salon {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.salon img{
    width: 100%;
    object-fit: contain;
    margin: 16px auto;
}

.salon h2 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 13px;
    text-align: center;
}

.salon p {
    margin: 0 20px;
    margin-bottom: 13px;
    text-align: center;
}

.body-contact {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.body-contact h1 {
    text-align: center;
    margin-top: 152px;
    margin-bottom: 13px;
    border-bottom: 2px solid #435A03;
}

.FORM {
    display: flex;
    justify-content: center;
    width: 100%;
}

.FORM form {
    width: 50%;
}

.form-label {
    font-family: "droid-serif", serif;
    font-size: 15px;
}

.form-control {
    width: 100%;
}

.FORM button {
    margin-top: -15px;
    margin-bottom: 10px;
    background-color: #435A03;
    height: 25px;
    border-radius: 20px;
    color: #FFF;
    transform: translate(-50%);
    left: 50%;
    position: relative;
}

.localisation-contact {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.localisation-contact h1 {
    text-align: center;
    margin-top: 26px;
    margin-bottom: 13px;
    border-bottom: 2px solid #435A03;
}


.body-our-region {
    display: flex;
    flex-flow: column;
    align-items: center;
    margin-top: 60px;
}

.body-our-region h2 {
    border-bottom: 1px solid #435A03;
    font-size: 18px;
    margin-top: 26px;
}

.body-our-region p {
    margin: 13px 20px;
    text-align: justify;
}

.body-our-region img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.localisation-region {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.localisation-region h1 {
    text-align: center;
    margin-top: 26px;
    margin-bottom: 13px;
    border-bottom: 2px solid #435A03;
}

/* TARIFS */

.table-style  {
    border-collapse: collapse;
    box-shadow: 0 5px 50px rgba(0,0,0,0.15);
    cursor: pointer;
    margin: 0px auto;
    border: 2px solid #435A03;
}

thead tr {
    background-color: #ACAD86;
    color: #fff;
    text-align: left;
}

th, td {
    padding: 15px 20px;
    text-align: center;
}

tbody tr, td, th {
    border: 1px solid #ddd;
}

tbody tr:nth-child(even){
    background-color: #f3f3f3;
}



/* FOOTER */
footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #435A03;
    width: 100%;
}

footer img {
    margin-top: 10px;
    width: 100px;
}

footer p {
    color: #FFF;
    margin: 10px 0;
    font-size: 12px;
}

footer a {
    text-decoration: none;
    color: #ACAD86;
}

/*---------------------------------------------- VERSION IPAD ----------------------------------------------*/

@media (min-width: 700px) {
    .image_container_gallery{
        gap: 20px;
    }
    P{
        font-size: 20px;
    }
    header h2{
        font-size: 25px;
    }
    header img{
        height: 400px;
    }
    .open-menu ul li a {
        font-size: 27px;
    }


    .region{
        display: grid;
        grid-template-areas: 
        "header header"
        "img text";
    }
    
    .region2{
        display: grid;
        grid-template-areas: 
        "header header"
        "text img";
    }
    
    .our-region h2{
        grid-area: header;
    }
    .our-region p{
        grid-area: text;
    }
    
    .our-region img{
        grid-area: img;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    

}

@media screen and (min-width: 1100px) {
    nav {
        grid-template-areas: "left center right"
            "footer footer footer";
    }

    .hamburger_menu {
        display: none;
    }

    .menu {
        display: flex;
        grid-area: footer;
    }

    .menu ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        padding-left: 20px;
        background-color: #ACAD86;
    }

    .menu ul li {
        margin-top: 11px;
        margin-bottom: 7px;
        list-style: none;
        text-align: center;
        margin-right: 20px;
    }

    .menu ul li a {
        z-index: 200;
        position: relative;
        font-size: 1rem;
        font-family: "droid-serif", serif;
        font-weight: 600;
        text-decoration: none;
        color: #FFF;
    }

    .menu ul li a:hover {
        border-bottom: 5px solid #000;
        transition: 0.2s all;
    }

    header {
        padding: 0;
    }

    header .third-home {        /* grenier */
        height: 450px;
        margin-top: 100px;
        object-position: 50% 85%;
    }

    header .second-home {       /* ecurie + ferme */
        height: 450px;
        margin-top: 100px;
        object-position: 50% 55%;
    }

    header .first-home {       /* Home + Hirondelle*/
        height: 450px;
        margin-top: 100px;
        object-position: 50% 80%;
    }

    .img{
        object-position: 50% 70%;
    }

    .slider-section{
        height: 70vh;
        margin-top: 80px;
    }

    .body-contact h1 {
        margin-top: 182px;
    }

    .piscine-section p{
        margin:13px 50px;
        line-height: 30px;
    }
    P{
        font-size: 22px;
    }
    header h2{
        font-size: 27px;
    }
    .body-our-region{
        margin-top: 90px;
    }
    .body-ferme{
        margin-top: 30px;
    }
    .salon img{
        height: 400px;
    }
    .salon-section img{
        height: 400px;
        width: auto;
    }
    .img-box{
        text-align: center;
    }
}