*{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}
.outer-ecba46{max-width:860px;margin:0 auto;padding:0 20px}
.frame-e80c28{background:#fff;padding:28px 0;margin-bottom:32px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.frame-e80c28 h1{font-size:22px;font-weight:700;margin-bottom:2px}
.frame-e80c28 p{font-size:14px;color:#666}
.frame-e80c28 a{color:#333;text-decoration:none;font-size:18px;font-weight:700}
.footer-65ad6e{display:flex;flex-direction:column;gap:20px}
.module-ce7ea0{background:#fff;border-radius:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);padding:24px 28px;transition:transform .15s,box-shadow .15s}
.module-ce7ea0:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.1)}
.module-ce7ea0 h2{font-size:19px;margin-bottom:6px}
.module-ce7ea0 h2 a{color:#1a1a1a;text-decoration:none}
.module-ce7ea0 .main-edc270{font-size:12px;color:#999;margin-bottom:8px}
.module-ce7ea0 p{font-size:14px;color:#555;margin-bottom:12px}
.block-810633{display:inline-block;background:#5865f2;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none}
.block-810633:hover{background:#4752c4}
.footer-b598b1{padding-bottom:60px}
.footer-b598b1 h1{font-size:30px;font-weight:700;margin-bottom:8px}
.footer-b598b1 time{font-size:12px;color:#999;display:block;margin-bottom:24px}
.footer-b598b1 h2{font-size:22px;margin:32px 0 12px}
.footer-b598b1 h3{font-size:18px;margin:24px 0 8px}
.footer-b598b1 p{margin-bottom:16px}
.footer-b598b1 ul,.footer-b598b1 ol{margin:0 0 16px 24px}
.footer-b598b1 a{color:#5865f2}
.footer-b598b1 img{max-width:100%;height:auto;border-radius:12px;margin:16px 0}
.main-b1532e{padding:24px 0;margin-top:40px;text-align:center;font-size:12px;color:#999}
.main-b1532e a{color:#999;text-decoration:none}
.frame-7024ed{background:#e8eaf0;border-radius:8px;padding:12px 16px;margin-bottom:20px;font-size:13px;color:#888;font-style:italic}
.frame-9897b2{background:#fff8e1;border-radius:8px;padding:12px 16px;margin-top:24px;font-size:12px;color:#9e8600}
.section-a555b9{display:inline-block;background:#f0f2f7;border-radius:12px;padding:4px 12px;margin:-18px 0 24px;font-size:12px;color:#777}
.page-4ae3bf{text-align:center;margin:0 0 24px}
.widget-6b2245{max-width:100%;height:auto;border-radius:12px}
.header-50e4fe{margin-top:32px;padding-top:20px;border-top:1px solid #e0e0e0}
.header-50e4fe 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)}
.wrapper-f3c4b5{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.panel-946b7c{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}
.panel-946b7c:hover{box-shadow:0 2px 8px rgba(0,0,0,.1)}
/* === Theme === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');
body{font-family:'Inter',sans-serif;color:#2D2D2D;background:#F9F7F2}
.frame-e80c28{background:#1A2F23;color:#fff}
.frame-e80c28 h1{font-family:'Playfair Display',serif;color:#fff}
.frame-e80c28 p{color:rgba(255,255,255,.75)}
.frame-e80c28 a{color:#fff;text-decoration:none}
.card h2{font-family:'Playfair Display',serif}
.card h2 a{color:#1A2F23}
.card h2 a:hover{color:#E07A5F}
.read-more{color:#E07A5F}
.article-content h1{font-family:'Playfair Display',serif}
.article-content h2{font-family:'Playfair Display',serif}
.article-content a{color:#E07A5F}
.article-content img{border-radius:8px}
.affiliate-disclosure{border-radius:8px}
.ymyl-disclaimer{border-radius:8px}
/* === Custom === */
/* v.d8ebe5 — layout revision */
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600;1,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ─── Design tokens ─────────────────────────────────────
   Palette : papier crème + encre-ardoise (structure) +
   terracotta (UNE couleur d'action, partout la même) +
   prune (couleur-moment, 2 usages seulement).            */
:root {
  --bg:          #F3EDE1;   /* papier crème chaud, jamais blanc */
  --surface:     #FBF7EE;   /* cartes : crème plus clair */
  --surface-2:   #F0E9DA;   /* aplats discrets */
  --ink:         #24212A;   /* texte, presque noir chaud */
  --ink-soft:    #6B6459;   /* méta, dates, notes */
  --primary:     #2C3A48;   /* ardoise profonde : titres/masthead */
  --primary-deep:#1E2833;
  --accent:      #B34F2A;   /* terracotta : liens + appels à l'action */
  --accent-deep: #8C3C1E;
  --moment:      #5E3A5C;   /* prune : manifeste + lettrine héro (×2) */
  --line:        rgba(40,34,28,.13);
  --line-soft:   rgba(40,34,28,.08);
  --serif:'Bitter', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

/* ─── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--accent); text-decoration-color: transparent; transition: color .18s ease; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; height: auto; }

/* ─── Largeur de page : on remplit le grand écran ────────
   .outer-ecba46 (base) fixe max-width:860 ; on le bat via
   :first-of-type (aucun sélecteur de classe).             */
main:first-of-type { max-width: 1160px; margin: 0 auto; padding: 0 32px 40px; }
main:first-of-type:has(> article) { max-width: 880px; }
header > div:only-child,
footer > div:only-child { max-width: 1160px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ═══ MASTHEAD ══════════════════════════════════════════ */
header {
  background-image:
    linear-gradient(rgba(24,22,28,.74), rgba(28,30,38,.60)),
    url("/theme-assets/site-hero.jpg");
  background-size: cover;
  background-position: center 42%;
  color: #F3ECDC;
  margin: 0 0 8px;
  border-bottom: 3px solid var(--accent);
  padding: 0;
}
header > div:only-child {
  padding-top: 58px;
  padding-bottom: 54px;
  text-align: center;
}

/* Signature : monogramme « S » gravé, au-dessus du titre */
header > div:has(h1)::before {
  content: "";
  display: block;
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><circle cx='32' cy='32' r='30' fill='none' stroke='%23E7DCC6' stroke-width='1.4'/><text x='32' y='43' font-family='Georgia,serif' font-style='italic' font-size='32' fill='%23E7DCC6' text-anchor='middle'>S</text></svg>") center/contain no-repeat;
  opacity: .92;
}

header h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3rem);
  color: #F7F0E1;
  margin: 0;
  letter-spacing: .01em;
}
header span a {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: #F7F0E1;
  text-decoration: none;
}
header > div:has(h1) p {
  margin: 14px auto 0;
  max-width: 60ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(243,236,220,.82);
}
header a:hover { color: #fff; }

/* Manifeste : la voix de Julien, filet prune (moment ×1) */
header > div:has(h1)::after {
  content: "« La confiance, ça se pratique — pas un don, un entraînement. »";
  display: block;
  max-width: 46ch;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 2px solid var(--moment);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(243,236,220,.9);
}

/* ═══ ACCUEIL ═══════════════════════════════════════════ */
/* Grille du journal : 2 colonnes, rythme aéré */
main:first-of-type:not(:has(> article)) > div:first-of-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 32px;
  margin-top: 20px;
  align-items: stretch;
}

/* ── Carte standard ── */
main:first-of-type:not(:has(> article)) > div:first-of-type > div {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(40,34,28,.05);
  padding: 28px 32px 30px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:hover {
  box-shadow: 0 6px 22px rgba(40,34,28,.10);
  transform: translateY(-2px);
}
/* date / kicker */
main:first-of-type:not(:has(> article)) > div:first-of-type > div > p:first-of-type {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* titre */
main:first-of-type:not(:has(> article)) > div:first-of-type > div > h2 {
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 12px;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div > h2 a {
  color: var(--primary);
  text-decoration: none;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div > h2 a:hover { color: var(--accent); }
/* extrait (3 lignes max pour hauteurs égales) */
main:first-of-type:not(:has(> article)) > div:first-of-type > div > h2 + p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 64ch;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* appel à l'action : pastille terracotta, texte francisé */
main:first-of-type:not(:has(> article)) > div:first-of-type > div > a:last-child {
  align-self: flex-start;
  font-size: 0;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 22px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div > a:last-child::after {
  content: "Lire l’article →";
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div > a:last-child:hover {
  background: var(--accent);
  color: #F7F0E1;
}

/* ── HÉRO : carte 1, pleine largeur, la voix forte ── */
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) {
  grid-column: 1 / -1;
  padding: 48px 52px 52px;
  border-color: var(--line);
  position: relative;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1)::before {
  content: "Le dernier essai";
  display: block;
  margin: 0 auto 18px;
  max-width: 46rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) > p:first-of-type {
  max-width: 46rem;
  margin: 0 auto 16px;
  text-transform: uppercase;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) > p:first-of-type::before {
  content: "Par Julien · ";
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) > h2 {
  max-width: 46rem;
  margin: 0 auto 18px;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.12;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) > h2 + p {
  max-width: 44rem;
  margin: 0 auto 26px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  display: block;          /* pas de -webkit-box : la lettrine doit flotter */
  overflow: visible;
  -webkit-line-clamp: none;
}
/* lettrine prune (moment ×2) */
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) > h2 + p::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.4em;
  line-height: .78;
  padding: 6px 12px 0 0;
  color: var(--moment);
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) > a:last-child {
  margin: 0 auto;
  padding: 12px 26px;
  background: var(--accent);
  color: #F7F0E1;
  border-color: var(--accent);
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) > a:last-child::after {
  content: "Lire l’essai →";
  font-size: 14px;
}

/* ── SÉLECTION DE JULIEN : carte 2, pleine largeur ──
   Étiquette de section hors cadre, au-dessus, plein rang. */
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(2) {
  grid-column: 1 / -1;
  margin-top: 78px;
  position: relative;
  border-left: 3px solid var(--accent);
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(2)::before {
  content: "Sélection de Julien — à lire d’abord";
  position: absolute;
  left: 0; right: 0; top: -42px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(2) > h2 { font-size: 1.5rem; }
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(2) > h2 + p { -webkit-line-clamp: 2; font-size: 1.02rem; }

/* ── BANDE PHOTO « CI-DESSOUS » : rupture avant le journal ──
   Portée par la carte 3 (pleine largeur = tête du journal). */
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(3) {
  grid-column: 1 / -1;
  margin-top: 84px;
  padding-top: 0;
  overflow: hidden;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(3)::before {
  content: "Ci-dessous";
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -30px -32px 28px;
  height: 200px;
  background:
    linear-gradient(rgba(20,24,28,.55), rgba(20,24,28,.25)),
    url("/theme-assets/feature-photo.jpg");
  background-size: cover;
  background-position: center 30%;
  color: #F7F0E1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  border-radius: 8px 8px 0 0;
}
main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(3) > h2 { font-size: 1.4rem; }

/* ═══ QUEUE : archive complète, pleine largeur, index ═════ */
main:first-of-type:not(:has(> article)) > div:not(:first-of-type) {
  margin-top: 88px;
  display: block;
  columns: 2;
  column-gap: 56px;
}
/* BANDE PHOTO « TOUT LIRE » : rupture avant l'archive */
main:first-of-type:not(:has(> article)) > div:not(:first-of-type)::before {
  content: "Tout lire";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  margin-bottom: 36px;
  column-span: all;
  background:
    linear-gradient(rgba(24,20,26,.58), rgba(24,20,26,.30)),
    url("/theme-assets/feature-photo.jpg");
  background-size: cover;
  background-position: center 70%;
  color: #F7F0E1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  border-radius: 10px;
}
main:first-of-type:not(:has(> article)) > div:not(:first-of-type) > a {
  display: block;
  background: var(--surface);
  box-shadow: none;
  border: 0;
  border-bottom: 1px dotted rgba(40,34,28,.20);
  border-radius: 0;
  padding: 11px 2px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  break-inside: avoid;
}
main:first-of-type:not(:has(> article)) > div:not(:first-of-type) > a:hover { color: var(--accent); }

/* ═══ PAGE ARTICLE ══════════════════════════════════════ */
main:first-of-type > h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.14;
  margin: 20px 0 10px;
}
main:first-of-type:has(> article) > time {
  display: block;
  margin: 0 0 34px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
main:first-of-type article {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.8;
  color: var(--ink);
}
main:first-of-type article > p { margin: 0 0 1.3em; }
/* lettrine article (encre, pas de couleur-moment ici) */
main:first-of-type article > p:first-of-type::first-letter {
  float: left;
  font-weight: 700;
  font-size: 3.2em;
  line-height: .8;
  padding: 4px 10px 0 0;
  color: var(--primary);
}
main:first-of-type article > h2 {
  font-size: 1.6rem;
  margin: 2.2em 0 .5em;
}
/* dinkus décoratif au-dessus de chaque section */
main:first-of-type article > h2::before {
  content: "✶ ✶ ✶";
  display: block;
  margin-bottom: .7em;
  font-size: .7rem;
  letter-spacing: .5em;
  color: var(--accent);
  opacity: .7;
}
main:first-of-type article > h3 { font-size: 1.25rem; margin: 1.8em 0 .4em; color: var(--primary); }

/* liens du corps : terracotta, cohérents partout (bat #5865f2) */
main:first-of-type article a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(179,79,42,.35); text-underline-offset: 2px; }
main:first-of-type article a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }

/* images d'article */
main:first-of-type article div img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
main:first-of-type article > div { margin: 1.6em 0; }

/* citations : guillemet suspendu */
main:first-of-type article > blockquote {
  margin: 1.6em 0;
  padding: 6px 0 6px 28px;
  border-left: 3px solid var(--accent);
  position: relative;
}
main:first-of-type article > blockquote p { font-style: italic; margin: 0; color: var(--primary); }
main:first-of-type article > blockquote::before {
  content: "«";
  position: absolute;
  left: -2px; top: -14px;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--accent);
  opacity: .45;
}

/* avertissement de bas d'article : discret, papier chaud */
main:first-of-type article > section {
  margin-top: 2.4em;
  padding: 16px 20px;
  background: var(--surface-2) !important;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Articles connexes : relief, terracotta, hors blanc */
main:first-of-type:has(> article) > div {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
main:first-of-type:has(> article) > div > h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 16px;
}
main:first-of-type:has(> article) > div > div > a {
  display: block;
  background: transparent !important;
  box-shadow: none;
  border-bottom: 1px dotted rgba(40,34,28,.20);
  border-radius: 0;
  padding: 12px 2px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
main:first-of-type:has(> article) > div > div > a:hover { color: var(--accent-deep); }

/* ═══ PIED DE PAGE ══════════════════════════════════════ */
footer {
  margin-top: 72px;
  border-top: 3px solid var(--accent);
  background: var(--surface-2);
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ═══ RESPONSIVE ════════════════════════════════════════ */
@media (max-width: 720px) {
  main:first-of-type { padding: 0 20px 32px; }
  header > div:only-child,
  footer > div:only-child { padding-left: 20px; padding-right: 20px; }

  main:first-of-type:not(:has(> article)) > div:first-of-type {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  main:first-of-type:not(:has(> article)) > div:first-of-type > div { padding: 24px; }
  main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) { padding: 32px 24px 34px; }
  main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) > h2 { font-size: 1.85rem; }
  main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(3)::before,
  main:first-of-type:not(:has(> article)) > div:not(:first-of-type)::before { height: 150px; letter-spacing: .26em; }
  main:first-of-type:not(:has(> article)) > div:not(:first-of-type) { columns: 1; }

  main:first-of-type article { font-size: 17px; }
  main:first-of-type article > h2 { font-size: 1.4rem; }
}


/* 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: boxed homepage archive tail */
main:first-of-type:not(:has(> article)) > div:not(:first-of-type) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 10px 16px;
  columns: auto;
}

main:first-of-type:not(:has(> article)) > div:not(:first-of-type)::before {
  grid-column: 1 / -1;
  margin-bottom: 26px;
  column-span: none;
}

main:first-of-type:not(:has(> article)) > div:not(:first-of-type) > a {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(40,34,28,.05);
  padding: 20px 22px;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--primary);
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, color .18s ease;
}

main:first-of-type:not(:has(> article)) > div:not(:first-of-type) > a:hover {
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(40,34,28,.09);
  transform: translateY(-2px);
}

/* refix iter1: article persona meta */
main:first-of-type:has(> article) > time::before {
  content: "Par Julien · 6 min de lecture · ";
}

@media (max-width: 640px) {
  main:first-of-type:not(:has(> article)) > div:not(:first-of-type) {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  main:first-of-type:not(:has(> article)) > div:not(:first-of-type) > a {
    padding: 20px 22px;
  }
}

/* refix iter2: full-row selection band */
main:first-of-type:not(:has(> article)) > div:first-of-type::before {
  content: "Sélection de Julien — à lire d’abord";
  order: 2;
  grid-column: 1 / -1;
  display: block;
  margin-top: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--primary);
}

main:first-of-type:not(:has(> article)) > div:first-of-type > div {
  order: 3;
}

main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(1) {
  order: 1;
}

main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(2) {
  margin-top: 0;
}

main:first-of-type:not(:has(> article)) > div:first-of-type > div:nth-child(2)::before {
  content: none;
  display: none;
}

@media (max-width: 640px) {
  main:first-of-type:not(:has(> article)) > div:first-of-type::before {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: .12em;
  }
}

/* refix (M10): affiliate product CTAs render as distinct terracotta chips,
   not inline prose links. This site's affiliate anchors use /view/ prefixes
   (/view/main, /view/alt-N); the generic article-link rule above styled them
   as plain inline underlined text, so they disappeared into the prose. */
main:first-of-type article a[href*="/view/"] {
  display: inline-block;
  margin: 2px 1px;
  padding: 3px 15px 4px;
  background: var(--accent);
  color: #F7F0E1;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.45;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(40,34,28,.12);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
main:first-of-type article a[href*="/view/"]::after {
  content: " →";
  font-weight: 700;
}
main:first-of-type article a[href*="/view/"]:hover {
  background: var(--accent-deep);
  color: #F7F0E1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(40,34,28,.16);
  transform: translateY(-1px);
}


/* premium-upgrade v1 */
/* premium editorial upgrade — style=Racquet-moody overlay=40% grid=equal scale=dramatic family=astro-grid */

/* ── HERO STRIPS: site-level atmospheric photos (overlay 40%) ── */
: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.40) 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.40) 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; }
}


/* premium-upgrade v2 */
/* premium-upgrade v2 patch — targets top 3 rule failures from v1 batch:
   M10 (article affiliate CTA invisible), M2 (missing homepage section label),
   M11 (dinkus leaking onto article page's first h2). Applied 2026-08-30. */

/* ── M10: affiliate CTA visibility on article body ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"] {
  display: inline-block;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
:root main:has(> h1) a[href^="/try/"]:hover,
:root main:has(> h1) a[href^="/ref/"]:hover,
:root main:has(> h1) a[href^="/go/"]:hover,
:root main:has(> h1) a[href^="/out/"]:hover,
:root main:has(> h1) a[href^="/check/"]:hover,
:root main:has(> h1) a[href^="/view/"]:hover {
  background: var(--accent) !important;
  color: var(--fg) !important;
}

/* ── M2: homepage section label (only shows on home, not article) ── */
:root main:not(:has(> h1))::before {
  content: "LATEST";
  display: block;
  font-family: var(--fs, var(--fb, "PT Sans"), system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  color: var(--fg);
}

/* ── M11: prevent dinkus leaking onto FIRST h2 of article page ──
   The v1 selector `h2 + p ~ h2::before` should already exclude the first h2,
   but some Astro templates render article body differently. Belt-and-braces:
   explicitly kill the pseudo on first-of-type. */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}


/* premium-upgrade v4 */
/* premium-upgrade v4 — surgical bundle. Applied 2026-08-30.
   Fixes: M10 CTA / M11 dinkus leak / M4 heights / M9 typography / M5 frames.
   Kills v2 "LATEST" label (proven counterproductive from v2 diagnosis). */

/* ── Kill v2 counterproductive homepage label ── */
:root main:not(:has(> h1))::before { content: none !important; }

/* ── M10: affiliate CTA visibility on article body ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
}

/* ── M11: prevent dinkus leaking onto article page's first h2 ── */
:root main:has(> h1) > article > h2:first-of-type::before {
  content: none !important;
}

/* ── M4: force equal-height cards via grid stretch + card fill ── */
:root main:not(:has(> h1)) > div:has(> div) {
  align-items: stretch !important;
}
:root main:not(:has(> h1)) > div:has(> div) > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
:root main:not(:has(> h1)) > div > article {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
/* also for flat-divs family */
:root main:not(:has(> h1)) > div {
  height: 100% !important;
}

/* ── M9: cap small-title weight so Bebas/Anton counters don't fill in ── */
:root main:not(:has(> h1)) > div > div > h2,
:root main:not(:has(> h1)) > div > div > h2 a,
:root main:not(:has(> h1)) > section > ul > li > a,
:root main:not(:has(> h1)) > div > p > a {
  font-weight: 500 !important;
}

/* ── M5: universal soft frame fallback for card-like elements ── */
:root main:not(:has(> h1)) > div > div,
:root main:not(:has(> h1)) > div > article,
:root main:not(:has(> h1)) > article {
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05) !important;
}


/* premium-upgrade v5 */
/* premium-upgrade v5 — big M2 band + wider M10 CTA net + M8 breathing. 2026-08-31. */

/* ── M2: PROMINENT full-row label, not the small word v2 tried ── */
:root main:not(:has(> h1))::before {
  content: "◆ LATEST FEATURES ◆" !important;
  display: block !important;
  font-family: var(--fh, "PT Sans"), Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 16px 24px 20px !important;
  margin: 0 0 40px !important;
  border-top: 3px solid var(--primary, #333) !important;
  border-bottom: 1px solid var(--border, #ccc) !important;
  color: var(--primary, #333) !important;
  background: transparent !important;
}

/* ── M10: broaden CTA net (Amazon, aff/ path, [target=_blank] product-shaped) ── */
:root main:has(> h1) a[href^="/try/"],
:root main:has(> h1) a[href^="/ref/"],
:root main:has(> h1) a[href^="/go/"],
:root main:has(> h1) a[href^="/out/"],
:root main:has(> h1) a[href^="/check/"],
:root main:has(> h1) a[href^="/view/"],
:root main:has(> h1) a[href^="/aff/"],
:root main:has(> h1) a[href^="/product/"],
:root main:has(> h1) a[href*="hotmart.com"],
:root main:has(> h1) a[href*="digistore24"],
:root main:has(> h1) a[href*="clickbank"],
:root main:has(> h1) a[href*="amazon."],
:root main:has(> h1) a[href*="/track/"],
:root main:has(> h1) a[href*="/link/"],
:root main:has(> h1) a[href*="lstrk.net"],
:root main:has(> h1) a[href*="thrivecart"] {
  display: inline-block !important;
  background: var(--primary) !important;
  color: var(--bg) !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  margin: 4px 2px !important;
}

/* ── M8: article body breathing ── */
:root main:has(> h1) > article > p {
  line-height: 1.8 !important;
  margin-bottom: 20px !important;
}
:root main:has(> h1) > article > h2 {
  margin-top: 48px !important;
  margin-bottom: 18px !important;
}
:root main:not(:has(> h1)) > div:has(> div) {
  gap: 40px 32px !important;
}


/* === Link & button colour audit (2026-09-16) ===
   Generated from a measured crawl of this site's own pages: every link and
   button was checked for text-vs-surface contrast at rest and on hover.
   Replacement colours keep the original hue and move only lightness, so the
   design reads the same. Verified by re-rendering before this was written. */
/* 115x 2.36:1 -> needs 4.5 | “À propos” */
:root :is(#lnkfix, footer) > div > small > a { color: #636363; }
/* 82x 4.43:1 -> needs 4.5 | “Réussir sa vie professionnelle quand on ” */
:root :is(#lnkfix, main) > div > div > a { color: #A54927; }
/* 45x 4.43:1 -> needs 4.5 | “comment reprendre confiance en soi après” */
:root :is(#lnkfix, main) > article > p > a { color: #A54927; }
/* 25x 4.43:1 -> needs 4.5 | “amygdale” */
:root :is(#lnkfix, main) > article > p > a[href^="http"] { color: #A54927; }
/* 12x 4.43:1 -> needs 4.5 | “(Source)” */
:root :is(#lnkfix, main) > article > table > tbody > tr > td > a[href^="http"] { color: #A54927; }
/* 12x 4.43:1 -> needs 4.5 | “Cegos - Confiance en soi - Estime de soi” */
:root :is(#lnkfix, main) > article > ul > li > a[href^="http"] { color: #A54927; }
/* 4x 4.5:1 -> needs 4.5 | “Typologie des formations” */
:root :is(#lnkfix, main) > article > div > ul > li > a { color: #A74A27; }
/* 3x 4.43:1 -> needs 4.5 | “Typologie des formations” */
:root :is(#lnkfix, main) > article > nav > ul > li > a { color: #A54927; }
/* 3x 3.95:1 -> needs 4.5 | “page contact” */
:root :is(#lnkfix, main) > p > a { color: #404FF0; }
/* hover 4.27:1 -> needs 4.5 on #F0E9DA */
:root :is(#lnkfix, footer) > div > small > a:hover { color: #A24826; }
