* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #aee2ff, #ffffff);
  transition: background 0.5s ease;
  padding: 20px;
  margin: auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  text-align: center;
  color: #4a6fa5;
  margin-bottom: 20px;
}

form {
   background: rgba(255, 255, 255, 0.31);         /* fond semi-transparent */
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);    /* ombre douce */
  backdrop-filter: blur(12px);                  /* flou derrière */
  -webkit-backdrop-filter: blur(12px);          /* support Safari */
  border: 1px solid rgba(255, 255, 255, 0.2);    /* contour discret */
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  margin: 1rem auto;
  transition: all 0.3s ease-in-out;
  max-width: 900px;
  min-width: 60%;
}

form.shrunk {
  max-height: 100px;
  overflow: hidden;
  padding: 10px;
  font-size: 0.9em;
  opacity: 0.5;
}

label {
  display: block;
  margin-top: 15px;
}

input, select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row > div {
  flex: 1;
  min-width: 180px;
}

button {
  background: #4a6fa5;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  margin-top: 20px;
  cursor: pointer;
}

button:hover {
  background: #3a5c87;
}

.resultat-meteo {
  margin-top: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

form.shrunk {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  transition: all 0.6s ease;
}

.resultat-meteo > div {
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 1em;
  margin-bottom: 1.5em;
  background: #f9f9f9;
}

.bloc-meteo-actuelle {
  border-left: 5px solid #4caf50;
}

.bloc-previsions {
  border-left: 5px solid #2196f3;
}

.bloc-rappels {
  border-left: 5px solid #f44336;
}

.resultat-meteo h2,
.resultat-meteo h3,
.resultat-meteo h4 {
  margin-bottom: 0.5em;
}

.resultat-meteo ul {
  list-style: none;
  padding-left: 0;
}

.resultat-meteo li {
  margin-bottom: 0.5em;
}


body {
  margin: 0;
  font-family: 'SF Pro Display', 'Poppins', sans-serif;
  transition: background 0.5s ease;
}

/* 🌩 Thunderstorm (2xx) */
.weather-2xx {
  background: linear-gradient(to bottom, #3a3a3a, #000000);
  color: #e3e3e3;
}

/* 🌧 Drizzle (3xx) */
.weather-3xx {
  background: linear-gradient(#9baec8, #607a9e);
  color: #f5f5f5;
}

/* 🌧 Rain (5xx) */
.weather-5xx {
    position: relative;
  background: linear-gradient(to bottom, #6e7f80, #9aaeb5);
  background-size: cover;
  overflow: hidden;
}


/* ❄️ Snow (6xx) */
.weather-6xx {
  background: linear-gradient(to bottom, #f0f8ff, #e0f7fa);
  color: #000;
}

/* 🌫 Mist / Smoke / Haze (7xx) */
.weather-7xx {
  background: linear-gradient(to bottom, #cccccc, #e6e6e6);
  color: #222;
}

/* ☀️ Clear (800) */
.weather-800 {
  background: linear-gradient(to bottom, #ffe066, #a2d5f2);
  color: #000000;
}

/* ☁️ Clouds (80x) */
.weather-80x {
  background: linear-gradient(to bottom, #d0d0d0, #a3c0d8);
  color: #333;
}

#resultat {
  display: none; 
    background: rgba(255, 255, 255, 0.31);         /* fond semi-transparent */
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);    /* ombre douce */
  backdrop-filter: blur(12px);                  /* flou derrière */
  -webkit-backdrop-filter: blur(12px);          /* support Safari */
  border: 1px solid rgba(255, 255, 255, 0.2);    /* contour discret */
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  margin: 1rem auto;
  transition: all 0.3s ease-in-out;
  max-width: 900px;
  min-width: 60%;
flex-direction: column;
  
}

#petWeatherForm.hidden {
  display: none;
}

/* Animation fondue + glissée */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

#resultat {
  transform: translateY(10px);
}


#resetFormBtn.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#resetFormBtn.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animation pour les blocs dans #resultat */
.fade-in-block {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInBlock 2s cubic-bezier(.23,1.02,.57,1) forwards;
}
.fade-in-block.delay-1 { animation-delay: 0.15s; }
.fade-in-block.delay-2 { animation-delay: 0.3s; }
@keyframes fadeInBlock {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apparition générale fade+slide pour le formulaire et #resultat */
.appear-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: appearAnim 3s cubic-bezier(.23,1.02,.57,1) forwards;
}
@keyframes appearAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#resultat div{
  display: flex;  
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

hr{
  margin: 10px 0;
}

li{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

a {
  text-decoration: none;
  color: black;
}

.footer {
  text-align: center;
}

/* Emplacement pub sous le footer */
.adsense-wrapper{
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 0 24px;
}

.adsense-slot{
  max-width: 100%;
}
