/* ============================================================
   RESTINNER — DESIGN SYSTEM · "Calm Mind"
   Source unique des tokens et composants.
   Palette et typo extraites de lanp.restinner.com.
   Règle : aucun style en dur dans une page, tout passe par ici.
   ============================================================ */

/* -------------------- TOKENS -------------------- */
:root {
  /* Surfaces */
  --bg:           #f2f6f8;
  --bg-cream:     #f4efe8;
  --bg-green:     #edf1df;
  --surface:      #ffffff;
  --surface-soft: #fafbfc;
  --border:       rgba(31, 41, 55, .10);
  --border-warm:  rgba(166, 139, 106, .32);

  /* Texte */
  --heading:  #111827;
  --text:     #1f2937;
  --muted:    #4b5563;
  --faint:    #6b7280;

  /* Marque — vert sauge profond (accent unique) */
  --brand:        #2c6e49;
  --brand-deep:   #1e5c38;
  --brand-soft:   #e2ebd5;
  --brand-tint:   rgba(44, 110, 73, .08);
  --on-brand:     #ffffff;

  /* Accents chauds (décor, jamais CTA) */
  --sand:   #a68b6a;
  --sand-deep: #8d765c;
  --blush:  #f7dfdc;

  /* Statuts */
  --success: #4caf50;  --success-bg: #eaffeb;
  --danger:  #d32f2f;  --danger-bg:  #fdecec;
  --warning: #b7791f;  --warning-bg: #fdf3dc;
  --info:    #2b6cb0;  --info-bg:    #e8f1fb;

  /* Typographie */
  --font-heading: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, sans-serif;

  --fs-xs: 13px; --fs-sm: 14.5px; --fs-base: 17.6px; --fs-lg: 20px;
  --fs-h3: 23px; --fs-h2: clamp(28px, 4vw, 40px); --fs-h1: clamp(34px, 5.5vw, 56px);

  /* Espacements */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;

  /* Formes */
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;

  /* Élévation */
  --shadow-soft: 0 4px 20px rgba(47, 47, 47, .05);
  --shadow-btn:  0 4px 12px rgba(47, 47, 47, .10);
  --shadow-lift: 0 14px 40px rgba(47, 47, 47, .10);

  --maxw: 1100px;
  --maxw-prose: 700px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* -------------------- BASE -------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 700; color: var(--heading);
  line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--s4);
}
h1 { font-size: var(--fs-h1); } h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); } h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s4); color: var(--muted); }

.container { max-width: none; width: min(1720px, calc(100% - 2 * max(18px, 7vw))); margin: 0 auto; padding: 0; }
.section { padding: 40px 0; }
.section--cream { background: transparent; }
.section--green { background: transparent; }

.kicker {
  font-family: var(--font-heading); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sand-deep);
  display: block; margin-bottom: var(--s3);
}

/* -------------------- BOUTONS -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-sm);
  padding: 14px 28px; border-radius: var(--r-pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--brand-deep); color: var(--on-brand); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn--secondary:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn--sm { padding: 10px 20px; font-size: var(--fs-xs); }
.btn--lg { padding: 18px 36px; font-size: var(--fs-base); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }

/* -------------------- BADGES & TAGS -------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-deep);
}
.badge--sand { background: var(--bg-cream); color: var(--sand-deep); border: 1px solid var(--border-warm); }
.badge--blush { background: var(--blush); color: #8a4b45; }
.badge--outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.tag { font-size: var(--fs-xs); color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--r-pill); text-decoration: none; }
.tag:hover { border-color: var(--brand); color: var(--brand); }

/* -------------------- CARTES -------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--bg-green), var(--bg-cream)); display: grid; place-items: center; color: var(--sand); font-family: var(--font-heading); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.card__body { padding: var(--s5); }
.card__meta { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-xs); color: var(--faint); margin-bottom: var(--s3); }
.card__title { font-size: 21px; margin-bottom: var(--s2); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--brand); }
.card__excerpt { font-size: var(--fs-sm); margin: 0; }

.grid { display: grid; gap: var(--s5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* -------------------- HEADER & FOOTER -------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(242, 246, 248, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--heading); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--brand); font-weight: 400; }
.nav { display: flex; gap: var(--s5); align-items: center; }
.nav a:not(.btn) { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm); color: var(--text); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--brand); border-color: var(--brand); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.site-footer { margin-top: var(--s7); background: #e8efe4; color: var(--heading); border-top: 1px solid rgba(44,110,73,.14); }
.site-footer a { color: var(--heading); text-decoration: none; } .site-footer a:hover { color: var(--brand); }
.site-footer h4 { margin: 0 0 var(--s3); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-deep); }
.site-footer p { margin: var(--s3) 0 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.footer-top { display: grid; grid-template-columns: 1.15fr 1.7fr 1fr 1.2fr; padding-top: var(--s6); padding-bottom: var(--s6); }
.footer-top > div { padding: 0 var(--s5); border-left: 1px solid rgba(44,110,73,.2); }
.footer-top > div:first-child { padding-left: 0; border-left: 0; }
.footer-top > div:last-child { padding-right: 0; }
.footer-links a { white-space: nowrap; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s4); font-size: var(--fs-sm); }
.footer-social { display: flex; gap: 16px; margin-bottom: var(--s3); }
.footer-social a { display: inline-flex; color: var(--brand-deep); }
.footer-mail { font-size: var(--fs-sm); word-break: break-all; }
.footer-form { display: flex; }
.footer-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid rgba(44,110,73,.25); border-right: 0; background: #fff; font: inherit; font-size: 14px; }
.footer-form button { padding: 0 20px; border: 0; background: var(--brand); color: #fff; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.footer-form button:hover { background: var(--brand-deep); }
.footer-bar { background: var(--brand-deep); color: #e8efe4; font-size: 12px; letter-spacing: .04em; }
.footer-bar__in { display: flex; justify-content: space-between; gap: var(--s4); padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.footer-bar a { color: #e8efe4; } .footer-bar a:hover { color: #fff; }
.footer-bar__links { display: flex; gap: var(--s5); text-transform: uppercase; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: var(--s5); } .footer-top > div:nth-child(odd) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } .footer-top > div { padding: 0; border-left: 0; } }

/* -------------------- FORMULAIRES -------------------- */
.field { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.field label { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm); color: var(--heading); }
.input {
  font: inherit; font-size: var(--fs-sm); color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--sand); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.input.is-error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(211, 47, 47, .08); }
