/* Reset et variables globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Charte graphique AI DragonFly */
    --primary-color: #ffffff;           /* Blanc principal */
    --secondary-color: #364145;         /* Gris texte AI DragonFly */
    --accent-color: #F47920;            /* Orange AI DragonFly */
    --dark-bg: #364145;                 /* Gris foncé pour backgrounds */
    --light-bg: #f8fafc;                /* Fond clair (conservé) */
    --white: #ffffff;                   /* Blanc pur */
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--secondary-color);      /* Gris texte AI DragonFly */
    background-color: var(--white);     /* Fond blanc épuré */
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);  /* Blanc épuré */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(244, 121, 32, 0.15);  /* Bordure orange très subtile */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Ajustement quand la barre d’admin WordPress est visible (évite que le menu soit caché) */
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .navbar { top: 46px; }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo Navigation */
.nav-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo .custom-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-logo .site-title {
    color: var(--secondary-color);  /* Gris foncé AI DragonFly */
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--secondary-color);  /* Gris foncé AI DragonFly */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);  /* Orange AI DragonFly au hover */
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #EFF2F7 100%);  /* Gradient blanc/gris clair */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.03;  /* Très léger pour fond blanc */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;  /* Pas d'overlay pour fond blanc */
    opacity: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-sm);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--secondary-color);  /* Gris foncé AI DragonFly */
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-600);  /* Gris moyen */
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: #EFF2F7;  /* Gris clair comme demandé */
    color: var(--accent-color);  /* Texte orange */
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);  /* Bordure orange */
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.hero-btn:hover {
    background: var(--accent-color);  /* Inverser au hover : fond orange */
    color: var(--white);  /* Texte blanc */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(244, 121, 32, 0.3);
}

/* Section Articles */
.articles-section {
    padding: 1.75rem 0;
    background: var(--light-bg);
}

.articles-layout {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr 1.5fr;  /* Article vedette centré et élargi */
    gap: var(--spacing-lg);  /* Réduit : 2rem au lieu de 3rem */
    margin-bottom: 1.5rem;
}

