/*fonts*/
@font-face {
    font-family: 'yanone_regular';
    src: url('../font/yanonekaffeesatz-regular-webfont.eot');
    src: url('../font/yanonekaffeesatz-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../font/yanonekaffeesatz-regular-webfont.woff') format('woff'),
         url('../font/yanonekaffeesatz-regular-webfont.svg#yanone_kaffeesatzregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
	font-family: 'yanone_thin';
    src: url('../font/yanonekaffeesatz-thin-webfont.eot');
    src: url('../font/yanonekaffeesatz-thin-webfont.eot?#iefix') format('embedded-opentype'),
         url('../font/yanonekaffeesatz-thin-webfont.woff') format('woff'),
         url('../font/yanonekaffeesatz-thin-webfont.svg#yanone_kaffeesatzthin') format('svg');
    font-weight: normal;
    font-style: normal;
}
/*fin de font*/

/* override Wahid */

html {
  margin:0;
  padding:0;
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
}
body{
    background: none;
    margin:0;
    border:none;
    padding:0px;
    border-image-width: 0;
}
body:fullscreen {
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
}
body:-webkit-full-screen  {
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
}
body:-ms-fullscreen {
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
}
body:-moz-full-screen  {
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
}
video {
    width:100%;
}
audio {
    width:100%;
}
a {
    color:#00c6ff;
  font-family: yanone_thin;
  font-size:1.4em;
}
a:active, a:focus, a:hover {color:#DDD;}
header {
    width:100%;
    padding:0;
    margin:0 auto;
    /*background:#000;*/
}

header h1 {
    margin:0;
    top:0;
    left:0px;
    /*background:url(../img/imagedoc-darknoise.png);*/
    display:inline;
    /*max-width:20%;*/
    padding: 0px 1em 0 5px;
    margin-bottom:0;
    color:white;
    font-family: yanone_thin;
    font-size: 1.5vw;
}

.eyes {
    background:url(../img/eyes.png) center bottom no-repeat;
    /*margin-left: 10px;*/
    padding:.3em 1em;
}
.eyes:hover {
    background:url(../img/eyes2.png) center bottom  no-repeat;
}
.meta-doc {
    background:url(../img/meta-doc.png) center bottom  no-repeat;
    /*margin-left: 10px;*/
    padding:.3em 1em
}
.meta-doc:hover{
    background:url(../img/meta-doc2.png) center bottom  no-repeat;
}
.infos {
    background:url(../img/infos.png) center bottom no-repeat;
    /*margin-left: 10px;*/
    padding:.3em 1em;
}
.infos:hover{
    background:url(../img/infos2.png) center bottom  no-repeat;
}
.title-document {display: block;}

@media screen and (max-width: 640px) {
    body {
        font-size:0.7em;
    }
    h3 {
        font-size:20px;
    }
}
#detect, #canvas {
    margin:0;
    padding:0;
}
#container {
    position: relative;
    padding:0px;
    width:100%;
    margin:20px auto;
    border:0px solid #FFF3B2;

    border-image-width: 0;
}

#canvas {
    width:55%;
    margin-top: 0px;
}
#detect {
    position:absolute;
    /*top:50px;*/
    left:0;
    width:100%;
    height:655px;
}

.response {
    display:none;
}
.unlock {
    width: 80%;
    margin:0px auto;
}

.unlock input[type="submit"]{
   background-image: url(../img/unlock-icon.png) ;
   background-repeat: no-repeat;
   width: 40px;
   height: 40px;
   border:0px;
   background-color:transparent;
}

.unlock input[type="text"]{
   padding: 10px;
   margin:10px;
   background-color: #ffec64;
   border:0px;
   box-shadow: inset 0px 0px 5px #ffab23;
}

.button {
  box-shadow: black 2px 2px 2px;
	background-color:#3498db;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #ffaa22;
	display:inline-block;
	cursor:pointer;
	color: white;
	font-family:arial;
	font-size:15px;
	font-weight:bold;
	padding:6px 24px;
	text-decoration:none;
}
.button:hover {
	background-color:#6bb9f0;
  color: white;

}
.button:active {
	position:relative;
	top:1px;
}

