/* ==========================================================================
   La Méthode Amadieu, feuille de style
   Design : médical épuré & moderne
   ========================================================================== */

/* Polices auto-hébergées : un @import vers Google Fonts créait une requête
   enchaînée qui bloquait le rendu ~850 ms. Fichiers variables sous-ensemblés
   au latin ; l'axe opsz de Source Serif 4 est figé à 24 (poids ÷ 3,5). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green:        #16a34a;
  --green-bright: #22c55e;
  --green-dark:   #15803d;
  --green-soft:   #f0fdf4;
  --green-tint:   #dcfce7;

  --ink:    #0f172a;
  --text:   #475569;
  --muted:  #64748b;

  --bg:        #ffffff;
  --bg-soft:   #f8fafc;
  --border:    #e6ebf0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .07), 0 4px 8px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);

  --radius:    14px;
  --radius-lg: 22px;
  --container: 1180px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* text-wrap: balance répartit les mots sur les lignes d'un titre au lieu de
   laisser un mot seul sur la dernière ; pretty évite les lignes orphelines. */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); letter-spacing: -.015em; line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
/* Un lien au fil du texte doit rester repérable sans la couleur (WCAG 1.4.1) */
main p a:not(.btn), .faq-body a, .cred-card a, .disclaimer-box a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--green-tint); }
main p a:not(.btn):hover, .faq-body a:hover { text-decoration-color: var(--green); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Placeholder image auto (fichier manquant) ---------- */
img.is-loaded { }
.media-frame { position: relative; }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand .accent { color: var(--green-dark); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: #334155; font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  padding: .4rem 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green-bright); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--green-dark); }
.nav-cta { margin-left: .4rem; }

/* Menu mobile, pur CSS (checkbox hack) */
.nav-toggle, .nav-toggle-label { display: none; }

/* ============================ BOUTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; max-width: 100%;
}
/* --green-dark et non --green : blanc sur #16a34a ne passe pas le contraste WCAG AA (3,29:1) */
.btn-primary { background: var(--green-dark); color: #fff; box-shadow: 0 8px 18px rgba(22, 163, 74, .25); }
.btn-primary:hover { background: #12652f; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(22, 163, 74, .32); }
.btn-outline { background: #fff; color: var(--green-dark); border-color: var(--green-tint); }
.btn-outline:hover { border-color: var(--green-bright); background: var(--green-soft); }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.05rem; }

/* ============================ SECTIONS ============================ */
.section { padding: 5.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto 3.2rem; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  color: var(--green-dark); background: var(--green-soft);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.section-intro { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; text-wrap: balance; }
 /* Justification réservée aux écrans larges : sous 700px les lignes sont trop
   courtes, la justification creuse des blancs entre les mots. */
@media (min-width: 701px) {
  .section-intro--justify,
  .author-content p, .def-text p, .audience-row p, .faq-body p,
  .hero-content p {
    text-align: justify; text-wrap: wrap; hyphens: auto;
  }
}

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(34, 197, 94, .10), transparent 60%),
    radial-gradient(50% 50% at 5% 100%, rgba(34, 197, 94, .07), transparent 55%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero-content { max-width: 640px; }
.hero-content h1 { margin-bottom: 1.3rem; }
/* La césure n'a de sens qu'avec la justification : en aligné à gauche elle
   coupe des mots sans raison. Elle est donc appliquée avec elle, plus haut. */
.hero-content p.lead { font-size: 1.12rem; color: var(--text); margin-bottom: 1.1rem; }
.hero-content p.lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-trust { display: flex; align-items: center; gap: .7rem; margin-top: 1.8rem; color: var(--muted); font-size: .92rem; }
.hero-trust .stars { color: #f59e0b; letter-spacing: 1px; }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

/* Couverture détourée (fond transparent) : posée, avec une ombre portée */
.hero-media--product img {
  border-radius: 0; box-shadow: none; width: 100%; max-width: 340px; margin: 0 auto;
  filter: drop-shadow(0 22px 36px rgba(15, 23, 42, .28));
}

/* Bandeau image médecin (image avec texte intégré, fond blanc) */
.showcase { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1rem, 3vw, 2.5rem); text-align: center; }
.showcase img { margin: 0 auto; border-radius: var(--radius); }
.hero-media .float-badge {
  position: absolute; bottom: -18px; left: -18px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .9rem 1.2rem;
  display: flex; align-items: center; gap: .7rem; font-size: .9rem;
}
.hero-media .float-badge strong { color: var(--ink); font-family: var(--font-head); }
.hero-media .float-badge .dot { width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); display: grid; place-items: center; color: var(--green-dark); font-size: 1.3rem; }

/* ============================ BAND (citation médecin) ============================ */
.band { background: var(--ink); color: #fff; }
.band-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: center; }
.band-media img { border-radius: var(--radius); }
.band-text h2 { color: #fff; }
.band-text .eyebrow { background: rgba(255,255,255,.08); color: var(--green-bright); }
.band-text p { color: #cbd5e1; }

/* ============================ FEATURES (bénéfices) ============================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
  display: flex; gap: 1rem; align-items: flex-start;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-check {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 700;
}
.feature-card p { margin: 0; color: var(--text); font-weight: 500; }

/* ============================ TÉMOIGNAGES ============================ */
.testi-grid { column-count: 2; column-gap: 1.6rem; max-width: 920px; margin: 0 auto; }
@media (max-width: 640px) { .testi-grid { column-count: 1; } }
.review-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; break-inside: avoid; margin-bottom: 1.6rem;
}
.review-card img { width: 100%; }
.review-card figcaption { padding: .8rem 1.1rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); }

/* ============================ VIDÉO TÉMOIGNAGE ============================ */
.video-embed {
  max-width: 780px; margin: 0 auto; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); background: #0f172a; line-height: 0;
}
.video-embed video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  object-fit: contain; background: #0f172a;
}
.video-embed--portrait { max-width: 300px; }
.video-embed--portrait video { aspect-ratio: 9 / 16; }
.estelle-insta { text-align: center; margin-top: 1.1rem; font-size: .95rem; }
.estelle-insta a { color: var(--green-dark); font-weight: 600; }

/* ============================ CONTENU DU LIVRE ============================ */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.check-list { list-style: none; display: grid; gap: .9rem; margin: 1.5rem 0; }
.check-list li { position: relative; padding-left: 2.2rem; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); font-weight: 700; font-size: .85rem; display: grid; place-items: center;
}

/* ============================ BONUS ============================ */
.bonus { background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%); border-radius: var(--radius-lg); padding: 3rem; text-align: center; }
.bonus img { margin: 2rem auto 0; border-radius: var(--radius); width: 100%; max-width: 900px; }
.bonus .pill { display: inline-block; background: #fff; color: var(--green-dark); font-weight: 600; font-family: var(--font-head); padding: .4rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ============================ AUDIENCE ============================ */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.audience-card {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--green-bright);
  border-radius: var(--radius); padding: 1.8rem 2rem; box-shadow: var(--shadow-sm);
}
.audience-card h3 { color: var(--ink); margin-bottom: .5rem; }
.audience-card p { margin: 0; color: var(--muted); }

