/* Reset et variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FCF8EB;
    --accent-color: #D4A574;
    --text-primary: #2C2C2C;
    --text-secondary: #666666;
    --success-color: #8B9467;
    --warning-color: #C69C6D;
    --danger-color: #A67B5B;
    --background-color: #FEFEFE;
    --card-background: #FFFFFF;
    --border-color: #E8E1D3;
    --shadow: 0 2px 8px 0 rgb(0 0 0 / 0.06);
    --shadow-lg: 0 4px 16px 0 rgb(0 0 0 / 0.08);
}

/* Typographie */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

/* Layout principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: var(--primary-color);
    color: var(--text-primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Sections */
section {
    background: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}



/* Sélecteur */
.selector-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selector-container label {
    font-weight: 600;
    color: var(--text-primary);
}

.watch-dropdown {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.watch-dropdown:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgb(212 165 116 / 0.15);
}

/* Tableau */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th {
    background: var(--accent-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.comparison-table tbody tr:hover {
    background: var(--primary-color);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges de performance */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.excellent {
    background: #F0F4E8;
    color: var(--success-color);
}

.badge.good {
    background: #FAF6E9;
    color: var(--warning-color);
}

.badge.average {
    background: #F5F1E7;
    color: var(--warning-color);
}

.badge.poor {
    background: #F2EDE7;
    color: var(--danger-color);
}

.badge.reference {
    background: var(--primary-color);
    color: var(--accent-color);
}

.badge.amelioration-positive {
    background: #eafbe7;
    color: #3a7a3c;
    border: 1px solid #d0eed2;
}
.badge.amelioration-negative {
    background: #fbeaea;
    color: #b03a3a;
    border: 1px solid #eed0d0;
}

.reference {
    font-weight: 600;
    color: var(--accent-color);
}

/* Graphique */
.chart-container {
    position: relative;
    height: 400px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

/* État de chargement et vide */
.loading, .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.loading {
    font-style: italic;
}

.empty-state {
    background: var(--primary-color);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    background: transparent;
    box-shadow: none;
}

.info-banner {
    background: #f7f8fa;
    border-left: 5px solid #c6a06d;
    border-radius: 8px;
    margin: 24px 0 32px 0;
    padding: 18px 28px;
    color: #333;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(198, 156, 109, 0.06);
}
.info-banner ul {
    margin: 8px 0 0 0;
    padding-left: 22px;
}
.info-banner li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 20px;
        margin-bottom: 20px;
    }
    

    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
    
    .chart-container {
        height: 300px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    

    
    .chart-container {
        height: 250px;
        padding: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utilities */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-success {
    color: var(--success-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-danger {
    color: var(--danger-color);
} 