/* ═══════════════════════════════════════════════════════════════════════
   Mécène — MISE EN PAGE DES DOCUMENTS JURIDIQUES

   Partagée par les conditions, la confidentialité et les mentions légales :
   trois textes qui doivent rester identiques de forme, et qui vivent en
   dehors de l'app — on doit pouvoir les lire sans compte.
   ═══════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0908;
  color: #f7f5f2;
  font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[data-theme="light"] body { background: #f7f5f2; color: #141210; }

/* ── En-tête : un retour, toujours, même arrivé par un lien direct ── */
.doc-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
  background: #0a0908; border-bottom: 1px solid #1c1917;
}
[data-theme="light"] .doc-header { background: #f7f5f2; border-bottom-color: #e8e4de; }
.doc-retour {
  background: none; border: none; cursor: pointer; padding: 4px;
  display: flex; align-items: center; gap: 6px;
  color: #9b9792; font-size: 14px; font-weight: 600; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.doc-retour svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .doc-retour:hover { color: #f7f5f2; } }
[data-theme="light"] .doc-retour { color: #6b6865; }
@media (hover: hover) { [data-theme="light"] .doc-retour:hover { color: #141210; } }

.doc-corps {
  max-width: 700px; margin: 0 auto;
  padding: 10px 20px calc(56px + env(safe-area-inset-bottom));
}

/* ── Le texte ── */
.doc-titre {
  font-family: var(--font-title, inherit);
  font-size: 26px; font-weight: 800; letter-spacing: -0.4px;
  margin: 20px 0 4px; color: #f7f5f2;
}
[data-theme="light"] .doc-titre { color: #141210; }

.doc-date { font-size: 12px; color: #555250; margin-bottom: 4px; }
[data-theme="light"] .doc-date { color: #9b9792; }

/* Le chapô : ce que le document dit, en une phrase, avant d'entrer dedans */
.doc-chapo {
  font-size: 14.5px; color: #c9c6c1; line-height: 1.6;
  padding: 14px 16px; margin: 16px 0 4px;
  background: #141210; border: 1px solid #242220; border-radius: 14px;
}
[data-theme="light"] .doc-chapo { background: #f0ede8; border-color: #e8e4de; color: #383533; }

.doc-h {
  font-size: 15px; font-weight: 700; color: #f7f5f2;
  margin-top: 26px; margin-bottom: 2px;
}
[data-theme="light"] .doc-h { color: #141210; }

.doc-p { font-size: 14px; color: #9b9792; line-height: 1.7; margin-top: 8px; }
.doc-p b { color: #e8e4de; font-weight: 600; }
[data-theme="light"] .doc-p { color: #555250; }
[data-theme="light"] .doc-p b { color: #141210; }

.doc-ul { margin: 8px 0 0 18px; }
.doc-ul li { font-size: 14px; color: #9b9792; line-height: 1.7; margin-top: 5px; }
.doc-ul li b { color: #e8e4de; font-weight: 600; }
[data-theme="light"] .doc-ul li { color: #555250; }
[data-theme="light"] .doc-ul li b { color: #141210; }

.doc-p a, .doc-ul a { color: #5b8dee; text-decoration: underline; text-underline-offset: 2px; }
[data-theme="light"] .doc-p a, [data-theme="light"] .doc-ul a { color: #3a6ad4; }

/* ── Un encadré pour ce qui coûte de l'argent ──
   Les règles d'annulation et de frais méritent d'être vues, pas trouvées. */
.doc-cadre {
  margin-top: 12px; padding: 14px 16px;
  background: #171300; border: 1px solid #2a2100; border-radius: 12px;
}
.doc-cadre .doc-p { color: #cdc9c3; margin-top: 6px; }
.doc-cadre .doc-p:first-child { margin-top: 0; }
[data-theme="light"] .doc-cadre { background: #fdf6e6; border-color: #f0e2bd; }
[data-theme="light"] .doc-cadre .doc-p { color: #4a3d1a; }

/* ── À remplir avant publication ──
   Volontairement voyant : ces champs ne doivent pas partir en ligne tels quels. */
.doc-remplir {
  display: inline-block; padding: 1px 8px; border-radius: 6px;
  background: #3a0a0a; color: #ffb4b4; font-weight: 600; font-size: 13px;
}
[data-theme="light"] .doc-remplir { background: #fbeaea; color: #b34a4a; }
