/* ==========================================================================
   Prittio — actualités
   Section « Actualités » de l'accueil, page liste et modèle d'article.
   Réutilise les tokens de base.css ; aucune règle existante n'est modifiée.
   ========================================================================== */

/* ---------- carte article (accueil, liste, « à lire aussi ») ---------- */
.ncards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  margin-top: 60px;
}
.ncard { display: flex; flex-direction: column; min-width: 0; }
.ncard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: var(--teal-800);
}
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-expo); }
.ncard:hover .ncard__media img { scale: 1.05; }

/* emplacement d'image tant qu'aucun visuel n'est choisi */
.ncard__ph, .article__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 243, 230, .05) 0 14px, rgba(255, 243, 230, 0) 14px 28px),
    var(--teal-800);
  color: rgba(255, 243, 230, .55);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.ncard__tag {
  position: absolute; left: 16px; top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.ncard__meta {
  margin-top: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
}
.ncard__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  transition: color .35s;
}
.ncard__excerpt { margin-top: 12px; opacity: .72; }
.ncard__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.ncard__more svg { width: 14px; height: 14px; transition: translate .35s var(--ease-expo); }
.ncard:hover .ncard__more svg { translate: 3px -3px; }
.ncard:hover .ncard__title { color: var(--orange); }

/* ---------- section de l'accueil ---------- */
.news { z-index: 7; background: var(--white); color: var(--ink); }
.news .ncard__ph { color: rgba(255, 243, 230, .6); }

/* ---------- page liste ---------- */
.newslist .ncards { margin-top: 0; }
.ncard--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(6, 42, 51, .14);
}
.ncard--lead .ncard__meta { margin-top: 0; }
.ncard--lead .ncard__title { font-size: clamp(30px, 3.6vw, 60px); }
.ncard--lead .ncard__excerpt { font-size: 16px; max-width: 46ch; }
.newslist__empty {
  margin-top: 54px;
  padding: 22px 26px;
  border: 1px dashed rgba(6, 42, 51, .3);
  border-radius: 18px;
  font-size: 14px;
  color: rgba(6, 42, 51, .7);
}

/* ---------- modèle d'article ---------- */
.phero--article .phero__title {
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: .92;
  max-width: 16ch;
  text-wrap: balance;
}
.article__meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 30px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 243, 230, .7);
}
.article__meta b { color: var(--peach); font-weight: 600; }

.article { z-index: 4; }
.article .stack__inner { padding-top: calc(var(--radius-xl) + 40px); }
.article__cover {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: 16 / 8;
  border-radius: 28px;
  overflow: hidden;
  background: var(--teal-800);
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

.prose {
  max-width: 720px;
  margin: 70px auto 0;
  font-size: 17px;
  line-height: 1.75;
}
.prose > * + * { margin-top: 22px; }
.prose .prose__lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; font-weight: 500; }
.prose h2 {
  margin-top: 54px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 2.8vw, 42px); line-height: 1; text-transform: uppercase;
}
.prose h3 { margin-top: 38px; font-size: 20px; font-weight: 700; }
.prose ul { padding-left: 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .7em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
}
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin-top: 40px; padding: 6px 0 6px 28px;
  border-left: 4px solid var(--orange);
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; font-weight: 500;
}
.prose figure { margin-top: 40px; }
.prose figure .article__fig {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--teal-800);
}
.prose figcaption { margin-top: 10px; font-size: 13px; opacity: .6; }
.prose__note {
  font-size: 13px !important;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(232, 72, 11, .08);
  color: var(--orange-600);
}

.article__foot {
  max-width: 720px;
  margin: 64px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(6, 42, 51, .14);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.article__share { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.article__share span { opacity: .55; margin-right: 6px; }
.article__share a:hover { color: var(--orange); }
.btn-ghost-ink {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(6, 42, 51, .3);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.btn-ghost-ink svg { width: 14px; height: 14px; }
.btn-ghost-ink:hover { background: var(--ink); color: var(--cream); }

.related .ncards { margin-top: 40px; }
.related__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4vw, 64px); line-height: 1; text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ncard--lead { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .ncards { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
}

/* Article : l'image principale en fond de l'ouverture, comme les fiches projet (28/10) */
.pjhero--article .pjhero__title { font-size: clamp(40px, 5.8vw, 96px); line-height: .92; max-width: 18ch; text-wrap: balance; }
.pjhero--article .crumbs { margin-bottom: 8px; }

/* ADB: an article title in the breadcrumb may be long: it goes on its own line instead of a narrow column */
.pjhero--article .crumbs { flex-wrap: wrap; row-gap: 4px; }
