:root {
  /* Palette de Fiat (styles.css) — thème clair */
  --bg: #F6F1E6;
  --paper: rgba(43, 39, 64, 0.05);
  --ink: #2B2740;
  --muted: #726B5E;
  --line: rgba(43, 39, 64, 0.16);
  --accent: #9C6B1B;      /* lueur */
  --accent-soft: rgba(156, 107, 27, 0.12);
  --gold: #9C6B1B;
  --on-accent: #FCF8F0;
  --ok: #5c7a4a;
  --fs: 1.1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sys-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: var(--sys-sans);
}
/* Apparence : auto (suit le téléphone), claire ou sombre */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14132B; --paper: rgba(242, 237, 227, 0.07); --ink: #F2EDE3; --muted: #A9A192;
    --line: rgba(242, 237, 227, 0.14); --accent: #E9B96B; --accent-soft: rgba(233, 185, 107, 0.14); --gold: #E9B96B; --ok: #8fb07a; --on-accent: #14132B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14132B; --paper: rgba(242, 237, 227, 0.07); --ink: #F2EDE3; --muted: #A9A192;
  --line: rgba(242, 237, 227, 0.14); --accent: #E9B96B; --accent-soft: rgba(233, 185, 107, 0.14); --gold: #E9B96B; --ok: #8fb07a; --on-accent: #14132B;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* Polices (fichiers inclus dans l'appli, fonctionnent hors ligne) */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "OpenDyslexic"; font-weight: 400; font-display: swap; src: url(fonts/opendyslexic-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "OpenDyslexic"; font-weight: 700; font-display: swap; src: url(fonts/opendyslexic-latin-700-normal.woff2) format("woff2"); }

