/* =====================================================================
   NŪR AL-ATHAR — Studio de Coran
   En-tête de sourate, barre d’outils, lecture, mot à mot, muṣḥaf,
   tiroir de verset, questions de réflexion, accueil, lettres animées.
   Les couleurs du tajwīd viennent de tajwid.css (.tj-*).
   ===================================================================== */
.st-page { --st-scale: 1; --st-ar: 'Amiri Quran', 'Amiri', 'Scheherazade New', var(--font-arabic), serif;
  --st-ink: var(--c-ink); --st-card: var(--c-paper); --st-soft: var(--c-gold-soft); --st-line: var(--c-border-soft); --st-hl: color-mix(in srgb, var(--c-gold) 22%, transparent);
  display: grid; gap: 1.2rem; }

/* ---------- En-tête de sourate ---------- */
.st-surah-head { position: relative; overflow: hidden; text-align: center; padding: clamp(1.4rem, 4vw, 2.6rem) 1rem 1.6rem; border-radius: 28px; color: #fff;
  background: radial-gradient(90% 120% at 50% -20%, color-mix(in srgb, var(--c-gold-on-dark) 30%, transparent), transparent 60%), linear-gradient(160deg, var(--c-nav), #04101F 85%); }
.st-surah-glow { position: absolute; inset: auto 15% -60% 15%; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 155, 94, .22), transparent); pointer-events: none; }
.st-back { position: absolute; top: 1rem; inset-inline-start: 1rem; display: inline-flex; gap: .4rem; align-items: center; font-size: .85rem; color: rgba(255, 255, 255, .8); text-decoration: none; padding: .35rem .7rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); }
.st-back:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.st-surah-title { position: relative; display: grid; gap: .3rem; justify-items: center; }
.st-surah-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--c-gold-on-dark); color: var(--c-gold-on-dark); font-family: var(--font-heading); font-size: 1.3rem; }
.st-surah-title h1 { margin: .2rem 0 0; font-family: var(--st-ar); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.5; color: #fff; }
.st-surah-name { margin: 0; color: rgba(255, 255, 255, .85); font-family: var(--font-heading); font-size: 1.2rem; }
.st-surah-meta { margin: .3rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.st-surah-meta > * { font-size: .8rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); text-decoration: none; }
.st-surah-meta a { background: color-mix(in srgb, var(--c-gold-on-dark) 30%, transparent); color: #fff; }
.st-basmala { position: relative; margin: 1.2rem 0 0; font-family: var(--st-ar); font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--c-gold-on-dark); }

/* ---------- Barre d’outils ---------- */
.st-toolbar { position: sticky; top: calc(var(--nx-header-h, 0px) + .4rem); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .55rem; border-radius: 18px;
  background: color-mix(in srgb, var(--c-paper) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--st-line); box-shadow: 0 14px 30px -22px rgba(5, 15, 30, .45); }
.st-seg { display: inline-flex; gap: .2rem; padding: .2rem; border-radius: 14px; background: var(--st-soft); }
.st-seg button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; padding: .45rem .8rem; border-radius: 11px; font-weight: 600; font-size: .88rem; color: var(--c-muted); }
.st-seg button.active { background: var(--c-paper); color: var(--c-green-text); box-shadow: 0 4px 12px -6px rgba(5, 15, 30, .35); }
.st-player { display: flex; align-items: center; gap: .5rem; flex: 1 1 260px; min-width: 0; }
.st-play { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-green); color: #fff; font-size: 1.35rem; box-shadow: 0 8px 18px -10px var(--c-green); }
.st-play.on { background: var(--c-gold); }
.st-select { display: flex; align-items: center; gap: .35rem; min-width: 0; flex: 1 1 auto; padding: 0 .6rem; border-radius: 12px; border: 1px solid var(--st-line); background: var(--c-paper); }
.st-select select { border: 0; background: transparent; padding: .5rem 0; min-width: 0; width: 100%; color: inherit; }
.st-now { font-size: .8rem; color: var(--c-gold-text); white-space: nowrap; }
.st-options { position: relative; }
.st-options summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 12px; border: 1px solid var(--st-line); font-weight: 600; font-size: .88rem; }
.st-options summary::-webkit-details-marker { display: none; }
.st-options-panel { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 30; width: min(300px, 86vw); display: grid; gap: .5rem; padding: .9rem; border-radius: 16px; background: var(--c-paper); border: 1px solid var(--st-line); box-shadow: 0 24px 50px -20px rgba(5, 15, 30, .5); }
.st-switch { display: flex; align-items: center; gap: .55rem; font-size: .9rem; cursor: pointer; }
.st-switch input { width: 1.05rem; height: 1.05rem; accent-color: var(--c-green); }
.st-opt-row { display: flex; align-items: center; gap: .4rem; font-size: .88rem; }
.st-opt-row span { flex: 1 1 auto; }
.st-opt-row button, .st-opt-row select { border: 1px solid var(--st-line); background: var(--c-paper); border-radius: 9px; padding: .25rem .55rem; color: inherit; }

