/* ============================================ */
/* ÉCO-RESPONSABILITÉ - TABLEAU DE BORD        */
/* ============================================ */

.eco-dashboard-section {
    padding: 100px 0 60px;
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background 0.3s ease;
}

/* Cartes de KPI */
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.15);
    box-shadow: var(--shadow-md);
}

.kpi-card .kpi-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: var(--primary-blue);
}

.kpi-card .kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.kpi-card .kpi-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.kpi-card .kpi-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    display: inline-block;
    padding: 2px 12px;
    border-radius: 50px;
}

.kpi-trend.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.kpi-trend.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.kpi-trend.neutral {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);
}

/* Cartes de graphiques */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.chart-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.chart-card h5 i {
    color: var(--primary-blue);
    margin-right: 8px;
}

.chart-card canvas {
    max-height: 220px;
}

/* Objectifs RSE */
.goal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
}

.goal-item:last-child {
    border-bottom: none;
}

.goal-item .goal-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.goal-item .goal-bar {
    flex: 2;
    background: var(--bg-secondary);
    border-radius: 50px;
    height: 6px;
    overflow: hidden;
    position: relative;
}

.goal-item .goal-bar .goal-fill {
    height: 100%;
    border-radius: 50px;
    background: var(--gradient-main);
    transition: width 1s ease;
}

.goal-item .goal-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 44px;
    text-align: right;
}

/* Conseils */
.tip-item {
    padding: 10px 14px;
    border-left: 3px solid var(--primary-blue);
    margin-bottom: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item .tip-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.tip-item .tip-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Certifications */
.cert-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.cert-badge i {
    color: var(--primary-gold);
}

.cert-badge:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Mode clair */
body[data-theme="light"] .kpi-card,
body[data-theme="light"] .chart-card {
    background: #ffffff;
}

body[data-theme="light"] .tip-item {
    background: #f8fafc;
}

body[data-theme="light"] .cert-badge {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 768px) {
    .eco-dashboard-section {
        padding: 80px 0 40px;
    }
    .kpi-card .kpi-value {
        font-size: 1.5rem;
    }
    .chart-card canvas {
        max-height: 160px;
    }
}