/* ===== STYLES POUR LES ARTICLES ===== */

/* Variables CSS */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f0f0f0;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --cta-color: #000000;
    --cta-hover: #333333;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --active-bg: #f5f5f5;
    --nav-bg-light: #ffffff;
    --nav-bg-lighter: #fafbfc;
    --nav-bg-lightest: #f5f6f7;
    --nav-border-light: #f0f1f2;
    --nav-border-lighter: #e8e9ea;
    --font-primary: 'Arial', sans-serif;
    --font-secondary: 'Georgia', serif;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Mode sombre - Adapté du système index.html */
body.light-mode {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f0f0f0;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --cta-color: #000000;
    --cta-hover: #333333;
    --background-color: #ffffff;
    --card-bg: #ffffff;
    --bg-light: #f8f9fa;
    --active-bg: #f5f5f5;
    --nav-bg-light: #ffffff;
    --nav-bg-lighter: #fafbfc;
    --nav-bg-lightest: #f5f6f7;
    --nav-border-light: #f0f1f2;
    --nav-border-lighter: #e8e9ea;
}

/* Mode sombre : même hiérarchie de contraste qu’en clair (fond page < panneau < cartes/nav ; texte lisible). */
body:not(.light-mode) {
    /* Fond « lavis » page (équivalent #f0f0f0 en clair) */
    --accent-color: #0f0f0f;
    /* Zone centrale type « feuille » (équivalent #fff) */
    --background-color: #1a1a1a;
    /* Surfaces relevées : sidebar, cartes (un cran au-dessus du panneau) */
    --card-bg: #242424;
    --bg-light: #2a2a2a;
    --active-bg: #2f2f2f;
    /* Texte : fort / secondaire (équivalent #333 / #666 sur blanc) */
    --primary-color: #f2f2f2;
    --text-color: #e8e8e8;
    --text-light: #a8a8a8;
    --border-color: #3d3d3d;
    --cta-color: #f2f2f2;
    --cta-hover: #ffffff;
    /* Bandeau / zones secondaires */
    --secondary-color: #161616;
    --footer-bg: #181818;
    /* Navigation latérale accordéon */
    --nav-bg-light: #262626;
    --nav-bg-lighter: #2e2e2e;
    --nav-bg-lightest: #363636;
    --nav-border-light: #3d3d3d;
    --nav-border-lighter: #4a4a4a;
}

/* Améliorations pour le mode sombre */
/* Styles article-header supprimés - header maintenant identique à index.html */

/* Styles article-nav supprimés - navigation maintenant dans sidebar et mobile */

body:not(.light-mode) .cta-button {
    background: var(--cta-color);
    color: var(--secondary-color);
    border: 2px solid var(--cta-color);
}

body:not(.light-mode) .cta-button:hover {
    background: var(--cta-hover);
    border-color: var(--cta-hover);
    color: var(--secondary-color);
}

