/* ============================================================
   Actualités / Blog — Dr Mazharian
   Reuses tokens (colors_and_type.css) and the page chrome of
   pedagogical.css (peda-header, peda-shell, peda-toc, peda-main,
   peda-foot, peda-page-footer). This file only adds the
   blog-index layout + article editorial extras.
   ============================================================ */

/* ===== Index hero ===== */
.blog-intro {
  padding: 40px 0 8px;
}
.blog-intro__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--nuit);
  margin: 16px 0 0;
}
.blog-intro__title em { font-style: italic; color: var(--or-deep); }
.blog-intro__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--encre-soft);
  max-width: 60ch;
  margin: 20px 0 0;
}

/* ===== Featured article ===== */
.blog-featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  margin: 36px 0 8px;
  border: 1px solid var(--trait);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--blanc);
  transition: border-color var(--t-hover) var(--ease-soft), box-shadow var(--t-hover) var(--ease-soft);
}
.blog-featured:hover { border-color: var(--or); box-shadow: var(--shadow-card); }
.blog-featured__plate { min-height: 340px; }
.blog-featured__body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured__kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.blog-featured__kicker::before { content: ''; width: 18px; height: 1px; background: var(--or); }
.blog-featured h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.14;
  color: var(--nuit);
  margin: 16px 0 0;
}
.blog-featured p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--encre-soft);
  margin: 14px 0 0;
  max-width: 46ch;
}
.blog-featured__meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--fg-mute);
}
.blog-featured__meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--or); }
.blog-featured__more {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--or-deep);
}

/* ===== Filter chips ===== */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 24px;
  padding-top: 28px;
  border-top: 1px solid var(--trait);
}
.blog-filter__btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--nuit-80);
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  transition: all var(--t-hover) var(--ease-soft);
}
.blog-filter__btn:hover { border-color: var(--nuit-40); color: var(--nuit); }
.blog-filter__btn.is-active {
  background: var(--nuit);
  border-color: var(--nuit);
  color: var(--ivoire);
}

/* ===== Article grid ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 8px 0 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--r-3);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-image: none;
  transition: border-color var(--t-hover) var(--ease-soft), transform var(--t-hover) var(--ease-soft), box-shadow var(--t-hover) var(--ease-soft);
}
.blog-card:hover { border-color: var(--or); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.blog-card__plate { aspect-ratio: 16 / 10; }
.blog-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or-deep);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.22;
  color: var(--nuit);
  margin: 9px 0 0;
}
.blog-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--encre-soft);
  margin: 10px 0 0;
}
.blog-card__meta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
.blog-card__meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--or); }
.blog-card.is-hidden { display: none; }

/* ===== Branded plate (article thumbnail) =====
   Navy field + the monogram eye motif. Variants tint the rings. */
.plate {
  position: relative;
  background:
    radial-gradient(circle at 78% 18%, rgba(201,168,76,0.20), transparent 55%),
    linear-gradient(150deg, #0d2a4e 0%, #081e3a 100%);
  overflow: hidden;
}
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Real photo layer — drop a file at assets/blog/<slug>.jpg and it replaces the
   brand motif automatically. If the file is missing, onerror removes the <img>
   and the motif shows through (no broken-image icon). */
.plate__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(8,30,58,0.62), rgba(8,30,58,0.10) 55%, rgba(8,30,58,0.04));
  pointer-events: none;
}
.plate__tag {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(228,210,154,0.92);
  z-index: 3;
}

/* ===== Newsletter strip ===== */
.blog-news {
  margin: 56px 0 0;
  padding: 40px 44px;
  background: var(--ciel);
  border: 1px solid var(--trait);
  border-radius: var(--r-3);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.blog-news h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--nuit);
  margin: 0;
}
.blog-news p { font-size: 15px; color: var(--encre-soft); margin: 10px 0 0; max-width: 44ch; }
.blog-news__form { display: flex; gap: 10px; }
.blog-news__form input {
  flex: 1;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--trait);
  border-radius: var(--r-2);
  background: var(--blanc);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--nuit);
}
.blog-news__form input:focus { outline: none; border-color: var(--or); }

/* =====================================================
   ARTICLE PAGE — editorial extras on top of peda-main
   ===================================================== */

/* Article hero (full-width band above the shell) */
.article-hero { padding: 36px 0 40px; border-bottom: 1px solid var(--trait); }
.article-hero__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or-deep);
}
.article-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--nuit);
  margin: 14px 0 0;
  max-width: 20ch;
}
.article-hero__title em { font-style: italic; color: var(--or-deep); }
.article-hero__dek {
  font-size: 19px;
  line-height: 1.6;
  color: var(--encre-soft);
  max-width: 60ch;
  margin: 22px 0 0;
}

/* Byline */
.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 0;
}
.article-byline__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--trait-or);
  flex: none;
}
.article-byline__who { font-size: 14px; color: var(--nuit); font-weight: 600; }
.article-byline__meta { font-size: 13px; color: var(--fg-mute); margin-top: 2px; }
.article-byline__meta .dot { display: inline-block; width: 3px; height: 3px; border-radius: 999px; background: var(--or); margin: 0 8px; vertical-align: middle; }

/* Key-takeaways box at top of article */
.article-tldr {
  margin: 0 0 32px;
  padding: 24px 28px;
  background: var(--nuit);
  border-radius: var(--r-3);
  color: var(--ivoire);
}
.article-tldr__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-tldr__label::before { content: ''; width: 16px; height: 1px; background: var(--or); }
.article-tldr ul { margin: 14px 0 0; padding: 0 0 0 4px; list-style: none; display: grid; gap: 10px; }
.article-tldr li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(248,246,241,0.92);
  max-width: none;
}
.article-tldr li::before {
  content: '→';
  position: absolute; left: 0; top: 0;
  color: var(--or);
}
.article-tldr strong { color: var(--ivoire); }

/* Share + meta footer of article */
.article-foot {
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--trait);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.article-share { display: flex; align-items: center; gap: 10px; }
.article-share__label { font-size: 12px; color: var(--fg-mute); letter-spacing: 0.04em; }
.article-share a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--nuit);
  font-size: 14px;
  transition: all var(--t-hover) var(--ease-soft);
}
.article-share a:hover { border-color: var(--or); background: var(--ciel); }
.article-updated { font-size: 12px; color: var(--fg-mute); }

/* Author bio box */
.author-box {
  margin: 36px 0 0;
  padding: 28px;
  background: var(--ciel);
  border-radius: var(--r-3);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
}
.author-box img {
  width: 72px; height: 72px; border-radius: 999px;
  object-fit: cover; border: 1px solid var(--trait-or);
}
.author-box__name { font-family: var(--font-display); font-size: 20px; color: var(--nuit); }
.author-box__role { font-size: 12px; color: var(--or-deep); font-weight: 600; letter-spacing: 0.04em; margin-top: 2px; }
.author-box p { font-size: 14px; line-height: 1.6; color: var(--encre-soft); margin: 12px 0 0; max-width: none; }

/* Related articles */
.related { margin: 56px 0 0; }
.related__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-deep);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.related__label::before { content: ''; width: 16px; height: 1px; background: var(--or); }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__plate { min-height: 200px; }
  .blog-featured__body { padding: 28px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-news { grid-template-columns: 1fr; padding: 28px 24px; }
  .related__grid { grid-template-columns: 1fr; }
  .article-hero__title { font-size: clamp(30px, 8vw, 40px); }
}
