/* Actualités, activités et galerie dynamique (contenus gérés depuis l'admin) */
:root { --ifad-blue: #1435b2; --ifad-red: #801418; }

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 45px rgba(0, 0, 0, .12); }
.news-card .news-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f9; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-img .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ifad-blue); font-size: 42px; opacity: .3; }
.news-card .news-cat {
    position: absolute; left: 16px; top: 16px; background: var(--ifad-blue); color: #fff;
    font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.news-card .news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .news-date { color: #777; font-size: 14px; margin-bottom: 8px; }
.news-card h4 { font-size: 21px; line-height: 1.3; margin-bottom: 12px; }
.news-card h4 a { color: inherit; }
.news-card h4 a:hover { color: var(--ifad-red); }
.news-card p { color: #666; margin-bottom: 18px; }
.news-card .news-more { margin-top: auto; font-weight: 600; color: var(--ifad-blue); }
.news-card .news-more:hover { color: var(--ifad-red); }

/* Bloc date d'une activité */
.act-date {
    position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 8px;
    text-align: center; padding: 6px 12px; min-width: 64px; box-shadow: 0 4px 18px rgba(0,0,0,.15);
}
.act-date strong { display: block; font-family: 'Jost', sans-serif; font-size: 26px; line-height: 1; color: var(--ifad-blue); }
.act-date span { font-size: 12px; text-transform: uppercase; font-weight: 600; color: #555; }
.act-info { list-style: none; padding: 0; margin: 0 0 16px; color: #666; font-size: 15px; }
.act-info li { margin-bottom: 4px; }
.act-info i { color: var(--ifad-red); width: 20px; }
.act-passee { filter: grayscale(.35); }

/* Page de lecture */
.article-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.article-meta { color: #777; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 18px; }
.article-meta i { color: var(--ifad-red); margin-right: 6px; }
.article-lead { font-size: 19px; color: #444; border-left: 4px solid var(--ifad-blue); padding-left: 18px; margin-bottom: 28px; }
.article-content { font-size: 17px; line-height: 1.8; color: #444; }
.article-content h2, .article-content h3 { margin: 30px 0 14px; }
.article-content blockquote { border-left: 4px solid var(--ifad-blue); background: #f3f5fc; padding: 14px 20px; margin: 20px 0; font-style: italic; }
.article-content a { text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 22px; }
.article-side { background: #f4f6fc; border-radius: 8px; padding: 26px; }
.article-side h5 { margin-bottom: 16px; }
.article-side .side-item { display: flex; gap: 12px; margin-bottom: 16px; color: var(--dark); }
.article-side .side-item img, .article-side .side-item .ph { width: 76px; height: 58px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #e3e8f5; }
.article-side .side-item span { font-weight: 600; font-size: 15px; line-height: 1.35; }
.article-side .side-item small { display: block; color: #888; font-weight: 400; }
.article-side .side-item:hover span { color: var(--ifad-blue); }
.share-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ifad-blue); color: #fff; margin-right: 6px; }

.act-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.act-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.act-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.act-gallery a:hover img { transform: scale(1.06); }

.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state i { font-size: 46px; color: var(--ifad-blue); opacity: .4; margin-bottom: 16px; }

/* Galerie : vignettes de hauteur homogène pour les photos ajoutées depuis l'admin */
.portfolio-inner img.img-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.news-card .news-date i { color: var(--ifad-red) !important; }
.pagination .page-link { color: var(--ifad-blue); }
.pagination .page-item.active .page-link { background: var(--ifad-blue); border-color: var(--ifad-blue); color: #fff; }
