/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.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.
 */

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

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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

*{
    margin: 0;
    padding: 0;

}
@media screen and (min-width: 761px){
    .parallax-layer-back {
        -webkit-transform: translateZ(-200px) scale(2);
        transform: translateZ(-200px) scale(2);
        z-index: 3;
        margin-left: -10px;
    }
    .parallax-layer {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        -webkit-transform-origin-x: 100%;
        transform-origin-x: 100%;
    }
    .parallax-section {
        position: relative;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
        height: auto;
    }

    .parallax-layer-base {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        z-index: 4;
    }

    .full-bg-img {
        position: absolute;
        overflow: hidden;
    }
    .full-bg-img, .img-overlay:after, .view .content, .view .mask {
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
    }
    

    .parallax {
        background-repeat: no-repeat;
        background-attachment: fixed;
        position: relative;
        padding-top: 3em;
        padding-bottom: 3em;
    }
    .parallax {
        height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-perspective: 300px;
        perspective: 300px;
        -webkit-perspective-origin-x: 100%;
        perspective-origin-x: 100%;
        padding: 0;
        margin: 0;
    }
    .parallax, .video-full {
        background-size: cover;
    }
    /*Parallax section*/
    #section-5 ,
    #section-3 ,
    #section-1 {
        z-index: 1;
        color: #fff;
    }
    #section-1 {
        height: 400px;
    }
    #section-5 ,
    #section-3 {
        height: 200px;
    }
    #section-5 .row ,
    #section-1 .row ,
    #section-3 .row {
        position: fixed;
    }


    #section-1 .parallax-layer-back {
        -webkit-transform: translateZ(-100px) scale(2);
        transform: translateZ(-100px) scale(2);
        background: url("../img/screen.jpg")no-repeat center center;
    }
    #section-5 .parallax-layer-back {
        -webkit-transform: translateZ(-50px) scale(2);
        transform: translateZ(-50px) scale(2);
        background: url("../img/imgres.jpg")no-repeat center center;
    }
    #section-3 .parallax-layer-back {
        -webkit-transform: translateZ(-50px) scale(2);
        transform: translateZ(-50px) scale(2);
        background: url("../img/desk.jpg")no-repeat top center;
    }
    .contact.job{
        display: flex;
        /* justify-content: space-between; */
    }
}
.flex-center {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 100%;
}
.skill{
    padding-right: 33%;
    background: url("../img/responsive_webdesign.jpg")no-repeat right center;
    background-size: 33% auto;
}
#section-5 .parallax-layer-back ,
#section-3 .parallax-layer-back ,
#section-1 .parallax-layer-back {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
/*Section with dummy content*/
#section-6 ,
#section-4 ,
#section-2 {
    z-index: 2;
    position: relative;
    background: #fff;
    width: 100%;
}
ul, li{
    list-style-type: none;
}
*[class^="flex"]{
    display: flex;
}
.flex-col{
    flex-direction: column;
}
.flex-list{
    flex-wrap: wrap;
    padding: 10px 0;
}
.flex-list li{
    padding: 5px 20px;
    margin: 0 5px 5px;
    border-radius: 8px;  
    color: #fff; 
    text-shadow: 1px 1px 1px #000;
}
.flex-list[data-info~="techno"] li{
    background-color: #8fbeea;    
}
.flex-list[data-info~="outil"] li{
    background-color: #96ea8f;    
}
.flex-list[data-info~="langue"] li{
    background-color: #fcc360;    
}
.flex-justify-start{
    justify-content: flex-start;    
}
.flex-justify-around{
    justify-content: space-around;    
}
.full-bg-img h2{
    text-shadow: 1px 1px 1px #000;
}
.who .portrait{
    border-radius: 50%;
    background-color: #fff;
    overflow: hidden;
    padding: 0;
}
.who div *{
    color: #fff;
}
.who div{
    padding-left: 20px;
    text-shadow: 1px 1px 1px #000;
}
.date{
    flex: 1 0 15%;
    padding-right: 20px;
}
.date + div{
    flex: 1 0 85%;   
    margin-bottom: 20px; 
}

h1, h2{
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
}
h2 span{
    font-size: 20px;
}
.date + div li{
    display: flex;
}
.date + div .techno li{
    display: block;
    position: relative;
    padding-left: 13px;
}

li:before{
    margin-right: 8px;
}
.job{
    margin-bottom: 30px;
}
.job li{
    margin-right: 10px;
}
.job li:before{
    content: "•";
}
.techno li:before{
    content: "o";
    margin-right: 0;
    position: absolute;
    top:0; left: 0px;
}

#open-nav,
#nav-content{
    display: none;
}
#nav-content{
    height: 0px;
    overflow: hidden;
}
#nav-content a{
        color: #000;
}
@media screen and (max-width: 760px){
    #open-nav{
        display: block;
    }
    #nav-content{
        position: fixed;
        display: flex;
        opacity: 0;
        transition: opacity 0.3s ease-in;
    }
    #nav-content.open{
        opacity: 1;
        z-index: 10;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        max-height: 250px;
        width: 100%;
        padding: 10px 60px 10px 10px;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0px 0px 8px #000;
        animation: open 0.3s linear;
    }
    @keyframes open {
        from  {height: 0px;}
        to {height: 250px;}
    }
    #nav-content.open a:before{
        content: "•";
        margin-right: 10px;
        text-decoration: none;
    }
    #nav-content.open a:hover{
        text-decoration: none;
    }
    #nav-content a{
        color: #000;
        font-size: 2em;
        font-family: 'Oswald', sans-serif;
        cursor: pointer;
        display: none;
    }
    #nav-content.open a{
        display: flex;
    }
    #open-nav{
        cursor: pointer;
        position: fixed;
        z-index: 100;
        top: 5px;
        right: 5px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0px 1px 4px #000;
    }
    #burger {
        cursor: pointer;
        position: relative;
        width: 25px;
        height: 25px;
        background-color: transparent;
        -webkit-tap-highlight-color: red; 
    }
    #burger rect {
        fill: #000;
        transition: none; }
        
    #burger rect#burgerTop, 
    #burger rect#burgerBottom {
      position: absolute;
      left: 0; }
    
    #burger rect#burgerTop {
      top: 0; }
    
    #burger rect#burgerBottom {
      bottom: 0; }
    
    #burger rect#burgerMiddle {
      opacity: 1; }
   /*  #open-nav:before{
       content:"x";
       color: #000;
       line-height: 50px;
       font-size: 2.8em;
   } */
    .who .portrait{
        display: none;
    }
    .who .portrait{
        padding-left: 0;
    }
    .skill{
        padding-right: 0;
        background: none;
    }
    #section-4 .flex{
        flex-direction: column;
    }
    .pro .date{
        padding: 5px 5px 0px;
        margin-bottom: 10px;
        border-bottom: 1px solid #000;
    }
    #section-1 .full-bg-img {
        height: 300px;
        background: url("../img/screen.jpg")no-repeat center center;
        background-size: cover;
    }
    #section-5 .full-bg-img {
        height: 200px;
        background: url("../img/imgres.jpg")no-repeat center center;
        background-size: cover;
    }
    #section-3 .full-bg-img {
        height: 200px;
        background: url("../img/desk.jpg")no-repeat top center;
        background-size: cover;
    }
    .full-bg-img h1, .full-bg-img h2{
        color: #fff;
    }
    h1, h2{
        font-size: 2em; 
    }
}

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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