.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.single-article {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-header {
    position: relative;
    height: 300px; /* Réduit de 400px à 300px */
    margin-bottom: 2rem;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.1);
    transition: transform 0.3s ease;
    filter: blur(3px); /* Ajoute l'effet de flou */
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0.95;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem; /* Réduit encore le padding vertical */
    color: var(--white);
    text-align: center; /* Centre le contenu */
}

.header-content h1 {
    font-size: 2.2rem; /* Légèrement plus petit */
    margin-bottom: 1rem; /* Réduit la marge */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    opacity: 0.95; /* Plus visible */
}

.article-meta span {
    background: rgba(0, 0, 0, 0.3); /* Fond semi-transparent pour meilleure lisibilité */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Animation au hover */
.article-header:hover .header-image {
    transform: scale(1.15);
}

.featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
    line-height: 1.6;
}

.article-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--light-gray);
}

.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    margin-right: 0.5rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInBottom 0.8s ease forwards;
}

.zoom-in {
    transform: scale(0.95);
    animation: zoomIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    to {
        transform: scale(1);
    }
}