/* ============================ CTA CITATION ============================ */
.quote-cta { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: center; background: var(--bg-soft); border-radius: var(--radius-lg); padding: 3rem; }
.quote-cta blockquote { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; color: var(--ink); font-weight: 500; margin-bottom: 1.5rem; }
.quote-cta .mark { color: var(--green-bright); font-size: 2.5rem; line-height: 0; }
.quote-cta .signature { display: flex; align-items: center; gap: .9rem; color: var(--muted); font-size: .92rem; }
.quote-cta .signature img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top center; flex: none; box-shadow: var(--shadow-sm); }
.quote-cta .signature span { font-family: var(--font-head); font-weight: 600; color: var(--ink); line-height: 1.35; }
.quote-cta .signature em { font-family: var(--font-body); font-weight: 400; font-style: normal; color: var(--muted); font-size: .85rem; }
.quote-cta .quote-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ============================ NEWSLETTER ============================ */
.newsletter { background: var(--ink); border-radius: var(--radius-lg); padding: 3.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; color: #fff; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #cbd5e1; }
.newsletter form { display: grid; gap: .9rem; }
.newsletter input {
  width: 100%; padding: .95rem 1.1rem; border-radius: 10px; border: 1px solid #334155;
  background: #1e293b; color: #fff; font-family: inherit; font-size: 1rem;
}
.newsletter input::placeholder { color: #94a3b8; }
.newsletter input:focus { outline: none; border-color: var(--green-bright); }
.newsletter small { color: #94a3b8; font-size: .82rem; }

/* ============================ AUTEUR ============================ */
.author { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.author-photo { min-width: 0; }
.author-content { min-width: 0; }
.author-content h2 { margin-bottom: 1.1rem; }
.author-content p:has(> .btn) { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.author-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 1/1; object-fit: cover; width: 100%; }

/* ============================ PAGE AUTEUR (parcours + crédibilité) ============================ */
.timeline { list-style: none; max-width: 780px; margin: 0 auto; display: grid; gap: 0; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 2.2rem 3.2rem; border-left: 2px solid var(--green-tint); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .35rem; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--green-bright);
}
.timeline .tl-year { display: block; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: .3rem; }
.timeline h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.timeline p { margin: 0; color: var(--muted); }

.definition-block { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; max-width: 940px; margin: 0 auto; }
.def-etymo { background: #fff; border: 1px solid var(--ink); border-radius: var(--radius); padding: 1.5rem 1.7rem; }
.def-label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: .7rem; }
.def-etymo ul { list-style: none; display: grid; gap: .45rem; }
.def-etymo li { position: relative; padding-left: 1rem; color: var(--muted); font-size: .92rem; }
.def-etymo li::before { content: "–"; position: absolute; left: 0; color: var(--green); }
.def-text p { color: var(--text); }
.def-text strong { color: var(--ink); }
@media (max-width: 800px) { .definition-block { grid-template-columns: 1fr; gap: 1.6rem; } }

.quote-line {
  max-width: 760px; margin: 2.8rem auto 0; text-align: center;
  font-family: var(--font-head); font-size: 1.05rem; font-style: italic; color: var(--ink); line-height: 1.6;
}
.quote-line span { display: inline-block; margin-top: .5rem; font-style: normal; font-size: .88rem; color: var(--muted); }

.credibility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 920px; margin: 0 auto; }
.cred-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem 1.9rem; box-shadow: var(--shadow-sm); }
.cred-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.cred-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .credibility-grid { grid-template-columns: 1fr; } }

