/* ─────────────────────────────────────────────────────────
   Molleva — Complete Article Stylesheet
   Contient la mise en page, la TOC sticky, le corps d'article
   et les composants visuels (pullquotes, CTA, bio auteur).
   ───────────────────────────────────────────────────────── */

/* ─── Breadcrumb nav ─── */
.art-breadcrumb {
  padding: clamp(14px, 2vw, 22px) 0 0;
}
.art-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: -0.005em;
}
.art-breadcrumb a:hover { color: var(--terra); }

/* ─── Read progress bar ─── */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1.5px;
  background: var(--terra);
  z-index: 100;
  width: 0;
  transition: width .12s linear;
}

/* ─── Hero section (base center-aligned style) ─── */
.art-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 50px);
  text-align: center;
}
.art-hero .meta-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  justify-content: center;
}
.art-hero .pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--terra);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.art-hero .pillar-tag::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--terra);
  display: inline-block;
}
.art-hero .read-time {
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-style: italic;
}
.art-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 84px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
}
.art-hero .subtitle {
  margin: 28px auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 36ch;
  line-height: 1.45;
}
.art-hero .byline {
  margin: 36px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d8c8b6 0%, #b59d83 70%, #8e7458 100%);
  border: 1.5px solid var(--surface);
  flex-shrink: 0;
}
.byline .meta { text-align: left; }
.byline .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.byline .date { font-size: 12.5px; color: var(--ink-3); font-style: italic; font-family: var(--font-display); }

/* Accent stripe terra — signature visuelle de la marque */
.art-hero-stripe {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.art-hero-stripe .stripe-line {
  width: clamp(36px, 5vw, 56px);
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
  opacity: 0.75;
  flex-shrink: 0;
}
.art-hero-stripe .stripe-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  opacity: 0.85;
}

/* ─── Hero redesign — left-aligned editorial overrides ─── */
.art-hero {
  text-align: left;
}
.art-hero .meta-row {
  justify-content: flex-start;
}
.art-hero h1 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  font-size: clamp(28px, 3.2vw, 48px) !important;
  max-width: 22ch !important;
  line-height: 1.08 !important;
}
.art-hero .subtitle {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.art-hero .byline {
  margin-left: 0;
}

/* ─── Article layout — col centrale + TOC sticky ─── */
.art-layout {
  display: grid;
  grid-template-columns: 220px 720px 220px;
  gap: 60px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  justify-content: center;
}
@media (max-width: 1100px) {
  .art-layout {
    grid-template-columns: 160px minmax(0, 700px);
    gap: 40px;
  }
  .art-layout .right-margin {
    display: none;
  }
}
@media (max-width: 880px) {
  .art-layout {
    grid-template-columns: 1fr;
  }
  .art-layout .left-margin {
    display: none;
  }
}

.toc-sticky {
  position: sticky;
  top: 100px;
  align-self: start;
}
.toc-sticky .label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.toc-sticky ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc-sticky a {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
  display: block;
  padding-left: 12px;
  border-left: 1.5px solid var(--rule-soft);
  transition: color .2s, border-color .2s;
  text-decoration: none;
}
.toc-sticky a:hover,
.toc-sticky a.active {
  color: var(--ink);
  border-left-color: var(--terra);
}
.toc-sticky .progress-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  font-family: var(--font-display);
}

/* ─── Article body ─── */
.article-body {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
}
.article-body p {
  margin-bottom: 1.3em;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.025em;
  margin: 1.8em 0 0.7em;
  line-height: 1.1;
  padding-top: 0.2em;
}
.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; }

/* drop cap styling */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.4em;
  float: left;
  line-height: 0.92;
  margin: 0.08em 0.1em 0 -0.02em;
  color: var(--ink);
}

/* ─── Pull-quotes ─── */
.pullquote {
  margin: 2em -40px;
  padding: 14px 0;
  text-align: center;
  position: relative;
}
.pullquote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: pretty;
  max-width: 18ch;
  margin: 0 auto;
}
.pullquote blockquote .punch {
  color: var(--terra);
}
.pullquote::before,
.pullquote::after {
  content: "";
  display: block;
  margin: 32px auto;
  width: 36px;
  height: 1px;
  background: var(--rule);
}
@media (max-width: 700px) {
  .pullquote {
    margin: 2em -20px;
  }
  .pullquote blockquote {
    font-size: clamp(24px, 6vw, 32px);
  }
}

/* ─── Mid-CTA box ─── */
.mid-cta {
  margin: 2.4em 0;
  padding: 26px 28px;
  border: 1.5px dashed rgba(86, 117, 109, .45);
  border-radius: 18px;
  background: rgba(86, 117, 109, .04);
}
.mid-cta .label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
  font-weight: 500;
}
.mid-cta p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 14px;
  color: var(--ink);
}
.mid-cta .btn-link { font-size: 15px; }

/* ─── End-of-article night CTA ─── */
.end-night {
  margin-top: clamp(80px, 10vw, 130px);
  padding: clamp(80px, 11vw, 130px) 0;
  background: var(--dark);
  color: var(--dark-ink);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.end-night::before,
.end-night::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.end-night::before {
  top: -30%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(200, 142, 110, .3) 0%, rgba(200, 142, 110, 0) 60%);
}
.end-night::after {
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(86, 117, 109, .2) 0%, rgba(86, 117, 109, 0) 60%);
}
.end-night .inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.end-night h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--bg);
  text-wrap: pretty;
}
.end-night p {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--dark-ink-2);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}
.end-night .store-row {
  display: inline-flex;
  justify-content: center;
  margin-top: 36px;
}

/* ─── Auteur bio ─── */
.author-bio {
  margin-top: 60px;
  padding: 30px;
  background: var(--surface-2);
  border-radius: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-bio .avatar {
  width: 56px;
  height: 56px;
}
.author-bio h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.author-bio p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ─── Related section ─── */
.related {
  padding: clamp(60px, 9vw, 100px) 0;
  border-top: 1px solid var(--rule-soft);
  margin-top: clamp(40px, 6vw, 80px);
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 36px;
}
.related-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}
.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: 22px;
  padding: 26px;
  transition: transform .25s, border-color .25s;
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 49, 58, .16);
}
.related-card .meta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.related-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.related-card .read-time {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-style: italic;
}
@media (max-width: 860px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.rc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  background: var(--surface-2);
  color: var(--ink-2);
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 500;
  font-family: var(--font-body);
}
.rc-time {
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  font-family: var(--font-display);
}

/* ─── Links ─── */
.author-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.author-link:hover {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

.back-to-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--sage);
  text-decoration: none;
  transition: gap .2s, color .2s;
}
.back-to-all:hover { gap: 12px; color: var(--ink); }
