@font-face {
    font-family: 'megan_juneregular';
    src: url('fonts/megan_june-webfont.woff2') format('woff2'),
         url('fonts/megan_june-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'cabinregular';
    src: url('fonts/cabin-regular-webfont.woff2') format('woff2'),
         url('fonts/cabin-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

:root{
    --color1: #933746;
    --color2: #419649;
    --titleMenu: 'megan_juneregular';
    --text:'cabinregular';
    --textDarkBackground : #FFF;
    --darkBackgroundColor :#000;
    --interBackgroundColor: #DDDCDC;
    --lightBackgroundColor : #fff;
}

*{
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none; /*Pas de souligé*/
}
ul{
    list-style-type: none; /*Pas de puces */
}

body{
    font-family: var(--text);
    font-size: 18px;
}

.container{
    max-width: 1200px;
    width: 100%; /*Permet de prendre tout l'espace lorsque la largeur passe en dessous de 1200px*/
    margin: 0 auto; /*Marge égales automatiquement*/
}

.fondInter{
    background-color: var(--interBackgroundColor);
}

.button{
    color: #FFF;
    background-color: var(--color2);
    width: fit-content;
    padding: 8px 1%;
    box-shadow: none;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.majuscule{
    text-transform: uppercase;
    font-size: 2rem;
}

.activePage{
    border-bottom: 16px solid var(--color2)
}



/* ============ header ============ */

#header{
    display: flex;
    font-family: var(--titleMenu);
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

#header #logo{
    width: 20%;
}

#header #logo a{
    color: black;
    font-size: 3.5rem;
    border-bottom: 16px solid var(--color1);
 
}

#header #mainMenu #burger{
    display: none;
    font-size: 3rem;
    text-align: right;
}

#header #mainMenu ul{
    display: flex;
    gap: 16px;
    text-transform: uppercase;
    justify-content: flex-end;

}

#header #mainMenu ul li{
    margin-left: 5%;
}

#header #mainMenu ul li a{
    color: black;
    font-size: 2.2rem;
    padding-bottom: 12px;
}

#header #mainMenu ul li a:hover{
    border-bottom: 16px solid var(--color2);
    
}

/* ============ main ============ */



/* ============ enAvant ============ */

#enAvant{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 24px 1%;
}

#enAvant .cat{
    display: flex;
    width: 32%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(75, 75, 75, 0.5);
    background-color: var(--lightBackgroundColor);
    padding: 32px 3%;
    box-sizing: border-box;/*permetdenepasajouterlespaddingsàlatailledeboite*/
    box-shadow: 0px 8px 16px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

#enAvant .cat:hover{
    box-shadow: 0px 8px 16px 0 rgba(0, 0, 0, 0.4);
}

#enAvant .cat a img{
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
}

#enAvant .cat a h2{
    text-transform: uppercase;
    color: black;
    margin-top: 16px;
}

#enAvant .cat hr{
    size: 8;
    width: 12%;
    color: var(--color1);
    
}

#enAvant .cat p{
    width: 75%;
    line-height: 32px;
}

/* ============ welcome ============ */

#welcome{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 48px;
    margin: 0px auto;
    gap:16px;
}

#welcome #titleImage{
    display: flex;
    flex-direction: column;
    width: 35%;
}

#welcome #titleImage h1{
    font-family: var(--titleMenu);
    font-size: 3.5rem;
    text-transform: uppercase;
    padding-left: 6%;
}

#welcome #titleImage img{
    width: 100%;
}

#welcome #textList{
    display: flex;
    flex-direction: column;
    width: 60%;
    gap: 16px;
}

#welcome #textList hr{
    size: 32;
    color: var(--color1);
    width: 12%;
    margin-top: 16px;
}

#welcome #textList p{
    margin: 48px 0;
    width: 80%;
}

#welcome #textList ul{
    column-count: 2;
    column-gap: 5%;
    padding-bottom: 40px;

}

#welcome #textList ul a{
    font-family: var(--titleMenu);
    font-size: 1.5rem;
    color: #000;
    line-height: 35px;
    background-image: url(images-garden/feuille-picto.jpg);
    background-repeat: no-repeat;
    padding-left: 48px;
    background-position: left -1px;
}

/* ============ pub ============ */

