/* ═════════════════════════════════════════════════
   Actualités, contenu et articles.
   Mêmes jetons que le reste du site (--ws-*, --wsp-*) : rien de nouveau n'est déclaré en dur,
   hormis le gabarit des cartes.
   ═════════════════════════════════════════════════ */

.wsa-lead {
    max-width: 68ch;
    margin: 0 0 clamp(28px, 4vw, 44px);
    font-size: var(--ws-t-lg);
    line-height: 1.65;
    color: var(--ws-texte);
}
.wsa-lead a, .wsa-empty a, .wsa-body a, .wsa-meta a, .wsa-back a { color: var(--ws-vert-encre); text-underline-offset: 2px; }

/* ── Filtres ───────────────────────────────── */
.wsa-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(24px, 3vw, 36px); }
.wsa-filters a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
    border: 1px solid var(--ws-trait-fort); border-radius: 999px;
    background: var(--ws-papier); color: var(--ws-encre);
    font-size: var(--ws-t-sm); font-weight: 600; text-decoration: none;
    transition: background .15s, border-color .15s;
}
.wsa-filters a:hover { border-color: var(--ws-accent-fort); }
.wsa-filters a[aria-current="true"] { background: var(--ws-accent); border-color: var(--ws-accent); color: var(--ws-encre); }

/* ── Grille de cartes ─────────────────────────────── */
.wsa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.wsa-card {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--ws-papier); border: 1px solid var(--ws-trait); border-radius: 12px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform .2s, border-color .2s;
}
.wsa-card:hover { transform: translateY(-4px); border-color: var(--ws-trait-fort); }
.wsa-card:focus-visible { outline: 3px solid var(--ws-info); outline-offset: 2px; }
.wsa-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ws-sol); overflow: hidden; }
.wsa-card__media img, .wsa-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wsa-card__media:empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--ws-accent-doux), var(--ws-sol)); }
.wsa-play {
    position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .94); display: grid; place-items: center;
}
.wsa-play svg { width: 18px; height: 18px; fill: var(--ws-encre); margin-left: 2px; }
.wsa-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.wsa-card__tag { font-size: var(--ws-t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-vert-encre); }
.wsa-card__title { font-size: var(--ws-t-h3); font-weight: 700; line-height: 1.25; color: var(--ws-encre); text-wrap: balance; }
.wsa-card__excerpt { font-size: var(--ws-t-sm); line-height: 1.6; color: var(--ws-texte); }
.wsa-card__date { margin-top: auto; padding-top: 4px; font-size: var(--ws-t-sm); color: var(--ws-doux); }

.wsa-empty {
    max-width: 62ch; padding: 28px 30px; border: 1px dashed var(--ws-trait-fort); border-radius: 12px;
    background: var(--ws-sol); color: var(--ws-texte); line-height: 1.65;
}
.wsa-empty p + p { margin-top: 8px; }

/* ── Article ───────────────────────────────── */
.wsa-article { max-width: 820px; }
.wsa-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: var(--ws-t-sm); color: var(--ws-doux); }
.wsa-video, .wsa-cover { margin: 0 0 clamp(24px, 3vw, 36px); }
.wsa-video video, .wsa-cover img { display: block; width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
.wsa-cover img { background: var(--ws-sol); object-fit: cover; }

.wsa-body { font-size: var(--ws-t-lg); line-height: 1.75; color: var(--ws-texte); }
.wsa-body > *:first-child { margin-top: 0; }
.wsa-body p { margin: 0 0 1.15em; }
.wsa-body h2 { margin: 2.2em 0 .7em; font-size: var(--ws-t-h2); line-height: 1.2; color: var(--ws-encre); }
.wsa-body h3 { margin: 1.8em 0 .6em; font-size: var(--ws-t-h3); line-height: 1.25; color: var(--ws-encre); }
.wsa-body ul, .wsa-body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.wsa-body li { margin-bottom: .4em; }
.wsa-body blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ws-accent); color: var(--ws-encre); font-style: italic; }
.wsa-body strong { color: var(--ws-encre); }
.wsa-body hr { border: 0; border-top: 1px solid var(--ws-trait); margin: 2.4em 0; }

.wsa-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin: clamp(36px, 5vw, 56px) 0 0; padding: 24px 28px;
    background: var(--ws-accent-doux); border-radius: 12px; color: var(--ws-encre); font-weight: 600;
}
.wsa-cta p { margin: 0; }
.wsa-cta a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
    background: var(--ws-accent); color: var(--ws-encre); border-radius: 8px; font-weight: 700; text-decoration: none;
}
.wsa-cta a:hover { background: var(--ws-accent-fort); }
.wsa-back { margin: 28px 0 0; font-size: var(--ws-t-sm); }

@media (prefers-reduced-motion: reduce) { .wsa-card, .wsa-filters a { transition: none; } .wsa-card:hover { transform: none; } }
