.mcp-wrapper {
    font-family: inherit;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 22px 24px;
    max-width: 100%;
    transition: box-shadow 0.25s ease;
}

.mcp-wrapper * {
    box-sizing: border-box;
}

/* ================= THÈMES ================= */
.mcp-theme-light {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

.mcp-theme-institutional {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px -6px rgba(30, 58, 138, 0.35);
}

.mcp-theme-dark {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #1e293b;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.3);
}

/* Thème Verre dépoli : idéal sur un Footer déjà coloré ou sombre */
.mcp-theme-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Badge EN DIRECT */
.mcp-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    margin-bottom: 5px;
}

.mcp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-block;
}

.mcp-city-title {
    margin: 0 !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

/* ================= MODE HORIZONTAL (FOOTER) ================= */
.mcp-layout-horizontal {
    padding: 16px 22px;
    width: 100%;
}

.mcp-h-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.mcp-h-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.mcp-h-current {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcp-h-icon svg {
    width: 52px;
    height: 52px;
    display: block;
}

.mcp-h-temp-wrap {
    display: flex;
    flex-direction: column;
}

.mcp-h-temp {
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.mcp-h-desc {
    font-size: 0.85rem;
    opacity: 0.88;
    font-weight: 500;
}

/* Zone centrale Footer */
.mcp-h-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.84rem;
}

.mcp-h-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mcp-h-sun {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    opacity: 0.88;
}

/* Colonnes des jours à droite dans le Footer */
.mcp-h-forecast {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    gap: 8px;
    flex: 1;
    max-width: 460px;
}

.mcp-h-day-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 6px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.1);
    text-align: center;
}

.mcp-theme-institutional .mcp-h-day-col,
.mcp-theme-glass .mcp-h-day-col {
    background: rgba(255, 255, 255, 0.09);
}

.mcp-h-day-name {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.mcp-h-day-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    margin: 2px auto;
}

.mcp-h-day-temps {
    font-size: 0.78rem;
    margin-top: 3px;
    white-space: nowrap;
}

.mcp-t-slash {
    opacity: 0.5;
    margin: 0 1px;
}

/* ================= MODE CARTE VERTICALE ================= */
.mcp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.mcp-date {
    margin: 4px 0 0 !important;
    font-size: 0.85rem;
    opacity: 0.78;
}

.mcp-current-main {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.mcp-main-icon svg {
    width: 60px;
    height: 60px;
    display: block;
}

.mcp-temp-block {
    display: flex;
    flex-direction: column;
}

.mcp-temp-value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.mcp-temp-value small {
    font-size: 1.15rem;
    font-weight: 600;
    vertical-align: super;
}

.mcp-wmo-label {
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 4px;
}

.mcp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.mcp-metric-item {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.mcp-theme-institutional .mcp-metric-item,
.mcp-theme-glass .mcp-metric-item {
    background: rgba(255, 255, 255, 0.11);
}

.mcp-metric-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 3px;
}

.mcp-metric-val {
    font-size: 0.95rem;
    font-weight: 700;
}

.mcp-ephemeris {
    display: flex;
    justify-content: space-around;
    font-size: 0.82rem;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
}

.mcp-forecast-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mcp-forecast-day {
    display: grid;
    grid-template-columns: 1.2fr 36px 65px 1.3fr;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.mcp-forecast-day:hover {
    background: rgba(148, 163, 184, 0.1);
}

.mcp-f-day {
    font-weight: 600;
    font-size: 0.9rem;
}

.mcp-f-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.mcp-f-rain {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0284c7;
    text-align: center;
}

.mcp-theme-institutional .mcp-f-rain,
.mcp-theme-dark .mcp-f-rain,
.mcp-theme-glass .mcp-f-rain {
    color: #7dd3fc;
}

.mcp-f-temps {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.9rem;
}

.mcp-t-min {
    opacity: 0.72;
}

.mcp-t-bar {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #38bdf8, #f59e0b);
    display: inline-block;
}

.mcp-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.72rem;
    text-align: center;
    opacity: 0.68;
}

/* ================= MODE COMPACT (HEADER) ================= */
.mcp-layout-compact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    line-height: 1;
}

.mcp-compact-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.mcp-compact-city {
    font-weight: 600;
}

.mcp-compact-temp {
    font-weight: 800;
}

.mcp-compact-desc,
.mcp-compact-wind {
    opacity: 0.85;
    font-size: 0.82rem;
}

.mcp-alert {
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.88rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
    .mcp-h-inner {
        flex-wrap: wrap;
    }
    .mcp-h-center {
        border-right: none;
        padding-right: 0;
    }
    .mcp-h-forecast {
        flex-basis: 100%;
        max-width: 100%;
        padding-top: 12px;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
    }
}

@media (max-width: 640px) {
    .mcp-h-left {
        width: 100%;
        justify-content: space-between;
    }
    .mcp-h-center {
        border-left: none;
        padding-left: 0;
        width: 100%;
    }
    .mcp-h-forecast {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    .mcp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .mcp-current-main {
        text-align: left;
    }
    .mcp-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mcp-compact-desc {
        display: none;
    }
}
