/* Onima Actualites : page-specific styles (list + detail).
   Reuses system tokens/classes from onima.css (.container, .page-hero,
   .section, .prose, .chip, .btn) : this file only adds what those do not
   already cover, so it must load after onima.css. */

/* ---------- Narrow reading column (article header/body/footer) ---------- */
.container--narrow { max-width: 760px; }

/* ---------- Article list grid ---------- */
.actu-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.actu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.actu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.actu-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.actu-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #dde4dd;
}
.actu-card__image { width: 100%; height: 100%; object-fit: cover; }

.actu-card__media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-tint) 0%, #d6ead0 100%);
}
.actu-card__fallback-icon { width: 40px; height: auto; opacity: .9; }

.actu-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.actu-card__date {
  color: var(--green-deep);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.actu-card__title {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-2);
  letter-spacing: -0.01em;
  line-height: 1.28;
}

.actu-card__desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actu-card__chips { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Empty state ---------- */
.actu-empty {
  margin-top: 8px;
  padding: 72px 24px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.actu-empty__icon { opacity: .55; margin: 0 auto 18px; }
.actu-empty__text { color: var(--ink-soft); font-size: 17px; font-weight: 600; }

/* ---------- Article detail ---------- */
/* Bandeau d'embargo : l'analyse est deja lisible par l'abonne, elle passera
   en public a la date annoncee. Un liseré, pas une banniere : le lecteur qui
   la voit est deja client, il n'a rien a acheter. */
.article-embargo-wrap { padding-top: 40px; }
.article-embargo-wrap + .article-header { padding-top: 24px; }
.article-embargo {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-deep);
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.article-header { padding: 56px 0 8px; }
.article-header__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-header__date {
  color: var(--green-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-header__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.article-header__title {
  margin-top: 16px;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy-2);
}
.article-header__lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.article-figure { margin-top: 32px; }
.article-figure__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.article-figure__caption {
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

.article > .container--narrow > .prose { margin-top: 36px; padding-bottom: 8px; }

.article-footer {
  margin: 40px 0 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.article-footer__back {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}
.article-footer__back:hover { color: var(--green-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .actu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .actu-grid { grid-template-columns: 1fr; gap: 18px; }
  .actu-empty { padding: 56px 20px; }
  .article-header { padding: 40px 0 4px; }
  .article-footer { flex-direction: column; align-items: stretch; text-align: center; }
}
