*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Palatino Linotype',Palatino,'Book Antiqua',serif;line-height:1.9;color:#2a2a2a;background:#fefefe}
.css-yapwyjc{max-width:640px;margin:0 auto;padding:0 20px}
.css-gah8wht{padding:60px 0 40px;border-bottom:1px solid #ccc;margin-bottom:48px}
.css-gah8wht h1{font-size:24px;font-weight:400;letter-spacing:-.5px}
.css-gah8wht p{font-size:14px;color:#777;margin-top:6px;font-style:italic}
.css-gah8wht a{color:#2a2a2a;text-decoration:none;font-size:24px;font-weight:400;letter-spacing:-.5px}
.css-h2bizhn{padding:20px 0}
.css-h2bizhn h2{font-size:18px;font-weight:400;margin-bottom:4px}
.css-h2bizhn h2 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.css-h2bizhn h2 a:hover{border-bottom-color:#2a2a2a}
.css-h2bizhn .css-om008xn{font-size:12px;color:#aaa;margin-bottom:6px}
.css-h2bizhn p{font-size:14px;color:#666}
.css-biwczql{color:#888;font-size:13px;text-decoration:none}
.css-biwczql:hover{color:#2a2a2a}
.css-4om4xwd{padding-bottom:60px}
.css-4om4xwd h1{font-size:28px;font-weight:400;margin-bottom:8px}
.css-4om4xwd .css-om008xn{font-size:12px;color:#aaa;display:block;margin-bottom:32px}
.css-4om4xwd h2{font-size:21px;font-weight:400;margin:40px 0 12px;border-bottom:1px solid #eee;padding-bottom:6px}
.css-4om4xwd h3{font-size:17px;margin:28px 0 8px}
.css-4om4xwd p{margin-bottom:18px;font-size:16px}
.css-4om4xwd ul,.css-4om4xwd ol{margin:0 0 18px 20px}
.css-4om4xwd a{color:#555;border-bottom:1px solid #ccc}
.css-4om4xwd a:hover{color:#000;border-bottom-color:#000}
.css-4om4xwd img{max-width:100%;height:auto;margin:24px 0}
.css-foypzif{border-top:1px solid #ddd;padding:20px 0;margin-top:48px;text-align:center;font-size:12px;color:#aaa}
.css-foypzif a{color:#aaa;text-decoration:none}
.css-106iuex{padding:0 0 16px;margin-bottom:24px;font-size:12px;color:#aaa;font-style:italic;border-bottom:1px solid #eee}
.css-3gmn4rz{padding:16px 0 0;margin-top:32px;font-size:11px;color:#999;border-top:1px solid #eee}
.css-7oelm3o{font-size:12px;color:#aaa;margin:-26px 0 32px;font-weight:300}
.css-573lyfd{margin:0 auto 32px;max-width:720px}
.css-sjgxr4y{width:100%;height:auto}
.css-a82mi19{margin-top:40px;padding-top:20px;border-top:1px solid #eee;font-size:14px;color:#888}
.css-a82mi19 em{color:#aaa}
.css-a82mi19 a{color:#555;border-bottom:1px solid #ddd;text-decoration:none}
.css-nkrym6y{padding:24px 0 0;border-top:1px solid #eee;margin-top:24px}
.css-nkrym6y p{padding:3px 0;margin:0;font-size:15px}
.css-nkrym6y a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.css-nkrym6y a:hover{border-bottom-color:#2a2a2a}
/* === 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:#2D2A26;background:#F9F7F2}
.css-gah8wht{background:#1B3022;color:#fff}
.css-gah8wht h1{font-family:'Cormorant Garamond',serif;color:#fff}
.css-gah8wht p{color:rgba(255,255,255,.75)}
.css-gah8wht a{color:#fff;text-decoration:none}
.card h2{font-family:'Cormorant Garamond',serif}
.card h2 a{color:#1B3022}
.card h2 a:hover{color:#C05621}
.read-more{color:#C05621}
.article-content h1{font-family:'Cormorant Garamond',serif}
.article-content h2{font-family:'Cormorant Garamond',serif}
.article-content a{color:#C05621}
.article-content img{border-radius:8px}
.affiliate-disclosure{border-radius:8px}
.ymyl-disclaimer{border-radius:8px}
/* === Custom === */
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Jost:wght@400;500;600&display=swap');

/* Design tokens */
:root {
  --color-bg:          #F0F2EE;
  --color-text:        #1C2118;
  --color-heading:     #253028;
  --color-primary:     #7A6130;
  --color-accent:      #5A7A5E;
  --color-secondary:   #A08048;
  --color-surface:     #E4E8E2;
  --color-border:      #C4CAC0;
  --color-muted:       #596058;
  --color-link:        #7A6130;
  --color-link-hover:  #5A4520;
  --color-header-bg:   #253028;
  --color-header-text: #E8EDE6;
  --color-footer-bg:   #1A221C;
  --color-footer-text: #A8B4A8;
  --font-heading: 'Cardo', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --size-base: 17px;
  --lh-body:    1.76;
  --lh-heading: 1.2;
  --max-prose:  68ch;
  --radius:      4px;
  --radius-card: 8px;
  --spacing:     3rem;
  --shadow-card: 0 2px 8px rgba(28, 33, 24, 0.08);
}

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

html {
  font-size: var(--size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
:root h1,
:root h2,
:root h3,
:root h4 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-heading);
  margin-top: 0;
  font-weight: 700;
}

:root h1 { font-size: 2.4rem;  margin-bottom: 0.9rem; }
:root h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
:root h3 { font-size: 1.3rem;  margin-bottom: 0.6rem; }
:root h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }

/* Body text */
:root p {
  margin-top: 0;
  margin-bottom: 1.1rem;
  max-width: var(--max-prose);
}

:root ul,
:root ol {
  margin-top: 0;
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
  max-width: var(--max-prose);
}

:root li { margin-bottom: 0.45rem; }

:root blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-muted);
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  max-width: var(--max-prose);
}

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

/* Links */
:root a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

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

/* Images */
:root img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Header */
:root .mag-header {
  background-color: var(--color-header-bg);
  color: var(--color-header-text);
  padding: 2rem 1.5rem 1.75rem;
}

:root .mag-header h1 {
  font-family: var(--font-heading);
  color: var(--color-header-text);
  font-size: 1.95rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
  font-weight: 700;
}

:root .mag-header p {
  color: rgba(232, 237, 230, 0.68);
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: none;
}

:root .mag-header a { color: var(--color-header-text); text-decoration: none; }
:root .mag-header a:hover { color: var(--color-secondary); }

/* Navigation */
:root .mag-nav,
:root nav {
  background-color: var(--color-accent);
  padding: 0.6rem 1.5rem;
}

:root .mag-nav a,
:root nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  transition: background 0.18s ease;
}

:root .mag-nav a:hover,
:root nav a:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Article content */
:root .article-content {
  font-size: 1.06rem;
  line-height: var(--lh-body);
}

:root .article-content h1,
:root .article-content h2,
:root .article-content h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
}

:root .article-content h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}

:root .article-content a { color: var(--color-link); font-weight: 500; }
:root .article-content a:hover { color: var(--color-link-hover); }

:root .article-content img {
  border-radius: var(--radius-card);
  margin: 1.5rem 0;
}

/* Cards */
:root .card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

:root .card:hover {
  box-shadow: 0 5px 18px rgba(28, 33, 24, 0.13);
  transform: translateY(-2px);
}

:root .card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

:root .card h2 a { color: var(--color-heading); text-decoration: none; }
:root .card h2 a:hover { color: var(--color-primary); }

:root .card .card-meta,
:root .card .card-date {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

:root .card p { font-size: 0.95rem; color: var(--color-text); margin-bottom: 0.75rem; }

:root .card .read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

:root .card .read-more:hover { color: var(--color-link-hover); text-decoration: underline; }

/* Related articles aside */
:root main aside {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-border);
}

:root main aside h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.mag-related-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.mag-related-item a {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  font-weight: 500;
  color: var(--color-heading);
}

.mag-related-item a:hover { color: var(--color-primary); }

/* HR */
:root hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--spacing) 0;
}

/* Footer */
:root footer,
:root .mag-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2rem 1.5rem;
  font-size: 0.88rem;
}

:root footer a,
:root .mag-footer a {
  color: var(--color-footer-text);
  text-decoration: underline;
  text-decoration-color: rgba(168, 180, 168, 0.4);
}

:root footer a:hover,
:root .mag-footer a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

/* Utility */
:root .text-muted { color: var(--color-muted); }

/* Responsive */
@media (max-width: 600px) {
  :root h1 { font-size: 1.85rem; }
  :root h2 { font-size: 1.4rem; }
  :root h3 { font-size: 1.15rem; }
  :root .mag-header { padding: 1.4rem 1rem 1.2rem; }
  :root .mag-header h1 { font-size: 1.5rem; }
}

/* === R2 fixes (2026-07-01T15:40:08.289541+00:00) === */

/* Fix 1 + Fix 5: Header contrast & breathing room */
:root .mag-header {
  padding: 2.5em 2em;
}

:root .mag-header h1 {
  color: #F5F2EC;
  font-size: 2.3rem;
}

:root .mag-header a {
  color: #F5F2EC;
}

/* Fix 2 + Fix 6: Article paragraph readability & inter-section breathing */
:root .article-content p {
  line-height: 1.8;
  margin-bottom: 1.2em;
}

/* Fix 3: Article section headings — stronger landmark spacing */
:root .article-content h2 {
  margin-top: 2.5em;
  margin-bottom: 0.5em;
}

/* Fix 4: Related articles block — soft tinted card instead of dark banner */
:root main nav,
:root main aside {
  background-color: #E8EDE5;
  color: #3A4A38;
  border-top: none;
  border-left: 3px solid #5A7A5E;
  padding: 1em 1.4em;
  border-radius: 4px;
  margin-top: 2.5rem;
}

/* === R3 fixes (2026-07-01T16:20:09.362984+00:00) === */

/* Fix R3-1: Hero h1 visibility — ensure site name reads clearly on dark header */
header h1 {
  color: #F5F2EC;
  font-size: 1.9em;
  letter-spacing: 0.01em;
}

/* Fix R3-2: Scrollable wide tables in article content */
.bld-content table {
  display: block;
  overflow-x: auto;
  font-size: 0.82em;
  border-collapse: collapse;
}

.bld-content th,
.bld-content td {
  min-width: 90px;
  padding: 0.45em 0.6em;
  vertical-align: top;
}

/* Fix R3-3: Tagline/subtitle legibility in hero header */
header p,
header .tagline {
  color: rgba(245, 242, 236, 0.82);
  font-size: 0.95em;
  font-style: italic;
  margin-top: 0.6em;
  line-height: 1.5;
}

header {
  padding-top: 2.8em;
  padding-bottom: 2.8em;
}

/* Fix R3-4: List item size parity with body text */
.bld-content ul li,
.bld-content ol li {
  font-size: 1em;
  line-height: 1.75;
  margin-bottom: 0.25em;
}

/* === R4 fixes (2026-07-01T18:30:28.888737+00:00) === */

/* Fix R4-1: Header h1 — specificity (0,1,2) beats :root h1 (0,1,1), garantit la couleur crème sur fond sombre */
:root header h1 {
  color: #F5F2EC;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
}

:root header h1 a,
:root header h1 a:visited {
  color: #F5F2EC;
  text-decoration: none;
}

/* Fix R4-2: Tables dans <article> — overflow horizontal avec bon sélecteur */
article table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.82em;
  border-collapse: collapse;
  max-width: 100%;
}

article th,
article td {
  min-width: 100px;
  padding: 0.4em 0.6em;
  vertical-align: top;
}

article td:last-child {
  white-space: normal;
  min-width: 140px;
}

/* Fix R4-3: Listes dans <article> — taille et interligne normalisés */
article ul li,
article ol li {
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 0.3em;
}

/* v.e2362c — layout revision */

/* ============================================================
   SIGNATURE ÉDITORIALE — jd-jardin-fr / Patience au Jardin
   Persona : Hélène, carnet lent du bonsaï.
   Structure page d'accueil :
     mât photo → héros → sélection (3) → bande "PAR ORDRE
     D'ÉCRITURE" → journal (colonne unique, date | texte) →
     bande de clôture "PLUS D'ARTICLES".
   Sélecteurs structurels uniquement (classes obfusquées au build).
   Accueil = main:has(> div > h2) ; article = main:has(> article).
   Couleur moment #B34F2A : 2 usages — filet du mât + lettrine héros.
   ============================================================ */

:root {
  --paper:    #F6F8F3;   /* papier froid, jamais de blanc pur */
  --paper-2:  #EEF1EA;
  --moment:   #B34F2A;   /* couleur moment — 2 emplacements max */
  --line:     rgba(37,48,40,.13);
}

/* ---------- MÂT : photo + dégradé + bandeau serif italique ---------- */
:root body > header {
  position: relative;
  background-color: #223026;
  background-image:
    linear-gradient(158deg, rgba(24,34,28,.80), rgba(24,34,28,.55)),
    url("/theme-assets/banner.jpg");
  background-size: cover;
  background-position: center 42%;
  color: #EEF2E9;
  text-align: center;
  padding: 4.6rem 1.5rem 4rem;
  border-bottom: 2px solid var(--moment);   /* moment #1 : filet */
  overflow: hidden;
}

:root body > header h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: .01em;
  color: #F3F6EF;
  margin: 0 0 .35rem;
}
:root body > header h1 a,
:root body > header h1 a:visited { color: inherit; text-decoration: none; }

/* bandeau article : lien-mot unique, pas de h1 */
:root body > header > a {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  color: #F3F6EF;
  text-decoration: none;
  letter-spacing: .01em;
}

:root body > header p {
  color: rgba(238,242,233,.82);
  font-family: var(--font-body);
  font-size: .93rem;
  font-style: normal;
  letter-spacing: .03em;
  line-height: 1.55;
  max-width: 44ch;
  margin: .5rem auto 0;
}

/* signature : monogramme bonsaï + manifeste (accueil seulement) */
:root body > header:has(h1)::before {
  content: "";
  display: block;
  width: 42px; height: 42px;
  margin: 0 auto 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEF2E9' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M12 22V10'/%3E%3Cpath d='M12 14C9 14 6 12 6 8c3 0 6 1 6 5'/%3E%3Cpath d='M12 12c3 0 6-2 6-6-3 0-6 1-6 5'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .92;
}
:root body > header:has(h1)::after {
  content: "un arbre, une semaine — sans se presser";
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(238,242,233,.74);
  letter-spacing: .02em;
  margin-top: 1.05rem;
}

/* ============================ ACCUEIL ============================ */
:root main:has(> div > h2) {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 32px;
  row-gap: 46px;
}

/* --- carte générique (sélection + journal) --- */
:root main:has(> div > h2) > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(28,33,24,.05);
  padding: 26px 32px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
:root main:has(> div > h2) > div:hover {
  box-shadow: 0 6px 20px rgba(28,33,24,.10);
  transform: translateY(-2px);
}
:root main:has(> div > h2) > div > p:first-child {         /* date */
  font-family: var(--font-body);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-muted);
  margin: 0 0 .55rem;
}
:root main:has(> div > h2) > div h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
:root main:has(> div > h2) > div h2 a {
  color: var(--color-heading);
  text-decoration: none;
}
:root main:has(> div > h2) > div h2 a:hover { color: var(--color-primary); }
:root main:has(> div > h2) > div > p:nth-of-type(2) {      /* extrait */
  font-size: 1rem;
  line-height: 1.62;
  color: #3a473c;
  max-width: 64ch;
  margin: 0 0 1rem;
}
/* CTA "read more →" (anglais) masqué → FR */
:root main:has(> div > h2) > div > a {
  font-size: 0;
  text-decoration: none;
  display: inline-block;
}
:root main:has(> div > h2) > div > a::after {
  content: "Lire la suite \2192";
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-primary);
}
:root main:has(> div > h2) > div > a:hover::after { color: var(--color-link-hover); }

/* --- HÉROS (première carte) : la voix forte --- */
:root main:has(> div > h2) > div:first-child {
  grid-column: 1 / -1;
  position: relative;
  padding: 60px 56px 54px;
  margin-bottom: 62px;                 /* place pour l'étiquette de section */
  border-radius: 10px;
}
:root main:has(> div > h2) > div:first-child::before {
  content: "Dernier carnet";
  position: absolute;
  top: 30px; left: 56px;
  font-family: var(--font-body);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--color-primary);
}
:root main:has(> div > h2) > div:first-child > p:first-child {
  margin-top: .4rem;
}
:root main:has(> div > h2) > div:first-child h2 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.06;
  margin: .1rem 0 1rem;
  max-width: 20ch;
}
:root main:has(> div > h2) > div:first-child > p:nth-of-type(2) {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  line-height: 1.5;
  color: #2c3a2f;
  max-width: 60ch;
}
:root main:has(> div > h2) > div:first-child > p:nth-of-type(2)::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: .78;
  padding: .04em .12em 0 0;
  color: var(--moment);                /* moment #2 : lettrine */
}
/* CTA héros : pastille contour */
:root main:has(> div > h2) > div:first-child > a {
  margin-top: 1.6rem;
  padding: .6rem 1.5rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  transition: background .18s ease;
}
:root main:has(> div > h2) > div:first-child > a::after {
  content: "Lire ce carnet \2192";
  color: var(--color-primary);
}
:root main:has(> div > h2) > div:first-child > a:hover { background: var(--color-primary); }
:root main:has(> div > h2) > div:first-child > a:hover::after { color: var(--paper); }
/* étiquette "sélection" — pleine largeur, hors cadre, dans l'espace */
:root main:has(> div > h2) > div:first-child::after {
  content: "La sélection d'Hélène — à lire d'abord";
  position: absolute;
  left: 0; right: 0;
  bottom: -46px;
  text-align: center;
  font-family: var(--font-body);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--color-heading);
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}

/* --- SÉLECTION (cartes 2–4) : bande de 3 --- */
:root main:has(> div > h2) > div:nth-child(2),
:root main:has(> div > h2) > div:nth-child(3),
:root main:has(> div > h2) > div:nth-child(4) {
  grid-column: span 2;
  position: relative;
}
:root main:has(> div > h2) > div:nth-child(2)::before,
:root main:has(> div > h2) > div:nth-child(3)::before,
:root main:has(> div > h2) > div:nth-child(4)::before {
  position: absolute;
  top: 22px; right: 28px;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-style: italic;
  color: var(--color-secondary);
  letter-spacing: .04em;
}
:root main:has(> div > h2) > div:nth-child(2)::before { content: "N\00BA I"; }
:root main:has(> div > h2) > div:nth-child(3)::before { content: "N\00BA II"; }
:root main:has(> div > h2) > div:nth-child(4)::before { content: "N\00BA III"; }
:root main:has(> div > h2) > div:nth-child(2) h2,
:root main:has(> div > h2) > div:nth-child(3) h2,
:root main:has(> div > h2) > div:nth-child(4) h2 { font-size: 1.28rem; }
:root main:has(> div > h2) > div:nth-child(2) > p:nth-of-type(2),
:root main:has(> div > h2) > div:nth-child(3) > p:nth-of-type(2),
:root main:has(> div > h2) > div:nth-child(4) > p:nth-of-type(2) {
  font-size: .95rem;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- JOURNAL (cartes 5+) : colonne unique, date | texte --- */
:root main:has(> div > h2) > div:nth-child(n+5) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 168px 1fr;
  column-gap: 34px;
  align-items: start;
  padding: 30px 40px;
}
:root main:has(> div > h2) > div:nth-child(n+5) > p:first-child {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: .98rem;
  text-transform: none;
  letter-spacing: .01em;
  color: var(--color-muted);
  margin: .2rem 0 0;
}
:root main:has(> div > h2) > div:nth-child(n+5) > h2 {
  grid-column: 2; grid-row: 1;
  font-size: 1.5rem;
  margin: 0 0 .5rem;
}
:root main:has(> div > h2) > div:nth-child(n+5) > p:nth-of-type(2) {
  grid-column: 2; grid-row: 2;
  margin: 0 0 .85rem;
}
:root main:has(> div > h2) > div:nth-child(n+5) > a {
  grid-column: 2; grid-row: 3;
}

/* --- BANDE 1 : "PAR ORDRE D'ÉCRITURE" (avant le journal) --- */
:root main:has(> div > h2) > div:nth-child(5) {
  position: relative;
  margin-top: 258px;
}
:root main:has(> div > h2) > div:nth-child(5)::before {
  content: "";
  position: absolute;
  top: -216px; left: 0; right: 0;
  height: 194px;
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    url("/theme-assets/story-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  border-radius: 8px;
}
:root main:has(> div > h2) > div:nth-child(5)::after {
  content: "PAR ORDRE D'\00C9CRITURE";
  position: absolute;
  top: -140px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .32em;
  color: #F3F6EF;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* --- BANDE 2 : "PLUS D'ARTICLES" (clôture) --- */
:root main:has(> div > h2)::after {
  content: "PLUS D'ARTICLES";
  grid-column: 1 / -1;
  margin-top: 42px;
  min-height: 212px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.28)),
    url("/theme-assets/story-bg.jpg");
  background-size: cover;
  background-position: center 70%;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .32em;
  color: #F3F6EF;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ============================ ARTICLE ============================ */
:root main:has(> article) > h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
  color: var(--color-heading);
  margin: 2.2rem 0 .35rem;
}
:root main:has(> article) > span {
  display: block;
  font-family: var(--font-body);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--color-muted);
  margin-bottom: 2rem;
}
:root main:has(> article) > article > p {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.4rem;
  max-width: 68ch;
}
:root main:has(> article) > article h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-heading);
  margin: 2.6em 0 .6em;
}
:root main:has(> article) > article h2::before {
  content: "\2737 \2737 \2737";
  display: block;
  text-align: center;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .5em;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}
:root main:has(> article) > article blockquote {
  position: relative;
  margin: 2rem 0;
  padding: .4rem 0 .4rem 2.5rem;
  border: none;
  background: none;
  border-radius: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.5;
  color: #33453a;
}
:root main:has(> article) > article blockquote::before {
  content: "\201C";
  position: absolute;
  left: -.1rem; top: -.35rem;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  color: var(--color-secondary);
}
:root main:has(> article) > article blockquote p { color: inherit; font-style: inherit; }
:root main:has(> article) > article p a {
  color: var(--color-link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(122,97,48,.42);
  text-underline-offset: 2px;
}
:root main:has(> article) > article p a:hover {
  color: var(--color-link-hover);
  text-decoration-color: currentColor;
}
:root main:has(> article) > article img {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}

/* bloc "Articles connexes" — contraste rehaussé (défaut QA) */
:root main:has(> article) > nav {
  margin-top: 3.5rem;
  padding: 1.6rem 1.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
}
:root main:has(> article) > nav p { margin: 0; max-width: none; }
:root main:has(> article) > nav em {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-muted);
  margin-bottom: .7rem;
}
:root main:has(> article) > nav a {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}
:root main:has(> article) > nav a:hover { color: var(--color-primary); text-decoration: underline; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  :root main:has(> div > h2) {
    grid-template-columns: 1fr;
    padding: 3rem 1.2rem 4rem;
    row-gap: 34px;
  }
  :root main:has(> div > h2) > div:first-child,
  :root main:has(> div > h2) > div:nth-child(2),
  :root main:has(> div > h2) > div:nth-child(3),
  :root main:has(> div > h2) > div:nth-child(4) {
    grid-column: 1 / -1;
  }
  :root main:has(> div > h2) > div:first-child {
    padding: 42px 26px 38px;
    margin-bottom: 58px;
  }
  :root main:has(> div > h2) > div:first-child::before { left: 26px; }
  :root main:has(> div > h2) > div:nth-child(n+5) {
    grid-template-columns: 1fr;
    row-gap: .35rem;
    padding: 26px 26px;
  }
  :root main:has(> div > h2) > div:nth-child(n+5) > p:first-child,
  :root main:has(> div > h2) > div:nth-child(n+5) > h2,
  :root main:has(> div > h2) > div:nth-child(n+5) > p:nth-of-type(2),
  :root main:has(> div > h2) > div:nth-child(n+5) > a {
    grid-column: 1;
    grid-row: auto;
  }
}
