/* ################
   #### Global ####
   ################ */
body {
  font-family: robotoregular;
}
#fullpage .section {
  padding-top: 70px;
}
#fullpage .section:first-child {
  padding-top: 0;
}
#fullpage .section .inner {
  padding: 40px;
  height: calc(100% - 80px);
}
.slide, .fp-tableCell {
  display: block !important;
  height: 100% !important;
}
.section h1 {
  text-align: center;
  text-transform: uppercase;
  font-family: robotoregular;
  /*font-weight: 300;*/
  font-size: 50px;
  margin-top: 100px;
  color: #777;
}
.section h2 {
  font-family: robotomedium;
  font-size: 40px;
  text-align: center;
  color: #777;
  /*font-weight: 300;*/
}
.section p.big {
  font-size: 40px;
  font-family: robotolight;
  text-align: center;
  margin-top: 100px;
  /*text-transform: uppercase;*/
  color: #333;
}
.section p.medium {
  font-size: 30px;
  text-align: center;
  color: #333;
}
.section p b {
  font-weight: normal;
  font-family: robotobold;
}
.realisation .content p {
  text-align: center;
  font-size: 30px;
  margin-top: 70px;
}
#arrow_bottom {
  width: 80px;
  height: 18px;
  background: url(../images/arrow_bottom.png) no-repeat;
  bottom: 10px;
  left: 50%;
  margin-left: -40px;
}
#arrow_top {
  width: 80px;
  height: 18px;
  background: url(../images/arrow_top.png) no-repeat;
  top: 80px;
  left: 50%;
  margin-left: -40px;
}
#arrow_left {
  width: 18px;
  height: 80px;
  background: url(../images/arrow_left.png) no-repeat;
  left: 10px;
  top: 50%;
  margin-top: -40px;
}
#arrow_right {
  width: 18px;
  height: 80px;
  background: url(../images/arrow_right.png) no-repeat;
  right: 10px;
  top: 50%;
  margin-top: -40px;
}
#arrow_bottom, #arrow_top, #arrow_left, #arrow_right {
  position: fixed;
  -webkit-background-size: contain;
  background-size: contain;
  cursor: pointer;
  opacity: 1;
  -webkit-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
#arrow_bottom, #arrow_top {
  -webkit-animation: pulsate2 5s ease-out;
  -webkit-animation-iteration-count: infinite;
  -o-animation: pulsate2 5s ease-out;
  -o-animation-iteration-count: infinite;
  animation: pulsate2 5s ease-out;
  animation-iteration-count: infinite;
}
#arrow_left, #arrow_right {
  -webkit-animation: pulsate 2s ease-out;
  -webkit-animation-iteration-count: infinite;
  -o-animation: pulsate 2s ease-out;
  -o-animation-iteration-count: infinite;
  animation: pulsate 2s ease-out;
  animation-iteration-count: infinite;
}
#arrow_bottom.hidden, #arrow_top.hidden, #arrow_left.hidden, #arrow_right.hidden {
  visibility: hidden;
}

@-webkit-keyframes pulsate {
    0% {-webkit-transform: scale(1, 1);}
    50% {-webkit-transform: scale(1.1, 1.1);}
    100% {-webkit-transform: scale(1, 1);}
}
@-o-keyframes pulsate {
    0% {-webkit-transform: scale(1, 1);}
    50% {-webkit-transform: scale(1.1, 1.1);}
    100% {-webkit-transform: scale(1, 1);}
}
@keyframes pulsate {
    0% {-webkit-transform: scale(1, 1);}
    50% {-webkit-transform: scale(1.1, 1.1);}
    100% {-webkit-transform: scale(1, 1);}
}

@-webkit-keyframes pulsate2 {
    0% {-webkit-transform: scale(1, 1); opacity: 0;}
    17% {-webkit-transform: scale(1.1, 1.1); opacity: 1;}
    33% {-webkit-transform: scale(1, 1); opacity: 0}
    100% {-webkit-transform: scale(1, 1); opacity: 0;}
}
@-o-keyframes pulsate2 {
    0% {-webkit-transform: scale(1, 1); opacity: 0;}
    17% {-webkit-transform: scale(1.1, 1.1); opacity: 1;}
    33% {-webkit-transform: scale(1, 1); opacity: 0}
    100% {-webkit-transform: scale(1, 1); opacity: 0;}
}
@keyframes pulsate2 {
    0% {-webkit-transform: scale(1, 1); opacity: 0;}
    17% {-webkit-transform: scale(1.1, 1.1); opacity: 1;}
    33% {-webkit-transform: scale(1, 1); opacity: 0}
    100% {-webkit-transform: scale(1, 1); opacity: 0;}
}

