/* Portfolio CSS */

/*Pages*/
html{height:100%;overflow: hidden}
body{height:100%;color:#717171;font-family:'DINLight', "Trebuchet Ms", Arial, Helvetica, sans-serif;font-size:16px;background:#f3f3f3;overflow: hidden;}
* {margin:0;padding:0;border:none;list-style-type:none}
.clr {clear:both}
a {color:#010101;text-decoration:none}
a:hover {color:#686868}

/* layout */
#wrapper {
  height:100%;
  min-height:100%;
  position:relative;
  font-size:0.8em;
  overflow: hidden
}

#top {
    position:absolute;
    width:100%;
    top:0;
    text-align:right;
    z-index: 2000;
}

div#middle {
    height: 100%;
    position: absolute;
    top: 75px;
    bottom: 36px;
    /* position: relative; */
    /*background: #EB0;*/
    width: 100%;
    /*height: initial;*/
    /*border: 1px solid red;*/
    padding: 0;
}


#menu {float:right;margin:20px 10px 0 0}
#menu li {float:left;height:11px;border-right:1px solid #000;/*font-size:0.937em;*/font-size:0.9em}
#menu li a {text-transform:uppercase;padding:0 9px;display:block;margin-top:-2px}
#menu li.active a, #footer a.active {color:#686868}
#menu li.content {/*display:none;*/}
#menu li.last {border:0}

#middle {padding-top:75px;padding-bottom:120px}

#logo {position:absolute;left:20px;top:75px;text-align: left;z-index: 1}
#logo h1, #photography h1{font-size:1.35em;font-family:'DINMedium', "Trebuchet Ms", Arial, Helvetica, sans-serif;font-weight:normal;line-height:15px;color:#010101}
#logo h1 span, #photography h1 span { font-family:'DINLight';font-weight:normal;font-size:0.741em; line-height:10px;color:#686868}
#logo h1 span #lien, #photography h1 span #lien { font-family:'DINLight';font-weight:normal;font-size:16px; line-height:10px;color:#000000}

#photography, #about, #legal {
    width: 100%;
    padding: 0;
    z-index: 300;
    height: calc(100% - 30px);
    margin: auto; /*74%*/
    box-sizing: border-box;
    position: relative;
    background:#f3f3f3;
    top: -1px;
}




#photography, #about, #legal {
  position: absolute;
  top: -1px;
}
#photography h1 {margin-left: 5px}


/*About, Legal*/
div#page2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0 13%;
    box-sizing: border-box;
    z-index: 1006 !important;
}

div#page2.hidden {
  display: none;
}
div#page2 .page2-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    /*border: 1px solid;*/
}
div#page2 .page2-wrapper div {
  z-index: 2;
}
div#page2 .page2-wrapper div.under {
  z-index: 1;
}
div#page2 .page2-wrapper div.hidden {
  visibility: hidden;
}

#about, #legal, #photography {/*width:990px;*/padding-top:14px;margin:0 auto;overflow:hidden;}
#about h2, #legal h2, #photography h2 {margin:-1px 7px 0 0px;font-family:'DINMedium', "Trebuchet Ms", Arial, Helvetica, sans-serif;font-size:1.05em;font-weight:normal;}
#about .col, #legal .col, #photography .col {width:calc(25% - 14px);border:1px solid #d3d3d3;border-left:0;border-right:0;border-bottom:0;float:left; margin:0px 7px 0;padding:15px 0px 0px 0px;}
#about .col:last-of-type {margin-right: 0px}
#about .cola, #legal .cola, #photography .cola {width:50%;margin-left:20px;border:1px solid #d3d3d3;border-left:0;border-right:0;border-bottom:0;float:left; padding:15px 0px 0px 0px;margin:0px 7px 0px 0px;}
#about .cola p, #legal .cola p, #photography .cola p{margin:-1px 0px 0 0px;padding:15px 0; text-align:justify}
#about .col p, #legal .col p, #photography .col p{padding:15px 0; text-align:justify}

#about .col img , #legal .col img, #photography .col img {width:100%;margin-bottom:15px}
#about .col ul, #legal .col ul, #photography .col ul{margin:-1px 7px 0 0px;padding:15px 0;}

/*About*/

#photography {/*max-width:990px;margin:15px auto;*/margin: 0px auto;height: 100%;overflow:hidden;}
#comingsoon{position:absolute;left:20px;padding-top:75px;}

/*footer*/
#footer {position:fixed;bottom:0;width:100%;height:36px;background:#f3f3f3;z-index:1010}
#footer .inner {margin:auto;width:74%}
#footer p.info {float:left;width:20%;}
#footer td.info {white-space: nowrap;}
#footer .tools {height:30px;width:100%;padding-bottom: 0px}
#footer .tools td {width:15%;text-align:center}
#footer .tools td.nav {width:40%;border:1px solid #d0d0d0;border-bottom:0;border-top:0}
#footer .tools a, #footer .tools span {}
#footer a.home {}
#footer .tools td.info {
    text-align: left;
    padding-left: 5px;
}
#footer .tools td:nth-last-child(2) {
    text-align: right;
    padding-right: 5px;
}
#footer a.prev {float:left;margin-left:25px}
#footer span.current {margin:0}
#footer span.total {margin:0;color:#000}
#footer a.next {float:right;margin-right:25px}
#footer a.audio {display:none}
#footer a.mentions, #footer span.mentions {white-space: nowrap;}
#footer a.fullscreen {}
#footer .tools span.bar {display:block;height:12px;border:1px solid #d0d0d0;border-bottom:0;border-top:0;border-right:0;float:right;margin-right:-18px;margin-top:2px}
#footer .tools span.bar2 {margin-right:0px}

#footer .about a.prev {display:none}
#footer .about a.next {display:none}

div#projets {
    width: 74%;
    height: 100%;
    margin: 15px auto;
    box-sizing: border-box;
    position: relative;
    /*background: #4EB;*/
    /*border: 1px solid blue;*/
}

div#page, div#page2 {
    height: 100%;
}

#projets .page {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: #f3f3f3;
    box-sizing: border-box;
}




div#projets .item {
    /*width: 23.5365%;*/
    /*width:227px;height:203px;*/
    /* padding: 7px; */
    box-sizing: content-box;
    margin:-1px 7px 0;
    float:left;
    text-align:center;
    padding:15px 0;
    border:1px solid #d3d3d3;
    border-left:0;
    border-right:0;
    border-bottom:0
}
/* flex items */
#projets .page {
  /*display: flex;*/
  /*flex-flow: row wrap;*/
}
div#projets .item {
  /*flex: 0 1 calc(25% - 14px);*/
  width: calc(25% - 14px);
  /*transition: all 0.35s;*/
}

@media (min-width:1275px) {

  div#projets .item {
    /*width: 23.5365%;*/
  }
}


div#projets .item a.img {
    display:block;
    position:relative;
    overflow:hidden;
    width:100%;
    height:100%;
    background:#e1e1e1;
    width: auto;

    /*background:rgba(255, 144, 0, 0.65);*/
    background-color: transparent;
    position:absolute;/* needed*/
    top:0;/* needed*/
    left:0;/* needed*/
    bottom:0;/* needed*/
    right:0;/* needed*/
}

div#projets .item section {
  overflow: hidden;
  position: relative;
}

