/* Reset et base - Style Infoclimat */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Infoclimat Style */
.header-infoclimat {
    background: #1e88e5;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 32px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.nav-infoclimat {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 13px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.btn-infoclimat {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-infoclimat:hover {
    background: rgba(255,255,255,0.2);
}

/* Breadcrumb Infoclimat */
.breadcrumb-infoclimat {
    background: #e3f2fd;
    border-bottom: 1px solid #bbdefb;
    padding: 8px 0;
    font-size: 12px;
}

.breadcrumb-infoclimat a {
    color: #1565c0;
    text-decoration: none;
}

.breadcrumb-infoclimat a:hover {
    text-decoration: underline;
}

/* Title Section */
.title-section {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.title-section h1 {
    font-size: 24px;
    color: #1565c0;
    margin-bottom: 5px;
    font-weight: normal;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

/* Main Container */
.main-container {
    background: #f5f5f5;
    padding: 20px 0;
}

/* Weather Summary Box - Style Infoclimat */
.weather-summary-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.summary-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h2 {
    font-size: 16px;
    color: #1565c0;
    font-weight: bold;
}

.update-time {
    font-size: 12px;
    color: #666;
}

.conditions-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.condition-item {
    text-align: center;
}

.condition-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: bold;
}

.condition-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin-bottom: 8px;
}

.value-large {
    font-size: 36px;
    font-weight: bold;
    color: #1565c0;
}

.unit {
    font-size: 18px;
    color: #666;
}

.condition-detail {
    font-size: 12px;
    color: #666;
}

/* Charts Section - Style Infoclimat */
.charts-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: #1565c0;
    border-bottom-color: #1565c0;
    background: rgba(21, 101, 192, 0.05);
}

.chart-container {
    display: none;
    padding: 20px;
}

.chart-container.active {
    display: block;
}

.chart-header {
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 16px;
    color: #1565c0;
    margin-bottom: 10px;
    font-weight: bold;
}

.chart-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 3px;
    border-radius: 1px;
}

.temp-color {
    background: #1e88e5;
}

.feels-color {
    background: #ff9800;
}

.wind-color {
    background: #4caf50;
}

.gust-color {
    background: #f44336;
}

.chart-wrapper {
    height: 300px;
    position: relative;
    margin-top: 15px;
}

/* Info Box - Style Infoclimat */
.info-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-box h3 {
    font-size: 16px;
    color: #1565c0;
    margin-bottom: 15px;
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.info-item {
    font-size: 13px;
    color: #333;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

/* Footer Infoclimat Style */
.footer-infoclimat {
    background: #1565c0;
    color: white;
    margin-top: 40px;
    padding: 30px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #bbdefb;
}

.partners-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.partners-grid img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.partners-grid img:hover {
    opacity: 1;
}

.footer-section p {
    font-size: 12px;
    line-height: 1.5;
    color: #e3f2fd;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    text-align: center;
}

.footer-bottom p {
    font-size: 11px;
    color: #bbdefb;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-infoclimat {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-legend {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .title-section h1 {
        font-size: 20px;
    }
    
    .value-large {
        font-size: 28px;
    }
    
    .conditions-grid {
        padding: 15px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
}

/* Animation pour les valeurs qui se mettent à jour */
.value-large {
    transition: all 0.3s ease;
}

.value-large.updating {
    transform: scale(1.1);
    color: #ff9800;
}

/* Style pour les liens actifs */
a {
    color: #1565c0;
}

a:hover {
    color: #0d47a1;
}

/* Tables style (si nécessaire) */
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: left;
}

th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Boutons style Infoclimat */
.btn-primary {
    background: #1e88e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #eeeeee;
    border-color: #bdbdbd;
}

