/* =====================================================================
   Bible aux Sources — feuille de style
   Trois ambiances : Jour (papier beige, lumière du matin), Sépia (soirée,
   contraste doux), Nuit (sombre et chaud). Hébreu en indigo, araméen en
   orange, grec en vert. Tout passe par des variables.
   ===================================================================== */
:root {
  --bg: #f4ecdd; --surface: #fcf7ee; --wash: #ece2cf; --line: #e3d7c0; --line-2: #d2c3a5;
  --ink: #2a2318; --muted: #6f6454; --faint: #9c8f7a;
  --accent: #2f55c9; --accent-ink: #fff; --accent-soft: #e3e8f8;
  --sun: #e9a800; --sun-soft: #fbe9bd; --sun-ink: #3d2c00;
  --aram: #d9560f; --aram-soft: #fde3d2;
  --greek: #0e8a68; --greek-soft: #d6f0e5;
  --rose: #c9366b;
  --hl-sun: #ffe49a; --hl-rose: #ffd2da; --hl-sky: #cfe0ff; --hl-mint: #c8eedb;
  --hero-a: #fbe0b9; --hero-b: #e4e6f3; --hero-c: #f8d6c8;
  --shadow: 0 1px 2px rgba(84, 60, 20, .05), 0 10px 32px rgba(84, 60, 20, .09);
  --shadow-lg: 0 24px 64px rgba(84, 60, 20, .2);
  --g1: #c98f00; --g2: #e0640f; --g3: #c9366b; --g4: #6d47d8; --g5: #4a5fcf;
  --g6: #1b78c9; --g7: #0e9a6f; --g8: #0b8594; --g9: #c93431;
  --f-display: "Fraunces", "Literata", Georgia, serif;
  --f-ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-read: "Literata", "Iowan Old Style", Georgia, serif;
  --f-he: "Noto Serif Hebrew", "SBL Hebrew", "Ezra SIL", "Times New Roman", serif;
  --f-gr: "Gentium Book Plus", "Gentium Plus", "Palatino Linotype", serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --scale: 1;
  --gl: max(18px, env(safe-area-inset-left, 0px));
  --gr: max(18px, env(safe-area-inset-right, 0px));
  --bar-h: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.25, .64, 1);
  color-scheme: light;
}
:root[data-font="sans"] { --f-read: "Figtree", system-ui, sans-serif; }
:root[data-theme="sepia"] {
  --bg: #ecdfc8; --surface: #f5ead6; --wash: #e3d4b8; --line: #d9c7a5; --line-2: #c7b28c;
  --ink: #3b2f1e; --muted: #776750; --faint: #9f8e73;
  --accent: #7a4a1c; --accent-ink: #fff6e8; --accent-soft: #ead8bf;
  --sun: #c98f00; --sun-soft: #f2dfb3; --sun-ink: #3d2c00;
  --aram: #b64a0d; --aram-soft: #f1d6c0; --greek: #2f7a5a; --greek-soft: #d2e6d6; --rose: #a63a5e;
  --hl-sun: #f4d98a; --hl-rose: #f1c4ca; --hl-sky: #c9d6ea; --hl-mint: #c3dfca;
  --hero-a: #f1d6ad; --hero-b: #e6dcc6; --hero-c: #ecc9b4;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 10px 32px rgba(60, 40, 10, .1); --shadow-lg: 0 24px 64px rgba(60, 40, 10, .22);
  --g1: #b07d00; --g2: #c2560d; --g3: #a63a5e; --g4: #5f43b5; --g5: #43559f; --g6: #1f6aa8; --g7: #227a5a; --g8: #1f6f7a; --g9: #ad302c;
}
:root[data-theme="dark"], :root:not([data-theme]).sys-dark {
  --bg: #14120f; --surface: #1d1a15; --wash: #27221b; --line: #332d24; --line-2: #4b4235;
  --ink: #eee6d6; --muted: #b7ab96; --faint: #857a66;
  --accent: #9fb3ff; --accent-ink: #11131d; --accent-soft: #262d4a;
  --sun: #f2c35b; --sun-soft: #3b3017; --sun-ink: #ffe9b0;
  --aram: #ff9d5e; --aram-soft: #3f2616; --greek: #4fd3a6; --greek-soft: #123b30; --rose: #f06595;
  --hl-sun: #5e4b12; --hl-rose: #5c2234; --hl-sky: #213769; --hl-mint: #174a39;
  --hero-a: #2b2230; --hero-b: #171e36; --hero-c: #3a1f2d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 32px rgba(0, 0, 0, .42); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
  --g1: #ffc53d; --g2: #ff922b; --g3: #f06595; --g4: #9775fa; --g5: #748ffc; --g6: #4dabf7; --g7: #38d9a9; --g8: #3bc9db; --g9: #ff6b6b;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--f-ui); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100dvh; transition: background-color .35s, color .35s; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.he { font-family: var(--f-he); direction: rtl; unicode-bidi: isolate; }
.gr { font-family: var(--f-gr); }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
::selection { background: var(--sun-soft); }
.view { animation: view-in .45s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), border-color .18s, background-color .18s, box-shadow .18s, color .18s; -webkit-tap-highlight-color: transparent; }

