.current-weather-block {
    background: rgba(146, 145, 145, 0.8);
    color:#0a0000;
    padding: 25px;
    border-radius: 3px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: max-content;

    display: flex;
    align-items: center;
    justify-content: center;
}

.prevision-weather-block {
    background: rgba(146, 145, 145, 0.8);
    color:#0a0000;
    padding: 25px;
    border-radius: 3px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: max-content;
}

.current-weather-block img {
  width: 70px;
  margin-right: 10px;
}

#temperature {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

#description {
  text-transform: capitalize;
  margin: 5px 0;
}

#humidite, #vent, #rafale-vent {
  margin: 5px 0;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.forecast-day {
  background: #d1cfcf;
  border-radius: 3px;
  padding: 10px;
  font-size: 0.9rem;
}

.forecast-day img {
  width: 45px;
}

.forecast-day p {
  margin: 4px 0;
}

#uv-index {
  font-weight: 500;
  margin-top: 5px;
}

.uv-low { color: #2ecc71; }      /* vert */
.uv-moderate { color: #f1c40f; } /* jaune */
.uv-high { color: #e67e22; }     /* orange */
.uv-very-high { color: #e74c3c; }/* rouge */
.uv-extreme { color: #8e44ad; }  /* violet */

#uv-bar-container {
  background: #eee;
  height: 10px;
  width: 100%;
  border-radius: 5px;
  margin-top: 5px;
  overflow: hidden;
}

#uv-bar {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  transition: width 0.8s ease-in-out, background 0.8s ease-in-out;
}