*{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-08x84oy{max-width:640px;margin:0 auto;padding:0 20px}
.css-2qhomc5{padding:60px 0 40px;border-bottom:1px solid #ccc;margin-bottom:48px}
.css-2qhomc5 h1{font-size:24px;font-weight:400;letter-spacing:-.5px}
.css-2qhomc5 p{font-size:14px;color:#777;margin-top:6px;font-style:italic}
.css-2qhomc5 a{color:#2a2a2a;text-decoration:none;font-size:24px;font-weight:400;letter-spacing:-.5px}
.css-llgxnyn{padding:20px 0}
.css-llgxnyn h2{font-size:18px;font-weight:400;margin-bottom:4px}
.css-llgxnyn h2 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.css-llgxnyn h2 a:hover{border-bottom-color:#2a2a2a}
.css-llgxnyn .css-cbgfblz{font-size:12px;color:#aaa;margin-bottom:6px}
.css-llgxnyn p{font-size:14px;color:#666}
.css-5eliq0e{color:#888;font-size:13px;text-decoration:none}
.css-5eliq0e:hover{color:#2a2a2a}
.css-093scrq{padding-bottom:60px}
.css-093scrq h1{font-size:28px;font-weight:400;margin-bottom:8px}
.css-093scrq .css-cbgfblz{font-size:12px;color:#aaa;display:block;margin-bottom:32px}
.css-093scrq h2{font-size:21px;font-weight:400;margin:40px 0 12px;border-bottom:1px solid #eee;padding-bottom:6px}
.css-093scrq h3{font-size:17px;margin:28px 0 8px}
.css-093scrq p{margin-bottom:18px;font-size:16px}
.css-093scrq ul,.css-093scrq ol{margin:0 0 18px 20px}
.css-093scrq a{color:#555;border-bottom:1px solid #ccc}
.css-093scrq a:hover{color:#000;border-bottom-color:#000}
.css-093scrq img{max-width:100%;height:auto;margin:24px 0}
.css-pagg4ah{border-top:1px solid #ddd;padding:20px 0;margin-top:48px;text-align:center;font-size:12px;color:#aaa}
.css-pagg4ah a{color:#aaa;text-decoration:none}
.css-es4xg8u{padding:0 0 16px;margin-bottom:24px;font-size:12px;color:#aaa;font-style:italic;border-bottom:1px solid #eee}
.css-b0uml1f{padding:16px 0 0;margin-top:32px;font-size:11px;color:#999;border-top:1px solid #eee}
.css-wiw86ng{font-size:12px;color:#aaa;margin:-26px 0 32px;font-weight:300}
.css-6l0hbqz{margin:0 auto 32px;max-width:720px}
.css-7xiad67{width:100%;height:auto}
.css-r2cdu4b{margin-top:40px;padding-top:20px;border-top:1px solid #eee;font-size:14px;color:#888}
.css-r2cdu4b em{color:#aaa}
.css-r2cdu4b a{color:#555;border-bottom:1px solid #ddd;text-decoration:none}
.css-2dbm3k9{padding:24px 0 0;border-top:1px solid #eee;margin-top:24px}
.css-2dbm3k9 p{padding:3px 0;margin:0;font-size:15px}
.css-2dbm3k9 a{color:#2a2a2a;text-decoration:none;border-bottom:1px solid transparent}
.css-2dbm3k9 a:hover{border-bottom-color:#2a2a2a}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lexend:wght@400;700&display=swap');
body{font-family:'Inter',sans-serif;color:#111827;background:#fdfcfb}
.css-2qhomc5{background:#1e3a34;color:#fff}
.css-2qhomc5 h1{font-family:'Lexend',serif;color:#fff}
.css-2qhomc5 p{color:rgba(255,255,255,.75)}
.css-2qhomc5 a{color:#fff;text-decoration:none}
.card h2{font-family:'Lexend',serif}
.card h2 a{color:#1e3a34}
.card h2 a:hover{color:#fbbf24}
.read-more{color:#fbbf24}
.article-content h1{font-family:'Lexend',serif}
.article-content h2{font-family:'Lexend',serif}
.article-content a{color:#fbbf24}
.article-content img{border-radius:8px}
.affiliate-disclosure{border-radius:8px}
.ymyl-disclaimer{border-radius:8px}
/* === Custom === */
/* ge-gestion-fr — crème-encre palette
   Minimal template | Cormorant Garamond + Karla
   Persona: Inès — warm, candid journal of daily admin */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Karla:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --color-bg:            #F9F5EE;
  --color-bg-alt:        #F2EDE3;
  --color-surface:       #FFFFFF;
  --color-text:          #251C12;
  --color-text-muted:    #7A6A58;
  --color-accent:        #6B8C78;
  --color-accent-hover:  #4E6E5C;
  --color-accent-light:  #E6EFE9;
  --color-border:        #DDD7CB;
  --color-heading:       #1C1408;
  --color-link:          #6B8C78;
  --font-heading:        'Cormorant Garamond', Georgia, serif;
  --font-body:           'Karla', system-ui, sans-serif;
  --font-size-base:      18px;
  --font-size-xl:        24px;
  --font-size-2xl:       34px;
  --font-size-3xl:       46px;
  --line-height-body:    1.75;
  --line-height-heading: 1.25;
  --font-weight-heading: 600;
  --radius:              5px;
  --radius-lg:           9px;
  --max-width-content:   68ch;
  --max-width-site:      780px;
}

/* Base */

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

:root * { box-sizing: border-box; }

/* Headings */

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

:root h1 { font-size: var(--font-size-3xl); margin-top: 0; }
:root h2 { font-size: var(--font-size-2xl); }
:root h3 { font-size: var(--font-size-xl); }
:root h4 { font-size: 1.1em; font-style: italic; font-weight: 500; }

/* Body text */

:root p {
  max-width: var(--max-width-content);
  margin-top: 0;
  margin-bottom: 1.2em;
}

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

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

/* Lists */

:root ul,
:root ol {
  max-width: var(--max-width-content);
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

:root li {
  margin-bottom: 0.45em;
  line-height: var(--line-height-body);
}

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

/* Blockquote */

:root blockquote {
  max-width: var(--max-width-content);
  margin: 1.8em 0;
  padding: 0.9em 1.4em;
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

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

/* Header */

:root .css-2qhomc5 {
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.5rem 1.8rem;
}

:root .css-2qhomc5 h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  color: var(--color-heading);
  margin: 0 0 0.25em;
  letter-spacing: -0.01em;
}

:root .css-2qhomc5 p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
  font-style: italic;
}

:root .css-2qhomc5 a { color: inherit; text-decoration: none; }
:root .css-2qhomc5 a:hover { color: var(--color-accent); }

/* Navigation */

:root .mn-nav {
  border-bottom: 1px solid var(--color-border);
  padding: 0 1.5rem;
  background-color: var(--color-bg-alt);
}

:root .mn-nav a {
  display: inline-block;
  padding: 0.6em 0.8em;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text-muted);
}

:root .mn-nav a:hover { color: var(--color-accent); }

/* Main layout */

:root .mn-main {
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Card listing */

:root .card {
  border-bottom: 1px solid var(--color-border);
  padding: 1.6rem 0;
}

:root .card:last-child { border-bottom: none; }

:root .card h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  margin: 0 0 0.3em;
}

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

:root .card .card-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.55em;
}

:root .card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6em;
}

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

:root .card .read-more:hover { color: var(--color-accent-hover); }

/* Article content */

:root .article-content { max-width: var(--max-width-site); margin: 0 auto; }

:root .article-content h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  letter-spacing: -0.02em;
}

:root .article-content h2 { font-family: var(--font-heading); font-size: var(--font-size-2xl); }
:root .article-content h3 { font-family: var(--font-heading); font-size: var(--font-size-xl); font-style: italic; }

:root .article-content p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  max-width: var(--max-width-content);
}

:root .article-content a { color: var(--color-accent); text-decoration-color: var(--color-accent-light); }
:root .article-content a:hover { color: var(--color-accent-hover); }

:root .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5em 0;
}

:root .article-content strong { font-weight: 600; color: var(--color-heading); }
:root .article-content em { color: var(--color-text-muted); }

:root .article-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

:root .article-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

/* Footer */

:root .css-pagg4ah {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

:root .css-pagg4ah a { color: var(--color-text-muted); text-decoration: none; }
:root .css-pagg4ah a:hover { color: var(--color-accent); }

/* Responsive */

@media (max-width: 640px) {
  :root {
    --font-size-base: 17px;
    --font-size-3xl: 36px;
    --font-size-2xl: 27px;
    --font-size-xl:  21px;
  }

  :root .css-2qhomc5 { padding: 1.5rem 1rem 1.2rem; }
  :root .mn-main { padding: 1.5rem 1rem; }
}

/* === R2 fixes (2026-06-25T22:40:09.319288+00:00) === */

/* Date de publication — plus visible, lisible dès l'entrée */
:root .css-cbgfblz {
  color: #5a5048;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Cartes article homepage — séparateur discret entre articles */
:root .css-llgxnyn {
  border-bottom: 1px solid rgba(90, 70, 50, 0.12);
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
}

/* Corps d'article — interlignage aéré pour lecture en fin de journée */
:root article p,
:root .bld-content p {
  line-height: 1.78;
  margin-bottom: 1.3em;
}

/* Bloc disclaimer — post-it discret avec filet latéral */
:root .css-b0uml1f {
  font-size: 0.78rem;
  color: #7a6e65;
  border-left: 2px solid #c8b89a;
  padding: 0.6rem 1rem;
  margin-top: 2.5rem;
  font-style: italic;
  line-height: 1.55;
}

/* Header — trait séparateur entre en-tête et contenu */
:root header {
  border-bottom: 1.5px solid rgba(90, 70, 50, 0.18);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
}

/* === R3 fixes (2026-06-25T23:20:08.390722+00:00) === */

/* H2 dans les articles — espace au-dessus pour délimiter les sections */
:root article h2,
:root .bld-content h2 {
  margin-top: 2.8rem;
  margin-bottom: 0.65rem;
}

/* Lien 'read more →' homepage — invitation discrète, registre carnet */
:root .css-5eliq0e {
  color: #7a6e65;
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px dotted rgba(122, 110, 101, 0.5);
}

/* Bloc disclaimer — post-it discret, filet latéral beige sable (override R2) */
:root .css-b0uml1f {
  font-size: 0.76rem;
  color: #7a6e65;
  border-left: 2px solid #c8b89a;
  padding: 0.55rem 0.9rem;
  margin-top: 2.8rem;
  font-style: italic;
  line-height: 1.5;
  background: transparent;
}

/* Nav 'Articles connexes' — filet séparateur en bas d'article */
:root .css-r2cdu4b {
  border-top: 1px solid rgba(90, 70, 50, 0.15);
  padding-top: 1.2rem;
  margin-top: 1.8rem;
  font-size: 0.84rem;
  color: #5a5048;
}

/* Date de publication — repérable d'un seul regard (override R2) */
:root .css-cbgfblz {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 1.4rem;
  color: #5a5048;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === R4 fixes (2026-06-26T00:00:28.011504+00:00) === */

/* Images in-article — marge verticale pour respiration dans le flux de texte */
:root .css-04cibhn {
  margin-top: 2.4rem;
  margin-bottom: 2.4rem;
}

/* Image de couverture en haut d'article — espace de transition avant le texte */
:root .css-7xiad67 {
  margin-bottom: 2.5rem;
}

/* Lien de retour site dans le header des pages article — ancrage éditorial en serif */
:root .css-2qhomc5 a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1C1408;
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* Page auteure — liste d'articles en entrées de journal italiques */
:root .css-093scrq article ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

:root .css-093scrq article ul li {
  margin-bottom: 0.75rem;
}

:root .css-093scrq article ul li a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #1C1408;
  text-decoration-color: rgba(107, 140, 120, 0.45);
}

/* H3 dans les articles — filet latéral beige sable + italique pour différencier des H2 */
:root article h3 {
  margin-top: 1.9rem;
  font-style: italic;
  color: #3a3020;
  border-left: 2px solid #c8b89a;
  padding-left: 0.65rem;
}

/* ============================================================
   v.610165 — layout revision
   Editorial homepage : bandeau photo · billet héros + capitale
   ornée · bande « Sélection » · deux intercalaires · grille
   chronologique · index des archives.
   Couleur-moment prune #5E3A5C — 2 emplacements seulement
   (lettrine du héros + numéros des sélections).
   Structure vérifiée en direct : accueil = <main> sans <article>,
   cartes .css-llgxnyn + queue .css-2dbm3k9 ; articles/pages = <main> > <article>.
   theme-assets/cover-photo.jpg + story-bg.jpg absents (404) :
   masthead sur hero-masthead.jpg (présent), intercalaires en dégradé.
   ============================================================ */

/* ---- Masthead partagé ---- */
:root .css-2qhomc5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Accueil : photo + voile + signature italique + manifeste */
:root .css-2qhomc5:has(> h1) {
  max-width: none;
  padding: 78px 28px 66px;
  background-image:
    linear-gradient(rgba(26,18,12,.62), rgba(26,18,12,.44)),
    url("/theme-assets/hero-masthead.jpg");
  background-size: cover;
  background-position: center;
}

:root .css-2qhomc5:has(> h1)::before {
  content: "Le carnet de gestion d'Inès · Le Mans";
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(247,240,222,.82);
  margin-bottom: 16px;
}

:root .css-2qhomc5:has(> h1) h1 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: .4px;
  color: #FBF6EC;
  margin: 0;
}

:root .css-2qhomc5:has(> h1) h1 a { color: inherit; }

:root .css-2qhomc5:has(> h1) p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: rgba(247,240,222,.9);
  max-width: 42ch;
  margin: 15px auto 0;
}

/* Article : barre de retour sobre, crème */
:root .css-2qhomc5:has(> a) {
  max-width: none;
  padding: 24px 28px;
  margin-bottom: 2.4rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

:root .css-2qhomc5:has(> a) a {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  color: var(--color-heading);
  letter-spacing: .01em;
}

/* ---- Grille d'accueil (uniquement <main> sans <article>) ---- */
:root main:not(:has(> article)) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 46px 28px;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 28px 52px;
}

/* Carte de base = registre chronologique (héros/sélections surchargent) */
:root main:not(:has(> article)) > div.css-llgxnyn {
  order: 4;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px 34px;
  background: #FCF8F0;
  border: 1px solid rgba(30,20,10,.09);
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(0,0,0,.045);
}

:root main:not(:has(> article)) > div.css-llgxnyn .css-cbgfblz {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9A8A76;
  margin: 0 0 10px;
}

:root main:not(:has(> article)) > div.css-llgxnyn h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.18;
  margin: 0 0 10px;
}

:root main:not(:has(> article)) > div.css-llgxnyn h2 a {
  color: var(--color-heading);
  text-decoration: none;
  border-bottom: none;
}

:root main:not(:has(> article)) > div.css-llgxnyn h2 a:hover { color: var(--color-accent-hover); }

:root main:not(:has(> article)) > div.css-llgxnyn > p:not(.css-cbgfblz) {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 62ch;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:root main:not(:has(> article)) > div.css-llgxnyn .css-5eliq0e {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  border-bottom: none;
  text-decoration: none;
}

/* ---- Billet héros ---- */
:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type {
  order: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0,1fr) 232px;
  gap: 0 46px;
  align-items: start;
  padding: 48px 52px;
  background: #F6EFE0;
  border: 1px solid rgba(94,58,92,.20);
  position: relative;
}

:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type > * {
  grid-column: 1;
  max-width: none;
}

:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.08;
  margin: 6px 0 18px;
}

:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type > p:not(.css-cbgfblz) {
  font-size: 20px;
  line-height: 1.5;
  color: #3A2E20;
  max-width: 54ch;
  -webkit-line-clamp: 5;
}

:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type > p:not(.css-cbgfblz)::first-letter {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 3.6em;
  line-height: .82;
  float: left;
  margin: .04em .12em 0 0;
  color: #5E3A5C;                 /* couleur-moment — emplacement 1 */
}

:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type .css-5eliq0e {
  align-self: flex-start;
  margin-top: 6px;
  padding: 11px 24px;
  border: 1px solid var(--color-accent);
  border-radius: 40px;
  color: var(--color-accent-hover);
  font-size: 12px;
  letter-spacing: .16em;
  transition: background-color .18s ease, color .18s ease;
}

:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type .css-5eliq0e:hover {
  background: var(--color-accent);
  color: #FBF6EC;
}

/* Rail méta à droite du héros (équilibre de la rangée pleine largeur) */
:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type::before {
  content: "Dernier billet\A \A Par Inès Charvet\A Le Mans\A \A Facturation · URSSAF · TVA";
  white-space: pre-line;
  grid-column: 2;
  grid-row: 1 / span 30;
  align-self: stretch;
  padding-left: 30px;
  border-left: 1px solid rgba(94,58,92,.26);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 2.1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8A6E86;
}

/* Intitulé de la bande « Sélection » — pleine largeur, au-dessus des sélections */
:root main:not(:has(> article)) > div.css-llgxnyn:first-of-type::after {
  content: "Sélection — à lire en premier";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 18px);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #7A6A58;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30,20,10,.16);
}

/* ---- Deux sélections (paire, demi-largeur, équilibrée) ---- */
:root main:not(:has(> article)) > div.css-llgxnyn:nth-of-type(2),
:root main:not(:has(> article)) > div.css-llgxnyn:nth-of-type(3) {
  order: 2;
  grid-column: span 3;
  position: relative;
  padding-top: 32px;
  background: #F8F2E6;
  border-color: rgba(94,58,92,.16);
}

:root main:not(:has(> article)) > div.css-llgxnyn:nth-of-type(2)::before { content: "I"; }
:root main:not(:has(> article)) > div.css-llgxnyn:nth-of-type(3)::before { content: "II"; }

:root main:not(:has(> article)) > div.css-llgxnyn:nth-of-type(2)::before,
:root main:not(:has(> article)) > div.css-llgxnyn:nth-of-type(3)::before {
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: #5E3A5C;                 /* couleur-moment — emplacement 2 */
}

/* ---- Deux intercalaires (dégradé encre-prune, aucun asset requis) ---- */
:root main:not(:has(> article))::before,
:root main:not(:has(> article))::after {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #F4EBD9;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

:root main:not(:has(> article))::before {
  content: "PAR ORDRE D'ÉCRITURE";
  order: 3;
  min-height: 158px;
  margin: 10px 0 2px;
  background: linear-gradient(115deg, #241B29 0%, #1D2723 100%);
}

:root main:not(:has(> article))::after {
  content: "LES ARCHIVES";
  order: 5;
  min-height: 176px;
  margin: 16px 0 6px;
  background: linear-gradient(115deg, #1D2723 0%, #2A2030 100%);
}

/* ---- Index des archives (queue pleine largeur, 3 colonnes) ---- */
:root main:not(:has(> article)) > div.css-2dbm3k9 {
  order: 6;
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px 34px 14px;
  background: #FCF8F0;
  border: 1px solid rgba(30,20,10,.08);
  border-radius: 10px;
  columns: 3;
  column-gap: 36px;
}

:root main:not(:has(> article)) > div.css-2dbm3k9 p {
  break-inside: avoid;
  margin: 0;
  padding: 8px 0;
  max-width: none;
  font-size: 14.5px;
  border-bottom: 1px dotted rgba(30,20,10,.14);
}

:root main:not(:has(> article)) > div.css-2dbm3k9 a {
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.35;
  color: var(--color-heading);
  border-bottom: none;
  text-decoration: none;
}

:root main:not(:has(> article)) > div.css-2dbm3k9 a:hover { color: var(--color-accent-hover); }

/* ---- Page article : titre imposant, dinkus, guillemet suspendu ---- */
:root main:has(> article) > h1 {
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 6px 0 4px;
  max-width: 22ch;
}

:root main:has(> article) > article > h2 {
  border-bottom: none;
  padding-bottom: 0;
  text-align: left;
}

:root main:has(> article) > article > h2::before {
  content: "✦ ✦ ✦";
  display: block;
  text-align: center;
  color: var(--color-accent);
  font-size: 15px;
  letter-spacing: .5em;
  margin: 10px 0 26px;
}

:root main:has(> article) > article > blockquote {
  position: relative;
  padding-left: 2.4em;
}

:root main:has(> article) > article > blockquote::before {
  content: "\00201C";
  position: absolute;
  top: 2px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 54px;
  line-height: 1;
  color: var(--color-accent);
  opacity: .5;
}

:root main:has(> article) > article img { border-radius: 8px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  :root main:not(:has(> article)) {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 20px 40px;
  }

  :root main:not(:has(> article)) > div.css-llgxnyn,
  :root main:not(:has(> article)) > div.css-llgxnyn:first-of-type,
  :root main:not(:has(> article)) > div.css-llgxnyn:nth-of-type(2),
  :root main:not(:has(> article)) > div.css-llgxnyn:nth-of-type(3),
  :root main:not(:has(> article)) > div.css-2dbm3k9 {
    grid-column: 1 / -1;
  }

  :root main:not(:has(> article)) > div.css-llgxnyn:first-of-type {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 34px 28px;
  }

  :root main:not(:has(> article)) > div.css-llgxnyn:first-of-type::before { display: none; }
  :root main:not(:has(> article)) > div.css-llgxnyn:first-of-type h2 { font-size: 33px; }
  :root main:not(:has(> article)) > div.css-llgxnyn:first-of-type::after { top: calc(100% + 12px); }

  :root main:not(:has(> article)) > div.css-2dbm3k9 { columns: 1; }

  :root .css-2qhomc5:has(> h1) { padding: 52px 22px 46px; }
  :root .css-2qhomc5:has(> h1) h1 { font-size: 38px; }
}


/* 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: M6 photo strips + M7 archive card tail */
:root main:not(:has(> h1)):not(:has(> article))::before,
:root main:not(:has(> h1)):not(:has(> article))::after {
  min-height: 210px;
  width: 100%;
  overflow: hidden;
  background-color: #241B29;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 1px 4px rgba(0,0,0,.045);
}

:root main:not(:has(> h1)):not(:has(> article))::before {
  margin: 18px 0 4px;
  background-image:
    linear-gradient(rgba(24,18,14,.54), rgba(24,18,14,.44)),
    url("/theme-assets/hero-masthead.jpg");
  background-position: center 44%;
}

:root main:not(:has(> h1)):not(:has(> article))::after {
  min-height: 220px;
  margin: 18px 0 8px;
  background-image:
    linear-gradient(rgba(22,17,15,.50), rgba(22,17,15,.58)),
    url("/theme-assets/hero-masthead.jpg");
  background-position: center 64%;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:last-child:not(:has(> h2)) {
  order: 6;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  columns: auto;
  column-gap: normal;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:last-child:not(:has(> h2)) > p {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 74px;
  max-width: none;
  break-inside: auto;
  margin: 0;
  padding: 20px 22px;
  background: #FCF8F0;
  border: 1px solid rgba(30,20,10,.09);
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(0,0,0,.045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:last-child:not(:has(> h2)) > p:hover {
  transform: translateY(-1px);
  border-color: rgba(107,140,120,.28);
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

:root main:not(:has(> h1)):not(:has(> article)) > div:last-child:not(:has(> h2)) > p > a {
  display: block;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-heading);
  text-decoration: none;
  border-bottom: none;
}

:root main:not(:has(> h1)):not(:has(> article)) > div:last-child:not(:has(> h2)) > p > a:hover {
  color: var(--color-accent-hover);
}

:root main:has(> h1) > span:first-of-type::after {
  content: " · Inès Charvet, Le Mans";
}

@media (max-width: 640px) {
  :root main:not(:has(> h1)):not(:has(> article))::before,
  :root main:not(:has(> h1)):not(:has(> article))::after {
    min-height: 190px;
    font-size: 12px;
    letter-spacing: .22em;
  }

  :root main:not(:has(> h1)):not(:has(> article)) > div:last-child:not(:has(> h2)) {
    grid-template-columns: 1fr;
    gap: 12px;
    columns: auto;
    column-gap: normal;
  }

  :root main:not(:has(> h1)):not(:has(> article)) > div:last-child:not(:has(> h2)) > p {
    min-height: 68px;
    padding: 19px 20px;
  }
}

/* refix iter2: M2 full-row selection band + M10 article CTA pills */
:root body main:not(:has(> h1)):not(:has(> article)) > div:nth-of-type(1):first-of-type::after {
  content: "";
  padding: 0;
  border-bottom: 0;
}

:root body main:not(:has(> h1)):not(:has(> article)) > div:nth-of-type(2) {
  position: relative;
  overflow: visible;
}

:root body main:not(:has(> h1)):not(:has(> article)) > div:nth-of-type(2)::after {
  content: "Sélection — à lire en premier";
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  display: block;
  box-sizing: border-box;
  width: calc(200% + 28px);
  max-width: calc(100vw - 40px);
  padding: 0 0 11px;
  border-bottom: 1px solid rgba(30,20,10,.30);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #7A6A58;
}

:root main:has(> h1) > article a[href^="/try/"],
:root main:has(> h1) > article a[href^="/go/"],
:root main:has(> h1) > article a[href^="/out/"],
:root main:has(> h1) > article a[href^="/ref/"],
:root main:has(> h1) > article a[rel~="sponsored"],
:root main:has(> h1) > article a[rel~="nofollow"],
:root .article-content a[href^="/try/"],
:root .article-content a[href^="/go/"],
:root .article-content a[href^="/out/"],
:root .article-content a[href^="/ref/"],
:root .article-content a[rel~="sponsored"],
:root .article-content a[rel~="nofollow"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0.12em 0.18em;
  padding: 0.52em 1.1em;
  border: 1px solid rgba(107,140,120,.38);
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
  box-shadow: 0 1px 4px rgba(0,0,0,.045);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-decoration-color: transparent;
  vertical-align: middle;
}

:root main:has(> h1) > article a[href^="/try/"]:hover,
:root main:has(> h1) > article a[href^="/go/"]:hover,
:root main:has(> h1) > article a[href^="/out/"]:hover,
:root main:has(> h1) > article a[href^="/ref/"]:hover,
:root main:has(> h1) > article a[rel~="sponsored"]:hover,
:root main:has(> h1) > article a[rel~="nofollow"]:hover,
:root .article-content a[href^="/try/"]:hover,
:root .article-content a[href^="/go/"]:hover,
:root .article-content a[href^="/out/"]:hover,
:root .article-content a[href^="/ref/"]:hover,
:root .article-content a[rel~="sponsored"]:hover,
:root .article-content a[rel~="nofollow"]:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FBF6EC;
  text-decoration: none;
}

@media (max-width: 640px) {
  :root body main:not(:has(> h1)):not(:has(> article)) > div:nth-of-type(2)::after {
    width: 100%;
    max-width: none;
    bottom: calc(100% + 12px);
    font-size: 12px;
    letter-spacing: .18em;
  }

  :root main:has(> h1) > article a[href^="/try/"],
  :root main:has(> h1) > article a[href^="/go/"],
  :root main:has(> h1) > article a[href^="/out/"],
  :root main:has(> h1) > article a[href^="/ref/"],
  :root main:has(> h1) > article a[rel~="sponsored"],
  :root main:has(> h1) > article a[rel~="nofollow"] {
    min-height: 44px;
  }
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=NYT-Cooking-warm overlay=40% grid=equal scale=dramatic family=flat-divs */


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

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

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

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

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

