/* Page Actualités — mise en page centrée, une colonne, couleurs 100% via
   les variables du thème (--primary, --accent...), donc les thèmes
   saisonniers continuent de recolorer la page automatiquement. */

.news-wrap { padding-bottom: 90px; min-height: 70vh; }

.news-head { text-align: center; max-width: 640px; margin: 0 auto; padding: 56px 20px 28px; }
.news-head h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 800; margin: 0 0 12px; }
.news-head p { opacity: .7; margin: 0; font-size: 1.05rem; line-height: 1.5; }

/* ---------- Filtres par catégorie ---------- */
.news-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto 40px; padding: 0 20px; }
.news-filter {
    --badge-color: var(--primary);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem;
    color: inherit; text-decoration: none; background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1); transition: .2s;
}
.news-filter span { opacity: .55; font-weight: 500; font-size: .82em; }
.news-filter:hover { border-color: var(--badge-color); }
.news-filter.is-active { background: var(--badge-color); border-color: var(--badge-color); color: #fff; }
.news-filter.is-active span { opacity: .85; }

/* ---------- Badges (catégories + épinglé) ---------- */
.news-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.news-badges-center { justify-content: center; }
.news-badge {
    --badge-color: var(--primary);
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700;
    letter-spacing: .03em; text-transform: uppercase;
    color: var(--badge-color); background: color-mix(in srgb, var(--badge-color) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--badge-color) 40%, transparent);
}
.news-badge-pin { color: #ffb066; background: rgba(255, 176, 102, .16); border-color: rgba(255, 176, 102, .4); }

/* ---------- Liste, une colonne centrée ---------- */
.news-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding: 0 20px; }

.news-item {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.news-item:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--primary-rgb, 30, 159, 224), .4);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb, 30, 159, 224), .18);
}

.news-item-img { width: 100%; aspect-ratio: 21/9; background-position: center; background-size: cover; }
.news-item-body { padding: 28px 32px 30px; }

.news-item-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.news-item-date { color: var(--primary-light); }
.news-item-dot { opacity: .4; }
.news-item-ago { opacity: .55; text-transform: none; letter-spacing: normal; font-weight: 400; }

.news-item-body h2 { font-size: 1.45rem; line-height: 1.3; margin: 0 0 12px; font-weight: 800; }
.news-item-excerpt { margin: 0 0 20px; opacity: .78; line-height: 1.6; }

.news-item-cta {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: .92rem;
    color: #fff; text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 18px rgba(var(--primary-rgb, 30, 159, 224), .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-item-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(var(--primary-rgb, 30, 159, 224), .5); }
.news-item-cta i { font-size: .8rem; transition: transform .2s ease; }
.news-item-cta:hover i { transform: translateX(3px); }

/* ---------- Pagination ---------- */
.news-pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.news-pager a { min-width: 42px; padding: 10px 14px; text-align: center; border-radius: 999px; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .06); font-weight: 600; }
.news-pager a:hover, .news-pager a.current { background: var(--primary); color: #fff; }

/* ---------- État vide ---------- */
.news-empty { text-align: center; padding: 90px 20px; opacity: .85; }
.news-empty i { font-size: 3rem; color: var(--primary-light); margin-bottom: 16px; }

/* ---------- Article ---------- */
.news-article { max-width: 720px; margin: 0 auto; padding: 44px 20px 0; }
.news-back { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-light); text-decoration: none; font-size: .9rem; font-weight: 600; margin-bottom: 22px; }
.news-article h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.2; margin: 0 0 16px; font-weight: 800; text-align: center; }
.news-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; opacity: .65; font-size: .9rem; margin: 0 0 30px; }
.news-cover { width: 100%; border-radius: 20px; margin-bottom: 34px; }

.news-body { font-size: 1.06rem; line-height: 1.85; }
.news-body h2, .news-body h3, .news-body h4 { margin: 1.8em 0 .6em; line-height: 1.3; }
.news-body img { max-width: 100%; height: auto; border-radius: 14px; }
.news-body a { color: var(--primary-light); }
.news-body blockquote { margin: 1.4em 0; padding: 6px 22px; border-left: 4px solid var(--primary); background: rgba(255, 255, 255, .04); border-radius: 0 12px 12px 0; }
.news-body code { background: rgba(255, 255, 255, .1); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.news-body pre { background: rgba(0, 0, 0, .4); padding: 18px; border-radius: 14px; overflow-x: auto; }
.news-body pre code { background: none; padding: 0; }
.news-body hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 2.2em 0; }
.news-preview { max-width: 720px; margin: 0 auto 20px; background: rgba(255, 196, 92, .15); border: 1px solid rgba(255, 196, 92, .5); padding: 11px 18px; border-radius: 12px; font-size: .9rem; }

@media (max-width: 560px) {
    .news-item-body { padding: 22px 20px 24px; }
    .news-item-body h2 { font-size: 1.25rem; }
}