.img-left {
  float: left;
  border: 10px solid #dedede;
  margin-right: 20px;
  margin-bottom: 20px;
}
.img-right {
  float: right;
  border: 10px solid #dedede;
  margin-left: 20px;
  margin-bottom: 20px;
}
.img-left img, .img-right img {
  display: block;
}

.slide p {
  font-size: 18px;
  color: #333;
}

.slide .voirrealisations {
  background: #509d3d;
  color: #fff;
  display: inline-block;
  padding: 10px;
  text-transform: uppercase;
  margin-top: 50px;
  cursor: pointer;
  display: none;
}

/* ##########################
   #### slides specific  ####
   ########################## */
#intervention .fp-slides .slide:first-child {
  background: url(../images/intervention/famsa/FAMSA_1.jpg) center center;
  -webkit-background-size: cover;
  background-size: cover;
}
#intervention .fp-slides .slide:first-child:before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;  
  opacity: .8; 
  z-index: 0;
  background: #fff;
}
#intervention .fp-slides .slide:first-child .content {
  z-index: 1;
  position: relative;
}

#fabrication .fp-slides .slide:first-child {
  background: url(../images/fabrication/ENSEMBLE_ILOT.jpg) center center;
  -webkit-background-size: cover;
  background-size: cover;
}
#fabrication .fp-slides .slide:first-child:before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;  
  opacity: .8; 
  z-index: 0;
  background: #fff;
}
#fabrication .fp-slides .slide:first-child .content {
  z-index: 1;
  position: relative;
}

#controle .fp-slides .slide:first-child {
  background: url(../images/controle/Ares_01.jpg) center center;
  -webkit-background-size: cover;
  background-size: cover;
}
#controle .fp-slides .slide:first-child:before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;  
  opacity: .8; 
  z-index: 0;
  background: #fff;
}
#controle .fp-slides .slide:first-child .content {
  z-index: 1;
  position: relative;
}

#team .slide:nth-child(0n+2) .img {
  /* background-position: center bottom; */
}

#usinage .fp-slides .slide:first-child {
  background: url(../images/01_usinage/carter_acier_rectifie_bg.jpg) center center;
  -webkit-background-size: cover;
  background-size: cover;
}
#usinage .slide:nth-child(0n+3) .txt {
  padding-top: 50px;
}
#usinage .slide:nth-child(0n+3) p {
  margin-top: 50px;
}
#usinage .slide:nth-child(0n+3) .img:nth-child(0n+2) {
  background-position: center bottom;
}
#usinage .slide:nth-child(0n+4) .txt {
  padding-top: 60px;
}
#usinage .slide:nth-child(0n+4) .txt p {
  margin-top: 40px;
}

#revision .fp-slides .slide:first-child {
  background: url(../images/02_revision/module_fraisage_bg.jpg) center center;
  -webkit-background-size: cover;
  background-size: cover;
}
#revision .slide:nth-child(0n+1) p.big {
  margin-top: 50px;
}
#revision .slide:nth-child(0n+2) .txt {
  padding-top: 50px;
}
#revision .slide:nth-child(0n+2) .txt p {
  margin-top: 30px;
  font-size: 25px;
}
#revision .slide:nth-child(0n+3) .img {
  margin-right: 75px !important;
}
#revision .slide:nth-child(0n+3) h2 {
  text-align: left;
}
#revision .slide:nth-child(0n+3) p {
  font-size: 25px;
  margin-top: 50px;
  color: #333;
}

#premontage .fp-slides .slide:first-child {
  background: url(../images/03_premontage/test_condition_bg.jpg) center center;
  -webkit-background-size: cover;
  background-size: cover;
}
#premontage .slide:nth-child(0n+1) .txt {
  padding-top: 50px;
}
#premontage .slide:nth-child(0n+1) h1 {
  margin-top: 65px;
}
#premontage .slide:nth-child(0n+1) p.big {
  margin-top: 40px;
}
#premontage .slide:nth-child(0n+4) .realisation .img {
  background-position: center top;
}
#premontage .slide:nth-child(0n+5) .realisation .img {
  background-position: center 20%;
}
#premontage .slide:nth-child(0n+5) .txt {
  padding-top: 50px;
}
#premontage .slide:nth-child(0n+5) p {
  margin-top: 50px;
}

