/* ==========================================================
   Reconnexion Divine Méditations
   Charte méditation premium — référence arbres-dragon
   À conserver pour toutes les méditations actuelles et futures
   ========================================================== */

:root {
  --rd-ref-bg-1: #d8effc;
  --rd-ref-bg-2: #c7e7f7;
  --rd-ref-bg-3: #eef9ff;
  --rd-ref-ink: #0f2436;
  --rd-ref-soft: #37566b;
  --rd-ref-muted: #67849a;
  --rd-ref-card: rgba(238, 249, 255, 0.92);
  --rd-ref-card-strong: rgba(255, 255, 255, 0.70);
  --rd-ref-border: rgba(47, 127, 168, 0.20);
  --rd-ref-blue: #2f7fa8;
  --rd-ref-blue-deep: #1f5f86;
  --rd-ref-gold: #d8b45d;
  --rd-ref-green: #6f9d83;
  --rd-ref-shadow: 0 28px 90px rgba(15, 55, 85, 0.16);
  --rd-ref-radius-xl: 34px;
  --rd-ref-radius-lg: 26px;
  --rd-ref-radius-md: 18px;
}

html[data-rd-effective-theme="dark"],
body[data-rd-effective-theme="dark"],
html[data-theme="dark"],
body[data-theme="dark"],
html.dark,
body.dark,
html.rd-theme-dark,
body.rd-theme-dark {
  --rd-ref-bg-1: #07111f;
  --rd-ref-bg-2: #0b1728;
  --rd-ref-bg-3: #10243a;
  --rd-ref-ink: #f8fafc;
  --rd-ref-soft: #dbeafe;
  --rd-ref-muted: #a9c3d8;
  --rd-ref-card: rgba(10, 24, 42, 0.90);
  --rd-ref-card-strong: rgba(255, 255, 255, 0.08);
  --rd-ref-border: rgba(255, 255, 255, 0.14);
  --rd-ref-blue: #4aa3d3;
  --rd-ref-blue-deep: #1f5f86;
  --rd-ref-gold: #e3c36b;
  --rd-ref-green: #9bcaa9;
  --rd-ref-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

body.rd-reference-meditation-style {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.72), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.34), transparent 26%),
    linear-gradient(135deg, var(--rd-ref-bg-1), var(--rd-ref-bg-2) 48%, var(--rd-ref-bg-3));
  color: var(--rd-ref-ink);
  font-family: "Lora", "Source Serif 4", Georgia, serif;
  line-height: 1.72;
}

body.rd-reference-meditation-style h1,
body.rd-reference-meditation-style h2,
body.rd-reference-meditation-style h3 {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--rd-ref-ink);
}

body.rd-reference-meditation-style .rd-page,
body.rd-reference-meditation-style main[data-meditation-slug],
body.rd-reference-meditation-style main.rd-meditation-page,
body.rd-reference-meditation-style .meditation-page,
body.rd-reference-meditation-style .rd-story-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 94px 0 54px;
}

/* HERO — disposition inspirée de la page de référence */
body.rd-reference-meditation-style .rd-hero,
body.rd-reference-meditation-style .meditation-hero,
body.rd-reference-meditation-style .hero-meditation,
body.rd-reference-meditation-style header[data-meditation-hero] {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 46%) 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--rd-ref-radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.16)),
    var(--rd-ref-card);
  border: 1px solid var(--rd-ref-border);
  box-shadow: var(--rd-ref-shadow);
  isolation: isolate;
}

body.rd-reference-meditation-style .rd-hero::before,
body.rd-reference-meditation-style .meditation-hero::before,
body.rd-reference-meditation-style .hero-meditation::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(216,180,93,.22), transparent 22%),
    radial-gradient(circle at 18% 80%, rgba(111,157,131,.16), transparent 24%);
  pointer-events: none;
  z-index: -1;
}

body.rd-reference-meditation-style .rd-hero-media,
body.rd-reference-meditation-style .meditation-hero-image,
body.rd-reference-meditation-style .hero-image {
  min-height: 390px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.18), transparent 34%),
    rgba(5, 20, 32, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.rd-reference-meditation-style .rd-hero-media img,
body.rd-reference-meditation-style .meditation-hero-image img,
body.rd-reference-meditation-style .hero-image img,
body.rd-reference-meditation-style .rd-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: saturate(1.04) contrast(1.02);
}