.disclaimer-box { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--green-bright); border-radius: var(--radius); padding: 2rem 2.2rem; }
.disclaimer-box h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.disclaimer-box p { color: var(--muted); font-size: .95rem; }

/* ============================ CARNETS ============================ */
.carnets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.carnet-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; text-align: center; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease;
}
.carnet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.carnet-card .carnet-img { background: #fff; padding: 0; }
.carnet-card .carnet-img img { display: block; width: 100%; height: auto; }
.carnet-body { padding: 1.6rem 1.6rem 2rem; display: flex; flex-direction: column; flex: 1; }
.carnet-body h3 { margin-bottom: .4rem; }
.carnet-meta { color: var(--green-dark); font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }
.carnet-body .quote { font-style: italic; color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.carnet-body .btn { margin-top: auto; }

/* ============================ EN QUOI (grille 3 colonnes centrée) ============================ */
.benefit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem 2.5rem; max-width: 1000px; margin: 0 auto;
}
.benefit { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.benefit-ico { width: 56px; height: 56px; color: var(--green-bright); flex: none; }
.benefit p { margin: 0; color: var(--text); font-weight: 500; max-width: 22ch; }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); gap: 2.6rem 2rem; } }
@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- Bouton central + bloc bonus (section « Que trouverez-vous ») ---------- */
.mid-cta { text-align: center; margin-top: 3rem; }
.bonus-block { text-align: center; margin-top: 4rem; }
.bonus-block .section-intro { max-width: 720px; margin: 0 auto; }
.bonus-block .section-intro strong { color: var(--ink); }
.bonus-block img { width: 100%; max-width: 920px; margin: 2rem auto 0; border-radius: var(--radius); }

/* ============================ LIVRE 3D DÉTOURÉ ============================ */
.split-media--product img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 26px 42px rgba(15,23,42,.28)); width: 88%; margin: 0 auto; display: block; }

/* ============================ À QUI S'ADRESSE (empilé) ============================ */
.audience-stack { display: grid; gap: 1.2rem; max-width: 880px; margin: 0 auto; }
.audience-row { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--green-bright); border-radius: var(--radius); padding: 1.5rem 1.8rem; box-shadow: var(--shadow-sm); }
.audience-tag { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.15rem; margin-bottom: .45rem; }
.audience-row p { margin: 0; color: var(--muted); }