/* Articles principaux */
.main-articles {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.article-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

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

.article-card.large {
    display: flex;
    flex-direction: column;  /* Layout vertical */
    padding: 0;  /* Pas de padding global, on le met sur le contenu */
}

.article-card.large .article-image {
    width: 100%;
}

.article-card.large .article-image img {
    width: 100%;
    height: 180px;  /* Plus haute car pleine largeur */
    object-fit: cover;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;  /* Coins arrondis en haut seulement */
}

.article-card.large .article-content {
    padding: var(--spacing-md);  /* Padding sur le contenu */
}

.article-card.large .article-content h2 {
    font-size: 1.25rem;  /* Taille d'origine restaurée */
    font-weight: 600;
    color: var(--secondary-color);  /* Gris AI DragonFly */
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.article-meta {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.author {
    color: var(--secondary-color);  /* Gris foncé AI DragonFly */
    font-weight: 500;
}

.article-card.large .article-content p:last-child {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Article en vedette */
.featured-article {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--accent-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.article-card.featured {
    height: 100%;
}

.article-card.featured .article-image img {
    width: 100%;
    height: 240px;  /* Réduit : -20% */
    object-fit: cover;
}

.article-card.featured .article-content {
    padding: var(--spacing-md);  /* Réduit : 1.5rem au lieu de 2rem */
}

.article-card.featured h2 {
    font-size: 1.5rem;  /* Taille d'origine restaurée */
    font-weight: 600;
    color: var(--secondary-color);  /* Gris AI DragonFly */
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

/* Sidebar */
.sidebar h3 {
    color: var(--secondary-color);  /* Gris AI DragonFly */
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sidebar h3::after {
    content: '→';
    color: var(--accent-color);  /* Orange AI DragonFly */
}

.recent-articles {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.recent-article {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--white);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.recent-article:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.recent-image {
    flex: 0 0 50px;  /* Ajusté pour correspondre à la nouvelle largeur */
}

.recent-image img {
    width: 50px;  /* Réduit : -17% */
    height: 40px;  /* Réduit : -17% */
    object-fit: cover;
    border-radius: var(--border-radius);
}

.recent-content h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-color);  /* Gris AI DragonFly */
    margin-bottom: 2px;
    line-height: 1.4;
}

.recent-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.see-more {
    text-align: right;
}

.see-more-link {
    color: var(--accent-color);  /* Orange AI DragonFly */
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.see-more-link:hover {
    color: #d66a1a;  /* Orange plus foncé */
}

/* Articles Grid */
.articles-grid {
    margin-top: var(--spacing-2xl);
}

.articles-grid h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);  /* Gris AI DragonFly */
    margin-bottom: var(--spacing-xl);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.grid-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.grid-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.grid-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-content {
    padding: var(--spacing-lg);
}

.grid-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);  /* Gris AI DragonFly */
    margin-bottom: var(--spacing-sm);
}

.grid-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark-bg);  /* Gris foncé AI DragonFly */
    color: var(--gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

/* Ligne 1 : Logo à gauche + Social/Contact à droite */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
}

/* Logo Footer - Plus grand */
.footer-logo {
    flex: 0 0 auto;
}

.footer-logo .custom-logo-link {
    display: inline-block;
}

.footer-logo .custom-logo {
    height: 60px;  /* Augmenté de 40px à 60px */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);  /* Logo blanc dans footer sombre */
}

.footer-logo .site-title {
    color: var(--white);
    font-size: 1.75rem;  /* Augmenté de 1.25rem à 1.75rem */
    font-weight: 600;
    margin: 0;
}

/* Footer Social & Contact - Aligné à droite */
.footer-social-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

/* Boutons sociaux en cercles (style Proposition 1) */
.footer-social .social-circle {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social .social-circle:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-contact-btn {
    padding: 14px 32px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-contact-btn:hover {
    background: #d66a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 121, 32, 0.3);
}

/* Ligne 2 : Liens légaux à gauche */
.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);  /* Orange AI DragonFly */
}

/* Ligne 3 : Copyright centré */
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .articles-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .sidebar {
        grid-column: span 2;
    }
    
    .recent-articles {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-menu {
        gap: var(--spacing-sm);
    }
    
    .nav-menu a {
        font-size: 0.875rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .articles-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .article-card.large {
        flex-direction: column;
    }
    
    .article-card.large .article-image {
        flex: none;
    }
    
    .article-card.large .article-image img {
        height: 200px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Footer responsive */
    .footer-top-row {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: center;
        text-align: center;
    }
    
    .footer-logo .custom-logo {
        height: 50px;
    }
    
    .footer-logo .site-title {
        font-size: 1.5rem;
    }
    
    .footer-social-contact {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .articles-section {
        padding: var(--spacing-xl) 0;
    }
    
    .article-card.large {
        padding: var(--spacing-md);
    }
    
    .article-card.featured .article-content {
        padding: var(--spacing-md);
    }
    
    .grid-content {
        padding: var(--spacing-md);
    }
}

/* Animations et smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animation pour les éléments qui apparaissent */
.article-card,
.grid-card,
.recent-article {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Décalage des animations */
.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.grid-card:nth-child(1) { animation-delay: 0.1s; }
.grid-card:nth-child(2) { animation-delay: 0.2s; }
.grid-card:nth-child(3) { animation-delay: 0.3s; }
.recent-article:nth-child(1) { animation-delay: 0.1s; }
.recent-article:nth-child(2) { animation-delay: 0.2s; }
.recent-article:nth-child(3) { animation-delay: 0.3s; }
.recent-article:nth-child(4) { animation-delay: 0.4s; }
.recent-article:nth-child(5) { animation-delay: 0.5s; }
.recent-article:nth-child(6) { animation-delay: 0.6s; }

/* ============================================ */
/* SINGLE ARTICLE PAGES */
/* ============================================ */

/* Article Page Styles */
.single-article {
    padding-top: 100px;
    padding-bottom: var(--spacing-2xl);
    background: var(--light-bg);
}

/* Décalage du contenu quand la barre d’admin est présente + navbar fixe */
.admin-bar .single-article { padding-top: 132px; }
@media (max-width: 782px) {
    .admin-bar .single-article { padding-top: 146px; }
}

.article-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

/* Table of Contents - Menu Sommaire (Style Minimaliste) */
.table-of-contents {
    flex: 0 0 200px;
    position: sticky;
    top: 100px;
    padding: 0;
    max-height: calc(100vh - 120px);
    overflow: visible;
    z-index: 10;
}

.table-of-contents h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-list {
    list-style: none;
}

.toc-item {
    margin-bottom: var(--spacing-xs);
}

.toc-link {
    display: block;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-sm);
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
    cursor: pointer;
}

.toc-link:hover {
    color: var(--secondary-color);
    border-left-color: var(--gray-300);
}

.toc-link.active {
    color: var(--secondary-color);
    font-weight: 500;
    border-left-color: var(--accent-color);
}

/* Sublist (H3) - Masqué car on n'affiche que les H2 */
.toc-sublist {
    display: none;
}

/* Article Wrapper */
.article-wrapper {
    flex: 1;
    max-width: 900px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Article Header */
.article-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

.article-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.article-categories {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.category-link {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gray-100);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Bouton Podcast */
.podcast-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.podcast-button:hover {
    background: #d66a1a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.podcast-button svg {
    width: 16px;
    height: 16px;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.article-meta-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--gray-600);
    font-size: 0.95rem;
}

.article-meta-full .author strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.separator {
    color: var(--gray-400);
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Content */
.article-body {
    padding: var(--spacing-xl);
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.article-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-200);
}

/* H2 dans les articles single seulement */
.single-article .article-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-left: var(--spacing-md);
    scroll-margin-top: 100px;
}

.single-article .article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.article-content p {
    margin-bottom: var(--spacing-lg);
}

.article-content ul,
.article-content ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.article-content li {
    margin-bottom: var(--spacing-sm);
}

.article-content li strong {
    color: var(--secondary-color);
}

/* Blockquote */
.article-quote,
.article-content blockquote {
    background: var(--gray-100);
    border-left: 4px solid var(--accent-color);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-700);
}

.article-quote cite,
.article-content blockquote cite {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    font-style: normal;
    color: var(--accent-color);
    font-weight: 500;
}

/* Highlight Box */
.article-highlight {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.article-highlight h4 {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.article-highlight p {
    margin-bottom: 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    border-top: 2px solid var(--gray-200);
}

.tag-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

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

/* Navigation Articles */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--gray-200);
}

.nav-article {
    /* Pas de propriété flex ou max-width */
}

.nav-article.next {
    text-align: left;
    grid-column: 1;
}

.nav-article.prev {
    text-align: right;
    grid-column: 2;
}

/* Si un seul bouton présent, il prend toute la largeur de sa colonne */
.article-navigation:has(.nav-article:only-child) {
    display: flex;
    justify-content: center;
}

.nav-article:only-child {
    max-width: 100%;
    text-align: center;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-xs);
}

.nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-title:hover {
    color: var(--accent-color);
}

/* Responsive Single Article */
@media (max-width: 1200px) {
    .table-of-contents {
        display: none;
    }
    
    .article-layout {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }

    .article-header,
    .article-body {
        padding: var(--spacing-lg);
    }

    .article-featured-image {
        height: 250px;
    }

    .article-content {
        font-size: 0.95rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .nav-article {
        max-width: 100%;
    }

    .nav-article.next {
        text-align: left;
    }
}

/* Masquer les extraits des articles de la colonne gauche (page d'accueil) */
.main-articles .article-card.large .article-content > p:not(.article-meta) {
    display: none;
}

/* Masquer la section hero sur la page d'accueil */
.hero {
    display: none;
}

/* Ajuster le padding de la section articles quand le hero est masqué */
.articles-section {
    padding-top: 40px;
}

/* ============================================ */
/* HOME: "À ne pas manquer" - Carousel Featured */
/* ============================================ */
.home-featured-title {
    text-align: center;
    padding: 1.25rem 1rem 0.75rem;
    background: var(--light-bg);
}
.home-featured-title h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}
.home-featured-title p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

.home-featured-container {
    position: relative;
    width: 100%;
    /* add top spacing so first section doesn't hide under fixed navbar */
    /* Bottom padding scales with viewport height to avoid showing next section title on tall screens */
    padding: 94px 2rem clamp(2.5rem, 9vh, 8rem);
    background: var(--light-bg);
}

/* Extra headroom on very tall/large screens to avoid exposing next section title */
@media (min-width: 1400px), (min-height: 900px) {
  .home-featured-container {
    padding-bottom: clamp(3rem, 10vh, 10rem);
  }
}
.home-featured-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 2rem;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}
.home-featured-wrapper::-webkit-scrollbar { display: none; }

.home-featured-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Slide hero */
.home-featured-hero {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.home-featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.home-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.38) 100%);
    z-index: 2;
}
.home-featured-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 2.25rem;
}

