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 section: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 section:nth-child(2) article: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 section:nth-child(2) article: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);
  }
}
/* je touche a ma boite qui regroupe mon menu autour de la rose des vents */
.menu {
  z-index: 1;
  font-size: 12px;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 55%;
}
header section:nth-child(2) article:first-child > svg {
  width: 100%;
  height: 100%;
}

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

/* Placement du sous-menu de activités */
header section:nth-child(2) article: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;
}
/* Ici on place les liens Contacte et Don */
header section:nth-child(3) {
  position: relative;
  left: 4%;
  top: 12%;
  width: 12%;
  height: 60%;
  display: flex;
  align-items: last baseline;
  justify-content: space-around;
}

header section: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;
  }
}
/* Ici je vais gerer mon bouton de retour en haut de page */
header > a:nth-child(6) {
  position: fixed;
  top: 85%;
  left: 95%;
  z-index: 2;
  transition: 0.5s ease-in;
  opacity: 0;
  cursor: unset;
  /* width: 100%; */
}
header a:nth-child(6) img {
  width: 100%;
}
@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 article:nth-child(4) {
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    cursor: pointer;
    top: 26%;
    left: -30%;
  }
  #navTel article: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 section:nth-child(3) {
    top: -15%;
    left: 60%;
    width: 22%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  #coeur {
    top: 28%;
  }
  #contact {
    top: 0;
  }
  .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 section:nth-child(4) > a {
    top: 23%;
    left: 47.5%;
  }

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

  header a:nth-child(6) {
    top: 91%;
    left: 91%;
  }
}

@media screen and (max-width: 430px) {
  #navTel {
    display: none;
  }
  header section: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: 26px;
  }
  header .deployed:after {
    top: -41% !important;
    left: -10% !important;
    width: 120% !important;
    height: 220% !important;
  }
  #navTelMinScreen article: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 article: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: -5px;
  }
  header section:nth-child(5) > a {
    top: 23%;
    left: 41%;
  }
  header section:nth-child(5) > article {
    top: 23%;
    left: 41%;
  }
  header a:nth-child(6) {
    top: 86%;
    left: 88%;
  }
}
