/* ========================================
   AFFICHAGE DES ARTICLES - Belgium Vidéo Gaming
   ======================================== */

/* ========================================
   SURRÉCRITURE DU LAYOUT PRINCIPAL (pour les articles)
   ======================================== */

/* Surréécrire .main-content sur les pages d'articles */
.main-content {
    position: relative;
    z-index: 2;
    width: 70vw;
    max-width: 1200px;
    background: white;
    min-height: calc(100vh - 200px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE DESIGN POUR ARTICLES
   ======================================== */

@media (min-width: 1400px) {
    .main-content {
        width: 70vw;
        max-width: 1400px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        width: 90vw;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        width: 100vw;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: calc(100vh - 150px);
    }
    
    .article-content {
        padding: 0 1rem;
        margin: 1rem 0;
    }
    
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-content p,
    .article-content div,
    .article-content span,
    .article-content li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Images responsives dans le contenu */
    .article-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 1rem auto;
    }
    
    /* Conteneurs d'images */
    .article-content .image-container,
    .article-content .content-module img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        width: 100vw;
        padding: 0;
    }
    
    .article-content {
        padding: 0 0.75rem;
        font-size: 16px !important;
    }
    
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        font-size: 1.3rem !important;
    }
}

/* ========================================
   CONTENU DE L'ARTICLE (sans layout principal)
   ======================================== */

/* Contenu de l'article */
.article-content {
    margin: 2rem 0;
    line-height: 1.8;
    font-size: var(--font-size-base) !important; /* 18px - forcé */
    color: #333;
}

/* Forcer la taille de police pour tout le contenu généré par l'éditeur */
.article-content * {
    font-size: inherit !important;
}

/* Styles spécifiques pour le contenu de l'éditeur WYSIWYG */
.article-content p,
.article-content div,
.article-content span,
.article-content li {
    font-size: var(--font-size-base) !important; /* 18px */
    line-height: 1.6 !important;
    text-align: center;
}

/* Amélioration de l'affichage du contenu modulaire */
.article-content .content-section {
    margin: 0rem 0;
}

.article-content .content-module {
    margin: 0.5rem 0;
}

.article-content .text-content {
    line-height: 1.8;
    font-size: var(--font-size-base); /* 18px */
    color: #333;
}

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

.article-content .text-content h1,
.article-content .text-content h2,
.article-content .text-content h3,
.article-content .text-content h4,
.article-content .text-content h5,
.article-content .text-content h6,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: var(--font-family-heading) !important;
    color: #2c3e50 !important;
    margin: 1.5rem 0 1rem 0 !important;
    font-weight: 600 !important;
}

.article-content .text-content h1,
.article-content h1 { font-size: 2rem !important; }
.article-content .text-content h2,
.article-content h2 { font-size: 1.8rem !important; }
.article-content .text-content h3,
.article-content h3 { font-size: 1.5rem !important; }
.article-content .text-content h4,
.article-content h4 { font-size: 1.3rem !important; }
.article-content .text-content h5,
.article-content h5 { font-size: 1.1rem !important; }
.article-content .text-content h6,
.article-content h6 { font-size: 1rem !important; }

/* Message pour article sans contenu */
.no-content {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

/* Actions de l'article */
.article-actions {
    margin: 3rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