div#projets .item img {
    width: 100%;
    height: auto;
    margin: auto !important;/*
    -webkit-transform: scale(1.931330472);
    -moz-transform: scale(1.931330472);
    -ms-transform: scale(1.931330472);
    -o-transform: scale(1.931330472);
    transform: scale(1.931330472);*/
    /*-webkit-transform: scale(1.35);
    -moz-transform: scale(1.35);
    -ms-transform: scale(1.35);
    -o-transform: scale(1.35);
    transform: scale(1.35);*/
    -webkit-transform: scale(1.15);
    -moz-transform: scale(1.15);
    -ms-transform: scale(1.15);
    -o-transform: scale(1.15);
    transform: scale(1.15);
    /*-webkit-transform: scale(2);
    -moz-transform: scale(2);
    -ms-transform: scale(2);
    -o-transform: scale(2);
    transform: scale(2);*/
    /*-webkit-transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1), opacity 3s cubic-bezier(0.23, 1, 0.32, 1);
    -moz-transition:  transform .35s cubic-bezier(0.23, 1, 0.32, 1), opacity 3s cubic-bezier(0.23, 1, 0.32, 1);
    -ms-transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1), opacity 3s cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition:  transform .35s cubic-bezier(0.23, 1, 0.32, 1), opacity 3s cubic-bezier(0.23, 1, 0.32, 1);
    transition:  transform .35s cubic-bezier(0.23, 1, 0.32, 1), opacity 3s cubic-bezier(0.23, 1, 0.32, 1);
    */
    -webkit-transition: opacity 1500ms cubic-bezier(.19,1,.22,1) 0ms,-webkit-transform 1500ms cubic-bezier(.215,.61,.355,1) 0ms;
    transition: opacity 1500ms cubic-bezier(.19,1,.22,1) 0ms,transform 1500ms cubic-bezier(.215,.61,.355,1) 0ms;
    transition: opacity 1500ms cubic-bezier(.19,1,.22,1) 0ms,transform 1500ms cubic-bezier(.215,.61,.355,1) 0ms,-webkit-transform 1500ms cubic-bezier(.215,.61,.355,1) 0ms;
}
/* origine zooom/dezoom pour vignettes home */
div#projets .item img.top {
    -webkit-transform-origin: center 0;
    -moz-transform-origin: center 0;
    -ms-transform-origin: center 0;
    -o-transform-origin: center 0;
    transform-origin: center 0;
}
div#projets .item img.top-30-percent {
    -webkit-transform-origin: center 30%;
    -moz-transform-origin: center 30%;
    -ms-transform-origin: center 30%;
    -o-transform-origin: center 30%;
    transform-origin: center 30%;
}
div#projets .item img.hover,
div#projets .item img:hover {/*
    -webkit-transform: scale(1.50215);
    -moz-transform: scale(1.50215);
    -ms-transform: scale(1.50215);
    -o-transform: scale(1.50215);
    transform: scale(1.50215);*/
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}
/*
body #projects ul.items li a:hover .img img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-transition: opacity 3000ms cubic-bezier(.19,1,.22,1) 0ms,-webkit-transform 2000ms cubic-bezier(.215,.61,.355,1) 0ms;
    transition: opacity 3000ms cubic-bezier(.19,1,.22,1) 0ms,transform 2000ms cubic-bezier(.215,.61,.355,1) 0ms;
    transition: opacity 3000ms cubic-bezier(.19,1,.22,1) 0ms,transform 2000ms cubic-bezier(.215,.61,.355,1) 0ms,-webkit-transform 2000ms cubic-bezier(.215,.61,.355,1) 0ms;
}
#projects ul.items li a .img img {
    -webkit-transition: opacity 3000ms cubic-bezier(.19,1,.22,1) 0ms,-webkit-transform 2000ms cubic-bezier(.19,1,.22,1) 0ms;
    transition: opacity 3000ms cubic-bezier(.19,1,.22,1) 0ms,transform 2000ms cubic-bezier(.19,1,.22,1) 0ms;
    transition: opacity 3000ms cubic-bezier(.19,1,.22,1) 0ms,transform 2000ms cubic-bezier(.19,1,.22,1) 0ms,-webkit-transform 2000ms cubic-bezier(.19,1,.22,1) 0ms;
}*/

#projets .item h2 {font-family:'DINMedium', "Trebuchet Ms", Arial, Helvetica, sans-serif;margin-top:10px;font-size:1.05em;font-weight:normal}
#projets .item h2 a{color:#686868;text-decoration:none}
#projets .item h2 a:hover {color:#000}
#projets .item span.desc {font-size:1.05em}



.projet  {margin-top:-30px;width:74%;width:100vmin;margin:auto}
.projet  h2, .projet  p.desc {font-size:1em;text-align:center}
.projet  h2 {margin-top: 2px;font-family:'DINMedium', "Trebuchet Ms", Arial, Helvetica, sans-serif;font-weight: normal;margin-bottom: 3px;}

#slides {
  position: relative;
  height: 100%;
}
.slide {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f3f3f3;
    text-align: center;
    /*overflow-y: scroll;*/
}
.slide img {
  width: 100%;
}
.slide img.vertical {
    max-height: 64vmin;
    width: auto;
    margin: auto;
}

#slides .slide img {visibility:visible;vertical-align:middle;border:1px solid #FFFFFF;max-width:100%}
#slides .slide.in img, #slides .slide.out img {-moz-box-shadow:-4px 4px 4px #e6e6e6;-webkit-box-shadow:-4px 4px 4px #e6e6e6;-o-box-shadow:-4px 4px 4px #e6e6e6;box-shadow: -4px 4px 4px #e6e6e6;}
/*#slides .slide.out {left:100%;position: absolute;}*/
/*#slides .slide.out img {-moz-box-shadow:none;-webkit-box-shadow:none;-o-box-shadow:none;box-shadow:none;border:0px solid #f3f3f3;}*/
#slides .slide img.noshadow, #slides .slide img.computer, #slides .slide img.phone, #slides .slide img.tablet {-moz-box-shadow:none;-webkit-box-shadow:none;-o-box-shadow:none;box-shadow:none;border:0;}
#slides .off {display:none}

#slides .scrollable-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100vmin;
}

#slides .scrollable-wrapper-inner {
  padding-right: 17px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
#slides .scrollable-wrapper-inner::-webkit-scrollbar { 
    display: none; 
}

div#container {
    height: 100%;
}

.projet {
    height: 100%;
}

.beginOut {
    -webkit-transform: translateX(125%);
    transform: translateX(125%);
}
/* anims CSS */

