/* ===== STYLES MÉTÉO SIMPLIFIÉS ET ROBUSTES ===== */

.weather-widget-simple {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(116, 185, 255, 0.3);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.weather-widget-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 70%);
    pointer-events: none;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.weather-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.weather-time {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: capitalize;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.weather-icon-large {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.weather-temp-large {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.weather-description {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    position: relative;
    z-index: 2;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.weather-detail {
    background: rgba(255,255,255,0.15);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.weather-detail i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.weather-detail span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.weather-detail strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.weather-note {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 1rem 0;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 5px;
    position: relative;
    z-index: 2;
}

.weather-actions {
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.weather-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    margin: 0 0.5rem;
}

.weather-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.weather-link.primary {
    background: rgba(255,255,255,0.9);
    color: #0984e3;
}

.weather-link.primary:hover {
    background: white;
    color: #0984e3;
}

/* Fallback styles */
.weather-fallback {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    margin: 2rem 0;
}

.weather-fallback .weather-header h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.weather-info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.weather-info-box p {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.weather-info-box i {
    color: #3498db;
    width: 20px;
    text-align: center;
}

.weather-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.weather-fallback .weather-link {
    background: #3498db;
    color: white;
    border: none;
}

.weather-fallback .weather-link:hover {
    background: #2980b9;
    color: white;
}

/* Loading state */
.weather-loading {
    background: #f8f9fa;
    color: #666;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    border: 2px dashed #ddd;
    margin: 2rem 0;
}

.weather-loading i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .weather-widget-simple,
    .weather-fallback {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .weather-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .weather-icon-large,
    .weather-temp-large {
        font-size: 2.5rem;
    }
    
    .weather-details-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .weather-links {
        flex-direction: column;
        align-items: center;
    }
    
    .weather-link {
        width: 100%;
        text-align: center;
        margin: 0.3rem 0;
    }
    
    .weather-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Animation d'entrée */
.weather-widget-simple,
.weather-fallback {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États saisonniers */
.weather-widget-simple.winter {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.weather-widget-simple.spring {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
}

.weather-widget-simple.summer {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.weather-widget-simple.autumn {
    background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    .weather-fallback {
        background: #2c3e50;
        color: #ecf0f1;
        border-color: #34495e;
    }
    
    .weather-info-box {
        background: #34495e;
        color: #ecf0f1;
    }
}