/* Variables & reset */
:root {
    --primary: #1a2a4f;
    --primary-dark: #0e1a30;
    --secondary: #3a6ea5;
    --accent: #e67e22;
    --light-bg: #f4f7fc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-header i {
    margin-right: 10px;
    color: var(--accent);
}

.toc-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.toc-nav li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.toc-nav li a:hover, .toc-nav li a.active {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--accent);
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.btn-pdf {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
}

.btn-pdf:hover {
    background: #d35400;
}

/* Main content */
.main-content {
    margin-left: 280px;
    padding: 2rem 3rem;
}

/* Sections */
.section, .hero-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.stat-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 40px;
    padding: 0.4rem 1rem;
    font-weight: 500;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 0.5rem;
}

/* Cartes stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Tableaux */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th, .data-table td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.data-table th {
    background: var(--primary);
    color: white;
}

/* Graphiques */
.chart-container {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
}

/* Listes & badges */
.insight-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.insight-list li {
    margin: 0.5rem 0;
}

.inline-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-right: 2rem;
}

.big-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

.payment-badge {
    background: var(--primary);
    color: white;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.two-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.two-columns .col {
    flex: 1;
    min-width: 200px;
}

.impact-card {
    background: #fef2e8;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.impact-card span {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.rec-list {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.rec-list li {
    margin: 0.8rem 0;
}

.footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}