

@font-face {
  font-family: nhaas;
  src: url(../fonts/nhaas.otf);
  line-height: 1;
  font-weight: 600;
  -webkit-font-smoothing: antialiased
}

:root {
--app-height: 100vh;
--padding: 2rem;
}
.dark-green-bg {
background-color: #5E815E;
color: #E2F2CE;
}

.light-green-bg {
background-color: #E2F2CE;
color: #5E815E;
}

body {
font-family: nhaas;
font-weight: 300;
font-size: 20px;
line-height: 120%;
overflow-x: hidden;
background-color: #E2F2CE;
}




body a {
color: inherit;
text-decoration: none;
}

/* HEADER */
header {
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: var(--padding);
text-transform: uppercase;
-webkit-box-sizing: border-box;
        box-sizing: border-box;
}

.page-header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
position: sticky;
top: 0;
z-index: 100000;
}

.header-project {

z-index: 10;
}

.page-header > * {
-webkit-box-flex: 1;
    -ms-flex: 1;
        flex: 1;
}

.page-title {
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: var(--padding);
text-transform: uppercase;
-webkit-box-sizing: border-box;
        box-sizing: border-box;

}
/* HOME */

.home-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
    -ms-flex-direction: column;
        flex-direction: column;
height: var(--app-height);
}

.home-container .home {
-webkit-box-flex: 1;
    -ms-flex: 1;
        flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
    -ms-flex-direction: column;
        flex-direction: column;
}

.home-container .home li {
-webkit-box-flex: 1;
    -ms-flex: 1;
        flex: 1;
list-style-type: none;
font-size: 10vh;
padding-left: var(--padding);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
text-transform: uppercase;
-webkit-box-align: center;
    -ms-flex-align: center;
        align-items: center;
}

/* SAVOIR FAIRE */


.children {
height: calc(var(--app-height) - 2em);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
    -ms-flex-direction: column;
        flex-direction: column;
        -webkit-clip-path: inset(0); /* safari*/
        clip-path: inset(0);
        clip: rect(0px, auto, auto, 0px); /* IE11/Edge (not that IE11 supports sticky anyway!) 
*/
overflow:hidden; 
    
}

.children .title {
font-size: 10vh;
padding-left: var(--padding);
text-transform: uppercase;
white-space: nowrap;
padding-top: 5rem;
padding-bottom: 5rem;
}

.children .content-grid {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
    -ms-flex: 1;
        flex: 1;
}

.children .content-grid .text {
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;
}

.home-logo {
  position: fixed;
  height: 100vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.home {
  opacity: 0;
  animation: transition 2s forwards;


}

@keyframes transition {
  0% {  opacity: 0;  }
  80% { opacity: 0; }
  100% {  opacity: 1;  }
}


.children .content-grid .text p {
width: 40ch;
}

.children .content-grid .row {
-webkit-box-flex: 1;
    -ms-flex: 1;
        flex: 1;
}

/* PROJECT */

.carousel {
height: 100%;
width: 100%;
}

section {
position: relative;
}

.infos-supp {
position: absolute;
width: 50%;
height: var(--app-height);
right: 0;
padding-top: 4rem;
padding-left: var(--padding);
padding-right: var(--padding);
padding-bottom:  var(--padding);
-webkit-box-sizing: border-box;
        box-sizing: border-box;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
    -ms-flex-direction: column;
        flex-direction: column;
-webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
        transform: translateY(-100%);
-webkit-transition: -webkit-transform .2s ease-in-out;
transition: -webkit-transform .2s ease-in-out;
-o-transition: transform .2s ease-in-out;
transition: transform .2s ease-in-out;
transition: transform .2s ease-in-out, -webkit-transform .2s ease-in-out;
justify-content: center;
}

.show-things {
-webkit-transform: translateY(-0%);
    -ms-transform: translateY(-0%);
        transform: translateY(-0%);
}

.infos-supp > * {
margin-bottom: 1rem;
}

.carousel .carousel-cell{
height: 100%;
width: 100%;
}

.carousel .image-wrapper {
height: 100%;
width: 100%;
padding-top: 2em;
padding-bottom: 2em;
padding-right: var(--padding);
padding-left: var(--padding);
-webkit-box-sizing: border-box;
        box-sizing: border-box;
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;
background-color: #f7ffec;
}

.carousel .image-wrapper img{
max-height: 100%;
max-width: 100%;
}

.right-nav {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
    -ms-flex-pack: justify;
        justify-content: space-between;
}

.show-more {
height: 1.4rem;
width: 1.4rem;
font-size: 0.7em;
border-radius: 2em;
margin-right: var(--padding);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
    -ms-flex-pack: center;
        justify-content: center;
-webkit-box-align: center;
    -ms-flex-align: center;
        align-items: center;
cursor: pointer;
}


.contact-wrapper {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
    -ms-flex-direction: column;
        flex-direction: column;
}

.telephone {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
    -ms-flex-pack: justify;
        justify-content: space-between;
}

@media only screen 
and (min-device-width: 320px) 
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2) {
  :root {
    --padding: 1rem;
  }
  .home-container .home li {
    font-size: 6vh;
  }

  .page-header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .children .title {
    font-size: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;

  }
  .children .content-grid {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
  }

  .children .text {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
  }

  .infos-supp {
    width: 100%;
    padding-top: 8rem;
  }

  .content-grid .text p {
    font-size: 0.8em;
    line-height: 120%;
    padding-left: 1em;
    padding-right: 1em;
    width: 10ch;
}

.projets {
  height: calc(var(--app-height) - 5rem) !important;
  overflow: hidden;
}

.carousel {
  height: calc(100% - 2rem);
}

.savoir-faire .dark-green-bg {
  background-color: #E2F2CE;
  color: #5E815E;

}

.savoir-faire .title {
  overflow: scroll;
}

.savoir-faire h1 {
  padding-right: var(--padding);
}

.savoir-faire .light-green-bg {
  background-color: #5E815E;
  color: #E2F2CE;
}

.projets .dark-green-bg {
  background-color: #E2F2CE;
  color: #5E815E;

}

.projets .light-green-bg {
  background-color: #5E815E;
  color: #E2F2CE;
}

.header-project {
  top: 4.4em;
  z-index: 10;
}

.contact .dark-green-bg {
  background-color: #E2F2CE;
  color: #5E815E;

}

.contact .light-green-bg {
  background-color: #5E815E;
  color: #E2F2CE;
}
.contact-wrapper {
  font-size: 0.8em;
  line-height: 120%;
  padding-left: 1em;
  padding-right: 1em;
}
.telephone {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.content-grid {
  position: relative;
}

.carousel {
  background-color: none;
}
}