header {
  z-index: 1;
  width: 100%;
  height: 40vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-family: Poppins, sans-serif;
  position: relative;
}

header a,
header p {
  color: blue;
  fill: blue;
  text-decoration: none;
}

header a {
  font-size: 12px;
}

header a:hover {
  color: red;
  fill: red;
}

header>img {
  position: relative;
  top: -20%;
  left: -4%;
}

#navTel {
  display: none;
}

#navTelMinScreen {
  display: none;
}

/* Ceci est le menu de navigation en version bureau */
header div:nth-child(2) {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -50%;
}

/* je touche a la rose des vents en haut de la page */
header div:nth-child(2) div:nth-child(3) {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  cursor: pointer;
  top: 0.5%;
}

header div:nth-child(2) div:nth-child(3) svg {
  position: absolute;
  height: 150%;
}

/* je touche à l'animation de la rose des vents */
#cardinal {
  animation: horaire 10s linear infinite;
}

/* j'anime la rose des ventes en sens horaire */
@keyframes horaire {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.menu {
  z-index: 1;
  font-size: 12px;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 55%;
}

header div:nth-child(2) div:first-child>svg {
  width: 100%;
  height: 100%;
}

header div:nth-child(2) div:first-child>svg path {
  fill: transparent;
}

header div:nth-child(2) div:nth-child(2) {
  z-index: 2;
  position: absolute;
  left: 29.5%;
  top: 140%;
  width: 41%;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  opacity: 1;
  transform: scale(0);
  transition: 0.5s;
  transform-origin: top center;
}

#sousMenu a,
.sousmenu a {
  text-decoration: none;
  font-size: 18px;
  line-height: 20px;
}

.extend {
  opacity: 1;
  transform: scale(1) !important;
}

header .icones-right:nth-child(3) {
  position: relative;
  left: -5%;
  top: 12%;
  width: 12%;
  height: 60%;
  display: flex;
  align-items: last baseline;
  justify-content: space-around;
}

header .icones-right:nth-child(3)>a {
  position: relative;
  width: 100%;
  height: 100%;
  left: -30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#contact {
  top: -25%;
  left: -10%;
}

#contact p {
  margin-top: 5px;
}

#piece {
  position: relative;
  width: 42%;
  top: 0px;
  left: -5px;
}

#cochon {
  z-index: 1;
  width: 125%;
}

#coeur {
  position: relative;
  width: 34%;
  top: 27%;
  left: 18%;
}

#bulle {
  position: relative;
  width: 76%;
  left: 12%;
  top: 10%;
}

#vibration {
  position: relative;
  top: 7%;
  left: 1%;
  opacity: 0;
}

#tel {
  width: 50%;
}

/* je prépare mes classes pour animer les icones avec du js */
.bling {
  animation: bling 2s linear infinite;
}

.bling2 {
  animation: bling2 2s linear infinite;
}

.msg {
  animation: msg 3s linear infinite;
}

.msg2 {
  animation: msg2 3s linear infinite;
}

.msg3 {
  animation: msg3 3s linear infinite;
}

.msg4 {
  animation: msg4 3s linear infinite;
}

@keyframes bling {
  0% {
    transform: translateY(0px);
  }

  10% {
    transform: translateY(-10px);
  }

  30% {
    transform: translateY(55px);
  }

  100% {
    transform: translateY(55px);
  }
}

