/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
    font-family:roboto;
    overflow-x: hidden;
    height:100vh;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{
    color:#fff;
    text-decoration: none;
    text-transform: uppercase;
}
a:hover{
    color:#fff;
}
a img{
    border:none;
}
* {
  -moz-box-sizing: border-box; 
  -webkit-box-sizing: content-box;
  -o-box-sizing: border-box; 
  -ms-box-sizing: border-box; 
  box-sizing: border-box; 
}
img{height: auto;
    max-width: 100%;
    width: 100%;  
}
/*position et taille de box*/
.cot{
    display: inline-block;
    vertical-align: top;
}
.box8{
    width: 79.5%;
}
.box2{
    width:20.5%;
}

/*header*/
#head h1,
#head h2{
    text-align: center;
}
#head h1{
    font-size:5em;
    font-weight: 300;
    margin-top: 15vh;
}
#head h2{
    font-size:1.5em;
    margin-top:20px;
}
#index #container{
    background-image:url('../img/bg_home.jpg');
    background-size: 100% auto;
}
#head nav{
    width: 500px;
    margin:30px auto;
    -moz-box-sizing: content-box; 
  -webkit-box-sizing:  content-box;
  -o-box-sizing:  content-box; 
  -ms-box-sizing: content-box; 
  box-sizing: content-box; 
    text-align: center;
}
.bmenu{
    padding: 0px;
    height: 100%;
    display: flex;
     display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    height: 100%;
    justify-content: space-between;
     -webkit-justify-content: space-between;
}
.bmenu li{
    display: block;
    font-size: 1.875em;
    font-weight: 100;
    
}
.bmenu li a{
	display: block;
	color: #000;
	padding: 12px 20px;
	margin: 2px;
    min-height: 53px;
	background: rgba(255,255,255,0.3);
	-webkit-transition: all 0.4s ease-in-out;
	-moz-transition: all 0.4s ease-in-out;
	-o-transition: all 0.4s ease-in-out;
	-ms-transition: all 0.4s ease-in-out;
	transition: all 0.4s ease-in-out;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(120, 120, 120, 0.75);
-moz-box-shadow:    0px 0px 5px 0px rgba(120, 120, 120, 0.75);
box-shadow:         0px 0px 5px 0px rgba(120, 120, 120, 0.75);
}
.bmenu li a.active{
    color:#fdc400;
    font-weight:normal;
    background: rgba(255,255,255,1);
}
.bmenu li:first-child a{
	-webkit-border-radius: 15px 15px 0px 0px;
	-moz-border-radius: 15px 15px 0px 0px;
	border-radius: 15px 15px 0px 0px;
}
.bmenu li:last-child a,
.interne .bmenu li.fruits a{
	-webkit-border-radius: 0px 0px 15px 15px;
	-moz-border-radius: 0px 0px 15px 15px;
	border-radius: 0px 0px 15px 15px;
}
.bmenu li a:hover{
	background: rgba(255,255,255,1);;
	color: #fdc400;
}
#container{
    padding:0;
    width:100%;
    height:100vh;
}
.content{
    width:75%;
    margin:15px auto;
}
.content p{
    line-height: 1.4;
    column-count: 3;
    column-gap: 15px;
    
}
/****************************liste depliante PROJETS***************************/
#button{
    background-color: #2f3037;
    border-radius: 12px 0 0 12px;
    color: #fff;
    cursor: pointer;
    height: 60px;
    position: absolute;
    left: -100px;
    top: 0;
    width: 100px;
    z-index:2;
    line-height: 60px;
}
#button:after{
    color: #fff;
    content: "≡";
    cursor: pointer;
    display: block;
    font-size: 60px;
    line-height: 60px;
    margin-left: 30px;
    transform:scaleX(1.6);
    -webkit-transform:scaleX(1.6);
    -ms-transform:scaleX(1.6);
    -o-transform:scaleX(1.6);
    -moz-transform:scaleX(1.6);
    font-family: arial;
}
#liste{
    background-color: #2f3037;
    padding: 0;
    width:320px;
    position:fixed;
    right:-320px;
    top:41px;
}
#projets{
    text-align: center;
    width: 100%;
}
#projets h2{
    color: #fff;
    font-size: 1.625em;
    font-weight: 500;
    letter-spacing: 3px;
    margin: 21px 10px 21px 60px;
    text-align: left;
}
#projets h2:before{
    color: #fff;
    content: "\2716";
    cursor: pointer;
    font-size: 1.5em;
     left: 15px;
    position: absolute;
    top: 14px;
    z-index: 1;
}
#projets p{
    color:#c3c4c5;
    font-weight: 100;
    font-size:1.25em;
    margin-bottom: 5px;
}
#projets ul li{
    padding: 10px;
    text-align: center;
}
#projets a{
    color:#c3c4c5;
    font-size:1.375em;
    font-weight: 100;
}