/* ---------- Options d’affichage ---------- */
.st-page .st-tj, .st-page .st-translit, .st-page .st-tr-fr, .st-page .st-tr-en { display: none; }
.st-page.opt-tajweed .st-tj { display: inline; }
.st-page.opt-tajweed .st-plain { display: none; }
.st-page.opt-translit .st-translit { display: block; }
.st-page.opt-fr .st-tr-fr, .st-page.opt-en .st-tr-en { display: block; }
.st-page:not(.opt-translit) .st-wtr { display: none; }

/* ---------- Lecture ---------- */
.st-view { display: grid; gap: .8rem; }
.st-verse { position: relative; padding: 1.1rem 1.2rem 1rem; border-radius: 20px; background: var(--st-card); border: 1px solid var(--st-line); transition: box-shadow .3s, border-color .3s, background .3s; scroll-margin-top: 140px; }
.st-verse.is-playing { border-color: var(--c-gold); background: linear-gradient(var(--st-hl), var(--st-hl)), var(--st-card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-gold) 18%, transparent); }
.st-verse-tools { display: flex; align-items: center; gap: .35rem; margin-bottom: .3rem; }
.st-verse-tools button { border: 0; background: transparent; color: var(--c-muted); font-size: 1.15rem; padding: .15rem .3rem; border-radius: 8px; }
.st-verse-tools button:hover { color: var(--c-green-text); background: var(--st-soft); }
.st-ayah-n { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 .3rem; border-radius: 50%; border: 1.5px solid var(--c-gold); color: var(--c-gold-text); font-size: .8rem; font-weight: 700; }
.st-ar { margin: 0; font-family: var(--st-ar); font-size: calc(1.9rem * var(--st-scale)); line-height: 2.25; text-align: right; color: var(--st-ink); word-spacing: .08em; }
.st-end { font-size: .75em; color: var(--c-gold-text); }
.st-translit { margin: .5rem 0 0; font-style: italic; color: var(--c-gold-text); font-size: calc(.98rem * var(--st-scale)); line-height: 1.6; }
.st-tr { margin: .45rem 0 0; color: var(--c-ink); font-size: calc(1rem * var(--st-scale)); line-height: 1.65; }
.st-tr-en { color: var(--c-muted); }

/* ---------- Mot à mot ---------- */
.st-note { margin: 0; padding: .7rem 1rem; border-radius: 14px; background: var(--st-soft); color: var(--c-ink); font-size: .9rem; }
.st-wgrid { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-start; }
.st-word { display: grid; justify-items: center; gap: .15rem; min-width: 84px; padding: .6rem .7rem; border-radius: 14px; border: 1px solid var(--st-line); background: var(--c-paper); color: inherit; transition: transform .15s, border-color .2s, box-shadow .2s; }
.st-word:hover { transform: translateY(-2px); border-color: var(--c-gold); }
.st-word.is-word { border-color: var(--c-green); box-shadow: 0 0 0 3px var(--c-green-soft); }
.st-word b { font-family: var(--st-ar); font-weight: 400; font-size: calc(1.7rem * var(--st-scale)); line-height: 1.8; }
.st-wtr { font-style: italic; color: var(--c-gold-text); font-size: .78rem; }
.st-wen { color: var(--c-ink); font-size: .78rem; text-align: center; max-width: 140px; line-height: 1.3; }
.st-wroot { font-family: var(--font-arabic); color: var(--c-muted); font-size: .8rem; letter-spacing: .25em; }

