/* Reconnexion Divine — journal personnel réparable et éditable */
.rd-reader-reflection {
  width: min(1120px, calc(100% - 32px));
  margin: clamp(28px, 5vw, 58px) auto;
  position: relative;
  z-index: 1;
}

.rd-reader-reflection,
.rd-reader-reflection * {
  box-sizing: border-box;
  pointer-events: auto !important;
}

.rd-reader-reflection-inner {
  border: 1px solid rgba(47,127,168,.20);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.65), transparent 36%),
    linear-gradient(135deg, rgba(230,247,255,.95), rgba(211,236,247,.92));
  box-shadow: 0 18px 55px rgba(20,75,110,.12);
  color: #0f2436;
}

.rd-reader-reflection-kicker {
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 10px;
  color: #194863;
}

.rd-reader-reflection h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.12;
  color: #061a2c;
}

.rd-reader-reflection-intro,
.rd-reader-note,
.rd-reader-meta {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.75;
}

.rd-reader-prompts,
.rd-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.rd-reader-prompts button,
.rd-reader-actions button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #2f7fa8;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 850;
  font-size: .95rem;
  line-height: 1.1;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31,95,134,.18);
}

.rd-reader-prompts button:hover,
.rd-reader-actions button:hover {
  background: #246a94;
}

.rd-reader-actions .rd-reader-danger {
  background: #8a3a3a;
}

.rd-reader-textarea {
  display: block !important;
  width: 100% !important;
  min-height: 245px !important;
  resize: vertical !important;
  margin: 18px 0 12px !important;
  padding: 18px 20px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(47,127,168,.32) !important;
  background: rgba(255,255,255,.88) !important;
  color: #0f2436 !important;
  -webkit-text-fill-color: #0f2436 !important;
  font-family: "Lora", Georgia, serif !important;
  font-size: 1.08rem !important;
  line-height: 1.72 !important;
  outline: none !important;
  position: relative !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.rd-reader-textarea:focus {
  border-color: #2f7fa8 !important;
  box-shadow: 0 0 0 4px rgba(47,127,168,.16) !important;
}

.rd-reader-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #35566e;
  font-weight: 700;
}

html[data-rd-effective-theme="dark"] .rd-reader-reflection-inner,
body[data-rd-effective-theme="dark"] .rd-reader-reflection-inner,
html[data-theme="dark"] .rd-reader-reflection-inner,
body[data-theme="dark"] .rd-reader-reflection-inner {
  background:
    radial-gradient(circle at 8% 0%, rgba(74,144,186,.18), transparent 38%),
    linear-gradient(135deg, rgba(12,31,52,.96), rgba(7,18,33,.94));
  border-color: rgba(147,205,236,.22);
  color: #f8fafc;
  box-shadow: 0 22px 64px rgba(0,0,0,.28);
}

html[data-rd-effective-theme="dark"] .rd-reader-reflection h2,
body[data-rd-effective-theme="dark"] .rd-reader-reflection h2,
html[data-theme="dark"] .rd-reader-reflection h2,
body[data-theme="dark"] .rd-reader-reflection h2 {
  color: #f8fafc;
}

html[data-rd-effective-theme="dark"] .rd-reader-reflection-kicker,
body[data-rd-effective-theme="dark"] .rd-reader-reflection-kicker,
html[data-rd-effective-theme="dark"] .rd-reader-meta,
body[data-rd-effective-theme="dark"] .rd-reader-meta,
html[data-rd-effective-theme="dark"] .rd-reader-note,
body[data-rd-effective-theme="dark"] .rd-reader-note {
  color: #d8ecf8;
}

html[data-rd-effective-theme="dark"] .rd-reader-textarea,
body[data-rd-effective-theme="dark"] .rd-reader-textarea,
html[data-theme="dark"] .rd-reader-textarea,
body[data-theme="dark"] .rd-reader-textarea {
  background: rgba(5,14,26,.90) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border-color: rgba(147,205,236,.28) !important;
}

@media (max-width: 720px) {
  .rd-reader-reflection {
    width: min(100% - 20px, 1120px);
  }

  .rd-reader-reflection-inner {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .rd-reader-prompts button,
  .rd-reader-actions button {
    width: 100%;
    justify-content: center;
  }

  .rd-reader-textarea {
    min-height: 220px !important;
  }
}