/* =========================================================
   ACTUALITÉS — cartes utilisées sur l'accueil (3 dernières)
   et sur actualites.html (toutes). Rien d'autre dans ce fichier.
========================================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    padding: 20px 22px;
    color: #fff;
    overflow: hidden;
    background: #222;
    text-decoration: none;
}
.news-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.news-card::before {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.8) 5%, rgba(0,0,0,.3) 100%);
}
.news-card > time,
.news-card > h3 { position: relative; z-index: 2; color: #fff!important; }
.news-card time { font-size: 12px; font-weight: 600; }
.news-card h3 { font-size: 16px; font-weight: 500; line-height: 1.4; margin: 0; }
.news-card:hover img { transform: scale(1.05); }
.news-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.news-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
    .news-card img { transition: none; }
}