:root {
  --primary: #9b6b3b;
  --swiper-theme-color: white !important;
}

@font-face {
  font-family: 'Metropolis';
  src: url('fonts/Metropolis-Medium.otf'); /* IE9 Compat Modes */
}

.relative {
  position: relative;
}

html, body {
  margin: 0;
  font-family: 'Metropolis';
  overflow-x: hidden;
}

nav {
  display: none;
  justify-content: space-between;
  height: 75px;
  position: fixed;
  width: 100%;
  z-index: 5;
  background-color: black;
}

nav .desktop {
  display: none;
}

nav img {
  width: 50%;
}

nav .burger {
  color: white;
  font-size: 1.5em;
  display: grid;
  align-items: center;
  justify-content: right;
  margin-right: 1em;
}

#navmenu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  background-color: black;
  color: white;
  align-items: center;
}

#navmenu > div {
  display: block;
}

nav ul {
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  padding: 1em;
  margin: 1em;
  list-style: circle;
}

nav ul li, #navmenu li { 
  list-style: none;
  display: inline;
  position: relative;
}

nav ul li:after { 
  position: absolute;
  top: -50%;
  left: 100%;
  content: " \00b7";
  color: var(--primary);
  font-size: 5em;
}

nav ul li:last-child:after { 
  content: none; 
}

#navmenu lo {
  padding: 1em;
}

nav ul li a, #navmenu a {
  text-decoration: none;
  color: white;
}

#navmenu ul {
  display: grid;
}

nav ul li a:hover {
  color: var(--primary);
}

.dropdown, .mobile-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  height: fit-content;
  padding: 3em;
  background-color: black;
  display: none;
  z-index: 1;
}

.mobile-dropdown-content {
  display: none;
}

.dropdown-content a {
  padding: 1em;
}

.mobile-dropdown:active .mobile-dropdown-content, .mobile-dropdown:hover .mobile-dropdown-content, .dropdown:hover .dropdown-content {
  display: grid;
}

.mobile-dropdown > a {
  margin: 1em 0;
}

#navmenu > ul > li {
  font-size: 2em;
}

#navmenu > ul > li > .mobile-dropdown-content {
  margin: 1em .2em;
}

#navmenu > ul > li > .mobile-dropdown-content a {
  font-size: .7em;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: black;
}

header #background {
  position: fixed;
  z-index: -2;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
}

header #cernes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  opacity: 0.6;
  background-color: black;
}

header #logo {
  width: 100%;
}

section {
  background-color: black;
  color: white;
}

section .flex .text {
  padding: 10%;
}

section .background {
  position: relative;
  padding: 30%;
  background-attachment: fixed;
  filter: grayscale();
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

section .background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: black;
  opacity: 0.2;
  filter: invert();
}

.chiffres {
  text-align: center;
  border-bottom: .5em solid var(--primary);
}

.chiffres .flex {
  text-align: center;
  justify-content: center;
}

.chiffres .flex div {
  width: auto;
  padding: 3% 5%;
}

.chiffres .grand {
  margin: 0;
  font-size: 5em;
}

.chiffres .desc {
  color: var(--primary);
}

.chiffres > p {
  padding: 1em;
}

.service {
  position: relative;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: justify;
}

.blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 50%;
}

.service .flex {
  position: inherit;
  z-index: 3;
}

.service-label {
  padding: 1em;
  display: flex;
  align-items: center;
}

.service-label img {
  height: 90%;
}

.service-label h2 {
  color: #99000000;
  font-size: 1px;
}

.service-description {
  background-color: black;
  color: white;
  font-size: 1.3em;
  display: flex;
  align-items: center;
}

.service-description .text-and-link {
  padding: 10%;
}


.service-description .text-and-link a {
  text-align: right;
  text-decoration: none;
  color: white;
  padding: .5em;
  border: 2px solid white;
}

.service-description .text-and-link a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

#menuiserie {
  background-image: url('https://blog.equipbaie.com/wp-content/uploads/2019/11/winpro.jpg');
}

#plaques {
  background-image: url('http://www.viricel.fr/img/platrerie-plaquisterie1.jpg');
}

#isolation {
  background-image: url('https://www.lesmateriaux.fr/uploads/categories/background/39-isolation-thermique-interieur.jpg');
}

#ameublement {
  background-image: url('https://www.idfdesign.fr/photos/meubles-porte-tv/florida-cabinet-systemes-tv-d-ameublement-3.jpg');
}

.realisations {
  display: grid;
}

.realisations a.realisation {
  position: relative;
  color: white;
}

.realisations .realisation img {
  width: 100%;
  height: auto;
}

.realisations .realisation .overlay {
  display: grid;
  align-items: center;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.40);
}

.call2action {
  background-image: url('/public/img/wood.png');
  background-repeat: no-repeat;
  background-size: cover;
}

.call2action h4 {
  font-size: 2em;
}

.call2action a {
  text-decoration: none;
  color: white;
  padding: 1em;
  border: 2px solid white;
}

.call2action a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.call2action img {
  display: none;
}

footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 5% 20%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#container {
  display: flex;
  align-items: center;
  perspective: 30px;
  height: 100%;
  width: 100%;
  justify-content: center;
}

#inner {
  transition: transform 0.5s;
  -webkit-transition: transform 0.5s;
}

@media screen and (min-width: 1080px) {
  .flex {
    display: flex;
  }

  nav .desktop {
    display: flex;
  }

  nav img {
    width: auto;
  }

  nav .burger {
    display: none;
  }

  header {
    background: none;
  }

  header #background {
    display: block;
  }

  header #logo {
    width: 100%;
  }
  
  section > .flex > div {
    width: 50vw;
  }

  .chiffres .grand {
    font-size: 7em;
  }

  .chiffres > p {
    padding: 0;
  }

  .service-label {
    padding: 0;
  }

  section .background {
    padding: 10%;
  }

  .ordered {
    order: -1;
  }

  .ordered-titre {
    display: grid;
    justify-content: end;
  }

  .realisations {
    display: flex;
  }
  
  .realisations a.realisation {
    width: calc(100% /3);
    margin: 24px 12px;
  }

  .service {
    background-attachment: fixed;
  }
  
  .call2action h4 {
    font-size: 3em;
  }

  .call2action img {
    display: block;
    height: 100%;
    transform: scaleX(-1);
  }
}