.btn:active { transform: scale(.96); box-shadow: none; transition-duration: .06s; }
.vs:active { transform: scale(.995); }
.bk:active, .chaps button:active, .plan-ch:active, .acc-list a:active, .acc-list button:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--wash); box-shadow: none; transform: none; }
.btn.icon { width: 40px; padding: 0; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.sm.icon { width: 32px; }
.btn.sm svg { width: 15px; height: 15px; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn:disabled { opacity: .45; pointer-events: none; }
.seg { display: inline-flex; background: var(--wash); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--wash); color: var(--muted); border: 0; text-decoration: none; }
.chip.code { font-family: var(--f-mono); font-weight: 500; background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
button.chip { cursor: pointer; transition: background-color .15s, color .15s; }
button.chip:hover { color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.chip svg { width: 13px; height: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ------------------------------------------------------------------ barre du haut */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.bar::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: linear-gradient(var(--bg), transparent); pointer-events: none; opacity: .9; }
.bar-in { display: flex; align-items: center; gap: 8px; height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, var(--sun-soft), transparent 70%); transition: transform .35s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand b { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; line-height: 1; font-variation-settings: "opsz" 24; }
.brand b small { display: block; font-family: var(--f-ui); font-weight: 600; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.refpill { display: inline-flex; align-items: center; background: var(--wash); border-radius: 999px; padding: 3px; gap: 2px; margin-left: 6px; }
.refpill .btn { height: 34px; border: 0; background: transparent; box-shadow: none; }
.refpill .btn:hover { background: var(--surface); transform: none; }
.refpill .ref { font-family: var(--f-display); font-weight: 600; font-size: 16px; padding: 0 12px; justify-content: flex-start; }
.refpill .ref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spacer { flex: 1; }
.search { position: relative; width: min(340px, 30vw); }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 42px 0 40px; font: inherit; font-size: 14.5px; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input::placeholder { color: var(--faint); }
.search > svg { position: absolute; left: 14px; top: 12px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search .advb { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.search .advb:hover { background: var(--wash); color: var(--accent); }
.search .advb svg { width: 17px; height: 17px; }
.only-m { display: none; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sun), #ff8a3d 55%, var(--accent)); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 14px; flex: none; }

/* menu des ambiances */
.tpop { position: fixed; z-index: 45; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h) + 6px); right: var(--gr); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; animation: drop .22s var(--ease); }
.tpop button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; border-radius: 12px; padding: 9px 10px; cursor: pointer; text-align: left; font-weight: 600; font-size: 14.5px; transition: background-color .15s; }
.tpop button:hover { background: var(--wash); }
.tpop button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.tpop .sw { width: 30px; height: 30px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.tpop .sw.light { background: linear-gradient(135deg, #fbe9bd, #f4ecdd 60%, #e3e8f8); }
.tpop .sw.sepia { background: linear-gradient(135deg, #f2dfb3, #ecdfc8 60%, #d9c7a5); }
.tpop .sw.dark { background: linear-gradient(135deg, #2b2230, #14120f 60%, #262d4a); }
.tpop .sw.auto { background: linear-gradient(135deg, #f4ecdd 50%, #14120f 50%); }
.tpop small { display: block; font-weight: 400; font-size: 12px; color: var(--faint); }

/* ------------------------------------------------------------------ accueil */
.hero { position: relative; overflow: hidden; background: radial-gradient(110% 80% at 92% 0%, var(--sun-soft), transparent 50%), radial-gradient(70% 70% at 0% 100%, var(--hero-c), transparent 60%), linear-gradient(165deg, var(--hero-a), var(--hero-b)); }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -160px; top: -220px; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 50%, transparent), transparent 68%); pointer-events: none; animation: glow 9s ease-in-out infinite; }
@keyframes glow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: center; padding-block: 54px 60px; position: relative; z-index: 1; }
.hello { font-family: var(--f-ui); font-weight: 700; color: var(--aram); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-variation-settings: "opsz" 144; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 20px 0 28px; line-height: 1.6; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-cta .btn { height: 50px; padding: 0 24px; font-size: 15.5px; }
.hero-art { position: relative; display: grid; place-items: center; }
.votd { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); padding: 24px 26px 22px; position: relative; width: 100%; animation: drop .5s var(--ease) both; animation-delay: .15s; transform: rotate(.5deg); transition: transform .35s var(--ease); }
.votd:hover { transform: none; }
.votd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; background: var(--sun-soft); color: var(--sun-ink); }
.badge svg { width: 14px; height: 14px; }
.votd-fr { font-family: var(--f-read); font-size: 21px; line-height: 1.55; margin: 0; font-variation-settings: "opsz" 20; }
.votd-ref { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 14px; }
.votd-orig { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.votd-orig .og { font-size: 26px; line-height: 1.85; margin: 8px 0 0; }
.votd-orig .og.gr { font-size: 21px; }
.tip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.tip svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.sec-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.015em; margin: 0 0 6px; font-variation-settings: "opsz" 72; }
.sec-sub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.home-sec { padding-block: 52px 8px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border-radius: 26px; padding: 24px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }

.step-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.step:nth-child(2) .step-n { background: var(--sun); color: #3b2a00; }
.step:nth-child(3) .step-n { background: var(--greek); color: #fff; }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; margin: 6px 0 0; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); }

/* bibliothèque : Ancien Testament à gauche, Nouveau à droite */
.lib { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lib-col { background: var(--surface); border-radius: 30px; padding: 24px 24px 20px; box-shadow: var(--shadow); }
.lib-col.nt { --tc: var(--greek); }
.lib-col.at { --tc: var(--accent); }
.lib-h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.lib-h .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); color: var(--tc); font-size: 22px; line-height: 1; }
.lib-h b { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; display: block; }
.lib-h span { font-size: 13px; color: var(--muted); }
.lib-tabs { display: none; }
.grp { --c: var(--accent); margin-top: 18px; }
.grp-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.grp-h i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; flex: none; }
.grp-h b { font-family: var(--f-ui); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.grp-h span { font-size: 13px; color: var(--faint); }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.bk { text-align: left; border: 0; border-radius: 16px; padding: 9px 12px 8px 14px; cursor: pointer; display: grid; position: relative; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line); transition: background-color .18s, transform .18s var(--ease), box-shadow .18s; }
.bk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }

.bk[aria-current="true"] { box-shadow: 0 0 0 2px var(--c); }
.bk b { font-weight: 600; font-size: 14.5px; }
.bk span { font-size: 14px; color: color-mix(in srgb, var(--c) 70%, var(--muted)); line-height: 1.5; }
.bk span.he { text-align: left; direction: rtl; }
.bk small { font-size: 11.5px; color: var(--faint); }

/* ------------------------------------------------------------------ lecteur */
.reader { padding-block: 24px 80px; overflow-x: clip; }
.col { max-width: 720px; margin: 0 auto; transition: max-width .25s var(--ease); }
.col.wide { max-width: 1180px; }
.ch-head { --c: var(--accent); margin-bottom: 16px; position: relative; isolation: isolate; }
.ch-head::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 560px; height: 380px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 18%, transparent), color-mix(in srgb, var(--c) 6%, transparent) 55%, transparent); pointer-events: none; }
.ch-head::after { content: ""; position: absolute; z-index: -1; left: -60px; top: 40px; width: 320px; height: 220px; background: radial-gradient(closest-side, color-mix(in srgb, var(--sun) 16%, transparent), transparent); pointer-events: none; }
.ch-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: color-mix(in srgb, var(--c) 75%, var(--ink)); }
.ch-chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.ch-title { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.ch-title h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(38px, 5.4vw, 58px); line-height: 1; margin: 0; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.ch-title h1 span { color: var(--c); font-style: italic; font-weight: 400; }
.ch-orig { margin-left: auto; display: inline-flex; align-items: baseline; gap: 10px; color: var(--muted); }
.ch-orig span { font-size: 28px; }
.ch-orig small { font-size: 13px; color: var(--faint); }
.chstrip { display: flex; gap: 6px; overflow-x: auto; padding: 16px 28px 10px; margin: 0 -28px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.chstrip::-webkit-scrollbar { display: none; }
.chstrip a { flex: none; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: border-color .15s, color .15s, transform .2s var(--ease); }

.chstrip a[aria-current="true"] { background: var(--c, var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 40%, transparent); transform: scale(1.08); animation: pulse .5s var(--spring); }
@keyframes pulse { from { transform: scale(.85); } to { transform: scale(1.08); } }
.modes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modes .help { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-basis: 100%; }
.modes .help::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: none; }
.listen { height: 40px; padding: 0 16px 0 7px; gap: 9px; border: 0; background: linear-gradient(120deg, var(--sun-soft), var(--accent-soft)); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
.listen:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 6px 16px color-mix(in srgb, var(--accent) 22%, transparent); }
.listen .li { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.listen .li svg { width: 13px; height: 13px; }
.banner { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px 14px; border-radius: 16px; background: var(--aram-soft); margin: 16px 0 4px; }
.banner b { color: var(--aram); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--aram-soft); color: var(--aram); direction: ltr; display: inline-block; vertical-align: middle; margin-inline-end: 6px; font-family: var(--f-ui); }

/* mode lecture : un verset par ligne, numéro en marge, toucher ouvre la carte */
.text { font-family: var(--f-read); font-size: calc(20px * var(--scale)); line-height: 1.75; margin-top: 18px; font-variation-settings: "opsz" 18; }
.vs { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 .3rem; align-items: baseline; padding: 6px 10px 6px 0; margin: 0 -10px 0 0; border-radius: 12px; cursor: pointer; position: relative; transition: background-color .25s, box-shadow .25s, transform .25s var(--ease); -webkit-tap-highlight-color: transparent; }

.vs::after { content: ""; position: absolute; right: 10px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); transform: translateY(-50%) scale(0); opacity: 0; transition: transform .25s var(--ease), opacity .25s; }

.vs.open, .vs.hl { background: var(--sun-soft); }
.vs.open::after { display: none; }
.vs.reading { background: var(--sun-soft); box-shadow: 0 0 0 3px var(--sun-soft); }
.vnum { font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; color: var(--accent); text-align: right; padding-right: .6rem; font-variant-numeric: tabular-nums; opacity: .85; align-self: baseline; transform: translateY(-.15em); transition: color .2s, opacity .2s; }

.vs.open .vnum, .vs.sel .vnum { color: var(--sun-ink); }
:root[data-theme="dark"] .vs.open .vnum, :root:not([data-theme]).sys-dark .vs.open .vnum { color: var(--sun); }
.vt { min-width: 0; }
.text.poetry .vt { white-space: pre-line; }
#content.enter .vs, #content.enter .prow { animation: verse-in .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes verse-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.text.fresh .vs:first-child { animation: verse-in .55s var(--ease) both, beckon 1.6s ease-in-out 2 1s; }
@keyframes beckon { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sun) 40%, transparent); background: color-mix(in srgb, var(--sun-soft) 70%, transparent); } }
/* surlignages : la couleur choisie reste visible, verset ouvert, survolé ou en lecture */
.vs[data-hlc="sun"], .vs[data-hlc="sun"]:hover, .vs.open[data-hlc="sun"], .prow[data-hlc="sun"] { background: var(--hl-sun); }
.vs[data-hlc="rose"], .vs[data-hlc="rose"]:hover, .vs.open[data-hlc="rose"], .prow[data-hlc="rose"] { background: var(--hl-rose); }
.vs[data-hlc="sky"], .vs[data-hlc="sky"]:hover, .vs.open[data-hlc="sky"], .prow[data-hlc="sky"] { background: var(--hl-sky); }
.vs[data-hlc="mint"], .vs[data-hlc="mint"]:hover, .vs.open[data-hlc="mint"], .prow[data-hlc="mint"] { background: var(--hl-mint); }
.vs[data-hlc] { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--ink) 18%, transparent); padding-left: 6px; margin-left: -6px; }
.vs.open[data-hlc], .vs.hl[data-hlc] { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--ink) 18%, transparent), 0 0 0 3px color-mix(in srgb, var(--sun) 45%, transparent); }
.vs[data-hlc]:hover { filter: brightness(.97); }

