*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bleu: #1d3d6b;
    --bleu-clair: #2a5298;
    --or: #c9a84c;
    --ivoire: #f5f3ee;
    --sauge: #2d7d6f;
    --ardoise: #4a5568;
    --rouge: #c0392b;
    --blanc: #ffffff;
    --border: #e2ddd5;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.07);
    --max-width: 1100px;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--ivoire);
    color: var(--bleu);
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--bleu-clair);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: var(--bleu);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blanc);
    letter-spacing: 0.02em;
}

.site-header .logo span {
    color: var(--or);
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--or);
    text-decoration: none;
}

.hero {
    background: var(--bleu);
    color: var(--blanc);
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--or);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto;
}

.hero-bar {
    width: 48px;
    height: 3px;
    background: var(--or);
    margin: 1.5rem auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bleu);
    margin-bottom: 0.5rem;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--ardoise);
    margin-bottom: 2.5rem;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.theme-card {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border-top: 3px solid var(--or);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-decoration: none;
}

.theme-card .icone {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.theme-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bleu);
    margin-bottom: 0.25rem;
}

.theme-card .voir {
    font-size: 0.85rem;
    color: var(--or);
    font-weight: 600;
    margin-top: 0.75rem;
    display: inline-block;
}

.fiche-header {
    background: var(--bleu);
    color: var(--blanc);
    padding: 3rem 2rem;
}

.fiche-header .icone {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.fiche-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.fiche-header .or-bar {
    width: 40px;
    height: 3px;
    background: var(--or);
    margin-top: 1rem;
}

.fiche-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.bloc {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.bloc h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.bloc.constat h2   { border-color: var(--ardoise); color: var(--ardoise); }
.bloc.actions h2   { border-color: var(--bleu-clair); color: var(--bleu-clair); }
.bloc.resultats h2 { border-color: var(--sauge); color: var(--sauge); }
.bloc.limites h2   { border-color: var(--or); color: var(--or); }

.bloc p {
    font-size: 0.95rem;
    color: var(--ardoise);
    line-height: 1.7;
}

.chiffres {
    grid-column: 1 / -1;
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.chiffres h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bleu);
    margin-bottom: 1.25rem;
}

.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.chiffre-item {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--ivoire);
}

.chiffre-item .valeur {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bleu);
}

.chiffre-item.positif .valeur { color: var(--sauge); }
.chiffre-item.negatif .valeur { color: var(--rouge); }

.chiffre-item .label {
    font-size: 0.8rem;
    color: var(--ardoise);
    margin-top: 0.25rem;
}

.chiffre-item .contexte {
    font-size: 0.75rem;
    color: var(--ardoise);
    opacity: 0.7;
    margin-top: 0.2rem;
}

.sources {
    grid-column: 1 / -1;
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.sources h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bleu);
    margin-bottom: 1rem;
}

.sources ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sources li {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sources li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--or);
    flex-shrink: 0;
}

.sources a {
    color: var(--bleu-clair);
}

.sources .date {
    color: var(--ardoise);
    opacity: 0.6;
    font-size: 0.8rem;
    margin-left: auto;
}

.site-footer {
    background: var(--bleu);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    margin-top: 4rem;
}

.site-footer a {
    color: rgba(255,255,255,0.6);
}

.site-footer a:hover {
    color: var(--or);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--ardoise);
    font-size: 0.95rem;
}

.erreur-msg {
    text-align: center;
    padding: 3rem;
    color: var(--rouge);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 1.7rem; }
    .fiche-body { grid-template-columns: 1fr; }
    .bloc { grid-column: auto; }
    .chiffres, .sources { grid-column: auto; }
    .site-nav { display: none; }
}