/* ============================ FAQ ============================ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: .9rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.5rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); position: relative; padding-right: 3rem; transition: background .15s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--green-soft); }
.faq summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 1.6rem; line-height: 0; }
.faq details[open] summary { border-bottom: 1px solid var(--border); background: var(--green-soft); }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 1.3rem 1.5rem; }
.faq .faq-body p { margin: 0; color: var(--text); }

/* ============================ COMMUNAUTÉ ============================ */
.community-card .cc-logo { width: 44px; height: 44px; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 900px; margin: 0 auto; }
.community-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2.2rem 1.6rem 1.8rem; transition: transform .15s ease, box-shadow .2s ease; }
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.community-card .cc-logo { margin-bottom: .4rem; }
.community-card strong { font-family: var(--font-head); font-size: 2rem; line-height: 1.1; color: var(--green-dark); }
.community-card .cc-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; }
.community-card .cc-desc { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.community-card .cc-link { margin-top: .7rem; color: var(--green-dark); font-weight: 600; font-size: .9rem; }
.community-card:hover .cc-link { text-decoration: underline; }
@media (max-width: 700px) { .community-grid { grid-template-columns: 1fr; } }

/* ============================ COMPLÉMENTS ============================ */
.complement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.complement-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .2s ease; }
.complement-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.complement-card .badge { align-self: flex-start; background: var(--green-soft); color: var(--green-dark); font-weight: 600; font-size: .76rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: .9rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .03em; }
.complement-card h3 { font-size: 1.02rem; margin-bottom: .8rem; line-height: 1.35; }
.complement-card ul { list-style: none; margin: 0 0 1.3rem; display: grid; gap: .45rem; }
.complement-card ul li { padding-left: 1.5rem; position: relative; font-size: .9rem; color: var(--text); }
.complement-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.complement-card .btn { margin-top: auto; align-self: flex-start; }
.complement-note { max-width: 820px; margin: 2.5rem auto 0; background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--green-bright); border-radius: var(--radius); padding: 1.5rem 1.8rem; font-size: .9rem; color: var(--muted); }

/* ============================ ANNEXES (funnel acheteurs) ============================ */
.ck-embed { max-width: 560px; margin: 2.5rem auto 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2rem; }
/* min-height : le formulaire arrive au scroll, la hauteur est réservée d'avance
   pour que rien ne saute quand il s'insère (CLS). */
.ck-embed-js { max-width: 720px; margin: 0 auto; min-height: 420px; }
/* Le formulaire ConvertKit arrive avec des styles inline trop clairs (#8b8b8b sur blanc
   = 3,4:1) : on repasse au-dessus pour tenir le contraste WCAG AA. */
.ck-embed-js .formkit-input { color: #334155 !important; }
.ck-embed-js .formkit-input::placeholder { color: #64748b !important; }
.ck-embed-js .formkit-submit { background-color: var(--green-dark) !important; }
.ck-embed-js .formkit-disclaimer p { color: #5b6472 !important; }
.annexe-list { max-width: 620px; margin: 2.5rem auto 0; display: grid; gap: .6rem; }
.annexe-list li { list-style: none; padding-left: 2rem; position: relative; color: var(--text); }
.annexe-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.download-grid { display: grid; gap: 1rem; max-width: 720px; margin: 0 auto; }
.download-item { display: flex; align-items: center; gap: 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.download-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.download-item .num { flex: none; width: 46px; height: 60px; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.download-item .di-cover { flex: none; width: 46px; height: 60px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow-sm); background: var(--bg-soft); }
.download-item .di-body { flex: 1; }
.download-item .di-body strong { display: block; color: var(--ink); font-family: var(--font-head); }
.download-item .di-body span { font-size: .85rem; color: var(--muted); }
.download-item .di-dl { flex: none; color: var(--green-dark); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.download-item:hover .di-dl { text-decoration: underline; }

/* ============================ PAGE SOURCES (accordéon) ============================ */
.sources-content { max-width: 860px; margin: 0 auto; }
.sources-intro { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 2.5rem; }
.wp-block-themeisle-blocks-accordion { display: grid; gap: 1rem; }
.sources-content details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.sources-content summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.1rem;
  padding-right: 3rem; display: flex; align-items: center; transition: background .15s ease;
}
.sources-content summary::-webkit-details-marker { display: none; }
.sources-content summary:hover { background: var(--green-soft); }
.sources-content summary::after {
  content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--green); line-height: 1; transition: transform .2s ease;
}
.sources-content details[open] summary { border-bottom: 1px solid var(--border); background: var(--green-soft); }
.sources-content details[open] summary::after { content: "\2013"; }
.sources-content summary > div { margin: 0; }
.wp-block-themeisle-blocks-accordion-item__content { padding: 1.5rem; }
.sources-content h2 { font-size: 1.15rem; margin: 1.6rem 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--green-tint); }
.sources-content h2:first-child { margin-top: 0; }
.sources-content p { font-size: .95rem; color: var(--text); margin-bottom: 1rem; }
.sources-content a { color: var(--green-dark); word-break: break-word; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--green-tint); }
.sources-content a:hover { text-decoration-color: var(--green); }

/* ============================ PAGE HEADER (sous-pages) ============================ */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 3.5rem 0; text-align: center; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 1rem auto 0; text-wrap: balance; }