.field__hint { font-size: var(--fs-xs); color: var(--faint); }
.field__error { font-size: var(--fs-xs); color: var(--danger); font-weight: 700; }

.newsletter { background: var(--bg-green); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s6); align-items: center; }
.newsletter form { display: flex; gap: var(--s3); flex-wrap: wrap; }
.newsletter .input { flex: 1 1 220px; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* -------------------- ÉDITORIAL -------------------- */
.prose { max-width: var(--maxw-prose); margin: 0 auto; }
.prose h2 { margin-top: var(--s7); } .prose h3 { margin-top: var(--s6); }
.prose p, .prose li { color: var(--text); font-size: var(--fs-base); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose blockquote { margin: var(--s6) 0; padding: var(--s2) 0 var(--s2) var(--s5); border-left: 4px solid var(--sand); font-family: var(--font-heading); font-size: 22px; line-height: 1.4; color: var(--heading); }
.prose img { border-radius: var(--r-md); margin: var(--s5) 0; }

.callout { display: flex; gap: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-md); border: 1px solid transparent; margin: var(--s5) 0; font-size: var(--fs-sm); }
.callout p { margin: 0; color: inherit; }
.callout strong { font-family: var(--font-heading); display: block; margin-bottom: 2px; }
.callout--note    { background: var(--bg-green);    border-color: rgba(44,110,73,.2);  color: var(--brand-deep); }
.callout--tip     { background: var(--info-bg);     border-color: rgba(43,108,176,.2); color: #1e4f85; }
.callout--warn    { background: var(--warning-bg);  border-color: rgba(183,121,31,.25); color: #7a5112; }
.callout--danger  { background: var(--danger-bg);   border-color: rgba(211,47,47,.2);  color: #9b1c1c; }

.tldr { background: var(--surface); border: 1px solid var(--border-warm); border-left: 6px solid var(--brand); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--shadow-soft); }
.tldr h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: var(--s3); }
.tldr ul { margin: 0; padding-left: 1.2em; } .tldr li { color: var(--text); margin-bottom: 6px; }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0 var(--s5); margin-bottom: var(--s3); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-heading); font-weight: 700; color: var(--heading); padding: var(--s4) 0; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s4); margin: 0; }

.author { display: flex; gap: var(--s4); align-items: center; background: var(--bg-cream); border-radius: var(--r-md); padding: var(--s5); }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 22px; }
.author p { margin: 0; font-size: var(--fs-sm); } .author strong { font-family: var(--font-heading); color: var(--heading); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--fs-xs); color: var(--faint); list-style: none; padding: 0; margin: 0 0 var(--s4); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s2); color: var(--sand); }
.breadcrumb a { color: var(--muted); }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s5); font-size: var(--fs-sm); }
.toc ol { margin: 0; padding-left: 1.2em; } .toc li { margin-bottom: 6px; }

