/* Météo Gérardmer - styles */

.mge-weather-widget {
    max-width: 900px;
    margin: 20px auto;
    padding: 24px;
    background: linear-gradient(135deg, #eaf4fb 0%, #dbeafe 100%);
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mge-weather-widget.mge-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
}

.mge-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
}

.mge-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    margin-bottom: 16px;
}

.mge-current-icon {
    font-size: 64px;
    line-height: 1;
}

.mge-current-details {
    text-align: left;
}

.mge-current-temp {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.mge-current-label {
    font-size: 16px;
    margin-top: 4px;
    color: #334155;
}

.mge-current-feels {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.mge-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.mge-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
}

.mge-stat-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.mge-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mge-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

.mge-forecast-title {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0 12px;
    color: #0f172a;
    text-align: center;
}

.mge-forecast {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.mge-forecast-day {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
}

.mge-forecast-date {
    font-size: 12px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 6px;
    min-height: 30px;
}

.mge-forecast-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.mge-forecast-label {
    font-size: 11px;
    color: #475569;
    min-height: 28px;
    margin-bottom: 6px;
}

.mge-forecast-temps {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mge-temp-max {
    color: #dc2626;
    margin-right: 6px;
}

.mge-temp-min {
    color: #2563eb;
}

.mge-forecast-extra {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.mge-forecast-sun {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10.5px;
    color: #64748b;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    padding-top: 4px;
}

.mge-footer {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 18px;
}

/* Responsive : mobile */
@media (max-width: 768px) {
    .mge-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .mge-forecast {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .mge-current {
        flex-direction: column;
        text-align: center;
    }
    .mge-current-details {
        text-align: center;
    }
    .mge-forecast {
        grid-template-columns: repeat(2, 1fr);
    }
}
