/* ==========================================================================
   Blog — complément à style.css, chargé sur /blog et les articles seulement.
   Reprend les mêmes jetons de couleur et de typographie que le reste du site.
   ========================================================================== */

/* Colonne de lecture étroite : au-delà d'environ 70 caractères par ligne,
   l'œil peine à retrouver le début de la ligne suivante. */
.shell--etroit { max-width: 46rem; }

/* --- Bandeau d'aperçu (visible de Louis seul) -------------------------- */

.bandeau-apercu {
  padding: 0.85rem 0;
  background: var(--gold-050);
  border-bottom: 2px solid var(--gold-500);
  font-size: 0.92rem;
  color: #6b5518;
}

.bandeau-apercu a { color: var(--navy-800); font-weight: 700; margin-left: 0.5rem; }

/* --- Liste des articles ------------------------------------------------ */

.blog-tete { padding-bottom: clamp(2rem, 5vw, 4rem); }

.articles-grille {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  margin-top: 3rem;
}

.carte-article {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.carte-article:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

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

.carte-article__image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-050); }

.carte-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.carte-article:hover .carte-article__image img { transform: scale(1.03); }

.carte-article__corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.carte-article__date {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.carte-article h2,
.carte-article h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-title);
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--navy-800);
}

.carte-article__chapo {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.carte-article__suite {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-700);
}

.carte-article:hover .carte-article__suite { color: var(--gold-600); }

/* --- Pagination -------------------------------------------------------- */

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.pagination__etat { font-size: 0.88rem; color: var(--muted); }

/* --- Article ----------------------------------------------------------- */

.article__tete { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }

.fil-ariane { margin: 0 0 1.25rem; font-size: 0.85rem; color: var(--muted); }
.fil-ariane a { color: var(--navy-700); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane span { margin: 0 0.4rem; }

.article__tete h1 {
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.15;
  margin: 0;
}

.article__chapo {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--slate-600);
}

.article__meta {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.article__couverture { margin: 0 0 2.5rem; }

.article__couverture img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.article__couverture figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* --- Corps de l'article ------------------------------------------------ */

.article__corps {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink);
}

.article__corps > *:first-child { margin-top: 0; }
.article__corps p { margin: 0 0 1.4rem; }

.article__corps h2 {
  margin: 2.75rem 0 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.25;
  color: var(--navy-800);
}

.article__corps h3 {
  margin: 2.25rem 0 0.8rem;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  color: var(--navy-800);
}

.article__corps h4 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--navy-800);
}

.article__corps ul,
.article__corps ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }

.article__corps li { margin-bottom: 0.6rem; }
.article__corps li::marker { color: var(--gold-600); }

.article__corps blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--gold-500);
  background: var(--gold-050);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy-800);
}

.article__corps blockquote p:last-child { margin-bottom: 0; }

.article__corps a {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article__corps a:hover { color: var(--gold-600); }

.article__corps figure { margin: 2.25rem 0; }

.article__corps img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.article__corps figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.article__corps hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* --- Pied d'article ---------------------------------------------------- */

.article__pied {
  margin: 3.5rem 0 clamp(2rem, 5vw, 4rem);
  padding: 1.75rem;
  background: var(--navy-050);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article__pied p { margin: 0 0 1.25rem; color: var(--slate-600); }
.article__pied p:last-child { margin-bottom: 0; }

/* --- Onglet actif dans la navigation ----------------------------------- */

.nav__link.est-actif { color: var(--gold-600); }

@media (max-width: 40rem) {
  .article__pied { padding: 1.25rem; }
  .articles-grille { gap: 1.25rem; margin-top: 2rem; }
}
