/* =========================================================================
   Sporae — actualites.css
   Liste et pages d'article des Actualités publiques. Chargé APRÈS theme.css ;
   n'invente aucune couleur, tout dérive des variables de theme.css. Les deux
   seuls tokens repris d'ailleurs (--font-serif, le vert « bio ») reprennent à
   l'identique les valeurs de card.css, pour que le catalogue et les actualités
   ne soient pas deux mondes.
   ========================================================================= */

:root {
  --actu-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --actu-vert:      #5E7C52;
  --actu-vert-soft: rgba(94, 124, 82, .13);
  --actu-vert-bd:   rgba(94, 124, 82, .32);
  --actu-peach-soft: #FBF0E4;
}

/* En-tête de page aligné à gauche (le reste du site centre ; ici le texte est
   long et un chapô centré sur six lignes occupe tout l'écran d'un téléphone). */
.page-hero--gauche { text-align: left; }
.page-hero--gauche .lead { margin-left: 0; margin-right: 0; max-width: 62ch; }
.container--article { max-width: 900px; }

/* ---- Mots-clés ----------------------------------------------------------
   Un mot-clé qui porte le nom d'une espèce du catalogue est marqué en vert :
   il mène à la fiche produit, pas à une liste d'articles. C'est lui qui porte
   le maillage vers le catalogue. */
.tags { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.tag {
  text-decoration: none; font-size: var(--fs-300); line-height: 1.35;
  color: var(--color-primary-dark); background: var(--actu-peach-soft);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 4px 11px; white-space: nowrap;
}
.tag:hover { border-color: var(--color-accent-soft); background: #F7E6D4; }
.tag--espece { background: var(--actu-vert-soft); color: var(--actu-vert); }
.tag--espece:hover { border-color: var(--actu-vert-bd); background: rgba(94, 124, 82, .2); }
.tags--pied {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.tagcloud {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin: 0 0 var(--space-6); padding: 0 0 var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.tagcloud .lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--color-text-muted); margin-right: 4px;
}

/* ---- Liste d'articles ---------------------------------------------------
   Une photo par article, présente dès la liste : une colonne de titres nus ne
   donne envie de cliquer sur rien, et c'est la même image qui part en aperçu
   quand le lien est partagé. */
.posts { display: grid; gap: 0; }
.posts__vide { color: var(--color-text-muted); padding: var(--space-7) 0; }
.post {
  display: grid; grid-template-columns: 240px 1fr; gap: var(--space-6);
  padding: var(--space-6) 0; border-top: 1px solid var(--color-border);
  align-items: start;
}
.post:last-child { border-bottom: 1px solid var(--color-border); }
.post__photo {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}
.post__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__photo--vide { border-style: dashed; }
.post__date {
  display: block; font-size: var(--fs-300); color: var(--color-text-muted);
  font-variant-numeric: tabular-nums; margin: 0 0 7px;
}
.post__body h2 {
  font-family: var(--actu-serif); font-weight: 600; font-size: var(--fs-600);
  line-height: 1.25; margin: 0 0 var(--space-2);
}
.post__body h2 a { text-decoration: none; color: var(--color-text); }
.post__body h2 a:hover { color: var(--color-primary-dark); }
.post__body > p { margin: 0 0 var(--space-3); color: var(--color-text-muted); max-width: 68ch; }

/* ---- Page d'article ----------------------------------------------------- */
.article {
  max-width: var(--container); margin-inline: auto;
  padding: var(--space-7) var(--space-5) var(--space-8);
  display: grid; grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--space-8); align-items: start;
}
.hero-shot {
  margin: 0 0 var(--space-6); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-border); background: var(--color-surface-alt);
}
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.byline {
  display: flex; align-items: center; gap: var(--space-3);
  margin: 0 0 var(--space-6); padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.byline__av {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  object-position: 50% 22%; flex: 0 0 auto;
  border: 1px solid var(--color-border); display: block;
}
.byline__t { font-size: var(--fs-300); color: var(--color-text-muted); }
.byline__t b { color: var(--color-text); font-weight: 600; }

.prose { max-width: 66ch; }
.prose > p:first-of-type { font-size: var(--fs-500); color: var(--color-text); }
.prose h2 {
  font-family: var(--actu-serif); font-weight: 600; font-size: var(--fs-600);
  margin: var(--space-7) 0 var(--space-3);
}
.prose p { margin: 0 0 var(--space-4); color: #3B3B3B; }
.prose strong { color: var(--color-text); }

.aside {
  position: sticky; top: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.aside__box {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: var(--space-4) var(--space-5);
}
.aside__box h2 {
  margin: 0 0 var(--space-3); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-text-muted); font-weight: 700;
}
.aside__box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); font-size: var(--fs-300); }
.aside__box a { text-decoration: none; }
.aside__box a:hover { text-decoration: underline; }

.mandate-mini {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5); font-size: var(--fs-300);
  color: var(--color-text-muted);
}
.mandate-mini b {
  display: block; margin-bottom: 7px; font-weight: 600;
  font-family: var(--actu-serif); font-size: var(--fs-500);
  color: var(--color-primary-dark);
}

/* ---- Téléphone ----------------------------------------------------------
   Mêmes mesures que la reprise du catalogue du 11/09 : la photo passe au-dessus
   du texte, la colonne latérale sous l'article. */
@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; gap: var(--space-6); }
  .aside { position: static; }
}
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; gap: var(--space-4); }
  .post__photo { max-height: 210px; }
  .post__body h2 { font-size: var(--fs-500); }
}

/* Le titre d'article reprend la serif des titres de la liste : sinon la même
   phrase change de police entre la liste et la page qu'elle ouvre. */
.page-hero--gauche h1 {
  font-family: var(--actu-serif); font-weight: 600; letter-spacing: -.01em;
  line-height: 1.12;
}