@-webkit-keyframes slideInRight {
  from {
    -webkit-transform: translateX(125%);
    transform: translateX(125%);
    visibility: visible;
  }

  to {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    -webkit-transform: translateX(125%);
    transform: translateX(125%);
    visibility: visible;
  }

  to {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.slideInRight {
  -webkit-animation-name: slideInRight;
  animation-name: slideInRight;
  -webkit-animation-duration: .9s;
  animation-duration: .9s;
  -webkit-animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}


@-webkit-keyframes slideOutRight {
  from {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  to {
    visibility: hidden;
    -webkit-transform: translateX(125%);
    transform: translateX(125%);
  }
}

@keyframes slideOutRight {
  from {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  to {
    visibility: hidden;
    -webkit-transform: translateX(125%);
    transform: translateX(125%);
  }
}

.slideOutRight {
  -webkit-animation-name: slideOutRight;
  animation-name: slideOutRight;
  -webkit-animation-duration: .9s;
  animation-duration: .9s;
  -webkit-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000); 
   -moz-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000); 
     -o-transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000); 
        transition-timing-function: cubic-bezier(1.000, 0.000, 0.000, 1.000); /* easeInOutExpo */
}
.animated {
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}


/* loading and stuff */
.loading {
    /*box-shadow: 0 18px 12px -11px rgba(0,0,0,.1);*/
    -webkit-transform: translate(0,20%);
    -ms-transform: translate(0,20%);
    transform: translate(0,20%);
    opacity: 0;
    transition: all 0.25s;
    transition-property: transform, opacity;
} 
.loaded {
    /*box-shadow: 0 0px 0px 0px rgba(0,0,0,.1);*/
    -webkit-transform: translate(0,0%);
    -ms-transform: translate(0,0%);
    transform: translate(0,0%);
    opacity: 1;
}
.loaded:nth-of-type(1) { transition-delay: 0s }
.loaded:nth-of-type(2) { transition-delay: .05s }
.loaded:nth-of-type(3) { transition-delay: .1s }
.loaded:nth-of-type(4) { transition-delay: .15s }
.loaded:nth-of-type(5) { transition-delay: .2s }
.loaded:nth-of-type(6) { transition-delay: .25s }
.loaded:nth-of-type(7) { transition-delay: .3s }
.loaded:nth-of-type(8) { transition-delay: .35s }

div#projets .item section {
  background:#e1e1e1;
}
div#projets .item.loading img, #wrapper.loading div#projets .item img {
  opacity: 1;
  transition: all;
}

#projets .item.slideInUpFadeIn {
  /*animation-name: slideInUp, fadeIn;
  animation-duration: 2.5s, 1s;
  animation-delay: -1.85s, -0.25s;*/
  animation-name: slideInUp;
  animation-duration: 2.5s;
  animation-delay: -1.85s;
/*  animation-name: fadeIn;
  animation-duration: 1s;
  animation-delay: -0.25s;*/
}

#projets .item.slideInUpFadeIn.loading {
  will-change: transform, opacity;
}

#photography.slideInUpFadeIn,
#legal.slideInUpFadeIn,
#about.slideInUpFadeIn {
  animation-name: slideInUp, fadeIn;
  animation-duration: 2.5s, 1s;
  animation-delay: -1.85s, -0.25s;
}

#photography.slideOutDownFadeOut,
#legal.slideOutDownFadeOut,
#about.slideOutDownFadeOut {
  animation-name: slideOutDown2, fadeOut;
  animation-duration: 1s, 1s;
  animation-delay: 0s, 0s;
  /*animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000), cubic-bezier(.23,0,.45,.96);*/
  animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}



@-webkit-keyframes slideOutDown2 {
  from {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  to {
    visibility: hidden;
    -webkit-transform: translate3d(0, 10%, 0);
    transform: translate3d(0, 10%, 0);
  }
}

@keyframes slideOutDown2 {
  from {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  to {
    visibility: hidden;
    -webkit-transform: translate3d(0, 10%, 0);
    transform: translate3d(0, 10%, 0);
  }
}

.slideOutDown2 {
  -webkit-animation-name: slideOutDown2;
  animation-name: slideOutDown2;
}



a.icon-scroll.slideInDownFadeIn {
  /*animation-name: slideInDown, fadeIn;*/
  animation-name: pulse, fadeIn;
  animation-duration: 2.5s, 1.25s;
  animation-delay: -1.75s, 0s;
}
/*a.icon-scroll.slideOutDownFadeOut, .scrollable-wrapper:hover a.icon-scroll, a.icon-scroll:hover {*/
a.icon-scroll.slideOutDownFadeOut, .scrollable-wrapper:hover a.icon-scroll {
  /*-webkit-animation-name: slideOutDown, fadeOut;*/
  /*animation-name: slideOutDown, fadeOut;*/
  -webkit-animation-name: pulse, fadeOut;
   animation-name: pulse, fadeOut;
  -webkit-animation-duration: 2.5s, 1.25s;
  animation-delay: 2s, 2s;
}
/* ordi en css */
div.demo {
  width: 100%;
  /*border:1px solid blue;*/
  /* whatever width you want */
  display: inline-block;
  position: relative;
}
div.demo:after {
  padding-top: 72.25%;
  /* 16:9 ratio */
  display: block;
  content: '';
}
#slides div.demo div.demo-screen-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  height: 100% !important;
  /* fill parent */
  /*background-color: deepskyblue;*/
  /* let's see it! */
  /*color: white;*/
}
#slides div.demo div.demo-screen-wrapper div.demo-phone {
  /*border:1px solid green;*/
  width: 30%;
  height: auto;
  padding: 7.6% .8%;
}
#slides .demo-screen-wrapper {
    position: relative;
    width: 100%;
    height: 61vw;
    margin: auto
}
@media (min-width: 1024px) {
    #slides .demo-screen-wrapper {
        width: auto;
        height: 37vw
    }

}
@media (min-width: 1920px) {
    #slides .demo-screen-wrapper {
        height: 710px
    }
}
/* base sur le format min-aspect-ratio */
@media (min-aspect-ratio: 2/1) {
    #slides .demo-monitor {
        /*border:1px solid blue;*/
        max-width: 100vmin;
        max-width: 100vh;
        max-width: 88%;
    }
    #slides .slide img.vertical {
      max-height: 63vmin;
      max-height: 63%;
      /*border:1px solid green;*/
    }

}
@media (min-aspect-ratio: 2/1) and (max-height: 600px) {
    #slides .demo-screen-wrapper {
        
    }
    .slide img.vertical {
      max-height: 63%;
      max-height: 65vmin;
    }
}
@media (min-aspect-ratio: 2/1) and (max-height: 500px) {
    #slides .demo-screen-wrapper {
        
    }
    .slide img.vertical {
      max-height: 60%;
      max-height: 60vmin;
    }
}
@media (max-aspect-ratio: 2/1) and (max-height: 600px) {
    #slides .demo-screen-wrapper {
        
    }
    .slide img.vertical {
      max-height: 63%;
    }
}

@media (max-aspect-ratio: 2/1) and (max-height: 600px) {
    
  #slides .demo-phone {
    width: 25.5vmin;
    /* border:1px solid blue;*/
  }
}
@media (max-aspect-ratio: 2/1) and (max-height: 700px) {
    
  #slides .demo-phone {
    width: 25.5vmin;
    /*border:1px solid red;*/
  }
}
@media (min-aspect-ratio: 3/2) and (max-width: 987px) {
    #slides .demo-screen-wrapper {
        max-width: 100vmin;
    }
}

@media (min-aspect-ratio: 5/4) and (max-width: 987px) {
    #slides .demo-screen-wrapper {
        max-width: 100vmin;
        /*border: 1px solid red;*/
    }

    /*.slide img.vertical {
      max-height: 63%;
    }*/
}

