body {
  margin: 0;
  padding: 0;
  background-color: #333c49;
  font-family: arial;
}

.mainpage {
  margin-top: 30px;
  width: 650px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.tooltip-nav {
  margin-left: 80px;
}

.bouton-tooltip {
  position: absolute;
  width: 45px;
  line-height: 45px;
  border-radius: 100px;
  text-align: center;
  background-color: #222831;
  color: white;
  border: solid 3px #1D232C;
  display: inline-block;
}

.tooltip-nav:hover .bouton-tooltip {
  width: 45px;
  line-height: 45px;
  border-radius: 100px;
  text-align: center;
  background-color: #282F37;
  color: white;
  border: solid 3px #1D232C;
  display: inline-block;
}

.tooltip_more {
  display: none;
  background-color: #222831;
  border-radius: 850px;
  line-height: 50px;
  width: 500px;
  text-align: center;
  position: absolute;
  margin-left: auto;
  margin-right: auto;
}

@keyframes expand_nav {
  0% {
    width: 45px
  }
  80% {
    width: 500px;
  }
}

.tooltip-nav:hover .tooltip_more {
  display: inline-block;
  animation-name: expand_nav;
  animation-duration: 450ms;
}

@keyframes expand_bouton_nav {
  0% {
    letter-spacing: -10px;
    margin-left: -50px;
    margin-right: -50px;
    padding: 0;
  }
  20% {
    margin-left: -50px;
    margin-right: -50px;
  }
  100% {
    letter-spacing: normal;
    margin-left: 15px;
    margin-right: 15px;
  }
}

.tooltip-nav:hover .bouton_nav {
  display: inline-block;
  animation-name: expand_bouton_nav;
  animation-duration: 450ms;
}

.bouton_nav {
  text-decoration: none;
  color: white;
  display: inline-block;
  width: 100px;
  line-height: 25px;
  border-radius: 100px;
  text-align: center;
  margin-left: 15px;
  margin-right: 15px;
  z-index: 200;
}

.bouton_nav:hover {
  background-color: white;
  color: black;
}

.contenu {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  margin-top: 80px;
  display: inline-flex;
}

.information {
  display: block;
}

.right {
  margin-top: 2px;
  margin-bottom: auto;
  vertical-align: middle;
  width: 570px;
  height: 365px;
  background-color: #21262F;
  left: 20px;
  border-radius: 15px;
  padding: 40px;
}

.grid-info {
  padding: 0;
  display: inline-block;
  position: absolute;
  top: 170px;
  box-shadow: 0px 0px 10px #172225;
  border-radius: 10px;
  height: 107px;
  margin-left: 205px;
}

.perso {
  position: relative;
  padding: 0;
  padding-top: 10px;
  margin: 0;
  display: inline-block;
  background-color: #222831;
  border-radius: 10px;
  border: solid 1px #212730;
  width: 75px;
  height: 95px;
  text-align: center;
  color: white;
  vertical-align: top;
}

.icon-secondary {
  color: white;
}

@keyframes expand_zone_perso {
  0% {
    height: 85px;
  }
  80% {
    height: 150px;
  }
}

@keyframes expand_content_perso {
  0%{
    opacity: 0%;
  }
  10% {
    opacity: 0%;
  }
  100% {
    opacity: 100%;
  }
}

.perso:hover {
  animation-name: expand_zone_perso;
  animation-duration: 400ms;
  width: 75px;
  height: 150px;
  background-color: white;
  color: black;
  box-shadow: 0px 0px 10px #172225;
}

@keyframes copie {
  0% {
    opacity: 0%
  }
  20%{
    opacity: 100%
  }
  80%{
    opacity: 100%
  }
  100% {
    opacity: 0%
  }
}

.copy-message {
  display: none;
  animation-name: copie;
  animation-duration: 2s;
  position: absolute;
  font-size: 12px;
  top: 48px;
  text-align: center;
  color: red;
  width: 75px;
  opacity: 0%;
}

.perso:hover img {
  filter: invert(100%);
}

.perso-secondary {
  position: absolute;
  top: 62px;
  width: 75px;
}

.hidden {
  display: none;
  opacity: 0%;
  position: absolute;
  bottom: 12px;
  width: 75px;
}

.perso:hover .hidden  {
  display: block;
  animation-name: expand_content_perso;
  animation-duration: 400ms;
  opacity: inherit;
}

@keyframes expand_tooltip_condition {
  0% {
    top: 40px;
  }
  0% {
    top: 62px;
  }
}

.perso:hover .tooltip_condition {
  animation-name: expand_tooltip_condition;
  animation-duration: 400ms;
}

.icon-secondary {
  width: 50px;
  margin-bottom: 10px;
  padding-left: 5px;
  padding-right: 5px;
}

.perso-secondary {
  font-weight: bold;
}


.temp-max-secondary {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

a{
  text-decoration: none;
  color: black;
}


.copyright {
  display: block;
  font-size: 10px;
  width: 650px;
  text-align: center;
  position: absolute;
  top: 590px;
  line-height: 40px;
}

.txt{
  color:white;
  text-align: center;
}

@media all and (min-height:700px) {
  .copyright {
    position: fixed;
    top: inherit;
    bottom: 0px;
    height: 40px;
  }
}

@media all and (max-width:800px) {
  .mainpage {
    width: 400px;
  }

  .tooltip-nav {
    margin-left: 20px;
  }

  .bouton-tooltip {
    width: 45px;
  }

  .tooltip_more {
    width: 500px;
    padding-left: 40px;
  }

  @keyframes expand_nav {
    0% {
      width: 45px
    }
    80% {
    width: 320px;
    }
  }

  .tooltip-nav:hover .tooltip_more {
    animation-name: expand_nav;
    animation-duration: 450ms;
    width: 320px;
  }

  @keyframes expand_bouton_nav {
    0% {
      margin-left: -50px;
      margin-right: -50px;
      padding: 0;
    }
    20% {
      margin-left: -50px;
      margin-right: -50px;
    }
    100% {
      margin-left: 5px;
      margin-right: 5px;
    }
  }

  .tooltip-nav:hover .bouton_nav {
    animation-name: expand_bouton_nav;
    animation-duration: 450ms;
    margin-left: 5px;
    margin-right: 5px;
  }

  .bouton_nav {
    width: 80px;
  }

  .right{
    width: 300px;
  }

  .grid-info {
    top: 200px;
   left: -90px;
  }

  .copyright{
    width: 380px;
  }
}