body:not(.light-mode) .article-footer {
    background: var(--footer-bg);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

body:not(.light-mode) .footer-section a {
    color: var(--primary-color);
}

body:not(.light-mode) .footer-section a:hover {
    color: var(--text-color);
    opacity: 0.9;
}

body:not(.light-mode) .social-links a {
    /* background: var(--accent-color); */
    color: var(--text-color);
}

body:not(.light-mode) .social-links a:hover {
    /* background: var(--primary-color); */
    color: var(--secondary-color);
}

/* Mode clair par défaut - dominance claire avec éléments sombres */
body.light-mode {
    background-color: #ffffff;
    color: #333333;
}

/* Styles article-header supprimés - header maintenant identique à index.html */

/* Styles article-nav supprimés - navigation maintenant dans sidebar et mobile */

body.light-mode .cta-button {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

body.light-mode .cta-button:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

body.light-mode .article-footer {
    background: #f8f9fa;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

body.light-mode .footer-section a {
    color: #333333;
}

body.light-mode .footer-section a:hover {
    color: #000000;
}

body.light-mode .social-links a {
    color: #333333;
}

body.light-mode .social-links a:hover {

}

/* Correction des couleurs du footer */
body.light-mode .article-footer {
    background: #f8f9fa;
    color: #333333;
}

body.light-mode .footer-section h4 {
    color: #333333;
}

body.light-mode .footer-section p {
    color: #666666;
}

body.light-mode .footer-section a {
    color: #333333;
}

body.light-mode .footer-section a:hover {
    color: #000000;
}

body.light-mode .footer-bottom {
    color: #666666;
}

body.light-mode .site-credit {
    color: #666666;
}

body.light-mode .site-credit a {
    color: #333333;
}

body.light-mode .site-credit a:hover {
    color: #000000;
}

/* Mode sombre pour le footer (complète le bloc ci-dessus) */
body:not(.light-mode) .footer-section h4 {
    color: var(--primary-color);
}

body:not(.light-mode) .footer-section p {
    color: var(--text-light);
}

body:not(.light-mode) .footer-bottom {
    color: var(--text-light);
}

body:not(.light-mode) .site-credit {
    color: var(--text-light);
}

body:not(.light-mode) .site-credit a {
    color: var(--primary-color);
}

body:not(.light-mode) .site-credit a:hover {
    color: var(--text-color);
    opacity: 0.9;
}

/* Reset et base */
* {
    box-sizing: border-box;
}

body.article-page {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--accent-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header des articles - maintenant identique à index.html avec couleur breadcrumb */
header {
    /* background: var(--accent-color); */
    /* border-bottom: 1px solid var(--border-color); */
    /* position: sticky; */
    z-index: 1000;
    /* box-shadow: var(--shadow-light); */
}

/* Styles dark/light mode pour le header */
body.light-mode header {
    /* background: var(--accent-color); */
    /* border-bottom: 1px solid #e0e0e0; */
}

body:not(.light-mode) header {
        /* background: var(--accent-color);
        border-bottom: 1px solid var(--border-color); */
}

/* Toggle Dark/Light Mode - Exactement comme index.html */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #1a1a1a;
    border-radius: 15px;
    cursor: pointer;
    margin-left: 1rem;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 3.5px;
    left: 3.5px;
    width: 23px;
    height: 23px;
    background-color: var(--background-color, #ffffff);
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + label .toggle-slider {
    transform: translateX(30px);
}

.fa-moon, .fa-sun {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.fa-moon {
    left: 8px;
    background-image: url('./moon white.svg');
}

.fa-sun {
    right: 8px;
    background-image: url('./sun white.svg');
}

/* Correction des couleurs de survol des FAQ */
.faq-question:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

body.light-mode .faq-question:hover {
    background-color: #f0f0f0;
    color: #333333;
}

body:not(.light-mode) .faq-question:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

/* Correction des couleurs de fond des blocs d'information */
.tip-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

body.light-mode .tip-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

body:not(.light-mode) .tip-box {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #ffffff;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    color: #e65100;
}

body.light-mode .warning-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

body:not(.light-mode) .warning-box {
    background: linear-gradient(135deg, #bf360c 0%, #d84315 100%);
    color: #ffffff;
}

.success-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

body.light-mode .success-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
}

body:not(.light-mode) .success-box {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #ffffff;
}

/* Styles pour les icônes sociales dans le footer */
.social-icon {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.social-icon.light {
    display: block;
}

.social-icon.dark {
    display: none;
}

body.light-mode .social-icon.light {
    display: none;
}

body.light-mode .social-icon.dark {
    display: block;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
    filter: var(--logo-filter, none);
    transition: opacity 0.2s ease-out;
    opacity: 1;
}

/* Amélioration de la visibilité du logo */
body:not(.light-mode) .logo {
    filter: brightness(0) invert(1);
}

body.light-mode .logo {
    filter: none;
}

/* Navigation du header supprimée - maintenant dans sidebar et mobile */

.cta-button {
    background: var(--cta-color);
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid var(--cta-color);
    box-shadow: var(--shadow-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--background-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 2rem; */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

body:not(.light-mode) .breadcrumb {
    background: var(--background-color);
    border-bottom-color: var(--border-color);
}

body:not(.light-mode) .breadcrumb a {
    color: var(--text-light);
}

body:not(.light-mode) .breadcrumb a:hover {
    color: var(--primary-color);
}

body:not(.light-mode) .breadcrumb .current {
    color: var(--primary-color);
}

body:not(.light-mode) .article-layout {
    background-color: var(--background-color);
}

body:not(.light-mode) .sidebar-nav {
    background: var(--card-bg);
    border-right-color: var(--border-color);
}

body:not(.light-mode) .sidebar-nav h3 {
    color: var(--primary-color);
}

body:not(.light-mode) .sidebar-nav-hub a {
    color: var(--text-light);
}

body:not(.light-mode) .sidebar-nav-hub a:hover {
    color: var(--primary-color);
}

body:not(.light-mode) .featured-article {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body:not(.light-mode) .category-intro {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body:not(.light-mode) .category-card,
body:not(.light-mode) .article-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

body:not(.light-mode) .category-card p,
body:not(.light-mode) .article-card p,
body:not(.light-mode) .featured-article p {
    color: var(--text-light);
}

/* Layout principal avec navigation latérale */
.article-layout {
    display: flex;
    max-width: 1400px;
    margin: 3rem auto;
    min-height: calc(100vh - 200px);
    background-color: var(--background-color);
    border-radius: 48px;
}

/* Navigation latérale */
.sidebar-nav {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: fit-content;
    display: block; /* Afficher sur desktop */
}

.sidebar-nav h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 1rem 2rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Contenu principal */
.article-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header-content {
    margin-bottom: 3rem;
    text-align: center;
    background: none !important;
}

.article-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: left;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    /* justify-content: center; */
    gap: 2rem;
    flex-wrap: wrap;
}

/* Section auteur */
.author-section {
    background: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-light);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.author-details h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.author-title {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.author-bio {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Styles pour le lien LinkedIn de l'auteur */
.author-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
}

.author-linkedin:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.linkedin-icon {
    width: 16px;
    height: 16px;
    filter: none;
}

/* Mode sombre pour le lien LinkedIn */
body:not(.light-mode) .author-linkedin {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

body:not(.light-mode) .author-linkedin:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Mode clair pour le lien LinkedIn */
body.light-mode .author-linkedin {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.light-mode .author-linkedin:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Introduction */
.article-intro {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.article-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.article-intro p:last-child {
    margin-bottom: 0;
}

/* Corps de l'article */
.article-body {
    font-size: 1rem;
    line-height: 1.7;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.article-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    font-weight: 600;
    color: var(--primary-color);
}

/* Sections spéciales */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333333 100%);
    color: var(--secondary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-heavy);
    max-width: 1400px;
    margin: 3rem auto;
    border-radius: 48px;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button-large {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    box-shadow: var(--shadow-medium);
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: var(--accent-color);
}

/* Navigation entre articles */
.article-navigation {
    /* background: var(--accent-color);
    padding: 2rem; */
    border-radius: var(--border-radius);
    margin-top: 3rem;
    /* box-shadow: var(--shadow-light); */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 1rem;
    border-radius: var(--border-radius);
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.nav-next {
    text-align: right;
}

/* Footer des articles */
.article-footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    /* Navigation du header supprimée - maintenant dans sidebar et mobile */
    
    .article-layout {
        flex-direction: column;
    }
    
    .sidebar-nav {
        display: none; /* Cacher la nav latérale sur mobile */
    }
    
    .mobile-nav {
        display: block; /* Afficher la nav mobile */
    }
    
    .article-content {
        padding: 1rem;
        margin-bottom: 80px; /* Espace pour la nav mobile */
    }
    
    .article-header-content h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-header-content h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-button-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Améliorations d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ffffff;
        --secondary-color: #1a1a1a;
        --accent-color: #2a2a2a;
        --text-color: #e0e0e0;
        --text-light: #b0b0b0;
        --border-color: #404040;
    }
}

/* Focus visible pour l'accessibilité */
.cta-button:focus,
.cta-button-large:focus,
.article-nav a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Styles pour les listes - Suppression des puces par défaut */
.article-body ul {
    list-style: none;
    padding-left: 0;
}

.article-body ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-body ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.article-body ol {
    list-style: none;
    padding-left: 0;
    counter-reset: item;
}

.article-body ol li {
    counter-increment: item;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-body ol li::before {
    content: counter(item) ". ";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Mode clair pour les listes */
body.light-mode .article-body ul li::before,
body.light-mode .article-body ol li::before {
    color: #000000;
}

/* Mode sombre pour les listes */
body:not(.light-mode) .article-body ul li::before,
body:not(.light-mode) .article-body ol li::before {
    color: #ffffff;
}

/* Styles pour les citations et exemples */
.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    background: var(--accent-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

/* Styles pour les tableaux */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-body th {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.article-body tr:nth-child(even) {
    background: var(--accent-color);
}

/* Styles pour les code blocks */
.article-body code {
    background: var(--accent-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-body pre {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 2rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

/* Site Credit Link */
.footer-bottom .site-credit {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    text-align: center;
}

.footer-bottom .site-credit a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .site-credit a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Partner Cards */
.partner-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.partner-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.partner-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.partner-expertise,
.partner-collaboration {
    background: var(--bg-light, #f8f9fa);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
}

.partner-expertise strong,
.partner-collaboration strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.partner-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.partner-link:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-item {
    background: var(--card-bg, #ffffff);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
}

.benefit-item h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefit-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Partnership Criteria */
.partnership-criteria {
    background: var(--bg-light, #f8f9fa);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border-left: 4px solid var(--accent-color);
}

.partnership-criteria h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.partnership-criteria ul {
    list-style: none;
    padding: 0;
}

.partnership-criteria li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.partnership-criteria li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Interactive FAQ and Expandable Sections */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background: var(--bg-light, #f8f9fa);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--accent-color);
    color: white;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* Expandable Content Sections */
.expandable-section {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 2rem 0;
    overflow: hidden;
}

.expandable-header {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.expandable-header:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
}

.expandable-header::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.expandable-section.active .expandable-header::after {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.expandable-section.active .expandable-content {
    max-height: 2000px;
    padding: 1.5rem;
}

/* Mode clair pour les sections expandables */
body.light-mode .expandable-section {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-mode .expandable-header {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #333333;
}

body.light-mode .expandable-header:hover {
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
}

body.light-mode .expandable-content {
    color: #333333;
}

/* Mode sombre pour les sections expandables */
body:not(.light-mode) .expandable-section {
    background: #2a2a2a;
    border-color: #404040;
}

body:not(.light-mode) .expandable-header {
    background: linear-gradient(135deg, #2a2a2a, #404040);
    color: #ffffff;
}

body:not(.light-mode) .expandable-header:hover {
    background: linear-gradient(135deg, #404040, #505050);
}

body:not(.light-mode) .expandable-content {
    color: #ffffff;
}

/* Navigation mobile en footer */
.mobile-nav {
    display: none;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav li {
    margin: 0;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.5rem;
    transition: var(--transition);
    text-align: center;
    min-width: 60px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-nav a::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-bottom: 0.25rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.mobile-nav a[href*="production"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 4l2 8H8l2-8h8M2 13h8v9H2v-9z'/%3E%3C/svg%3E");
}

.mobile-nav a[href*="marketing"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2L2 7v10c0 5.55 3.84 9.74 9 11 5.16-1.26 9-5.45 9-11V7l-10-5z'/%3E%3C/svg%3E");
}

.mobile-nav a[href*="roi"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.mobile-nav a[href*="trends"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z'/%3E%3C/svg%3E");
}

.mobile-nav a[href*="formats"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

/* Mode clair pour la navigation mobile */
body.light-mode .mobile-nav {
    background: #ffffff;
    border-top-color: #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .mobile-nav a {
    color: #333333;
}

body.light-mode .mobile-nav a:hover,
body.light-mode .mobile-nav a.active {
    color: #000000;
}

/* Mode sombre pour la navigation mobile */
body:not(.light-mode) .mobile-nav {
    background: #2a2a2a;
    border-top-color: #404040;
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.1);
}

body:not(.light-mode) .mobile-nav a {
    color: #cccccc;
}

body:not(.light-mode) .mobile-nav a:hover,
body:not(.light-mode) .mobile-nav a.active {
    color: #ffffff;
}

/* Interactive Tips and Highlights */
.tip-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.tip-box::before {
    content: "💡";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.tip-box h4 {
    color: #1976d2;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.warning-box::before {
    content: "⚠️";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.warning-box h4 {
    color: #f57c00;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.success-box {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.success-box::before {
    content: "✅";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.success-box h4 {
    color: #388e3c;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Interactive Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mode clair pour les statistiques */
body.light-mode .stat-item {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #333333;
}

body.light-mode .stat-number {
    color: #000000;
}

body.light-mode .stat-label {
    color: #666666;
}

body.light-mode .stat-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mode sombre pour les statistiques */
body:not(.light-mode) .stat-item {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

body:not(.light-mode) .stat-number {
    color: #ffffff;
}

body:not(.light-mode) .stat-label {
    color: #cccccc;
}

body:not(.light-mode) .stat-item:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Progress Indicators */
.progress-section {
    margin: 2rem 0;
}

.progress-item {
    margin: 1.5rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--bg-light, #f8f9fa);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Sidebar (collapsible sections) — centralisé depuis les pages --- */
.sidebar-nav-hub {
    margin: 0 2rem 1.25rem;
    padding: 0;
    font-size: 0.9rem;
}

.sidebar-nav-hub a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

.sidebar-nav-hub a:hover {
    color: var(--primary-color);
}

.nav-section {
    margin-bottom: 0.25rem;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 0 0.75rem;
    background: linear-gradient(135deg, var(--nav-bg-light) 0%, var(--nav-bg-lighter) 100%);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--nav-border-light);
    border-radius: var(--border-radius);
}

.nav-section-header:hover {
    background: linear-gradient(135deg, var(--nav-bg-lighter) 0%, var(--nav-bg-lightest) 100%);
    border-color: var(--nav-border-lighter);
}

.nav-section-header .section-icon {
    font-size: 16px;
    margin-right: 8px;
}

.nav-section-header .section-title {
    flex: 1;
    text-align: left;
}

.nav-section-header .section-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-section-header.collapsed .section-toggle {
    transform: rotate(-90deg);
}

.nav-section-content {
    display: none;
    list-style: none;
    margin: 0 0.75rem 0.5rem 1.5rem;
    padding: 0;
    background-color: var(--nav-bg-light);
    border-left: 1px solid var(--nav-border-light);
}

.nav-section-content li {
    margin: 0;
    padding: 0;
}

.nav-section-content a {
    display: block;
    padding: 10px 16px 10px 28px;
    color: var(--text-color);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: var(--transition);
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.85;
}

.nav-section-content a:hover {
    background-color: var(--nav-bg-lighter);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 32px;
    opacity: 1;
}

.nav-section-content a.active {
    background-color: var(--active-bg);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
    opacity: 1;
}

/* --- Pages index / catégories (même shell que les guides) --- */
.article-content.articles-hub {
    max-width: 900px;
}

.article-content.articles-hub .container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.article-content.articles-hub .breadcrumb {
    margin: 0 0 1.5rem;
}

.article-content.articles-hub .breadcrumb-container {
    padding: 0 0.25rem;
}

.article-content.articles-hub h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-content.articles-hub .lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.category-intro {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}

.category-intro h2 {
    margin-top: 0;
    font-size: 1.35rem;
    color: var(--primary-color);
}

.categories-grid h2,
.articles-grid h2,
.featured-content h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.categories-list,
.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.category-card,
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) + 4px);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.category-card:hover,
.article-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.category-card h3,
.article-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.category-card h3 a,
.article-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.category-card h3 a:hover,
.article-card h3 a:hover {
    text-decoration: underline;
}

.category-card p,
.article-card p {
    flex: 1;
    margin: 0 0 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
}

.category-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.article-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.explore-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.explore-link:hover {
    text-decoration: underline;
}

.featured-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.featured-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.featured-article {
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-light, var(--nav-bg-lighter));
}

.featured-article h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.featured-article h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.featured-article p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    background: var(--card-bg);
    transition: var(--transition);
}

.category-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .article-layout:has(.articles-hub) .sidebar-nav {
        display: block;
        width: 100%;
        position: relative;
        max-height: 320px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0 1.25rem;
    }

    .article-layout:has(.articles-hub) .article-content {
        margin-bottom: 1rem;
    }
}