/* ============================================================
   WIDGET METEO / PREVISIONS
============================================================ */
#weather-widget {
  display: flex;
  flex-direction: row;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  box-sizing: border-box;
  padding: 2px 5px;
}

#weather-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 0 calc(26% - 7px);
  min-width: 210px;
  transform: translateY(11px);
}

#weather-cell h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 300;
  text-align: center;
}

.current-weather {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  row-gap: 2px;
}

#weather-icon {
  grid-column: 1;
  grid-row: 1;
  line-height: 0;
}

.temperature-info {
  display: contents;
}

#temperature {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

#description {
  grid-column: 1 / 3;
  grid-row: 2;
  display: block;
  font-size: 0.78rem;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

#forecast {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex: 1 1 0;
  min-width: 0;

  box-sizing: border-box;
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px;
  flex: 1;
}

.forecast-day .day-title {
  text-align: center;
  line-height: 2.0;
}

.forecast-day .day-icon {
  line-height: 0;
  margin: 3px 0 2px;
}

.forecast-day .day-description {
  font-size: 0.60rem;
  line-height: 1.05;
  text-align: center;

  margin: 3px 0 8px;
  opacity: 0.9;
  max-width: 100%;

  /* réserve toujours la hauteur de 2 lignes */
  min-height: calc(0.55rem * 1.05 * 2);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forecast-day .day-temp {
  text-align: center;
  line-height: 1.2;
  margin-top: auto;
}