body {
  margin: 0;
  overflow: hidden;
  background-color: #000005;
  font-family: 'Segoe UI', sans-serif;
}

#zone-recherche {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 240px;
  z-index: 20;
}

#recherche {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #a855f7;
  border-radius: 10px;
  background: rgba(20, 8, 40, 0.75);
  backdrop-filter: blur(8px);
  color: #f3e8ff;
  font-size: 14px;
  outline: none;
}

#recherche::placeholder {
  color: rgba(216, 180, 254, 0.5);
}

#recherche:focus {
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
}

#suggestions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#suggestions button {
  padding: 8px 14px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  background: rgba(20, 8, 40, 0.85);
  color: #e9d5ff;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}

#suggestions button:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #f0abfc;
}

#retour-monde {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 18px;
  border: 1px solid #a855f7;
  border-radius: 10px;
  background: rgba(20, 8, 40, 0.75);
  backdrop-filter: blur(8px);
  color: #e9d5ff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

#retour-monde:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #f0abfc;
}

#retour-monde.cache {
  display: none;
}

#panneau-meteo {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 260px;
  padding: 20px;
  border: 1px solid #a855f7;
  border-radius: 12px;
  background: rgba(20, 8, 40, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  color: #f3e8ff;
  z-index: 10;
}

#panneau-meteo.cache {
  display: none;
}

#fermer-meteo {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px;
  border: none;
  background: none;
  color: #d8b4fe;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}

#fermer-meteo:hover {
  color: #f0abfc;
  text-shadow: 0 0 8px rgba(240, 171, 252, 0.8);
}

#panneau-meteo h2 {
  margin: 0;
  color: #f0abfc;
}

.lieu {
  margin: 2px 0 10px;
  opacity: 0.7;
  font-size: 13px;
}

.temperature {
  font-size: 44px;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(240, 171, 252, 0.6);
}

.description {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: capitalize;
}

.description img {
  width: 50px;
}

#tableau-chaleur {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 240px;
  padding: 16px 20px;
  border: 1px solid #a855f7;
  border-radius: 12px;
  background: rgba(20, 8, 40, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  color: #f3e8ff;
}

#tableau-chaleur.cache,
#progression-chaleur.cache {
  display: none;
}

#tableau-chaleur h3 {
  margin: 0 0 10px;
  color: #f0abfc;
  font-size: 15px;
}

#progression-chaleur {
  margin: 0 0 8px;
  font-size: 12px;
  opacity: 0.6;
}

#liste-chaleur {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#liste-chaleur button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  background: rgba(20, 8, 40, 0.85);
  color: #e9d5ff;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}

#liste-chaleur button:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #f0abfc;
}

#liste-chaleur .temp-record {
  color: #fda4af;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

#choix-langue {
  position: fixed;
  top: 20px;
  left: 274px;
  display: flex;
  gap: 4px;
}

#choix-langue button {
  padding: 10px 12px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 10px;
  background: rgba(20, 8, 40, 0.75);
  backdrop-filter: blur(8px);
  color: #e9d5ff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

#choix-langue button:hover {
  border-color: #f0abfc;
}

#choix-langue button.actif {
  background: rgba(168, 85, 247, 0.35);
  border-color: #a855f7;
  color: #f3e8ff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

@media (max-width: 640px) {
  #zone-recherche {
    width: calc(100vw - 132px);
  }

  #choix-langue {
    left: auto;
    right: 20px;
  }

  #panneau-meteo {
    top: 72px;
    left: 20px;
    right: auto;
    width: calc(50vw - 26px);
    box-sizing: border-box;
    padding: 12px 14px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }

  .temperature {
    font-size: 32px;
  }

  #tableau-chaleur {
    top: 72px;
    bottom: auto;
    right: 20px;
    width: calc(50vw - 26px);
    box-sizing: border-box;
    padding: 12px 14px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }

  #tableau-chaleur h3 {
    font-size: 13px;
  }

  #liste-chaleur button {
    padding: 5px 8px;
    font-size: 11px;
  }
}
