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;
  cursor: default;
}

.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 {
  position: relative;
  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;
}

.primary-img {
  display: flex;
  width: 260px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  z-index: 2;
  opacity: 60%
}

#zone-img {
  display: flex;
  width: 260px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  z-index: 2;
  background-color: #95D4ED;
}

.primary-text {
  display: block;
  position: absolute;
  top: 0px;
  color: white;
  padding: 20px;
  z-index: 3;
  height: 360px;
  width: 260px;
}

.primary-bot {
  position: absolute;
  bottom: 1px;
  padding-bottom: 35px;
}

#bouton-refresh {
  position: absolute;
  top: 10px;
  right: 50px;
  border-radius: 50px;
  background-color: white;
  color: black;
  border: none;
  font-size: 18px;
  width: 28px;
  height: 28px;
  padding-bottom: 15px;
  box-shadow: 0px 0px 2px black;
  cursor: pointer;
}

#bouton-refresh:hover {
  color: white;
  background-color: #00BFFF;
}

#jour-sem-primary {
  font-weight: bold;
  font-size: 22px;
  text-shadow: 0px 0px 6px black;
}

#date-primary {
  font-weight: 1;
  font-size: 18px;
  margin-bottom: 10px;
  text-shadow: 0px 0px 6px black;
}

#localisation {
  font-size: 20px;
  text-shadow: 0px 0px 6px black;
  width: 220px;
}

#city {
  font-size: 14px;
  font-style: oblique;
  margin-top: 10px;
  text-shadow: 0px 0px 5px black;
}

#icon-primary {
  width: 120px;
  margin-bottom: 2px;
  filter: drop-shadow(0px 0px 2px black);
}

#degre-primary{
  font-size: 60px;
  font-weight: 600;
  text-shadow: 0px 0px 4px black;
}

#situation-primary{
  font-weight: bold;
  font-size: 20px;
  text-shadow: 0px 0px 6px black;
  width: 220px;
}

.horloge {
  display: block;
  position: absolute;
  bottom: -37px;
  right: 30px;
  cursor: default;
}

.see-horloge {
  display: block;
  position: absolute;
  bottom: 48px;
  text-align: center;
  width: 120px;
  left: -120px;
  font-size: 20px;
  text-shadow: 0px 0px 6px black;
  z-index: 4;
  text-decoration: underline;
}

.hide-horloge {
  display: none;
  position: absolute;
  left: -125px;
  bottom: -5px;
  padding: 0;
  width: 130px;
  height: 130px;
  color: black;
  border-radius: 160px;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.8);
}

@keyframes expand_horloge {
  0% {
    bottom: 58px;
    left: -58px;
    width: 0px;
    height: 0px;
  }
  50% {
    bottom: 0px;
    left: -120px;
    width: 115px;
    height: 115px;
  }
}

.horloge:hover .hide-horloge {
  display: block;
  animation-name: expand_horloge;
  animation-duration: 350ms;
}


.inter-horloge {
    position: absolute;
    left: 22px;
    top: 22px;
    padding: 0;
    width: 86px;
    height: 86px;
    color: black;
    border-radius: 160px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.0);
}

@keyframes expand_horloge_inter {
  0% {
    bottom: 0px;
    left: 0px;
    width: 0px;
    height: 0px;
  }
  50% {
    bottom: 0px;
    left: 22px;
    left: 22px;
    width: 86px;
    height: 86px;
  }
}

.horloge:hover .inter-horloge {
  display: block;
  animation-name: expand_horloge_inter;
  animation-duration: 350ms;
}

.selecth {
  padding: 0;
  width: 15px;
  height: 15px;
  text-align: center;
  border: none;
  font-weight: normal;
  font-size: 9px;
  border-radius: 30px;
  font-weight: bold;
  z-index: 7;
  background-color: white;
  cursor: pointer;
}

.selecth:hover {
  background-color: #00BFFF
}

@keyframes expand_horloge_button {
  0% {
    text-align: center;
    font-size: 0px;
    width: 0px;
    height: 0px;
  }
  50% {
    text-align: center;
    display: block;
    font-size: 0px;
    width: 0px;
    height: 0px;
  }
  100% {
    text-align: center;
    font-size: 9px;
    width: 13px;
    height: 13px;
  }
}

.horloge:hover .selecth {
  display: block;
  animation-name: expand_horloge_button;
  animation-duration: 350ms;
}

#h0 {
  position: absolute;
  top: 2px;
  left: 35px;
}

#h1 {
  position: absolute;
  top: 11px;
  right: 32px;
}

#h2 {
  position: absolute;
  top: 32px;
  right: 11px;

}

#h3 {
  position: absolute;
  top: 57px;
  right: 3px;

}

#h4 {
  position: absolute;
  bottom: 32px;
  right: 11px;

}

#h5 {
  position: absolute;
  bottom: 11px;
  right: 32px;

}