@keyframes bling2 {
  0% {
    transform: translateY(0px);
  }

  5% {
    transform: translateY(0px);
  }

  30% {
    transform: translateY(0px);
  }

  40% {
    transform: translateY(-10px);
  }

  50% {
    transform: translateY(-10px) rotate(0deg);
  }

  55% {
    transform: translateY(-10px) rotate(10deg);
  }

  60% {
    transform: translateY(-10px) rotate(-10deg);
  }

  65% {
    transform: translateY(-10px) rotate(10deg);
  }

  70% {
    transform: translateY(-10px) rotate(-10deg);
  }

  75% {
    transform: translateY(-10px) rotate(10deg);
  }

  80% {
    transform: translateY(-10px) rotate(0deg);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes msg {
  0% {
    transform-origin: bottom;
    transform: scale(0);
  }

  33% {
    transform-origin: bottom;
    transform: scale(0);
  }

  45% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes msg2 {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  55% {
    opacity: 1;
    transform: scale(1.3);
  }

  65% {
    transform: scale(1);
  }

  85% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes msg3 {
  0% {
    transform: rotate(0deg);
  }

  5% {
    transform: rotate(5deg);
  }

  10% {
    transform: rotate(-5deg);
  }

  15% {
    transform: rotate(5deg);
  }

  20% {
    transform: rotate(-5deg);
  }

  25% {
    transform: rotate(5deg);
  }

  30% {
    transform: rotate(0deg);
  }
}

@keyframes msg4 {
  0% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  30.5% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (width <= 1350px){
    #sousMenu{
    top:130%;
  }
}

@media screen and (max-width: 834px) {
  header {
    height: 300px;
    margin-bottom: 20px;
  }

  header a {
    font-size: 16px;
  }

  #navDesktop {
    display: none;
  }

  #navTel {
    display: flex;
    flex-direction: column;
    width: 68%;
    height: 100%;
  }

  #navTel div:nth-child(4) {
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    cursor: pointer;
    top: 26%;
    left: -40%;
  }

  #navTel div:nth-child(4) svg {
    position: absolute;
    width: 50%;
  }

  .sousmenu {
    overflow: hidden;
    position: relative;
    opacity: 0;
    list-style: none;
    top: -28px;
    left: 130px;
    width: 0px;
    height: 20px;
    transition: 0.5s ease-in-out;
    transform-origin: top left;
    font-size: 16px;
  }

  .placement {
    opacity: 1;
    width: 220px;
  }

  .active {
    height: 160px;
  }

  header>img {
    top: -28%;
    left: 2%;
    width: 20%;
  }

  header .icones-right:nth-child(3) {
    top: -15%;
    left: 46%;
    width: 22%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #coeur {
    top: 28%;
  }

  #contact {
    top: 0;
    left: -26%;
  }

  .menuPhone {
    position: absolute;
    opacity: 0;
    transition: 0.5s ease-in-out;
  }

  .open {
    opacity: 1;
  }

  .closed {
    opacity: 0;
  }

  /* Position d'origine des lien de la navbar */
  header div:nth-child(4)>a {
    top: 23%;
    left: 47.5%;
  }

  /* Position d'origine du menu déroulant */
  header div:nth-child(4)>div {
    top: 23%;
    left: 47.5%;
  }

  #menuAct {
    cursor: pointer;
    padding:0;
  }
}

@media screen and (max-width: 620px) {
  #navTel {
    display: none;
  }

  header .icones-right:nth-child(3) {
    display: none;
  }

  #navTelMinScreen {
    display: flex;
    flex-direction: column;
    width: 68%;
    height: 100%;
  }

  #navTelMinScreen::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 23%;
    left: 49%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: 0.5s ease-in-out;
  }

  #navTelMinScreen li {
    line-height: 25px;
  }

  header .deployed:after {
    top: -41% !important;
    left: -10% !important;
    width: 120% !important;
    height: 220% !important;

  }

  #navTelMinScreen div:nth-child(4) {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    cursor: pointer;
    top: 20%;
    left: -19%;
  }

  #navTelMinScreen div:nth-child(4) svg {
    position: absolute;
    width: 50%;
  }

  .menuPhoneMinScreen {
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease-in-out;
  }

  .open {
    opacity: 1;
  }

  .closed {
    opacity: 0;
  }

  .ecart {
    transform: translateY(130px);
  }

  #sousMenuResponsiveMinScreen {
    left: 8px;
    top:0;
  }

  header div:nth-child(5)>a {
    top: 23%;
    left: 41%;
  }

  header div:nth-child(5)>div {
    top: 23%;
    left: 41%;
  }

  #menuActMinScreen {
    cursor: pointer;
    padding: 0px;
  }
}