header#headtop {
  position: relative;
  overflow-x: clip;
  height: 400px;
  display: flex;
  justify-content: center;
  align-content: center;
}

header#headtop.fixed{
  position: fixed;
  height: 50px;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: white;
}

header#headtop #header_logo{
  background-image: url(../../../public/img/logoMain.png);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0;
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0px;
  width: 25%;
  transition: all 0.3s ease;
  height: 35%;
  min-width: 300px;
}

header#headtop.fixed #header_logo{
  height: 30%;
  width: 20%;
}

header#headtop #header_logo:hover{
  height: 40%;
  width: 30%;
}

header#headtop h1{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  top: 0;
  left: 80px;
  height: 0;
  color: white;
  font-size: 50px;
  background-color: #0E1113;
  text-align: center;
  line-height: 100px;
  text-shadow: #5f5e60 0 3px 0;
  transition: all 0.3s ease;
  margin: 0;
}

header#headtop.fixed h1{
  font-size: 40px;
  height: 50px;
  max-width: 100%;
  min-height: 50px;
  transition: all 0.3s ease;
}

header#headtop p{
  margin-left: 10px;
  line-height: 50px;
  font-weight: normal;
}

header#headtop p.tel{
  display: none;
}

header#headtop h1 b {
  color: var(--green);
  font-weight: bold;
}

nav#menu{
  max-width: 800px;
  max-height: 1500px;
  position: fixed;
  top: 0;
  width: 15%;
  float: left;
  background: var(--darkgrey);
  height: 100%;
  font-size: 23px;
  padding-top: 30vh;
  padding-bottom: 0;
  border-radius: 0 0 8vw 8vw;
  transition: all 0.3s ease;
  z-index: 2;
  min-width: 110px;
  min-height: 500px;
}

  nav#menu::before{
    content: "";
    position: absolute;
    bottom: 0%;
    right: -10%;
    width: 100%;
    background-image: url("../../img/svg/backtool.svg");
    background-repeat: no-repeat;
    background-position: bottom right;
    height: 500%;
    background-size: contain;
  }

  nav#menu .leftmenu{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  position: relative;
  justify-content: space-evenly;
  height: 100%;
}

.leftmenu .endmenu{
  width: 10vw;
  height: 10vw;
  background-image: url("../../img/svg/endmenu.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.25;
  margin: 20%;
  max-width: 50%;
  max-height: 10%;
}

nav#menu .leftmenu h1{
  font-size: 2.5vw;
  transition: all 0.3s ease;
}

nav#menu.fixed .leftmenu h1{
    font-size: 1.9vw;
}

nav#menu.fixed{
  transition: all 0.3s ease;
  width: 10%;
  height: 100%;
  min-width: 100px;
  padding: 5px;
  padding-top: 30vh;
}


nav#menu a{
  text-align: center;
  background: transparent;
  z-index: 10;
  height: 10vw;
  transition: all 0.3s ease;
  color: white;
  font-family: 'Lee Toscanini3';
  font-weight: 800;
  line-height: 21vw;
  margin: 10px;
  transition: all 0.3s ease;
  font-size: 2vw;
  height: 10vw;
  width: 10vw;
}

nav#menu.fixed a{
  margin: 20px;
  transition: all 0.3s ease;
}

nav#menu a:hover{
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border: 5px solid white;
  transition: all 0.3s ease;
}

nav#menu a#buttonext,
nav#menu a#buttonint{
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100%;
  transition: all 0.3s ease;
}

nav#menu a#buttonext{
  background-image: url("../../img/svg/pictoext.svg") !important;

}

nav#menu a#buttonext:hover{
  -webkit-filter: brightness(0.3) sepia(1) hue-rotate(110deg) saturate(6);
          filter: brightness(0.3) sepia(1) hue-rotate(110deg) saturate(6);
}

nav#menu a#buttonint{
  background-image: url("../../img/svg/pictoint.svg") !important;
}

nav#menu a#buttonint:hover{
  -webkit-filter: brightness(0.3) sepia(1) hue-rotate(-70deg) saturate(6);
          filter: brightness(0.3) sepia(1) hue-rotate(-70deg) saturate(6);
}

