/* tehilimapp.com — feuille commune de la vitrine (MODERNISATION_SITE.md, étapes 1 à 4).
   Couleurs : jetons du Socle (Socle/jetons/palette.json), Ciel en clair, Nuit et or
   en sombre ; sombre automatique (prefers-color-scheme) et bascule (data-theme).
   Les cartes de la famille (Sidour, Torah) restent nuit et or dans les deux thèmes. */
:root {
  --canvas: #F1F7FB; --surface: #FFFFFF; --muted: #E3EEF7; --pill: #D9E8F4;
  --text: #1C1C1E; --text-2: #4A4A50; --text-3: #5B606A;
  --accent: #1E40AF; --accent-hover: #17348F; --accent-bg: #DEE7F4; --on-accent: #FFFFFF;
  --border: #CDDFEC; --card-border: #4E7CB8; --success: #166534;
  --night: #142233; --night-2: #1B2C40; --night-3: #263C54; --gold: #D8AC63; --gold-hover: #E4BC7D; --cream: #F4ECDB; --cream-2: #C9BCA0;
  --shadow: 0 1px 2px rgba(20,34,51,.06), 0 10px 30px rgba(20,34,51,.08);
  --f-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-hebrew: "Frank Ruhl Libre", "Times New Roman", serif;
  --f-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r-md: 14px; --r-lg: 18px; --r-xl: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --canvas: #142233; --surface: #1B2C40; --muted: #1F3247; --pill: #263C54;
  --text: #F4ECDB; --text-2: #C9BCA0; --text-3: #B3AC9A;
  --accent: #D8AC63; --accent-hover: #E4BC7D; --accent-bg: #26374C; --on-accent: #1C1C1E;
  --border: #2C4058; --card-border: #D8AC63; --success: #4ADE80;
  --night: #0E1826; --night-2: #172638; --night-3: #22354B;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --canvas: #142233; --surface: #1B2C40; --muted: #1F3247; --pill: #263C54;
  --text: #F4ECDB; --text-2: #C9BCA0; --text-3: #B3AC9A;
  --accent: #D8AC63; --accent-hover: #E4BC7D; --accent-bg: #26374C; --on-accent: #1C1C1E;
  --border: #2C4058; --card-border: #D8AC63; --success: #4ADE80;
  --night: #0E1826; --night-2: #172638; --night-3: #22354B;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25);
  color-scheme: dark; }
