* {
  box-sizing: border-box
}
img {
  max-width: 100%;
}
nav a{ 
  text-decoration: none;
  color: white
 }
body, html{
  width: 100vw;
  overflow-x: hidden;
}

nav {
position: absolute;
top: 15px;
right: 15px;
background: #152946;
height: 50px;
width: 50px;
border-radius: 50%;
overflow: hidden;
transition: height 0.5s, width 0.5s, right 0.5s, top 0.5s, border-radius 0.5s;
z-index: 1000;
}

nav.is-open { 
height: 100vh;
width: 100vw;
top: 0;
right: 0;
border-radius: 0;
z-index: 1000;
}

nav.is-open ul{
  transform: none;
  opacity: 1;
}

nav:not(.is-open) {
  cursor: pointer;
}

.menu {
  height: 50px;
  width: 50px;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}
.logo{
  transition: background-color 0.3s;
}
.logo,
.logo::after,
.logo::before {
  width: 30px;
  height: 4px;
  background: white;
}

.logo::after,
.logo::before{
  content: '';
  display: block;
  transition: transform 0.5s;
}

.logo::before {
  transform: translateY(-8px)
}
.logo::after{
  transform: translateY(4px)
}
.accueil{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: fixed;
  transform: translate(calc(50vw - 40px), calc(-50vh + 40px)) scale(0);
  opacity:0;
  transition: transform 0.5s, opacity 0.5s;
  color: white;
}

nav:not(.is-open) ul{
  pointer-events: none;
}

nav.is-open .logo{
  background-color: transparent;
}
nav.is-open .logo::before{
  transform: translateY(2px) rotate(-45deg);
}
nav.is-open .logo::after{
  transform: translateY(-2px) rotate(45deg);
}


.onglet:not(:last-child){
  margin-bottom: 15px;
}

.onglet{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: auto;
  width: auto;
  overflow: hidden;
  transition: height 0.5s;
}

.wrapper1,.wrapper2{
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.menu-burger2,.menu-burger3{
    height: 0px;
    transition: height 0.5s;
    overflow: hidden;
}

.menu-burger2.is-open,.menu-burger2.is-open{
  border: 1px solid white;
}

.menu-burger2.is-open{
  height: 150px;
}

.menu-burger3.is-open{
  height: 100px;
}

.referent{
  height: 50px;
  width: 250px;
  text-align: center;
}

.button1,.button2,.button3{
  height: 50px;
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  border:1px solid white;
  background: rgba(255,255,255, 0.5);
}
  
@media(min-width:1000px){
  .menu, .logo{
    display: none;
  }

  nav{
    background: none;
    overflow: visible;
  }

  .accueil{
    opacity: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: visible;
    top: 5px;
    right: 5px;
    height: auto;
    transform: none;
  }

  .onglet{
    display: flex;
    flex-direction: row;
    width: 250px;
  }
  .onglet:not(:last-child){
    margin-bottom: 0px;
  }

  li{
    color: black;
  }

  .wrapper-titre{
    margin-bottom: 0px;
  }

  nav:not(.is-open) ul{
    pointer-events: all;
    cursor: default;
  }

  .menu-burger2, .menu-burger3{
    height: 0px;
    position: absolute;
    transition: height 0.5s;
    top: 40px;
  }

  .menu-burger3.is-open{
  height: 100px;
  }
}