/* ─────────────────────────────────────────────────────────
   CC Météo Widget — Style
   ───────────────────────────────────────────────────────── */

.cc-meteo-card {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    color: #1a1a2e;
}

.cc-meteo-card.has-shadow {
    box-shadow: 0 4px 24px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
}

.cc-meteo-card.has-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.07);
}

/* ── Loading ── */
.cc-meteo-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    opacity: .6;
}

.cc-meteo-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cc-spin .7s linear infinite;
}

@keyframes cc-spin { to { transform: rotate(360deg); } }

/* ── Header : ville + condition ── */
.cc-meteo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.cc-meteo-city-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: .65;
    margin-bottom: 2px;
}

.cc-meteo-city-row svg {
    flex-shrink: 0;
}

.cc-meteo-city-name {
    font-weight: 500;
}

.cc-meteo-temp {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: #4a9eff;
    letter-spacing: -2px;
}

.cc-meteo-temp sup {
    font-size: 24px;
    font-weight: 400;
    opacity: .7;
    vertical-align: super;
    letter-spacing: 0;
}

.cc-meteo-icon-label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cc-meteo-icon {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.1));
}

.cc-meteo-condition {
    font-size: 13px;
    opacity: .7;
    text-align: right;
    max-width: 110px;
    line-height: 1.3;
}

/* ── Apparent temp ── */
.cc-meteo-apparent {
    font-size: 12px;
    opacity: .55;
    margin-top: 2px;
}

/* ── Séparateur ── */
.cc-meteo-divider {
    height: 1px;
    background: currentColor;
    opacity: .08;
    margin: 14px 0;
}

/* ── Détails (vent, humidité, pluie) ── */
.cc-meteo-details {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cc-meteo-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: .75;
    background: rgba(0,0,0,.04);
    border-radius: 20px;
    padding: 4px 10px;
}

.cc-meteo-detail-item .detail-icon {
    font-size: 13px;
}

/* ── Prévisions 5 jours ── */
.cc-meteo-forecast {
    margin-top: 4px;
}

.cc-meteo-forecast-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .45;
    margin-bottom: 10px;
    font-weight: 600;
}

.cc-meteo-forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.cc-meteo-forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 10px;
    border: 1px solid rgba(74,158,255,.18);
    font-size: 11px;
    text-align: center;
}

.cc-meteo-forecast-item .f-day {
    font-weight: 600;
    opacity: .6;
    font-size: 10px;
    text-transform: uppercase;
}

.cc-meteo-forecast-item .f-icon {
    font-size: 22px;
    line-height: 1;
}

.cc-meteo-forecast-item .f-max {
    font-weight: 700;
    font-size: 13px;
}

.cc-meteo-forecast-item .f-min {
    opacity: .5;
    font-size: 11px;
}

/* ── Erreur ── */
.cc-meteo-error {
    color: #e74c3c;
    font-size: 13px;
    padding: 8px 0;
}

/* ── Responsive ── */
@media (max-width: 360px) {
    .cc-meteo-temp { font-size: 40px; }
    .cc-meteo-icon { font-size: 36px; }
    .cc-meteo-forecast-grid { grid-template-columns: repeat(5,1fr); gap: 3px; }
}