#etudes .fp-slides .slide:first-child {
  background: url(../images/04_etudes/chargement_brut_bg.jpg) center center;
  -webkit-background-size: cover;
  background-size: cover;
}

#produits .fp-slides .slide:first-child h1 {
  margin-top: 50px;
}
#produits .fp-slides .slide:first-child p.big {
  margin-top: 50px;
  font-size: 30px;
}
#produits .fp-slides .slide:first-child p.medium {
  font-size: 25px;
}
#produits .documentContainer iframe {
  width: 100%;
  height: 100%;
}

.documentContainer {
  overflow-x: hidden;
  overflow-y: scroll;
  height: 100%;
  border: 5px solid #eee;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.documentContainer img {
  width: 100%;
  height: auto;
}
.documentContainer.narrow {
  text-align: center;
}
.documentContainer.narrow img {
  max-width: 600px;
}

/* #######################
   #### realisations  ####
   ####################### */

.realisation {
  width: 100%;
  height: 100%;
  position: relative;
}
.realisation .img {
 -webkit-background-size: cover;
 background-size: cover;
 background-position: center;
 height: 100%;
}
.realisation .img.half {
  width: calc(50% - 15px);
  float: left;
}
.realisation .img.half:first-child {
  margin-right: 30px;
}
.realisation .img.third {
  width: calc(33% - 17px);
  margin-right: 30px;
  float: left;
}
.realisation .img.third:nth-child(0n+3) {
  margin-right: 0;
}
.realisation video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.realisation .content {
 width: 50px;
 height: 50px;
 background: rgba(255, 255, 255, 0.8);
 position: absolute;
 top: 0;
 right: 0;
 -webkit-transition: width 0.3s, height 0.3s;
 -o-transition: width 0.3s, height 0.3s;
 transition: width 0.3s, height 0.3s;
}
.realisation .content.open {
  width: 100%;
  height: 100%;
}
.realisation .toggle {
 width: 50px;
 height: 50px;
 background: #fff;
 position: absolute;
 bottom: 0;
 left: 0;
 z-index: 10;
 cursor: pointer;
}
.realisation .toggle div {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 40px;
  text-align: center;
  line-height: 50px;
  font-family: robotolight;
  color: #bebebe;
  display: block;
}
.realisation .content .close {
  display: none;
}
.realisation .content .txt {
  opacity: 0;
  padding: 100px 50px;
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.realisation .content.open .txt {
  opacity: 1;
}
.realisation .content.open .open {
  display: none;
}
.realisation .content.open .close {
  display: block;
}

/* ###########################
   #### fullpage override ####
   ########################### */

/* Aligner le contenu des slides en haut */
.fp-tableCell {
  vertical-align: top;
}

/* #######################
   #### Barre de menu ####
   ####################### */
#header {
  position: fixed;
  height: 50px;
  background-color: #509d3d;
  width: 100%;
  z-index: 9;
  top: 0;
  padding: 10px 0;
  margin-top: 0;
  -webkit-transition: margin-top 0.2s;
  -o-transition: margin-top 0.2s;
  transition: margin-top 0.2s;
}
#header.hidden {
  margin-top: -70px;
}
#header .logo {
  width: 50px;
  height: 70px;
  margin-top: -10px;
  padding-left: 20px;
  background-color: #dedede;
  background-image: url(../images/almec_rouage.png);
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: 50px;
  background-size: 50px;
  display: inline-block;
  -webkit-transition: margin-left 0.3s;
  -o-transition: margin-left 0.3s;
  transition: margin-left 0.3s;
}
#header.hidden .logo {
  margin-left: -60px;
}
#header ul {
  display: inline-block;
  list-style-type: none;
  margin: 0;
  padding: 0 0 0 20px;
  vertical-align: top;
  height: 50px;
  line-height: 50px;
  position: absolute;
  left: 70px;
  right: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#header ul::-webkit-scrollbar {
  display: none;
}
#header li {
  display: inline-block;
}
#header li a {
  color: #fff;
  margin-right: 20px;
  text-decoration: none;
  font-family: robotoregular;
  font-weight: 300;
  text-transform: uppercase;
}
.menu-scroll-arrow {
  position: absolute;
  top: 0;
  width: 50px;
  height: 70px;
  z-index: 11;
  cursor: pointer;
  color: #fff;
  font-size: 36px;
  line-height: 70px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.menu-scroll-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}
