/* ============================================
   PAGE MÉTÉO DÉTAILLÉE
   Version simplifiée - 2 thèmes
   ============================================ */

/* Fix header sticky sur page météo */
.header.glass {
    background: var(--bg-body);
}

[data-theme="light"] .header.glass {
    background: rgba(240, 244, 248, 0.95);
}

/* Localisation */
.meteo-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: var(--bg-card);
}

.meteo-location .material-icons {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.meteo-location-text {
    display: flex;
    flex-direction: column;
}

.meteo-city {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.meteo-region {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Météo actuelle */
.meteo-current {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    background: var(--bg-card);
}

.meteo-current-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.meteo-current-icon {
    font-size: 4rem;
}

.meteo-current-temp {
    display: flex;
    align-items: flex-start;
}

.meteo-temp-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.meteo-temp-unit {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.meteo-current-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.meteo-current-details {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meteo-detail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meteo-detail .material-icons {
    font-size: 1.1rem;
    color: var(--primary-light);
}

.meteo-detail strong {
    color: var(--text-primary);
}

/* Lever/Coucher du soleil */
.meteo-sun {
    display: flex;
    align-items: center;
    margin: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    gap: 1rem;
    background: var(--bg-card);
}

.meteo-sun-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meteo-sun-item .material-icons {
    font-size: 1.75rem;
}

.sun-rise {
    color: #f59e0b;
}

.sun-set {
    color: #6366f1;
}

.meteo-sun-info {
    display: flex;
    flex-direction: column;
}

.meteo-sun-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meteo-sun-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.meteo-sun-progress {
    flex: 1;
    padding: 0 0.5rem;
}

.meteo-sun-bar {
    position: relative;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
}

.meteo-sun-position {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    transition: left 0.5s ease;
}

/* Prévisions 7 jours */
.meteo-forecast {
    margin: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: var(--bg-card);
}

.meteo-forecast-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.meteo-forecast-title .material-icons {
    color: var(--primary-light);
}

.meteo-forecast-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meteo-forecast-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.meteo-forecast-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.meteo-forecast-item.today {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(129, 140, 248, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.forecast-day {
    flex: 1;
    min-width: 0;
}

.forecast-day-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.forecast-day-date {
    font-size: 0.75rem;
}

.forecast-day-desc {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 2px;
}

.forecast-icon {
    font-size: 1.75rem;
    margin: 0 1rem;
}

.forecast-precip {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 50px;
}

.forecast-precip .material-icons {
    font-size: 0.9rem;
    color: #60a5fa;
}

.forecast-temps {
    display: flex;
    gap: 0.5rem;
    min-width: 70px;
    justify-content: flex-end;
}

.forecast-temp-max {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.forecast-temp-min {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Détails supplémentaires */
.meteo-extra {
    margin: 1rem;
    padding: 1.25rem;
    border-radius: 20px;
    background: var(--bg-card);
}

.meteo-extra-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.meteo-extra-title .material-icons {
    color: var(--primary-light);
}

.meteo-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.meteo-extra-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    text-align: center;
}

.meteo-extra-item .material-icons {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.meteo-extra-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.meteo-extra-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Chargement */
.meteo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
}

/* Responsive */
@media (min-width: 768px) {
    .meteo-location,
    .meteo-current,
    .meteo-sun,
    .meteo-forecast,
    .meteo-extra,
    .footer {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .meteo-extra-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mode clair */
[data-theme="light"] .meteo-location,
[data-theme="light"] .meteo-current,
[data-theme="light"] .meteo-sun,
[data-theme="light"] .meteo-forecast,
[data-theme="light"] .meteo-extra {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .meteo-forecast-item {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .meteo-forecast-item:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .meteo-forecast-item.today {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

[data-theme="light"] .meteo-extra-item {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .meteo-sun-bar {
    background: rgba(0, 0, 0, 0.1);
}