/* carte du verset : le sens au plus près de l'original, puis le texte original */
.ocard { display: block; font-family: var(--f-ui); font-size: 16px; line-height: 1.5; text-indent: 0; margin: 8px 0 20px 2.6rem; animation-timing-function: var(--spring); padding: 18px 20px 16px; border-radius: 22px; position: relative; --lc: var(--accent); --ls: var(--accent-soft); background: linear-gradient(180deg, color-mix(in srgb, var(--ls) 45%, var(--surface)), var(--surface) 70%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lc) 14%, var(--line)), 0 10px 30px color-mix(in srgb, var(--lc) 8%, transparent); transform-origin: top left; animation: card-in .45s var(--ease); }
.ocard.closing { animation: card-out .25s var(--ease) forwards; pointer-events: none; }
.ocard.gr { --lc: var(--greek); --ls: var(--greek-soft); }
.ocard.ar { --lc: var(--aram); --ls: var(--aram-soft); }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes card-out { to { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.oc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oc-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: color-mix(in srgb, var(--lc) 80%, var(--ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lc) 30%, transparent); }
.oc-ref { font-size: 13px; color: var(--faint); font-weight: 600; }
.oc-actions { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.oc-lit { margin-top: 14px; padding: 12px 16px 13px 18px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lc) 16%, var(--line)); display: grid; gap: 5px; position: relative; }
.oc-lit::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--lc); }
.oc-lit:empty { display: none; }
.lit-k { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: color-mix(in srgb, var(--lc) 80%, var(--ink)); }
.lit { font-family: var(--f-read); font-size: calc(18.5px * var(--scale)); line-height: 1.8; margin: 0; font-variation-settings: "opsz" 18; }
.lw { cursor: pointer; border-radius: 5px; padding: 1px 2px; text-decoration: underline dotted color-mix(in srgb, var(--lc) 40%, transparent); text-underline-offset: 5px; transition: background-color .15s; animation: word-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lw:hover, .lw.lk { background: var(--ls); text-decoration-color: var(--lc); }
.lw.ar { color: var(--aram); }
.lw.none { color: var(--faint); text-decoration: none; cursor: default; }
.og { margin: 12px 0 2px; }
.og.he { font-size: calc(28px * var(--scale)); line-height: 1.9; text-align: right; }
.og.gr { font-size: calc(22px * var(--scale)); line-height: 1.8; }
.og .note { display: block; font-family: var(--f-ui); font-size: 12.5px; color: var(--faint); direction: ltr; margin-top: 6px; text-align: left; }
.oc-hint { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oc-close { margin-left: auto; color: var(--accent); }
.oc-hint svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.w { cursor: pointer; border-radius: 6px; padding: 0 2px; transition: background-color .15s, color .15s; }
.w:hover, .w.lk { background: var(--accent-soft); color: var(--accent); }
.w.on { background: var(--accent); color: var(--accent-ink); }
.og.gr .w:hover, .og.gr .w.lk { background: var(--greek-soft); color: var(--greek); }
.og.gr .w.on { background: var(--greek); color: #fff; }
.w.ar { color: var(--aram); }
.w.ar:hover { background: var(--aram-soft); color: var(--aram); }
.w.ar.on { background: var(--aram); color: #fff; }
.w sup { font-family: var(--f-ui); font-size: 10px; color: var(--faint); margin-inline-start: 1px; }
.w.saved, .iw.saved .o, .lw.saved { text-decoration: underline wavy #f0a500; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.pm { font-size: .55em; color: var(--faint); margin: 0 .3em; vertical-align: middle; }

/* mot à mot (tuiles) */
.il { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.il.he { direction: rtl; }
.iw { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 10px 7px; border-radius: 14px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); min-width: 3.2em; text-align: center; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; animation: drop .3s var(--ease) both; }

.iw.on { border-color: var(--accent); background: var(--accent-soft); }
.iw .o { font-size: calc(23px * var(--scale)); line-height: 1.5; }
.iw .o.gr { font-size: calc(19px * var(--scale)); }
.iw .t { font-size: 12px; color: var(--muted); font-style: italic; direction: ltr; }
.iw .g { font-family: var(--f-read); font-size: 13.5px; font-weight: 500; direction: ltr; max-width: 13em; line-height: 1.3; }
.iw .s { font-family: var(--f-mono); font-size: 10.5px; color: var(--accent); direction: ltr; }
.iw.ar { background: color-mix(in srgb, var(--aram) 6%, var(--surface)); }
.iw.ar .o, .iw.ar .s { color: var(--aram); }
.iw.grk .s { color: var(--greek); }
.iw.grk:hover, .iw.grk.on { border-color: var(--greek); }
.iw.grk.on { background: var(--greek-soft); }
.iw .k { font-size: 11px; color: var(--faint); direction: ltr; }

/* mode côte à côte */
.colhead { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 28px; padding: 12px 0 8px; border-bottom: 2px solid var(--line); margin-top: 10px; }
.colhead div { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.prow { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 28px; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; transition: background-color .3s; }
.prow .n { font-family: var(--f-ui); font-weight: 700; font-size: 12.5px; color: var(--accent); padding-top: 8px; font-variant-numeric: tabular-nums; text-decoration: none; text-align: right; padding-right: .6rem; }
.prow .fr { font-family: var(--f-read); font-size: calc(18px * var(--scale)); line-height: 1.75; margin: 0; min-width: 0; font-variation-settings: "opsz" 18; }
.prow.reading, .prow.hl { background: linear-gradient(90deg, var(--sun-soft), transparent 85%); border-radius: 14px; }
.gl { display: flex; flex-wrap: wrap; gap: 4px 8px; align-content: flex-start; min-width: 0; }
.gl.he { direction: rtl; }
.gw { display: inline-flex; flex-direction: column; align-items: center; gap: 0; padding: 2px 4px; border-radius: 8px; cursor: pointer; transition: background-color .15s, transform .2s var(--ease); max-width: 11em; }
.gw:hover, .gw.lk { background: var(--accent-soft); transform: translateY(-1px); }
.gw.on { background: var(--accent); color: var(--accent-ink); }
.gw .g { font-family: var(--f-ui); font-size: calc(11.5px * var(--scale)); color: var(--muted); direction: ltr; line-height: 1.25; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw.on .g { color: inherit; }
.gw .o { font-size: calc(22px * var(--scale)); line-height: 1.5; }
.gw .o.gr { font-size: calc(18px * var(--scale)); line-height: 1.5; }
.gw.ar .o { color: var(--aram); }
.gw.ar:hover { background: var(--aram-soft); }
.gw.grk:hover, .gw.grk.lk { background: var(--greek-soft); }
.gw.grk.on { background: var(--greek); color: #fff; }
.gw.saved .o { text-decoration: underline wavy #f0a500; text-underline-offset: 6px; }
.gl .note { flex-basis: 100%; font-size: 12.5px; color: var(--faint); direction: ltr; text-align: left; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pg { display: grid; gap: 2px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; }

.pg small { color: var(--faint); font-weight: 600; font-size: 12.5px; }
.pg b { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.pg.next { text-align: right; grid-column: 2; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.loader { display: grid; place-items: center; padding: 50px 0; color: var(--faint); gap: 12px; }
.loader i { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* sélection de plusieurs versets */
body.selecting .text .vs { cursor: copy; }
body.selecting .text .vs:not(.sel):hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.vs.sel { background: color-mix(in srgb, var(--accent) 15%, var(--bg)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, var(--bg)); }
.selhint { display: none; }
body.selecting .selhint { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 16px; background: var(--accent-soft); font-size: 14px; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); font-weight: 600; }
.selbar { position: fixed; z-index: 36; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(760px, calc(100% - 24px)); border-radius: 24px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); padding: 10px 10px 10px 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; animation: rise .3s var(--ease); }
body.player-open .selbar { bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
.sb-info { flex: 1; min-width: 150px; display: grid; }
.sb-info b { font-family: var(--f-display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-info span { font-size: 13px; opacity: .72; }
.sb-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.selbar .btn { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--bg) 22%, transparent); height: 38px; box-shadow: none; }
.selbar .btn:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); transform: none; }
.selbar .btn.go { background: var(--sun); color: #3b2a00; border-color: var(--sun); }
.hlc { display: flex; gap: 5px; padding: 0 4px; }
.hlc button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--bg) 35%, transparent); cursor: pointer; padding: 0; transition: transform .15s var(--ease); }
.hlc button:hover { transform: scale(1.18); }
.hlc button:disabled { opacity: .4; }
.hlc [data-hl="sun"] { background: #ffd54f; } .hlc [data-hl="rose"] { background: #ff9fb3; } .hlc [data-hl="sky"] { background: #8fb6ff; } .hlc [data-hl="mint"] { background: #7fd8ac; }
.hlc [data-hl="none"] { background: transparent; position: relative; }
.hlc [data-hl="none"]::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; background: currentColor; transform: rotate(-45deg); }
.ocard .hlc { padding: 0; }
.ocard .hlc button { border-color: var(--line-2); }
.ocard .hlc button[aria-pressed="true"] { border-color: var(--ink); transform: scale(1.1); }

/* ------------------------------------------------------------------ volet d'étude (droite / bas) */
.panel { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px); animation: slidein .32s var(--ease); }
@keyframes slidein { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
.pbackdrop { position: fixed; inset: 0; z-index: 39; background: rgba(20, 16, 8, .28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade .25s ease-out; }
@media (min-width: 761px) { .pbackdrop { display: none !important; } }
.panel.closing { animation: slideout .22s ease-in forwards; }
@keyframes slideout { to { transform: translateX(36px); opacity: 0; } }
.panel.dragging { transition: none; animation: none; }
@media (min-width: 1180px) { body.panel-open .shift { margin-right: 440px; } .shift { transition: margin-right .3s var(--ease); } }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--f-ui); font-size: 14px; font-weight: 700; color: var(--muted); margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.panel-body { overflow-y: auto; padding: 0 0 calc(30px + env(safe-area-inset-bottom, 0px)); flex: 1; overscroll-behavior: contain; scrollbar-width: thin; }
.st-hero { --lc: var(--accent); --ls: var(--accent-soft); margin: 16px 16px 0; padding: 28px 22px 22px; border-radius: 26px; text-align: center; background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--sun) 22%, transparent), transparent 70%), linear-gradient(180deg, var(--ls), var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lc) 20%, var(--line)), var(--shadow); animation: drop .35s var(--ease) both; }
.st-hero.ar { --lc: var(--aram); --ls: var(--aram-soft); }
.st-hero.grk { --lc: var(--greek); --ls: var(--greek-soft); }
.st-hero .chips, .st-hero .lemma { justify-content: center; }
.st-form { font-size: 58px; line-height: 1.25; color: var(--ink); }
.st-form.gr { font-size: 42px; }
.st-tr { color: var(--muted); font-style: italic; font-size: 16px; font-family: var(--f-read); }
.st-means { display: inline-block; margin-top: 16px; padding: 3px 12px; border-radius: 999px; background: var(--surface); font-size: 12.5px; color: color-mix(in srgb, var(--lc) 75%, var(--ink)); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.st-gloss { font-family: var(--f-display); font-size: 30px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; color: color-mix(in srgb, var(--lc) 70%, var(--ink)); margin-top: 8px; font-variation-settings: "opsz" 72; }
.box { margin: 14px 16px 0; padding: 18px 20px; background: var(--surface); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); animation: drop .4s var(--ease) both; }
.box:nth-child(2) { animation-delay: .05s; } .box:nth-child(3) { animation-delay: .1s; } .box:nth-child(4) { animation-delay: .15s; }
.box h3 { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.box h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.box p { margin: 0; font-family: var(--f-read); font-size: 16px; line-height: 1.65; }
.box p + p { margin-top: 8px; }
.morph { display: grid; grid-template-columns: auto minmax(0, 1fr); background: var(--wash); border-radius: 16px; padding: 4px 14px; }
.morph > div { display: contents; }
.morph > div > * { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.morph > div:first-child > * { border-top: 0; }
.morph .m-o { font-size: 24px; line-height: 1.2; padding-right: 16px; white-space: nowrap; }
.morph .m-o.gr { font-size: 19px; }
.morph .m-g { font-family: var(--f-read); font-weight: 600; display: block; }
.morph .m-a { color: var(--muted); font-size: 13px; display: block; }
.lemma { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lemma .he, .lemma .gr { font-size: 30px; }
.lemma .x { color: var(--muted); font-style: italic; }
.deriv { color: var(--muted); font-size: 14px !important; margin-top: 6px !important; font-family: var(--f-ui) !important; }
.xref { font-family: var(--f-mono); font-size: .9em; cursor: pointer; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.cta { display: flex; width: calc(100% - 32px); margin: 18px 16px 0; height: 50px; }
details.orig-en { margin: 18px 16px 0; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
details.orig-en summary { cursor: pointer; color: var(--muted); font-weight: 600; }
details.orig-en p { color: var(--muted); margin: 8px 0 0; }
.fine { font-size: 12.5px; color: var(--faint); line-height: 1.5; margin: 14px 16px 0; }
.res { list-style: none; margin: 10px 0 0; padding: 0; }
.res li { border-top: 1px solid var(--line); }
.res a { display: block; padding: 11px 18px; text-decoration: none; color: var(--ink); transition: background-color .15s; }
.res a:hover { background: var(--wash); }
.res .r { font-size: 13px; font-weight: 700; color: var(--accent); display: block; }
.res .t { font-family: var(--f-read); font-size: 15px; line-height: 1.55; }
.res mark { background: var(--hl-sun); color: inherit; border-radius: 3px; padding: 0 1px; }
.more { display: flex; width: calc(100% - 32px); margin: 12px 16px 0; }
.progress { height: 6px; background: var(--wash); border-radius: 6px; overflow: hidden; margin: 12px 16px 0; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--accent)); width: 0; transition: width .1s; }
.pass-fr .vnum, .pass-og .vn { font-family: var(--f-ui); font-size: .62em; font-weight: 700; color: var(--accent); vertical-align: .5em; margin: 0 .3em; display: inline; background: none; padding: 0; min-width: 0; height: auto; transform: none; opacity: 1; }
.pass-og.og { margin: 0; }
.pass-og .vn { direction: ltr; unicode-bidi: isolate; }

/* recherche ciblée */
.adv { margin: 16px; padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); display: grid; gap: 12px; }
.adv-in { position: relative; }
.adv-in svg { position: absolute; left: 15px; top: 16px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.adv-in input { width: 100%; height: 52px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 14px 0 44px; font: inherit; font-size: 17px; color: var(--ink); }
.adv-in input:focus, .acc-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.adv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.adv-row .seg button { height: 32px; font-size: 13.5px; }
.adv-row select { height: 38px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; padding: 0 10px; max-width: 100%; }
.adv-chk { justify-content: flex-start; font-weight: 500; cursor: pointer; }
.adv-chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.adv-chk small { color: var(--faint); font-weight: 400; }
.adv .btn.primary { height: 48px; width: 100%; }
.adv-sum { margin: 6px 16px 0; padding: 18px 20px; border-radius: 22px; background: linear-gradient(120deg, var(--sun-soft), var(--accent-soft)); display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.adv-sum b { font-family: var(--f-display); font-size: 42px; line-height: 1; letter-spacing: -.02em; }
.adv-sum span { color: var(--muted); }
#advres .chips { margin: 14px 16px 0; }

/* espace personnel */
.acc-hero { margin: 16px; padding: 22px; border-radius: 26px; background: radial-gradient(90% 80% at 100% 0%, var(--sun-soft), transparent 60%), var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; animation: drop .35s var(--ease) both; }
.acc-hero .av { width: 54px; height: 54px; font-size: 23px; }
.acc-hero .who { flex: 1; min-width: 0; display: grid; }
.acc-hero b { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.acc-hero .who span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.acc-in { display: block; }
.acc-in > b { font-size: 26px; }
.acc-in > p { color: var(--muted); margin: 6px 0 18px; line-height: 1.5; }
.acc-form { display: grid; gap: 12px; }
.acc-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.acc-form input { height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); }
.acc-form .btn { height: 50px; margin-top: 4px; }
.acc-form .err { color: var(--rose); font-size: 13.5px; font-weight: 600; margin: 0; min-height: 1em; }
.acc-form .note { font-size: 12.5px; color: var(--faint); margin: 0; line-height: 1.5; }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 16px; }
.acc-stats div { padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.acc-stats b { display: block; font-family: var(--f-display); font-size: 28px; line-height: 1.1; }
.acc-stats span { font-size: 12.5px; color: var(--muted); }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acc-list a, .acc-list button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 0; box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); cursor: pointer; font: inherit; transition: box-shadow .15s, transform .2s var(--ease); }

.acc-list .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.acc-list .o { font-size: 22px; line-height: 1.4; flex: none; }
.acc-list .tx { display: grid; min-width: 0; flex: 1; }
.acc-list .tx b { font-weight: 600; font-size: 14.5px; }
.acc-list .tx span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-list small { color: var(--faint); white-space: nowrap; font-size: 12.5px; }
.acc-empty { font-size: 14px; color: var(--faint); font-style: italic; margin: 0; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--greek); }
.sync.off i { background: var(--faint); }
.chip.savew { cursor: pointer; background: var(--surface); }
.chip.savew[aria-pressed="true"] { background: #f0a500; color: #3b2a00; }

/* ------------------------------------------------------------------ fenêtres : livres, réglages */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 8, .45); display: flex; justify-content: center; align-items: flex-start; padding: calc(env(safe-area-inset-top, 0px) + 40px) var(--gr) 20px var(--gl); animation: fade .2s ease-out; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-card { background: var(--bg); width: min(1040px, 100%); max-height: 100%; overflow: auto; border-radius: 30px; box-shadow: var(--shadow-lg); padding: 24px 26px 28px; animation: pop .38s var(--spring); scrollbar-width: none; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-card::-webkit-scrollbar { display: none; }
.sheet-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sheet-top h2 { font-family: var(--f-display); font-weight: 500; font-size: 30px; letter-spacing: -.01em; margin: 0; flex: 1; font-variation-settings: "opsz" 72; }
.chaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-top: 14px; }
.chaps button { height: 50px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; cursor: pointer; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; transition: border-color .15s, color .15s, transform .2s var(--ease); }

.chaps button[aria-current="true"] { background: var(--c, var(--accent)); color: #fff; border-color: transparent; }
.chaps button.read { box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--c, var(--accent)) 50%, transparent); }
.pop { position: fixed; z-index: 45; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h) + 6px); right: var(--gr); width: min(380px, calc(100% - 32px)); max-height: calc(100% - 90px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 14px; animation: drop .22s var(--ease); scrollbar-width: none; }
.pop h3 { font-family: var(--f-ui); margin: 0; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 600; }
.opt small { display: block; color: var(--faint); font-size: 12.5px; font-weight: 400; }
.opt input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.opt .seg button { height: 30px; padding: 0 11px; font-size: 13px; }

/* ------------------------------------------------------------------ lecteur audio */
.player { position: fixed; z-index: 35; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(680px, calc(100% - 24px)); border-radius: 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); overflow: hidden; animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.pl-prog { height: 4px; background: var(--wash); }
.pl-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), #ff8a3d, var(--accent)); border-radius: 0 4px 4px 0; transition: width .4s ease; }
.pl-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px 12px 18px; }
.pl-info { min-width: 0; display: grid; }
.pl-info b { font-family: var(--f-display); font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-info span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ctrl { display: flex; align-items: center; gap: 6px; }
.pl-ctrl .btn.icon { width: 40px; height: 40px; border: 0; background: transparent; box-shadow: none; }
.pl-ctrl .btn.icon:hover { background: var(--wash); transform: none; }
.pl-play { width: 54px !important; height: 54px !important; border-radius: 50% !important; background: linear-gradient(135deg, var(--sun), #ff8a3d 50%, var(--accent)) !important; color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, #ff8a3d 40%, transparent) !important; }
.pl-play svg { width: 22px !important; height: 22px !important; }
.pl-opts { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.pl-opts .seg { padding: 3px; }
.pl-opts .seg button { height: 30px; padding: 0 10px; font-size: 13px; }
.pl-rate { height: 34px; min-width: 46px; padding: 0 8px; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.pl-cont[aria-pressed="true"] { color: var(--accent); }
body.player-open .reader, body.player-open #home { padding-bottom: 150px; }

/* ------------------------------------------------------------------ divers */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px); animation: rise .3s var(--ease); }
body.player-open .toast { bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
.toast button { background: none; border: 0; color: var(--sun); font-weight: 700; cursor: pointer; padding: 0 0 0 6px; }
.missing { text-align: center; padding: 44px 22px 40px; margin-top: 22px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.missing b { display: block; font-family: var(--f-display); font-size: 24px; margin-bottom: 6px; }
.missing p { color: var(--muted); max-width: 46ch; margin: 0 auto 16px; }

/* ------------------------------------------------------------------ téléphone et tablette */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 32px 36px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .lib { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lib-tabs { display: inline-flex; margin: 0 0 12px; width: 100%; }
  .lib-tabs button { flex: 1; justify-content: center; }
  .lib[data-tab="AT"] .lib-col.nt, .lib[data-tab="NT"] .lib-col.at { display: none; }
}
@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  .bar-in { gap: 4px; }
  .brand img { width: 38px; height: 38px; }
  .brand b { display: none; }
  .refpill { margin-left: 2px; flex: 1; min-width: 0; justify-content: space-between; }
  .refpill .ref { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
  .refpill .btn.icon { width: 34px; }
  .search { display: none; position: absolute; left: var(--gl); right: var(--gr); top: calc(var(--bar-h) + 4px); width: auto; }
  .bar.searching .search { display: block; }
  .bar.searching .search input { height: 46px; box-shadow: var(--shadow-lg); }
  .only-m { display: inline-flex; }
  .refpill:not([hidden]) ~ #booksbtn { display: none; }
  .refpill:not([hidden]) ~ .spacer { display: none; }
  .tpop { right: 10px; }
  .ch-head { margin-inline: calc(-1 * var(--gl)); padding-inline: var(--gl); }
  .ch-head::before { right: -180px; width: 460px; }
  .chstrip { padding-inline: var(--gl); margin-inline: calc(-1 * var(--gl)); }
  .ch-orig { margin-left: 0; width: 100%; }
  .modes { justify-content: center; gap: 8px; }
  .modes .seg { width: 100%; }
  .modes .seg button { flex: 1; justify-content: center; }
  .modes .listen { flex: 1; justify-content: center; }
  .modes .help { display: none; }
  .text { font-size: calc(19px * var(--scale)); line-height: 1.72; }
  .vs { grid-template-columns: 1.9rem minmax(0, 1fr); padding: 7px 8px 7px 0; margin-right: -6px; }
  .vs::after { display: none; }
  .vnum { padding-right: .4rem; font-size: 11.5px; }
  .ocard { margin: 6px -6px 18px 0; padding: 14px 14px 12px; }
  .ocard::before { left: 22px; }
  .oc-actions { margin-left: 0; width: 100%; }
  .oc-actions .lbl { display: none; }
  .colhead { display: none; }
  .prow { grid-template-columns: 1.9rem minmax(0, 1fr); gap: 8px 10px; }
  .prow .gl { grid-column: 2; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
  .panel { top: auto; height: 86%; width: 100%; border-radius: 26px 26px 0 0; padding-right: 0; animation: rise2 .4s var(--spring); }
  .panel.closing { animation: sink .22s ease-in forwards; }
  .panel-head { touch-action: none; cursor: grab; }
  .panel::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); z-index: 2; }
  .panel-head { padding-top: 16px; }
  .sheet { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .sheet-card { padding: 18px 16px 22px; border-radius: 22px; }
  .pager { grid-template-columns: 1fr; }
  .pg.next { grid-column: 1; }
  .player { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 24px; }
  .pl-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info opts" "ctrl ctrl"; row-gap: 6px; padding: 10px 12px 12px 16px; }
  .pl-info { grid-area: info; } .pl-opts { grid-area: opts; } .pl-ctrl { grid-area: ctrl; justify-content: center; gap: 18px; }
  body.player-open .reader, body.player-open #home { padding-bottom: 190px; }
  .selbar { padding: 10px 12px 12px 16px; border-radius: 22px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  body.player-open .selbar { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .sb-acts { width: 100%; justify-content: space-between; }
  .selbar .lbl { display: none; }
  .selbar .btn.go .lbl { display: inline; }
  .acc-stats b { font-size: 22px; }
  .votd { padding: 18px 18px 16px; transform: none; }
}
@keyframes rise2 { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sink { to { transform: translateY(100%); opacity: .6; } }
@media (max-width: 400px) { .seg button svg { display: none; } .st-form { font-size: 46px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ lecture immersive */
body.zen .bar, body.zen .modes, body.zen .chstrip, body.zen .ch-chip, body.zen .ch-orig, body.zen .pager, body.zen .banner, body.zen .selhint { display: none !important; }
body.zen .reader { padding-top: 40px; }
body.zen .col { max-width: 680px; }
body.zen .text { font-size: calc(21.5px * var(--scale)); line-height: 1.8; }
body.zen .ch-title h1 { font-size: 30px; opacity: .7; }
body.zen .ch-head { margin-bottom: 26px; }
.zenx { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 14px); right: var(--gr); background: var(--surface); box-shadow: var(--shadow); opacity: .75; }
.zenx:hover { opacity: 1; }

/* notes sur un verset */
.oc-note { margin-top: 12px; display: grid; gap: 6px; }
.oc-note textarea { width: 100%; min-height: 80px; resize: vertical; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-family: var(--f-read); font-size: 15.5px; line-height: 1.55; padding: 10px 12px; transition: box-shadow .2s, border-color .2s; }
.oc-note textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.oc-note small { color: var(--faint); font-size: 12px; }
.vs.noted .vnum::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--aram); margin-left: 3px; vertical-align: top; }
.acc-list .note-t { font-family: var(--f-read); font-size: 14px; color: var(--ink); white-space: normal !important; line-height: 1.45; }

/* parcours de lecture */
.today { margin: 26px 0 0; padding: 20px 22px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; animation: drop .5s var(--ease) both; animation-delay: .1s; }
.today-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.today-top b { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.today-top .spacer { flex: 1; }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; padding: 5px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--sun-ink); }
.streak svg { width: 15px; height: 15px; }
.pbar { height: 8px; border-radius: 8px; background: var(--wash); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--sun), var(--pc, var(--accent))); transition: width .6s var(--ease); }
.plan-chs { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-ch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; transition: transform .2s var(--ease), box-shadow .2s; }

.plan-ch i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); color: #fff; font-size: 12px; }
.plan-ch.done { color: var(--muted); }
.plan-ch.done i { background: var(--greek); border-color: var(--greek); }
.plan-ch.done i::after { content: "✓"; }
.today p { margin: 0; color: var(--muted); font-size: 14.5px; }
.plans { display: grid; gap: 8px; }
.plan { --pc: var(--accent); display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; background: var(--bg); border: 0; box-shadow: 0 0 0 1px var(--line); cursor: pointer; font: inherit; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s; }

.plan .pc { width: 12px; height: 40px; border-radius: 6px; background: var(--pc); flex: none; }
.plan b { display: block; font-size: 15px; }
.plan span { display: block; font-size: 13px; color: var(--muted); }
.plan small { color: var(--faint); white-space: nowrap; font-size: 12.5px; }

/* à propos */
.about p { font-family: var(--f-ui); font-size: 14.5px; }
.about .logo { width: 120px; margin: 0 auto 10px; }

/* autres traductions dans la carte */
.oc-trans { margin-top: 12px; padding: 12px 16px 10px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.oc-trans .tr { margin: 0; font-family: var(--f-read); font-size: calc(16.5px * var(--scale)); line-height: 1.65; }
.oc-trans .tr b { display: block; font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.oc-trans .tr i { color: var(--faint); font-size: 14px; }

/* navigation mot à mot dans la fiche */
.wnav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.wnav .btn { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

/* progression par livre */
.prog { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.prog-col { display: grid; gap: 4px; }
.pb { display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: 6px; font-family: var(--f-ui); font-size: 11.5px; color: var(--muted); }
.pb i { display: block; height: 7px; border-radius: 7px; background: var(--wash); position: relative; overflow: hidden; }
.pb i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--sun), var(--accent)); border-radius: 7px; transition: width .6s var(--ease); }
.pb.full span { color: var(--greek); font-weight: 700; }

/* avantages du compte */
.perks ul { margin: 0; padding-left: 18px; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.perks li::marker { color: var(--sun); }

/* pastilles d'ambiance dans les réglages */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.swatches button { display: grid; justify-items: center; gap: 6px; border: 0; background: var(--wash); border-radius: 14px; padding: 8px 4px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); transition: background-color .15s, color .15s; }
.swatches button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.swatches .sw { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatches .sw.light { background: linear-gradient(135deg, #fbe9bd, #f4ecdd 60%, #e3e8f8); }
.swatches .sw.sepia { background: linear-gradient(135deg, #f2dfb3, #ecdfc8 60%, #d9c7a5); }
.swatches .sw.dark { background: linear-gradient(135deg, #2b2230, #14120f 60%, #262d4a); }
.swatches .sw.auto { background: linear-gradient(135deg, #f4ecdd 50%, #14120f 50%); }

/* téléphone : lecture confortable, gestes évidents */
@media (max-width: 760px) {
  .brand img { width: 36px; height: 36px; }
  .bar-in { gap: 2px; }
  .btn.icon { width: 38px; }
  .refpill .btn.icon { width: 32px; }
  .ch-title h1 { font-size: 36px; }
  .ch-orig span { font-size: 24px; }
  .chstrip a { min-width: 36px; height: 36px; }
  .modes { padding: 10px 0 8px; }
  .modes .btn, .modes .seg button { height: 38px; }
  .text { margin-top: 10px; }
  .vs { padding: 8px 6px 8px 0; }
  .ocard { padding: 14px 14px 12px; border-radius: 18px; }
  .oc-actions { gap: 6px; }
  .oc-actions .btn.sm { height: 34px; width: 34px; padding: 0; }
  .oc-actions .hlc { order: 10; width: 100%; justify-content: center; padding-top: 4px; }
  .oc-actions .hlc button { width: 28px; height: 28px; }
  .oc-lit { padding: 10px 12px 11px 14px; }
  .lit { font-size: calc(17.5px * var(--scale)); }
  .og.he { font-size: calc(25px * var(--scale)); }
  .og.gr { font-size: calc(20px * var(--scale)); }
  .oc-close { width: 100%; margin: 6px 0 0; justify-content: center; height: 36px; background: var(--wash); border-radius: 999px; }
  .pop { width: calc(100% - 20px); right: 10px; left: 10px; }
  .st-form { font-size: 48px; }
  .today { padding: 16px 16px 14px; border-radius: 22px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 16.5px; }
}

/* luminosité : un voile sombre réglable */
#dim { position: fixed; inset: 0; z-index: 70; background: #000; opacity: 0; pointer-events: none; transition: opacity .3s; }

/* écran paramètres et guides */
.st-hero.settings { text-align: left; padding: 22px 22px 18px; }
.st-hero.settings p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.box .opt { padding: 8px 0; border-top: 1px solid var(--line); }
.box .opt:first-of-type { border-top: 0; }
.box .swatches + .opt { border-top: 0; }
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 6px 0 2px; }
.steps-g { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 10px; }
.steps-g li { counter-increment: g; position: relative; padding-left: 40px; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.steps-g li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); font-weight: 700; font-size: 13px; font-family: var(--f-display); }
.steps-g li b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 1px; }
.guide p { font-family: var(--f-ui); font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.guide p + p { margin-top: 8px; }

/* accueil après création du compte, astuce d'installation */
.st-hero.welcome .logo { width: 110px; margin: 0 auto 8px; }
.st-hero.welcome p { margin: 8px 0 0; color: var(--muted); }
ol.mini { margin: 8px 0 0; padding-left: 20px; font-family: var(--f-ui); font-size: 14.5px; color: var(--ink); line-height: 1.6; display: grid; gap: 4px; }
ol.mini b { color: var(--accent); }
.install-tip { margin-top: 12px; }
.install-tip p { color: var(--muted); }

/* survols : seulement quand un pointeur survole vraiment (pas sur écran tactile) */
@media (hover: hover) {
  .btn:hover { border-color: var(--faint); transform: translateY(-1px); box-shadow: var(--shadow); }
  .vs:hover { background: color-mix(in srgb, var(--sun-soft) 55%, transparent); }
  .vs:hover::after { transform: translateY(-50%) scale(1); opacity: 1; }
  .vs:hover .vnum, .vs.open .vnum { opacity: 1; }
  .chstrip a:hover { color: var(--ink); border-color: var(--faint); transform: translateY(-2px); }
  .bk:hover { background: color-mix(in srgb, var(--c) 10%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, var(--line)), var(--shadow); transform: translateY(-2px); }
  .iw:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
  .pg:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .chaps button:hover { border-color: var(--c, var(--accent)); color: var(--c, var(--accent)); transform: translateY(-2px); }
  .plan-ch:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
  .plan:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--pc), var(--shadow); }
  .acc-list a:hover, .acc-list button:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow); transform: translateY(-1px); }
}

/* accueil : accès direct aux deux Testaments */
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.test { --tc: var(--accent); display: grid; gap: 2px; padding: 16px 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink); position: relative; overflow: hidden; transition: transform .3s var(--spring), box-shadow .3s; }
.test.nt { --tc: var(--greek); }
.test::before { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--tc) 14%, transparent); }
.test .ic { font-size: 26px; color: var(--tc); line-height: 1; margin-bottom: 6px; }
.test b { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.test span { font-size: 13px; color: var(--muted); }
@media (hover: hover) { .test:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.test:active { transform: scale(.98); }
.home-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 26px 0 0; font-size: 13.5px; }
.home-links button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.home-links button:hover { color: var(--accent); }
.bookfilter { position: relative; margin: 6px 0 14px; }
.bookfilter input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px 0 42px; font: inherit; font-size: 16px; color: var(--ink); }
.bookfilter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bookfilter svg { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.bk.off, .grp.off { display: none; }
details.gd { margin: 10px 16px 0; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 0 16px; }
details.gd summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 0; font-weight: 600; font-size: 14.5px; }
details.gd summary::-webkit-details-marker { display: none; }
details.gd summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .25s; }
details.gd[open] summary::after { transform: rotate(-135deg); }
details.gd .guide { padding: 0 0 14px; }
.hist-quick .acc-list { margin-top: 4px; }
@media (max-width: 760px) {
  .refpill:not([hidden]) ~ #themebtn { display: none; }
  .tests { gap: 8px; }
  .test { padding: 14px 14px; }
}