#slides .demo-screen {
    position: relative;
    z-index: 100;
    box-sizing: border-box;
    height: 100%;
    border-radius: 3px;
    margin: 0 auto;
    background: #e7e7e7;
    /*overflow: hidden;*/
    will-change: width, height, margin-top, border-radius, padding, top;
    line-height: 0;
    /*cursor: pointer;*/
    /*cursor: url(../img/magnifying-glass-search3.png) 2 2, zoom-in;*/
    /*cursor: zoom-in;*/
    transition: top .5s cubic-bezier(.694, .0482, .335, 1) .2s, padding .5s cubic-bezier(.694, .0482, .335, 1) .2s, margin-top .5s cubic-bezier(.694, .0482, .335, 1) .2s, border-radius .5s cubic-bezier(.694, .0482, .335, 1) .2s, width .5s cubic-bezier(.694, .0482, .335, 1) .2s, height .5s cubic-bezier(.694, .0482, .335, 1) .2s
}
#slides .demo-screen img.zoomable {
    /*cursor: zoom-in;*/
    cursor: pointer;
}

.is--resizing #slides .demo-screen {
    transition-delay: 0ms;
    transition-duration: 0ms
}
#slides .demo-screen-image {
    opacity: 1;
    height: 100%;
    width: auto;
    transition: opacity .2s cubic-bezier(.694, .0482, .335, 1)
}
#slides .demo-screen-image.loading {
    opacity: 0!important
}
#slides .demo-devices {
    margin: 35px auto
}
#slides .demo-devices .demo-device-icon:first-child {
    margin-left: 4px
}
#slides .demo-devices g {
    fill: #aeaeae;
    transition: fill .2s cubic-bezier(.694, .0482, .335, 1)
}
#slides .demo-device-icon {
    cursor: pointer;
    margin: 20px
}
#slides .demo-device-icon.is--active g,
#slides .demo-device-icon:hover g {
    fill: #1c1c1c
}
#slides .demo-monitor {
    top: 0;
    width: 100%;
    height: 86.8%;
    height: auto;
    padding: 2.7vw;
    border-radius: 2.2vw;
    box-sizing: border-box
}
@media (min-width: 1024px) {
    #slides .demo-monitor {
        /*width: 52.7vw;*/
        /*height: 85.1%;*/
        padding: 1.8vw;
        border-radius: 1.1vw
    }
}
@media (min-width: 1920px) {
    #slides .demo-monitor {
        /*width: 1012px;*/
        padding: 35px;
        border-radius: 21px
    }
}
#slides .demo-monitor .demo-screen-monitor-base {
    opacity: 1;
/*    -webkit-transform: translate(-50%, 100%);
    -ms-transform: translate(-50%, 100%);
    transform: translate(-50%, 100%)*/
    -webkit-transform: translate(0, 100%);
    -ms-transform: translate(0, 100%);
    transform: translate(0, 100%)
}
#slides .demo-tablet {
    top: 5vw;
    width: 85vw;
    height: 83%;
    padding: 1.7% 7%;
    border-radius: 2.75vw
}
@media (min-width: 1024px) {
    #slides .demo-tablet {
        top: 5.3vw;
        width: 43vw;
        height: 70%;
        border-radius: 1.9vw;
        padding: 2% 7.2%;
        margin-top: 0
    }
}
@media (min-width: 1920px) {
    #slides .demo-tablet {
        top: 102px;
        width: 826px;
        border-radius: 36px
    }
}
#slides .demo-tablet~.demo-tablet-home-button {
    opacity: 1;
    transition: opacity .25s cubic-bezier(0, .25, .08, 1) .8s
}
.is--resizing #slides .demo-tablet~.demo-tablet-home-button {
    transition-delay: 0ms;
    transition-duration: .2s
}
#slides .demo-phone {
    top: 0;
    display: inline-block;
    width: 30.3vw;
    height: auto;
    padding: 7.6% .8%;
    border-radius: 4.1vw;
    margin: 0 auto;
}

/* st tweaks */
#slides .demo-screen-wrapper-phone {
  display: inline-block;
  width: auto;
  height: auto;
}
#slides .demo-screen-wrapper-tablet {
  display: inline-block;
  width: auto;
  height: auto;
  overflow-x: hidden;
}
/* st tweaks. */
@media (min-width: 1024px) {
    #slides .demo-phone {
        width: 19.3vw;
        border-radius: 2.65vw;
        padding: 19.5% 4.5%
    }
}
@media (min-width: 1920px) {
    #slides .demo-phone {
        width: 371px;
        border-radius: 51px
    }
}
#slides .demo-phone~.demo-phone-home-button {
    opacity: 1;
    transition: opacity .25s cubic-bezier(0, .25, .08, 1) .8s
}
.is--resizing #slides .demo-phone~.demo-phone-home-button {
    transition-delay: 0ms;
    transition-duration: 0ms
}
#slides .demo-screen-monitor-base {
    position: absolute;
    bottom: 0;
    width: 28%;
    height: 13.2%;
    padding: 0 4.1%;
    margin: auto auto auto 50%;
    margin-left: auto; 
    left: 0;
    right: 0;
    box-sizing: border-box;
    background: #e7e7e7;
    background-clip: content-box;
    -webkit-transform: translate(-50%, -125%);
    -ms-transform: translate(-50%, -125%);
    transform: translate(-50%, -125%);
    opacity: 0;
    transition: opacity .5s cubic-bezier(.694, .0482, .335, 1) .2s, -webkit-transform .5s cubic-bezier(.694, .0482, .335, 1) .2s;
    transition: opacity .5s cubic-bezier(.694, .0482, .335, 1) .2s, transform .5s cubic-bezier(.694, .0482, .335, 1) .2s;
    transition: opacity .5s cubic-bezier(.694, .0482, .335, 1) .2s, transform .5s cubic-bezier(.694, .0482, .335, 1) .2s, -webkit-transform .5s cubic-bezier(.694, .0482, .335, 1) .2s
}
.is--resizing #slides .demo-screen-monitor-base {
    transition-delay: 0ms;
    transition-duration: 0ms
}
@media (min-width: 1024px) {
    #slides .demo-screen-monitor-base {
        width: 32%;
        height: 14.9%
        /*-webkit-transform: translate(calc(-50% - 16% + 5.5%), 100%);
        -ms-transform: translate(calc(-50% - 16% + 5.5%), 100%);
        transform: translate(calc(-50% - 16% + 5.5%), 100%)*/
    }

}
#slides .demo-screen-monitor-base:after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 4px;
    border-radius: 1px;
    background: #e7e7e7;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%)
}
#slides .demo-tablet-home-button {
    position: absolute;
    top: 50%;
    right: 4.7%;
    opacity: 0;
    z-index: 100;
    width: 3.1vw;
    height: 3.1vw;
    border-radius: 100%;
    background: #fff;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    transition: opacity .2s cubic-bezier(.694, .0482, .335, 1)
}
@media (min-width: 1024px) {
    #slides .demo-tablet-home-button {
        right: 1.7%;
        width: 1.6vw;
        height: 1.6vw
    }
}
@media (min-width: 1920px) {
    #slides .demo-tablet-home-button {
        width: 31px;
        height: 31px
    }
}
#slides .demo-phone-home-button {
    position: absolute;
    left: 50%;
    bottom: 1.5vh;
    opacity: 0;
    z-index: 100;
    width: 3.8vh;
    height: 3.8vh;

    bottom: 2.5% !important;
    width: 11.5% !important;
    height: 5.99% !important;
    border-radius: 100%;
    background: transparent;
    border: 1px solid #fff;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    transition: opacity .2s cubic-bezier(.694, .0482, .335, 1)
}
/* st tweaks */
#slides .demo-phone {
  width: 29.5vmin;
  padding: 19.5% 4.5%;
}
#slides div.demo div.demo-screen-wrapper div.demo-phone {
  margin:auto -4% auto -4%;
  padding: 0% 0%;
  box-sizing: content-box;
  margin: auto -4% auto -4%;
  border-radius: 9%/5.5%;
}
div#slides .slide .demo-phone img.phone {
    padding-top: 17%;
    padding-bottom: 20%;
    padding-left: 4%;
    padding-right: 4%;
    /* margin-top: -15%; */
    /* display: table-row-group; */
    box-sizing: border-box;
    margin-left: 0%;
    margin-right: 0%;
}
#slides .demo-phone-home-button  {
  bottom: 1.5vh;
  z-index: 100;
  width: 3.8vh;
  height: 3.8vh;
  opacity: 1;
}
/* st tweaks. */
@media (min-width: 1024px) {
    #slides .demo-phone-home-button {
        width: 2.4vw;
        height: 2.4vw;
        bottom: .7vw
    }
}
/* st tweaks */
@media (min-width: 1024px) {
    #slides .demo-phone-home-button {
      bottom: 1.5vh;
      width: 3.8vh;
      height: 3.8vh;
    }
}
/* st tweaks. */
@media (min-width: 1920px) {
    #slides .demo-phone-home-button {
        width: 36px;
        height: 36px;
        bottom: 11px
    }
}
#slides .demo-screen-browser {
    display: none;
    width: 100%;
    height: 20px;
    border-bottom: 1px solid #d9d9d9;
    background: #fff;
    pointer-events: none
}


