/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

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

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

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

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

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

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

textarea {
    resize: vertical;
}

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


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

    /* ALL */    

   *{
    font-family: 'Titillium Web', sans-serif !important;
   }

   html{
    scroll-behavior: smooth;
    overflow-x:hidden;
    width:100vw;
    height: -webkit-fill-available;
   }

   body{
     overflow-x:hidden;
     position: relative;
     height: -webkit-fill-available;
   }

   p#cookit-message{
    margin:0 !important;
    color:#fff !important;
  }
  #cookit{
   font-size:10px;
  }
  #cookit-link{
    color:#fff !important;
  }

  a:focus{
      color:#A9C697;
  }

   
   /* HEADER */

       /* 3D */

       canvas{
        width:100vw;
        margin:0;
        padding:0;
        z-index:4;
        position: relative;
        overflow-x: hidden;
    }

    header a, header ul{
        z-index: 5;
    }

   header h1, header h2{
       z-index: 2;
   }

    header{
    position:absolute;
    width:100vw;    
    background:#191919;
    overflow-x:hidden;
   }

   header .grid-x{
       background-image: url(../img/ligne1.png);
       background-size: cover;
       color:#fff;
       width:100%;
       height:100vh;
       overflow:hidden;
       position: relative;
       }

   header h1{
       font-size:70px;
       line-height: 85px;
       padding-left:10px;
       position: absolute;
       bottom:80px;
   }

   header h2 img{
       width:70px;
       padding-left:10px;
       padding-top:20px;
    }

    header ul{
        margin-top:25px;
        text-align: right;
    }

    header ul li{
        list-style-type: none;
        margin-right:10px;
        display:inline-block;
        height:30px;
    }

    header ul li a{
        color:#fff;
        transition: all 0.2s ease-out;
    }

    header ul li a:hover{
        color:#A9C697;
    }

    header .contactlink a{
        color:#fff;
        padding-left:15px;
        position: relative;
        transition: all 0.2s ease-out;  
        position: absolute;
        bottom:40px;
    }

    .traitcontact{
        width:60px;
        height:1px;
        top:50%;
        left:75px;
        background:#fff;
        position:absolute;
        transition: all 0.2s ease-out;
    }

    header .contactlink a:hover .traitcontact{
        width:30px;
        background:#A9C697;
    }
    header .contactlink a:hover{
        color:#A9C697;
    }

    header .scroll{
        color:#fff;
        padding-left:15px;
        position: relative;
        transform: rotate(-90deg);
        position: absolute;
        bottom:30px;
        right:50px;
        animation:scroll 1s cubic-bezier(.73,.28,.69,.72) infinite;

    }

    .traitscroll{
        width:60px;
        height:1px;
        top:50%;
        left:60px;
        background:#fff;
        position:absolute;
    }

    @keyframes scroll{
        0%{bottom:45px;}
        50%{bottom:40px;}
        100%{bottom:45px;}
        
    }


     /* LIGNES */

   .lignes1{
       position:absolute;
       z-index:1;
   }

   .lignes1 span{
       width:1px;
       height:100vh;
       background:#A9C697;
   }


    /* COMPETENCES */

    #competences{
        height:700px;
        background:#E7F4DF;
        position: relative;
        width:100vw;
        color:#629641;
    }


    #competences .grid-x{
        background-image: url(../img/ligne2.png);
        background-size: contain;
        background-position:left;
        height:100vh;
        padding:50px 0;
        }

    #competences h2{
        font-size:18px;
        position: relative;
        padding-left:10px;
    }

    .traitdirect{
        width:60px;
        height:1px;
        top:50%;
        left:465px;
        background:#629641;
        position:absolute;
        transition: all 0.2s ease-out;
    }

    #competences .titrecomp{
        font-size:70px;
        line-height: 85px;
        position: relative;
        padding-left:10px;
        margin-top:70px;
    }

    #competences div{
        font-size:16px;
        line-height: 24px;
        display:block;
    }

    #competences h2 {
        font-size: 16px;
    }

    #competences .nbr1{
        position: absolute;
        top:10px;
        left:355px;
    }

    #competences .texte1{
        position: absolute;
        top:100px;
        left:290px;
    }

    #competences .titreges{
        font-size:70px;
        line-height: 85px;
        position: relative;
        padding-left:10px;
        margin-top:-60px;
    }

    #competences .nbr2{
        position: absolute;
        top:96px;
        left:355px;
    }

    #competences .texte2{
        padding-left:5px;
    }

    #competences .titreexe{
        font-size:70px;
        line-height: 85px;
        position: relative;
        padding-left:10px;
        margin-top:0;
    }

    #competences .nbr3{
        position: absolute;
        top:96px;
        left: 355px;
    }

    #competences .texte3{
        position: absolute;
        top:25px;
        left:312px;
    }

    #competences .icon1 img{
        position: absolute;
        top:20px;
        left:376px;
        height:55px;
    }

    #competences .icon2 img{
        position: absolute;
        top:21px;
        left:256px;
        height:55px;
    }

    #competences .icon3 img{
        position: absolute;
        top:101px;
        left:378px;
        height:55px;
    }

    /* PROJETS */

    #projets{
        color:#629641;
    }

    #projets h2{
        font-size:70px;
        line-height: 85px;
        padding-left:10px;
    }

    #projets .grid-x{
        background-image: url(../img/ligne3.png);
        background-size: contain;
        padding:100px 0;
    }

    #projets #projet1 p{
        padding-left:67%;
    }
    #projets #projet1 img{
        width:99%;
    }

    #projets #projet2 p{
        padding-left:52%;
        padding-top:10px;
    }
    #projets #projet2 img{
        margin-left:-4px;
        width:101%;
    }

    #projets #projet32 p{
        padding-top:214%;
        padding-left:5px;
    }
    #projets #projet3 img{
        margin-left:-9px;
        width:101%;
    }

    #projets #projet4{
        padding:100px 0;
    }

    #projets #projet4 p{
        padding-left: 55%;
        margin-top: -154px;
    }
    #projets #projet4 img{
        margin-left: -7px;
        width:101%;
    }

    /* A PROPOS */

    #apropos{
        background:#E7F4DF;
    }

    #apropos .grid-x{
        background-image: url(../img/ligne4.png);
        background-size: contain;
        padding:100px 0;
    }

    #apropos .legende{
        font-size:14px;
        color:#629641;
    }

    #apropos .texte{
        font-size:30px;
        line-height: 38px;
        color:#629641;
        padding-top:8%;
    }

      /* FOOTER */

      footer{
          color:#629641;
          padding:100px 0;
          font-size:20px;
      }

      footer img{
          padding-bottom:25px;
      }

      footer ul li{
          list-style-type: none;
      }

      footer a{
        color:#629641;
        transition: all 0.2s ease-out;
      }

      footer a:hover{
        color:#A9C697;
      }

      footer .design{
          font-size:14px;
      }