/* Card dans le hero */
.home-featured-card {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    max-width: 720px;
    width: clamp(560px, 58%, 720px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.home-featured-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}
.home-featured-date {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.home-featured-author {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.home-featured-author .author {
    color: var(--secondary-color);
    font-weight: 600;
}
.home-featured-card h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}
.home-featured-excerpt {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.home-featured-cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 121, 32, 0.3);
}
.home-featured-cta:hover {
    background: #d66a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 121, 32, 0.4);
}

/* Pagination & Nav */
.home-featured-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.home-pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.home-pagination-dot.active {
    background: var(--accent-color);
    width: 32px;
    border-radius: 6px;
}
.home-featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 10;
}
.home-nav-btn {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}
.home-nav-btn:hover {
    background: #fff;
    transform: scale(1.1);
}
.home-nav-btn svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

/* ============================================ */
/* HOME: "En ce moment" - Slider cartes        */
/* ============================================ */
.home-recent-section {
    background: #fff;
    padding: 1rem 0;
}
.home-recent-title {
    text-align: center;
    padding: 0 1.5rem 1rem;
}
.home-recent-title h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}
.home-recent-title p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

.home-recent-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
.home-recent-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}
.home-recent-wrapper::-webkit-scrollbar { display: none; }

.home-recent-card {
    flex: 0 0 350px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.home-recent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.home-recent-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9eef1;
}
.home-recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.home-recent-card:hover .home-recent-image img {
    transform: scale(1.05);
}
.home-recent-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.home-recent-meta {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.home-recent-meta .author {
    color: var(--secondary-color);
    font-weight: 600;
}
.home-recent-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-recent-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.home-recent-read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Nav pour la section "En ce moment" */
.home-recent-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}
.home-recent-nav .home-nav-btn { pointer-events: auto; }

