/* 
 * DATA STORY CSS
 * Styles spécifiques pour le format Data Journalisme
 */

/* Hero Header Immersif */
.ds-hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
    color: white;
}

.ds-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 20, 40, 0.95) 0%, rgba(10, 20, 40, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.ds-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    width: 100%;
}

.ds-badge {
    display: inline-block;
    background: var(--em-red, #cc1a1a);
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(204, 26, 26, 0.3);
}

.ds-title {
    font-family: var(--em-font-display, 'Outfit', sans-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* modern.css force la couleur sombre de tous les titres (h1 à h6, !important) :
   sur le bandeau photo assombri, le titre doit rester blanc. */
.ds-hero .ds-title,
[data-theme="dark"] .ds-hero .ds-title {
    color: #ffffff !important;
}

.ds-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* Stat Cards */
.ds-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.ds-stat-card {
    background: var(--em-surface, #ffffff);
    border: 1px solid var(--em-border, #e5e7eb);
    border-radius: var(--em-radius-md, 8px);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ds-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.ds-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--em-text-muted, #6b7280);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ds-stat-value {
    font-family: var(--em-font-display, 'Outfit', sans-serif);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--em-blue-dark, #0a1f3a);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.ds-stat-unit {
    font-size: 14px;
    color: var(--em-text-secondary, #4b5563);
    font-weight: 500;
}

.ds-stat-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.75rem;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--em-surface-2, #f8fafc);
}

.ds-stat-delta.trend-up { color: var(--em-red, #cc1a1a); } /* En RDC/Éco, une hausse (ex: inflation) peut être rouge, on reste neutre mais visible */
.ds-stat-delta.trend-down { color: var(--em-blue, #0e8cc6); }
.ds-stat-delta.trend-neutral { color: var(--em-text-muted, #6b7280); }

/* Chart Container */
.ds-chart-container {
    background: var(--em-surface, #ffffff);
    border: 1px solid var(--em-border, #e5e7eb);
    border-radius: var(--em-radius-lg, 12px);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.ds-chart-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--em-border, #e5e7eb);
}

.ds-chart-title {
    font-family: var(--em-font-display, 'Outfit', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--em-text-primary, #111827);
    margin: 0;
}

/* Article Content */
.ds-content {
    font-family: var(--em-font-body, 'Inter', sans-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--em-text-secondary, #4b5563);
    margin-bottom: 3rem;
}

.ds-content p {
    margin-bottom: 1.5rem;
}

.ds-content h2, .ds-content h3 {
    font-family: var(--em-font-display, 'Outfit', sans-serif);
    color: var(--em-text-primary, #111827);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Sources Box */
.ds-sources {
    background: var(--em-surface-2, #f8fafc);
    border-left: 4px solid var(--em-blue, #0e8cc6);
    padding: 1.5rem;
    border-radius: 0 var(--em-radius-md, 8px) var(--em-radius-md, 8px) 0;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.ds-sources strong {
    display: block;
    color: var(--em-text-primary, #111827);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    margin-bottom: 0.5rem;
}

.ds-sources p {
    margin: 0;
    color: var(--em-text-muted, #6b7280);
}
