/* ============================================================
   Articles du blog (pages /blog/) - complète css/style.css
   ============================================================ */

/* ── En-tête d'article ─────────────────────────────────────── */
.article-hero { padding-bottom: 4rem; }
.article-hero h1 {
  max-width: 820px;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 1.4rem;
}
.article-hero .breadcrumb .breadcrumb__current {
  color: rgba(255,255,255,.55);
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 0;
  font-size: .85rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
}
.article-meta span + span::before {
  content: '·';
  margin: 0 .7rem;
  opacity: .6;
}

/* ── Corps de l'article ────────────────────────────────────── */
.article-section { padding: 4.5rem 0 5rem; }
.article__body p {
  color: var(--body-text);
  font-size: 1.06rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.article__body > p:first-child {
  font-size: 1.22rem;
  line-height: 1.75;
  color: var(--dark);
}
.article__body h2 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin: 3.2rem 0 1.2rem;
}
.article__body ul,
.article__body ol { margin: 0 0 1.6rem 1.4rem; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li {
  color: var(--body-text);
  font-size: 1.06rem;
  line-height: 1.8;
  margin-bottom: .5rem;
  padding-left: .3rem;
}
.article__body li::marker { color: var(--accent); }
.article__body a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.article__body strong { font-weight: 600; color: var(--dark); }

/* Phrase clé d'une section (paragraphe entièrement en gras dans la source) */
.article__body p.article__key {
  border-left: 3px solid var(--accent);
  margin: 2rem 0 2.2rem;
  padding: .3rem 0 .3rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--dark);
}
.article__body p.article__key strong { font-weight: 500; }

/* ── Fin d'article : prolongements + rendez-vous ───────────── */
.article-cta {
  margin: 3.5rem 0 2rem;
  padding: 2rem 2.2rem;
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-cta__item + .article-cta__item {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.article-cta__q {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: .5rem;
}
.article-cta__sub {
  font-size: .95rem;
  color: var(--mid);
  margin-bottom: 1rem;
}
.article-cta__link {
  display: inline-block;
  font-size: .95rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color var(--t), border-color var(--t);
}
.article-cta__link::after { content: ' →'; color: var(--accent); }
.article-cta__link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.article-foot {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  font-size: .9rem;
  color: var(--mid);
}
.article-foot a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.article-foot a:hover { color: var(--accent-hover); }

/* ── À lire aussi ──────────────────────────────────────────── */
.article-more { background: var(--bg-warm); padding: 5rem 0 6rem; }
.article-more h2 { font-size: 1.8rem; margin-bottom: 2.2rem; }

/* ── Cartes d'articles (liste + à lire aussi) ──────────────── */
.blog-card[hidden] { display: none; }
.blog-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; }
/* La vignette contient le titre : toujours affichée en entier (ratio 1200x630) */
.blog-card__img { height: auto; aspect-ratio: 1200 / 630; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { display: flex; flex-direction: column; flex: 1; }
.blog-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .btn--ghost { margin-top: auto; padding-top: 1rem; }

/* ── Page liste ────────────────────────────────────────────── */
.articles-list { padding: 4.5rem 0 6rem; }
.articles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem;
}
.articles-filter button {
  cursor: pointer;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--mid);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.articles-filter button:hover { border-color: var(--accent); color: var(--dark); }
.articles-filter button[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.articles-news {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: .95rem;
  color: var(--mid);
}
.articles-news a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Date, durée et auteur sur des lignes séparées : pas de point orphelin en début de ligne */
  .article-meta { flex-direction: column; }
  .article-meta span + span::before { display: none; }
}

@media (max-width: 768px) {
  .article-hero { padding-bottom: 3rem; }
  .article-section { padding: 3rem 0 4rem; }
  .article__body p,
  .article__body li { font-size: 1rem; }
  .article__body > p:first-child { font-size: 1.12rem; }
  .article__body h2 { font-size: 1.5rem; margin-top: 2.6rem; }
  .article__body p.article__key { font-size: 1.18rem; padding-left: 1.1rem; }
  .article-cta { padding: 1.5rem 1.4rem; }
  .article-more { padding: 3.5rem 0 4rem; }
  .article-more h2 { font-size: 1.5rem; }
  .articles-list { padding: 3rem 0 4rem; }
}

/* ── Bloc auteure : avant les boutons de rendez-vous ───────── */
.article-author {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin: 3.5rem 0 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
}
.article-author img {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}
.article-author__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: .3rem;
}
.article-author__name a { color: inherit; transition: color var(--t); }
.article-author__name a:hover { color: var(--accent-hover); }
.article-author__role { font-size: .9rem; line-height: 1.6; color: var(--mid); }
.article-author + .article-cta { margin-top: 2rem; }

@media (max-width: 600px) {
  .article-author { gap: 1rem; margin-top: 2.8rem; padding-top: 1.8rem; }
  .article-author img { width: 72px; height: 72px; }
  .article-author__name { font-size: 1.2rem; }
}

/* Petits téléphones (360 px) : les trois lignes du bloc auteure restent chacune sur une seule ligne */
@media (max-width: 400px) {
  .article-author { gap: .85rem; }
  .article-author img { width: 64px; height: 64px; }
  .article-author__role { font-size: .85rem; }
}