#h6 {
  position: absolute;
  bottom: 3px;
  left: 57px;

}

#h7 {
  position: absolute;
  bottom: 11px;
  left: 32px;

}

#h8 {
  position: absolute;
  bottom: 32px;
  left: 11px;

}

#h9 {
  position: absolute;
  top: 57px;
  left: 3px;

}

#h10 {
  position: absolute;
  top: 32px;
  left: 11px;

}

#h11 {
  position: absolute;
  top: 11px;
  left: 32px;

}

#h12 {
  position: absolute;
  top: 3px;
  left: 57px;

}

#h13 {
  position: absolute;
  top: 7px;
  right: 19px;

}

#h14 {
  position: absolute;
  top: 19px;
  right: 7px;

}

#h15 {
  position: absolute;
  top: 35px;
  right: 2px;

}

#h16 {
  position: absolute;
  bottom: 19px;
  right: 7px;

}

#h17 {
  position: absolute;
  bottom: 7px;
  right: 19px;

}

#h18 {
  position: absolute;
  bottom: 2px;
  left: 35px;

}

#h19 {
  position: absolute;
  bottom: 7px;
  left: 19px;

}

#h20 {
  position: absolute;
  bottom: 19px;
  left: 7px;

}

#h21 {
  position: absolute;
  top: 35px;
  left: 2px;

}

#h22 {
  position: absolute;
  top: 19px;
  left: 7px;

}

#h23 {
  position: absolute;
  top: 7px;
  left: 19px;
}

#jour-stock {
  display: none;
}

.information {
  display: block;
}

.right {
  position: absolute;
  margin-top: 2px;
  margin-bottom: auto;
  display: block;
  width: 330px;
  height: 365px;
  background-color: #21262F;
  z-index: -1;
  left: 20px;
  border-radius: 15px;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 30px;
  padding-left: 280px;
}

.plus {
  display: block;
  color: white;
  padding-left: 30px;
  margin-bottom: 30px;
}

.detail {
  margin-bottom: 20px;
  display: block;
  position: relative;
  right: 0;
  display: grid;
  grid-template-columns: 160px 100px;
}

.d-titre {
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  left: 0px;
  font-weight: bolder;
}

.d-donnee {
  display: inline-block;
  text-align: right;
  font-weight: lighter;
}

#imgorient {
  display: inline-block;
  position: absolute;
  left: 170px;
  padding-left: 3px;
  padding-right: 3px;
  margin-right: 7px;
  width: 22px;
  text-align: center;
  z-index: 3;
}

@keyframes expand_desc_orient {
  0% {
    letter-spacing: -5px;
    width: 10px;
    margin-left: 18px;
    margin-top: 1px;
  }
  100% {
    letter-spacing: normal;
    width: 70px;
    margin-left: -10px;
    margin-top: 28px;
  }
}

#descorient {
  display: none;
  position: absolute;
  margin-top: 28px;
  font-size: 10px;
  text-align: center;
  margin-left: -10px;
  width: 70px;
  color: black;
  background-color: white;
  border-radius: 10px;
  z-index: 2;
}

.orient:hover #descorient {
  display: block;
  animation-name: expand_desc_orient;
  animation-duration: 350ms;
}

.grid-info {
  padding: 0;
  display: inline-block;
  position: absolute;
  top: 150px;
  box-shadow: 0px 0px 10px #172225;
  border-radius: 10px;
  height: 95px;
}

.jour {
  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: 85px;
  text-align: center;
  color: white;
  vertical-align: top;
  cursor: pointer;
}

.icon-secondary {
  font-size: 10px;
  color: white;
}

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

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

.jour:hover {
  animation-name: expand_zone_jour;
  animation-duration: 400ms;
  width: 75px;
  height: 150px;
  background-color: white;
  color: black;
  box-shadow: 0px 0px 10px #172225;
  z-index: 2;
}

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

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

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

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

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

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

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

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

.temp-min-secondary {
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 4px;
}

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

.style-sym {
  font-size: 10px;
  font-weight: normal;
  margin-bottom: -2px;
}

.tooltip_condition {
  display: inline-block;
  position: absolute;
  top: -73px;
  left: 5px;
}

.tooltip_i {
  position: absolute;
  display: inline-block;
  font-weight: bold;
  font-size: 8px;
  border-radius: 10px;
  border: solid 1px black;
  background-color: white;
  width: 8px;
  height: 8px;
}

.tooltip_condition_hide {
  display: none;
  position: absolute;
  font-size: 10px;
  left: 12px;
  top: -1px;
  background-color: white;
}

.tooltip_condition:hover .tooltip_condition_hide{
  display: inline-block;
}

.froid-chaud {
font-size: 14px;
display: block;
position: absolute;
top: 265px;
color: white;
height: 50px;
text-align: center;
font-weight: 100;
}

