/**************************************************
 *  CSS STYLE
 *  ©2016 Laurent HUBER.
***************************************************/

@import url('//fonts.googleapis.com/css?family=Roboto:300,500|Roboto+Condensed:400|Reenie+Beanie');

/** GLOBAL **/
html, body, div, input, textarea, button, p, span, img{
    box-sizing: border-box;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}
body{
    height: 100%;
    background-color: #2c2424;
    text-align: left;
    max-width: 100%;
    font-size: 120%;
    transition: font-size .3s;
}
body, input, textarea, button{
    font-family: "Roboto", serif;
    font-weight: lighter;
}
input, textarea, button{
    font-size: 1em;
}
input[type='text']:focus, input[type='email']:focus, textarea:focus{
    border-color: #00a0cc;
    border-radius: .2em;
    outline: none;
}
h1,h2,h3,h4{
    font-family: "Roboto Condensed", sans-serif;
    margin: 0 0 .2em 0;
    line-height: 1rem;
    color: salmon;
    transition: font-size .3s;
    font-weight: lighter;
}
h1{
    font-size: 4em;
    line-height: 1em;
    margin-bottom: .5em;
}
.nav h1{
    margin-bottom: 0em;
}
h2{
    font-size: 2.5em;
    margin-top: 2em;
    margin-bottom: 2em;
}
header h2{
    line-height: 2em;
    margin-top: 0;
    padding-top: .9em;
    margin-bottom: .7em;
}
h3{
    text-transform: lowercase;
    margin-bottom: 1em;
}
h4{
    font-size: 1.15em;
}
a, button, input[type='button']{
    text-decoration: none;
    color: salmon;
    transition: color .3s, background-color .3s;
    border-radius: .2rem;
    padding: 0 .25em;
}
a:hover, button:hover{
    color: darkslategray;
    background-color: #00a0cc;
}

/** Specific **/

.section{
    margin: 4em 0;
    transition: margin .3s;
}
#contact h2{
    margin: .5em 0;
}
dl{margin-bottom: 0;}
::selection{background-color: #000;}
.site{
        display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
        display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
        display: -ms-flexbox;      /* TWEENER - IE 10 */
        display: -webkit-flex;     /* NEW - Chrome */
    display: flex;
}
.site-nav{
    max-width: 270px;
    width: 270px;
    min-width: 270px;
    position: relative;
}
.nav{
    width: 195px;
    height: 100%;
    position: fixed;
    overflow-y: scroll;
    overflow-x: visible;
    padding-bottom: 3rem;
}
.subnav{
    position: relative;
    margin-left: 1em;
    margin-bottom: 1.2em;
}
.site-nav, .site-main{
    padding: 3rem 2.5rem;
    transition: padding .3s;
}
/*.site-nav{padding-top: 0;}*/
.site-msg{
    padding: .7em 2.5rem;
}
button{width: auto;}

.genericon{
    font-size: inherit !important;
    width: auto !important;
    vertical-align: top !important;
    line-height: inherit !important;
    margin-top: .1em !important;
}
.lh{
    /*font-family: 'Reenie Beanie', cursive;*/
    font-size: 1.25em;
}
.site-header .lh:last-of-type::after{
    content: "\2022";
    line-height: 1rem;
}

.site-header, .section, .site-footer, .site-nav, .invert, .site-msg{
    color: #fff;
}
.site-main{
    max-width: 1100px;
}
.site-footer{
    padding-top: 6em;
    padding-bottom: 2em;
    color: salmon;
    font-size: .8em;
    line-height: 2em;
}
hr{
    border: none;
    margin: 1em 0;
    width: 100%;
    border-top: 3px solid rgba(255,255,255,.07);
}
hr + header{
    margin-top: 8em;
}
#engagements .fig-container img{
    width: 4em;
    margin-bottom: -1em;
    float: right;
    opacity: .6;
}
#realisations .fig-container{
    width: auto;
    margin: 0 -2rem;
    margin-bottom: .5em;
    margin-top: -.5rem;
}
.fake-img{
    width: 100%;
    height: 222px;
    background-color: rgba(255,255,255,.1);
}
.inline{
    display: inline-block;
    width: auto;
}
.inline + .inline {margin-left: 1em;}
.fig-container.inline{
    float: right;
    margin: 0 0 2em 2em;
    margin-bottom: 2em;
    border-radius: .2em;
    height: 150px;
    box-sizing: content-box;
    overflow: hidden;
    border: .5em solid rgba(255,255,255,.1);
}
.fig-container.inline img{
    height: auto;
    width: 150px;
}
.social img{
    height: 32px;
    width: auto;
}
.list-entry{
        display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
        display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
        display: -ms-flexbox;      /* TWEENER - IE 10 */
        display: -webkit-flex;     /* NEW - Chrome */
        flex: 0 1 300px;
    display: flex;
    background-color: rgba(255,255,255,.1);
    border-radius: .3em;
    padding: 2rem;
    flex-direction: column;
    min-width: 200px;
    max-width: 300px;
    margin: 0 1em 1em 0;
}
.entry-title{
   font-family: "Roboto Condensed", sans-serif;
    font-size: 1.2em;
}
.entry-description{
    margin: 0;
    font-size: .9em;
    color: rgba(255,255,255,.7);
    transition: color 1s;
}
.entry-description a{
    display: inline-block;
    margin-top: .5em;
    padding: .2em .3em;
}
.entry-description a::before{
    content: "\2023";
    margin-right: .2em;
}
.entry-meta{
    font-size: .8em;
    text-transform: uppercase;
    margin-bottom: .5em;
}
.entry-meta time, .entry-meta span{
    margin-right: .5em;
}
.meta-info{
    text-transform: none;
    font-weight: bold;
    font-size: .8em;
}
.meta-info::before{
    content: "\00B7";
    margin-right: .5rem;
    margin-left: -.1em;
}
.entry-meta .genericon{cursor: help;}
.list-list{
        display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
        display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
        display: -ms-flexbox;      /* TWEENER - IE 10 */
        display: -webkit-flex;     /* NEW - Chrome */
    display: flex;
        -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}