nav#menu.fixed a#buttonext,
nav#menu.fixed a#buttonint{
background-size: 80%;
transition: all 0.3s ease;
}

nav#menu a.active{
  border-bottom: 5px solid var(--green);
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

nav#menu a:hover.active{
  border-bottom: 5px solid var(--green);
  color: var(--green);
}

nav#menu a.active:after{
  display: none !important;
}

.servicelist {
  margin: 30px;
  padding-left: 10%;
  padding-right: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.servicelist table, .servicelist table tbody{
  width: 100%;
  display: flex;
}

.servicelist table tbody tr{
  width: 100%;
  display: flex;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 20px;
  color: white;
  font-size: 17px;
}

.servicelist table tbody tr td{
  position: relative;
  width: 50%;
  display: flex;
  margin-left: 50px;
}

.servicelist table tbody tr td::before{
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: white;
}

  .servicelist table tbody tr td ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.servicelist td.pictoext, .servicelist td.pictoint{
  position: relative;
}

.servicelist td.pictoext::after, .servicelist td.pictoint::after{
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  left: -60px;
  top: 60px;
}

.servicelist td.pictoext::after{
  background-image: url("../../img/svg/pictoext.svg");
}

.servicelist td.pictoint::after{
  background-image: url("../../img/svg/pictoint.svg");
}

nav#mobilenav, nav#menu #submenu{
  display: none;
}

body header#home.carousel {
  height: 400px;
  width: 82.5%;
  position: absolute;
  top: 0;
  right: 0;
  float: right;
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-size: auto 100%;
  padding-top: 25px;
  padding-right: 25px;
  background-color: var(--lightgrey);
  transition: all 0.3s ease;
}

body.scrolled header#home.carousel {
  width: 87.5%;
}

header#home.carousel img{
  padding: 0;
  opacity: 0.5;
}

.carousel::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 25px;
  background: url(../../img/bg.png)fixed repeat;
  z-index: 0;
  opacity: 0.5;
  bottom: 0;
  left: 0;
}

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