body.rd-reference-meditation-style .rd-hero-body,
body.rd-reference-meditation-style .meditation-hero-content,
body.rd-reference-meditation-style .hero-content {
  padding: clamp(28px, 4.8vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

body.rd-reference-meditation-style .rd-kicker,
body.rd-reference-meditation-style .meditation-kicker,
body.rd-reference-meditation-style .hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 127, 168, .12);
  border: 1px solid rgba(47, 127, 168, .18);
  color: var(--rd-ref-blue-deep);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

html[data-rd-effective-theme="dark"] body.rd-reference-meditation-style .rd-kicker,
body[data-rd-effective-theme="dark"].rd-reference-meditation-style .rd-kicker {
  color: #bfe7ff;
}

body.rd-reference-meditation-style .rd-hero h1,
body.rd-reference-meditation-style .meditation-hero h1,
body.rd-reference-meditation-style .hero-meditation h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

body.rd-reference-meditation-style .rd-subtitle,
body.rd-reference-meditation-style .meditation-subtitle,
body.rd-reference-meditation-style .hero-subtitle {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.22rem, 2.1vw, 1.65rem);
  line-height: 1.22;
  color: var(--rd-ref-soft);
  margin: 0;
}

body.rd-reference-meditation-style .rd-summary,
body.rd-reference-meditation-style .meditation-summary,
body.rd-reference-meditation-style .hero-summary {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--rd-ref-soft);
  margin: 0;
  max-width: 64ch;
}

body.rd-reference-meditation-style .rd-badges,
body.rd-reference-meditation-style .meditation-tags,
body.rd-reference-meditation-style .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

body.rd-reference-meditation-style .rd-badge,
body.rd-reference-meditation-style .tag,
body.rd-reference-meditation-style .meditation-tag,
body.rd-reference-meditation-style .hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--rd-ref-card-strong);
  border: 1px solid var(--rd-ref-border);
  color: var(--rd-ref-soft);
  font-size: .90rem;
  font-weight: 800;
}

/* Navigation interne */
body.rd-reference-meditation-style .rd-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
  justify-content: center;
}

body.rd-reference-meditation-style .rd-quick-nav a {
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(47,127,168,.12);
  border: 1px solid rgba(47,127,168,.20);
  color: var(--rd-ref-soft);
  text-decoration: none;
  font-weight: 850;
}

body.rd-reference-meditation-style .rd-quick-nav a:hover {
  background: linear-gradient(135deg, var(--rd-ref-blue), var(--rd-ref-blue-deep));
  color: #ffffff;
}

/* Article */
body.rd-reference-meditation-style .rd-article,
body.rd-reference-meditation-style article,
body.rd-reference-meditation-style .meditation-content,
body.rd-reference-meditation-style .story-content {
  margin-top: 24px;
  padding: clamp(26px, 5vw, 62px);
  border-radius: var(--rd-ref-radius-xl);
  background: var(--rd-ref-card);
  border: 1px solid var(--rd-ref-border);
  box-shadow: var(--rd-ref-shadow);
}

body.rd-reference-meditation-style article h1,
body.rd-reference-meditation-style .rd-article h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.08;
  margin: 1.1em 0 .45em;
}

body.rd-reference-meditation-style article h2,
body.rd-reference-meditation-style .rd-article h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  margin: 1.7em 0 .55em;
}

body.rd-reference-meditation-style article h3,
body.rd-reference-meditation-style .rd-article h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  margin: 1.35em 0 .4em;
}

body.rd-reference-meditation-style article p,
body.rd-reference-meditation-style .rd-article p,
body.rd-reference-meditation-style article li,
body.rd-reference-meditation-style .rd-article li {
  font-size: clamp(1.045rem, 1.35vw, 1.17rem);
}

body.rd-reference-meditation-style article p,
body.rd-reference-meditation-style .rd-article p {
  margin: 0 0 1.06em;
}

body.rd-reference-meditation-style article ul,
body.rd-reference-meditation-style .rd-article ul {
  padding-left: 1.25rem;
}

body.rd-reference-meditation-style article li,
body.rd-reference-meditation-style .rd-article li {
  margin: .42em 0;
}

body.rd-reference-meditation-style hr {
  border: 0;
  height: 1px;
  margin: 34px 0;
  background:
    linear-gradient(90deg, transparent, rgba(216,180,93,.78), transparent);
}

