*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.7;color:#111;background:#fff}
.astro-4hbroumj{max-width:900px;margin:0 auto;padding:0 28px}
.astro-6BPy76jy{background:#111;color:#fff;padding:64px 0;margin-bottom:48px}
.astro-6BPy76jy h1{font-size:42px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
.astro-6BPy76jy p{font-size:18px;opacity:.7}
.astro-6BPy76jy a{color:#fff;text-decoration:none;font-size:22px;font-weight:800}
.astro-yxUOoOvJ{padding:0}
.astro-057uolA0{padding:32px 0;border-left:4px solid #111;padding-left:24px;margin-bottom:28px}
.astro-057uolA0 h2{font-size:24px;font-weight:700;margin-bottom:6px}
.astro-057uolA0 h2 a{color:#111;text-decoration:none}
.astro-057uolA0 h2 a:hover{text-decoration:underline}
.astro-057uolA0 .astro-rwwCAsMW{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;margin-bottom:8px}
.astro-057uolA0 p{font-size:15px;color:#444;margin-bottom:10px}
.astro-tZ3Ib3Zy{display:inline-block;background:#111;color:#fff;padding:8px 20px;font-size:13px;font-weight:700;text-decoration:none;text-transform:uppercase;letter-spacing:1px}
.astro-tZ3Ib3Zy:hover{background:#333}
.astro-fNz52fDK{padding-bottom:60px}
.astro-fNz52fDK h1{font-size:38px;font-weight:800;letter-spacing:-1px;margin-bottom:10px}
.astro-fNz52fDK time{font-size:12px;font-weight:600;text-transform:uppercase;color:#888;letter-spacing:1px;display:block;margin-bottom:28px}
.astro-fNz52fDK h2{font-size:26px;font-weight:700;margin:40px 0 14px}
.astro-fNz52fDK h3{font-size:20px;font-weight:700;margin:32px 0 10px}
.astro-fNz52fDK p{margin-bottom:18px;font-size:17px}
.astro-fNz52fDK ul,.astro-fNz52fDK ol{margin:0 0 18px 24px}
.astro-fNz52fDK a{color:#111;font-weight:600;text-decoration:underline}
.astro-fNz52fDK img{max-width:100%;height:auto;margin:20px 0}
.astro-9QhtpS6U{background:#111;color:#888;padding:28px 0;margin-top:48px;text-align:center;font-size:12px}
.astro-9QhtpS6U a{color:#888;text-decoration:none}
.astro-J0yIEt13{background:#222;color:#aaa;padding:14px 20px;margin-bottom:24px;font-size:13px;font-style:italic}
.astro-xWJtg2d5{background:#1a1a1a;color:#888;padding:14px 20px;margin-top:32px;font-size:12px;border-top:3px solid #444}
.astro-AmTb4oDe{font-size:12px;font-weight:600;text-transform:uppercase;color:#666;letter-spacing:1px;margin:-20px 0 28px;padding-left:12px;border-left:2px solid #ccc}
.astro-9pu5ytFI{margin:0 0 24px}
.astro-CQZDWqCn{width:100%;height:auto;border-radius:0}
.astro-KDgpDS6g{border-left:4px solid #111;padding-left:24px;margin-top:48px}
.astro-KDgpDS6g h3{font-size:18px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.astro-KDgpDS6g ul{list-style:none;padding:0}
.astro-KDgpDS6g li{padding:6px 0}
.astro-KDgpDS6g a{color:#111;text-decoration:underline;font-weight:600}
.astro-QEqJqf23{border-left:4px solid #ddd;padding-left:24px;margin-top:36px}
.astro-QEqJqf23 ul{list-style:none;padding:0}
.astro-QEqJqf23 li{padding:6px 0;font-size:16px}
.astro-QEqJqf23 a{color:#111;text-decoration:none;font-weight:600}
.astro-QEqJqf23 a:hover{text-decoration:underline}
.astro-QEqJqf23 .astro-rwwCAsMW{margin:0 0 0 8px}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;700&display=swap');
body{font-family:'Lora',sans-serif;color:#2D2424;background:#FFF9F7}
.astro-6BPy76jy{background:#4A2C2A;color:#fff}
.astro-6BPy76jy h1{font-family:'Cormorant Garamond',serif;color:#fff}
.astro-6BPy76jy p{color:rgba(255,255,255,.75)}
.astro-6BPy76jy a{color:#fff;text-decoration:none}
.card h2{font-family:'Cormorant Garamond',serif}
.card h2 a{color:#4A2C2A}
.card h2 a:hover{color:#D97B73}
.read-more{color:#D97B73}
.article-content h1{font-family:'Cormorant Garamond',serif}
.article-content h2{font-family:'Cormorant Garamond',serif}
.article-content a{color:#D97B73}
.article-content img{border-radius:12px}
.affiliate-disclosure{border-radius:12px}
.ymyl-disclaimer{border-radius:12px}
/* === Custom === */
/* v.ed3606 — layout revision */
/* Editorial signature pass for rx-recover-fr (Retrouver la Tendresse, persona
   Léa Marchand). Live "bold"/Astro build — class names are obfuscated, so every
   rule uses element + structural selectors only. One display voice (Playfair
   italic wordmark / upright featured serif), one text voice (Lora), one meta
   voice (tracked-uppercase Lora); rose is the single interactive accent;
   plum #7C4A5C is the lone "moment" colour, reserved for the two drop-caps. */

/* Fonts declared as @font-face (position-independent). A top-of-file @import
   would land after the concatenated template/theme rules and be dropped by
   Chromium, so the site would silently render in system serifs. */
@font-face { font-family:'Playfair Display'; font-style:normal; font-weight:400 700; font-display:swap; src:url(https://fonts.gstatic.com/s/playfairdisplay/v40/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2) format('woff2'); }
@font-face { font-family:'Playfair Display'; font-style:italic; font-weight:400 700; font-display:swap; src:url(https://fonts.gstatic.com/s/playfairdisplay/v40/nuFRD-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_qiTXtHA-Q.woff2) format('woff2'); }
@font-face { font-family:'Lora'; font-style:normal; font-weight:400 600; font-display:swap; src:url(https://fonts.gstatic.com/s/lora/v37/0QIvMX1D_JOuMwr7Iw.woff2) format('woff2'); }
@font-face { font-family:'Lora'; font-style:italic; font-weight:400 600; font-display:swap; src:url(https://fonts.gstatic.com/s/lora/v37/0QI8MX1D_JOuMw_hLdO6T2wV9KnW-MoFoq92nA.woff2) format('woff2'); }

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --color-primary:      #4A2C2A;
  --color-primary-dark: #2E1917;
  --color-accent:       #D97B7B;
  --color-accent-dark:  #B85A5A;
  --color-moment:       #7C4A5C;   /* plum — signature drop-cap only, used sparingly */
  --color-bg:           #FFF9F8;
  --color-surface:      #FBEDEA;
  --color-card:         #FDF4F1;   /* warm blush paper — never pure white */
  --color-text:         #2D2424;
  --color-muted:        #6E5754;
  --color-border:       #EAD9D5;
  --color-link:         #B85A5A;
  --color-link-hover:   #D97B7B;
  --color-header-text:  #FBEDEA;
  --color-footer-bg:    #20120F;
  --color-footer-text:  #D9C4C0;
  --font-heading:       'Playfair Display', Georgia, serif;
  --font-body:          'Lora', Georgia, serif;
  --font-meta:          'Lora', Georgia, serif;
  --font-size-base:     17px;
  --font-size-sm:       15px;
  --line-height-body:   1.72;
  --border-radius:      12px;
  --max-w:              700px;
  --max-w-wide:         920px;
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

:root img { max-width: 100%; height: auto; border-radius: var(--border-radius); }
:root ::selection { background-color: rgba(124, 74, 92, 0.20); color: var(--color-text); }

/* ── Typography ───────────────────────────────────────────── */
:root h1, :root h2, :root h3, :root h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-primary);
  margin: 1.5em 0 0.5em;
}
:root h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-top: 0; }
:root h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 1.8em; }
:root h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }
:root h4 { font-size: 1.05rem; font-weight: 600; font-style: italic; }

:root p { max-width: 66ch; margin: 0 0 1.3em; }

:root a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
:root a:hover { color: var(--color-link-hover); }

:root strong { color: var(--color-primary); font-weight: 600; }
:root em { font-style: italic; }

/* ── Lists ────────────────────────────────────────────────── */
:root ul, :root ol { padding-left: 1.6em; margin: 0 0 1.3em; max-width: 66ch; }
:root li { margin-bottom: 0.5em; line-height: var(--line-height-body); }
:root li::marker { color: var(--color-accent-dark); }
:root li:last-child { margin-bottom: 0; }

/* ── Blockquote ───────────────────────────────────────────── */
:root blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1.1em 1.6em;
  margin: 2em 0;
  background-color: var(--color-surface);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  max-width: 64ch;
  font-style: italic;
  color: var(--color-primary);
}
:root blockquote p { margin-bottom: 0; max-width: none; }

:root hr { border: none; border-top: 1px solid var(--color-border); margin: 2.5em auto; max-width: 36ch; }

/* ── Tables ───────────────────────────────────────────────── */
:root table { width: 100%; border-collapse: collapse; margin: 2.2em 0; }
:root th, :root td { padding: 0.75em 0.6em; text-align: left; border-bottom: 1px solid var(--color-border); }
:root tr:nth-child(even) { background-color: var(--color-surface); }

/* ── Layout container ────────────────────────────────────────*/
:root main { max-width: var(--max-w-wide); margin: 0 auto; padding: 2.5rem 1.5rem; }


/* ==========================================================================
   MASTHEAD  — shared: body's first <div> on home AND article. Full-bleed
   cover photo + rosewood gradient overlay, interlocking-rings monogram,
   Playfair-italic wordmark, italic manifesto line.
   ========================================================================== */
:root body > div:first-child {
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(217,123,123,0.18) 0%, rgba(217,123,123,0) 55%),
    linear-gradient(168deg, rgba(46,25,23,0.90) 0%, rgba(74,44,42,0.80) 55%, rgba(46,25,23,0.90) 100%),
    url("/theme-assets/cover-photo.jpg") center 40% / cover no-repeat,
    var(--color-primary-dark);
  color: var(--color-header-text);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: clamp(2.4rem, 5vw, 3.75rem);
  border-bottom: 3px solid var(--color-accent-dark);
  position: relative;
}
:root body > div:first-child > div { position: relative; max-width: 40rem; margin: 0 auto; }
/* Signature monogram: two interlocking rings = a couple, reaching for each other */
:root body > div:first-child > div::before {
  content: '';
  display: block;
  width: 56px; height: 38px;
  margin: 0 auto 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='38' viewBox='0 0 56 38'%3E%3Ccircle cx='21' cy='19' r='14' fill='none' stroke='%23FBEDEA' stroke-width='2'/%3E%3Ccircle cx='35' cy='19' r='14' fill='none' stroke='%23D97B7B' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root body > div:first-child h1,
:root body > div:first-child > div > a {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--color-header-text);
  letter-spacing: 0.01em;
  margin: 0;
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
:root body > div:first-child > div > a:hover { color: var(--color-accent); }
:root body > div:first-child p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: rgba(251, 237, 234, 0.88);
  max-width: 36rem;
  margin: 0.9rem auto 0;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}


/* ==========================================================================
   HOMEPAGE  — scoped by :has(> div > h2): only the home feed has card divs
   whose direct child is an <h2>. Article/related blocks use <h3>, so nothing
   below ever touches an article page. 6-col grid: hero (full) → picks band
   → LE CARNET photo strip + journal lead → 2-col chrono → archive strip.
   ========================================================================== */
:root main:has(> div > h2) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: 0;
  align-items: stretch;
  padding-top: 0.5rem;
}
/* Strip the template's flat-black left rule from every card */
:root main:has(> div > h2) > div {
  border-left: none;
  padding-left: 0;
  margin-bottom: 0;
}
/* Dates (first <p> of each card) → muted rose meta, not cold grey */
:root main:has(> div > h2) > div > p:first-of-type {
  color: var(--color-muted);
  letter-spacing: 0.14em;
}
/* Excerpts (second <p>) clamped to 3 lines so rows keep equal height */
:root main:has(> div > h2) > div:nth-of-type(n+2) > p:nth-of-type(2) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

/* — HERO (card 1): the one loud voice — full-width featured panel ————— */
:root main:has(> div > h2) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 1px 4px rgba(74,44,42,.04);
}
/* faint interlocking rings fill the empty right side (balanced layout) */
:root main:has(> div > h2) > div:nth-of-type(1)::after {
  content: '';
  position: absolute;
  right: -34px; bottom: -34px;
  width: 240px; height: 156px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='156' viewBox='0 0 120 78'%3E%3Ccircle cx='44' cy='39' r='30' fill='none' stroke='%23D97B7B' stroke-width='2.4'/%3E%3Ccircle cx='76' cy='39' r='30' fill='none' stroke='%23B85A5A' stroke-width='2.4'/%3E%3C/svg%3E") right center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}
:root main:has(> div > h2) > div:nth-of-type(1) > * { position: relative; z-index: 1; max-width: 40rem; }
/* "À LA UNE" badge above the date kicker */
:root main:has(> div > h2) > div:nth-of-type(1)::before {
  content: 'À LA UNE';
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-meta);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.85rem;
}
:root main:has(> div > h2) > div:nth-of-type(1) > h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0.15em 0 0.5em;
}
:root main:has(> div > h2) > div:nth-of-type(1) > h2 a { color: var(--color-primary); text-decoration: none; }
:root main:has(> div > h2) > div:nth-of-type(1) > h2 a:hover { color: var(--color-accent-dark); }
:root main:has(> div > h2) > div:nth-of-type(1) > p:nth-of-type(2) {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 1.4rem;
  max-width: 40rem;
}
/* opening drop cap — moment colour, use #1 of 2 */
:root main:has(> div > h2) > div:nth-of-type(1) > p:nth-of-type(2)::first-letter {
  font-family: var(--font-heading);
  font-size: 3.4em;
  line-height: 0.78;
  float: left;
  margin: 0.05em 0.12em -0.05em 0;
  color: var(--color-moment);
  font-weight: 700;
}

/* — Shared card CTA: rose outlined pill (was flat black on every card) —— */
:root main:has(> div > h2) > div > a {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--font-meta);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: transparent;
  border: 1px solid var(--color-accent-dark);
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
:root main:has(> div > h2) > div > a:hover {
  background: var(--color-accent-dark);
  color: var(--color-header-text);
}
/* hero CTA is filled — the loudest button on the page */
:root main:has(> div > h2) > div:nth-of-type(1) > a { background: var(--color-accent-dark); color: var(--color-header-text); }
:root main:has(> div > h2) > div:nth-of-type(1) > a:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* — SÉLECTION DE LÉA band (cards 2-4): the change of gear after the hero — */
:root main:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4) {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem 1.75rem 1.6rem;
  margin-top: 4.5rem;
  box-shadow: 0 1px 4px rgba(74, 44, 42, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
:root main:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4):hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(74, 44, 42, 0.1);
  transform: translateY(-2px);
}
:root main:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4) > h2 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0.1em 0 0.5em;
}
:root main:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4) > h2 a { color: var(--color-primary); text-decoration: none; }
:root main:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4) > h2 a:hover { color: var(--color-accent-dark); }
:root main:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4) > p:nth-of-type(2) { flex: 1 0 auto; }
/* band label anchored above card 2, growing upward so it never overlaps */
:root main:has(> div > h2) > div:nth-of-type(2) { position: relative; }
:root main:has(> div > h2) > div:nth-of-type(2)::before {
  content: "Sélection de Léa · à lire d'abord";
  position: absolute;
  left: 2px; bottom: calc(100% + 1.05rem);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-border);
  min-width: 60vw;
  font-family: var(--font-meta);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

/* — LE CARNET strip + journal lead (card 5, full width) ————————————— */
:root main:has(> div > h2) > div:nth-of-type(5) {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: none;
  padding: 0;
}
/* Strip 1 — section break between the picks band and the journal */
:root main:has(> div > h2) > div:nth-of-type(5)::before {
  content: 'LE CARNET';
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(180px, 26vw, 220px);
  margin: 0 0 2.25rem;
  border-radius: 10px;
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    url("/theme-assets/story-photo.jpg") center 30% / cover no-repeat;
  color: #F7ECEA;
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
:root main:has(> div > h2) > div:nth-of-type(5) > p,
:root main:has(> div > h2) > div:nth-of-type(5) > h2 { max-width: 44rem; margin-left: auto; margin-right: auto; }
:root main:has(> div > h2) > div:nth-of-type(5) > h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.2; margin: 0.1em auto 0.5em; }
:root main:has(> div > h2) > div:nth-of-type(5) > h2 a { color: var(--color-primary); text-decoration: none; }
:root main:has(> div > h2) > div:nth-of-type(5) > h2 a:hover { color: var(--color-accent-dark); }
:root main:has(> div > h2) > div:nth-of-type(5) > a { align-self: center; margin-top: 0.6rem; }

/* — CHRONOLOGICAL grid (cards 6+): quiet, consistent, 2-col, hairlines — */
:root main:has(> div > h2) > div:nth-of-type(n+6) {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  padding: 1.9rem 0 0.6rem;
}
:root main:has(> div > h2) > div:nth-of-type(6),
:root main:has(> div > h2) > div:nth-of-type(7) { margin-top: 2.75rem; }
:root main:has(> div > h2) > div:nth-of-type(n+6) > h2 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0.1em 0 0.4em;
}
:root main:has(> div > h2) > div:nth-of-type(n+6) > h2 a { color: var(--color-primary); text-decoration: none; }
:root main:has(> div > h2) > div:nth-of-type(n+6) > h2 a:hover { color: var(--color-accent-dark); }
:root main:has(> div > h2) > div:nth-of-type(n+6) > p:nth-of-type(2) { flex: 1 0 auto; }
/* a lonely trailing card in the left column spans full width instead of
   leaving the right column empty (archive is :last, so last card is
   :nth-last-of-type(2); left column = even absolute nth from card 6) */
:root main:has(> div > h2) > div:nth-of-type(n+6):nth-last-of-type(2):nth-of-type(even) {
  grid-column: 1 / -1;
}

/* — ARCHIVE strip (last child, the <ul> block): Strip 2 + two-col index — */
:root main:has(> div > h2) > div:last-child:has(> ul) {
  grid-column: 1 / -1;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 0;
  border-top: none;
  background: transparent;
}
/* Strip 2 — section break between the journal grid and the archive */
:root main:has(> div > h2) > div:last-child:has(> ul)::before {
  content: 'ARTICLES PRÉCÉDENTS';
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(200px, 28vw, 240px);
  margin: 0 0 2.25rem;
  border-radius: 10px;
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    url("/theme-assets/story-photo.jpg") center 70% / cover no-repeat;
  color: #F7ECEA;
  font-family: var(--font-meta);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
/* Magazine index: boxed cream cards, same design system as the top journal
   cards (paper token, hairline border, radius, shadow, hover lift). Grid
   stretches every cell in a row to equal height. */
:root main:has(> div > h2) > div:last-child:has(> ul) ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  align-items: stretch;
  max-width: none;
  padding: 0;
  margin: 0;
  list-style: none;
}
:root main:has(> div > h2) > div:last-child:has(> ul) li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  margin: 0;
  padding: 18px 20px;
  font-size: 0.98rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(74, 44, 42, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
:root main:has(> div > h2) > div:last-child:has(> ul) li:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(74, 44, 42, 0.1);
  transform: translateY(-2px);
}
:root main:has(> div > h2) > div:last-child:has(> ul) a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
}
:root main:has(> div > h2) > div:last-child:has(> ul) a:hover { color: var(--color-accent-dark); }
:root main:has(> div > h2) > div:last-child:has(> ul) span {
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}


/* ==========================================================================
   ARTICLE PAGE  — scoped by main:has(> article)
   ========================================================================== */
:root main:has(> article) { max-width: var(--max-w); }

:root main:has(> article) h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  color: var(--color-primary);
  margin: 0 0 0.4rem;
}
:root main > hgroup > time,
:root main > article > time {
  display: block;
  font-family: var(--font-meta);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 2.2rem;
}
:root main > hgroup > time::before { content: 'Par Léa Marchand · '; }

/* article body measure + rhythm */
:root main > article > p { font-size: 1.12rem; line-height: 1.78; max-width: 34rem; }

/* opening drop cap — moment colour, use #2 of 2 */
:root main > article > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.2em;
  line-height: 0.78;
  float: left;
  margin: 0.05em 0.1em -0.05em 0;
  color: var(--color-moment);
  font-weight: 700;
}

/* section breaks: ❦ dinkus ornament instead of a hard underline */
:root main > article > h2 {
  border-bottom: none;
  padding-bottom: 0;
  text-align: left;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-top: 2.4em;
}
:root main > article > h2::before {
  content: '❦';
  display: block;
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-accent);
  opacity: 0.85;
  margin: 0 auto 1.1em;
}

/* hanging opening quote on blockquotes */
:root main > article blockquote { position: relative; padding-top: 1.4em; }
:root main > article blockquote::before {
  content: '\00201C';
  position: absolute;
  left: 0.35rem; top: -0.15rem;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.4;
}

/* article hero photo (first section only — never the Gemini inline cards) */
:root main > article > section:first-of-type > img {
  width: 100%;
  border-radius: var(--border-radius);
  margin: 0 0 1.6rem;
}

/* inline affiliate mentions (/to/… and /find/…) read as warm, confident links,
   never pills — a pill mid-sentence looks broken */
:root main a[href^="/to/"],
:root main a[href^="/find/"] {
  color: var(--color-accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}
:root main a[href^="/to/"]:hover,
:root main a[href^="/find/"]:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

/* "Articles connexes" block — recoloured off the template's flat-black rule */
:root main > div:has(> h3) {
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 1.75rem;
  background: var(--color-surface);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-top: 3rem;
}
:root main > div:has(> h3) > h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}
:root main > div:has(> h3) a { color: var(--color-link); text-decoration: none; font-weight: 500; }
:root main > div:has(> h3) a:hover { color: var(--color-link-hover); text-decoration: underline; }
/* neutralise the generic English "MORE FROM THE ARCHIVE" pseudo-label + the
   two-column archive treatment that the shared tail-polish step appends to
   this last-child block on articles (its :last-child adds a pseudo-class unit,
   so match it with :last-child here to out-specify) */
:root body main:has(> article) > div:has(> h3):last-child::before { content: none; }
:root main:has(> article) > div:has(> h3):last-child ul { columns: auto; }


/* ── Footer ───────────────────────────────────────────────── */
:root footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2.6rem 1.5rem;
  text-align: center;
  font-size: var(--font-size-sm);
  margin-top: 3.5rem;
  border-top: 3px solid var(--color-accent-dark);
}
:root footer::before {
  content: '';
  display: block;
  width: 48px; height: 32px;
  margin: 0 auto 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='32' viewBox='0 0 56 38'%3E%3Ccircle cx='21' cy='19' r='14' fill='none' stroke='%23D9C4C0' stroke-width='2'/%3E%3Ccircle cx='35' cy='19' r='14' fill='none' stroke='%23D97B7B' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.9;
}
:root footer a { color: var(--color-accent); text-decoration: underline; }
:root footer a:hover { color: var(--color-header-text); }
:root footer p { max-width: none; margin-bottom: 0.5rem; }


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  :root body { font-size: 16px; }
  :root main { padding: 1.5rem 1.25rem; }

  /* collapse the home grid to one column and reset EVERY span, otherwise
     grid-column:span N spawns implicit tracks (they do not clamp) */
  :root main:has(> div > h2) { grid-template-columns: 1fr; column-gap: 0; }
  :root main:has(> div > h2) > div:nth-of-type(1),
  :root main:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4),
  :root main:has(> div > h2) > div:nth-of-type(5),
  :root main:has(> div > h2) > div:nth-of-type(n+6),
  :root main:has(> div > h2) > div:nth-of-type(n+6):nth-last-of-type(2):nth-of-type(even),
  :root main:has(> div > h2) > div:last-child:has(> ul) { grid-column: 1 / -1; }
  :root main:has(> div > h2) > div:nth-of-type(n+2):nth-of-type(-n+4) { margin-top: 1.75rem; }
  :root main:has(> div > h2) > div:nth-of-type(2) { margin-top: 3.5rem; }
  :root main:has(> div > h2) > div:nth-of-type(7) { margin-top: 0; }
  :root main:has(> div > h2) > div:last-child:has(> ul) ul { grid-template-columns: repeat(2, 1fr); }

  :root main > article > p { max-width: none; }
  :root blockquote { padding: 0.9em 1.2em; }
}


/* related-articles-nav-fix v1 */
:root main > nav p,
:root main > section p {
  line-height: 1.85;
  margin: 0;
}
:root main > nav a,
:root main > section a {
  display: inline-block;
  margin: 0 4px;
  padding: 0 2px;
}


/* mobile-overflow-fix v1 */
:root html, :root body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 920px) {
  :root main > * { max-width: 100%; }
  :root main { overflow-x: hidden; }
}


/* mobile-overflow-fix v2 */
@media (max-width: 640px) {
  :root main,
  :root main > article,
  :root main > div,
  :root main > section,
  :root main > nav {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  :root main > article > *,
  :root main > div > *,
  :root main > section > *,
  :root main > nav > * {
    max-width: 100%;
  }
  :root main h1,
  :root main h2,
  :root main h3,
  :root main h4 {
    overflow-wrap: break-word;
    word-break: normal;
  }
  /* Any 3+ col grid inside main → 1 col on mobile */
  :root main :is(ul, ol, section, div, nav)[style*="grid-template-columns"],
  :root main > section > ul,
  :root main > nav > ul,
  :root main > div > ul {
    grid-template-columns: 1fr !important;
  }
  /* Any CSS multi-column layout → 1 col on mobile */
  :root main :is(ul, ol, section, div, p) {
    columns: 1;
  }
  /* Article body images stay inside viewport */
  :root main img,
  :root main figure {
    max-width: 100%;
    height: auto;
  }
}


/* mobile-padding-fix v1 */
@media (max-width: 640px) {
  :root main {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Cereal-Nordic overlay=25% grid=equal scale=dramatic family=flat-divs */


/* ── CARD 1: featured full-row with 300px photo header (via card-own background, NOT ::before —
    leaves ::before free for existing site's M2 label / meta content). ── */
:root main:not(:has(> h1)) > div:nth-of-type(1) {
  grid-column: 1 / -1;
  position: relative;      /* anchor for existing site's ::before label if it uses absolute */
  overflow: visible;       /* let above-card labels render without clipping */
  padding: 320px 44px 40px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 300px,
    var(--bg) !important;
  margin-top: 60px !important;  /* room for above-card M2 label (existing site convention) */
}

/* ── CARDS 2-4: medium with 180px photo header (background technique, ::before untouched) ── */
:root main:not(:has(> h1)) > div:nth-of-type(2) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(3) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(4) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── flat-divs family: cards 5 & 6 also get photo headers ── */
:root main:not(:has(> h1)) > div:nth-of-type(5) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-1.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}
:root main:not(:has(> h1)) > div:nth-of-type(6) {
  padding: 200px 32px 32px !important;
  border-radius: 8px;
  background:
    url("/theme-assets/premium-hero-strip-2.webp") no-repeat center top / 100% 180px,
    var(--bg) !important;
}

/* ── Article page: drop cap + dinkus dividers ── */
:root main:has(> h1) > article > p:first-of-type::first-letter {
  font-family: var(--fh), Georgia, serif;
  font-size: 76px; line-height: 0.9; color: var(--primary);
  float: left; margin: 6px 12px 0 0; padding: 0; font-weight: 400;
}
:root main:has(> h1) > article > h2 + p ~ h2::before {
  content: "✦ ✦ ✦";
  display: block; text-align: center; color: var(--accent);
  font-size: 12px; letter-spacing: 0.3em; margin-bottom: 24px;
  font-weight: 400;
}

/* ── Mobile responsive: adjust photo heights via background-size on the card itself ── */
@media (max-width: 720px) {
  :root main:not(:has(> h1)) > div:nth-of-type(1) {
    padding: 240px 22px 28px !important;
    background:
      url("/theme-assets/premium-hero-card-1.webp") no-repeat center top / 100% 220px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(2) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-2.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(3) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-3.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1)) > div:nth-of-type(4) {
    padding: 180px 22px 26px !important;
    background:
      url("/theme-assets/premium-hero-card-4.webp") no-repeat center top / 100% 160px,
      var(--bg) !important;
  }
  :root main:not(:has(> h1))::before,
  :root main:not(:has(> h1))::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

