/* ========================================
   ARTICLE DISPLAY - Version moderne
   Design cohérent noir/rouge/jaune
======================================== */

.article-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0;
}

/* ========================================
   HERO SECTION
======================================== */
.article-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-bottom-left-radius: 12px 12px;
    border-bottom-right-radius: 12px 12px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.7) 60%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 3rem 2rem 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ========================================
   MÉTADONNÉES
======================================== */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.meta-category {
    padding: 0.4rem 0.9rem;
    background: rgba(227, 6, 19, 0.95);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.meta-date,
.meta-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.meta-date svg,
.meta-author svg {
    opacity: 0.8;
}

/* ========================================
   TITRE ET EXCERPT
======================================== */
.article-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.article-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ========================================
   CONTENU ARTICLE
======================================== */
.article-content {
    background: white;
    padding: 0rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #E30613;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content a {
    color: #E30613;
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: #FFD700;
}

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

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

.article-content blockquote {
    border-left: 4px solid #FFD700;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

/* ========================================
   BOUTONS D'ACTION (ADMIN)
======================================== */
.article-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.btn-admin,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-admin {
    background: #E30613;
    color: white;
}

.btn-admin:hover {
    background: #c00510;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ========================================
   ARTICLES RELIÉS
======================================== */
.related-articles {
    width: 95%;
    margin: auto;
    margin-top: 2rem;
}

.related-articles .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(227, 6, 19, 0.4);
}

.related-card a {
    display: block;
    text-decoration: none;
    color: white;
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h3 {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.related-date {
    display: block;
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    color: #999;
}

/* ========================================
   RESPONSIVE
======================================== */

/* Tablette */
@media (max-width: 1024px) {
    .article-title {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablette portrait */
@media (max-width: 768px) {
    .article-hero {
        min-height: 400px;
    }
    
    .hero-content {
        padding: 2rem 1.5rem 1.5rem;
        min-height: 400px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .article-hero {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem 1rem;
        min-height: 350px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .article-content {
        padding: 1.5rem 1rem;
        font-size: 1rem;
    }
    
    .article-actions {
        flex-direction: column;
    }
}