#pub{
    background-image: url(images-garden/home-05.jpg);
    background-size: cover;
    height: 200px;
    margin-top: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--textDarkBackground);

}

/* ============ footer ============ */

#footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--darkBackgroundColor);
    color: white;
    min-height: 170px;
    font-family: var(--titleMenu);
    padding: 40px;
    box-sizing: border-box;
}

#footer .colonne{
    width: 48%;
}

#footer .colonne address{
    font-style: normal;

}

#footer .colonne i{
    font-size: 1.5rem;
    color:white;
    margin-right: 10px;
}

#footer .colonne .socials{
    margin-top: 16px;
}

#footer .colonne:last-child{
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    text-align: right;
    flex-direction: column;
}

#footer .colonne:last-child p a{
    color:#fff;
  
}

#footer .colonne:last-child p a:hover{
    text-decoration: underline;
}



/* ============ slider ============ */

.nivo-caption{
    background-color: transparent;
    left: 37%;
    top:37%

}

.nivo-caption h4, .nivo-caption p{
    font-family: var(--titleMenu);

}

.nivo-caption h4{
    text-transform: uppercase;
    letter-spacing: 20px;
    font-size: 5.5rem;
}
.nivo-caption p{
    font-size: 2.2rem;
}

.vert{
    color:var(--color2);
    padding-bottom: 15px;
    border-bottom: 15px solid white;
}

.nivo-caption #htmlcaption2{
    background-color: transparent;
    left: 20%;
    top:20%

}

.theme-default .nivo-controlNav a{
    background: url(images-garden/rouge.jpg) no-repeat;
}

.theme-default .nivo-controlNav .active{
    background: url(images-garden/blanc.jpg) no-repeat;
}


/* ==================================== page Galerie ==================================== */

/*========modèle flexbox======*/
#galleryTitle{
    font-size: 2rem;
    margin-bottom: 24px;
    margin-left: 32px;

}
#paysages{
    display: flex;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-evenly;

}

#paysages .sectionHeader{
    width: 100%;
}

#paysages .sectionHeader ul{
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-bottom: 32px;
}

#paysages .sectionHeader ul a{
    padding: 8px 8px;
    font-size: 1.2rem;
}

#paysages .sectionHeader ul a:hover{
    background-color: #3a7440;
}

.choice{
    background-color: #3a7440;
}
#paysages .paysage{
    display: flex;
    flex-direction: column;
    width: 23%;
    padding: 1% 0 0;
    border: 1px solid var(--interBackgroundColor);
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

#paysages .paysage h2 a{
    color:#000;
    padding: 8px;
}

#paysages .paysage p{
    width: 100%;
    padding: 8px;
}

#paysages .paysage img{
    display: block;;
    width: 100%;
    border-radius: 0 0 4px 4px;
    -webkit-border-radius: 0 0 4px 4px;
    -moz-border-radius: 0 0 4px 4px;
    -ms-border-radius: 0 0 4px 4px;
    -o-border-radius: 0 0 4px 4px;
}

/* ========Modèle grid===========
#galleryTitle{
    font-size: 2rem;
    margin-bottom: 24px;
    margin-left: 32px;

}

#paysages{
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    grid-gap: 16px;
    justify-content: center;
}

#paysages .paysage{
    display: flex;
    flex-direction: column;
    padding: 1% 0 0;
    border: 1px solid var(--interBackgroundColor);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

#paysages .paysage h2 a{
    color:#000;
    padding: 8px;
}

#paysages .paysage p{
    width: 100%;
    padding: 8px;
}

#paysages .paysage img{
    display: block;;
    width: 100%;
    border-radius: 0 0 4px 4px;
    -webkit-border-radius: 0 0 4px 4px;
    -moz-border-radius: 0 0 4px 4px;
    -ms-border-radius: 0 0 4px 4px;
    -o-border-radius: 0 0 4px 4px;
}
*/

/* ==================================== page Contact ==================================== */

#contact{
    display: flex;
    flex-direction: column;
    padding: 40px;

}

#contact p{
    margin: 8px 0;
}
.deuxColonne{
    display: flex;
}

.deuxColonne p{
    width: 30%;
}

#contact input[type=text],
#contact input[type=email],
#contact select{
    padding: 8px;
    width: 70%;
}

#contact input:focus{
    border:10px solid var(--color2);
}

#contact select{
    background-color: var(--lightBackgroundColor);
    width: 75%;
}

