body{
    font-family: 'Work Sans', sans-serif;
}
.container{
    max-width: 1170px;
    margin: 0 auto;
}
.container-fluid{
    margin: 0 15px;
}

h1, h2, h3, h4{
    font-family: 'Oswald', sans-serif;
    font-weight:900;
}

/* CORRECTION THEME UNDERSCORE*/
.post, .page {
    margin: 0 ;
}

.site-header{
    margin-bottom: 5rem;
}

h1.site-title,
p.site-title{
    margin:0;
}
.site-title a{
    display: block;
    width:90px;
    height:110px;
    overflow: hidden;
    background: url(images/fond-logo.svg) no-repeat center center;
    background-size: contain;
    text-indent: -50000px;
}
.site-description{
    display: none;
}

.site-header .container-fluid:nth-child(2){
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;  
}
.main-navigation{
    width: auto;
}

.main-navigation li{
    margin: 0 2rem;
}
.main-navigation ul ul{
    display: block;
}
.main-navigation ul a{
    color:black;
}

/* ARCHIVE */


.archive-grid article{
    position: relative;
}
.archive-grid article img{
    display: block;
}

.grid-sizer,
.grid-item { 
    width: calc(100% / 3); 
}


.archive-grid .archive-grid-contenu{
    opacity:0;
    transition: all 0.3s ease-in-out;
    position: absolute;
    /*
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    */
    left:15px;
    bottom:15px;
}
.archive-grid a:hover .archive-grid-contenu{
    opacity:1;
}

/* FORM FOOTER */
.footer-widget input{
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    border-width: 0 0 1px 0;
    color:rgba(255,255,255,1);
}
.footer-widget input[type=submit]{
    border-width: 1px;
}
.footer-widget input:focus,
.footer-widget textarea:focus{
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,1);
    color: rgba(255,255,255,1);
}
.footer-widget textarea{
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color:rgba(255,255,255,1);
    max-height: 100px;
}
.footer-widget .wpcf7 p{
    margin: 0 0 0.75em 0;
}

/* WIDGET ET FOOTER WIDGET*/
#secondary.widget-area,
#footer-widget-area.widget-area{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}
#secondary.widget-area .widget,
#footer-widget-area.widget-area .widget{
    width: 30%;
    padding: 2rem;
}
input{
    max-width: 100%;
}
#header-widget-area.widget-area{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

/* FOOTER */
.site-footer{
    background-color: black;
    color: white;
    padding: 2rem 15px 4rem 15px;
}

/* MAP */
#map{

    width:100%;
	height:400px;

}

/* On screens that are 1200px or less, set the background color to blue */
@media screen and (max-width: 1200px) {
    .container {
      margin:0 15px;
    }
    .grid-sizer,
    .grid-item { 
        width: calc(100% / 2); 
    }
}

/* On screens that are 1000px or less, set the background color to blue */
@media screen and (max-width: 1000px) {
    #secondary.widget-area,
    #footer-widget-area.widget-area{
        display: block;
    }
    #secondary.widget-area .widget,
    #footer-widget-area.widget-area .widget{
        margin-bottom: 2rem;
        width: 100%;
    }
}

/* On screens that are 600px or less, set the background color to blue */
@media screen and (max-width: 600px) {
    .grid-sizer,
    .grid-item { 
        width: calc(100%); 
    }
    #secondary.widget-area{
        display: block;
    }
    #secondary.widget-area .widget{
        margin-bottom: 2rem;
        width: 100%;
    }

}

@media screen and (max-width: 37.5em) {
    button {
        border: 0;        
        border-radius: 3px;
        background: url(images/burger-icon.svg) no-repeat center center;
        background-size:contain;
        padding: 0;
        width: 40px;
        height: 30px;
        text-indent: -300000px;
        position: fixed;
        top:40px;
        right:15px;
        z-index: 10001;
    }
    
    .main-navigation ul{
        position: fixed;
        top:0;
        right:0;
        bottom:0;
        left:0;
        background-color: tomato;
        z-index: 10000;
        text-align: center;
        padding-top: 30vh;
    }
    .main-navigation ul a{
        font-size: 1.5rem;
        color: rgba(255,255,255,1);
    }
    .main-navigation ul ul{
        display: block;
        position: relative;
        padding: 0;
        box-shadow: none;
        float: none;
        top: auto;
        left: auto;
        text-align: center;
        padding: 0.5rem 0;
    }
    .main-navigation ul ul a{
        width: auto;
        font-size: 1.1rem;
        color:rgba(255,255,255,0.75);
    }
    
}