/* ===================================
   HIÉRARCHIE VISUELLE AMÉLIORÉE
   Basé sur audit professionnel - Partie B
   =================================== */

/* 1. Titres Plus Impactants */
h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* 2. Interlignage Amélioré */
p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-block p {
    line-height: 1.9;
}

li {
    line-height: 1.8;
    margin-bottom: 12px;
}

/* 3. Contraste Renforcé */
.text-muted {
    color: #cbd5e1;
    /* Au lieu de #94a3b8 */
}

.text-secondary {
    color: #e2e8f0;
    /* Au lieu de #cbd5e1 */
}

/* Amélioration contraste sur fond sombre */
p,
li,
span {
    color: #e2e8f0;
}

strong {
    color: #ffffff;
    font-weight: 600;
}

/* 4. Section Titles - Plus Visibles */
.section-title h2 {
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-title p {
    font-size: 18px;
    color: #cbd5e1;
    margin-top: 12px;
}

.section-number {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
}

/* 5. Cards - Hiérarchie Claire */
.card h3,
.risk-card h3,
.interactive-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.card p,
.risk-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
}

/* 6. Listes - Espacement Optimisé */
ul,
ol {
    padding-left: 24px;
}

ul li,
ol li {
    padding-left: 8px;
    margin-bottom: 14px;
}

/* 7. Emphasis - Mise en Valeur */
em {
    font-style: italic;
    color: #3b82f6;
}

mark {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 3px;
}

/* 8. Code & Technical Terms */
code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* 9. Quotes - Mise en Avant */
blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 24px;
    margin: 24px 0;
    font-size: 20px;
    line-height: 1.7;
    color: #cbd5e1;
    font-style: italic;
}

/* 10. Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }

    p {
        font-size: 16px;
        line-height: 1.7;
    }

    .section-title h2 {
        font-size: 30px;
    }
}

/* 11. Focus States - Accessibilité */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 12. Diagrammes - Container */
.diagram-container {
    margin: 40px 0;
    padding: 30px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.diagram-container img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
}

.diagram-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 20px;
}

.diagram-caption {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    margin-top: 16px;
    font-style: italic;
}