/* Variables CSS */
:root {
    --bg-dark: rgba(0, 0, 0, 0.5);
    --bg-darker: rgba(0, 0, 0, 0.85);
    --bg-card: rgba(255, 255, 255, 0.95);
    --accent-orange: #ff5722;
    --accent-blue: #339bd9;
    --accent-cyan: #2488c2;
    --color-primary: #339bd9;
    --text-white: #ffffff;
    --text-light: #f2f2f2;
    --text-muted: #6ba0ce;
    --shadow-glow: 0 0 30px rgba(36, 136, 194, 0.3);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-muted);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Background animé
   ========================================================================== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -10;
    background: #000;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: -12.5%;
    left: -12.5%;
    width: 125%;
    height: 125%;
    background-size: cover;
    background-position: center;
    animation: backgroundZoom 120s ease-in-out infinite;
}

@keyframes backgroundZoom {
    0%, 100% { transform: scale(1.25); }
    50% { transform: scale(1); }
}

/* Overlay pour lisibilité */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -5;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

/* Fireflies container */
#fireflies {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--text-white);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.5);
    animation: fireflyFloat 15s ease-in-out infinite;
    opacity: 0;
}

@keyframes fireflyFloat {
    0%, 100% { 
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% { opacity: 0.8; }
    50% { 
        opacity: 0.4;
        transform: translateY(-100px) translateX(50px);
    }
    90% { opacity: 0.8; }
}

/* ==========================================================================
   Logo & Header
   ========================================================================== */
.site-header {
    padding: 20px 0 0;
    text-align: center;
}

.logo-container {
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;
}

/* Animation logo identique à l'ancien site */
@keyframes logo {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.logo {
    max-width: 80%;
    animation-name: logo;
    animation-duration: 120s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.logo:hover {
    transform: scale(1.08);
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo {
        width: 450px;
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 350px;
        max-width: 95%;
    }
    
    .site-header {
        padding: 15px 0 0;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-nav {
    background: var(--bg-dark);
    box-shadow: inset 0 -4px 0 0 rgba(0, 0, 0, 0.85);
    max-width: 1160px;
    margin: 0 auto 20px auto;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: var(--text-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-darker);
    color: var(--text-white);
}

.nav-item.active .nav-link {
    background: var(--bg-darker);
}

.nav-link i {
    font-size: 16px;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-link {
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

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

/* Page Title */
.page-title {
    background: var(--bg-darker);
    padding: 20px 30px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title i {
    color: var(--accent-blue);
}

/* ==========================================================================
   News Cards
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--bg-card);
    color: #333;
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
/* 
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow), 0 10px 40px rgba(0, 0, 0, 0.4);
} */

.news-card-image {
    margin-bottom: -8px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
}

.news-card-header {
    background: var(--bg-darker);
    padding: 15px 20px;
    color: var(--text-white);
}

.news-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.news-card-title a {
    color: var(--text-white);
}

.news-card-title a:hover {
    color: var(--accent-blue);
}

.news-card-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.news-card-footer {
    background: var(--text-light);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-category {
    background: var(--accent-orange);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}
a.news-category:hover {
    opacity: 0.8;
    color: white;
}

/* Featured News */
.news-featured {
    grid-column: 1 / -1;
}

.news-featured .news-card-image {
    height: 350px;
}

.news-featured .news-card-title {
    font-size: 24px;
}

/* ==========================================================================
   Article Single
   ========================================================================== */
.article-container {
    max-width: 1160;
    margin: 0 auto;
}

.article-header {
    background: var(--bg-darker);
    padding: 30px;
    margin-bottom: 0;
}

.article-title {
    font-size: 32px;
    margin: 0 0 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.article-image {
    margin-bottom: -8px;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-content {
    background: var(--bg-card);
    color: #333;
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    color: var(--accent-cyan);
    margin-top: 30px;
}

.article-content h3 {
    margin-top: 25px;
}

.article-content img {
    margin: 20px 0;
    /* border-radius: 4px; */
}

.article-content a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.article-content code {
    background: #f4f4f4;
    padding: 2px 8px;
    /* border-radius: 3px; */
    font-family: 'Share Tech Mono', monospace;
}

.article-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    overflow-x: auto;
    /* border-radius: 4px; */
}

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

/* Video container responsive */
.article-content .video-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
    /* border-radius: 8px; */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.article-content .video-container iframe {
    display: block;
    width: 100%;
    min-height: 350px;
}

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid var(--accent-blue);
    padding: 15px 20px;
    margin: 20px 0;
    background: rgba(36, 136, 194, 0.1);
    font-style: italic;
}

/* Horizontal rule */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
    margin: 30px 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-secondary {
    background: var(--bg-darker);
    color: white;
}

.btn-secondary:hover {
    background: var(--accent-cyan);
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752C4;
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   Discord Section
   ========================================================================== */
.discord-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .discord-section {
        grid-template-columns: 1fr;
    }
}

.discord-info {
    background: var(--bg-card);
    color: #333;
    padding: 30px;
}

.discord-info h2 {
    color: #5865F2;
    margin-top: 0;
}

.discord-widget {
    background: var(--bg-dark);
    padding: 20px;
    min-height: 400px;
}

/* ==========================================================================
   Server Section
   ========================================================================== */
.server-status {
    background: var(--bg-card);
    color: #333;
    padding: 30px;
    text-align: center;
}

.server-ip {
    background: var(--bg-darker);
    color: var(--text-white);
    padding: 20px 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 24px;
    margin: 20px 0;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.server-ip:hover {
    background: var(--accent-cyan);
}

.server-ip.copied {
    background: #4CAF50;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    padding: 15px 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
}

.site-footer a {
    color: var(--text-white);
}

.site-footer a:hover {
    color: var(--text-muted);
}

/* ==========================================================================
   Audio Player (Mini Lecteur)
   ========================================================================== */
.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border-radius: 50px; */
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.audio-player:hover {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.player-btn {
    width: 36px;
    height: 36px;
    /* border-radius: 50%; */
    border: none;
    background: var(--accent-blue, #339bd9);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.player-btn:hover {
    background: var(--accent-cyan, #2488c2);
    transform: scale(1.1);
}

.player-btn i {
    margin-left: 2px; /* Centrage optique du play */
}

.player-btn.playing i {
    margin-left: 0;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-icon-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-icon-btn:hover {
    color: white;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    /* border-radius: 2px; */
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.3);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    /* border-radius: 50%; */
    background: var(--accent-blue, #339bd9);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-cyan, #2488c2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blue, #339bd9);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--accent-cyan, #2488c2);
}


/* Responsive - Réduire sur mobile */
@media (max-width: 480px) {
    .audio-player {
        padding: 6px 12px;
        gap: 8px;
        bottom: 15px;
        right: 15px;
    }
    
    .player-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .volume-icon-btn {
        font-size: 14px;
    }
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    background: var(--bg-card);
    color: #333;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover, .pagination .active {
    background: var(--accent-blue);
    color: white;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    /* border-radius: 50%; */
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .page-title {
        font-size: 18px;
        padding: 15px 20px;
    }
}

/* ===================
   SÉLECTEUR DE LANGUE
   =================== */
.lang-switcher {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px;
}

.lang-switcher .lang-btn {
    padding: 5px 10px !important;
    font-size: 12px;
    font-weight: 700;
    /* border-radius: 3px; */
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.lang-switcher .lang-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.lang-switcher .lang-btn.active {
    opacity: 1;
    background: var(--color-primary);
    color: white !important;
}

.lang-switcher .lang-separator {
    opacity: 0.5;
    font-weight: 300;
}

/* Categories Filter */
.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.85);
    /* border-radius: 10px; */
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    /* border-radius: 20px; */
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    color: #fff;
}

.category-tag.active {
    background: var(--color-primary);
}

.category-tag i {
    font-size: 12px;
}

/* Video Player */
.article-video {
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    /* border-radius: 10px; */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   STYLES MARKDOWN - Contenu des articles
   ========================================================================== */

/* Base de l'article */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin: 0 0 1em 0;
}

/* Titres */
.article-content h1,
.article-content .md-h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 0.5em 0;
    padding-bottom: 0.3em;
    border-bottom: 3px solid var(--accent-blue);
    color: var(--accent-blue);
}

.article-content h2,
.article-content .md-h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 0.5em 0;
    padding-bottom: 0.2em;
    border-bottom: 2px solid #e0e0e0;
    color: var(--accent-blue);
}

.article-content h3,
.article-content .md-h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0 0 0.4em 0;
    color: #444;
}

/* Texte formaté */
.article-content strong {
    font-weight: 700;
    color: #111;
}

.article-content em {
    font-style: italic;
}

.article-content del {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Liens */
.article-content a,
.article-content .md-link {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-blue);
    transition: all 0.2s;
}

.article-content a:hover,
.article-content .md-link:hover {
    color: var(--accent-cyan);
    border-bottom-style: solid;
}

/* Images */
.article-content figure,
.article-content .md-image {
    margin: 2em 0;
    text-align: center;
}

.article-content figure img,
.article-content .md-image img {
    max-width: 100%;
    height: auto;
    /* border-radius: 12px; */
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.article-content figcaption,
.article-content .img-caption {
    margin-top: 12px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.article-content figcaption:empty,
.article-content .img-caption:empty {
    display: none;
}

/* Citations / Blockquotes */
.article-content blockquote,
.article-content .md-quote {
    border-left: 4px solid var(--accent-blue);
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: linear-gradient(90deg, rgba(51,155,217,0.1) 0%, rgba(51,155,217,0.02) 100%);
    color: #444;
    font-style: italic;
    /* border-radius: 0 10px 10px 0; */
}

.article-content blockquote p,
.article-content .md-quote p {
    margin: 0;
}

/* Séparateur */
.article-content hr,
.article-content .md-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ccc, transparent);
    margin: 2.5em 0;
}

/* Listes */
.article-content ul,
.article-content ol,
.article-content .md-ul,
.article-content .md-ol {
    margin: 1.2em 0;
    padding-left: 2em;
}

.article-content li {
    margin: 0.6em 0;
    line-height: 1.7;
}

.article-content ul,
.article-content .md-ul {
    list-style-type: disc;
}

.article-content ol,
.article-content .md-ol {
    list-style-type: decimal;
}

.article-content ul ul {
    list-style-type: circle;
}

/* ========== BLOCS DE CODE ========== */
.article-content .code-block {
    position: relative;
    margin: 2em 0;
    /* border-radius: 12px; */
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.article-content .code-block .code-lang {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-blue);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    /* border-radius: 0 12px 0 12px; */
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content .code-block pre {
    background: #1a1d23;
    color: #e6e6e6;
    padding: 1.8em;
    padding-top: 2.5em;
    margin: 0;
    overflow-x: auto;
    font-family: 'Share Tech Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.7;
    tab-size: 4;
}

.article-content .code-block code {
    background: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
}

/* Code inline */
.article-content code,
.article-content .inline-code {
    background: #f4f4f4;
    color: #e83e8c;
    padding: 0.2em 0.5em;
    /* border-radius: 4px; */
    font-family: 'Share Tech Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    border: 1px solid #e0e0e0;
}

/* Ne pas styler le code dans les blocs de code */
.article-content .code-block code,
.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* ========== TABLEAUX ========== */
.article-content .table-responsive {
    overflow-x: auto;
    margin: 2em 0;
    /* border-radius: 12px; */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-content table,
.article-content .md-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background: white;
}

.article-content table th,
.article-content .md-table th {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: white;
    font-weight: 600;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content table td,
.article-content .md-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}

.article-content table tr:last-child td,
.article-content .md-table tr:last-child td {
    border-bottom: none;
}

.article-content table tr:nth-child(even),
.article-content .md-table tr:nth-child(even) {
    background: #f9fafb;
}

.article-content table tr:hover,
.article-content .md-table tr:hover {
    background: #f0f7ff;
}

/* ========== VIDÉOS ========== */
.article-content .video-container {
    position: relative;
    margin: 2em 0;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    /* border-radius: 12px; */
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    background: #000;
}

.article-content .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .article-content {
        font-size: 15px;
    }
    
    .article-content h1,
    .article-content .md-h1 {
        font-size: 1.5em;
    }
    
    .article-content h2,
    .article-content .md-h2 {
        font-size: 1.3em;
    }
    
    .article-content .code-block pre {
        padding: 1.2em;
        font-size: 13px;
    }
    
    .article-content table th,
    .article-content table td,
    .article-content .md-table th,
    .article-content .md-table td {
        padding: 10px 12px;
    }
}

/* ==========================================================================
   Breadcrumbs (Fil d'Ariane)
   ========================================================================== */
.breadcrumbs {
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.breadcrumb-item a:hover {
    color: var(--accent-blue);
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    margin: 0 10px;
}

.breadcrumb-item i {
    margin-right: 5px;
}

@media (max-width: 600px) {
    .breadcrumbs {
        padding: 10px 15px;
    }
    
    .breadcrumb-list {
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 6px;
    }
    
    .breadcrumb-item.active {
        max-width: 150px;
    }
}


/* ==========================================================================
   Control Bar (Lecteur Audio + Scroll to Top unifié)
   ========================================================================== */
.control-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* border-radius: 8px; */
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.control-bar:hover {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.control-bar-btn {
    width: 36px;
    height: 36px;
    /* border-radius: 6px; */
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.control-bar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Bouton Play - Style accentué */
.control-bar-btn.play-btn {
    background: var(--accent-blue, #339bd9);
}

.control-bar-btn.play-btn:hover {
    background: var(--accent-cyan, #2488c2);
}

.control-bar-btn.play-btn i {
    margin-left: 2px;
}

.control-bar-btn.play-btn.playing i {
    margin-left: 0;
}

/* Bouton Scroll to Top */
.control-bar-btn.scroll-top-btn {
    background: rgba(255, 255, 255, 0.1);
}

.control-bar-btn.scroll-top-btn:hover {
    background: var(--accent-blue, #339bd9);
}

/* Bouton Volume */
.control-bar-btn.volume-btn {
    background: transparent;
    width: 32px;
    height: 32px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.control-bar-btn.volume-btn:hover {
    background: transparent;
    color: white;
    transform: none;
}

/* Séparateur */
.control-bar-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

/* Volume Slider */
.player-volume {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-slider {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    /* border-radius: 2px; */
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.3);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    /* border-radius: 50%; */
    background: var(--accent-blue, #339bd9);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-cyan, #2488c2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    /* border-radius: 50%; */
    background: var(--accent-blue, #339bd9);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--accent-cyan, #2488c2);
}

/* Responsive */
@media (max-width: 480px) {
    .control-bar {
        padding: 6px 10px;
        gap: 6px;
        bottom: 15px;
        right: 15px;
    }
    
    .control-bar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .control-bar-btn.volume-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .control-bar-separator {
        height: 20px;
        margin: 0 2px;
    }
}

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

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Animation au scroll (activée par JS) */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Délais d'animation pour les grilles */
.news-grid .fade-in-up:nth-child(1) { animation-delay: 0s; }
.news-grid .fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.news-grid .fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.news-grid .fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.news-grid .fade-in-up:nth-child(5) { animation-delay: 0.4s; }
.news-grid .fade-in-up:nth-child(6) { animation-delay: 0.5s; }
.news-grid .fade-in-up:nth-child(7) { animation-delay: 0.6s; }
.news-grid .fade-in-up:nth-child(8) { animation-delay: 0.7s; }
.news-grid .fade-in-up:nth-child(9) { animation-delay: 0.8s; }

.partners-grid .fade-in-up:nth-child(1) { animation-delay: 0s; }
.partners-grid .fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.partners-grid .fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.partners-grid .fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.partners-grid .fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.partners-grid .fade-in-up:nth-child(6) { animation-delay: 0.3s; }

/* Réduire les animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in-scroll {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .scroll-to-top {
        transition: background 0.2s ease;
    }
}