section hgroup{

}
section hgroup h1{
    font-size:1.5em;
    padding-bottom:15px;
}
section hgroup h2{
    font-size:1.2em;
    padding-bottom:15px;
}
section article div{
    display:inline-block;
    vertical-align: top;
    width:49%;
    padding: 0 15px 15px 0;
}
/*********************RECHERCHE PAR MOT CLE*********************/
.search{
    padding:20px 15px 25px 15px;
    border-bottom: 1px dashed #d4d4d4;
    border-top: 1px dashed #d4d4d4;
}
#recherche{
    text-align: left;
    
}
#keyword{
    background-color: #000;
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    height:38px;
}
#recherche input[type=text]{
    width:18%;
    display: inline-block;
    height:45px;
    vertical-align: middle;
    max-width:43px;
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
        cursor: pointer;
    background-size: 100%;
    background-position: center;
}
#recherche input[type=search]{
    cursor: pointer;
    padding:5px;
    width:80%;
     display: inline-block;
    vertical-align: middle;
    border: 1px solid #5d5d5d;
}
#recherche #go{
    background-image: url('../img/go.png');
    margin-left: -38px;
}
#recherche #rs{
    background-image: url('../img/reset.png');
    max-width:35px;
    width:15%;
}
#listProj{
    overflow:auto;
}
.ui-autocomplete{
    background-color: #000;
    width:170px!important;
    padding:5px;
}
.ui-autocomplete a{
    color:#fff;
    text-transform: none;
    margin-bottom: 7px;
    cursor: pointer;
    display:block;
}

footer div{
    background-color: #feb503;
    display: none;
    padding-bottom:15px;
}
footer ul{
    vertical-align: top;
    width:50%;
    display:inline-block;
}
footer hr{
    margin:0;
    color:#feb503;
    background-color: #feb503;
    border:none;
    height:3px;
}
footer ul.projRD{
    text-align: right;
    margin-left: -1px;
}
footer ul.projRD li{
    padding-right:10px;
    border-right:1px solid #fff;
}
footer ul.projVid{
    text-align: left;
}
footer ul.projVid li{
    padding-left:10px;
}
footer h2.titre{
    font-size:1.625em;
    color:#fff;
    text-transform: uppercase;
    height:35px;
    line-height: 35px;
    cursor: pointer;
    width:50%;
    padding: 0 10px;
    background-color: #feb503;
}
footer h2.first{
    border-right:2px solid #fff;
    text-align: right;
}
footer ul li {
    padding: 5px 10px;
}
footer ul li a{
    padding-top:5px;
    display:block;
}
/********************page accueil**************************/
#index{
    overflow:hidden;
}

