body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.meteo-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 60px 20px;
  background: linear-gradient(160deg, #6db3f2, #1e69de);
}

.meteo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  padding: 40px;
  color: white;
  text-align: center;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ville {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.current-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.big-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
}

.temperature {
  font-size: 3rem;
  font-weight: bold;
}

.titre-prevision {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.previsions-container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.day-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  width: calc(50% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 45%;
}

.jour {
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: capitalize;
  font-size: 1rem;
}

.icone-petite {
  width: 50px;
  height: 50px;
  margin-bottom: 6px;
}

.temp-range {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .day-card {
    width: 22%;
  }

  .icone-petite {
    width: 60px;
    height: 60px;
  }

  .jour {
    font-size: 1.1rem;
  }

  .temp-range {
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .meteo-card {
    padding: 60px;
  }

  .big-icon {
    width: 140px;
    height: 140px;
  }

  .temperature {
    font-size: 4rem;
  }

  .titre-prevision {
    font-size: 1.7rem;
  }

  .day-card {
    padding: 20px;
  }
}

.radar-container {
  margin: 40px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.radar-frame {
  border: none;
  width: 100%;
  height: 400px;
  border-radius: 20px;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#radar-map {
  height: 400px;
  width: 100%;
  border-radius: 20px;
  margin: 40px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.location-pin {
  font-size: 24px;
  color: #ff3b30; /* Rouge iOS */
  text-shadow: 1px 1px 2px #fff;
}
.sun-uv-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  margin: 2rem auto;
  max-width: 700px;
  backdrop-filter: blur(10px);
  color: white;
}

.sun-uv-container > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sun-uv-container img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}
.air-quality-block {
  margin-top: 20px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial;
}

.air-quality-block .label {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.bar-wrapper {
  position: relative;
  height: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(to right, 
    #00c6ff, /* Bleu – AQI 0 */
    #00ff84, /* Vert – AQI 50 */
    #ffff00, /* Jaune – AQI 100 */
    #ffa500, /* Orange – AQI 150 */
    #ff0000, /* Rouge – AQI 200 */
    #8f3f97  /* Violet – AQI 300+ */
  );
}

.color-bar {
  width: 100%;
  height: 100%;
}

#aqi-indicator {
  position: absolute;
  top: -5px;
  width: 14px;
  height: 22px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid black;
  transition: left 0.3s ease;
}

.previsions-horaires {
  margin-top: 15px;
}

.horaires-container {
  display: flex;
  flex-wrap: nowrap; /* Important pour forcer l’horizontal */
  overflow-x: auto;
  padding: 10px 0;
  gap: 10px;
  scroll-snap-type: x mandatory;
}

.horaires-container::-webkit-scrollbar {
  height: 6px;
}

.horaires-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.hour-card {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  min-width: 70px;
  color: #fff;
  scroll-snap-align: start;
}

.hour-card .icone-petite {
  width: 36px;
  height: 36px;
  margin: 5px 0;
}

.heure, .temp {
  font-size: 14px;
}

/* Texte final centré en bas */
.footer-note {
  text-align: center;
  font-size: 0.5rem;
  color: #eee;
  padding: 1rem 0 0.5rem;
  font-style: italic;
}