/* Responsive */
@media (max-width: 768px) {
    .home-featured-title {
        padding: 1rem 1rem 0.75rem;
    }
    .home-featured-container {
        padding: 80px 1rem 2rem;
    }
    .home-featured-hero {
        height: 48vh;
        min-height: 380px;
    }
    .home-featured-content {
        padding: 1.5rem;
    }
    .home-featured-card {
        padding: 2rem 1.5rem;
    }
    .home-nav-btn {
        width: 40px;
        height: 40px;
    }

    .home-recent-container {
        padding: 0 1.5rem;
    }
    .home-recent-card {
        flex: 0 0 280px;
    }
    .home-recent-image {
        height: 180px;
    }
    .home-recent-content {
        padding: 1.25rem;
    }
}

/* ============================================ */
/* HOME: Providers section (Actu par hébergeur) */
/* ============================================ */
.home-providers-section {
    background: var(--light-bg);
    padding: 1.75rem 0 2rem;
}
.home-providers-title {
    text-align: center;
    padding: 0 2rem 1rem;
}
.home-providers-title h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.home-providers-title p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* Container + track horizontal */
.home-providers-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.home-providers-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}
.home-providers-wrapper::-webkit-scrollbar { display: none; }

/* Chaque item contient une .grid-card pour réutiliser le style existant */
.home-providers-item {
    flex: 0 0 350px;
}

/* Nav flèches */
.home-providers-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}
.home-providers-nav .home-nav-btn { pointer-events: auto; }

/* Responsive */
@media (max-width: 768px) {
    .home-providers-container { padding: 0 3rem; }
    .home-providers-item { flex: 0 0 280px; }
}