/* popup */
.overlay {
    position:fixed;
    top:0;
    right:0;
    left:0;
    bottom:0;
    background: rgba(0,0,0,0.6);
}
#popup {
    position:relative;
    border-radius: 5px;
    width: 60%;
    margin: 50px auto;
    background:white;
    min-height: 100px;
    box-shadow: black 5px 5px 10px;
}
#content article {
    display:none;
    position:relative;
    border-radius:5px;
    width: 60%;
    margin: 50px auto;
    background:white;
    min-height: 100px;
    box-shadow: black 5px 5px 10px;
    /*overflow-y: auto;
    overflow-x: hidden;*/
    overflow : hidden;
    font-family: yanone_thin;
    font-size: 1.2em;
    padding: 10px;

}
#content article img {max-width: 90%;}

#content article p, h1 {
    margin: 10px;
}

#content article h1 {
    font-family: yanone_thin;
}


#popup_text {
    text-align:center;
    font-family: yanone_regular;
    padding:5px;

}
#popup_text img{
    float:left;
    width:20%;
    max-width: 60px;
    margin: 10px;
}
#content #message_success {
    overflow-x:visible;
    overflow-y:visible;
}
#popup_close, #popup_toggle {
    cursor: pointer;
    position:absolute;
    top:-20px;
    right:-20px;
    width:40px;

}
iframe {border:none;}
#loader {
    position:fixed;
    display: table;
    text-align:center;
    width:100%;
    height:100%;
    top:0;
    right:0;
    left:0;
    bottom:0;
    background: black;
    z-index:100;
}
#loader div{
    font-family: yanone_thin, Arial;
    font-size: 2em;
    display:table-cell;
    vertical-align: middle;
    color:white;
}
.videoWrapper16_9 {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 5px;
    height: 0;
}
.videoWrapper4_3 {
    position: relative;
    padding-bottom: 75%;
    padding-top: 5px;
    height: 0;
}
.videoWrapper16_9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.videoWrapper4_3 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* thanks to Chris Coyier on https://css-tricks.com/css3-progress-bars/ */

#splash div#progressbar-wrap {
    width: 80%;
    max-width: 500px;
    display:block;
    margin:0px auto;
}
#progressbar-wrap div.meter {
    height: 20px;  /* Can be anything */
    position: relative;
    display: block;
    margin: 60px 0 20px 0; /* Just for demo spacing */
    background: #555;
    border-radius: 25px;
    padding: 10px;
    box-shadow: inset 0 -1px 1px rgba(255,255,255,0.3);
}
.meter > span {
    display: block;
    height: 100%;
    width: 0%;
    transition-duration: 0.5s;
    transition-timing-function: linear;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: rgb(43,194,83);
    background-image: -webkit-gradient(
      linear,
      left bottom,
      left top,
      color-stop(0, rgb(43,194,83)),
      color-stop(1, rgb(84,240,84))
     );
    background-image: -moz-linear-gradient(
      center bottom,
      rgb(43,194,83) 37%,
      rgb(84,240,84) 69%
     );
    box-shadow:
      inset 0 2px 9px  rgba(255,255,255,0.3),
      inset 0 -2px 6px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}
.meter > span:after, .animate > span > span {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background-image:
       -webkit-gradient(linear, 0 0, 100% 100%,
          color-stop(.25, rgba(255, 255, 255, .2)),
          color-stop(.25, transparent), color-stop(.5, transparent),
          color-stop(.5, rgba(255, 255, 255, .2)),
          color-stop(.75, rgba(255, 255, 255, .2)),
          color-stop(.75, transparent), to(transparent)
       );
    background-image:
        -moz-linear-gradient(
          -45deg,
          rgba(255, 255, 255, .2) 25%,
          transparent 25%,
          transparent 50%,
          rgba(255, 255, 255, .2) 50%,
          rgba(255, 255, 255, .2) 75%,
          transparent 75%,
          transparent
       );
    z-index: 1;
    background-size: 50px 50px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
}

@media (max-width:1024px) {
  #content article {
    width:100%;
    margin:0;
    padding: 0;
  }
  #content article div:not(.videoWrapper16_9):not(.videoWrapper4_3) {padding:10px;}


}
@media (max-width:768px) {
  html {
    /*Hack pour avoir le background en cover sur Android*/
    height: 100%;
    min-height: 100%;
  }

  /*Hack pour avoir le background en cover sur Android*/
  #popup {width:85%;}
}

#content article img {
  display: block;
  margin: 10px auto;
}

#content .article_content{
  overflow-x : hidden;
  overflow-y : auto;
  height: 100%;
  text-align: justify;
  padding : 15px;
}
#content .article_close {
    cursor: pointer;
    position:absolute;
    top:0;
    right:0;
    width:40px;
    margin : 0px;
}
.article_content h1 {
    font-size: 2em;
    margin-left: 0;
    font-weight: 900;
    border-bottom: 1px solid #eee;
}