/* ============================================================
   SARGAWATT - Pages articles (Strategy B) — format presse premium
   Une seule colonne, lecture longue, CTA en liens texte, médias plein
   format non rognés. Réutilise le chrome global (page-hero, .wrap, .ph).
   ============================================================ */

/* ---------- Mise en page une colonne ---------- */
.page-hero { padding: clamp(56px, 7vw, 92px) 0 28px; }
.page-hero .wrap,
.article-section .wrap { max-width: 820px; }
.page-hero-grid { display: block !important; }
.page-hero-text { max-width: 760px; margin: 0 auto; }
.page-hero-text h1 { max-width: 760px; letter-spacing: -0.035em; line-height: 0.98; }
.page-hero-text .sub {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink, #27323a);
}
.article-meta { margin-top: 18px; color: var(--muted, #6b7280); font-size: 0.95rem; }

/* Visuel hero : plein format, sans habillage placeholder. */
.page-hero-visual { max-width: 760px; margin: 34px auto 0; }
.page-hero-visual .ph { display: block; border-radius: 0; overflow: hidden; box-shadow: none; min-height: 0; }
/* Remettre l'image dans le flux (la base la met en position:absolute/cover). */
.page-hero-visual .ph-img { position: static; width: 100%; height: auto; object-fit: initial; }
.page-hero-visual .contours,
.page-hero-visual .ph-glow,
.article-figure .contours,
.article-figure .ph-glow { display: none; }

/* ---------- Corps de l'article ---------- */
.article-section { padding-top: 30px; }
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.075rem;
  line-height: 1.82;
  color: var(--ink, #27323a);
}
.article-body p { margin: 0 0 1.35em; }

/* Lettrine façon presse sur le premier paragraphe. */
.article-body p:first-of-type::first-letter {
  float: left;
  font-size: 4.2rem;
  line-height: 0.86;
  padding: 0.08em 0.13em 0 0;
  color: var(--teal, #00979d);
  font-weight: 700;
}

.article-body h2 {
  margin: 2.6em 0 0.75em;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.article-body a {
  color: var(--teal, #00979d);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }

/* ---------- Figures & animation : plein format, non rognées ---------- */
.article-figure,
.article-embed { margin: 2.1rem 0 2.35rem; }
.article-figure .ph {
  display: block;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: #f5f2ea;
  min-height: 0;
}
/* Remettre l'image dans le flux (la base la met en position:absolute/cover) : plein format. */
.article-figure .ph-img { position: static; width: 100%; height: auto; object-fit: initial; }
.article-figure figcaption,
.article-embed figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted, #6b7280);
  line-height: 1.45;
}
.article-embed-frame {
  position: relative;
  /* Ratio natif de l'animation (#stage en "cover" 30/17) : on l'affiche en entier, sans rognage. */
  aspect-ratio: 30 / 17;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.article-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Accroche encadrée (optionnelle) ---------- */
.article-lede-box {
  margin: 0 0 2.25rem;
  padding: 1.25rem 1.35rem;
  border-top: 1px solid rgba(0, 151, 157, 0.35);
  border-bottom: 1px solid rgba(0, 151, 157, 0.35);
  background: rgba(0, 151, 157, 0.035);
}
.article-lede-box p { margin: 0; font-size: 1.02rem; line-height: 1.65; }

/* ---------- Chiffres clés ---------- */
.article-keyfacts {
  margin: 2rem 0 2.6rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.article-keyfacts-title {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted, #6b7280);
  font-weight: 700;
}
.article-keyfacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.article-keyfacts li { margin: 0; padding-left: 1.05rem; position: relative; line-height: 1.55; }
.article-keyfacts li::before { content: "—"; position: absolute; left: 0; color: var(--teal, #00979d); }

/* ---------- Citation ---------- */
.article-pullquote {
  margin: 2.4rem 0;
  padding: 1.35rem 0 1.35rem 1.35rem;
  border-left: 3px solid var(--teal, #00979d);
  font-size: 1.35rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #1f2b31;
}

/* ---------- CTA en liens texte ---------- */
.article-text-cta {
  margin: 1.7rem 0 2.3rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted, #5f6b70);
}

/* ---------- Clôture ---------- */
.article-closing {
  margin: 3rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 2px solid rgba(0, 151, 157, 0.25);
}
.article-closing p { margin: 0; font-size: 1.08rem; line-height: 1.7; }

@media (max-width: 760px) {
  .page-hero .wrap,
  .article-section .wrap { max-width: none; }
  .article-body { font-size: 1.02rem; line-height: 1.76; }
  .article-body p:first-of-type::first-letter { font-size: 3.4rem; }
}