body.rd-reference-meditation-style blockquote,
body.rd-reference-meditation-style .rd-quote-illustration {
  margin: 30px 0;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 24px;
  border: 1px solid rgba(216, 180, 93, .38);
  border-left: 6px solid var(--rd-ref-gold);
  background:
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(216,180,93,.12));
  color: var(--rd-ref-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.38rem, 2.8vw, 2.1rem);
  line-height: 1.25;
  box-shadow: 0 16px 46px rgba(80, 60, 20, .10);
}

/* Journal lecteur — style référence */
body.rd-reference-meditation-style .rd-journal-block,
body.rd-reference-meditation-style #journal-personnel,
body.rd-reference-meditation-style .reader-space,
body.rd-reference-meditation-style .journal-personnel {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--rd-ref-radius-xl);
  background:
    radial-gradient(circle at 8% 0%, rgba(111,157,131,.14), transparent 28%),
    var(--rd-ref-card);
  border: 1px solid var(--rd-ref-border);
  box-shadow: var(--rd-ref-shadow);
}

body.rd-reference-meditation-style .rd-journal-block h2,
body.rd-reference-meditation-style #journal-personnel h2 {
  margin-top: 0;
}

body.rd-reference-meditation-style .rd-journal-prompts,
body.rd-reference-meditation-style .rd-journal-actions,
body.rd-reference-meditation-style .rd-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.rd-reference-meditation-style .rd-journal-prompts button,
body.rd-reference-meditation-style .rd-journal-actions button,
body.rd-reference-meditation-style .rd-share-actions button,
body.rd-reference-meditation-style .rd-share-actions a,
body.rd-reference-meditation-style .rd-button {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 999px !important;
  padding: 10px 15px !important;
  border: 1px solid rgba(47,127,168,.20) !important;
  background: linear-gradient(135deg, var(--rd-ref-blue), var(--rd-ref-blue-deep)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif !important;
  cursor: pointer !important;
}

body.rd-reference-meditation-style #rd-journal-text,
body.rd-reference-meditation-style textarea {
  width: 100%;
  margin-top: 16px;
  border-radius: 24px;
  border: 1px solid var(--rd-ref-border);
  padding: 16px;
  min-height: 180px;
  box-sizing: border-box;
  background: rgba(255,255,255,.58);
  color: var(--rd-ref-ink);
  font: 1rem/1.6 "Lora", Georgia, serif;
}

html[data-rd-effective-theme="dark"] body.rd-reference-meditation-style #rd-journal-text,
body[data-rd-effective-theme="dark"].rd-reference-meditation-style #rd-journal-text,
html[data-rd-effective-theme="dark"] body.rd-reference-meditation-style textarea,
body[data-rd-effective-theme="dark"].rd-reference-meditation-style textarea {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Documentaires */
body.rd-reference-meditation-style .rd-documentaries-block,
body.rd-reference-meditation-style .documentaries-block,
body.rd-reference-meditation-style .rd-share-block {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--rd-ref-radius-xl);
  background: var(--rd-ref-card);
  border: 1px solid var(--rd-ref-border);
  box-shadow: var(--rd-ref-shadow);
}

body.rd-reference-meditation-style .rd-documentary-grid,
body.rd-reference-meditation-style .documentary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px;
}

body.rd-reference-meditation-style .rd-documentary-card,
body.rd-reference-meditation-style .documentary-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(47,127,168,.12), rgba(216,180,93,.10));
  border: 1px solid var(--rd-ref-border);
  color: var(--rd-ref-ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

body.rd-reference-meditation-style .rd-documentary-card:hover,
body.rd-reference-meditation-style .documentary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15,55,85,.16);
  background:
    linear-gradient(135deg, rgba(47,127,168,.18), rgba(216,180,93,.16));
}

body.rd-reference-meditation-style .rd-documentary-card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
}

body.rd-reference-meditation-style .rd-documentary-card span {
  color: var(--rd-ref-muted);
  font-weight: 750;
}

/* Footer */
body.rd-reference-meditation-style footer {
  margin-top: 34px;
  text-align: center;
  color: var(--rd-ref-muted);
  font-size: .92rem;
}

/* Harmonisation pages anciennes générées différemment */
body.rd-reference-meditation-style img {
  max-width: 100%;
}

body.rd-reference-meditation-style a {
  color: inherit;
}

body.rd-reference-meditation-style .loading,
body.rd-reference-meditation-style .rd-loading {
  padding: 18px;
  border-radius: 20px;
  background: rgba(47,127,168,.10);
  border: 1px solid var(--rd-ref-border);
  color: var(--rd-ref-soft);
  font-weight: 800;
}

