/* ============================================================
   ACTUALITÉS — style d'Escapade pour le module « news » du socle
   Cartes (aussi sur l'accueil), « à la une », filtres en gommettes,
   fiche avec bandeau de catégorie (teintes .tone-* de core/css/layout.css)
   ============================================================ */
[data-route="news"] .news-page { max-width: none; margin: 0; }
[data-route="news"] .news-page-back { display: none; }
:where(.post-card, .post-une, .post-filters button, .article) { --c: var(--c-magenta); --s: var(--c-magenta-soft); --i: var(--c-magenta-ink); }

/* ---------- Cartes en bulles ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--c-line); border-radius: 22px 22px 22px 6px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, border-color .25s; animation: fun-hop .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--n, 0) * .08s); }
.post-card:nth-child(3n+2) { border-radius: 22px 22px 6px 22px; }
.post-card:nth-child(3n) { border-radius: 22px 6px 22px 22px; }
.post-card:hover, .post-card:focus-visible { transform: translateY(-5px) rotate(-1deg); border-color: var(--c); }
.post-card:hover .ph-img svg { animation: fun-jump .5s ease-out; }
.post-card .ph-img, .post-une .ph-img { border-radius: 0; aspect-ratio: 16 / 9; }
.post-card .ph-img img, .post-une .ph-img img, .article .ph-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card h3 { margin: 0; font-size: 19px; }
.post-card p { margin: 0; color: var(--c-mute); font-size: 15px; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: var(--c-mute); }
.post-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; border-radius: var(--r-pill); padding: 2px 10px; background: var(--s); color: var(--i); }
.post-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.post-card .link-more, .post-une .link-more { margin-top: auto; color: var(--i); }
.post-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* ---------- À la une ---------- */
.post-une { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: 26px; overflow: hidden; background: var(--s); text-decoration: none; color: inherit; margin-bottom: 20px; transition: transform .25s; animation: fun-hop .6s both; }
.post-une:hover, .post-une:focus-visible { transform: translateY(-4px) rotate(-.4deg); }
.post-une .ph-img { aspect-ratio: auto; min-height: 280px; background: #fff; }
.post-une .post-body { padding: 26px 28px; justify-content: center; gap: 10px; }
.post-une-flag { align-self: flex-start; font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; background: var(--c-black); color: #fff; border-radius: 8px; padding: 2px 10px; transform: rotate(-3deg); }
.post-une .post-chip { background: #fff; }
.post-une h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); }
.post-une p { margin: 0; }

/* ---------- Filtres en gommettes ---------- */
.post-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.post-filters button { font: inherit; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--c); background: #fff; color: var(--i); border-radius: var(--r-pill); padding: 4px 14px 4px 5px; cursor: pointer; transition: transform .2s; }
.post-filters .post-filter-all { --c: var(--c-black); --s: var(--c-bg); --i: var(--c-ink); }
.post-filters i { width: 24px; height: 24px; border-radius: 50%; background: var(--s); color: var(--c); display: grid; place-items: center; }
.post-filters i svg { width: 15px; height: 15px; }
.post-filters button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; transform: rotate(-2deg); }
.post-filters .tone-yellow[aria-pressed="true"] { color: var(--c-black); }
.post-filters button[aria-pressed="true"] i { background: #fff; }
.post-filters button:hover i { animation: fun-jump .5s ease-out; }

/* ---------- Fiche d'une actualité ---------- */
.article { max-width: none; }
.article-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: center; background: var(--s); border-radius: 26px; padding: 28px 32px; overflow: hidden; }
.article-band::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--c); opacity: .12; }
.article-band .back-link { color: var(--i); margin-bottom: 8px; }
.article-band h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 8px; }
.article-lead { margin: 0; font-size: 17px; }
.article-ticket { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; background: #fff; border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.article-ticket time { display: inline-flex; align-items: baseline; gap: 6px; }
.article-ticket b { font-family: var(--f-display); font-size: 26px; line-height: 1; color: var(--i); }
.article-cover { position: relative; z-index: 1; }
.article-cover .ph-img { background: #fff; border-radius: 18px; aspect-ratio: 4 / 3; transform: rotate(3deg); box-shadow: 8px 8px 0 var(--c); animation: fun-drop .7s .15s cubic-bezier(.3, 1.5, .5, 1) both; }
.article-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 32px; margin-top: 28px; align-items: start; }
.article-body:has(> .article-album[hidden]) { grid-template-columns: minmax(0, 760px); }
.article-text .prose { font-size: 18px; }
.article-album { background: #fff; border: 3px solid var(--s); border-radius: 22px; padding: 18px; display: grid; gap: 12px; animation: fun-hop .5s both; }
.article-album h2 { font-size: 19px; margin: 0; }
.article-album-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.article-album-mini .ph-img { border-radius: 10px; aspect-ratio: 4 / 3; }
.article-album .btn { justify-self: start; }
.article-related { margin-top: 36px; }
.article-related h2 { font-size: 22px; margin-bottom: 14px; }

@media (max-width: 860px) {
  .post-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-une, .article-band, .article-body { grid-template-columns: minmax(0, 1fr); }
  .post-une .ph-img { min-height: 0; aspect-ratio: 16 / 9; }
  .article-band { padding: 22px; }
  .article-cover { max-width: 300px; }
}
@media (max-width: 560px) {
  .post-wall { grid-template-columns: minmax(0, 1fr); }
  .post-une .post-body { padding: 20px; }
}
