/* ========= Folie de Pierre ========= */
/* =================================== */
@font-face {
    font-family: 'Bodoni';
    src: url('../fonts/Bodoni.eot'); 
    src: url('../fonts/Bodoni.eot?#iefix') format('embedded-opentype'), 
    url('../fonts/Bodoni.woff') format('woff'),
    url('../fonts/Bodoni.ttf') format('truetype'),
    url('../fonts/Bodoni.svg#Bodoni') format('svg');
    font-style: normal;
    font-weight: normal;
}


/* // General
/* ////////////////////////////////// */
body {
  overflow-x: hidden;
  background-color: #040000;
}

.ar h1,
.ar h2,
.ar h3,
.ar h4,
.ar h5,
.ar h6,
.ar p {
  direction: rtl;
}

/* // Canvas
/* ////////////////////////////////// */
canvas {
  z-index: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
}


/* // SVG Background
/* ////////////////////////////////// */
.land {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
}
.land .mill {
  width: 100%;
  position: fixed;
  bottom: -50px;
  left: 0;
}
.land .mill .block path {
  fill: #987C38;
}
.land .mill .pales {
  -webkit-transform-origin: center center;
          transform-origin: center center;
  -webkit-animation: rotate linear infinite 30s;
          animation: rotate linear infinite 30s;
}
.land .mill .pales path {
  fill: #987C38;
}
@-webkit-keyframes rotate {
  from{-webkit-transform: rotate(0deg);transform: rotate(0deg)}
  to{-webkit-transform: rotate(360deg);transform: rotate(360deg)}
}
@keyframes rotate {
  from{-webkit-transform: rotate(0deg);transform: rotate(0deg)}
  to{-webkit-transform: rotate(360deg);transform: rotate(360deg)}
}
.land .ground {
  fill: #987C38;
}


/* // Wrapper
/* ////////////////////////////////// */
.wrap {
  box-sizing: border-box;
  z-index: 2;
  position: relative;
  height: auto;
  width: 100vw;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}


/* // Wrapper left
/* ////////////////////////////////// */
.wrap_left {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 5vh;
  height: 100vh;
  width: 30vw;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.wrap_left img {
  max-height: 82vh;
}


/* // Wrapper right
/* ////////////////////////////////// */
.wrap_right {
  box-sizing: border-box;
  padding: 10vh 10vw 10vh 5vw;
  width: 70vw;
}
.wrap_right h1,
.wrap_right h2 {
  color: #DEDEDE;
  font-family: 'Bodoni', serif;
}
.wrap_right h1 {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 60px;
  font-size: 2.3em;
}
.wrap_right h1:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  height: 5px;
  width: 40px;
  line-height: normal;
  background-color: #987C38;
  text-shadow: 0px 2px 2px rgba(0,0,0,0.15);
}
.ar .wrap_right h1:before {
  content: none;
}
.wrap_right h2 {
  margin-top: 5px;
  margin-bottom: 40px;
  line-height: normal;
  font-size: 1.9em;
  font-weight: lighter;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.15);
}
.wrap_right p {
  color: #DEDEDE;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1em;
  font-style: italic;
  text-align: justify;
  text-shadow: 0px 1px 2px rgba(0,0,0,0.15);
}
.wrap_right p .img_1 {
  float: right;
  max-width: 145px;
  padding: 0 0 20px 20px;
}
.wrap_right_btn {
  margin-top: 30px;
  text-align: left;
}
.wrap_right_btn a {
  position: relative;
  display: inline-block;
  padding: 10px 15px 8px;
  border-bottom: 2px solid #987C38;
  text-decoration: none;
  -webkit-transform: skewX(-20deg);
          transform: skewX(-20deg);
}
.wrap_right_btn a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #987C38;
  -webkit-transition: width .4s cubic-bezier(0.22, 0.61, 0.36, 1);
          transition: width .4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wrap_right_btn a:hover:before {
  width: 100%;
}
.wrap_right_btn a span {
  display: inline-block;
  color: #DEDEDE;
  font-family: 'Bodoni', serif;
  font-size: 1.1em;
  text-transform: uppercase; 
  -webkit-transform: skewX(20deg); 
          transform: skewX(20deg);
}
.ar .wrap_right_btn a span {
  direction: rtl;
}

/* // Footer
/* ////////////////////////////////// */
footer {
  box-sizing: border-box;
  z-index: 3;
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 10px 0;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.ar footer {
  direction: rtl;
}
footer a {
  margin: 0 5px;
  color: #DEDEDE;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: .95em;
}


/* // Media queries
/* ////////////////////////////////// */
@media only screen and (min-width: 1025px) and (max-width: 1440px) {
  body {
    overflow-x: hidden;
  }
  .wrap_right h1 {
    font-size: 2em;
  }
  .wrap_right h2 {
    font-size: 1.8em;
  }
  .wrap_right  {
    font-size: .9em;
  }
  .land .mill {
    bottom: -35px;
  }
  footer a {
    font-size: .9em;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .wrap_right h1 {
    font-size: 2em;
  }
  .wrap_right h2 {
    margin-bottom: 15px;
    font-size: 1.8em;
  }
  .wrap_right p {
    font-size: .9em;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .wrap_left {
    width: 45vw;
  }
  .wrap_right {
    padding: 8vh 5vw 10vh 5vw;
    width: 55vw;
  }
  .land .mill {
    bottom: -10px;
  } 
  footer a {
    font-size: 1.1em;
  }
}
@media only screen and (max-width: 768px) {
  .wrap_right h1 {
    font-size: 1.8em;
  }
  .wrap_right h2 {
    margin-bottom: 15px;
    font-size: 1.6em;
  }
  .wrap_right p {
    font-size: .9em;
  }
}
@media only screen and (max-width: 768px) and (orientation: portrait) {
  .wrap {
    padding: 0 3vw;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .wrap_left {
    position: relative;
    top: 0;
    left: 0;
    padding: 3vh 0;
    height: auto;
    width: 100%;
  }
  .wrap_left img {
    max-height: auto;
    max-width: 65%;
  }
  .wrap_right {
    position: relative;
    padding: 3vh 4vw 10vh 4vw;
    height: auto;
    width: 100%;
  }
  .wrap_right_btn {
    text-align: center;
  }
}
@media only screen and (max-width: 768px) and (orientation: landscape) {
  .wrap_right {
    padding-bottom: 20vh;
  }
}