/*********************pages INTERNES ********************************/
#head, 
footer{
    background-repeat:no-repeat;
    background-position:  0 0;
    background-size:  cover;
    min-height: 514px;
}
#elevage #head{
    background-image:url('../img/elevage.jpg');
}
#maraichage #head{
    background-image:url('../img/maraichage.jpg');
}
#gdecult #head{
    background-image:url('../img/gdecult.jpg');
}
#cultInd #head{
    background-image:url('../img/cultInd.jpg');
}
#vigne #head{
    background-image:url('../img/vigne.jpg');
}
#fruits #head{
    background-image:url('../img/fruits.jpg');
}
#elevage #foot{
    background-image:url('../img/elevageBas.jpg');
}
#maraichage #foot{
    background-image:url('../img/maraichageBas.jpg');
}
#gdecult #foot{
    background-image:url('../img/gdecultBas.jpg');
}
#cultInd #foot{
    background-image:url('../img/cultIndBas.jpg');
}
#vigne #foot{
    background-image:url('../img/vigneBas.jpg');
}
#fruits #foot{
    background-image:url('../img/fruitsBas.jpg');
}
.interne #head nav{
   padding:50px 0;
}
.interne li.index{
    background: url('../img/home.png') no-repeat center;
    
    text-align: center;  
    margin-top:8px;
}
.interne .bmenu li.index a{
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    height:34px;
}
.content{
    min-height:300px;
    color: #545454;
}
.content h1 {
    font-size: 4.375em;
    font-weight: 300;
}
.content h1, .content h2 {
    text-align: center;
}
.content h2{
    font-size: 1.25em;
    margin-top: 20px;
}
.content hr{
    color:#000;
    background-color: #000;
    width:22.5%;
    min-width: 240px;
    margin: auto;
    height:12px;
    border-radius: 30px;
    margin:30px auto;
}
/******************FICHES*********************/

#fiche.maraichage #head{
    background-image: url("../img/maraichage.jpg");
    height:250px;
    position:relative;
    padding-top:15px;
}
#fiche.interne #head nav{
    width: 300px;
    margin:0px auto;
    padding:0;
}
#fiche .bmenu li{
    font-size: 1em;  
    font-weight: normal;
}
#fiche .bmenu li a{
	padding: 5px;
    min-height: 0;
}
#fiche .bmenu li.index a{
	padding: 0;
    min-height: 30px;
}
#fiche #head h1{
     background-color: rgba(0, 0, 0, 0.5);
    border-radius: 7px;
    bottom: 30px;
    color: #fff;
    font-size: 2em;
    left: 3%;
    padding: 5px;
    position: absolute;
}

#fiche h2{
    margin-bottom:10px;
}
#fiche aside,
#fiche article{
    padding:15px;
    margin-top:15px;
    border-left:1px solid #ddd;
}

#fiche section article div{
    display: inline-block;
    padding: 0 15px 15px 0;
    vertical-align: top;
    width: 33%;
}

/****************************************************/
/*********************MEDIA QUERIES****************/
/************************************************/
@media screen and (max-width:1000px){
    #index #container {
    background-size: cover;
    }
    #cercles li {;
        height: 24px;
        margin-top: 1px;
        width: 24px;
    }
}
@media screen and (max-width:800px){
    body{
        font-size:0.8em;
    }
    #button::after {
        font-size: 4.2em;
    }
    #head h1 {
        margin-top: 9vh;
    }
    #head h2 {
        text-shadow: #f8f8f8 1px 1px, #f8f8f8 -1px 1px, #f8f8f8 -1px -1px, #f8f8f8 1px -1px; 
        font-weight: bolder;
    }
    .content h1 {
    font-size: 3em;
    }
}
@media screen and (max-width:500px){
    #head h1 {
        margin-top: 18vh;
        font-size:4em;
    }
    #head nav {
        width: 370px;
    }
}
@media screen and (max-width:340px){
    #head h1 {
        font-size: 2.5em;
        margin-top: 24vh;
        background-color: rgba(200, 200, 200, 0.5);
    }
    .content h1 {
    font-size: 2.3em;
    }
    .interne #head nav {
        padding: 75px 0 20px;
    }
    #head nav {
        margin: 40px auto 20px;
        width: 280px;
    }
    .bmenu li{
        font-size:1.3em;
    }
    .bmenu li a{
        min-height: auto;
        padding: 7px 20px;
    }
    #head, footer{
        min-height:350px;
    }
}