/* -------------------- CTA LIVRE & MONÉTISATION -------------------- */
.book-cta { display: grid; grid-template-columns: 220px 1fr; gap: var(--s6); align-items: center; background: var(--surface); border: 1px solid var(--border-warm); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow-soft); }
.book-cta__cover { aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; background: linear-gradient(160deg, #dbe7ef, var(--bg-cream)); box-shadow: -6px 8px 24px rgba(47,47,47,.18); display: grid; place-items: center; text-align: center; font-family: var(--font-heading); font-weight: 800; color: var(--heading); padding: var(--s4); }
.book-cta__cover b { color: var(--danger); display: block; font-size: 28px; }
.price { font-family: var(--font-heading); font-weight: 800; color: var(--heading); }
.fineprint { font-size: var(--fs-xs); color: var(--faint); }
@media (max-width: 680px) { .book-cta { grid-template-columns: 1fr; } .book-cta__cover { max-width: 180px; } }

.ad { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--surface-soft), var(--surface-soft) 10px, #f1f4f6 10px, #f1f4f6 20px); border: 1px dashed var(--border-warm); border-radius: var(--r-sm); color: var(--faint); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ad--leaderboard { min-height: 90px; } .ad--rectangle { min-height: 250px; }

.consent { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lift); padding: var(--s5); display: flex; gap: var(--s5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent p { margin: 0; font-size: var(--fs-sm); flex: 1 1 320px; }
.consent__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* -------------------- ÉTATS -------------------- */
.skeleton { background: linear-gradient(90deg, #e8edf0 25%, #f4f7f8 50%, #e8edf0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: var(--s7) var(--s5); background: var(--surface); border: 1px dashed var(--border-warm); border-radius: var(--r-md); }
.toast { display: inline-flex; gap: var(--s3); align-items: center; background: var(--heading); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-size: var(--fs-sm); box-shadow: var(--shadow-lift); }

.pagination { display: flex; gap: var(--s2); }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-pill); font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Logo image (header) */
.logo img { height: 56px; width: auto; display: block; }
@media (max-width: 760px) { :root { --header-h: 68px; } .logo img { height: 42px; } }

/* Logo dans le footer sombre : pastille blanche pour garder le contraste */
.logo--footer { display: inline-block; line-height: 0; }
.logo--footer img { height: 56px; width: auto; }

/* Images dans les cartes et couvertures */
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mise en page des gabarits (home / listing / article).
   Les composants viennent de ../styles.css — ici seulement l'assemblage. */

/* Hero accueil */
.hero { position: relative; padding: var(--s6) 0 var(--s7); color: #fff; background: var(--bg); }
.hero__slider { position: relative; isolation: isolate; align-self: stretch; min-height: 480px; border-radius: var(--r-lg); overflow: hidden; background: #2a2118; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero__slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,20,14,.82) 0%, rgba(26,20,14,.45) 40%, rgba(26,20,14,0) 70%); }
.hero__copy { position: relative; margin-left: var(--s6); padding-bottom: var(--s6); }
.hero__controls { position: absolute; left: var(--s6); bottom: var(--s5); display: flex; align-items: center; gap: var(--s3); z-index: 2; }
.hero__dots { display: flex; align-items: center; gap: 8px; }
.hero__dots button { position: relative; width: 28px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(255,255,255,.45); transition: background .3s, right .35s var(--ease); }
.hero__dots button:hover::before { background: rgba(255,255,255,.85); }
.hero__dots button.is-active { width: 44px; }
.hero__dots button.is-active::before { background: #e9c46a; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: var(--s6); align-items: start; }
.hero__kicker { display: inline-block; font-family: var(--font-heading); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: var(--s4); }
.hero__copy h1 { color: #fff; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.01em; max-width: 480px; }
.hero__lead { font-size: 19px; color: rgba(255,255,255,.88); max-width: 400px; margin: var(--s4) 0 var(--s6); }
.btn--accent { background: #f4c430; color: #1b1b1b; box-shadow: 0 8px 20px rgba(244,196,48,.28); }
.btn--accent:hover { background: #ffd24a; color: #1b1b1b; }
.hero__side { display: grid; gap: var(--s4); }
.hero__side-title { color: var(--heading); font-size: 22px; margin: 0; }
.side-card { display: grid; grid-template-columns: 80px 1fr; gap: var(--s3); align-items: center; text-decoration: none; color: var(--text); transition: transform .2s var(--ease); }
.side-card:hover { transform: translateX(3px); } .side-card:hover strong { color: var(--brand); }
.side-card img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-sm); }
.side-card strong { display: block; font-family: var(--font-heading); font-size: 16px; line-height: 1.3; color: var(--heading); }
.side-card small { display: block; font-size: 13px; color: var(--faint); margin-top: 2px; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: var(--s6); } .hero__slider { min-height: 440px; } }

/* Comment ça aide */
.steps { background: linear-gradient(135deg, #e9f0f4, #f3f0f6); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.steps__title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 var(--s6); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.step__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(31,41,55,.12); display: block; margin-bottom: var(--s4); }
.step { display: block; text-decoration: none; color: var(--text); transition: transform .25s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step:hover h3 { color: var(--brand); }
.step h3 { font-size: 20px; margin: 0 0 var(--s2); }
.step p { font-size: var(--fs-sm); margin: 0; max-width: 240px; }
@media (max-width: 900px) { .steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps__list { grid-template-columns: 1fr; } }

/* Thèmes */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.topic { display: block; text-align: center; text-decoration: none; color: var(--text); background: #fff; border: 1px solid rgba(31, 41, 55, .12); border-radius: 26px; padding: var(--s6) var(--s5); box-shadow: 0 10px 28px rgba(31, 41, 55, .12); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.topic:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 18px 36px rgba(31, 41, 55, .18); color: var(--text); }
.topic__icon { box-sizing: content-box; width: 48px; height: 48px; padding: 14px; border-radius: 50%; background: var(--brand-soft); display: block; margin: 0 auto var(--s4); fill: none; stroke: var(--brand-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topic h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 27px; line-height: 1.15; margin: 0 0 var(--s2); color: var(--heading); }
.topic p { font-size: var(--fs-sm); color: var(--muted); margin: 0 auto; max-width: 220px; }
@media (max-width: 900px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .topic-grid { grid-template-columns: 1fr; } }

/* En-tête de section */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.sec-head h2 { margin: 0; }

/* Grille de catégories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.cat-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 3 / 3.9; padding: var(--s4); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: #fff; background: #2a2118; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); color: #fff; }
.cat-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.cat-tile:hover > img { transform: scale(1.05); }
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,20,14,.18) 0%, rgba(26,20,14,0) 35%, rgba(26,20,14,.72) 100%); }
.cat-tile__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.cat-tile__pill { padding: 9px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.88); backdrop-filter: blur(6px); color: var(--heading); font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cat-tile__go { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--heading); font-size: 20px; line-height: 1; transition: transform .25s var(--ease), background .25s; }
.cat-tile:hover .cat-tile__go { transform: rotate(45deg); background: #fff; }
.cat-tile__title { font-family: var(--font-heading); font-weight: 700; font-size: 24px; line-height: 1.2; color: #fff; padding: 0 var(--s2) var(--s2); text-shadow: 0 1px 12px rgba(0,0,0,.25); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* En-tête d'archive (listing) */
.archive-head { padding: var(--s7) 0 var(--s6); }
.archive-head p { font-size: 19px; max-width: 620px; }
.filters { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s6); }
.filters a { text-decoration: none; }
.filters .is-on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.layout-side { display: grid; grid-template-columns: 1fr 320px; gap: var(--s7); align-items: start; }
.layout-side aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s5); }
@media (max-width: 980px) { .layout-side { grid-template-columns: 1fr; } .layout-side aside { position: static; } }

/* Article */
.article-head { padding: var(--s7) 0 var(--s5); }
.article-meta { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--faint); }
.article-cover { margin: 0 0 var(--s6); }
.article-cover .card__media { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; }
.article-body { display: grid; gap: var(--s6); }
.related { padding: var(--s8) 0; }
.prose figure { margin: var(--s6) 0; }
.prose figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); display: block; }
.prose figcaption { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--faint); text-align: center; }
.article-main { min-width: 0; }
.article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.side-recent { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s4); padding-top: var(--s7); }
.side-recent__title { font-size: 18px; margin: 0; }
.recent-item { display: grid; grid-template-columns: 76px 1fr; gap: var(--s3); align-items: center; text-decoration: none; color: var(--text); }
.recent-item img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r-sm); }
.recent-item strong { display: block; font-family: var(--font-heading); font-size: 15px; line-height: 1.3; color: var(--heading); }
.recent-item small { font-size: 12px; color: var(--faint); }
.recent-item:hover strong { color: var(--brand); }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .side-recent { position: static; padding-top: 0; } }

/* Liste d'articles (listing) */
.post-list { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0 var(--s5); }
.post-row { display: grid; grid-template-columns: 76px 1fr 200px; gap: var(--s4); align-items: center; padding: var(--s5) 0; border-bottom: 1px solid var(--border); }
.post-row:last-of-type { border-bottom: 0; }
.post-row__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; }
.post-row__icon svg { width: 38px; height: 38px; fill: none; stroke: #2f4a3a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: #2f4a3a; }
.post-row__body h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 25px; line-height: 1.2; margin: 0 0 var(--s2); color: #23402f; }
.post-row__body h3 a { color: inherit; text-decoration: none; }
.post-row__body h3 a:hover { color: var(--brand); }
.post-row__min { font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--faint); white-space: nowrap; margin-left: var(--s2); }
.post-row__body p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.post-row__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); display: block; }
@media (max-width: 700px) { .post-row { grid-template-columns: 56px 1fr; } .post-row__icon { width: 56px; height: 56px; } .post-row__icon svg { width: 28px; height: 28px; } .post-row__img { grid-column: 1 / -1; } }