#contact textarea{
 width: 53%;
}

#contact input[type=submit],
#contact input[type=reset]{
    padding: 4px 8px;
    background-color: var(--color2);
    color: var(--lightBackgroundColor);
    font-size: 1.1rem;
    font-weight: bold;
    border:none;
    font-family: var(--text);
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

#contact input[type=submit]:hover,
#contact input[type=reset]:hover{
    background-color: #3a7440;

}
#contact input[type=radio],
#contact input[type=checkbox]{
    accent-color: var(--color2);
    margin-left: 8px;
}

#contact input[type=reset]{
    transition: transform 1s;
    -webkit-transition: transform 1s;
    -moz-transition: transform 1s;
    -ms-transition: transform 1s;
    -o-transition: transform 1s;
}

#contact form #btn:hover{
        transform: translate(
        calc(900px * (1 - 2 * var(--rand-x, 800))),
        calc(900px * (1 - 2 * var(--rand-y, 800)))
    ) rotateZ(3600deg);

}


#frame{
    display: flex;
    justify-content: space-between;
    padding: 40px;

}

#frame .iframe{
    width: 48%;
}

#frame .iframe iframe{
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

#frame iframe{
    transition: transform 1800s ease;
    -webkit-transition: transform 1800s ease;
    -moz-transition: transform 1800s ease;
    -ms-transition: transform 1800s ease;
    -o-transition: transform 1800s ease;
}
#frame iframe:hover{
    transform: rotate(1565651deg);
    -webkit-transform: rotate(1565651deg);
    -moz-transform: rotate(1565651deg);
    -ms-transform: rotate(1565651deg);
    -o-transform: rotate(1565651deg);
}

#frame #map{
    height: 300px;
}
/* ============ mediaQueries ============ */


@media screen and (max-width:800px) {
    .activePage{
        border-bottom: 10px solid var(--color2);
    }

    #header{
        align-items: flex-start;
        padding-top: 24px;
        box-sizing: border-box;
        padding-left: 3%;
    }

    #header #mainMenu #burger{
        display: block;
        padding-right: 3%;

    }   

     #header #mainMenu ul{
        flex-direction: column;
        margin-right: 4px; 
        display:flex;
    }
     #header #mainMenu ul li{
        line-height: 3.2rem;
        padding-right: 3%;
        text-align: right;
    }
     #header #mainMenu ul li a{
        padding-bottom:0;
    }

    #header #mainMenu ul li a .activePage,
    #header #mainMenu ul li a:hover{
        border-bottom: 10px solid var(--color2);

    }


    #enAvant .cat{
        width: 48%;

    }
    #enAvant .cat:last-child{
        display: none;
    }

}

@media screen and (max-width:600px) {

    .slider-wrapper{
        display: none;
    }
    

    #enAvant{
        flex-direction: column;
        align-items: center;
    }

    #enAvant .cat{
        width: 98%;
        margin-bottom: 16px;
        
    }

    #enAvant .cat:last-child{
        display: flex;
    }

    #welcome{
        flex-direction: column;
        padding: 40px;

    }

    #welcome #titleImage img{
       display: none;
    }

    #welcome #textList{
        width: 95%;
    }
    
    #welcome #textList hr{
        align-self: flex-start;
    }

    #welcome #textList p{
        width: 100%;
        line-height: 40px;
        font-size: 1.4rem;
    }

    #bienvenue #textList ul{
        width: 100%;
    }

    #footer{
        flex-direction: column;
        gap:16px
    }

    #footer .colonne{
        width: 98%;
    }

    #footer .colonne p,
    #footer .colonne address,
    #footer .colonne .socials{
        text-align: center;
    }

    #contact .deuxColonne{
        flex-direction: column;
        width: 100%;
        
    }

    #contact .deuxColonne p{
        width:100%;
    }

    #contact input[type=text],
    #contact input[type=email]{
            width: 90%;
    }

    #contact select{
        width: 95%;
    }

    #contact textarea{
        width: 95%s;
    }

    #contact form #btn:hover{
        transform: none;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
}

    #contact form #btn:focus{
        transform: translate(
        calc(900px * (1 - 2 * var(--rand-x, 800))),
        calc(900px * (1 - 2 * var(--rand-y, 800)))
    ) rotateZ(3600deg);

}

}