/* ============================ FORMULAIRE CONTACT ============================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info .info-item { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; }
.contact-info .info-item .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-size: 1.3rem; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 600; color: var(--ink); font-size: .92rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft); transition: border .2s, background .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green-bright); background: #fff; box-shadow: 0 0 0 4px var(--green-soft); }
.form-group textarea { min-height: 150px; resize: vertical; }
.required { color: #ef4444; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 4rem 0 2rem; }
.footer-top {
  display: grid; grid-template-columns: minmax(260px, 1.1fr) auto; gap: 3rem 4rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid #1e293b;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: #94a3b8; font-size: .92rem; }
.footer-mail { display: inline-block; margin-top: 1.1rem; color: #cbd5e1; font-size: .9rem; border-bottom: 1px solid #334155; padding-bottom: 2px; }
.footer-mail:hover { color: var(--green-bright); border-color: var(--green-bright); }

.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 3rem; }
.footer-col .footer-title { font-family: var(--font-body); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: #94a3b8; font-size: .92rem; }
.footer-col a:hover { color: var(--green-bright); }

/* Cartes réseaux : logo + nom + audience */
.footer-social { gap: .9rem !important; }
.footer-social a { display: flex; align-items: center; gap: .75rem; color: #94a3b8; }
.footer-social svg { width: 22px; height: 22px; flex: none; color: #64748b; transition: color .2s ease; }
.footer-social a:hover svg { color: var(--green-bright); }
.footer-social span { display: flex; flex-direction: column; line-height: 1.3; font-size: .82rem; }
.footer-social strong { color: #e2e8f0; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }

.footer-disclaimer { margin: 0; text-align: left; color: #94a3b8; font-size: .78rem; line-height: 1.55; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #1e293b; color: #94a3b8; font-size: .85rem;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--green-bright); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero-grid, .split, .split.reverse, .band-grid, .quote-cta, .newsletter, .author, .contact-wrap {
    grid-template-columns: 1fr; gap: 2.5rem;
  }

  /* Mobile : le livre passe juste sous le titre (product-first), le texte et
     les boutons suivent, sinon la couverture n'apparaît qu'après 2 écrans. */
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-grid { display: flex; flex-direction: column; gap: 1.4rem; }
  .hero-content { display: contents; }
  .hero-content h1 { order: 1; margin-bottom: 0; }
  .hero-media { order: 2; }
  .hero-content p { order: 3; }
  .hero-actions { order: 4; margin-top: 0; }
  .hero-trust { order: 5; margin-top: 0; }
  .hero-media--product img { max-width: 210px; }
  /* Texte resserré pour rapprocher les boutons de la ligne de flottaison */
  .hero-content p.lead { font-size: 1rem; line-height: 1.6; margin-bottom: 0; }
  .split.reverse .split-media { order: -1; }
  .band-grid { text-align: center; }
  .band-media { width: 220px; max-width: 100%; margin: 0 auto; }
  .features-grid, .audience-grid, .carnets-grid, .testi-grid { grid-template-columns: 1fr; }
  /* Largeur explicite : sans elle, `margin:0 auto` rend le bloc fit-content,
     donc large de 0 tant que l'image lazy n'est pas chargée. */
  .quote-cta .quote-media { width: 260px; max-width: 100%; margin: 0 auto; }
  .author-photo { width: 280px; max-width: 100%; margin: 0 auto; }
  .newsletter, .bonus, .quote-cta { padding: 2.2rem; }

  /* Nav mobile */
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 60;
  }
  .nav-toggle-label span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: .5rem 1.5rem 1.5rem; transform: translateY(-120%); transition: transform .3s ease; align-items: stretch;
  }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border: none; padding-top: 1rem; }
  .nav-links a { padding: 1rem 0; display: block; }
  .nav-links a::after { display: none; }
  .nav-toggle:checked ~ .nav-links { transform: translateY(0); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-cta { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 3.8rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-media .float-badge { left: 0; }
  /* Les libellés longs ne doivent pas élargir la page */
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
}

/* ============================ BLOG ============================
   Ajouté pour les pages /blog et /blog/<article>. Réutilise les jetons
   (couleurs, rayons, ombres) et les composants existants : .faq, .btn,
   .eyebrow, .section-head. Rien n'est redéfini en amont. */

/* --- Fil d'Ariane --- */
.fil-ariane { border-bottom: 1px solid var(--border); background: var(--bg-soft); font-size: .88rem; }
.fil-ariane .container { padding-top: .85rem; padding-bottom: .85rem; color: var(--muted); }
.fil-ariane a { color: var(--green-dark); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane span[aria-hidden] { margin: 0 .4rem; color: #94a3b8; }
/* Le titre courant peut être long : il se tronque plutôt que de casser la ligne. */
.fil-ariane [aria-current] { display: inline-block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* --- En-tête d'article --- */
.article-head { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 3rem 0 2.6rem; }
.article-head .container { max-width: 860px; }
/* `balance` (hérité de h1) égalise les lignes quitte à en ajouter une : un titre
   qui tiendrait en deux lignes en prenait trois. `pretty` évite juste le mot
   orphelin sans toucher au nombre de lignes. */
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .9rem 0 0; text-wrap: pretty; }
.article-chapo { color: var(--text); font-size: 1.12rem; line-height: 1.7; margin-top: 1.1rem; }
.article-byline { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article-byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-byline > div { display: grid; gap: .12rem; }
.by-nom { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.by-nom a { color: inherit; text-decoration: none; }
.by-nom a:hover { color: var(--green-dark); text-decoration: underline; }
.by-meta { color: var(--muted); font-size: .87rem; }

/* --- Corps : sommaire collant à gauche, texte à droite --- */
.article-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-top: 3rem; padding-bottom: 3.5rem; max-width: 1080px; }
.article-aside { position: sticky; top: 2rem; }
.article-toc { border-left: 2px solid var(--border); padding-left: 1.1rem; }
.toc-titre { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 700; margin-bottom: .8rem; }
.article-toc ol { list-style: none; display: grid; gap: .5rem; }
.article-toc a { color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.4; display: block; }
.article-toc a:hover { color: var(--green-dark); }
.article-toc .toc-n3 { padding-left: .9rem; font-size: .86rem; }

/* --- Prose --- */
.prose { color: var(--text); font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { font-size: 1.65rem; margin-top: 3rem; scroll-margin-top: 1.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2.2rem; scroll-margin-top: 1.5rem; }
.prose h4 { font-size: 1.08rem; margin-top: 1.8rem; }
/* `:not(.btn)` indispensable : `.prose a` est plus spécifique que `.btn-primary`,
   et repeignait le texte des boutons en vert foncé sur fond vert foncé. */
.prose a:not(.btn) { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):hover { color: var(--green); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose li { padding-left: .2rem; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote { border-left: 3px solid var(--green-bright); background: var(--green-soft); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); margin: 0; }
.prose-rule { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: .12em .38em; font-size: .9em; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 1.1rem 1.3rem; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; }
/* Un tableau large défile dans sa boîte : la page, elle, ne défile jamais latéralement. */
.prose-table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.prose-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose-table th, .prose-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.prose-table th { background: var(--bg-soft); font-family: var(--font-head); color: var(--ink); font-weight: 700; }
.prose-table tr:last-child td { border-bottom: 0; }

.article-cover img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* --- Façade YouTube --- */
.yt-facade { margin-top: 1.35rem; }
.yt-play { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #0f172a; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease; }
.yt-play:hover img { opacity: .82; }
.yt-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1e293b, #0f172a); }
.yt-play-icon { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: rgba(220, 38, 38, .95); }
.yt-play-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt-play:hover .yt-play-icon { background: #dc2626; }
.yt-play:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.yt-facade iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.yt-legende { font-size: .87rem; color: var(--muted); margin-top: .6rem; }

/* --- Sources --- */
.article-sources { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.article-sources h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.article-sources ol { padding-left: 1.2rem; display: grid; gap: .45rem; font-size: .92rem; color: var(--muted); }
.article-sources a { color: var(--green-dark); }

/* --- Encart livre en fin d'article --- */
.article-cta { margin-top: 3rem; background: var(--green-soft); border: 1px solid var(--green-tint); border-radius: var(--radius-lg); padding: 2.2rem; text-align: center; }
.article-cta h2 { font-size: 1.5rem; margin: .5rem 0 .9rem; }
.article-cta p { color: var(--text); max-width: 52ch; margin: 0 auto 1.6rem; }

/* --- Grille de cartes (listing + « à lire ensuite ») --- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* 1200x630 = ratio des couvertures générées et de l'image de partage social. */
.ac-media { aspect-ratio: 1200 / 630; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.ac-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
/* Carte sans photo : un filet de couleur en tête pour qu'elle reste un objet
   graphique et pas un simple bloc de texte. */
.article-card:not(:has(.ac-media)) { border-top: 4px solid var(--green-bright); }
.article-card:not(:has(.ac-media)) .ac-body { padding-top: 1.7rem; }
.ac-cat { align-self: flex-start; background: var(--green-soft); color: var(--green-dark); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
/* `pretty` et non `balance` : dans une colonne étroite, balance laissait une
   première ligne très courte pour équilibrer (« Faire baisser sa » seul). */
.article-card h3 { font-size: 1.16rem; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.article-card p { color: var(--text); font-size: .93rem; line-height: 1.6; }
.ac-meta { margin-top: auto; padding-top: .5rem; color: var(--muted); font-size: .82rem; }

@media (max-width: 980px) {
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
  /* Sur mobile le sommaire se replie au-dessus du texte plutôt que de coller. */
  .article-aside { position: static; margin-bottom: 2rem; }
  .article-toc { border-left: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: var(--bg-soft); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-head { padding: 2.2rem 0 2rem; }
  .article-cta { padding: 1.8rem 1.4rem; }
  .fil-ariane [aria-current] { max-width: 20ch; }
}

/* Bouton retour en haut : imposé par la checklist on-page au-delà de 1500 mots.
   Apparaît une fois la première hauteur d'écran dépassée (animation CSS pure,
   déclenchée par le scroll via `animation-timeline`, sans JavaScript). */
.retour-haut {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: #fff; color: var(--green-dark); border: 1px solid var(--border);
  border-radius: 50%; box-shadow: var(--shadow-md); font-size: 1.2rem;
  text-decoration: none; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .2s ease;
}
.retour-haut:hover { transform: translateY(-3px); border-color: var(--green-tint); }
@supports (animation-timeline: scroll()) {
  .retour-haut {
    animation: apparition-retour linear both;
    animation-timeline: scroll(root block);
    animation-range: 90vh 140vh;
  }
  @keyframes apparition-retour {
    from { opacity: 0; pointer-events: none; }
    to   { opacity: 1; pointer-events: auto; }
  }
}
/* Navigateurs sans scroll-driven animations : le bouton reste simplement visible. */
@supports not (animation-timeline: scroll()) {
  .retour-haut { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .retour-haut { transition: none; }
  .retour-haut:hover { transform: none; }
}

/* ============================ PAGES LÉGALES ET AFFILIATION ============================ */

/* Avertissement médical + affiliation : texte normal, pleine largeur du container. */
.footer-mentions {
  max-width: none; width: 100%; margin: 1.6rem 0 0; padding: 0;
  border: 0; text-align: left;
}
.footer-mentions p {
  color: #9aa8b8; font-size: .78rem; line-height: 1.55; margin: 0;
  max-width: none;
}
.footer-mentions a { color: #b6c2d1; text-decoration: underline; text-underline-offset: 2px; }
.footer-mentions a:hover { color: #fff; }
.footer-legal a { white-space: nowrap; }

.article-legal { max-width: 780px; }
.article-legal h2 { font-size: 1.4rem; margin-top: 2.8rem; }
.article-legal h2:first-child { margin-top: 0; }
.article-legal h3 { font-size: 1.1rem; margin-top: 1.8rem; }
.article-legal ul { padding-left: 1.3rem; display: grid; gap: .4rem; }
.legal-intro { font-size: 1.08rem; color: var(--text); border-left: 3px solid var(--green-bright);
               background: var(--green-soft); padding: 1.1rem 1.3rem;
               border-radius: 0 var(--radius) var(--radius) 0; }
.legal-maj { margin-top: 2.8rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
             color: var(--muted); font-size: .88rem; }
