/* style.css */
:root {
    --dark-blue: #1F3864;
    --white: #FFFFFF;
    --light-gray: #F4F4F4;
    --medium-gray: #E0E0E0;
    --accent-blue: #2A4A7A;
    --text-dark: #333;
}

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

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

h1, h2, h3, h4, .nav-logo, .hero-text .rapport-titre {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Navigation fixe */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.8rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero / En-tête */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #102a4a 100%);
    color: white;
    padding: 6rem 2rem 4rem;
    margin-top: 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-placeholder {
    background-color: rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    min-width: 140px;
}

.logo-block {
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
}

.hero-text h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.rapport-titre {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

.date {
    font-style: italic;
    opacity: 0.8;
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
    border-left: 5px solid var(--dark-blue);
    padding-left: 1rem;
}

.bg-light {
    background-color: var(--light-gray);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cartes objectifs */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border-top: 4px solid var(--dark-blue);
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

/* Graphiques */
.charts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.chart-box {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 280px;
}

.chart-caption {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #555;
}

.stats-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-table th, .stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--medium-gray);
    text-align: center;
}

.stats-table th {
    background-color: var(--dark-blue);
    color: white;
    font-weight: 600;
}

.note-stat {
    font-size: 0.8rem;
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

/* Refondations */
.refondations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}

.ref-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.ref-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-blue);
}

.badge {
    display: inline-block;
    background: var(--dark-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-top: 0.8rem;
}

.info-note {
    background: #e6f0fa;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
}

/* Recommandations */
.recommendations-list {
    list-style: none;
    background: white;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.recommendations-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.recommendations-list li::before {
    content: "✓";
    color: var(--dark-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Conclusion */
.conclusion-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 2rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    text-align: center;
}

.logo-placeholder-footer {
    background-color: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-info {
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .fixed-nav {
        padding: 0.5rem 1rem;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .hero {
        padding: 5rem 1rem 3rem;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    h3 {
        font-size: 1.6rem;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-info {
        text-align: center;
    }
    .chart-box {
        min-width: 100%;
    }
}