/* ACTUS — feed et posts. Complète signal.css (variables, en-tête, formulaire, pied de page). */

/* ---------- Méta : catégorie, date, temps de lecture ---------- */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font: 500 .8125rem/1.3 var(--mono); color: var(--dim); }
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--signal-2)); box-shadow: 0 0 8px var(--c, var(--signal)); }
.tag-entretien { --c: var(--signal-2); }
.tag-pannes { --c: var(--standby); }
.tag-jeux { --c: #f4f7ff; }

/* ---------- Feed ---------- */
.feed { padding: 24px var(--gut) 40px; max-width: calc(76rem + 2 * var(--gut)); margin: 0 auto; }
.feed-head h1 { font-weight: 600; font-stretch: 86%; font-size: clamp(2.4rem, 10vw, 4.6rem); line-height: .98; letter-spacing: -.03em; }
.feed-head p { margin-top: 14px; max-width: 34rem; color: #b9c3d6; }

/* Le rail : le signal qui relie les posts, du plus récent au plus ancien */
.feed-list { position: relative; display: grid; max-width: 64rem; gap: 20px; margin-top: 40px; padding-left: 22px; }
.feed-list::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--signal), var(--line) 30%); }
.feed-item { position: relative; }
.feed-item::before { content: ""; position: absolute; left: -22px; top: 26px; width: 7px; height: 7px; border-radius: 50%; background: var(--black); box-shadow: inset 0 0 0 1.5px var(--dim); }
.feed-item:first-child::before { background: var(--signal-2); box-shadow: 0 0 10px var(--signal); }

.card { position: relative; display: grid; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.card:hover, .card:focus-within { border-color: rgba(154, 216, 255, .45); }
.card-fig { aspect-ratio: 16 / 10; overflow: hidden; background: var(--screen); }
.card-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.card-txt { display: grid; align-content: start; gap: 12px; padding: 18px 18px 22px; }
.card h2 { font-size: clamp(1.375rem, 5.4vw, 1.875rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.card h2 a { text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.card h2 a:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--signal-2); outline-offset: 3px; }
.card-txt > p:last-child { color: var(--dim); font-size: .9375rem; }

@media (min-width: 720px) {
  .feed-list { padding-left: 32px; }
  .feed-item::before { left: -32px; }
  .card { grid-template-columns: 280px 1fr; }
  .card-fig { aspect-ratio: auto; min-height: 220px; }
  .card-txt { padding: 26px 28px; align-content: center; }
}

/* ---------- Post ---------- */
.post { display: grid; gap: 28px; padding: 16px var(--gut) 72px; max-width: calc(72rem + 2 * var(--gut)); margin: 0 auto; }
.post-head h1 { margin-top: 16px; font-weight: 600; font-stretch: 86%; font-size: clamp(2.1rem, 8.4vw, 3.9rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.sv-top .crumbs [aria-current] { display: inline-block; max-width: min(22ch, 50vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; border-radius: 14px; border: 1px solid var(--line); }
.post-fig figcaption { margin-top: 10px; font-size: .8125rem; color: var(--dim); }

.post-body { max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; }
.post-body p { color: #c6d0e2; }
.post-body p + p, .post-body h2 + p { margin-top: 14px; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { color: var(--signal-2); text-underline-offset: 3px; }
.post-body h2 { margin: 44px 0 0; font-size: clamp(1.5rem, 5.4vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.post-body > :first-child { margin-top: 0; }
.post-body ul { margin-top: 16px; border-top: 1px solid var(--line); }
.post-body li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); color: #c6d0e2; line-height: 1.5; }
.post-body li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--standby); box-shadow: 0 0 10px rgba(255, 69, 58, .7); }
.post-warn { margin-top: 22px; padding: 16px 18px; border-left: 2px solid var(--standby); border-radius: 0 10px 10px 0; background: rgba(255, 69, 58, .07); color: #dfe5f1; line-height: 1.6; }
.post-go { margin-top: 24px; }
.post-go a { display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border-radius: 14px; border: 1px solid rgba(154, 216, 255, .5); color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color .2s; }
.post-go a:hover { background: rgba(90, 169, 255, .1); }

.post-cta { max-width: 40rem; padding-top: 28px; border-top: 1px solid var(--line); }
.post-cta p { color: var(--dim); }
.post .tv-cta { margin-top: 16px; }

@media (min-width: 720px) {
  .post .tv-cta { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 1024px) {
  .post { grid-template-columns: minmax(0, 40rem) 340px; justify-content: space-between; column-gap: 64px; row-gap: 40px; }
  .post-head { grid-column: 1 / -1; max-width: 52rem; }
  .post-fig { grid-column: 2; grid-row: 2 / span 2; align-self: start; position: sticky; top: 96px; }
  .post-fig img { aspect-ratio: 1050 / 1400; }
  .post-body, .post-cta { grid-column: 1; }
}
