/* ===========================
   CONTENEUR PRINCIPAL
=========================== */
.meteo {
    font-family: var(--font-article);
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    max-width: 820px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    color: #2a2a2a;
    line-height: 1.6;
}

/* ===========================
   HEADER
=========================== */
.meteo-header {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #0d3a63;
    padding-bottom: 1rem;
}

.meteo-header-main {
    display: flex;
    flex-direction: column;
}

/* TITRE */
.meteo-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1a1a1a;
    margin: 0;
}
.meteo-headline {
    margin-top: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0d3a63;
    line-height: 1.4;
}

/* SOUS-TITRE */
.meteo-subtitle {
    font-size: 1rem;
    color: #555;
    margin-top: 0.4rem;
}

/* META (DATE + LIEN EN DESSOUS) */
.meteo-header-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.meteo-meta {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.meteo-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-light);
    text-decoration: none;
}

.meteo-link:hover {
    text-decoration: underline;
}

/* ===========================
   GRID IMAGES
=========================== */
.meteo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* CARTES */

.meteo-card {
    position: relative;
    background: linear-gradient(
        135deg,
        #eef3f9 0%,
        #dfe7f1 40%,
        #f9fbfe 100%
    );
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

    padding-bottom: 18px; /* ✅ espace interne en bas */
}

/* IMAGE */
.meteo-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* ✅ important pour PNG transparents */
    padding: 0.5rem; /* ✅ petit espace pour laisser respirer le fond */
    transition: transform 0.3s ease;
}

.meteo-card:hover img {
    transform: scale(1.02);
}


.meteo-card:hover img {
    transform: scale(1.02);
}

/* DATE OVERLAY */
.meteo-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.45rem;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
}

/* ===========================
   TEXTE
=========================== */
.meteo-text {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
}

.meteo-text p {
    margin-bottom: 1rem;
}

/* ===========================
   AUCUNE ALERTE
=========================== */
.meteo-empty {
    text-align: center;
    padding: 2rem 1rem;
    font-weight: 700;
    color: #0d3a63;
    background: #fff;
    border-radius: 8px;
}

/* ===========================
   RESPONSIVE
=========================== */

/* Desktop images 2 colonnes */
@media (min-width: 768px) {
    .meteo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop header aligné */
@media (min-width: 768px) {
    .meteo-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .meteo-header-main {
        max-width: 70%;
    }

    .meteo-header-meta {
        align-items: flex-end;
    }
}

/* Mobile ajustements */
@media (max-width: 600px) {
    .meteo {
        margin: 1.5rem auto;
        padding: 1rem;
    }

    .meteo-text {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .meteo-title {
        font-size: 1.5rem;
    }

    .meteo-subtitle {
        font-size: 0.95rem;
    }
}