:root[data-font="lisible"]  { --serif: "Atkinson Hyperlegible", var(--sys-sans); --sans: "Atkinson Hyperlegible", var(--sys-sans); }
:root[data-font="claire"]   { --serif: "Source Sans 3", var(--sys-sans); --sans: "Source Sans 3", var(--sys-sans); }
:root[data-font="dyslexie"] { --serif: "OpenDyslexic", var(--sys-sans); --sans: "OpenDyslexic", var(--sys-sans); }
:root[data-font="dyslexie"] .prayer p, :root[data-font="dyslexie"] .prose p { text-align: left; line-height: 1.8; }
:root[data-font="dyslexie"] .prayer, :root[data-font="dyslexie"] .prose { font-size: calc(.92rem * var(--fs)); }
:root[data-font="claire"] .prayer p, :root[data-font="lisible"] .prayer p { text-align: left; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
#app { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; min-height: 100vh; }
.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

h1, h2, .brand, .big, .prose, .prayer, .lede { font-family: var(--serif); }

.hero { text-align: center; padding: 40px 8px 24px; }
.cross { font-size: 2.2rem; color: var(--accent); }
.hero h1 { font-weight: 400; font-size: 2rem; line-height: 1.2; margin: 12px 0; }
.hero h1 em { color: var(--accent); }
.lede { color: var(--muted); font-size: 1.1rem; line-height: 1.5; margin: 0 auto; max-width: 30ch; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; margin: 16px 0; display: flex; flex-direction: column; gap: 10px;
}
label { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
input[type=date], input[type=time] {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; width: 100%;
}
.hint { color: var(--muted); font-size: .9rem; margin: 4px 0; line-height: 1.4; }
.center { text-align: center; }

.btn {
  font: inherit; font-size: 1rem; font-weight: 600; border: 0; border-radius: 12px;
  padding: 14px 18px; cursor: pointer; width: 100%; transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.link { background: none; color: var(--accent); font-weight: 500; }
.btn.danger { background: none; color: var(--accent); border: 1px solid var(--line); margin-top: 8px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.brand { font-size: 1.1rem; color: var(--accent); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper);
  color: var(--ink); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
}
.icon-btn.ghost { background: none; }

.ring-wrap { position: relative; width: 220px; height: 220px; margin: 12px auto 4px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.big { font-size: 3.4rem; line-height: 1; }
.small { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.status { text-align: center; color: var(--muted); font-family: var(--serif); font-size: 1.05rem; margin: 8px 0; }

.today-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.today-title { font-family: var(--serif); font-size: 1.2rem; }
.today-sub { color: var(--muted); font-size: .9rem; }
.badge { font-size: .8rem; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  font: inherit; font-weight: 600; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.tile span { color: var(--gold); font-size: 1.3rem; }

.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.progress div { height: 100%; background: var(--accent); width: 0; transition: width .3s; }

.prayer, .prose { font-size: calc(1rem * var(--fs)); line-height: 1.65; }
.prayer { padding: 8px 4px 120px; }
.prayer h2 { font-weight: 400; color: var(--accent); font-size: 1.5em; text-align: center; margin: 18px 0; }
.prayer p { margin: 0 0 1em; text-align: justify; hyphens: auto; }
.apres { margin-top: 1.6em; padding: 1.1em 1.1em .3em; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; }
.apres-sep { text-align: center; color: var(--gold); margin-bottom: .2em; }
.apres h3 { font-family: var(--serif); font-weight: 400; font-size: 1.05em; color: var(--accent); text-align: center; margin: 0 0 .7em; }
.apres p { font-style: italic; }
:root[data-font="dyslexie"] .apres p { font-style: normal; }
.pater { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .9em; }
.pater summary { cursor: pointer; color: var(--muted); font-family: var(--sans); font-size: .85rem; font-weight: 600; }
.pater p { margin-top: 10px; }

.pray-nav {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 30%); max-width: 560px; margin: 0 auto;
}

.prose h2 { font-weight: 400; color: var(--accent); font-size: 1.35em; margin: 1.2em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose a.btn { display: block; text-align: center; text-decoration: none; margin-top: 24px; }
a.icon-btn { text-decoration: none; }
.page-title { font-weight: 400; font-size: 1.7em; line-height: 1.2; margin: 8px 0 4px; }
.legal-link { display: block; text-align: center; color: var(--muted); font-size: .9rem; margin: 18px 0 4px; text-underline-offset: 3px; }
.prose .note { font-size: .9em; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 12px; }
.prose .btn { margin-top: 12px; }

.legend { display: flex; justify-content: center; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.dot.done, .cell.done { background: var(--accent); }
.dot.missed, .cell.missed { background: var(--line); }
.dot.today { outline: 2px solid var(--gold); background: transparent; }
.grid { display: flex; flex-direction: column; gap: 14px; }
.month h3 { font-family: var(--serif); font-weight: 400; font-size: 1rem; margin: 0 0 6px; color: var(--muted); text-transform: capitalize; }
.month-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cell {
  aspect-ratio: 1; border-radius: 6px; border: 0; padding: 0; font: inherit; font-size: .7rem;
  color: var(--muted); background: transparent; cursor: default;
}
.cell.done { color: var(--on-accent); }
.cell.missed, .cell.done { cursor: pointer; }
.cell.future { background: var(--paper); border: 1px solid var(--line); }
.cell.today { outline: 2px solid var(--gold); outline-offset: -2px; }
.cell.pad { visibility: hidden; }

.switch-row { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: 1rem; font-weight: 500; margin-top: 6px; }
.switch-row input { width: 22px; height: 22px; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg button {
  font-family: var(--serif); background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 0; cursor: pointer;
}
#font-seg button:nth-child(1) { font-size: .9rem; } #font-seg button:nth-child(2) { font-size: 1.1rem; }
#font-seg button:nth-child(3) { font-size: 1.35rem; } #font-seg button:nth-child(4) { font-size: 1.6rem; }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg.two button, .seg.three button { font-family: var(--sans); font-size: .95rem; font-weight: 600; padding: 12px 0; }
.seg.fonts { grid-template-columns: 1fr 1fr; }
.seg.fonts button { font-size: .9rem; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg.fonts b { font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.seg .f-classique { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif !important; }
.seg .f-lisible { font-family: "Atkinson Hyperlegible", sans-serif !important; }
.seg .f-claire { font-family: "Source Sans 3", sans-serif !important; }
.seg .f-dyslexie { font-family: "OpenDyslexic", sans-serif !important; font-size: .8rem !important; }
.seg button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

#toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%); }

/* ===== 24 Heures de la Passion ===== */
.btn:disabled { opacity: .45; }
.btn.primary { color: var(--on-accent); }

.choice {
  display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 12px 0;
  font: inherit; color: var(--ink); transition: border-color .2s, transform .1s;
}
.choice:active { transform: scale(.99); }
.choice:hover { border-color: var(--accent); }
.choice-title { font-family: var(--serif); font-size: 1.25rem; color: var(--accent); }
.choice-sub { color: var(--muted); font-size: .95rem; line-height: 1.4; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 4px 0; }
.step-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--accent); font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.step-btn:disabled { opacity: .35; cursor: default; }
.step-val { display: flex; flex-direction: column; align-items: center; min-width: 84px; }
.step-val span { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.step-val small { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.stepper.small .step-btn { width: 44px; height: 44px; font-size: 1.3rem; }
.stepper.small .step-val span { font-size: 2.1rem; }

.kicker-sm { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.small-link { font-size: .9rem; padding: 6px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tiles.three .tile { font-size: .85rem; padding: 14px 6px; }

.libre-hero { text-align: center; padding: 18px 0 6px; }
.libre-hero h1 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.2; margin: 6px 0 0; }
.libre-hero h1 em { color: var(--accent); }
.now-card, .resume-card { width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.now-card { border-color: var(--gold); background: linear-gradient(135deg, var(--paper), var(--accent-soft)); }

.hours { list-style: none; padding: 0; margin: 8px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.hour {
  width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; color: var(--ink);
}
.hour.is-next { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.hour.is-now .h-num { background: var(--gold); color: var(--on-accent); }
.h-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-size: 1rem;
}
.h-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h-time { font-size: .8rem; color: var(--muted); }
.h-time b { color: var(--accent); }
.h-title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.h-parts { font-size: .82rem; color: var(--muted); line-height: 1.35; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font: inherit; font-size: .8rem; padding: 6px 12px; border-radius: 99px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
}
.chip.main { color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.prayer h3, .prose h3 { font-family: var(--serif); font-weight: 400; color: var(--accent); font-size: 1.15em; margin: 1.4em 0 .5em; }
.prayer .silence {
  text-align: center; font-family: var(--sans); font-size: .75em; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin: 1.6em 0; display: flex; align-items: center; gap: 12px;
}
.prayer .silence::before, .prayer .silence::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sep { text-align: center; color: var(--gold); margin: 1.4em 0; font-size: .9em; }
.prayer blockquote, .prose blockquote {
  margin: 1em 0; padding: .2em 0 .2em 1em; border-left: 3px solid var(--accent-soft); font-style: italic;
}
.prayer blockquote p, .prose blockquote p { text-align: left; }
ul.lines { list-style: none; padding-left: 1.3em; margin: -.4em 0 1em; }
ul.lines li { position: relative; margin: .15em 0; }
ul.lines li::before { content: "–"; position: absolute; left: -1em; color: var(--gold); }
.prayer p.center, .prose p.center { text-align: center; }
.prose .lead { font-family: var(--serif); font-size: 1.15em; color: var(--accent); }
.prayer p { text-align: left; }

.seg.tabs { grid-template-columns: repeat(4, 1fr); margin: 6px 0 12px; }
.seg.tabs button { font-family: var(--sans); font-size: .82rem; padding: 10px 2px; }

.cycles { display: flex; flex-direction: column; gap: 6px; }
.cyc-row { display: flex; align-items: center; gap: 8px; }
.cyc-row > span { width: 20px; text-align: right; font-size: .75rem; color: var(--muted); }
.cyc-cells { flex: 1; display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.cyc-cells i { aspect-ratio: 1; border-radius: 2px; background: var(--line); }
.cyc-cells i.done { background: var(--accent); }
.cyc-cells i.next { outline: 2px solid var(--gold); outline-offset: -1px; background: transparent; }
.cell { cursor: default !important; }
.legend { justify-content: flex-start; margin: 0 0 6px; }
.month-cells span.cell { display: flex; align-items: center; justify-content: center; font-size: .68rem; }

.prose .kicker-sm, .prayer .kicker-sm { margin: 1.8em 0 -.4em; }
.prose h3 { margin-top: .6em; line-height: 1.3; }
.prose p, .prayer p { line-height: 1.7; }
.hour-sub { text-align: center; font-family: var(--serif); color: var(--muted); margin: 0 0 -6px; font-size: .95em; }

/* ===== Rendu des textes : repris de Fiat (styles.css, .bloc .texte) ===== */
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/eb-garamond-latin-500-italic.woff2) format("woff2"); }
:root { --serif: "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif; }

.jauge { display: flex; gap: 4px; margin: 2px 0 10px; }
.jauge span { flex: 1; height: 2px; background: var(--line); border-radius: 1px; }
.jauge span.faite { background: var(--gold); }

.texte { font-family: var(--serif); font-size: calc(1.1875rem * var(--fs) / 1.1); line-height: 1.75; }
:root[data-font="dyslexie"] .texte { font-size: calc(1.02rem * var(--fs) / 1.1); line-height: 1.85; }
.prayer .texte p, .prose .texte p { margin: 0 0 1rem; text-align: left; line-height: inherit; }
.texte p:last-child { margin-bottom: 0; }
.texte h3, .texte h4, .texte h5 { font-family: var(--serif); font-weight: 500; color: var(--accent); margin: 1.6rem 0 .6rem; line-height: 1.3; }
.texte h3 { font-size: 1.05em; }
.texte h4 { font-size: .9em; }
.texte h5 { font-size: .63em; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); }
.texte h6 { font-family: var(--sans); font-size: .58em; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 2rem 0 -.2rem; font-weight: 700; }
.texte strong { font-weight: 600; }
.texte ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.texte ol li { margin-bottom: .4rem; }
/* Les listes à puces sont lues comme des versets : un retrait, un petit tiret doré. */
.texte ul { list-style: none; margin: 0 0 1rem; padding-left: 1.5rem; }
.texte ul li { position: relative; margin-bottom: .15rem; }
.texte ul li::before { content: "\2013"; position: absolute; left: -1.1rem; color: var(--gold); opacity: .9; }
.texte ul + p { margin-top: -.4rem !important; }
.texte p + ul { margin-top: -.6rem; }
.texte p.repons { text-align: center; color: var(--accent); margin: .2rem 0 1.4rem; }
.texte hr.filet { border: none; width: 3rem; height: 1px; background: var(--line); margin: 1.9rem auto; }
.texte p.pause { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: 2.4rem 0; font-family: var(--sans);
  font-size: .63em; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); text-align: center; }
.texte p.pause .signe { font-size: .8em; opacity: .8; }
.texte blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 1px solid var(--gold); font-style: italic; color: var(--muted); }
.prayer, .prose { font-size: 1rem; }
.prayer h2 { font-family: var(--serif); font-weight: 500; font-size: calc(1.75rem * var(--fs) / 1.1); line-height: 1.25; text-align: left; margin: .4rem 0 1.25rem; color: var(--ink); }
#pray-kicker { text-align: left; }
.hour-sub { text-align: left; margin: 0; }
.prayer { padding-top: 14px; }

/* ===== Palette « Oraisons » (celle de l'appli sainte Brigitte), au choix dans les Réglages ===== */
:root[data-palette="oraisons"] {
  --bg: #f5efe4; --paper: #fbf8f2; --ink: #2b2118; --muted: #7a6a58; --line: #e2d7c4;
  --accent: #8c2f2b; --accent-soft: #f1dcd6; --gold: #b08a3e; --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="oraisons"]:not([data-theme="light"]) {
    --bg: #1c1612; --paper: #261e18; --ink: #efe6d8; --muted: #a8977f; --line: #3a2f26;
    --accent: #d0675f; --accent-soft: #3b2420; --gold: #d1ad62; --on-accent: #1c1612;
  }
}
:root[data-palette="oraisons"][data-theme="dark"] {
  --bg: #1c1612; --paper: #261e18; --ink: #efe6d8; --muted: #a8977f; --line: #3a2f26;
  --accent: #d0675f; --accent-soft: #3b2420; --gold: #d1ad62; --on-accent: #1c1612;
}
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px;
  box-shadow: 0 0 0 1px var(--line); }
.sw-fiat { background: linear-gradient(135deg, #14132B 50%, #E9B96B 50%); }
.sw-oraisons { background: linear-gradient(135deg, #f5efe4 50%, #8c2f2b 50%); }

/* ===== Emblème : le Sacré-Cœur dans la couronne d'épines ===== */
.emblem { display: block; width: 132px; height: auto; margin: 0 auto 6px; }
.libre-hero .emblem { width: 110px; }
.brand-mark { width: 32px; height: auto; vertical-align: -4px; margin-right: 6px; }