/* scroll indicator */
.icon-scroll,
.icon-scroll:before {
  position: absolute;
  left: 50%;
  /*pointer-events: none;*/
  /*cursor: default;*/
  cursor: pointer;
  /*transition-delay: 1s;*/
}
.icon-scroll:hover {
  pointer-events: none;
}
.icon-scroll {
  pointer-events: auto;
  pointer-events: none;
  position: absolute;
  bottom: 55px;
  right: auto;
  left: 50%;
  width: 40px;
  height: 70px;
  margin-left: -20px;
  margin-top: -35px;
  box-shadow: inset 0 0 0 1px #fff;
  border-radius: 25px;
  width: 30px;
  height: 50px;
  margin-left: -15px;
  margin-top: -25px;
  box-shadow: inset 0 0 0 1px #fff;
  border-radius: 15px;
  color: #FFF;
}
.icon-scroll:before, .icon-scroll svg {
  content: '';
  background: #fff;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  top: 8px;
  border-radius: 4px;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-name: scroll;
          animation-name: scroll;
  background: url(../img/down-w-16.png) no-repeat center center;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  top: 8px;
  border-radius: 4px;
}
.icon-scroll svg path {
  stroke: #FFF !important;
}
.icon-scroll svg {
  width: 16px;
  height: 16px;
  position: absolute;
}
#slides .scrollable-wrapper:hover {
  /*border:1px solid blue;*/
}
#slides .scrollable-wrapper:hover .icon-scroll {
  box-shadow:inset 0 0 0 1px #9E9E9E;
}
#slides .scrollable-wrapper:hover .icon-scroll svg path {
  stroke: #9E9E9E !important;
}
@-webkit-keyframes scroll {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    /*-webkit-transform: translateY(46px);*/
            /*transform: translateY(46px);*/
    -webkit-transform: translateY(36px);
            transform: translateY(36px);
  }
}
@keyframes scroll {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    /*-webkit-transform: translateY(46px);*/
            /*transform: translateY(46px);*/
    -webkit-transform: translateY(36px);
            transform: translateY(36px);
  }
}

.scroll-overlay {
    /*border: 1px solid red;*/
    height: 120px;
    position: absolute;
    bottom: 0;
    /*background: rgba(255,0,0,0.5);*/
    width: 96%;
    pointer-events: none;
    z-index: 1;
    cursor: pointer;
}
.scroll-overlay:hover, .scroll-overlay:hover:before {
    pointer-events: none;
}
.scroll-overlay:before {
    content:"";
    width:50px;
    height:70px;
    display:block;
    /*border:1px solid blue;*/
    position: absolute;
    left: 50%;
    transform:translate(-50%,-50%);
    top:40%;
    pointer-events:auto;
}


