.ld-weather {
  background: linear-gradient(
    135deg,
    #eaf3fc 0%,
    #dcebf8 100%
  );
  border: 1px solid #d5e5f2;
  border-radius: 16px;
  padding: 18px 22px;
  color: #183a56;
}

/* En-tête */

.ld-weather-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ld-weather-city {
  font-size: 17px;
  font-weight: 700;
}

.ld-weather-heading time {
  font-size: 12px;
  color: #526f87;
}

/* Météo actuelle */

.ld-weather-current {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 25px;
}

.ld-weather-temperature {
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
}

.ld-weather-condition {
  font-size: 16px;
  font-weight: 600;
  color: #315d81;
  margin-top: 5px;
  margin-bottom: 4px;
}

.ld-weather-minmax {
  font-size: 12px;
  color: #526f87;
}

.ld-weather-current-icon {
  width: 85px;
  flex-shrink: 0;
}

.ld-weather-icon {
  display: block;
  width: 100%;
  height: auto;
}

/* Humidité et vent */

.ld-weather-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.ld-weather-detail {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ld-weather-detail-icon {
  font-size: 18px;
}

.ld-weather-detail small {
  display: block;
  font-size: 11px;
  color: #526f87;
}

.ld-weather-detail strong {
  font-size: 13px;
  font-weight: 600;
}

.ld-weather-divider {
  height: 1px;
  background-color: #c9dded;
  margin: 14px 0 12px;
}

/* Prévisions */

.ld-weather-forecast-title {
  font-size: 13px;
  font-weight: 600;
  color: #315d81;
  margin-bottom: 10px;
}

.ld-weather-forecasts {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.ld-weather-day {
  background-color: rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.ld-weather-day:first-child {
  background-color: #ffffff;
}

.ld-weather-day-name {
  font-size: 12px;
  color: #315d81;
}

.ld-weather-day .ld-weather-icon {
  width: 32px;
  height: 32px;
}

.ld-weather-day-condition {
  font-size: 10px;
  line-height: 1.3;
  color: #526f87;
}

.ld-weather-max {
  font-size: 16px;
  font-weight: 700;
}

.ld-weather-min {
  font-size: 12px;
  color: #526f87;
}

/* Source */

.ld-weather-source {
  margin-top: 10px;
  font-size: 10px;
  color: #526f87;
}

.ld-weather-source a {
  color: #315d81;
  text-decoration: underline;
}

/* Version ordinateur */

@media (min-width: 992px) {

  .ld-weather {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 25px;
    row-gap: 8px;
  }

  .ld-weather-heading {
    grid-column: 1 / -1;
  }

  .ld-weather-current {
    grid-column: 1;
    grid-row: 2 / 4;
    gap: 12px;
  }

  .ld-weather-current-icon {
    width: 65px;
  }

  .ld-weather-details {
    grid-column: 1;
    grid-row: 4;
    margin-top: 0;
    gap: 12px;
  }

  .ld-weather-divider {
    display: none;
  }

  .ld-weather-forecast-title {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
  }

  .ld-weather-forecasts {
    grid-column: 2;
    grid-row: 3 / 5;
  }

  .ld-weather-source {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}

/* Version mobile */

@media (max-width: 768px) {

  .ld-weather {
    padding: 14px;
    border-radius: 12px;
  }

  .ld-weather-current {
    justify-content: space-between;
    gap: 10px;
  }

  .ld-weather-current-icon {
    width: 75px;
  }

  .ld-weather-condition {
    font-size: 14px;
  }

  .ld-weather-details {
    gap: 15px;
  }

  .ld-weather-forecasts {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    gap: 6px;
  }

  .ld-weather-day {
    flex: 0 0 70px;
  }
}