/* Mental Health row */
.mh-all { display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; color:var(--heading); }
.mh-all:hover { color:var(--brand); }
.mh-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--s4); }
.mh-p { position:relative; display:flex; flex-direction:column; justify-content:flex-start; aspect-ratio:3/4.3; padding:28px 24px; border-radius:var(--r-lg); overflow:hidden; isolation:isolate; box-shadow:0 10px 28px rgba(31,41,55,.12); transition:transform .25s ease; }
.mh-p:hover { transform:translateY(-4px); }
.mh-p h3 { margin:0; font-family:"Cormorant Garamond",Georgia,serif; font-weight:600; font-size:30px; line-height:1.12; }
.mh-p p { margin:16px 0 0; font-size:15px; line-height:1.55; }
.mh-p__orn { position:absolute; right:14px; bottom:14px; width:120px; height:120px; z-index:-1; }
.mh-p__tag { display:inline-block; align-self:flex-start; margin-bottom:18px; font-size:12px; letter-spacing:.14em; text-transform:uppercase; opacity:.8; }
.mh-p--deep { color:#fff; background:radial-gradient(120% 80% at 80% 100%,#3f8a63 0%,transparent 60%),linear-gradient(160deg,#1f4d36,#2c6e49); }
.mh-p--deep .mh-p__orn { width:170px; height:170px; right:-20px; bottom:-20px; opacity:.8; }
.mh-p--soft { color:#23402f; background:linear-gradient(160deg,#eef3e4,#dde9d2); border:1px solid rgba(44,110,73,.12); }
.mh-p__q { font-family:"Cormorant Garamond",Georgia,serif; font-size:64px; line-height:.7; color:var(--brand); }
.mh-p__big { margin-top:18px !important; font-family:"Cormorant Garamond",Georgia,serif; font-size:26px !important; font-weight:600; line-height:1.25 !important; }
.mh-p--soft .mh-p__orn { color:var(--brand); opacity:.55; }
.mh-p--sky { color:#1f3a4a; background:linear-gradient(180deg,#d9e9f1 0%,#f3ece0 100%); }
.mh-p--sky ul { list-style:none; margin:26px 0 0; padding:0; display:grid; gap:14px; font-size:15px; }
.mh-p--sky li { display:flex; align-items:center; gap:10px; }
.mh-p--sky li svg { color:var(--brand); flex:none; }
.mh-p--photo { color:#fff; background:#2a2118; }
.mh-p--photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:65% 50%; z-index:-2; }
.mh-p--photo::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(26,20,14,.6) 0%,rgba(26,20,14,0) 60%); }
@media (max-width:1000px){ .mh-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px){ .mh-grid { grid-template-columns:1fr; } .mh-p { aspect-ratio:16/11; } }
.mh-p, .mh-p:hover, .mh-p * { text-decoration:none; }
.mh-p h3, .mh-p p, .mh-p li { color:inherit; }
.mh-p__q { text-decoration:none; }
.mh-p--photo h3 { text-shadow:0 2px 14px rgba(0,0,0,.45); }

.mh-p--photo { justify-content:space-between; color:#fff; }
.mh-p--photo::before { background:linear-gradient(180deg,rgba(26,20,14,.35) 0%,rgba(26,20,14,0) 30%,rgba(26,20,14,.78) 100%); }
.mh-p--photo .mh-p__tag { margin:0; opacity:.95; }
.mh-p--photo .mh-p__txt { display:block; }
.mh-p--photo h3 { text-shadow:none; font-size:28px; }
.mh-p--photo p { margin-top:10px; font-size:14px; opacity:.92; }

/* Well-Being strip */
.wb-strip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:12px; }
.wb-t { position:relative; display:block; aspect-ratio:3/4; border-radius:var(--r-md); overflow:hidden; text-decoration:none; transition:transform .25s ease; }
.wb-t:hover { transform:translateY(-3px); }
.wb-t img { width:100%; height:100%; object-fit:cover; display:block; }
.wb-t--q { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:12px; text-align:center; color:#5b5560; background:linear-gradient(160deg,#efe3e6,#f3e7e0); border:1px solid rgba(91,85,96,.1); }
.wb-t--q:nth-of-type(2n) { background:linear-gradient(160deg,#e6ecdf,#eef0e4); }
.wb-t--q span { font-family:"Cormorant Garamond",Georgia,serif; font-size:17px; line-height:1.3; font-weight:600; }
.wb-t--q em { font-style:italic; }
.wb-t--q i { font-style:normal; font-size:12px; color:var(--brand); opacity:.7; }
@media (max-width:1000px){ .wb-strip { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:520px){ .wb-strip { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Stop Overthinking steps */
.so-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--s5); }
.so-step { display:flex; flex-direction:column; align-items:center; text-align:center; text-decoration:none; color:inherit; }
.so-step__img { width:min(100%,210px); aspect-ratio:1; border-radius:50%; overflow:hidden; border:4px solid #fff; box-shadow:0 10px 28px rgba(31,41,55,.14); transition:transform .3s ease; }
.so-step:hover .so-step__img { transform:scale(1.04); }
.so-step__img img { width:100%; height:100%; object-fit:cover; display:block; }
.so-step h3 { margin:var(--s4) 0 0; font-family:"Cormorant Garamond",Georgia,serif; font-weight:700; font-size:27px; color:#23402f; }
.so-step p { margin:var(--s2) 0 0; max-width:220px; font-size:var(--fs-sm); line-height:1.55; color:var(--muted); }
@media (max-width:900px){ .so-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:var(--s6); } }

/* Mental Health list */
.mh-list { background:#fff; border:1px solid var(--border); border-radius:var(--r-lg); padding:var(--s5); display:grid; gap:var(--s5); }
.mh-row { display:grid; grid-template-columns:260px 1fr; gap:var(--s5); align-items:center; }
.mh-row__img { display:block; border-radius:var(--r-md); overflow:hidden; aspect-ratio:16/10; }
.mh-row__img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.mh-row:hover .mh-row__img img { transform:scale(1.04); }
.mh-row__tag { font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--brand); }
.mh-row h3 { margin:6px 0 0; font-family:"Cormorant Garamond",Georgia,serif; font-weight:700; font-size:32px; line-height:1.12; }
.mh-row h3 a { color:#1d2a24; text-decoration:none; } .mh-row h3 a:hover { color:var(--brand); }
.mh-row p { margin:10px 0 0; font-size:var(--fs-sm); line-height:1.55; color:var(--heading); }
.mh-row__meta { display:block; margin-top:12px; font-size:13px; color:var(--muted); }
.mh-row__meta b { color:var(--brand); font-weight:600; }
.mh-list__foot { text-align:center; }
.mh-btn { display:inline-block; padding:11px 34px; border:1.5px solid var(--brand); border-radius:10px; color:var(--brand-deep); font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; text-decoration:none; }
.mh-btn:hover { background:var(--brand); color:#fff; }
@media (max-width:700px){ .mh-row { grid-template-columns:1fr; } .mh-row h3 { font-size:27px; } }

.mh-list { gap:0; }
.mh-row + .mh-row { margin-top:var(--s5); padding-top:var(--s5); border-top:1px solid rgba(44,110,73,.16); }
.mh-list__foot { margin-top:var(--s5); padding-top:var(--s5); border-top:1px solid rgba(44,110,73,.16); }

/* Stop Overthinking cards */
.so-grid { gap:var(--s4); }
.so-card { display:flex; flex-direction:column; align-items:center; text-align:center; text-decoration:none; color:inherit; background:#fff; border:1px solid rgba(44,110,73,.18); border-radius:var(--r-lg); overflow:hidden; padding-bottom:var(--s5); transition:transform .25s ease; }
.so-card:hover { transform:translateY(-4px); }
.so-card__img { display:block; width:100%; aspect-ratio:4/3.4; overflow:hidden; }
.so-card__img img { width:100%; height:100%; object-fit:cover; display:block; }
.so-card__ico { position:relative; z-index:1; width:68px; height:68px; margin-top:-34px; display:grid; place-items:center; border-radius:50%; background:#fff; border:1px solid rgba(44,110,73,.25); color:var(--brand); }
.so-card h3 { margin:var(--s3) 0 0; font-family:"Cormorant Garamond",Georgia,serif; font-weight:700; font-size:25px; letter-spacing:.06em; text-transform:uppercase; color:#23402f; }
.so-card p { margin:var(--s2) 0 0; padding:0 var(--s4); font-size:var(--fs-sm); line-height:1.55; color:var(--muted); }
.so-banner { display:flex; align-items:center; justify-content:center; gap:var(--s4); margin-top:var(--s4); padding:var(--s4) var(--s5); border:1px solid rgba(44,110,73,.25); border-radius:var(--r-lg); background:#e8efe4; color:var(--brand); text-align:center; }
.so-banner p { margin:0; display:flex; flex-direction:column; gap:4px; color:#23402f; }
.so-banner strong { font-family:"Cormorant Garamond",Georgia,serif; font-size:23px; font-weight:700; }
.so-banner span { font-size:var(--fs-sm); color:var(--muted); }
@media (max-width:520px){ .so-banner svg { display:none; } }

/* Stop Overthinking: 6 tall cards */
.so-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.so-card { background:#fbfaf6; border:1px solid rgba(44,110,73,.28); border-radius:22px; padding-bottom:var(--s5); box-shadow:none; }
.so-card__img { aspect-ratio:1/1.05; border-radius:21px 21px 0 0; }
.so-card__ico { width:74px; height:74px; margin-top:-37px; background:#fbfaf6; border:1px solid rgba(44,110,73,.32); }
.so-card h3 { margin:var(--s3) 0 0; font-family:"Cormorant Garamond",Georgia,serif; font-weight:500; font-size:22px; letter-spacing:.02em; text-transform:uppercase; color:#2a2a2a; }
.so-card p { margin:10px 0 0; padding:0 10px; font-size:15px; line-height:1.45; color:#3a3a3a; }
.so-banner { position:relative; overflow:hidden; border-radius:22px; background:#f1f0e6; border:1px solid rgba(44,110,73,.3); padding:22px var(--s6); }
.so-banner__leaf { position:absolute; left:18px; top:50%; width:130px; height:100px; transform:translateY(-50%); opacity:.35; color:var(--brand); }
.so-banner strong { font-weight:500; font-size:24px; color:#1f2a24; }
.so-banner span { font-size:16px; color:#555; }
@media (max-width:1000px){ .so-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .so-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .so-banner__leaf { display:none; } }

/* Banner images in ad slots */
.ad-img img { display:block; width:100%; height:auto; border-radius:var(--r-md); }
.ad-img--feed { margin:var(--s4) 0; }

/* Sidebar de V2 (sommaire + bannière + articles récents), greffée sur l'article V1 */
.a-rail { position: static; display: grid; gap: 24px; padding-top: var(--s7); }
.a-rail .box { background: #fff; border: 1px solid rgba(22,35,27,.12); border-radius: 20px; padding: 22px; }
.a-rail .box h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0 0 14px; color: #16231b; }
.a-rail .toc2 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.a-rail .toc2 a { display: block; padding: 8px 12px; border-left: 3px solid rgba(22,35,27,.12); font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none; }
.a-rail .toc2 a:hover { color: var(--brand); }
.a-rail .toc2 a.is-on { border-left-color: var(--brand); color: var(--brand-deep); background: var(--brand-tint); }
.a-rail .pr { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(22,35,27,.12); }
.a-rail .pr:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.a-rail .pr__img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; }
.a-rail .pr__img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.a-rail .pr h3 { font-size: 18px; line-height: 1.2; margin: 0 0 2px; }
.a-rail .pr:hover h3 { color: var(--brand); }
.a-rail .meta { font-size: 13px; color: var(--faint); }
.a-rail .ad-img img { display: block; width: 100%; height: auto; border-radius: 16px; }
@media (max-width: 980px) { .a-rail { position: static; padding-top: 0; } }

/* même disposition que V2 : en-tête et cover au-dessus, sidebar qui démarre sous le cover */
.a-wrap { max-width: none; margin: 0 auto; }
.a-wrap .article-head { max-width: 700px; }
.a-wrap .article-cover { margin-bottom: 0; }
.a-wrap .article-cover .card__media { aspect-ratio: 16 / 8.5; }
.a-wrap .article-layout { grid-template-columns: minmax(0, 700px) 300px; gap: 72px; justify-content: center; padding-top: var(--s7); }
.a-wrap .a-rail { padding-top: 0; }
@media (max-width: 980px) { .a-wrap .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Hero article : texte à gauche, photo à droite qui se fond dans le fond (brume légère) */
.a-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 440px; margin: var(--s5) 0 0; border-radius: 28px; background: linear-gradient(135deg, #eef3f2 0%, #f2f6f8 60%); }
.a-hero .article-head { position: relative; z-index: 2; max-width: 560px; padding: var(--s7) var(--s6) var(--s7) clamp(24px, 4vw, 56px); }
.a-hero .article-head h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: clamp(40px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -.01em; margin-top: var(--s4) !important; }
.a-hero .article-head p { color: var(--muted); }
.a-hero__img { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 62%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%); }
.a-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 42%; display: block; }
.a-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(238,243,242,.22) 0%, rgba(238,243,242,0) 45%); }
.a-wrap .article-head { max-width: none; }
.a-hero .article-head { max-width: 560px; }
@media (max-width: 800px) {
  .a-hero { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .a-hero__img { position: relative; width: 100%; height: 260px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .a-hero .article-head { padding: var(--s5) var(--s5) var(--s6); max-width: none; }
}
.a-hero .article-head p { max-width: 460px; }

/* Article sidebar (On this page) on the right */
.a-wrap .article-layout { grid-template-columns: minmax(0, 700px) 300px; gap: 72px; align-items: start; }
@media (max-width: 1100px) { .a-wrap .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; } }
@media (max-width: 820px) { .a-wrap .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* On this page left | article | right rail (ads, recent posts), inside the same page margins as Home/Category */
.a-wrap .article-layout--toc-left { grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 40px; justify-content: stretch; margin-inline: 0; }
@media (max-width: 1000px) { .a-wrap .article-layout--toc-left { grid-template-columns: minmax(0, 1fr); gap: 32px; } .a-toc { position: static; } }

/* Related reading at the end of every article */
.more-read { max-width: 1060px; margin: var(--s8, 72px) auto 0; padding-top: 36px; border-top: 1px solid rgba(22,35,27,.12); }
.more-read h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 22px; color: #16231b; }
.more-read__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.more-read__card { display: block; text-decoration: none; color: inherit; }
.more-read__img { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #e8efe4; }
.more-read__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.more-read__card:hover .more-read__img img { transform: scale(1.04); }
.more-read__tag { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep, #1f4d33); }
.more-read__card h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 24px; line-height: 1.15; margin: 0; color: #16231b; }
.more-read__card:hover h3 { color: var(--brand, #2a7a50); }
@media (max-width: 820px) { .more-read__grid { grid-template-columns: 1fr; } }

/* Sources toggle: centred chevron instead of plus */
.src .src__plus { position: relative; font-size: 0; width: 32px; height: 32px; border-width: 2px; }
.src .src__plus::after { content: ""; position: absolute; left: 50%; top: 50%; box-sizing: border-box; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translate(-50%, -50%) translateY(-2px) rotate(45deg); transition: transform .2s; }
.src[open] .src__plus { transform: none; }
.src[open] .src__plus::after { transform: translate(-50%, -50%) translateY(2px) rotate(225deg); }

/* Keep long-form text at a readable line length inside the wider page */
.article-layout--toc-left .article-main { max-width: 860px; width: 100%; margin-inline: auto; }

/* Tables inside articles */
.tbl-wrap { overflow-x: auto; margin: var(--s5, 24px) 0; border: 1px solid rgba(22,35,27,.12); border-radius: 14px; background: #fff; }
.tbl-wrap table { width: 100%; border-collapse: collapse; font-size: .96em; line-height: 1.5; }
.tbl-wrap th { text-align: left; background: #e8efe4; color: #16231b; font-weight: 800; padding: 12px 16px; }
.tbl-wrap td { padding: 12px 16px; border-top: 1px solid rgba(22,35,27,.1); vertical-align: top; }
.tbl-wrap td:first-child { font-weight: 700; color: #16231b; white-space: nowrap; }
@media (max-width: 620px) { .tbl-wrap td:first-child { white-space: normal; } }

/* Two columns: the article takes the space the left rail left behind; the right column (On this page + ebook banner) stays free of article text */
.a-wrap .article-layout--toc-left { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; max-width: 1180px; margin-inline: auto; padding-top: var(--s7); }
.a-wrap .article-layout--toc-left .a-rail.a-toc { position: static; grid-column: 2; grid-row: 1; width: auto; margin: 0; padding-top: 0; }
.a-wrap .article-layout--toc-left .article-main { grid-column: 1; grid-row: 1; max-width: none; margin: 0; }
@media (max-width: 1000px) { .a-wrap .article-layout--toc-left { grid-template-columns: minmax(0, 1fr); gap: 32px; } .a-wrap .article-layout--toc-left .a-rail.a-toc, .a-wrap .article-layout--toc-left .article-main { grid-column: 1; } .a-wrap .article-layout--toc-left .a-rail.a-toc { grid-row: 1; } .a-wrap .article-layout--toc-left .article-main { grid-row: 2; } }

/* "On this page": soft green card, light lines between titles, current section as a white pill (no numbers) */
.a-rail.a-toc .box.toc2 { background: #e8efe4; border: 0; border-radius: 20px; padding: 22px; }
.a-rail.a-toc .toc2 h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: 0; margin: 0 0 12px; color: #16231b; }
.a-rail.a-toc .toc2 ol { gap: 0; }
.a-rail.a-toc .toc2 li + li { border-top: 1px solid rgba(22,35,27,.10); }
.a-rail.a-toc .toc2 a { display: block; padding: 10px 12px; margin: 2px 0; border: 0; border-radius: 12px; background: none; font-size: 15px; font-weight: 600; line-height: 1.35; color: #16231b; }
.a-rail.a-toc .toc2 a { transition: background .15s, box-shadow .15s; }
/* no automatic highlight while scrolling: the reading position does not change the list */
.a-rail.a-toc .toc2 a.is-on { font-weight: 600; background: none; box-shadow: none; }
/* the white pill appears only on hover, focus or press, never by default */
.a-rail.a-toc .toc2 a:hover, .a-rail.a-toc .toc2 a:focus, .a-rail.a-toc .toc2 a:active, .a-rail.a-toc .toc2 a.is-on:hover, .a-rail.a-toc .toc2 a.is-on:focus { background: #fff; color: #16231b; outline: 0; box-shadow: 0 1px 0 rgba(22,35,27,.06), 0 6px 16px -10px rgba(31,77,51,.45); }
.a-rail.a-toc .toc2 a.is-on::before, .a-rail.a-toc .toc2 a.is-on::after { content: none; }

/* Article text uses the same fonts and sizes as mhanational.org: Poppins 600 headings, DM Sans 400 body at 20px / 30px */
.a-wrap .article-main { --font-heading: "Poppins", system-ui, sans-serif; --font-body: "DM Sans", system-ui, sans-serif; font-family: var(--font-body); }
.a-wrap .article-main h2, .a-wrap .article-main h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0; }
.a-wrap .article-main .prose h2 { font-size: 25.6px; line-height: 1.35; }
.a-wrap .article-main .prose h3 { font-size: 21px; line-height: 1.35; }
.a-wrap .article-main .prose p, .a-wrap .article-main .prose li { font-size: 20px; line-height: 1.5; }
.a-wrap .a-hero .article-head h1 { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.25; letter-spacing: 0; }