/* icon link */
div.icons {
  position: absolute;
  top: 50px;
  right: 50px;
}
a.icon {
  float: right;
  margin-left: 5px;
  width: 24px;
  height: 24px;
  width: 28px;
  height: 28px;
  display: block;
  text-indent: -9999px;
  background: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0);
  background-size: 24px 24px;
  background-size: 28px 28px;
  border-radius: 50%;
  opacity: 0;
  transition: all .2s cubic-bezier(.694, .0482, .335, 1)
}
body .panWrapper a.controls:before {
  background-size: 16px;
  width: 28px;
  height: 28px;
  /*width: 32px;*/
  /*height: 32px;*/
  border-radius: 50%;
  background-position: center;
  background-color: rgba(255,255,255,0.5);
  background-repeat: no-repeat;
  transition: opacity .6s cubic-bezier(.694, .0482, .335, 1)
}
#slides .scrollable-wrapper:hover a.icon {
  opacity: 1;
}
body .pswp__button:before,
body .panWrapper a.controls {
  background-size: 16px;
  width: 28px;
  height: 28px;
  /*width: 32px;*/
  /*height: 32px;*/
  border-radius: 50%;
  background-position: center;
  background-color: rgba(255,255,255,0.5);
  background-repeat: no-repeat;
  transition: opacity .6s cubic-bezier(.694, .0482, .335, 1)
}
body .pswp__button {
  transition: opacity .6s cubic-bezier(.694, .0482, .335, 1)
}
body .pswp__button:before {
  opacity: 0;
  transition: opacity .6s cubic-bezier(.694, .0482, .335, 1)
}
body .pswp__button:before, body .pswp__button:before {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  content: "";
  z-index: -1;
  transition: opacity .6s cubic-bezier(.694, .0482, .335, 1)
}
body .pswp__button, body .pswp__button:active, body .pswp__ui--over-close .pswp__button:before, body .pswp__button:hover:before, body .panWrapper a.controls:hover:before {
  opacity: 1;
}
body .panWrapper a.controls:hover {
  background-color: rgba(255,255,255,0.75);
}
body .panWrapper a.controls.close { background-image: url(../img/close.svg); }
body .pswp__button--close { 
  background-image: url(../img/close.svg); 
  background-position: center center; 
  background-size: 18px;
}
@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {
  /* Serve SVG sprite if browser supports SVG and resolution is more than 105dpi */
  body .pswp--svg .pswp__button.pswp__button--close {
    background-image: url(../img/close.svg);
  }
}
body .panWrapper a.controls.in { background-image: url(../img/zoomin.svg); }
body .panWrapper a.controls.out { background-image: url(../img/zoomout.svg); }
.icon:hover {
  background-color: rgba(255,255,255,0.75);
}
a.icon-link { background-image: url(../img/VisualEditor_-_Icon_-_Link2.svg); }
a.icon-zoom { 
  background-image: url(../img/magnifying-glass-search3.svg);
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  /*display: none;  */
}
/* photoswipe */
body .pswp {
  z-index: 15000;
}
body .pswp__ui--fit .pswp__top-bar, body .pswp__ui--fit.pswp__ui--idle .pswp__top-bar {
  background-color: transparent;
  opacity: 1;
}
body .pswp__ui {
  position: absolute;
  top: 0;
  height: 44px;
  width: 100%;
}
div.tooltipster-sidetip.tooltipster-borderless .tooltipster-box {
  /*border-radius: 0;*/
  background-color: #000;
}
div.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-arrow-border { border-top-color: #000; }
div.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-border { border-bottom-color: #000; }
div.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow-border { border-left-color: #000; }
div.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-border { border-right-color: #000; }

body .tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-box {
  margin-bottom: 0px;
}
/* tooltipster anim */
body .tooltipster-fade, body.tooltipster-fade.tooltipster-ready {
  transform:translateY(-10px);
  opacity: 0;
  -webkit-transition: all 0.6s;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -ms-transition: all 0.6s;
  transition: all 0.6s;
  font-size: 12px;
  text-align: center;
}
body .tooltipster-fade .tooltipster-box {
  height: 24px;
}
body .tooltipster-fade .tooltipster-content {
  padding: 3px 6px;
     height: auto;
}
body .tooltipster-fade.tooltipster-show {
  opacity: 0;
}
body .tooltipster-fade.tooltipster-show:not(.tooltipster-ready)  {
  opacity: 1;
  transform:translateY(0px);
  -webkit-transition: all 0.6s;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -ms-transition: all 0.6s;
  transition: all 0.6s;
}
body.tooltipster-fade.tooltipster-ready {
  transform:translateY(-10px);
  opacity: 0;
}

/* tooltipster no arrow */
body .tooltipster-base.tooltipster-borderless.tooltipster-no-arrow .tooltipster-arrow {
  display: none;
}
/* tooltipster follower */
body .tooltipster-follower.tooltipster-borderless:not(.tooltipster-follower-bg) .tooltipster-box {
  background-color: transparent;
}
body .tooltipster-follower.tooltipster-borderless .tooltipster-box .tooltipster-content {
  color: #686868;
}
body .tooltipster-follower.tooltipster-borderless.tooltipster-follower-bg .tooltipster-box .tooltipster-content {
  color: #FFF;
}
div.dummy-area {
  height: 100%;
  width: calc( ( 100vmax - 100vmin ) * 0.5 );
  /*background: rgba(255,0,0,0.5);*/
  position: absolute;
  top: 0;
  left: 0;
  /*cursor: pointer;*/
  cursor: url(../img/prev-16.png) 2 2, pointer;
}
div.dummy-area-right {
  left: auto;
  right: 0;
  cursor: url(../img/next-16.png) 2 2, pointer;
}
a.arrow {
  display: inline-block;
  border-radius: 50%;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

a.arrow:hover .left, a.arrow:hover .top, a.arrow:hover .bottom, a.arrow:hover .right{
  border: 1px solid #d0d0d0;
}

a.arrow:hover .left:after, a.arrow:hover .top:after, a.arrow:hover .bottom:after, a.arrow:hover .right:after {
  border-top: 1px solid #d0d0d0;
  border-right: 1px solid #d0d0d0;
}

a.arrow .left {
  display: inline-block;
  width: 4em;
  height: 4em;
  border: 0.5em solid #333;
  border-radius: 50%;
  margin-right: 1.5em;
}

a.arrow .left:after {
  content: '';
  display: inline-block;
  margin-top: 1.05em;
  margin-left: 0.6em;
  width: 1.4em;
  height: 1.4em;
  border-top: 0.5em solid #333;
  border-right: 0.5em solid #333;
  -moz-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

a.arrow .top {
  display: inline-block;
  width: 4em;
  height: 4em;
  border: 0.5em solid #333;
  border-radius: 50%;
  margin-right: 0.75em;
}

a.arrow .top:after {
  content: '';
  display: inline-block;
  margin-top: 1.4em;
  width: 1.4em;
  height: 1.4em;
  border-top: 0.5em solid #333;
  border-right: 0.5em solid #333;
  -moz-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

a.arrow .bottom {
  display: inline-block;
  width: 4em;
  height: 4em;
  border: 1px solid #686868;
  border-radius: 50%;
  /*margin-left: 0.75em;*/
}

a.arrow .bottom:after {
  content: '';
  display: inline-block;
  margin-top: 0.6em;
  width: 1.4em;
  height: 1.4em;
  margin-top: 23%;
  width: 1.4em;
  height: 1.4em;
  border-top: 1px solid #686868;
  border-right: 1px solid #686868;
  -moz-transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}

a.arrow .right {
  display: inline-block;
  width: 4em;
  height: 4em;
  border: 0.5em solid #333;
  border-radius: 50%;
  margin-left: 1.5em;
}

a.arrow .right:after {
  content: '';
  display: inline-block;
  margin-top: 1.05em;
  margin-left: -0.6em;
  width: 1.4em;
  height: 1.4em;
  border-top: 0.5em solid #333;
  border-right: 0.5em solid #333;
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* bounce anim */
.bounce {
-moz-animation: bounce 3s infinite;
-webkit-animation: bounce 3s infinite;
animation: bounce 3s infinite;
}
@-moz-keyframes bounce {
0%, 20%, 50%, 80%, 100% {
-moz-transform: translateY(0);
transform: translateY(0);
}
40% {
-moz-transform: translateY(-30px);
transform: translateY(-30px);
}
60% {
-moz-transform: translateY(-15px);
transform: translateY(-15px);
}
}
@-webkit-keyframes bounce {
0%, 20%, 50%, 80%, 100% {
-webkit-transform: translateY(0);
transform: translateY(0);
}
40% {
-webkit-transform: translateY(-30px);
transform: translateY(-30px);
}
60% {
-webkit-transform: translateY(-15px);
transform: translateY(-15px);
}
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
-moz-transform: translateY(0);
-ms-transform: translateY(0);
-webkit-transform: translateY(0);
transform: translateY(0);
}
40% {
-moz-transform: translateY(-30px);
-ms-transform: translateY(-30px);
-webkit-transform: translateY(-30px);
transform: translateY(-30px);
}
60% {
-moz-transform: translateY(-15px);
-ms-transform: translateY(-15px);
-webkit-transform: translateY(-15px);
transform: translateY(-15px);
}
}

/* responsive */

@media (max-width:1337px) {
  #logo {
    top:20px;
  }
}
@media (min-width:1337px) {

  #photography {
    padding-top:0px;
  }

}
@media (max-width:987px) {
  #top {
    width: 750px;
    margin: auto;
    position: relative;
  }
  #logo {
    /*left: 10px;*/
    left: 8px;
  }
  #menu {
    margin-right: 0px;
  }
  #menu li.last a {
      padding-right: 0;
  }
  #photography, #about/*, #container, .projet, #slides .slide, #slides, #page*/, #footer .inner  {
    padding-left:8px;
    width:750px;
    margin: auto;
  }
  #about {
    padding-top: 14px;
    width: 100%;
    height: 100%;
  }
  #legal {
    padding-top: 14px;
    margin-top: 0;
    width: 100%;
    height: 100%;
    padding-left: 9px;
  }
  #photography {
    padding-left:4px;
    height: 100%;
  }
  div.projet {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
  div#projets, #footer .inner {
    width: 750px;
  }
  #page, #page2 {
    width: auto;
    /*overflow:visible !important;*/
  }
  div#page2 {
    width: 100%;
    padding: 0;
    position: absolute;
    margin: auto;
    /* left: auto; */
    top: 0
  }
  div#page2 .page2-wrapper {
    width: 750px;
    height: 100%;
    margin: auto;
    position: relative;
    /*border: 1px solid;*/
  }
}