/* ---------- Muṣḥaf ---------- */
.st-mushaf { justify-items: center; }
.st-page-sheet { width: min(100%, 760px); display: grid; gap: .4rem; justify-items: center; }
.st-page-frame { width: 100%; padding: clamp(1rem, 3vw, 2.2rem) clamp(.8rem, 3vw, 2.4rem); border-radius: 10px; background: #FBF7EE; color: #1B1B1B;
  border: 3px double var(--c-gold); box-shadow: inset 0 0 0 6px #FBF7EE, inset 0 0 0 7px color-mix(in srgb, var(--c-gold) 55%, transparent), 0 24px 50px -30px rgba(5, 15, 30, .55); }
.st-line { display: block; font-family: var(--st-ar); font-size: calc(1.75rem * var(--st-scale)); line-height: 2.15; text-align: justify; text-align-last: justify; }
.st-page-frame.is-opening .st-line { text-align: center; text-align-last: center; }
.st-mw { cursor: pointer; border-radius: 6px; transition: background .2s; }
.st-mw:hover { background: rgba(200, 155, 94, .16); }
.st-mw.is-playing { background: rgba(200, 155, 94, .28); }
.st-mend { border: 0; background: transparent; color: #8A6A3A; font-family: var(--st-ar); font-size: .8em; padding: 0 .1em; cursor: pointer; }
.st-mend.is-playing { color: #B27A2D; }
.st-page-n { font-size: .8rem; color: var(--c-muted); }

/* ---------- Légende ---------- */
.st-legend { border-radius: 16px; border: 1px solid var(--st-line); background: var(--c-paper); padding: .7rem 1rem; }
.st-legend summary { cursor: pointer; font-weight: 600; }
.st-legend ul { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .35rem .9rem; }
.st-legend li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.st-legend i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 4px; }

/* ---------- Questions de réflexion ---------- */
.st-reflect { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: 24px; background: linear-gradient(170deg, var(--c-gold-soft), var(--c-paper) 40%); border: 1px solid var(--st-line); scroll-margin-top: 120px; }
.st-reflect-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.st-reflect-head h2 { margin: 0; font-family: var(--font-heading); }
.st-reflect-head p { margin: .1rem 0 0; color: var(--c-muted); }
.st-reflect-head > div { flex: 1 1 260px; }
.st-reflect-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--c-nav); color: var(--c-gold-on-dark); font-size: 1.4rem; }
.st-score { padding: .4rem .9rem; border-radius: 999px; background: var(--c-green); color: #fff; font-weight: 700; font-size: .88rem; }
.st-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.st-q { padding: 1rem 1.1rem; border-radius: 18px; background: var(--c-paper); border: 1px solid var(--st-line); display: grid; gap: .65rem; }
.st-q-head { display: flex; align-items: flex-start; gap: .6rem; flex-wrap: wrap; }
.st-q-head p { flex: 1 1 260px; margin: 0; font-weight: 600; line-height: 1.5; }
.st-q-n { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-gold-soft); color: var(--c-gold-text); font-weight: 700; font-size: .8rem; }
.st-q-ref { border: 1px solid var(--st-line); background: transparent; border-radius: 999px; padding: .1rem .55rem; font-size: .75rem; color: var(--c-green-text); }
.st-q-choices { display: grid; gap: .4rem; }
.st-q-tf { grid-template-columns: 1fr 1fr; }
.st-q-choices button { display: flex; align-items: center; gap: .6rem; text-align: start; padding: .6rem .8rem; border-radius: 12px; border: 1px solid var(--st-line); background: var(--c-paper); color: inherit; transition: border-color .2s, background .2s; }
.st-q-choices button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--st-soft); font-weight: 700; font-size: .78rem; flex: 0 0 auto; }
.st-q-choices button:hover { border-color: var(--c-gold); }
.st-q-choices button.is-ok { border-color: var(--c-green); background: var(--c-green-soft); }
.st-q-choices button.is-ko { border-color: var(--c-danger, #9E2B2B); background: color-mix(in srgb, var(--c-danger, #9E2B2B) 10%, transparent); }
.st-q-open { width: 100%; border-radius: 12px; border: 1px solid var(--st-line); padding: .6rem .8rem; background: var(--c-paper); color: inherit; resize: vertical; }
.st-q-reveal { justify-self: start; border: 0; background: transparent; color: var(--c-green-text); font-weight: 600; padding: .2rem 0; }
.st-q-answer { display: grid; gap: .45rem; padding: .8rem 1rem; border-radius: 14px; background: var(--st-soft); }
.st-q-answer p { margin: 0; line-height: 1.6; }
.st-q-verdict.ok { color: var(--c-green-text); font-weight: 700; }
.st-q-verdict.ko { color: var(--c-danger, #9E2B2B); font-weight: 700; }
.st-q-model { font-weight: 600; }
.st-q-basis { margin: .2rem 0 0; padding-inline-start: .8rem; border-inline-start: 3px solid var(--c-gold); }
.st-q-basis blockquote { margin: 0; font-size: .92rem; }
.st-q-basis blockquote[lang="ar"] { font-family: var(--font-arabic); font-size: 1.1rem; line-height: 1.9; }
.st-q-basis figcaption { font-size: .78rem; color: var(--c-muted); }

/* ---------- Navigation et crédits ---------- */
.st-pager { display: flex; justify-content: space-between; gap: .6rem; }
.st-pager a { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 16px; border: 1px solid var(--st-line); background: var(--c-paper); color: inherit; text-decoration: none; }
.st-pager a span { display: grid; }
.st-pager a small { color: var(--c-gold-text); font-weight: 700; }
.st-pager .next { text-align: end; margin-inline-start: auto; }
.st-credits { margin: 0; font-size: .78rem; color: var(--c-muted); }

/* ---------- Tiroir de verset ---------- */
.st-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(4, 12, 24, .45); backdrop-filter: blur(2px); }
.st-drawer { position: fixed; z-index: 1050; inset: 0 0 0 auto; width: min(560px, 100vw); background: var(--c-paper); box-shadow: -30px 0 60px -30px rgba(5, 15, 30, .6); overflow-y: auto; animation: stIn .3s ease both; }
[dir="rtl"] .st-drawer { inset: 0 auto 0 0; }
.st-drawer-in { padding: 1.2rem 1.4rem 2rem; display: grid; gap: .6rem; }
.st-drawer header { display: flex; align-items: center; justify-content: space-between; }
.st-drawer header h2 { margin: 0; font-family: var(--font-heading); }
.st-drawer header button { border: 0; background: var(--st-soft); width: 38px; height: 38px; border-radius: 50%; }
.st-drawer h3 { margin: .6rem 0 0; font-size: 1rem; color: var(--c-gold-text); }
.st-d-ar { font-size: 1.9rem; }
.st-page .st-drawer .st-translit { display: block; }
.st-d-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.st-d-words { display: flex; flex-wrap: wrap; gap: .4rem; }
.st-d-words .st-word { min-width: 74px; }
.st-d-words .st-wtr { display: block; }
.st-d-tafsir { font-size: .95rem; line-height: 1.7; }
.st-d-tafsir[lang="ar"] { font-family: var(--font-arabic); font-size: 1.15rem; line-height: 2; }
body.st-locked { overflow: hidden; }
@keyframes stIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Mode nuit ---------- */
html.st-night body { background: #050B14; }
html.st-night .st-page { --st-ink: #F3EBDD; --st-card: #0B1626; --st-soft: rgba(200, 155, 94, .12); --st-line: rgba(255, 255, 255, .08); --st-hl: rgba(200, 155, 94, .14); color: #E8E2D6; }
html.st-night .st-page .st-toolbar, html.st-night .st-page .st-options-panel, html.st-night .st-page .st-word, html.st-night .st-page .st-q, html.st-night .st-page .st-legend,
html.st-night .st-page .st-pager a, html.st-night .st-page .st-q-choices button, html.st-night .st-page .st-select, html.st-night .st-page .st-q-open, html.st-night .st-page .st-drawer { background: #0B1626; color: #E8E2D6; }
html.st-night .st-page .st-reflect { background: linear-gradient(170deg, rgba(200, 155, 94, .1), #0B1626 40%); }
html.st-night .st-page .st-tr, html.st-night .st-page .st-wen { color: #D9D2C4; }
html.st-night .st-page .st-page-frame { background: #101C2E; color: #F3EBDD; box-shadow: inset 0 0 0 6px #101C2E, inset 0 0 0 7px rgba(200, 155, 94, .5), 0 24px 50px -30px #000; }
html.st-night .st-page .st-tj .tj { filter: brightness(1.45) saturate(1.1); }
html.st-night .st-page .st-seg button.active { background: #13233A; color: var(--c-gold-on-dark); }
html.st-night .st-page .st-seg button { color: #B9C2D0; }
html.st-night .st-page h1, html.st-night .st-page h2, html.st-night .st-page h3, html.st-night .st-page strong, html.st-night .st-page .st-q-head p { color: #F3EBDD; }
html.st-night .st-page .st-reflect-head p, html.st-night .st-page .st-credits, html.st-night .st-page .st-page-n { color: #9AA6B8; }
html.st-night .st-page select, html.st-night .st-page select option { background: #0B1626; color: #E8E2D6; }
html.st-night .st-page .st-options summary, html.st-night .st-page .st-opt-row button { color: #E8E2D6; background: transparent; }
html.st-night .st-page .st-q-answer, html.st-night .st-page .st-note { color: #E8E2D6; }

/* ---------- Petits écrans ---------- */
@media (max-width: 700px) {
  .st-toolbar { top: .3rem; border-radius: 14px; }
  .st-seg { width: 100%; }
  .st-seg button { flex: 1 1 0; justify-content: center; padding: .45rem .3rem; font-size: .8rem; }
  .st-seg button i { display: none; }
  .st-now { display: none; }
  .st-verse { padding: .9rem .85rem; border-radius: 16px; }
  .st-ar { font-size: calc(1.6rem * var(--st-scale)); line-height: 2.1; }
  .st-line { font-size: calc(1.3rem * var(--st-scale)); }
  .st-word { min-width: 70px; padding: .5rem; }
  .st-back { position: static; margin-bottom: .6rem; }
  .st-q-tf { grid-template-columns: 1fr; }
}

/* =====================================================================
   Accueil du Studio
   ===================================================================== */
.sth-hero { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(1.8rem, 5vw, 3.6rem) clamp(1.2rem, 4vw, 3rem); color: #fff; text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, rgba(200, 155, 94, .32), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(14, 90, 67, .45), transparent 60%), linear-gradient(170deg, #071629, #030B16); }
.sth-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.5px); background-size: 46px 46px; opacity: .08; pointer-events: none; }
.sth-hero > * { position: relative; }
.sth-eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold-on-dark); font-weight: 700; }
.sth-hero h1 { margin: .4rem 0 0; font-family: var(--font-heading); font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; }
.sth-verse { margin: 1.2rem auto 0; max-width: 820px; }
.sth-verse blockquote { margin: 0; font-family: 'Amiri Quran', 'Amiri', var(--font-arabic), serif; font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 2; color: #F7E7C6; text-shadow: 0 0 30px rgba(200, 155, 94, .35); }
.sth-verse figcaption { color: rgba(255, 255, 255, .78); font-size: .95rem; }
.sth-verse cite { color: var(--c-gold-on-dark); font-style: normal; margin-inline-start: .3rem; }
.sth-lead { margin: 1rem auto 0; max-width: 760px; color: rgba(255, 255, 255, .85); line-height: 1.7; }
.sth-ws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.sth-ws a { display: grid; gap: .45rem; align-content: start; padding: 1.2rem; border-radius: 22px; border: 1px solid var(--c-border-soft); background: var(--c-paper); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.sth-ws a:hover { transform: translateY(-4px); border-color: var(--c-gold); box-shadow: 0 22px 40px -26px rgba(5, 15, 30, .5); }
.sth-ws span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(135deg, var(--c-nav), #0E3A5E); color: var(--c-gold-on-dark); font-size: 1.3rem; }
.sth-ws strong { font-size: 1.08rem; }
.sth-ws p { margin: 0; color: var(--c-muted); font-size: .9rem; line-height: 1.55; }
.sth-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.sth-search { flex: 1 1 280px; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; border-radius: 14px; border: 1px solid var(--c-border-soft); background: var(--c-paper); }
.sth-search input { border: 0; background: transparent; padding: .7rem 0; width: 100%; color: inherit; }
.sth-search input:focus { outline: none; }
.sth-juz { display: flex; flex-wrap: wrap; gap: .3rem; }
.sth-juz button { border: 1px solid var(--c-border-soft); background: var(--c-paper); border-radius: 999px; padding: .3rem .7rem; font-size: .8rem; color: inherit; }
.sth-juz button.active { background: var(--c-nav); color: var(--c-gold-on-dark); border-color: var(--c-nav); }
.sth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; }
.sth-card { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 18px; border: 1px solid var(--c-border-soft); background: var(--c-paper); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.sth-card:hover { border-color: var(--c-gold); transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(5, 15, 30, .45); }
.sth-card.is-off { opacity: .55; pointer-events: none; }
.sth-num { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; transform: rotate(45deg); border-radius: 10px; border: 1.5px solid var(--c-gold); }
.sth-num b { transform: rotate(-45deg); font-size: .85rem; color: var(--c-gold-text); }
.sth-card-body { flex: 1 1 auto; min-width: 0; display: grid; }
.sth-card-body strong { font-size: .98rem; }
.sth-card-body small { color: var(--c-muted); font-size: .78rem; }
.sth-card-ar { font-family: 'Amiri Quran', 'Amiri', var(--font-arabic), serif; font-size: 1.45rem; color: var(--c-green-text); }
.sth-q { display: inline-flex; align-items: center; gap: .25rem; color: var(--c-gold-text); font-size: .74rem; font-weight: 700; }
@media (max-width: 900px) { .sth-ws { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sth-ws { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Lettres et makhārij animés
   ===================================================================== */
.stl-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.stl-stage { position: sticky; top: calc(var(--nx-header-h, 0px) + 1rem); padding: 1rem; border-radius: 26px; background: radial-gradient(80% 80% at 50% 0%, rgba(200, 155, 94, .2), transparent 65%), linear-gradient(170deg, #0A1A2E, #040C17); color: #fff; }
.stl-stage svg { width: 100%; height: auto; display: block; }
.stl-big { display: flex; align-items: center; gap: 1rem; padding: .4rem .6rem 0; }
.stl-big b { font-family: 'Amiri Quran', 'Amiri', var(--font-arabic), serif; font-size: 4rem; line-height: 1.2; color: #F7E7C6; text-shadow: 0 0 26px rgba(200, 155, 94, .5); }
.stl-big div { display: grid; gap: .15rem; }
.stl-big small { color: var(--c-gold-on-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.stl-big span { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.stl-example { margin: .6rem .6rem 0; display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.stl-example b { font-family: 'Amiri Quran', 'Amiri', var(--font-arabic), serif; font-size: 1.8rem; font-weight: 400; color: #fff; }
.stl-example small { color: rgba(255, 255, 255, .75); }
.stl-example button { margin-inline-start: auto; border: 0; border-radius: 999px; padding: .45rem .9rem; background: var(--c-gold); color: #fff; font-weight: 700; }
.stl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .55rem; }
.stl-letter { display: grid; justify-items: center; gap: .1rem; padding: .7rem .4rem; border-radius: 16px; border: 1px solid var(--c-border-soft); background: var(--c-paper); color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
.stl-letter b { font-family: 'Amiri Quran', 'Amiri', var(--font-arabic), serif; font-size: 2.1rem; font-weight: 400; line-height: 1.3; }
.stl-letter small { color: var(--c-muted); font-size: .76rem; }
.stl-letter i { width: 8px; height: 8px; border-radius: 50%; }
.stl-letter:hover { transform: translateY(-3px); border-color: var(--c-gold); }
.stl-letter.active { border-color: var(--c-gold); box-shadow: 0 0 0 3px var(--c-gold-soft); background: linear-gradient(var(--c-gold-soft), var(--c-paper)); }
.stl-point { transition: r .3s, opacity .3s; }
.stl-pulse { transform-box: fill-box; transform-origin: center; animation: stlPulse 1.4s ease-out infinite; }
@keyframes stlPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.stl-flow { stroke-dasharray: 6 8; animation: stlFlow 1s linear infinite; }
@keyframes stlFlow { to { stroke-dashoffset: -28; } }
.stl-region { transition: opacity .35s; }
@media (prefers-reduced-motion: reduce) { .stl-pulse, .stl-flow { animation: none; } }
@media (max-width: 900px) { .stl-wrap { grid-template-columns: minmax(0, 1fr); } .stl-stage { position: static; } }

/* Blocs de section (partagés avec Premiers pas) */
.st-page .fs-block { display: grid; gap: 1rem; }
.st-page .fs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.st-page .fs-head h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(1.5rem, 2.6vw, 2rem); }