input[type='text'], input[type='email'], textarea{
    padding: .7em 1em;
    background-color: rgba(255,255,255,.1);
    border-radius: .2em;
    border: 3px solid transparent;
    margin-bottom: 1em;
    color: #fff;
}
button, input[type='button']{
    padding: .4em .7em;
    background-color: salmon;
    border-radius: .2em;
    border: 3px solid transparent;
    margin-bottom: 1em;
    cursor: pointer;
    color: darkslategray;
}
.site-footer img{
    height: 28px;
    width: auto;
    opacity: .6;
    transition: opacity .3s;
    vertical-align: top;
}
.site-footer img:hover{
    opacity: 1;
}
.copy{
    margin-top: 2em;
    opacity: .3;
    font-size: .8em;
    transition: opacity .3s;
}
.copy:hover{
    opacity: 1;
}
textarea{
    resize: vertical;
    min-height: 8em;
}
ul{
    display: block;
    list-style-type: none;
    padding-left: 0;
}
.nav a{
    font-family: "Roboto Condensed", sans-serif;
    padding: .4em .7em;
    border-radius: .2em;
    background-color: rgba(255,255,255,.1);
    margin-bottom: .5em;
    display: inline-block;
    transition: background-color .5s;
}
.subnav a{
    display: block;
}
.nav a li{display: inline;}
a.top, li.categ{
    font-family: inherit;
    background-color: transparent !important;
    font-size: .8rem;
    text-transform: uppercase;
    transition: color .3s;
    margin-bottom: 1.5em;
    color: salmon;
}
.nav a:hover{
    background-color: #00a0cc;
}
a.top:hover{
    color: #00a0cc;
}

a.cat{
    background-color: salmon;
    color: darkslategray;
}
a.selected{
    color: darkslategray;
}

a.social:hover, a.in-txt:hover{
    background-color: inherit !important;
    color: #00a0cc;
}
a.in-txt{
    padding: 0;
}
.site-msg{
    background-color: rgba(255,255,255,.1);
    font-size: .8em;
}

/** CATEGORIES **/
    /* PAO */
.cat-pao input[type='text']:focus, .cat-pao input[type='email']:focus, .cat-pao textarea:focus{
    border-color: burlywood;
}
.cat-pao a.top:hover, .cat-pao a.in-txt:hover{
    color: burlywood;
}
.cat-pao .nav a:hover, .cat-pao a:hover, .cat-pao button:hover{
    background-color: burlywood;
}
    /* qui */
.cat-qui input[type='text']:focus, .cat-qui input[type='email']:focus, .cat-qui textarea:focus{
    border-color: #fff;
}
.cat-qui a.top:hover, .cat-qui a.in-txt:hover{
    color: #fff;
}
.cat-qui .nav a:hover, .cat-qui a:hover, .cat-qui button:hover{
    background-color: #fff;
}

a.cat::before{
    content: "\2022";
    display: inline-block;
    margin-left: -.2rem;
    margin-right: .3rem;
    line-height: 1rem;
    vertical-align: middle;
}
a.cat.selected::before{
    content: "\2713";
    margin-right: .2rem;
}
a.selected.cat-web, a.cat-web:hover{   
    background-color: #00a0cc !important;
}
a.selected.cat-pao, a.cat-pao:hover{
    background-color: burlywood !important;
}
a.selected.cat-bio, a.cat-bio:hover{
    background-color: #2c2424 !important;
}
a.selected.cat-qui, a.cat-qui:hover{
    background-color: #fff !important;
}

@media screen and (max-width:1000px){
    .site{display: block;}
    .site-nav{
        display: block;
        max-width: none;
        width: 100%;
        padding-bottom: 0;
    }
    .nav hr, .nav .categ, .nav .top{ display: none !important; }
    .nav hr:last-of-type{display: block !important;}
    .nav{
        position: relative;
        width: 100%;
        padding-bottom: 0;
    }
    .nav a{margin-right: .5em;}
    .site-main{width: 100%;}
    .nomobile{
        display: none;
    }
    .subnav{display: none;}
    
    h1{ font-size: 3.2em; }
    h2{ font-size: 2em; }
    .section{
        margin: 2em 0;
    }
}

@media screen and (max-width:600px){
    body{
        font-size: 100%;
    }
    h1{
        font-size: 2.5em;
    }
    h2{ font-size: 1.5em; }
    .site-nav, .site-main{
        padding-left: 1em;
        padding-right: 1em;
    }
}

@media screen and (max-height:700px){
    .site-nav, .site-main{
        padding-top: 1rem;
    }
    .subnav{display: none;}
}

@media screen and (max-height:500px){
    .nav hr, .nav .top, .nav .categ{display: none;}
}