@media screen and (max-width: 680px) {

  body header#home.carousel{
    top: 55px;
  }

  #headerTop{
    height: 55px;
  }

  body.scrolled #headerTop{
    height: 0;
  }

  header#headtop{
    height: 55px;
  }

  header#headtop #header_logo{
    display: none;
  }

  header#headtop h1{
    height: 53px;
    margin: 0;
    font-size: 35px;
    z-index: 5;
    top: 0;
    left: 0;
    background-color: var(--grey);
  }

  header#headtop.fixed h1{
    top: 0;
    background: black;
  }

  header#headtop p.tel{
    margin-right: 0px;
    display: block;
    text-shadow: 0px 0px 15px black;
    transition: all 0.2s ease;
  }

  header#headtop.fixed p.tel{
    margin-right: 60px;
    text-shadow: 0px 0px 0px none;
    transition: all 0.2s ease;
  }

  nav#menu {
    display: none;
  }

  nav#menu.fixed {
    display: none;
  }

  nav#mobilenav{
    position: absolute;
    display: flex;
    align-items: center;
    background: var(--grey);
    padding: 0 20px;
    height: 55px;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--green);
    justify-content: center;
    align-items: center;
    top: 0;
    z-index: 4;
  }

  nav#mobilenav .menu-mobile{
    color: var(--grey);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 220px;
    height: 30px;
    border-bottom: 3px solid var(--green);
    top: 55px;
    font-weight: bold;
    border-radius: 0 0 50% 50%;
    font-size: 15px;
    background-color: white;
  }
  nav#mobilenav.opened #menu-mobile{
    width: 100%;
    height: 40px;
    bottom: -280px;
    transition: all 0.2s ease;
  }
  nav#mobilenav.opened > a{
    display: none;
  }

  nav#mobilenav.opened #submenu-mobile a:nth-child(2)::before{
    background-image: url(../../img/svg/pictoext.svg);
  }

  nav#mobilenav.opened #submenu-mobile a:nth-child(3)::before{
    background-image: url(../../img/svg/pictoint.svg);
  }

  nav#mobilenav a:nth-child(3),nav#mobilenav a:nth-child(3):hover{
    border-right: 0;
  }

  nav#mobilenav.opened #submenu-mobile:after{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    content: "";
    position: absolute;
    width: 100%;
    height: 30px;
    border-bottom: 3px solid var(--green);
    left: 0;
    bottom: -30px;
    border-radius: 0 0 50% 50%;
    background-color: var(--grey);
    background-image: url(../../img/icons/arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
  }

  #submenu-mobile .endmenu{
    display: none;
  }

  nav#mobilenav .menu-mobile a{
    font-weight: normal;
  }
  
  nav#mobilenav #submenu-mobile{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    position: absolute;
    height: 0;
    transition: all 0.5s ease;
    overflow: hidden;
    top: 55px;
    background: var(--grey);
    width: 100%;
    left: 0;
    border-top: 1px solid var(--green);
    justify-content: space-evenly;
  }

  nav#mobilenav #submenu-mobile a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    color: white;
    border: 2px solid white;
    height: 22%;
    overflow: visible;
    border-radius: 50px;
    margin: 0px;
    line-height: 30px;
    padding: 35px;
  }

  nav#mobilenav #submenu-mobile a:hover{
    color: var(--green);
  }

  nav#mobilenav #submenu-mobile a::before{
    display: flex;
    position: relative;
  }

  nav#mobilenav.opened a{
    transition: all 0.2s ease-in-out;
  }

  nav#mobilenav.opened #submenu-mobile{
    display: flex;
    width: 100%;
    height: 30vh;
    background: var(--grey);
    position: absolute;
    left: 0;
    top: 0;
    border-top: 1px solid var(--green);
    overflow: visible;
  }

  #submenu-mobile .leftmenu{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  #submenu-mobile .leftmenu h1{
    color: transparent;
  }
  
  nav#mobilenav.fixed{
    position: fixed;
    top:0;
    min-width: 325px;
  }

  nav#mobilenav a{
    position: relative;
    color: var(--grey);
    font-size: 20px;
    width: 40px;
    height: 26px;
    text-align: center;
    border-right: 2px solid var(--lightgrey);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
  }

  nav#mobilenav a:hover::before{
    display: none;
  }

  nav#mobilenav a::before{
    content:"";
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    color: white;
    margin: 0 7px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
  }
  
  nav#mobilenav a.active::before{
    display: none;
  }
  
    nav#mobilenav a.active{
      color: white;
      background: var(--green);
      min-width: 100px;
      transition: all 0.2s ease-in-out;
      padding: 0 10px;
      width: auto;
  }
  /* Style des liens du menu mobile lors du survol */
    nav#mobilenav a:hover{
      padding: 0 10px;
      width: auto;
      color: var(--green);
      transition: all 0.2s ease-in-out;
      border-right: 5px solid white;
      background-color: white;
  }

  body header#home.carousel{
    width: 100%;
  }

  header#headtop.fixed h1 {
    height: auto;
    min-height: 53px;
  }

  .servicelist table tbody tr td:first-child{
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 1000px) {
  .servicelist {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 555px) {
  header#headtop {
    height: 100px;
  }  
  header#headtop.fixed p.tel {
    margin: 0;
    font-size: 80%;
  }
  header#headtop p {
    width: 100%;
  }
  header#headtop h1 {
    height: 98px;
  }
  nav#mobilenav .menu-mobile {
    top: 100px;
  }
  nav#mobilenav.opened #submenu-mobile {
    top: 70px;
  }
  nav#mobilenav {
    height: 100px;
  }
}
@media screen and (max-width: 375px) {

  header#headtop h1 p span{
    display: none;
  }
  header#headtop h1 p {
    font-size: 50px;
  }
  header#headtop h1 p b:after{
    content: "S+";
    margin-right: -5px;
    color: #FFF;
  }
  header#headtop p.tel {
    margin: 0;
    font-size: 90%;
  }
    header#headtop.fixed p.tel {
      margin: 0;
      font-size: 70%;
  }
}