#menu-arrow-left {
  left: 70px;
  background: -webkit-linear-gradient(left, #509d3d 50%, transparent);
  background: linear-gradient(to right, #509d3d 50%, transparent);
}
#menu-arrow-right {
  right: 0;
  background: -webkit-linear-gradient(right, #509d3d 50%, transparent);
  background: linear-gradient(to left, #509d3d 50%, transparent);
}

#header li.active a, #header li a:hover {
  color: #bebebe;
  font-weight: 300;
}

/* ##############
   #### Home ####
   ############## */
#home {
  background-color: #dedede;
  color: #fff;
}
#home .logo {
  width: 60%;
  margin: 0 auto 0 auto;
  background: url(../images/logo_anim.svg) no-repeat center center;
  -webkit-background-size: contain;
  background-size: contain;
}
#home .logo:after {
  content: '';
  padding-top: 100%;
  display: inline-block;
}



/* #################
   #### Contact ####
   ################# */
#contact h1 {
  margin-top: 10%;
  margin-bottom: 0;
}
#contact fieldset {
  margin-top: 5%;
  width: 100%;
  display: block;
  padding: 1%;
  vertical-align: top;
  border: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  text-align: center;
  max-width: 700px;
  margin: 50px auto;
}
#contact label {
  display: inline-block;
  width: 100px;
  margin-bottom: 5px;
  vertical-align: top;
  margin-top: 15px;
}
#contact .products label {
  width: 100%;
}
#contact input[type="email"] {
  display: inline-block;
  height: 50px;
  line-height: 50px;
  font-size: 20px;
  font-family: robotolight;
  border: 3px solid #509d3d;
  border-right: 0;
  width: calc(100% - 170px);
  min-width: 300px;
  box-shadow: none;
  padding: 0 30px;
  -webkit-appearance: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: 0;
  float: left;
}
#contact textarea {
  height: 100px;
  width: calc(100% - 122px);
}
#contact input[type="button"] {
  display: inline-block;
  width: 170px;
  height: 50px;
  line-height: 50px;
  font-family: robotolight;
  background-color: #509d3d;
  color: #fff;
  border: 0;
  padding: 0;
  text-transform: uppercase;
  font-size: 20px;
  -webkit-appearance: none;
  border-radius: 0;
  -webkit-border-radius: 0;
  margin-left: -4px;
  border: 3px solid #509d3d;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  float: left;
}

#contact #thanks {
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 100px);
  height: 100%;
  margin: 0 50px;
  opacity: 0;
  -webkit-transition: opacity 1s;
  -o-transition: opacity 1s;
  transition: opacity 1s;
  z-index: -1;
}
#contact #thanks h1 {
  padding-top: 100px;
}
#contact #thanks p {
  text-align: center;
  margin-top: 100px;
  font-size: 25px;
}

/* ###############
   #### FONTS ####
   ############### */
 @font-face {
     font-family: 'robotoregular';
     src: url('../fonts/Roboto-Regular-webfont.eot');
     src: url('../fonts/Roboto-Regular-webfont.eot?#iefix') format('embedded-opentype'),
          url('../fonts/Roboto-Regular-webfont.woff') format('woff'),
          url('../fonts/Roboto-Regular-webfont.ttf') format('truetype'),
          url('../fonts/Roboto-Regular-webfont.svg#robotoregular') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'robotomedium';
     src: url('../fonts/Roboto-Medium-webfont.eot');
     src: url('../fonts/Roboto-Medium-webfont.eot?#iefix') format('embedded-opentype'),
          url('../fonts/Roboto-Medium-webfont.woff') format('woff'),
          url('../fonts/Roboto-Medium-webfont.ttf') format('truetype'),
          url('../fonts/Roboto-Medium-webfont.svg#robotomedium') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'robotolight';
     src: url('../fonts/Roboto-Light-webfont.eot');
     src: url('../fonts/Roboto-Light-webfont.eot?#iefix') format('embedded-opentype'),
          url('../fonts/Roboto-Light-webfont.woff') format('woff'),
          url('../fonts/Roboto-Light-webfont.ttf') format('truetype'),
          url('../fonts/Roboto-Light-webfont.svg#robotolight') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
  font-family: 'robotobold';
  src: url('../fonts/Roboto-Bold-webfont.eot');
  src: url('../fonts/Roboto-Bold-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Roboto-Bold-webfont.woff') format('woff'),
       url('../fonts/Roboto-Bold-webfont.ttf') format('truetype'),
       url('../fonts/Roboto-Bold-webfont.svg#robotobold') format('svg');
  font-weight: normal;
  font-style: normal;
}
