body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px;
    background: linear-gradient(120deg, #2980b9, #6dd5fa, #ffffff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 95vh;
  }
  

  .navbar {
    background-color: #2980b9;
    color: white;
    border-radius: 10px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 70px;
    padding-right: 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-right: 30px;
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    position: relative;
}

.nav-links li a::before {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.nav-links li a:hover::before {
    width: 100%;
    transition: width 0.3s ease-in-out;
}

/* Les suggestions s'affichent juste en dessous de l'input */
#city-suggestions {
  position: absolute;
  width: calc(100% - 57.1%);
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-height: 250px;
  overflow-y: auto;
}

#city-suggestions div {
  padding: 10px;
  cursor: pointer;
}

#city-suggestions div:hover {
  background-color: #f0f0f0;
}

h1 {
  color: #333;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.label {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

input[type="text"] {
  width: calc(100% - 20px);
  padding: 12px;
  margin: 8px 0 0 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
  color: #333;
  background-color: #f7f7f7;
}

  
  button {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #45a049;
  }
  
  .weather-container {
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .weather-info {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .weather-day {
    width: 100%;
    margin-bottom: 20px;
    padding: 20px;
    z-index: 2;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
  }
  
  .weather-day.partially-cloudy::after {
    content: "☁️"; /* Symbole de nuage */
    position: absolute;
    font-size: 2em;
    color: grey; /* Couleur du nuage */
    animation: cloud-move 2.5s ease-in-out infinite alternate;
    top: 5px;
  }

  .weather-day h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
  }
  
  .weather-card p {
    margin-bottom: 10px;
  }
  
  .weather-day hr {
    margin: 15px auto;
    border: none;
    border-top: 1px solid #ddd;
    width: 50%;
  }

  @keyframes cloud-move {
    0% {
      transform: translateX(-100px);
    }
    100% {
      transform: translateX(100px);
    }
  }
  
  