#text-froid {
  display: block;
  position: absolute;
  top:0px;
  width: 320px;
}

#text-chaud {
  display: block;
  position: absolute;
  bottom: 0px;
  width: 320px;
}

.bouton-choix {
  display: block;
  position: absolute;
  text-align: center;
  box-shadow: 0px 0px 10px #172225;
  border-radius: 50px;
  background: linear-gradient(to bottom right, #00BFFF, #001EFF);
  color: white;
  width: 240px;
  line-height: 30px;
  left: 320px;
  top: 335px;
  z-index: 1;
  cursor: default;
}

.bouton-choix:hover {
  background: linear-gradient(to bottom right, #00A4FF, #1100FF);
}

.menu-ville {
  display: none;
  position: absolute;
  left: 310px;
  top: 365px;
  grid-template-columns: auto auto;
  z-index: 0;
  box-shadow: 0px 0px 10px #172225;
  background-color: #222831;
  border-radius: 20px;
}

.select-ville:hover .menu-ville {
  display: grid;
}

@keyframes expand_ville {
  0% {
    margin-top: -30px;
  }
  100% {
    margin-top: 0px;
  }
}

.select-ville:hover .bouton-ville {
 animation-name: expand_ville;
 animation-duration: 350ms
}

input[type="radio"].input_ville {
  display: none;
}

input[type="radio"].input_ville + label {
  text-align: center;
  display: block;
  font-size: 16px;
  line-height: 24px;
  color: white;
  width: 130px;
  background-color: #222831;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: all 150ms ease-in-out;
  cursor: pointer;
}

input[type="radio"].input_ville:hover + label {
  background-color: white;
  color: black;
}

input[type="radio"].input_ville:checked + label {
  background-color: #00A4FF;
  color: black;
}

#invisible {
  display: none;
}

.random-ville {
grid-column: 1 / span 2;
}

.randomville{
  display: block;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  width: 160px;
  line-height: 24px;
  border: none;
  box-shadow: 0px 0px 6px #172225;
  border-radius: 20px;
  background-color: #222831;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

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

.enter-ville {
  display: inline-block;
  grid-column: 1 / span 2;
  text-align: center;
  height: 20px;
  margin-top: 4px;
  margin-bottom: 4px;
}

#enter-ville-edit {
  display: inline-block;
  background-color: #222831;
  border: none;
  color: white;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border-radius: 10px;
}

#exe-choix-ville {
  background-color: #222831;
  border: none;
  color: white;
  border-radius: 10px;
  padding-right: 8px;
  font-weight: bold;
  cursor: pointer;
}

#exe-choix-ville:hover {
  background-color: white;
  border: none;
  color: blue;
}

#error-message {
  display: none;
  color: #FF6F6F;
}

#error-message-bis {
  display: none;
  position: absolute;
  text-align: center;
  border-radius: 50px;
  color: #FF6F6F;
  width: 240px;
  left: 320px;
  top: 348px;
  z-index: -1;
}

.surligne {
  text-decoration: line-through;
}

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

@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;
  }

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

  .primary-img {
    display: flex;
    width: 400px;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    z-index: 2;
    opacity: 60%
  }

  #zone-img {
    display: flex;
    width: 400px;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    z-index: 2;
    background-color: #95D4ED;
  }


  .primary-text {
    display: block;
    position: absolute;
    top: 0px;
    color: white;
    padding: 20px;
    z-index: 3;
    height: 245px;
    width: 400px;
  }

  #bouton-refresh {
    display: block;
    position: absolute;
    top: 10px;
  }


  .horloge {
    display: block;
    position: absolute;
    bottom: -12px;
    right: 60px;
  }

  .primary-top {
    position: absolute;
    top: 10px;
    left: 135px;
  }

  .primary-bot {
    left: 20px;
    bottom: 25px;
    width: 260px
  }

  #icon-primary {
    width: 120px;
    position: absolute;
    left: -10px;
    bottom: 120px;
  }

  #degre-primary {
    position: absolute;
    left: 70px;
    bottom: 60px;
  }

  .right {
    margin-top: 2px;
    width: 330px;
    height: 365px;
    left: 4px;
    border-radius: 15px;
    padding-right: 32px;
    padding-top: 290px;
    padding-left: 32px;
  }

  .grid-info {
    padding: 0;
    display: inline-block;
    position: absolute;
    top: 410px;
    left: 40px;
    box-shadow: 0px 0px 10px #172225;
    border-radius: 10px;
    height: 95px;
    align-items: center;
  }

  .select-ville {
    position: absolute;
    display: block;
    left: -240px;
    top: 260px;
  }

  #error-message-bis {
    width: 400px;
    left: 0px;
    top: 630px;
  }

  .froid-chaud {
    top: 524px;
  }

  .copyright {
    width: 400px;
    top: 870px;
  }
}