/* ============================================ */
/* HOME: Bouton "Tous les articles"            */
/* ============================================ */
.home-view-all-section {
    background: #fff;
    padding: 0.5rem 0 2.5rem;
    text-align: center;
}

.home-view-all-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #EFF2F7;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 121, 32, 0.15);
}

.home-view-all-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 121, 32, 0.3);
}

/* ============================================ */
/* DISCORD SOCIAL CARD - Style léger           */
/* ============================================ */
.discord-social-card {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.discord-social-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.discord-social-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.discord-social-logo {
    flex-shrink: 0;
}

.discord-social-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.discord-social-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    color: var(--gray-600);
}

.discord-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.discord-stat-separator {
    color: var(--gray-400);
}

.discord-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(244, 121, 32, 0.25);
    transition: all 0.2s ease;
}

.discord-social-link:hover {
    background: #d66a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 121, 32, 0.3);
}

/* Transforme aussi les liens Discord inline (Markdown -> HTML) en bouton */
.single-article .article-content a[href*="discord.gg"],
.single-article .article-content a[href*="discord.com/invite"],
.single-article .article-content a[href*="discordapp.com/invite"],
.single-article .article-content a[href*="discord.com/channels"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(244, 121, 32, 0.25);
    transition: all 0.2s ease;
    margin-top: var(--spacing-sm);
}
.single-article .article-content a[href*="discord.gg"]:hover,
.single-article .article-content a[href*="discord.com/invite"]:hover,
.single-article .article-content a[href*="discordapp.com/invite"]:hover,
.single-article .article-content a[href*="discord.com/channels"]:hover {
    background: #d66a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 121, 32, 0.3);
}

/* Responsive Discord Social Card */
@media (max-width: 768px) {
    .discord-social-card {
        padding: var(--spacing-md);
    }
    
    .discord-social-stats {
        font-size: 0.875rem;
    }
    
    .discord-social-link {
        font-size: 0.875rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .home-view-all-section {
        padding: 1.5rem 0 2.5rem;
    }
    
    .home-view-all-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================ */
/* PAGES LÉGALES - Espacement amélioré         */
/* ============================================ */
/* Padding-top pour les pages (éviter que le header fixe cache le contenu) */
.page .page-content {
    padding-top: 100px;
}

/* Ajustement quand la barre d'admin est visible */
.admin-bar .page .page-content {
    padding-top: 132px;
}

@media (max-width: 782px) {
    .admin-bar .page .page-content {
        padding-top: 146px;
    }
}

/* Masquer le titre de page WordPress (pour éviter le doublon) */
.page .page-title,
.page-template-default .entry-title,
.page .entry-header .entry-title {
    display: none !important;
}

.page .page-content-inner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.page .page-content-inner h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    line-height: 1.4;
}

.page .page-content-inner h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.page .page-content-inner h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
}

.page .page-content-inner p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.page .page-content-inner p strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.page .page-content-inner ul,
.page .page-content-inner ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-xs);
}

.page .page-content-inner li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    color: var(--gray-700);
}

.page .page-content-inner li strong {
    color: var(--secondary-color);
}

.page .page-content-inner hr {
    display: none;
}

/* Responsive pages légales */
@media (max-width: 768px) {
    .page .page-content-inner h1 {
        font-size: 2rem;
    }
    
    .page .page-content-inner h2 {
        font-size: 1.375rem;
        margin-top: var(--spacing-xl);
    }
    
    .page .page-content-inner h3 {
        font-size: 1.125rem;
    }
}

/* ============================================ */
/* TABLEAUX - Pages légales                    */
/* ============================================ */
.page .page-content-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
    font-size: 0.95rem;
}

.page .page-content-inner table thead {
    background: #f8f9fa;
}

.page .page-content-inner table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
    font-size: 0.9rem;
}

.page .page-content-inner table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    color: var(--gray-600);
    line-height: 1.6;
}

.page .page-content-inner table tbody tr:hover {
    background: #f8f9fa;
}

.page .page-content-inner table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive tableaux */
@media (max-width: 768px) {
    .page .page-content-inner table {
        font-size: 0.85rem;
    }
    
    .page .page-content-inner table th,
    .page .page-content-inner table td {
        padding: 10px 8px;
    }
}