/* ==========================================================================
   Media Queries
   ========================================================================== */

/* ======= IPAD ======== */

   @media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1023px)  { 

    header .grid-x{
        background-size: contain;
        }

        header ul li {
            height: 40px;
            margin-right: 15px;
        }


        #competences {
            height: 100vh;
        }

        #competences .titreges {
            margin-top: 100px;
        }

        #competences .titreexe {
            margin-top: 100px;
        }

        #projets #projet3 {
            padding-top: 50px;
        }

        #projets #projet32 p {
            padding-top: 10px;
        }

        #apropos .texte {
            font-size: 20px;
            line-height: 28px;
        }

        #projets #projet4 {
            padding: 80px 0;
        }

        header h2 img {
            width: 100px;
        }

        header ul{
            padding-top:20px;
        }

        .traitdirect {
            left: 465px;
        }

        #projets #projet2 p {
            padding-left: 60%;
        }

}


/* IPAD Landscape */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 2) {
    #competences .titreexe {
        margin-top: 0;
        padding-left:0;
        font-size: 64px;
    line-height: 80px;
    }

    #competences .titrecomp {
        font-size: 64px;
    line-height: 80px;
    }

    #competences .texte3 {
        left: 294px;
    }

    #competences .titreges {
        margin-top: -40px;
        font-size: 64px;
    line-height: 80px;
    }

    #competences .texte1 {
        left: 277px;
    }
    #competences .nbr1 {
        left: 327px;
    }

    #competences .nbr3 {
        top: 91px;
        left: 317px;
    }

    #competences .nbr2 {
        top: 93px;
        left: 327px;
    }

    #competences .icon3 img {
        left: 353px;
    }
}

/* IPAD pro */