@media (max-width:757px) {
  /*#photography, #about, #container, #projets, #projets .page, .projet, #slides .slide, #slides, #page, #footer .inner  {
    width:524px;
  }*/
  #page, #footer .inner {
    width: 74%;
    margin: auto;
  }
  #top {
    width: 100%;
  }
  #menu li.last a {
      padding-right: 9px;
  }
  #page2 div.page2-wrapper {
    width: 74%;
    margin: auto;
  }
  div#projets {
    width: 100%;
  }
  #about {
    overflow-y: auto;
  }
  #about .cola {
    width: 100%;
  }
  #about .col {
    width: 46%;
  }
}
@media (max-height:757px) {
  #slides {
    padding-top: 0px;
    /*height:400px;*/
  }
  #slides .slide {
    height: 100%;
    line-height: 100%;
  }
  /*#slides .slide:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
  }*/
  #slides .slide img {
    /*max-height: calc(100vmin - 30px);*/
  }
}
@media (max-width:527px) {
  #photography, #about, #container, #projets, #projets .page, .projet, #slides .slide, #slides, #page, #page2, #footer .inner  {
    width:291px;
  }
}

@media (max-height:757px) {
  
  #container div.projet {
    padding-top: 0;
  }
  #container div.demo {
    /*max-height: 100%;*/
    max-width: 100%;
    /*background-color: #EB6*/
  }
}
@media (max-height:557px) {
  
  #container div.projet {
    padding-top: 0;
  }
  #container div.demo {
    /*max-height: 100%;*/
    max-width: 80vmin;
    /*background-color: #EB6*/
  }
}
@media (min-height:757px) {
  
  #container div.projet {
    padding-top: 0;
  }
  #container div.demo {
    max-height: 100%;
  }
}
/* Desktops and laptops ----------- */
@media only screen  and (max-width : 640px) {
  #footer a.prev {
    margin-left: 10px;
  }
  #footer a.next {
    margin-right: 10px;
  }
}
/* Desktops and laptops ----------- */
@media only screen  and (max-width : 545px) {
  #footer a.prev {
    margin-left: 5px;
  }
  #footer a.next {
    margin-right: 5px;
  }
  #footer .tools a, #footer .tools span, #footer .tools td.info {
    font-size: 10px
  }
  #footer .tools td:nth-last-child(2) {
    text-align: right;
    padding-right: 0px;
  }
  #footer .tools td.info {
    text-align: left;
    padding-left: 0px;
  }
}
@media (max-width:527px) {
  #photography, #about, #container, #projets, #projets .page, .projet, #slides .slide, #slides, #page, #page2, #footer .inner  {
    width:291px;
  }
  #footer .tools a, #footer .tools span {
    font-size: 10px
  }
  #footer a.prev {
    margin-left: 5px;
  }
  #footer a.next {
    margin-right: 5px;
  }
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
  #wrapper {
    height: 100%;
  }
  div#middle {
    height: 100%;
    box-sizing: border-box;
    top: 65px;
  }
  #footer {
    font-size: 0.85em;
  }
  #photography, #about, #container, #projets, #projets .page, .projet, #slides .slide, #slides, #page, #page2, #footer .inner  {
    width:291px;
  }

  #top {
    width: 100%;
    margin: auto;
    position: relative;
  }
  #logo {
    left: 10px;
    font-size: 0.8em;
    top: 5px;
    width: 80px;
  }
  #menu {
    font-size: 0.8em;
    margin-right: 0px;
    margin-top: 10px;
  }
  #menu li {
    font-size: 0.937em;
  }
  #menu li.last a {
    padding-right: 9px;
  }
  #photography, #about, #container, #projets, #projets .page, .projet, #slides .slide, #slides, #page, #page2, #footer .inner  {
    padding-left:4px;
    width:414px;
    max-width: 100%;
  }
  div#projets {
    height: auto;
    padding: 0;
    margin-top: 0;
    overflow-y: auto;
    height: 100%;
  }
  div#page {

  }
  div#projets .item {
    margin-top: 0;
    width: 233px !important;
    height: 203px !important;
  }
  div#projets .item section {
    width: 233px !important;
    height: 131px !important;
  }
  div#projets .item section img {
    width: 100% !important;
    height: auto !important;
  }
  #page, #page2 {
    overflow-y:visible !important;
    height: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 0;
  }
  #container {
    max-height: 100%;
    /* position: relative; */
    min-height: auto;
    height: 100%;
    padding: 0;
  }
  .projet {
    height: 100%;
    padding: 0;
  }
  #slides {
    max-height: 100%;
    min-height: 100%;
    padding: 0;
  }
  #slides .slide {
    padding: 0;
  }
  #slides .slide img {
    /*max-height: 80%;*/
    /*max-width: 80%;*/
  }
  #page .page {
    height: auto;
    display: flex;
    -webkit-flex-wrap: wrap; /* Safari */
    flex-wrap:         wrap;
    -webkit-justify-content: center; /* Safari */
    justify-content:         center;
    -webkit-align-content: flex-start; /* Safari */
    align-content:         flex-start;
    padding: 0;
    margin-bottom: 80px;
  }
}




/* iPads (landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
/* Styles */

  div#photography, div#about, div#legal {
    padding-left: 14px !important;
    width: calc(100% - 16px);
  }
  div#photography {
    padding-left: 9px !important;
  }
  div#about .cola {
      width: 46.87%;
  }
  div#about .col {
      width: 24.547%;
  }
  div#about .col img {
      width: 100%;
  }
  div#projets, div#footer .inner, div#page2 {
      /*margin-left: -4px;*/
      width: calc(100% - 27px);

  }
  div#page2 {
      padding:0;

  }
  div#page2 div.page2-wrapper {
      padding-left:8px;
      padding-right:8px;
  }
  #projets .item {

      /*margin: -1px 7px 0 8px;*/
  }
  #projets .item:nth-of-type(4n) {
      /*margin-right: 0;*/
  }
  div.projet {
    margin-top: -60px;
    width: 85%;
    max-width: 100vw;
  }
  div#slides .demo-screen-wrapper {
      height: auto;
      max-width: 100%;
      /* border: 1px solid red;*/
  }
  div#slides .demo-monitor {
      height: auto;
      max-width: 100%;
       /*border: 1px solid red;*/
  }
}


/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
/* Styles */
  /*#projets, #page {
    min-height: 800px;
  }
  #menu {
    margin-right: 7px;
  }
  #photography, #about, #container, #projets, #projets .page, .projet, #slides .slide, #slides, #page, #footer .inner {
    padding-left: 0;
  }
  #projets, #projets .page {*/
    /*padding-left: 4px;*/
  /*}*/
  #projets .item {
    width: calc(33% - 14px);
    /*margin: -1px 6px 0;*/
  }
  #photography, #footer .inner  {
    padding-left:4px;
  }
  #about {
    padding-left:9px;
  }
  /*div#photography {
      padding-left: 6px !important;
  }
  div#about, div#legal {
      padding-left: 11px !important;
  }
  div#about div.col:last-of-type {
      margin-left: 0;
      line-height: 1.01em
  }
  #container .slide {
    background: #f3f3f3;*/
    /*min-height: ;*/
  /*}*/
  div#slides .demo-screen-wrapper {
      height: 468.48px;
      width: auto;
  }
}