/* Mobile */
@media (max-width: 820px) {
  body.rd-reference-meditation-style .rd-page,
  body.rd-reference-meditation-style main[data-meditation-slug],
  body.rd-reference-meditation-style main.rd-meditation-page,
  body.rd-reference-meditation-style .meditation-page,
  body.rd-reference-meditation-style .rd-story-page {
    width: min(100% - 20px, 720px);
    padding-top: 82px;
  }

  body.rd-reference-meditation-style .rd-hero,
  body.rd-reference-meditation-style .meditation-hero,
  body.rd-reference-meditation-style .hero-meditation {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  body.rd-reference-meditation-style .rd-hero-media,
  body.rd-reference-meditation-style .meditation-hero-image,
  body.rd-reference-meditation-style .hero-image {
    min-height: 245px;
  }

  body.rd-reference-meditation-style .rd-hero-body,
  body.rd-reference-meditation-style .meditation-hero-content,
  body.rd-reference-meditation-style .hero-content {
    padding: 24px;
  }

  body.rd-reference-meditation-style .rd-quick-nav a,
  body.rd-reference-meditation-style .rd-button {
    width: 100% !important;
    justify-content: center !important;
  }

  body.rd-reference-meditation-style .rd-article,
  body.rd-reference-meditation-style article,
  body.rd-reference-meditation-style .rd-journal-block,
  body.rd-reference-meditation-style .rd-documentaries-block,
  body.rd-reference-meditation-style .rd-share-block {
    border-radius: 24px;
    padding: 22px;
  }
}

@media print {
  body.rd-reference-meditation-style .rd-site-menu-root,
  body.rd-reference-meditation-style .rd-quick-nav,
  body.rd-reference-meditation-style .rd-share-block {
    display: none !important;
  }
}

/* RD_STABLE_MENU_READABILITY_PATCH START */
/* Menu premium lisible sur fonds clairs et pages méditation */

#rd-site-menu-root,
.rd-site-menu-root {
  z-index: 999999 !important;
  color: #123047 !important;
  -webkit-text-fill-color: initial !important;
}

#rd-site-menu-root *,
.rd-site-menu-root * {
  box-sizing: border-box !important;
}

/* Texte des liens du menu : sombre en mode clair */
#rd-site-menu-root a,
#rd-site-menu-root a:link,
#rd-site-menu-root a:visited,
#rd-site-menu-root button,
#rd-site-menu-root [role="button"],
.rd-site-menu-root a,
.rd-site-menu-root a:link,
.rd-site-menu-root a:visited,
.rd-site-menu-root button,
.rd-site-menu-root [role="button"] {
  color: #123047 !important;
  -webkit-text-fill-color: #123047 !important;
  text-shadow: none !important;
  font-weight: 850 !important;
  opacity: 1 !important;
}

#rd-site-menu-root a *,
#rd-site-menu-root button *,
.rd-site-menu-root a *,
.rd-site-menu-root button * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  opacity: 1 !important;
}

/* Fond plus lisible du panneau, style proche accueil */
#rd-site-menu-root nav,
#rd-site-menu-root aside,
#rd-site-menu-root [role="dialog"],
#rd-site-menu-root [class*="panel"],
#rd-site-menu-root [class*="drawer"],
.rd-site-menu-root nav,
.rd-site-menu-root aside,
.rd-site-menu-root [role="dialog"],
.rd-site-menu-root [class*="panel"],
.rd-site-menu-root [class*="drawer"] {
  background: linear-gradient(145deg, rgba(235, 249, 255, .96), rgba(218, 241, 252, .94)) !important;
  color: #123047 !important;
  -webkit-text-fill-color: initial !important;
  border-color: rgba(47, 127, 168, .28) !important;
  box-shadow: 0 24px 80px rgba(14, 65, 96, .20) !important;
  backdrop-filter: blur(18px) !important;
}

/* Cartouches de menu */
#rd-site-menu-root nav a,
#rd-site-menu-root aside a,
#rd-site-menu-root [role="dialog"] a,
#rd-site-menu-root nav button,
#rd-site-menu-root aside button,
#rd-site-menu-root [role="dialog"] button,
.rd-site-menu-root nav a,
.rd-site-menu-root aside a,
.rd-site-menu-root [role="dialog"] a,
.rd-site-menu-root nav button,
.rd-site-menu-root aside button,
.rd-site-menu-root [role="dialog"] button {
  background: rgba(255, 255, 255, .54) !important;
  border: 1px solid rgba(47, 127, 168, .22) !important;
}

