/*
Theme Name: Aurelie Miquel
Version: 1.1
Author: Yves Saint-Lary
Author URI: https://ysaintlary.com/

*/



/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
/* ==========================================================================
   CSS imports
   ========================================================================== */

@import url("css/normalize.css");
/*@import url("css/fonts/stylesheet.css");*/

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 150%; /* 16px */
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {background-color: #fff;font-size:12px;min-width:320px}

h1, h2 {font-weight:normal; }
h1 {font-size:1em;}
a, a:focus {outline:0;}

header{padding:2.5em}
header #branding{margin-bottom:2.5em}
#site-title{font-weight:normal;font-size:1em;margin:0;}
#tagline{margin:0;}
header #branding a, nav a{text-decoration:none; color:#222;}

.menu-mobile{display:none;}
nav ul{padding:0;margin:0;}
header nav ul a{font-size:1em;}
nav ul ul a{font-size:1em;}
nav ul li.menu-item-has-children li {display: none;}


#main .inner{margin-left:0;}

nav ul ul a,
footer nav a{color:#999;}
nav ul li{vertical-align:top;margin-bottom:1.5em;}
nav ul ul{margin-left:0;}
nav ul ul li{margin-left:0; line-height:1.2;margin-top:0.625em;padding-right:2.5em;margin-bottom:0;}

a{border-bottom:1px solid transparent;}
a:hover{
    border-bottom:1px solid #aaa;
    -webkit-transition: border 0.25s ease-in;
    -moz-transition: border 0.25s ease-in;
    -o-transition: border 0.25s ease-in;
    transition: border 0.25s ease-in;}
ul li.current-menu-item a{color:#333;}
ul li.current-menu-item li a{color:#888;}
ul li li.current-menu-item a{color:#888;border-bottom:1px solid #aaa;}

nav ul li.menu-item-has-children li{display:none;}


footer nav{margin:2.5em;}
footer nav ul{margin:0;}


#main .inner{margin:2.5em;padding-bottom:5em;}
#main img,
#main img.attachment-post-thumbnail,
#main div.wp-caption{max-width:100%;height: auto;}

#main img.attachment-post-thumbnail{margin-bottom:1.7em;}
.home #main img.attachment-post-thumbnail{margin-bottom:0;}
#main h2{font-size:2em;/* /*font-family:sans-serif;*/*/ letter-spacing:1px; line-height: 1}
#main p.no-margin,
#main p.no-margin img{margin:0;}
#main .col2{width:49%;margin-right:2%;margin-top:1.5em;/*float:left;*/}
#main img.col2:nth-child(odd){margin-right:0;}

.home #main .inner{/*background-color:rgba(250,250,250,1);padding:5em;*/}
.home #main .inner .attachment-post-thumbnail{}
.home #main ul{margin:0;padding:0;list-style-type: none;}
.home #main a{text-decoration:none;color:#222222;}

/*.single #main, .category #main {background-color: #999;}*/
#main article p {
    font-size: 1em;
    margin: 0;
    margin-bottom:2.5em;
}
.single #main article img{margin-bottom:2.5em;}
#main div.wp-caption{margin-bottom:2.5em;}

#main div.wp-caption p{color:#333;}
#main article p img.col2{}
#main article img{/*background: url('img/loading.gif') no-repeat center center transparent;*/min-height:100px;}

.category h1, .page h1, article h1 {margin-top:0;}
article h1 {margin-bottom:2.5em;}


.category article.projet { 
    display: inline-block;
    position:relative;
    overflow:hidden;}
.category article.projet a{display:block; text-decoration: none;}
.category article.projet a h1 {
    position:absolute;
    padding:5%; 
    margin:0;
    left:0; 
    right:0;
    height:90%; 
    top:0;
    visibility: none;
    transition:all .25s;
    color: transparent;}
.category article.projet a:hover h1{
    background: rgba(255,255,255,0.9);
    color: #555;}



/* iframes */
iframe,
object,
embed{
  max-width: 100%;
  width: 100%;
  height: 500px;
  overflow: hidden;
}


/*footer#footer nav {margin:5em;}*/
footer nav li{margin-right:2.5em;}
footer nav ul {margin:2.5em; list-style-type: none;}
footer nav ul li{display:inline-block;margin-bottom:0;margin-right: 1.5em;color: #999999;}
footer nav a {color: #999999;}
nav > div > ul {margin-left:0em;}
footer nav{margin:5em;}
footer nav ul{margin:0;display:inline-block;}
footer .footer-menu{margin-top:1em;}
.menu-footer-menu-container{display:inline-block;}

/*.js-scrollTo{opacity:0}*/

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 768px){
    .category article.projet {display:block;float:left;width:100%;vertical-align: top;margin-bottom:2.5em}
    .category article.projet:nth-child(odd){margin-right:0}}

@media only screen and (min-width: 570px){
    .category article.projet {display:block;float:left;width:47.5%;vertical-align: top;margin-bottom:4%;}
    .category article.projet:nth-child(odd){margin-right:5%}}

@media only screen and (min-width: 769px){
    body {max-width:1400px;min-width:768px}}

@media only screen and (max-width: 1000px){
    header{width:calc(100%-5em);display:flex;flex-wrap:wrap}
    header #branding{width:calc(100% - 32px);margin-bottom:0}
    .menu-mobile{width:30px;text-align:right}
    .menu-mobile{display:block}
    .menu-mobile button{
        font-family:"Quicksand", arial, sans-serif;
        background-color:#ffffff;
        border:none;
        padding:0}

    .menu-mobile button{
        overflow:hidden;
        text-indent:-1000px;
        width:30px;
        height:30px;
        background:url("img/menu-toggle.svg") no-repeat top left;
        background-size:cover;}
    .open .menu-mobile button{background-position: top right}


    #header nav#nav, #header.close nav#nav{display:none;}
    #header.open nav#nav{display:block;margin-top:2.5em;}
    #main {max-width:100%;}

    iframe,object,embed{height:56.5vw}

    nav ul li {margin-bottom:0.5em}
    nav ul li.current-menu-parent li{display:none;}
    .category article.projet a h1 {position:relative;padding:0.5em 0 0 0;color:#222;}
    .category article.projet a:hover{border-bottom:none;}
    .category article.projet img{opacity:1;transition:opacity 0.2s}
    .category article.projet img:hover{opacity:0.5;}
    blockquote {margin:0}
    footer nav {margin:2.5em;}}


@media only screen and (min-width: 1001px){
    header, #main {display:inline-block; vertical-align:top}
    header{width:calc(30% - 5em);margin-right:0}
    #main {width:70%}
    nav ul li.current-post-ancestor li,
    nav ul li.current-menu-item li,
    nav ul li.menu-item-has-children:hover li{display:block}
    nav ul li.menu-item-has-children:hover li,
    nav ul li.current-menu-parent li{display:block}
    nav li.menu-item-has-children ul{display:block}
    }


@media only screen and (min-width: 1001px) and (max-width: 1200px){
    footer nav{margin:2.5em;}
    footer nav ul{margin:0;}}


@media only screen and (min-width: 1201px) and (max-width: 1400px){
    #main {width:70%;}
    footer nav{margin:2.5em;}
    footer nav ul{margin:0;}}

/*@media only screen and (max-width: 1400px){
    header nav > div > ul {margin-left:2.5em;}}*/

@media only screen and (min-width: 1401px){
    body{background-color: #fff;}
    header{width:calc(30% - 10em);padding:5em 0 5em 5em}
    #main .inner{margin:5em;/*margin-left:0;*/}
    .category article.projet {margin-bottom:2.5em;}
    #main div.wp-caption{margin-bottom:2.5em;}
    nav ul ul{margin-left:0;}
    nav ul ul li{display:block;width:auto;padding-right:5em;}}





@media only screen,
    (-o-min-device-pixel-ratio: 5/4),
    (-webkit-min-device-pixel-ratio: 1.25),
    (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