@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 2) {
    #competences .titreexe {
        margin-top: 0;
        padding-left:0;
        font-size: 64px;
    line-height: 80px;
    }

    #competences .titrecomp {
        font-size: 64px;
    line-height: 80px;
    }

    #competences .texte3 {
        left: 294px;
    }

    #competences .titreges {
        margin-top: -40px;
        font-size: 64px;
    line-height: 80px;
    }

    #competences .texte1 {
        left: 277px;
    }
    #competences .nbr1 {
        left: 327px;
    }

    #competences .nbr3 {
        top: 91px;
        left: 317px;
    }

    #competences .nbr2 {
        top: 93px;
        left: 327px;
    }

    #competences .icon3 img {
        left: 353px;
    }
}

/* ======= IPHONE ======== */

@media only screen 
and (min-device-width : 0) 
and (max-device-width : 767px){

    #cookit-container{
        padding-top:5px;
      }

    #apropos .grid-x{
        background-image: url(../img/lignes-mobile4.png);
        background-size: cover;
        padding:80px 0;
    }

    #projets .grid-x{
        background-image: url(../img/lignes-mobile3.png);
        background-size: cover;
        padding:100px 0;
    }

    #competences .grid-x{
        background-image: url(../img/lignes-mobile2.png);
        background-size: cover;
        background-position:left;
        height: auto;
        }

        header .grid-x{
            background-image: url(../img/lignes-mobile1.png);
            background-size: cover;
            }

            header h1 {
                font-size: 38px;
                line-height: 50px;
                bottom:190px;
            }

            header .contactlink a {
                bottom: 140px;
            }

            .scroll{
                display: none;
            }

            .traitdirect {
                display:none;
            }

            #competences {
                height: auto;
            }

            #competences .titrecomp {
                font-size: 38px;
                line-height: 50px;
                margin-top: 50px;
            }

            #competences .texte1 {
                position: relative;
                top: 10px;
                left: 0;
            }

            #competences .nbr1 {
                top: 0px;
                left: 200px;
            }

            #competences .icon1 img {
                top: 59px;
                left: 167px;
                height: 35px;
            }

            #competences .titreges {
                font-size: 38px;
                line-height: 50px;
                margin-top:55px;
            }

            #competences .texte2 {
                padding-left: 5px;
                padding-right: 145px;
            }

            #competences .nbr2 {
                top: 49px;
                left: 200px;
            }

            #competences .icon2 img {
                top: 12px;
                left: 146px;
                height: 35px;
            }

            #competences .titreexe {
                font-size: 38px;
                line-height: 50px;
                margin-top:50px;
            }

            #competences .texte3 {
                position: relative;
                top: 10px;
                left: 0;
                margin-bottom:50px;
            }

            #competences .nbr3 {
                top: 48px;
                left: 200px;
            }

            #competences .icon3 img {
                top: 9px;
                left: 178px;
                height: 35px;
            }

            #projets h2 {
                font-size: 38px;
                line-height: 50px;
                padding-left: 5px;
            }

            #projets #projet1{
                padding-bottom: 50px;
            }

            #projets #projet1 p {
                padding-left: 3%;
            }

            #projets #projet1 img {
                width: 100%;
            }

            #projets #projet2{
                padding-bottom: 50px;
            }

            #projets #projet2 img {
                margin-left: 0;
                width: 100%;
            }

            #projets #projet32{
                padding-bottom: 50px;
            }

            #projets #projet3 img {
                margin-left: 0;
                width: 100%;
            }

            #projets #projet32 p {
                padding-top: 3%;
                padding-left: 5px;
            }

            #projets #projet4 img {
                margin-left: 0;
                width: 100%;
            }

            #projets #projet4 {
                padding: 50px 0;
            }

            #projets #projet4 p {
                padding-left: 4px;
                margin-top: 0;
            }

            #projets #projet4 {
                padding: 0 0;
            }

            #apropos .texte {
                font-size: 16px;
                line-height: 26px;
            }

            #apropos .legende {
                font-size: 12px;
            }

            footer{
                padding: 80px 0;
            }

            footer ul{
                padding-left: 18px;
            }
            

}


/* Mobile Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) { 
    header h1 {
        font-size: 25px;
        line-height: 30px;
    }
    .traitdirect {
        top: 55%;
        left: 461px;
    }
}

/* ======= BIG SCREEN ======== */
@media screen and (min-width: 1600px) {
    


  }



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

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

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {

    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

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

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

    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;
    }
}