/* ---------------------------------------------------------------------------
 * Meteo.css — Styles du widget météo (V4.0)
 * --------------------------------------------------------------------------- */

.meteo {
    background: linear-gradient(135deg, #e8f4ea 0%, #f7f4ec 100%);
    border: 1px solid #d4e4d8;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
    font-family: system-ui, -apple-system, sans-serif;
    color: #2a2a2a;
    max-width: 640px;
}

.meteo--erreur {
    background: #f4f4f4;
    border-color: #ddd;
    text-align: center;
    padding: 0.75rem;
}

.meteo__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.meteo__titre {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2f6b3a;
}

.meteo__lieu {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
    margin-left: 0.35rem;
}

.meteo__geoloc {
    background: transparent;
    border: 1px solid #c8d8cc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}

.meteo__geoloc:hover:not(:disabled) {
    background: #e0efe4;
    border-color: #2f6b3a;
}

.meteo__geoloc:disabled {
    opacity: 0.5;
    cursor: wait;
}

.meteo__actuel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.meteo__icon {
    font-size: 2.5rem;
    line-height: 1;
}

.meteo__main {
    flex: 1;
}

.meteo__temp {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2f6b3a;
    line-height: 1.1;
}

.meteo__desc {
    font-size: 0.9rem;
    color: #555;
}

.meteo__details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #555;
    padding: 0.5rem 0;
    border-top: 1px solid #d4e4d8;
    border-bottom: 1px solid #d4e4d8;
    margin-bottom: 0.75rem;
}

.meteo__previsions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.meteo__jour {
    text-align: center;
    padding: 0.35rem 0.15rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
}

.meteo__jour-nom {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.02em;
}

.meteo__jour-icon {
    font-size: 1.35rem;
    margin: 0.2rem 0;
    line-height: 1;
}

.meteo__jour-temp {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2a2a2a;
}

.meteo__jour-temp small {
    color: #888;
    font-weight: 400;
    margin-left: 0.15rem;
}

.meteo__footer {
    text-align: right;
    font-size: 0.75rem;
    color: #999;
}

.meteo__footer a {
    color: #2f6b3a;
    text-decoration: none;
}

.meteo__footer a:hover {
    text-decoration: underline;
}

.meteo__body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.meteo__text {
    font-style: italic;
}

/* --- Mobile --- */
@media (max-width: 520px) {
    .meteo {
        padding: 0.85rem 1rem;
    }
    .meteo__temp {
        font-size: 1.5rem;
    }
    .meteo__icon {
        font-size: 2.1rem;
    }
    .meteo__previsions {
        gap: 0.25rem;
    }
    .meteo__jour {
        padding: 0.25rem 0.1rem;
    }
    .meteo__jour-nom {
        font-size: 0.7rem;
    }
    .meteo__jour-icon {
        font-size: 1.15rem;
    }
    .meteo__jour-temp {
        font-size: 0.75rem;
    }
}