*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,system-ui,sans-serif;line-height:1.7;color:#333;background:#fff}
.astro-W1q3Wm7T{max-width:780px;margin:0 auto;padding:0 20px}
header{background:#1a1a2e;color:#fff;padding:32px 0;margin-bottom:40px}
header h1{font-size:28px;margin-bottom:4px}
header p{opacity:.7;font-size:15px}
header .astro-uOC8He30{color:#fff;text-decoration:none;font-size:18px;font-weight:600}
.astro-z3iM5G9f{border-bottom:1px solid #eee;padding:24px 0}
.astro-z3iM5G9f h2{font-size:20px;margin-bottom:8px}
.astro-z3iM5G9f h2 a{color:#1a1a2e;text-decoration:none}
.astro-z3iM5G9f h2 a:hover{color:#e94560}
.astro-z3iM5G9f .date{font-size:13px;color:#999;margin-bottom:8px}
.astro-7NQuR9yL{color:#e94560;text-decoration:none;font-size:14px;font-weight:600}
.astro-RpddM4Dy{padding-bottom:60px}
.astro-RpddM4Dy h1{font-size:32px;margin-bottom:8px}
.astro-RpddM4Dy time{font-size:13px;color:#999;display:block;margin-bottom:24px}
.astro-RpddM4Dy h2{font-size:22px;margin:32px 0 12px}
.astro-RpddM4Dy h3{font-size:18px;margin:24px 0 8px}
.astro-RpddM4Dy p{margin-bottom:16px}
.astro-RpddM4Dy ul,.astro-RpddM4Dy ol{margin:0 0 16px 24px}
.astro-RpddM4Dy a{color:#e94560}
.astro-RpddM4Dy img{max-width:100%;height:auto;border-radius:8px;margin:16px 0}
footer{border-top:1px solid #eee;padding:24px 0;margin-top:40px;text-align:center;font-size:13px;color:#999}
footer a{color:#999}
.astro-9p1gCAQx{background:#f5f5f5;border-left:3px solid #999;padding:10px 14px;margin-bottom:20px;font-size:13px;color:#777;font-style:italic}
.astro-9lJ2pqVV{background:#fef9e7;border:1px solid #f0c36d;padding:10px 14px;margin-top:20px;font-size:12px;color:#8a6d3b}
.astro-WEWZ5o5t{font-size:13px;color:#999;margin:-16px 0 24px;font-style:italic}
.astro-Y3pH5jqt{text-align:center;margin:0 0 20px}
.astro-SdegXHtJ{max-width:100%;height:auto;border-radius:6px}
.astro-6P7nMBLk{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.astro-6P7nMBLk h3{font-size:18px;margin-bottom:12px}
.astro-6P7nMBLk ul{list-style:none;padding:0}
.astro-6P7nMBLk li{padding:4px 0}
.astro-6P7nMBLk a{color:#e94560;text-decoration:none}
.astro-mEqo4zNc{padding:20px 0}
.astro-mEqo4zNc ul{list-style:none;padding:0}
.astro-mEqo4zNc li{padding:5px 0;font-size:15px}
.astro-mEqo4zNc a{color:#1a1a2e;text-decoration:none}
.astro-mEqo4zNc a:hover{color:#e94560}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@400;700&display=swap');
body{font-family:'Inter',sans-serif;color:#212529;background:#F4F7F6}
header{background:#2D3436;color:#fff}
header h1{font-family:'Rajdhani',serif;color:#fff}
header p{color:rgba(255,255,255,.75)}
header a{color:#fff;text-decoration:none}
.astro-z3iM5G9f h2{font-family:'Rajdhani',serif}
.astro-z3iM5G9f h2 a{color:#2D3436}
.astro-z3iM5G9f h2 a:hover{color:#FF8C00}
.astro-7NQuR9yL{color:#FF8C00}
.astro-RpddM4Dy h1{font-family:'Rajdhani',serif}
.astro-RpddM4Dy h2{font-family:'Rajdhani',serif}
.astro-RpddM4Dy a{color:#FF8C00}
.astro-RpddM4Dy img{border-radius:4px}
.affiliate-disclosure{border-radius:4px}
.ymyl-disclaimer{border-radius:4px}
/* === Custom === */
/* ============================================================
   bp-btp-fr — Lucie Hamon
   Journal d'apprentissage béton armé
   Palette : brique terracotta · crème chaude · sauge mousse
   Fonts   : Bitter (titres) · Lato (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Lato:ital,wght@0,400;0,700;1,400&display=swap');

/* ---- Design tokens ---- */

:root {
  --color-bg:              #F9F5EF;
  --color-surface:         #FAF5EC;
  --color-text:            #231A11;
  --color-text-muted:      #7A6B5E;
  --color-primary:         #B85A3C;
  --color-primary-dark:    #8F3E26;
  --color-secondary:       #5B7A6C;
  --color-secondary-light: #DCE9E3;
  --color-accent:          #D4936A;
  --color-border:          #E0D5CB;
  --color-border-strong:   #C5B5A8;
  --color-link:            #B85A3C;
  --color-link-hover:      #8F3E26;
  --color-blockquote-bg:   #FDF6EF;
  --font-heading:          'Bitter', Georgia, serif;
  --font-body:             'Lato', system-ui, sans-serif;
  --font-size-base:        17px;
  --font-size-sm:          15px;
  --font-size-xs:          13px;
  --font-size-lg:          19px;
  --font-size-xl:          24px;
  --font-size-2xl:         30px;
  --font-size-3xl:         38px;
  --line-height-base:      1.72;
  --line-height-heading:   1.22;
  --font-weight-heading:   700;
  --border-radius:         6px;
  --spacing:               8px;
  --max-prose:             68ch;
}

/* ---- Base ---- */

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

/* ---- Headings ---- */

:root h1, :root h2, :root h3,
:root h4, :root h5, :root h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
  margin-top: calc(var(--spacing) * 4);
  margin-bottom: calc(var(--spacing) * 1.5);
}

:root h1 { font-size: var(--font-size-3xl); }

:root h2 {
  font-size: var(--font-size-2xl);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: calc(var(--spacing) * 0.75);
}

:root h3 { font-size: var(--font-size-xl); }

:root h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

:root h5, :root h6 {
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* ---- Paragraphs ---- */

:root p {
  max-width: var(--max-prose);
  margin-top: 0;
  margin-bottom: calc(var(--spacing) * 2);
}

/* ---- Links ---- */

:root a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

:root a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-hover);
}

:root a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Lists ---- */

:root ul, :root ol {
  max-width: var(--max-prose);
  padding-left: calc(var(--spacing) * 2.5);
  margin-top: 0;
  margin-bottom: calc(var(--spacing) * 2);
}

:root li { margin-bottom: calc(var(--spacing) * 0.75); }

:root ul li::marker { color: var(--color-primary); }

:root ol li::marker {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ---- Blockquote ---- */

:root blockquote {
  background-color: var(--color-blockquote-bg);
  border-left: 4px solid var(--color-primary);
  padding: calc(var(--spacing) * 2) calc(var(--spacing) * 2.5);
  margin: calc(var(--spacing) * 3) 0;
  max-width: var(--max-prose);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

:root blockquote p:last-child { margin-bottom: 0; }

:root blockquote cite, :root blockquote footer {
  display: block;
  margin-top: calc(var(--spacing) * 1);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

/* ---- Misc content ---- */

:root hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: calc(var(--spacing) * 4) 0;
  max-width: var(--max-prose);
}

:root img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

:root figure { margin: calc(var(--spacing) * 3) 0; max-width: var(--max-prose); }

:root figcaption {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: calc(var(--spacing) * 0.75);
  font-style: italic;
}

:root code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
  padding: 0.15em 0.45em;
  border-radius: calc(var(--border-radius) / 2);
}

:root pre {
  background-color: var(--color-secondary-light);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing) * 2);
  overflow-x: auto;
  max-width: var(--max-prose);
  margin-bottom: calc(var(--spacing) * 2);
}

:root pre code { background: none; padding: 0; color: var(--color-text); }

/* ---- Site header ---- */

:root .site-header {
  background-color: var(--color-surface);
  border-bottom: 3px solid var(--color-primary);
  padding: calc(var(--spacing) * 2.5) 0;
}

:root .site-title a {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

:root .site-title a:hover { color: var(--color-primary); text-decoration: none; }

:root .site-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ---- Navigation ---- */

:root .main-navigation a {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}

:root .main-navigation a:hover { color: var(--color-primary); }

/* ---- Post / article ---- */

:root .entry-title { font-size: var(--font-size-3xl); margin-bottom: calc(var(--spacing) * 1); }

:root .entry-title a { color: var(--color-text); text-decoration: none; }

:root .entry-title a:hover { color: var(--color-primary); }

:root .entry-meta, :root .post-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing) * 3);
}

:root .entry-content { max-width: var(--max-prose); }

/* ---- Sidebar widgets ---- */

:root .widget-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: calc(var(--spacing) * 0.75);
  margin-bottom: calc(var(--spacing) * 1.5);
}

/* ---- Footer ---- */

:root .site-footer {
  background-color: #2A1F17;
  color: #BEB0A4;
  padding: calc(var(--spacing) * 5) 0 calc(var(--spacing) * 4);
  font-size: var(--font-size-sm);
  margin-top: calc(var(--spacing) * 8);
}

:root .site-footer a { color: var(--color-accent); text-decoration: none; }
:root .site-footer a:hover { color: #FFFFFF; }

/* ---- Utility ---- */

:root small, :root .text-muted {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* === R2 fixes (2026-06-24T12:50:27.831853+00:00) === */

/* Fix 1: line-height — more air for evening reading */
:root body,
:root .bld-content p,
:root article p {
  line-height: 1.75;
}

/* Fix 2: H2 section breaks — more space above to reveal structure on scroll */
:root .bld-content h2,
:root article h2 {
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

/* Fix 3: Header — warm earth brown instead of neutral/white surface */
:root header,
:root .site-header {
  background-color: #2C2018;
  border-bottom-color: var(--color-primary);
}

:root .site-header .site-title a {
  color: #F0E6D8;
}

:root .site-header .site-title a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

:root .site-header .site-description {
  color: #BEB0A4;
}

:root .site-header .main-navigation a,
:root header .main-navigation a {
  color: #BEB0A4;
}

:root .site-header .main-navigation a:hover,
:root header .main-navigation a:hover {
  color: var(--color-accent);
}

/* Fix 4: Table rows — padding, line-height, subtle row separators */
:root table td,
:root table th {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.55;
}

/* Fix 5: Related-articles block — discreet framing so it reads as "what's next" */
:root .bld-content .related-articles,
:root section.related,
:root .astro-6P7nMBLk {
  padding: 1.2em 1.5em;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid currentColor;
  border-radius: 4px;
}

/* Fix 6: Homepage article list — breathing room between entries */
:root .bld-content .article-list-item,
:root .homepage-article,
:root article.preview {
  padding-top: 2em;
  padding-bottom: 2em;
}

/* === R3 fixes (2026-06-24T13:30:20.590509+00:00) === */

/* Fix 1: Homepage article entries — thin earth-tone separator like notebook pages */
main article.astro-z3iM5G9f {
  border-top: 2px solid rgba(139, 90, 43, 0.22);
  padding-top: 2em;
}

/* Fix 2: Author-page section H2 — label style instead of heavy chapter heading */
article > section > h2 {
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted, #7a6558);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}

/* Fix 3: Header subtitle — handwritten-notebook feel, italic and discreet */
header p,
header .astro-W1q3Wm7T p {
  font-style: italic;
  font-size: 0.88em;
  opacity: 0.78;
  line-height: 1.5;
  margin-top: 0.4em;
}

/* Fix 4: Author-page publication links — spaced entries with fine separator */
article > section > ul > li > a,
article section ul li a {
  display: block;
  padding: 0.45em 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* === R4 fixes (2026-06-24T14:10:07.114300+00:00) === */

/* Fix 1: Hero image — cap height so opening line stays above the fold */
.astro-SdegXHtJ {
  max-height: 380px;
  object-fit: cover;
  width: 100%;
}

/* Fix 2: Inline article images — warm arrondi + ombre, feel like a photo posée sur la table */
.astro-NeQ4fxzJ img,
.astro-sTDkhhpW {
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(50, 28, 8, 0.10);
}

/* Fix 3: Disclosure section — pushed to footnote weight, not a full chapter */
article > section:last-child {
  margin-top: 3.5em;
  padding-top: 1.2em;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0.72;
  font-size: 0.9em;
}

/* Fix 4: Opening paragraph — slight lift signals "enter here" without breaking prose flow */
main article > p:first-of-type {
  font-size: 1.06em;
  line-height: 1.85;
  color: var(--text-heading, #2c1a0e);
}

/* ============================================================
   v.f8cd57 — layout revision
   Editorial signature pass — Carnet du Projeteur (Lucie Hamon)
   Homepage: photo masthead + monogram, featured hero, 2-col
   journal grid, two story-bg band breaks. Article: bigger
   display, dinkus dividers, drop cap, boxed connexes.
   Real deployed DOM = stable astro-* classes (not obfuscated).
   ============================================================ */

:root {
  --moment: #8B6B47;   /* assigned moment color — used in 2 places only */
  --paper:  #FAF5EC;
  --paper-2:#F1E9DA;
  --ink:    #F5EDDE;
}

/* ---------- MASTHEAD : photo + gradient + monogram + italic wordmark ---------- */

body header {
  background-image:
    linear-gradient(rgba(28,20,14,.66), rgba(28,20,14,.46)),
    url("/theme-assets/masthead-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: #2C2018;      /* fallback if asset 404s */
  border-bottom: 3px solid var(--color-primary);
  padding: 0;
  text-align: center;
  overflow: hidden;               /* kills the mobile left-clip */
}

body header > div {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 74px) 24px;
}

/* signature monogram — moment color use #1 */
body header > div::before {
  content: "LH";
  display: block;
  width: 52px;
  height: 52px;
  line-height: 48px;
  margin: 0 auto 18px;
  border: 2px solid var(--moment);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  text-align: center;
  color: var(--ink);
}

/* homepage wordmark */
body header h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: .005em;
  color: var(--ink);
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

/* homepage manifesto / subtitle */
body header p {
  max-width: 52ch;
  margin: 16px auto 0;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.62;
  color: #E4D6C4;
  opacity: 1;
}

/* interior-page wordmark link (article / author / pages) */
body header:has(a.astro-uOC8He30) > div { padding: 30px 24px; }

body header a.astro-uOC8He30 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px);
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
body header a.astro-uOC8He30:hover { color: var(--color-accent); }

/* ============================================================
   HOMEPAGE  — scoped to main that actually holds the cards
   ============================================================ */

main:has(> article.astro-z3iM5G9f) {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 36px;
  align-items: stretch;
}

/* ---- every homepage card : soft warm frame, no touching edges ---- */
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f {
  min-width: 0;
  background: var(--paper);
  border: 1px solid rgba(60,40,24,.11);
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(60,40,24,.05);
  display: flex;
  flex-direction: column;
  order: 2;                         /* journal cards sit after strip 1 */
}

main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f h2 {
  border: none;
  padding: 0;
  margin: 0 0 12px;
}
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f h2 a {
  color: var(--color-text);
  text-decoration: none;
}
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f h2 a:hover {
  color: var(--color-primary);
}

/* byline built from the date line — consistent across cards */
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f p.date {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: 0 0 16px;
  max-width: none;
}
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f p.date::before {
  content: "Par Lucie Hamon · ";
}

/* excerpt : clamp for equal heights, editorial line-height */
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f > p:not(.date) {
  font-size: 15.5px;
  line-height: 1.6;
  color: #4A3A2C;
  margin: 0 0 18px;
  max-width: 64ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA pill — pushed to card foot so rows align */
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f a.astro-7NQuR9yL {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  padding: 9px 18px;
  transition: background .18s ease, color .18s ease;
}
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f a.astro-7NQuR9yL:hover {
  background: var(--color-primary);
  color: var(--paper);
}

/* regular journal cards — comfortable padding */
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:not(:first-of-type) {
  padding: 30px 32px 28px;
}
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:not(:first-of-type) h2 {
  font-size: 21px;
  line-height: 1.25;
}

/* ---------- THE HERO : one loud voice ---------- */
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:first-of-type {
  order: 0;
  grid-column: 1 / -1;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(60,40,24,.07);
  position: relative;
}

/* "DERNIER CARNET" badge */
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:first-of-type::before {
  content: "Dernier carnet";
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--color-primary);
  margin: 0 0 16px;
}

main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:first-of-type h2 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 20ch;
}

main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:first-of-type p.date {
  font-size: 13px;
  margin-bottom: 22px;
}

/* hero excerpt — larger, un-clamped, drop cap in moment color (use #2) */
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:first-of-type > p:not(.date) {
  font-size: 20px;
  line-height: 1.58;
  color: #3A2C20;
  max-width: 60ch;
  display: block;
  overflow: visible;
}
main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:first-of-type > p:not(.date)::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.6em;
  line-height: .82;
  padding: 6px 12px 0 0;
  color: var(--moment);
}

main:has(> article.astro-z3iM5G9f) > article.astro-z3iM5G9f:first-of-type a.astro-7NQuR9yL {
  font-size: 13px;
  padding: 11px 22px;
}

/* ---------- TWO STORY-BG BAND BREAKS (grid pseudo-items) ---------- */
main:has(> article.astro-z3iM5G9f)::before,
main:has(> article.astro-z3iM5G9f)::after {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-image:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.28)),
    url("/theme-assets/story-bg.jpg");
  background-size: cover;
  background-color: #2C2A26;      /* fallback if asset 404s */
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .32em;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

/* Strip 1 — between hero and journal (the second gear-change) */
main:has(> article.astro-z3iM5G9f)::before {
  content: "Par ordre d’écriture";
  order: 1;
  min-height: 200px;
  background-position: center 30%;
}

/* Strip 2 — closing band before the footer */
main:has(> article.astro-z3iM5G9f)::after {
  content: "Articles précédents";
  order: 3;
  min-height: 220px;
  margin-bottom: 72px;
  background-position: center 70%;
}

/* defensive : any trailing recent-links list stays full-width & warm */
main:has(> article.astro-z3iM5G9f) > ul {
  grid-column: 1 / -1;
  order: 4;
  list-style: none;
  padding: 0;
  margin: 0 0 72px;
  max-width: none;
  columns: 2;
  column-gap: 40px;
}
main:has(> article.astro-z3iM5G9f) > ul li {
  break-inside: avoid;
  border-bottom: 1px dotted rgba(0,0,0,.14);
  padding: 10px 0;
  margin: 0;
}

@media (max-width: 720px) {
  main:has(> article.astro-z3iM5G9f) { grid-template-columns: 1fr; gap: 32px; }
  main:has(> article.astro-z3iM5G9f) > ul { columns: 1; }
}

/* ============================================================
   ARTICLE PAGE  — scoped to the reading-layout main
   ============================================================ */

main.astro-RpddM4Dy {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 68px) 24px 80px;
}

/* massive serif title + tracked byline */
main.astro-RpddM4Dy > h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.14;
  margin: 0 0 12px;
}
main.astro-RpddM4Dy > time {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}
main.astro-RpddM4Dy > time::before { content: "Par Lucie Hamon · "; }

/* hero image — soft frame */
main.astro-RpddM4Dy .astro-Y3pH5jqt img {
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(50,28,8,.12);
}

/* opening paragraph drop cap (primary, not moment) */
main.astro-RpddM4Dy > article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.3em;
  line-height: .84;
  padding: 4px 10px 0 0;
  color: var(--color-primary-dark);
}

/* section headings : dinkus divider instead of a heavy rule */
main.astro-RpddM4Dy > article > h2 {
  border-bottom: none;
  padding-bottom: 0;
  font-size: clamp(23px, 3.4vw, 30px);
  margin-top: 2.4em;
  margin-bottom: .7em;
}
main.astro-RpddM4Dy > article > h2::before {
  content: "✳ ✳ ✳";
  display: block;
  text-align: center;
  color: var(--color-primary);
  font-size: 15px;
  letter-spacing: .5em;
  margin: 0 0 .85em -.5em;
  opacity: .7;
}

/* body breathing */
main.astro-RpddM4Dy > article > p {
  font-size: 18px;
  line-height: 1.78;
}

/* ---- Articles connexes : distinct boxed close ---- */
main.astro-RpddM4Dy section.astro-6P7nMBLk {
  margin-top: 64px;
  padding: 26px 32px 22px;
  background: var(--paper-2);
  border: 1px solid rgba(60,40,24,.12);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
}
main.astro-RpddM4Dy section.astro-6P7nMBLk > h3 {
  margin: 0 0 14px;
  border: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--color-primary-dark);
}
main.astro-RpddM4Dy section.astro-6P7nMBLk ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
main.astro-RpddM4Dy section.astro-6P7nMBLk li {
  margin: 0;
  border-bottom: 1px dotted rgba(0,0,0,.14);
}
main.astro-RpddM4Dy section.astro-6P7nMBLk li:last-child { border-bottom: none; }
main.astro-RpddM4Dy section.astro-6P7nMBLk li a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-heading);
  font-size: 17px;
  text-decoration: none;
  color: var(--color-text);
}
main.astro-RpddM4Dy section.astro-6P7nMBLk li a:hover { color: var(--color-primary); }

/* ---- Author page : lift the intro line ---- */
main.astro-RpddM4Dy > article > p:first-of-type > em {
  font-size: 1.05em;
  color: var(--color-text-muted);
}

/* ============================================================
   FOOTER  — real deployed footer (no .site-footer class exists)
   ============================================================ */

body footer {
  background: #241A12;
  color: #C9B8A6;
  margin-top: 96px;
  padding: 0;
  font-size: 14px;
}
body footer > div {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}
body footer p { max-width: none; margin: 0; }
body footer a { color: var(--color-accent); text-decoration: none; }
body footer a:hover { color: var(--ink); }


/* 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;
  }
}

/* refix iter1: homepage compact archive tail as polished card grid */
:root body main:not(:has(> h1)):has(> article) > ul,
:root body main:not(:has(> h1)):has(> article) > section > ul {
  grid-column: 1 / -1;
  order: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  list-style: none;
  max-width: none;
  width: 100%;
  margin: 0 0 72px;
  padding: 0;
  columns: auto;
  column-gap: normal;
}

:root body main:not(:has(> h1)):has(> article) > section:has(> ul) {
  grid-column: 1 / -1;
  order: 4;
  max-width: none;
  width: 100%;
}

:root body main:not(:has(> h1)):has(> article) > ul > li,
:root body main:not(:has(> h1)):has(> article) > section > ul > li {
  break-inside: auto;
  display: flex;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

:root body main:not(:has(> h1)):has(> article) > ul > li > a,
:root body main:not(:has(> h1)):has(> article) > section > ul > li > a {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid rgba(60,40,24,.11);
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(60,40,24,.05);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

:root body main:not(:has(> h1)):has(> article) > ul > li > a:hover,
:root body main:not(:has(> h1)):has(> article) > section > ul > li > a:hover {
  border-color: rgba(184,90,60,.38);
  box-shadow: 0 4px 12px rgba(60,40,24,.08);
  color: var(--color-primary);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  :root body main:not(:has(> h1)):has(> article) > ul,
  :root body main:not(:has(> h1)):has(> article) > section > ul {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 56px;
    columns: auto;
  }

  :root body main:not(:has(> h1)):has(> article) > ul > li > a,
  :root body main:not(:has(> h1)):has(> article) > section > ul > li > a {
    padding: 18px 20px;
    font-size: 16px;
  }
}

/* refix iter2: restore homepage section breaks and article affiliate CTAs */
:root body main:not(:has(> h1)):has(> article)::before,
:root body main:not(:has(> h1)):has(> article)::after {
  height: clamp(190px, 19vw, 240px);
  min-height: 190px;
  box-sizing: border-box;
  padding: 0 32px;
  background-image:
    linear-gradient(rgba(22,18,15,.74), rgba(22,18,15,.42)),
    url("/theme-assets/story-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  color: #F5EDDE;
}

:root body main:not(:has(> h1)):has(> article)::before {
  background-position: center 28%;
}

:root body main:not(:has(> h1)):has(> article)::after {
  background-position: center 72%;
}

:root body main > article a[href^="/try/"],
:root body main > article a[href^="/ref/"],
:root body main > article a[href^="/go/"],
:root body main > article a[href^="/out/"],
:root body main > article a[href^="/to/"] {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 .18em;
  padding: .34em .82em;
  border: 1px solid rgba(184,90,60,.38);
  border-radius: 999px;
  background: #F1E9DA;
  box-shadow: 0 1px 4px rgba(60,40,24,.05);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.32;
  text-decoration: none;
  text-decoration-color: transparent;
  vertical-align: baseline;
  overflow-wrap: anywhere;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

:root body main > article a[href^="/try/"]:hover,
:root body main > article a[href^="/ref/"]:hover,
:root body main > article a[href^="/go/"]:hover,
:root body main > article a[href^="/out/"]:hover,
:root body main > article a[href^="/to/"]:hover {
  background: #E9DCC9;
  border-color: rgba(184,90,60,.58);
  color: var(--color-primary-dark);
  box-shadow: 0 3px 10px rgba(60,40,24,.08);
}

@media (max-width: 640px) {
  :root body main:not(:has(> h1)):has(> article)::before,
  :root body main:not(:has(> h1)):has(> article)::after {
    height: 190px;
    min-height: 190px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: .24em;
    line-height: 1.4;
    text-align: center;
  }

  :root body main > article a[href^="/try/"],
  :root body main > article a[href^="/ref/"],
  :root body main > article a[href^="/go/"],
  :root body main > article a[href^="/out/"],
  :root body main > article a[href^="/to/"] {
    margin: .08em .12em;
    padding: .36em .72em;
    line-height: 1.28;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Monocle-Swiss overlay=25% grid=mixed scale=balanced family=articles-section */

/* ── Archive strip above <section> tail (overlay 25%) ── */
:root main:not(:has(> h1)) > section {
  position: relative;
  padding-top: 260px;
  grid-column: 1 / -1;
}
:root main:not(:has(> h1)) > section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 240px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  border-radius: 8px;
}


/* ── 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)) > article: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)) > article: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)) > article: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)) > article: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;
}

/* ── 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)) > article: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)) > article: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)) > article: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)) > article: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; }
}

