/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Arrière-plan du body */
body {
    background: linear-gradient(to bottom, #56ccf2, #2f80ed); /* Dégradé bleu */
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: background 0.5s ease;
}

/* Conteneur principal */
.container {
    width: 100%;
    max-width: 700px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

/* Formulaire météo */
.weather-card {
    margin-bottom: 30px;
   
}

input[type="text"] {
    padding: 12px;
    width: 80%;
    font-size: 1.1em;
    margin-right: 10px;
    border-radius: 15px;
    border: 2px solid #56ccf2;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #2f80ed;
}

button {
    padding: 12px 25px;
    font-size: 1.1em;
    background-color: #56ccf2;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #2f80ed;
    transform: scale(1.05);
}

/* Informations météo */
.weather-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    font-size: 1.2em;
    margin-top: 20px;
    display: none;
    text-align: left;
    line-height: 1.6;
}

/* Icône météo */
.weather-info .icon {
    font-size: 5em;
    margin: 20px 0;
}

/* Affichage des titres */
.weather-info h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ffd700; /* Couleur dorée pour le titre */
}

/* Paragraphe météo */
.weather-info p {
    margin: 10px 0;
    font-size: 1.3em;
    color: #fff;
}

.weather-info p strong {
    color: #ffd700; /* Couleur dorée pour les labels */
}

/* Ajout d'une ombre portée */
.weather-card, .weather-info {
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2);
}

/* Animation pour les entrées */
.container {
    animation: slideIn 1s ease-out;
}

/* Animation pour l'apparition des informations météo */
.weather-info {
    animation: fadeIn 1.5s ease;
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation pour les informations météo */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
