*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif;line-height:1.75;color:#333;background:#f0f2f5}
.Footer_wrapper__F9REU{max-width:860px;margin:0 auto;padding:0 20px}
.Module_main__9H4Hg{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.Module_main__9H4Hg h1{font-size:22px;font-weight:700;margin-bottom:2px}
.Module_main__9H4Hg p{font-size:14px;color:#666}
.Module_main__9H4Hg a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.Hero_inner__kw43l{display:flex;flex-direction:column;gap:20px}
.Page_title__L0W2a{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.Page_title__L0W2a:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.Page_title__L0W2a h2{font-size:19px;margin-bottom:6px}
.Page_title__L0W2a h2 a{color:#1a1a1a;text-decoration:none}
.Page_title__L0W2a .Footer_head__Hv7xt{font-size:12px;color:#999;margin-bottom:8px}
.Page_title__L0W2a p{font-size:14px;color:#555;margin-bottom:12px}
.Banner_area__0K5BV{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.Banner_area__0K5BV:hover{background:#4752c4}
.Sidebar_block__AFpzO{padding-bottom:60px}
.Sidebar_block__AFpzO h1{font-size:30px;font-weight:700;margin-bottom:8px}
.Sidebar_block__AFpzO time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.Sidebar_block__AFpzO h2{font-size:22px;margin:32px 0 12px}
.Sidebar_block__AFpzO h3{font-size:18px;margin:24px 0 8px}
.Sidebar_block__AFpzO p{margin-bottom:16px}
.Sidebar_block__AFpzO ul,.Sidebar_block__AFpzO ol{margin:0 0 16px 24px}
.Sidebar_block__AFpzO a{color:#5865f2}
.Sidebar_block__AFpzO img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.Banner_area__muXIA{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.Banner_area__muXIA a{color:#999;text-decoration:none}
.Article_row__yI0aN{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.Banner_text__I0JjV{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.Article_wrapper__1LsjP{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.Container_title__lheUw{text-align:center;margin:0 0 24px}
.Content_wrap__0gte0{max-width:100%;height:auto;border-radius:12px}
.Card_root__hLYcJ{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.Card_root__hLYcJ h3{font-size:16px;font-weight:700;margin-bottom:12px}
.crd-related-list{display:flex;flex-direction:column;gap:8px}
.crd-related-link{display:block;background:#fff;border-radius:8px;padding:10px 14px;color:#333;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.06);font-size:14px}
.crd-related-link:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
.Header_item__nQtd3{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.Container_block__F7qEl{display:block;background:#fff;border-radius:8px;padding:10px 16px;color:#1a1a1a;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.05);font-size:15px}
.Container_block__F7qEl:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');
body{font-family:'Lora',sans-serif;color:#2D3436;background:#F5F7FA}
.Module_main__9H4Hg{background:#1A1B41;color:#fff}
.Module_main__9H4Hg h1{font-family:'Playfair Display',serif;color:#fff}
.Module_main__9H4Hg p{color:rgba(255,255,255,.75)}
.Module_main__9H4Hg a{color:#fff;text-decoration:none}
.card h2{font-family:'Playfair Display',serif}
.card h2 a{color:#1A1B41}
.card h2 a:hover{color:#F9D976}
.read-more{color:#F9D976}
.article-content h1{font-family:'Playfair Display',serif}
.article-content h2{font-family:'Playfair Display',serif}
.article-content a{color:#F9D976}
.article-content img{border-radius:12px}
.affiliate-disclosure{border-radius:12px}
.ymyl-disclaimer{border-radius:12px}
/* === Custom === */
/* v.090677 — layout revision */
/*
 * sm-sleep-fr — "Mon Rituel du Soir" — editorial signature pass
 * Palette : nuit-chandelle — pale lavender-ivory paper, indigo-dusk ink,
 *           muted candle-gold accent, taupe "moment" #8B6B47 (drop cap + picks label only).
 * Fonts   : Vollkorn (display serif, italic wordmark/titles) + DM Sans (body + meta).
 * Build   : Next-style module classes (stable). Targeted by element/structure +
 *           [class*="…"] substring selectors so nothing depends on a hash suffix.
 * Home structure : body>header>div>h1+p ; main>div(grid of cards)+div(archive tail)
 * Article struct : body>header>div>a ; main>h1+time+article+div(related "Card_root")
 */

/* ─── Fonts : @font-face (top-of-file @import is dropped by the pipeline) ─── */
@font-face {
  font-family: 'Vollkorn';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/vollkorn/v30/0yb9GDoxxrvAnPhYGxkpaE0Urhg0.woff2) format('woff2');
}
@font-face {
  font-family: 'Vollkorn';
  font-style: italic; font-weight: 400 600; font-display: swap;
  src: url(https://fonts.gstatic.com/s/vollkorn/v30/0yb7GDoxxrvAnPhYGxksWE8eqTo29Tc.woff2) format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg.woff2) format('woff2');
}

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --color-bg:              #F6F4FA;
  --color-surface:         #EEEAF6;
  --color-surface-alt:     #E4DDEF;
  --color-paper:           #FBF8F1;   /* warm off-white — cards/tail (NO pure white) */
  --color-text:            #2A2740;
  --color-text-muted:      #6B6480;
  --color-heading:         #1E1B38;

  --color-accent:          #B8873A;   /* candle gold */
  --color-accent-hover:    #8F6425;
  --color-accent-light:    #D9BA7C;
  --color-moment:          #8B6B47;   /* taupe — used in exactly 2 places */

  --color-border:          #DAD3E8;
  --color-link:            #9A6E22;
  --color-link-hover:      #8F6425;

  --font-heading:        'Vollkorn', Georgia, 'Times New Roman', serif;
  --font-body:           'DM Sans', system-ui, -apple-system, sans-serif;
  --font-size-base:      17px;
  --font-size-sm:        15px;

  --border-radius:       12px;
  --max-width-layout:    920px;
  --max-width-content:   68ch;
}

/* ─── Base ──────────────────────────────────────────────────── */
:root body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root main {
  max-width: var(--max-width-layout);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

:root h1, :root h2, :root h3, :root h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.22;
  margin-top: 0;
  margin-bottom: 0.55em;
}

:root p { margin-block: 0 1em; }

:root a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-light);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease, background-color .2s ease;
}
:root a:hover { color: var(--color-link-hover); text-decoration-color: var(--color-accent-hover); }

:root ul, :root ol { padding-inline-start: 1.4rem; margin-block: 0 1rem; }
:root li { margin-block: .35rem; line-height: 1.7; }
:root ul li::marker { color: var(--color-accent); }

/* ══════════════════════════════════════════════════════════════
   MASTHEAD
   ══════════════════════════════════════════════════════════════ */

/* Home masthead : photo + gradient + serif-italic wordmark (the only header with an h1) */
:root body > header[class*="Module_main"] {
  background:
    linear-gradient(180deg, rgba(24,21,44,.58) 0%, rgba(24,21,44,.80) 100%),
    url("/theme-assets/hero-masthead.jpg");
  background-size: cover;
  background-position: center 42%;
  border-bottom: none;
  box-shadow: none;
  margin-bottom: 3.25rem;
  padding-block: clamp(3rem, 8vw, 5rem);
  text-align: center;
}
:root body > header[class*="Module_main"] > div {
  max-width: var(--max-width-layout);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Home: crescent-moon signature above wordmark */
:root body > header[class*="Module_main"]:has(h1) > div::before {
  content: "\263E";
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--color-accent-light);
  margin-bottom: .5rem;
}
:root body > header[class*="Module_main"] h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.15rem, 6vw, 3.25rem);
  letter-spacing: .01em;
  color: #F7F4FB;
  margin: 0 auto .55rem;
  max-width: 20ch;
  text-shadow: 0 1px 22px rgba(24,21,44,.5);
}
/* Home: italic manifesto line */
:root body > header[class*="Module_main"] p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(236,231,246,.88);
  max-width: 48ch;
  margin: 0 auto;
}
/* Article header : same photo band, wordmark link only */
:root body > header[class*="Module_main"] a {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: #F7F4FB;
  text-decoration: none;
  text-shadow: 0 1px 16px rgba(24,21,44,.5);
}
:root body > header[class*="Module_main"]:not(:has(h1)) {
  padding-block: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE FEED → editorial grid  (main > div holding cards w/ h2)
   ══════════════════════════════════════════════════════════════ */
:root main > div:has(> div > h2) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 1.5rem;
  row-gap: 2.4rem;
  margin-block: 0 3rem;
  padding: 0;
}

/* Default journal card = 2-up (spans 3 of 6) */
:root main > div:has(> div > h2) > div {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.7rem 1.9rem 1.6rem;
  box-shadow: 0 1px 4px rgba(30,27,56,.05);
  transition: box-shadow .2s ease, transform .2s ease;
}
:root main > div:has(> div > h2) > div:hover {
  box-shadow: 0 8px 26px rgba(30,27,56,.12);
  transform: translateY(-2px);
}

/* kicker / date line */
:root main > div:has(> div > h2) > div > p:first-child {
  order: -1;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 .6rem;
}
:root main > div:has(> div > h2) > div > h2 {
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0 0 .55rem;
}
:root main > div:has(> div > h2) > div > h2 > a {
  color: var(--color-heading);
  text-decoration: none;
}
:root main > div:has(> div > h2) > div > h2 > a:hover { color: var(--color-accent-hover); }

:root main > div:has(> div > h2) > div > h2 + p {
  font-size: var(--font-size-sm);
  line-height: 1.62;
  color: var(--color-text-muted);
  margin: 0 0 1.2rem;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA → quiet outlined pill pinned to the card foot.
   The template ships English "Read Article"; swap to French via CSS (text hidden,
   label injected) so the button matches the journal's voice. */
:root main > div:has(> div > h2) > div > a[class*="Banner_area"] {
  margin-top: auto;
  align-self: flex-start;
  background-color: transparent;
  color: var(--color-accent-hover);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: .42rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}
:root main > div:has(> div > h2) > div > a[class*="Banner_area"]::after {
  content: "Lire la note";
  font-size: .72rem;
  letter-spacing: .13em;
}
:root main > div:has(> div > h2) > div > a[class*="Banner_area"]:hover {
  background-color: var(--color-accent);
  color: #FBF8F1;
}

/* ── HERO : the first card is THE loud voice ── */
:root main > div:has(> div > h2) > div:first-child {
  grid-column: 1 / -1;
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  padding: clamp(1.9rem, 4vw, 2.9rem) clamp(1.9rem, 4vw, 3rem);
}
:root main > div:has(> div > h2) > div:first-child > p:first-child::before {
  content: "Dernier essai \002014\0000A0";
  color: var(--color-accent-hover);
}
:root main > div:has(> div > h2) > div:first-child > h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: .5rem;
  max-width: 18ch;
}
/* byline block under the featured title */
:root main > div:has(> div > h2) > div:first-child > h2::after {
  content: "Par L\0000E9a\0000A0\0000B7\0000A0Journal du soir\0000A0\0000B7\0000A05 min de lecture";
  display: block;
  margin-top: .9rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
:root main > div:has(> div > h2) > div:first-child > h2 + p {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: 60ch;
  display: block;
  overflow: visible;
  -webkit-line-clamp: none;
}
/* drop cap — MOMENT colour #1 of 2 */
:root main > div:has(> div > h2) > div:first-child > h2 + p::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 3.6rem;
  line-height: .74;
  padding: .35rem .55rem 0 0;
  color: var(--color-moment);
}
:root main > div:has(> div > h2) > div:first-child > a[class*="Banner_area"] {
  padding: .58rem 1.6rem;
  background-color: var(--color-accent);
  color: #FBF8F1;
  border-color: var(--color-accent);
}
:root main > div:has(> div > h2) > div:first-child > a[class*="Banner_area"]::after {
  content: "Lire l'essai";
  font-size: .8rem;
}
:root main > div:has(> div > h2) > div:first-child > a[class*="Banner_area"]:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* ── EDITOR'S PICKS : cards 2–4, a change of gear (3-up band) ── */
:root main > div:has(> div > h2) > div:nth-child(2),
:root main > div:has(> div > h2) > div:nth-child(3),
:root main > div:has(> div > h2) > div:nth-child(4) {
  grid-column: span 2;
  background-color: var(--color-surface-alt);
  border-color: var(--color-border);
  margin-top: 2.6rem;
  position: relative;
}
/* band label — MOMENT colour #2 of 2 — sits above the first band card */
:root main > div:has(> div > h2) > div:nth-child(2)::before {
  content: "S\0000E9lection de L\0000E9a\0000A0\002014\0000A0\0000E0\0000A0lire d'abord";
  position: absolute;
  left: 0;
  bottom: calc(100% + .95rem);
  /* span the full 6-col row: 3 span-2 cards + 2 × 1.5rem column gaps */
  width: calc(300% + 3rem);
  box-sizing: border-box;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--color-border);   /* M2: full-row hairline underline band */
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--color-moment);
}

/* ── STRIP 1 : CI-DESSOUS — photo band between picks and journal ──
   Hosted on the first journal card (5th grid child); its row-mate (6th)
   gets the same top margin so the band sits in an empty full-width gap. */
:root main > div:has(> div > h2) > div:nth-child(5),
:root main > div:has(> div > h2) > div:nth-child(6) {
  margin-top: 234px;
}
:root main > div:has(> div > h2) > div:nth-child(5) { position: relative; }
:root main > div:has(> div > h2) > div:nth-child(5)::before {
  content: "CI-DESSOUS";
  position: absolute;
  left: 0;
  bottom: calc(100% + 26px);
  width: calc(200% + 1.5rem);
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    url("/theme-assets/article-hero.jpg");
  background-size: cover;
  background-position: center 30%;
  background-color: var(--color-heading);   /* M6: solid dark fallback — band stays visible before/without the photo */
  color: #F7F4FB;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}

/* lone last journal card (odd count) → span full & centre so no empty right column */
:root main > div:has(> div > h2) > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
}
:root main > div:has(> div > h2) > div:last-child:nth-child(odd) > h2 { max-width: 24ch; }
:root main > div:has(> div > h2) > div:last-child:nth-child(odd) > h2 + p { margin-inline: auto; }
:root main > div:has(> div > h2) > div:last-child:nth-child(odd) > a[class*="Banner_area"] {
  align-self: center;
}

/* ── STRIP 2 : VOIR TOUT — photo band between journal grid and archive tail ──
   Rendered as the grid container's trailing full-width item. */
:root main > div:has(> div > h2)::after {
  content: "VOIR TOUT";
  grid-column: 1 / -1;
  height: 212px;
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background:
    linear-gradient(rgba(20,24,28,.58), rgba(20,24,28,.3)),
    url("/theme-assets/article-hero.jpg");
  background-size: cover;
  background-position: center 70%;
  background-color: var(--color-heading);   /* M6: solid dark fallback — band stays visible before/without the photo */
  color: #F7F4FB;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}

/* ══════════════════════════════════════════════════════════════
   ARCHIVE TAIL  (home-only : the main>div whose direct children are <a>)
   ══════════════════════════════════════════════════════════════ */
:root main > div:has(> a) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* M7: full-width 3-col magazine index */
  gap: 10px 16px;
  align-items: stretch;                     /* equal-height cells per row */
  max-width: none;                          /* span the full reading measure of main */
  margin: 3rem 0 0;
  padding: 2.2rem 0 1rem;
}
:root main > div:has(> a)::before {
  content: "Toutes les notes\0000A0\002014\0000A0dans l'ordre d'\0000E9criture";
  grid-column: 1 / -1;                       /* full-width label band above the grid */
  text-align: center;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 1.5rem;
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--color-border);
}
/* magazine index : boxed cream cards — SAME design system as the top journal cards
   (paper bg, hairline border, radius, shadow, serif titles, hover lift) */
:root main > div:has(> a) > a {
  display: flex;
  align-items: center;
  height: 100%;                             /* stretch to the row's tallest cell */
  box-sizing: border-box;
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 22px;                        /* M3: ≥18–22px per axis */
  box-shadow: 0 1px 4px rgba(30,27,56,.05);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-heading);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease, color .2s ease;
}
:root main > div:has(> a) > a:hover {
  color: var(--color-accent-hover);
  box-shadow: 0 8px 26px rgba(30,27,56,.12);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════════════════════════ */
:root body > main > h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.14;
  max-width: 22ch;
  margin-bottom: .5rem;
}
:root body > main > time {
  display: block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.9rem;
}

:root body > main > article p {
  max-width: var(--max-width-content);
  font-size: 18px;
  line-height: 1.78;
}
:root body > main > article > h2,
:root body > main > article > h3 {
  font-family: var(--font-heading);
  margin-top: 2.1em;
  margin-bottom: .55em;
}
/* moon dinkus above each h2 section — echoes the masthead mark */
:root body > main > article > h2 { text-align: left; }
:root body > main > article > h2::before {
  content: "\263E \263E \263E";
  display: block;
  margin: .3rem 0 1.3rem;
  font-size: .9rem;
  letter-spacing: .5em;
  color: var(--color-accent-light);
}
/* hanging quotation mark on blockquotes */
:root body > main > article blockquote {
  position: relative;
  max-width: var(--max-width-content);
  margin: 1.9rem 0;
  padding: 1.5rem 1.6rem 1.1rem 2.1rem;
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-surface);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.08rem;
}
:root body > main > article blockquote p { max-width: none; margin: 0; }
:root body > main > article blockquote::before {
  content: "\201C";
  position: absolute;
  top: .5rem;
  left: .7rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-accent-light);
}
:root body > main > article img { border-radius: var(--border-radius); max-width: 100%; height: auto; }

/* Article tables */
:root body > main > article table {
  border: 1px solid var(--color-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}
:root body > main > article th { background-color: var(--color-surface); }
:root body > main > article th,
:root body > main > article td { border-color: var(--color-border); padding: .75rem 1rem; }

/* Related posts block ("Articles connexes" — last div child of article main) */
:root main:has(> article) > div:last-child {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-border);
}
:root main:has(> article) > div:last-child h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
:root main:has(> article) > div:last-child a {
  display: block;
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: .8rem 1rem;
  margin-bottom: .6rem;
  font-family: var(--font-heading);
  font-size: .98rem;
  color: var(--color-heading);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(30,27,56,.04);
}
:root main:has(> article) > div:last-child a:hover {
  color: var(--color-accent-hover);
  box-shadow: 0 3px 10px rgba(30,27,56,.09);
}

/* ── Affiliate disclosure aside — set apart, warm not white ── */
:root main aside[class*="Banner_text"] {
  background-color: #F3EAD6;
  border: 1px solid #E4D3A8;
  border-radius: var(--border-radius);
  padding: 1rem 1.2rem;
  font-size: .9rem;
  color: #6a5a33;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
:root body > footer[class*="Banner_area"] {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 3.5rem;
  padding-block: 2rem;
  color: var(--color-text-muted);
}
:root body > footer[class*="Banner_area"] a { color: var(--color-text-muted); text-decoration: underline; }
:root body > footer[class*="Banner_area"] a:hover { color: var(--color-accent-hover); }

/* ══════════════════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root main > div:has(> div > h2) {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
  :root main > div:has(> div > h2) > div,
  :root main > div:has(> div > h2) > div:first-child,
  :root main > div:has(> div > h2) > div:nth-child(2),
  :root main > div:has(> div > h2) > div:nth-child(3),
  :root main > div:has(> div > h2) > div:nth-child(4),
  :root main > div:has(> div > h2) > div:last-child:nth-child(odd) {
    grid-column: auto;
  }
  :root main > div:has(> div > h2) > div:nth-child(2) { margin-top: 2.8rem; }
  :root main > div:has(> div > h2) > div:nth-child(3),
  :root main > div:has(> div > h2) > div:nth-child(4) { margin-top: 0; }

  /* Strip 1 : single-column — full width of the one column */
  :root main > div:has(> div > h2) > div:nth-child(5) { margin-top: 214px; }
  :root main > div:has(> div > h2) > div:nth-child(6) { margin-top: 0; }
  :root main > div:has(> div > h2) > div:nth-child(5)::before {
    width: 100%;
    height: 168px;
    bottom: calc(100% + 20px);
  }

  :root main > div:has(> a) { grid-template-columns: 1fr; }   /* tail → single column on mobile */
  :root body > main > article p { font-size: 17px; }
}


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


/* affiliate-cta-pill v1 — M10: in-body product links (/to/…) render as a distinct
   accent pill CTA, clearly differentiated from inline prose links. External reference
   links (Wikipedia etc.) keep the normal gold text-link treatment. */
:root body > main > article a[href^="/to/"] {
  display: inline-block;
  background-color: var(--color-accent);
  color: #FBF8F1;
  border: 1px solid var(--color-accent-hover);
  border-radius: 999px;
  padding: .16em .9em;
  margin: .12em .12em;
  font-family: var(--font-body);
  font-size: .9em;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
  text-underline-offset: 0;
  box-shadow: 0 1px 3px rgba(30,27,56,.12);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
:root body > main > article a[href^="/to/"]::after {
  content: "\0000A0\002192";   /* → : reinforces the button/CTA reading */
  font-weight: 600;
}
:root body > main > article a[href^="/to/"]:hover {
  background-color: var(--color-accent-hover);
  color: #FBF8F1;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(30,27,56,.18);
  transform: translateY(-1px);
}


/* article-byline v1 — S6: persona / location / reading-time anchor above the bare
   date line so article meta is no longer date-only. Inherits the <time> meta styling
   (uppercase, tracked, muted); slightly heavier weight sets the byline apart. */
:root body > main > time::before {
  content: "Par L\0000E9a\0000A0\0000B7\0000A0Rennes\0000A0\0000B7\0000A06 min de lecture";
  display: block;
  margin-bottom: .45rem;
  font-weight: 600;
  color: var(--color-text-muted);
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=The-Sill-botanical overlay=55% grid=equal scale=balanced family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 55%) ── */
:root main:not(:has(> h1)) > div:has(> div)::before {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%),
    url("/theme-assets/premium-hero-strip-1.webp") center 40% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}
:root main:not(:has(> h1)) > div:has(> div)::after {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%),
    url("/theme-assets/premium-hero-strip-2.webp") center 45% / cover no-repeat;
  min-height: 340px; padding-bottom: 26px; align-items: flex-end;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); color: #fff;
}


/* ── 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:has(> div) > 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:has(> div) > 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:has(> div) > 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:has(> div) > 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;
}

/* ── 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:has(> div) > 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:has(> div) > 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:has(> div) > 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:has(> div) > 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)) > div:has(> div)::before,
  :root main:not(:has(> h1)) > div:has(> div)::after { min-height: 240px; }
  :root main:has(> h1) > article > p:first-of-type::first-letter { font-size: 60px; }
}

