/* ===================================================
   ACTUALITÉS — Styles spécifiques
   Hérite des composants partagés de all.css et base.css
   =================================================== */

/* ---------- Liste des actualités ---------- */
.actu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .actu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .actu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Carte d'actualité ---------- */
.actu-card {
    background-color: var(--color-light, #fafafa);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.actu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.actu-card__img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #000;
    overflow: hidden;
}

.actu-card__img-blur {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.7);
    z-index: 1;
}

.actu-card__img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.actu-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actu-card__date {
    font-size: 0.8rem;
    color: var(--color-green, #006600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.actu-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-heading, #9e141a);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.actu-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-text, #333);
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actu-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-green, #006600);
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.actu-card__link:hover {
    color: var(--main-color, #145e3c);
    text-decoration: underline;
}

/* ---------- Page article détaillé ---------- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    width: 100%;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--color-green, #006600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 2.2rem;
    color: var(--color-heading, #9e141a);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.article-chapeau {
    font-size: 1.15rem;
    color: var(--color-green, #006600);
    font-style: italic;
    border-left: 4px solid var(--color-green, #006600);
    padding-left: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-cover-wrapper {
    position: relative;
    width: 100%;
    max-height: 450px;
    height: 450px; /* Fixed height for consistency in detail view if we want blur */
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-cover-blur {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    z-index: 1;
}

.article-cover {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.article-body {
    font-size: 1.1rem;
    color: var(--color-text, #333);
    line-height: 1.8;
}

.article-body a {
    color: var(--color-green, #006600);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--main-color, #145e3c);
}

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

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--color-green, #006600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-back:hover {
    color: var(--main-color, #145e3c);
    text-decoration: underline;
}

/* ---------- Message vide / 404 ---------- */
.actu-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text, #333);
}

.actu-empty p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ---------- Responsive mobile ---------- */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.6rem;
    }

    .article-container {
        padding: 1.5rem 1rem 3rem;
    }

    .actu-card__img-wrapper {
        height: 180px;
    }
    .article-cover-wrapper {
        height: 250px;
    }
}