#rd-site-menu-root nav a:hover,
#rd-site-menu-root aside a:hover,
#rd-site-menu-root [role="dialog"] a:hover,
.rd-site-menu-root nav a:hover,
.rd-site-menu-root aside a:hover,
.rd-site-menu-root [role="dialog"] a:hover {
  background: rgba(255, 255, 255, .78) !important;
  color: #08243a !important;
  -webkit-text-fill-color: #08243a !important;
}

/* Bouton rond / fermeture / badge état : texte blanc conservé */
#rd-site-menu-root [class*="close"],
#rd-site-menu-root [class*="hamburger"],
#rd-site-menu-root [class*="status"],
#rd-site-menu-root [class*="badge"],
#rd-site-menu-root [class*="pill"],
.rd-site-menu-root [class*="close"],
.rd-site-menu-root [class*="hamburger"],
.rd-site-menu-root [class*="status"],
.rd-site-menu-root [class*="badge"],
.rd-site-menu-root [class*="pill"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Mode sombre */
html[data-rd-effective-theme="dark"] #rd-site-menu-root nav,
html[data-rd-effective-theme="dark"] #rd-site-menu-root aside,
html[data-rd-effective-theme="dark"] #rd-site-menu-root [role="dialog"],
body[data-rd-effective-theme="dark"] #rd-site-menu-root nav,
body[data-rd-effective-theme="dark"] #rd-site-menu-root aside,
body[data-rd-effective-theme="dark"] #rd-site-menu-root [role="dialog"],
html[data-rd-effective-theme="dark"] .rd-site-menu-root nav,
html[data-rd-effective-theme="dark"] .rd-site-menu-root aside,
html[data-rd-effective-theme="dark"] .rd-site-menu-root [role="dialog"],
body[data-rd-effective-theme="dark"] .rd-site-menu-root nav,
body[data-rd-effective-theme="dark"] .rd-site-menu-root aside,
body[data-rd-effective-theme="dark"] .rd-site-menu-root [role="dialog"] {
  background: linear-gradient(145deg, rgba(10, 24, 42, .96), rgba(16, 36, 58, .94)) !important;
  color: #f8fafc !important;
  border-color: rgba(144, 200, 235, .18) !important;
}

html[data-rd-effective-theme="dark"] #rd-site-menu-root a,
html[data-rd-effective-theme="dark"] #rd-site-menu-root button,
body[data-rd-effective-theme="dark"] #rd-site-menu-root a,
body[data-rd-effective-theme="dark"] #rd-site-menu-root button,
html[data-rd-effective-theme="dark"] .rd-site-menu-root a,
html[data-rd-effective-theme="dark"] .rd-site-menu-root button,
body[data-rd-effective-theme="dark"] .rd-site-menu-root a,
body[data-rd-effective-theme="dark"] .rd-site-menu-root button {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

/* Mobile menu */
@media (max-width: 760px) {
  #rd-site-menu-root nav,
  #rd-site-menu-root aside,
  #rd-site-menu-root [role="dialog"],
  #rd-site-menu-root [class*="panel"],
  #rd-site-menu-root [class*="drawer"],
  .rd-site-menu-root nav,
  .rd-site-menu-root aside,
  .rd-site-menu-root [role="dialog"],
  .rd-site-menu-root [class*="panel"],
  .rd-site-menu-root [class*="drawer"] {
    width: min(340px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 24px !important;
    padding: 16px !important;
    right: 12px !important;
    left: auto !important;
  }

  #rd-site-menu-root a,
  #rd-site-menu-root button,
  .rd-site-menu-root a,
  .rd-site-menu-root button {
    min-height: 42px !important;
    font-size: .96rem !important;
    line-height: 1.25 !important;
  }
}
/* RD_STABLE_MENU_READABILITY_PATCH END */

/* RD_STABLE_MEDITATION_RESPONSIVE_PATCH START */
/* Responsive méditation + citations confortables */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.rd-page,
.rd-meditation-page,
main.rd-page,
main.rd-meditation-page {
  max-width: 100% !important;
}

.rd-hero,
.rd-article,
.rd-journal-block,
.rd-documentaries-block,
.rd-share-block,
.rd-home-today-card {
  max-width: 100% !important;
}

/* Citation illustrée : plus grande et plus lisible */
.rd-quote-illustration {
  font-size: clamp(1.45rem, 1.15rem + 1.05vw, 2.12rem) !important;
  line-height: 1.58 !important;
  padding: clamp(24px, 3.5vw, 38px) clamp(24px, 4.2vw, 46px) !important;
  margin: clamp(30px, 4vw, 48px) 0 !important;
  border-left-width: 7px !important;
  letter-spacing: .01em !important;
}

.rd-quote-illustration p,
.rd-quote-illustration span,
.rd-quote-illustration div {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Tablette */
@media (max-width: 980px) {
  .rd-page,
  .rd-meditation-page,
  main.rd-page,
  main.rd-meditation-page {
    width: min(100% - 24px, 1180px) !important;
    padding-top: 92px !important;
  }

  .rd-hero {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 18px !important;
    border-radius: 28px !important;
  }

  .rd-hero-media img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
  }

  .rd-hero h1 {
    font-size: clamp(2rem, 8vw, 3.6rem) !important;
    line-height: 1.04 !important;
  }

  .rd-subtitle,
  .rd-summary {
    font-size: clamp(1rem, 4vw, 1.25rem) !important;
  }

  .rd-article,
  .rd-journal-block,
  .rd-documentaries-block,
  .rd-share-block {
    padding: clamp(20px, 5vw, 30px) !important;
    border-radius: 28px !important;
  }

  .rd-article p,
  .rd-article li,
  .rd-journal-block p,
  .rd-documentaries-block p,
  .rd-share-block p {
    font-size: 1.08rem !important;
    line-height: 1.9 !important;
  }

  .rd-documentary-grid {
    grid-template-columns: 1fr !important;
  }

  .rd-quick-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .rd-quick-nav a {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

/* Smartphone */
@media (max-width: 640px) {
  .rd-page,
  .rd-meditation-page,
  main.rd-page,
  main.rd-meditation-page {
    width: calc(100% - 18px) !important;
    padding-top: 82px !important;
    padding-bottom: 44px !important;
  }

  .rd-hero {
    padding: 12px !important;
    border-radius: 24px !important;
    margin-bottom: 18px !important;
  }

  .rd-hero-media {
    border-radius: 20px !important;
  }

  .rd-hero-media img {
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 18px !important;
  }

  .rd-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.035em !important;
  }

  .rd-kicker,
  .rd-badge {
    font-size: .92rem !important;
  }

  .rd-badges {
    gap: 7px !important;
  }

  .rd-article,
  .rd-journal-block,
  .rd-documentaries-block,
  .rd-share-block {
    padding: 20px !important;
    border-radius: 24px !important;
    margin-bottom: 18px !important;
  }

  .rd-article h1 {
    font-size: clamp(1.8rem, 9vw, 2.55rem) !important;
  }

  .rd-article h2,
  .rd-journal-block h2,
  .rd-documentaries-block h2,
  .rd-share-block h2 {
    font-size: clamp(1.45rem, 7vw, 2.05rem) !important;
  }

  .rd-article p,
  .rd-article li,
  .rd-journal-block p,
  .rd-documentaries-block p,
  .rd-share-block p {
    font-size: 1.07rem !important;
    line-height: 1.9 !important;
  }

  .rd-quote-illustration {
    font-size: 1.36rem !important;
    line-height: 1.62 !important;
    padding: 24px 22px !important;
    border-radius: 20px !important;
  }

  .rd-journal-prompts,
  .rd-journal-actions,
  .rd-share-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .rd-journal-prompts button,
  .rd-journal-actions button,
  .rd-share-actions button,
  .rd-share-actions a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 46px !important;
  }

  #rd-journal-text,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 220px !important;
    font-size: 1.03rem !important;
    line-height: 1.75 !important;
  }
}

/* Très petit écran */
@media (max-width: 420px) {
  .rd-page,
  .rd-meditation-page,
  main.rd-page,
  main.rd-meditation-page {
    width: calc(100% - 14px) !important;
    padding-top: 76px !important;
  }

  .rd-hero,
  .rd-article,
  .rd-journal-block,
  .rd-documentaries-block,
  .rd-share-block {
    border-radius: 20px !important;
  }

  .rd-hero h1 {
    font-size: clamp(1.85rem, 12vw, 2.65rem) !important;
  }
}
/* RD_STABLE_MEDITATION_RESPONSIVE_PATCH END */