[dir="rtl"] { --f-body: "Heebo", "Manrope", -apple-system, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.he { font-family: var(--f-hebrew); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
/* Masqué par découpe, pas rejeté hors de l'écran : à -9999 px, il élargissait la page en hébreu. */
.skip-link { position: absolute; top: 8px; inset-inline-start: 16px; z-index: 100; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── En-tête ── */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--canvas) 88%, transparent); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--accent); margin-inline-end: auto; }
.brand .he { font-size: 21px; font-weight: 700; line-height: 1; }
.brand .lat { font-family: var(--f-display); font-style: italic; font-size: 25px; font-weight: 500; line-height: 1; }
.apps { display: flex; gap: 2px; padding: 4px; background: var(--muted); border-radius: 999px; }
.apps a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--text-2); padding: 6px 14px; border-radius: 999px; min-height: 34px; display: inline-flex; align-items: center; }
.apps a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.apps a:hover { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; gap: 2px; }
.lang a { text-decoration: none; font-size: 12.5px; font-weight: 700; color: var(--text-3); min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; border-radius: 999px; }
.lang a[aria-current="true"] { color: var(--accent); background: var(--accent-bg); }
.lang a:hover { color: var(--accent); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; } :root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: block; } :root:not([data-theme="light"]) .theme-btn .moon { display: none; } }
.apps-mobile { display: none; position: relative; }
.apps-mobile summary { list-style: none; cursor: pointer; }
.apps-mobile summary::-webkit-details-marker { display: none; }
.apps-mobile .menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 200px; }
.apps-mobile .menu a { text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.apps-mobile .menu a:hover, .apps-mobile .menu a[aria-current="page"] { background: var(--muted); color: var(--accent); }
@media (max-width: 900px) { .apps { display: none; } .apps-mobile { display: block; } }
@media (max-width: 560px) { .lang, .top .btn-small { display: none; } .brand .lat { font-size: 22px; } }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 15px/1.2 var(--f-body); text-decoration: none; border-radius: 999px; padding: 12px 20px; min-height: 48px; cursor: pointer; border: 1px solid transparent; transition: background .15s ease, transform .15s ease, border-color .15s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-small { padding: 8px 16px; min-height: 40px; font-size: 13.5px; }
.btn-line { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-gold { background: var(--gold); color: #1C1C1E; }
.btn-gold:hover { background: var(--gold-hover); }

/* ── Héros ── */
.hero { position: relative; overflow: hidden; padding-block: 56px 72px; }
.hero::before { content: attr(data-watermark); position: absolute; font-family: var(--f-hebrew); font-weight: 700; font-size: clamp(200px, 32vw, 440px); line-height: 1; color: var(--accent); opacity: .045; top: 10px; inset-inline-start: -4%; transform: rotate(-5deg); pointer-events: none; white-space: nowrap; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.title-he { display: block; font-family: var(--f-hebrew); font-weight: 700; font-size: clamp(64px, 9vw, 112px); line-height: 1; color: var(--accent); }
.title-lat { display: block; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; color: var(--text); margin-top: 6px; }
[dir="rtl"] .title-lat { font-style: normal; }
.promise { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.4; font-weight: 600; margin-top: 26px; max-width: 30ch; }
.promise-sub { color: var(--text-2); margin-top: 10px; font-size: 17px; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.alt-store { font-size: 14px; color: var(--text-2); }
.alt-store a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.proofs li { font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.proofs .star { color: var(--accent); }
.dedicace { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); max-width: 46ch; }
.dedicace .he { font-size: 17px; }
.dedicace p { color: var(--text-2); font-family: var(--f-display); font-style: italic; font-size: 16px; }
[dir="rtl"] .dedicace p { font-family: var(--f-body); font-style: normal; font-size: 14px; }
.dedicace a { color: var(--accent); font-style: normal; font-family: var(--f-body); font-size: 13.5px; font-weight: 600; }
.azcara { margin-top: 8px; font-weight: 700; color: var(--accent); font-size: 14px; }
.hero-visual { display: grid; justify-items: center; }
@media (max-width: 860px) {
  .hero { padding-block: 32px 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-text { text-align: center; }
  .promise, .promise-sub, .dedicace { margin-inline: auto; }
  .cta, .proofs { justify-content: center; }
}

/* ── Téléphones : capture réelle ou écran dessiné ── */
.phone { width: min(300px, 100%); aspect-ratio: 1320 / 2868; background: #0B0F16; border-radius: 46px; padding: 9px; box-shadow: var(--shadow), 0 30px 60px -20px rgba(20,34,51,.4); position: relative; }
.phone > img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone .screen { width: 100%; height: 100%; border-radius: 38px; background: var(--canvas); overflow: hidden; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 11px; line-height: 1.35; }
.phone .screen::before { content: ""; position: absolute; top: 18px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%); background: #0B0F16; border-radius: 20px; }
.s-date { color: var(--text-3); font-size: 10.5px; font-weight: 600; }
.s-h { font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.05; }
.s-card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--card-border) 35%, transparent); border-radius: 14px; padding: 10px; }
.s-card .k { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.s-card .t { font-family: var(--f-display); font-weight: 600; font-size: 17px; margin: 2px 0 8px; }
.s-btn { background: var(--accent); color: var(--on-accent); border-radius: 999px; text-align: center; font-weight: 700; padding: 7px; font-size: 11px; }
.s-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); }
.s-row:first-child { border-top: 0; }
.s-ico { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font-size: 11px; flex: none; }
.chev { margin-inline-start: auto; color: var(--text-3); }
.check { margin-inline-start: auto; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; }
.check.on { background: var(--success); border-color: var(--success); }
.bar { height: 6px; background: var(--muted); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.chain-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.chain-grid i { aspect-ratio: 1; border-radius: 3px; background: var(--muted); }
.chain-grid i.r { background: var(--accent); }
.chain-grid i.t { background: color-mix(in srgb, var(--accent) 40%, var(--muted)); }

/* ── Bandes ── */
.band { padding-block: 88px; }
.band-alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; margin-top: 10px; }
.h2 em { font-style: italic; color: var(--accent); }
[dir="rtl"] .h2, [dir="rtl"] .panel h3, [dir="rtl"] .don h3, [dir="rtl"] .app-card h3, [dir="rtl"] .app-card .nm b { font-family: var(--f-hebrew); }
[dir="rtl"] .h2 em { font-style: normal; }
.lead { color: var(--text-2); font-size: 18px; margin-top: 14px; max-width: 60ch; }
.head { display: grid; gap: 4px; margin-bottom: 40px; }
@media (max-width: 640px) { .band { padding-block: 60px; } }

/* ── Onglets d'usage ── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab { font: 600 15px var(--f-body); color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.band-alt .tab { background: var(--canvas); }
.tab:hover { color: var(--accent); border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 56px; align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { font-family: var(--f-display); font-weight: 600; font-size: 32px; line-height: 1.1; }
.panel .txt { display: grid; gap: 16px; min-width: 0; }
.panel .txt > p { color: var(--text-2); font-size: 17px; max-width: 54ch; }
.panel .vis { display: grid; justify-items: center; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.more { font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
[dir="rtl"] .more .arr { transform: scaleX(-1); display: inline-block; }
@media (max-width: 860px) { .panel { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.today { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 20px; display: grid; gap: 2px; max-width: 440px; }
.band:not(.band-alt) .today { background: var(--surface); }
.today .k { font-size: 12.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.today .v { font-family: var(--f-display); font-weight: 600; font-size: 28px; }
.today .s { font-size: 13.5px; color: var(--text-2); }

/* ── Psaume 119 par prénom ── */
.names { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.name { font-family: var(--f-hebrew); font-size: 19px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 4px 16px; min-height: 44px; cursor: pointer; }
.band-alt .name { background: var(--canvas); }
.name[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); font-weight: 700; }
.name-input { font-family: var(--f-hebrew); font-size: 19px; direction: rtl; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 16px; min-height: 44px; width: 11em; }
.letters { direction: rtl; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; width: min(360px, 100%); }
.letters span { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--f-hebrew); font-size: 19px; border-radius: 9px; background: var(--muted); color: var(--text-3); transition: background .2s ease, color .2s ease; }
.letters span.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.seq { direction: rtl; font-family: var(--f-hebrew); font-size: 15px; color: var(--text-2); margin-top: 14px; text-align: center; min-height: 1.6em; }
.seq b { color: var(--accent); }

.cases { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; padding: 0; list-style: none; }
.cases a { text-decoration: none; font-size: 14px; font-weight: 600; background: var(--canvas); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; }
.band:not(.band-alt) .cases a, main.page .cases a { background: var(--surface); }
.cases a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Chaîne ── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; padding: 0; list-style: none; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.band-alt .step { background: var(--canvas); }
.step::before { counter-increment: s; content: counter(s); font-family: var(--f-display); font-weight: 600; font-size: 34px; color: var(--accent); line-height: 1; display: block; margin-bottom: 12px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15px; }
.chain-shots { display: flex; justify-content: center; gap: 24px; margin-top: 40px; }
.chain-shots .phone { width: min(240px, 30%); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } .chain-shots .phone { width: min(200px, 45%); } .chain-shots .phone:nth-child(3) { display: none; } }

/* ── Hommage ── */
.tribute { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.candle { background: #142233; border-radius: var(--r-xl); padding: 36px 20px 28px; text-align: center; color: #F4ECDB; }
.flame { width: 16px; height: 26px; margin: 0 auto; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 70%, #FFF3C9, #D8AC63 60%, #B97A2A); box-shadow: 0 0 30px 8px rgba(216,172,99,.35); animation: flamme 3s ease-in-out infinite; }
.wick { width: 2px; height: 6px; background: #3A2A1A; margin: 0 auto; }
.wax { width: 28px; height: 70px; margin: 0 auto 18px; background: linear-gradient(90deg, #E9DFC8, #FFF8E8 45%, #D9CDB0); border-radius: 4px 4px 2px 2px; }
.candle .he { font-size: 22px; line-height: 1.3; }
.candle .lat { font-family: var(--f-display); font-style: italic; font-size: 19px; color: #C9BCA0; margin-top: 4px; }
@keyframes flamme { 50% { transform: scale(1.06, .94) translateY(1px); } }
.tribute .txt { display: grid; gap: 16px; }
.tribute .txt > p { color: var(--text-2); font-size: 17px; max-width: 62ch; }
.quote { border-inline-start: 3px solid var(--accent); padding-block: 4px; padding-inline-start: 18px; }
.quote .he { font-size: 21px; direction: rtl; }
.quote p { font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--text-2); }
.don { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px; display: grid; gap: 12px; }
.don h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.don p { color: var(--text-2); font-size: 15px; }
.don .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .tribute { grid-template-columns: minmax(0, 1fr); gap: 28px; } .candle { max-width: 260px; margin: 0 auto; width: 100%; } }

/* ── Famille : nuit et or dans les deux thèmes ── */
.family { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.app-card { background: #142233; color: #F4ECDB; border-radius: var(--r-xl); padding: 30px; display: grid; gap: 16px; align-content: start; border: 1px solid rgba(216,172,99,.25); }
.app-card .id { display: flex; gap: 14px; align-items: center; }
.app-card .id img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-card .nm b { display: block; font-family: var(--f-display); font-size: 27px; font-weight: 600; line-height: 1.05; }
.app-card .nm span { font-size: 13.5px; color: #C9BCA0; }
.app-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.25; }
.app-card ul { padding: 0; list-style: none; display: grid; gap: 8px; color: #C9BCA0; font-size: 15px; }
.app-card li { display: flex; gap: 10px; }
.app-card li::before { content: "✦"; color: #D8AC63; font-size: 11px; transform: translateY(4px); }
.app-card .row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 6px; }
.app-card .store-link { color: #F4ECDB; font-size: 14px; font-weight: 600; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.app-card :focus-visible { outline-color: #D8AC63; }
@media (max-width: 860px) { .family { grid-template-columns: minmax(0, 1fr); } }

/* ── FAQ ── */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.band-alt .faq details { background: var(--canvas); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 20px; font-weight: 700; display: flex; gap: 12px; align-items: center; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; font-size: 22px; font-weight: 500; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--text-2); max-width: 70ch; }
.faq details > div a { color: var(--accent); font-weight: 600; }

/* ── Téléchargement ── */
.dl { text-align: center; }
.dl .h2 { margin-inline: auto; max-width: 20ch; }
.dl .lead { margin-inline: auto; }
.dl .cta { justify-content: center; }

/* ── Pages de contenu ── */
main.page { padding-block: 32px 80px; }
.crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--text-3); }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.page h1 .he { display: block; font-size: .7em; color: var(--accent); margin-top: 6px; }
.page .intro { font-size: 19px; color: var(--text-2); margin-top: 16px; max-width: 62ch; }
.page h2 { font-family: var(--f-display); font-weight: 600; font-size: 30px; line-height: 1.15; margin-top: 48px; margin-bottom: 14px; }
.page .prose { display: grid; gap: 14px; max-width: 68ch; }
.page .prose p, .page .prose li { color: var(--text-2); font-size: 17px; }
.page .prose ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.page .prose a { color: var(--accent); font-weight: 600; }
.psalms { list-style: none; padding: 0; display: grid; gap: 10px; }
.psalm-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 20px; display: grid; gap: 6px; text-decoration: none; }
a.psalm-item:hover { border-color: var(--accent); }
.psalm-item .n { font-weight: 700; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.psalm-item .n .he { color: var(--accent); font-size: 18px; }
.psalm-item .n .go { margin-inline-start: auto; color: var(--accent); font-size: 14px; }
.verse-he { font-family: var(--f-hebrew); direction: rtl; text-align: right; font-size: 21px; line-height: 1.7; color: var(--text); }
.verse-fr { color: var(--text-2); font-size: 15.5px; }
.verse-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; display: grid; gap: 12px; }
.verse-box .verse-he { font-size: 26px; }
.verse-box .verse-fr { font-size: 17px; }
.verse-box .src { font-size: 12.5px; color: var(--text-3); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin-top: 18px; }
.facts li { font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.app-cta { margin-top: 40px; background: #142233; color: #F4ECDB; border-radius: var(--r-xl); padding: 26px 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.app-cta img { width: 56px; height: 56px; border-radius: 14px; }
.app-cta b { display: block; font-family: var(--f-display); font-size: 23px; font-weight: 600; }
.app-cta span { color: #C9BCA0; font-size: 14.5px; }
.app-cta .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.app-cta .btn-line { background: transparent; color: #F4ECDB; border-color: rgba(244,236,219,.35); }
.app-cta .btn-line:hover { border-color: #D8AC63; color: #D8AC63; }
.app-cta :focus-visible { outline-color: #D8AC63; }
@media (max-width: 760px) { .app-cta { grid-template-columns: auto minmax(0, 1fr); } .app-cta .btns { grid-column: 1 / -1; } }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.pager a { text-decoration: none; font-weight: 700; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.grid150 { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.grid150 a { display: grid; place-items: center; gap: 0; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 4px; min-height: 60px; font-weight: 700; }
.grid150 a .he { font-size: 13px; color: var(--text-3); font-weight: 500; }
.grid150 a:hover { border-color: var(--accent); color: var(--accent); }
.books { display: grid; gap: 28px; }
.books h2 { margin-top: 0; }
.cycle { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.cycle th, .cycle td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cycle th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.cycle tr.now td { background: var(--accent-bg); font-weight: 700; }
.cycle a { color: var(--accent); text-decoration: none; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.case-grid a { display: grid; gap: 4px; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; height: 100%; }
.case-grid a:hover { border-color: var(--accent); }
.case-grid b { font-size: 17px; }
.case-grid span { color: var(--text-2); font-size: 14px; }
.case-grid small { color: var(--accent); font-weight: 700; font-size: 13px; }

/* ── Torah ── */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shots figure { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; }
.shots .phone { width: 100%; max-width: 240px; }
.shots figcaption b { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 600; }
[dir="rtl"] .shots figcaption b { font-family: var(--f-hebrew); }
.shots figcaption span { font-size: 14px; color: var(--text-2); }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature-list article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 8px; align-content: start; }
.band-alt .feature-list article { background: var(--canvas); }
.feature-list h3 { font-size: 17px; font-weight: 700; }
.feature-list p { color: var(--text-2); font-size: 15px; }

/* ── Pied ── */
.foot { background: #0E1826; color: #C9BCA0; padding-block: 56px 32px; font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h2 { color: #F4ECDB; font-family: var(--f-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; font-weight: 700; }
[dir="rtl"] .foot h2 { letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.foot a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; gap: 10px; }
.foot a:hover { color: #D8AC63; }
.foot .fam img { width: 26px; height: 26px; border-radius: 7px; }
.foot .bot { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(244,236,219,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
.foot .bot .he { color: #F4ECDB; }
.foot :focus-visible { outline-color: #D8AC63; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .flame { animation: none; }
  *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
[dir="ltr"] .quote .he { text-align: left; }