/**********
iPad 3
**********/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio : 2) {
/* Styles */
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
/* Styles */
}
/* Desktops and laptops ----------- */
@media only screen  and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
@media only screen  and (min-width : 1824px) {
/* Styles */
}


@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
/* Styles */
}

/* iPhone 5 ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation : landscape) {
  #top {
      width: 100%;
      margin: auto;
      position: relative;
  }
  #menu li.last a {
    padding-right: 9px;
  }

  #footer .inner {
    width: 100%;
  }
  #footer .tools td:nth-last-child(2) {
    text-align: center;
    padding-right: 10px;
  }
}
/* iPhone 5 ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
/* Styles */
  div#middle {
    top: 55px;
  }
  div#page {
    width: 100%;
  }
  #page .page {
    margin-bottom: 40px;
  }

  div#projets {
    height: auto;
    padding: 0;
    margin-top: 0;
    overflow-y: auto;
    height: 100%;
  }
  #page, #page2 {
    overflow-y:visible !important;
    height: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 0;
  }
  #page .page {
    height: auto;
    display: flex;
    -webkit-flex-wrap: wrap; /* Safari */
    flex-wrap:         wrap;
    -webkit-justify-content: center; /* Safari */
    justify-content:         center;
    -webkit-align-content: flex-start; /* Safari */
    align-content:         flex-start;
    padding: 0;
    margin-bottom: 80px;
  }
  div#projets .item {
    margin-top: 0;
    width: 233px !important;
    height: 203px !important;
  }
  div#projets .item section {
    width: 233px !important;
    height: 133px !important;
  }
  div#projets .item section img {
    width: 100% !important;
    height: auto !important;
  }

}

/* iPhone 4 ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio : 2) {
/* Styles */

/* Smartphones (landscape) ----------- */

  div#middle {
    top: 55px;
  }
  #page .page {
    margin-bottom: 40px;
    width: 100%;
  }
  div div#projets .item {
    margin-top: 0;
    width: 210px !important;
    height: 182px !important;
  }
  div div#projets .item section {
    width: 210px !important;
    height: 119px !important;
  }
  div#projets .item section img {
    width: 100% !important;
    height: auto !important;
  }
}
@media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
/* Styles */
}

/* iPhone 6 like ----------- */
@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : landscape) {
/* Styles */
  #logo {
    width: auto;
  }
  #footer {
    margin-bottom: -1px;
  }
  #page .page {
    margin-bottom: 40px;
    width: 100%;
  }
}

@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : portrait) {
/* Styles */
  #footer .tools td.nav {
    width:50%;
    min-width: 100px;
  }
}
/* iPhone 6 ----------- */
@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
/* Styles */
}

@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
/* Styles */
}

/* iPhone 6+ like ----------- */
@media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation : landscape) {
/* Styles */

  div#middle {
    top: 55px;
  }
  div#page {
    width: 100%;
  }
  #page .page {
    margin-bottom: 40px;
  }

  div#projets {
    height: auto;
    padding: 0;
    margin-top: 0;
    overflow-y: auto;
    height: 100%;
  }
  #page, #page2 {
    overflow-y:visible !important;
    height: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 0;
  }
  #page .page {
    height: auto;
    display: flex;
    -webkit-flex-wrap: wrap; /* Safari */
    flex-wrap:         wrap;
    -webkit-justify-content: center; /* Safari */
    justify-content:         center;
    -webkit-align-content: flex-start; /* Safari */
    align-content:         flex-start;
    padding: 0;
    margin-bottom: 80px;
  }
  div#projets .item {
    margin-top: 0;
    width: 233px !important;
    height: 203px !important;
  }
  div#projets .item section {
    width: 233px !important;
    height: 133px !important;
  }
  div#projets .item section img {
    width: 100% !important;
    height: auto !important;
  }
}
/* iPhone 6+ ----------- */
@media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
/* Styles */

}

@media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
/* Styles */
}

/* Samsung Galaxy S3 ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
/* Styles */
}

@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
/* Styles */
}

/* Samsung Galaxy S4 ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
/* Styles */
}

@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
/* Styles */
}

/* Samsung Galaxy S5 ----------- */
@media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
/* Styles */
}

@media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
/* Styles */
}

/*
@media (min-aspect-ratio: 1/2) {
    body::before {
        content: "min-aspect-ratio: 1/2";
    }
}
@media (min-aspect-ratio: 135/256) {
    body::before {
        content: "min-aspect-ratio: 135/256";
    }
}
@media (min-aspect-ratio: 9/16) {
    body::before {
        content: "min-aspect-ratio: 9/16";
    }
}
@media (min-aspect-ratio: 1000/1681) {
    body::before {
        content: "min-aspect-ratio: 1000/1681";
    }
}
@media (min-aspect-ratio: 3/5) {
    body::before {
        content: "min-aspect-ratio: 3/5";
    }
}
@media (min-aspect-ratio: 2/3) {
    body::before {
        content: "min-aspect-ratio:2/3";
    }
}
@media (min-aspect-ratio: 1000/1414) {
    body::before {
        content: "min-aspect-ratio: 1000/1414";
    }
}
@media (min-aspect-ratio: 3/4) {
    body::before {
        content: "min-aspect-ratio: 3/4";
    }
}
@media (min-aspect-ratio: 4/5) {
    body::before {
        content: "min-aspect-ratio: 4/5";
    }
}
@media (min-aspect-ratio: 5/6) {
    body::before {
        content: "min-aspect-ratio: 5/6";
    }
}

@media (min-aspect-ratio: 1/1) {
    body::before {
        content: "min-aspect-ratio: 1/1";
    }
}

@media (min-aspect-ratio: 6/5) {
    body::before {
        content: "min-aspect-ratio: 6/5";
    }
}
@media (min-aspect-ratio: 5/4) {
    body::before {
        content: "min-aspect-ratio: 5/4";
    }
}
@media (min-aspect-ratio: 4/3) {
    body::before {
        content: "min-aspect-ratio: 4/3";
    }
}
@media (min-aspect-ratio: 1414/1000) {
    body::before {
        content: "min-aspect-ratio: 1414/1000";
    }
}
@media (min-aspect-ratio: 3/2) {
    body::before {
        content: "min-aspect-ratio: 3/2";
    }
}
@media (min-aspect-ratio: 5/3) {
    body::before {
        content: "min-aspect-ratio: 5/3";
    }
}
@media (min-aspect-ratio: 1681/1000) {
    body::before {
        content: "min-aspect-ratio: 1681/1000";
    }
}
@media (min-aspect-ratio: 16/9) {
    body::before {
        content: "min-aspect-ratio: 16/9";
    }
}
@media (min-aspect-ratio: 256/135) {
    body::before {
        content: "min-aspect-ratio: 256/135";
    }
}
@media (min-aspect-ratio: 2/1) {
    body::before {
        content: "min-aspect-ratio: 2/1";
    }
}*/
