/* =====================================================================
   Espace Fiqh (fq-*) — /fiqh
   Couleurs : jetons du thème actif (--c-*) ; teinte par niveau / école : --h.
   Aucune représentation figurative : motifs géométriques, médaillons calligraphiques.
   ===================================================================== */
.fq-page {
  --fq-gold: var(--c-gold, #c89b5e);
  --fq-gold-2: var(--c-gold-light, #e9c98f);
  --fq-night: #081d2b;
  --fq-night-2: #0b2f2a;
  --fq-paper: var(--c-paper, #fffdf8);
  --fq-paper-2: var(--c-paper-2, #faf7f0);
  --fq-line: var(--c-border-soft, rgba(0,0,0,.08));
  --fq-ink: var(--c-ink, #1d2a26);
  --fq-head: var(--c-heading, #0f3a2c);
  --fq-muted: var(--c-muted, #6b7470);
  --fq-link: var(--c-link, #0f4d37);
  --fq-r: 22px;
  --h: 165;
  max-width: 1320px; margin: 0 auto; padding: 1rem 16px 7rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; color: var(--fq-ink);
}
.fq-page > *, .fq-section > *, .fq-main > * { min-width: 0; }
.fq-page *:focus-visible { outline: 3px solid var(--fq-gold); outline-offset: 2px; border-radius: 8px; }
.fq-page [lang="ar"], .fq-ar { font-family: var(--font-arabic, 'Amiri', serif); }
.fq-page h2, .fq-page h3 { font-family: var(--font-heading, Georgia, serif); color: var(--fq-head); }
.fq-page a { color: var(--fq-link); }
.fq-page .mt { margin-top: 1.2rem; }
.fq-muted { color: var(--fq-muted); }
.fq-center { text-align: center; margin: 1rem 0 0; }

/* ---------- Hero ---------- */
.fq-hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; color: #fff; padding: clamp(1.4rem, 3.5vw, 2.8rem);
  background:
    radial-gradient(1100px 420px at 88% -10%, rgba(233,201,143,.26), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, hsl(var(--h) 60% 32% / .55), transparent 62%),
    linear-gradient(135deg, var(--fq-night) 0%, #0d3b36 48%, var(--fq-night-2) 100%);
  box-shadow: 0 30px 60px -30px rgba(4,20,24,.7), inset 0 0 0 1px rgba(233,201,143,.18);
}
.fq-hero::after { content: ""; position: absolute; inset: 10px; border-radius: 22px; border: 1px solid rgba(233,201,143,.22); pointer-events: none; z-index: -1; }
.fq-hero-pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23e9c98f' stroke-width='1'%3E%3Cpath d='M48 4l12 32 32 12-32 12-12 32-12-32L4 48l32-12z'/%3E%3Cpath d='M48 20l7 21 21 7-21 7-7 21-7-21-21-7 21-7z'/%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 18%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 18%, transparent 75%);
  animation: fqDrift 60s linear infinite;
}
@keyframes fqDrift { to { background-position: 96px 96px; } }
.fq-hero-inner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.fq-hero-slim .fq-hero-inner { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.fq-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .85rem; border-radius: 999px; font-size: .78rem; letter-spacing: .04em;
  background: rgba(233,201,143,.14); border: 1px solid rgba(233,201,143,.4); color: var(--fq-gold-2); }
.fq-hero-calli { margin: .8rem 0 0; font-family: var(--font-quran, var(--font-arabic, 'Amiri', serif)) !important; font-size: clamp(2.1rem, 6vw, 4.2rem); line-height: 1.35;
  background: linear-gradient(180deg, #f8e7c4 10%, #c89b5e 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fq-hero h1 { margin: .15rem 0 .6rem; font-family: var(--font-heading, Georgia, serif); font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.fq-lead { margin: 0; max-width: 66ch; color: rgba(255,255,255,.84); font-size: clamp(.98rem, 1.6vw, 1.1rem); line-height: 1.75; }
.fq-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .8rem; font-size: .82rem; color: rgba(255,255,255,.7); }
.fq-crumbs a { color: var(--fq-gold-2) !important; text-decoration: none; }
.fq-crumbs a:hover { text-decoration: underline; }
.fq-crumbs .bi { font-size: .65rem; opacity: .7; }
[dir="rtl"] .fq-crumbs .bi-chevron-right { transform: scaleX(-1); }
.fq-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.fq-hero-card { position: relative; padding: 1.4rem 1.5rem; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(233,201,143,.3); backdrop-filter: blur(6px); }
.fq-hero-hadith { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.8; margin: .7rem 0 .4rem; color: #fff; text-align: center; }
.fq-hero-card .fq-tr { color: rgba(255,255,255,.85); text-align: center; font-style: italic; margin: 0 0 .8rem; }
.fq-hero-card .fq-ref { display: flex; justify-content: center; color: var(--fq-gold-2); }
.fq-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; background: rgba(233,201,143,.16); color: var(--fq-gold-2); }
.fq-ref { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--fq-muted); font-weight: 600; }
.fq-ref .bi { color: var(--fq-gold); }

.fq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1.8rem; }
.fq-kpis > div { display: grid; gap: .1rem; padding: .9rem 1rem; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.fq-kpis .bi { color: var(--fq-gold-2); font-size: 1.1rem; }
.fq-kpis strong { font-size: clamp(1.4rem, 3vw, 2rem); font-family: var(--font-heading, Georgia, serif); color: #fff; line-height: 1.1; }
.fq-kpis span { font-size: .8rem; color: rgba(255,255,255,.72); }
.fq-prog-kpis { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.fq-prog-kpis span { display: inline-flex; align-items: baseline; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: rgba(255,255,255,.8); }
.fq-prog-kpis b { font-size: 1.15rem; color: #fff; }
.fq-prog-bar { position: relative; margin-top: 1rem; height: 12px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; max-width: 520px; }
.fq-prog-bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--fq-gold), #f6dc9c); border-radius: inherit; transition: width .6s ease; }
[dir="rtl"] .fq-prog-bar span { inset: 0 0 0 auto; }
.fq-prog-bar em { position: absolute; inset-inline-end: .5rem; top: -1.4rem; font-style: normal; font-size: .78rem; color: var(--fq-gold-2); }

/* ---------- Boutons ---------- */
.fq-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1.1rem; border-radius: 999px; border: 1px solid var(--fq-line); background: var(--fq-paper); color: var(--fq-head) !important;
  font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; line-height: 1.2; }
.fq-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); }
.fq-btn small { display: block; font-weight: 500; font-size: .74rem; opacity: .75; }
.fq-btn > span { text-align: start; }
.fq-btn-primary { background: linear-gradient(135deg, hsl(var(--h) 55% 28%), hsl(var(--h) 60% 20%)); color: #fff !important; border-color: transparent; }
.fq-btn-gold { background: linear-gradient(135deg, #f1d79e, var(--fq-gold)); color: #1b1a12 !important; border-color: transparent; box-shadow: 0 12px 30px -14px rgba(200,155,94,.8); }
.fq-btn-ghost { background: rgba(255,255,255,.08); color: #fff !important; border-color: rgba(255,255,255,.28); }
.fq-btn-ghost:hover { background: rgba(255,255,255,.16); }
.fq-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
[dir="rtl"] .fq-link .bi-arrow-right, [dir="rtl"] .fq-step-go .bi-arrow-right, [dir="rtl"] .fq-pager .bi { transform: scaleX(-1); }
.fq-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--fq-line); background: var(--fq-paper); color: var(--fq-head) !important; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.fq-icon-btn:hover { background: hsl(var(--h) 50% 50% / .12); transform: scale(1.06); }

/* ---------- Onglets ---------- */
.fq-tabs { position: sticky; top: calc(var(--nx-header-h, 0px) + 8px); z-index: 30; }
.fq-tabs-inner { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding: .4rem; border-radius: 18px; background: color-mix(in srgb, var(--fq-paper) 88%, transparent); border: 1px solid var(--fq-line); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -22px rgba(0,0,0,.5); }
.fq-tabs-inner::-webkit-scrollbar { display: none; }
.fq-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: 12px; white-space: nowrap; font-size: .86rem; font-weight: 600; color: var(--fq-muted) !important; text-decoration: none; transition: background .15s, color .15s; }
.fq-tabs a:hover { background: hsl(var(--h) 50% 50% / .08); color: var(--fq-head) !important; }
.fq-tabs a.is-active { background: linear-gradient(135deg, hsl(165 55% 26%), hsl(165 60% 18%)); color: #fff !important; box-shadow: 0 8px 18px -10px rgba(10,60,50,.8); }

/* ---------- Sections ---------- */
.fq-section { display: grid; gap: 1rem; }
.fq-head { display: grid; gap: .25rem; max-width: 820px; }
.fq-head h2 { margin: 0; font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 700; }
.fq-head p { margin: .2rem 0 0; color: var(--fq-muted); line-height: 1.7; }
.fq-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; flex-wrap: wrap; }
.fq-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gold-text, #8a6a3e); }
.fq-kicker-red { color: #b03a3a; }
.fq-subhead { margin: .6rem 0 0; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.fq-subhead::after { content: ""; flex: 1; height: 1px; background: var(--fq-line); }
.fq-card { background: var(--fq-paper); border: 1px solid var(--fq-line); border-radius: var(--fq-r); padding: clamp(1rem, 2.4vw, 1.5rem); box-shadow: 0 18px 40px -32px rgba(0,0,0,.45); }
.fq-card > h2 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .8rem; font-size: 1.3rem; }
.fq-card > h2 .bi { color: hsl(var(--h) 55% 35%); }
.fq-prose { line-height: 1.85; margin: 0 0 .8rem; }
.fq-note { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 16px; background: hsl(var(--h) 40% 50% / .08); border: 1px dashed hsl(var(--h) 40% 45% / .35); }
.fq-note p { margin: 0; line-height: 1.7; }
.fq-note > .bi { color: hsl(var(--h) 55% 35%); font-size: 1.2rem; margin-top: .1rem; }
.fq-warn { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; line-height: 1.55; margin: .4rem 0; padding: .5rem .7rem; border-radius: 10px; background: rgba(190,120,30,.1); color: #7a4b10; }
[data-bs-theme="dark"] .fq-warn, html.dark .fq-warn { color: #f3cf8f; background: rgba(190,120,30,.18); }
.fq-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fq-ticks li { position: relative; padding-inline-start: 1.8rem; line-height: 1.7; }
.fq-ticks li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; inset-inline-start: 0; top: .05rem; color: hsl(var(--h) 55% 38%); font-size: 1.15rem; }

/* ---------- Citations ---------- */
.fq-quote { margin: 0; padding: 1rem 1.2rem; border-radius: 16px; background: var(--fq-paper-2); border: 1px solid var(--fq-line); border-inline-start: 4px solid hsl(var(--h) 50% 40%); }
.fq-quote blockquote { margin: 0; }
.fq-quote .fq-ar { margin: 0 0 .4rem; font-size: 1.35rem; line-height: 1.9; color: var(--fq-head); text-align: right; }
.fq-quote .fq-tr { margin: 0 0 .4rem; font-style: italic; line-height: 1.7; color: var(--fq-ink); }
.fq-quote figcaption { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--fq-muted); font-weight: 600; }
.fq-quote figcaption .bi { color: var(--fq-gold); }
.fq-quote.is-big .fq-ar { font-size: 1.6rem; }
.fq-quote.is-quran { border-inline-start-color: #1f7a54; }
.fq-quote.is-quran .fq-ar { font-family: var(--font-quran, var(--font-arabic)); }
.fq-quote.is-hadith { border-inline-start-color: #3a4aa0; }

/* ---------- Escalier des niveaux ---------- */
.fq-stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.fq-step { transform: translateY(calc((4 - var(--i)) * 14px)); }
.fq-step a { position: relative; display: grid; gap: .5rem; padding: 1.2rem; min-height: 100%; border-radius: var(--fq-r); text-decoration: none; color: var(--fq-ink) !important; overflow: hidden;
  background: linear-gradient(180deg, hsl(var(--h) 50% 50% / .1), transparent 55%), var(--fq-paper); border: 1px solid hsl(var(--h) 40% 45% / .28);
  box-shadow: 0 18px 40px -30px hsl(var(--h) 60% 20% / .9); transition: transform .25s, box-shadow .25s; }
.fq-step a::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, hsl(var(--h) 60% 40%), hsl(var(--h) 60% 60%)); }
.fq-step a:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px hsl(var(--h) 60% 20% / .95); }
.fq-step-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fq-step-stage { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--h) 55% 32%); }
.fq-step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: hsl(var(--h) 55% 40% / .12); color: hsl(var(--h) 55% 32%); font-size: 1.5rem; }
.fq-step-name { font-family: var(--font-heading, Georgia, serif); font-size: 1.45rem; color: var(--fq-head); }
.fq-step-lead { font-size: .9rem; line-height: 1.6; color: var(--fq-muted); }
.fq-step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .78rem; color: var(--fq-muted); }
.fq-step-meta .bi { color: hsl(var(--h) 55% 38%); }
.fq-step-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; font-weight: 700; font-size: .86rem; color: hsl(var(--h) 55% 30%); }
[data-bs-theme="dark"] .fq-step-stage, [data-bs-theme="dark"] .fq-step-icon, [data-bs-theme="dark"] .fq-step-go, html.dark .fq-step-stage, html.dark .fq-step-go { color: hsl(var(--h) 60% 70%); }

.fq-ring { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; }
.fq-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.fq-ring circle { fill: none; stroke-width: 3.2; }
.fq-ring .bg { stroke: hsl(var(--h) 30% 50% / .18); }
.fq-ring .fg { stroke: hsl(var(--h) 60% 40%); stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.fq-ring b { font-size: .95rem; color: var(--fq-head); }
.fq-ring-lg { width: 74px; height: 74px; }
.fq-ring-lg .bg { stroke: rgba(255,255,255,.18); }
.fq-ring-lg .fg { stroke: var(--fq-gold-2); }
.fq-ring-lg b { color: #fff; font-size: 1rem; }

/* ---------- Par où commencer ---------- */
.fq-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fq-start-card { position: relative; display: grid; gap: .45rem; padding: 1.3rem 1.3rem 1.2rem; border-radius: var(--fq-r); background: var(--fq-paper); border: 1px solid var(--fq-line); color: var(--fq-ink) !important; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.fq-start-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0,0,0,.5); }
.fq-start-card > .bi { font-size: 1.6rem; color: var(--fq-gold); }
.fq-start-card strong { font-family: var(--font-heading, Georgia, serif); font-size: 1.2rem; color: var(--fq-head); }
.fq-start-card span:last-child { color: var(--fq-muted); line-height: 1.6; font-size: .92rem; }
.fq-start-n { position: absolute; inset-inline-end: 1rem; top: .6rem; font-family: var(--font-heading, Georgia, serif); font-size: 2.6rem; font-weight: 700; color: hsl(45 50% 50% / .22); }

/* ---------- Écoles ---------- */
.fq-school-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fq-school { position: relative; display: grid; gap: .35rem; align-content: start; padding: 1.3rem; border-radius: var(--fq-r); overflow: hidden; text-decoration: none; color: #fff !important; min-height: 230px;
  background: radial-gradient(400px 200px at 100% 0%, hsl(var(--h) 60% 55% / .45), transparent 60%), linear-gradient(160deg, hsl(var(--h) 45% 22%), hsl(var(--h) 50% 12%));
  box-shadow: 0 24px 40px -28px hsl(var(--h) 60% 10% / .9); transition: transform .25s; }
.fq-school::after { content: ""; position: absolute; inset: 8px; border-radius: 16px; border: 1px solid rgba(233,201,143,.25); pointer-events: none; }
.fq-school:hover { transform: translateY(-5px); }
.fq-school-n { position: absolute; inset-inline-end: 1rem; top: .4rem; font-family: var(--font-heading, Georgia, serif); font-size: 3.2rem; font-weight: 700; color: rgba(255,255,255,.12); }
.fq-school-ar { font-family: var(--font-arabic) !important; font-size: 1.7rem; color: var(--fq-gold-2); line-height: 1.5; }
.fq-school strong { font-family: var(--font-heading, Georgia, serif); font-size: 1.25rem; color: #fff; }
.fq-school-founder { font-weight: 600; color: rgba(255,255,255,.92); }
.fq-school-dates { font-size: .78rem; color: rgba(255,255,255,.68); }
.fq-school-tag { font-size: .86rem; line-height: 1.55; color: rgba(255,255,255,.8); margin-top: .3rem; }
.fq-school .fq-step-go { color: var(--fq-gold-2); }
.fq-school-grid-lg .fq-school { min-height: 260px; }
.fq-chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.fq-chips-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .86rem; color: var(--fq-muted); margin-inline-end: .3rem; }
.fq-chip-link { display: inline-flex; padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; text-decoration: none; border: 1px solid hsl(var(--h) 40% 45% / .35); background: hsl(var(--h) 50% 50% / .08); color: var(--fq-head) !important; transition: background .15s; }
.fq-chip-link:hover { background: hsl(var(--h) 50% 50% / .18); }

/* ---------- Imams ---------- */
.fq-imams-band { padding: clamp(1.2rem, 3vw, 2rem); border-radius: 28px; background: linear-gradient(135deg, hsl(45 40% 50% / .1), transparent 60%), var(--fq-paper-2); border: 1px solid var(--fq-line); }
.fq-imams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fq-imams-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fq-imam { display: grid; gap: .6rem; align-content: start; }
.fq-imam-who { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-heading, Georgia, serif); font-weight: 700; font-size: 1.15rem; color: hsl(var(--h) 50% 30%) !important; text-decoration: none; }
.fq-imam-who::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--h) 55% 45%); }
.fq-imam .fq-quote { border-inline-start-color: hsl(var(--h) 55% 42%); background: var(--fq-paper); }
.fq-imam .fq-ar { font-size: 1.2rem; }

/* ---------- Audio ---------- */
.fq-audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .9rem; }
.fq-audio { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .8rem; border-radius: 18px; background: var(--fq-paper); border: 1px solid var(--fq-line); transition: box-shadow .2s, transform .2s; }
.fq-audio:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -24px rgba(0,0,0,.6); }
.fq-audio.is-playing { border-color: hsl(var(--h) 55% 42%); box-shadow: 0 0 0 3px hsl(var(--h) 55% 45% / .18); }
.fq-audio-play { position: relative; width: 62px; height: 62px; border-radius: 16px; border: 0; cursor: pointer; overflow: hidden; padding: 0;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 65% 55%), hsl(var(--h) 55% 22%)); color: #fff; }
.fq-audio-art { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-heading, Georgia, serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; transition: opacity .2s; }
.fq-audio-play .bi { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; opacity: 0; background: rgba(0,0,0,.35); transition: opacity .2s; }
.fq-audio-play:hover .bi, .fq-audio-play:focus-visible .bi, .fq-audio.is-playing .fq-audio-play .bi { opacity: 1; }
.fq-audio-body { min-width: 0; }
.fq-audio-body h3 { margin: 0; font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--fq-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fq-audio-body h3[lang="ar"] { font-family: var(--font-arabic-ui, var(--font-arabic)); font-size: 1rem; }
.fq-audio-who { margin: .15rem 0 .25rem; font-size: .8rem; color: hsl(var(--h) 45% 32%); font-weight: 600; }
[data-bs-theme="dark"] .fq-audio-who, html.dark .fq-audio-who { color: hsl(var(--h) 55% 70%); }
.fq-audio-meta { display: flex; flex-wrap: wrap; gap: .25rem .7rem; margin: 0; font-size: .74rem; color: var(--fq-muted); }
.fq-audio-meta .bi { margin-inline-end: .2rem; }
.fq-lang { padding: 0 .45rem; border-radius: 6px; background: var(--fq-paper-2); border: 1px solid var(--fq-line); }
.fq-audio-actions { display: grid; gap: .35rem; }

/* ---------- Vidéo ---------- */
.fq-video-presets { display: flex; flex-wrap: wrap; gap: .45rem; }
.fq-video-presets button, .fq-topic-chips button, .fq-conduct button, .fq-media-switch button {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--fq-line); background: var(--fq-paper); color: var(--fq-head); font-weight: 600; font-size: .86rem; cursor: pointer; transition: background .15s, color .15s; }
.fq-video-presets button.is-active, .fq-topic-chips button.is-active, .fq-conduct button.is-active, .fq-media-switch button.is-active { background: linear-gradient(135deg, hsl(165 55% 26%), hsl(165 60% 18%)); border-color: transparent; color: #fff; }
.fq-topic-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.fq-topic-chips b { font-size: .72rem; padding: 0 .4rem; border-radius: 6px; background: hsl(165 40% 40% / .14); }
.fq-topic-chips button.is-active b { background: rgba(255,255,255,.2); }
.fq-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; min-height: 120px; }
.fq-vcard { display: grid; gap: .5rem; border-radius: 18px; overflow: hidden; background: var(--fq-paper); border: 1px solid var(--fq-line); text-align: start; padding: 0; cursor: pointer; color: inherit; font: inherit; transition: transform .2s, box-shadow .2s; }
.fq-vcard:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -26px rgba(0,0,0,.6); }
.fq-vthumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, hsl(var(--h) 45% 25%), hsl(var(--h) 50% 12%)); overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.7); }
.fq-vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fq-vthumb .fq-vplay { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 1.6rem; backdrop-filter: blur(4px); transition: transform .2s; }
.fq-vcard:hover .fq-vplay { transform: scale(1.1); background: var(--fq-gold); color: #1b1a12; }
.fq-vthumb .fq-vbadge { position: absolute; inset-inline-end: .5rem; bottom: .5rem; padding: .1rem .45rem; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: .72rem; }
.fq-vthumb .fq-vcal { position: absolute; font-family: var(--font-arabic); font-size: 2rem; color: rgba(233,201,143,.25); }
.fq-vbody { padding: 0 .9rem .9rem; display: grid; gap: .2rem; }
.fq-vbody strong { font-size: .92rem; line-height: 1.4; color: var(--fq-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fq-vbody strong[lang="ar"] { font-family: var(--font-arabic-ui, var(--font-arabic)); font-size: 1rem; }
.fq-vbody small { font-size: .78rem; color: var(--fq-muted); }
.fq-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--fq-muted); padding: 2rem; }
.fq-loading span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid hsl(165 40% 40% / .25); border-top-color: hsl(165 55% 35%); animation: fqSpin .8s linear infinite; }
@keyframes fqSpin { to { transform: rotate(360deg); } }
.fq-empty { grid-column: 1 / -1; text-align: center; color: var(--fq-muted); padding: 1.5rem; border: 1px dashed var(--fq-line); border-radius: 16px; }
.fq-result-line { margin: 0; font-size: .86rem; color: var(--fq-muted); font-weight: 600; min-height: 1.2em; }

/* ---------- Méthode ---------- */
.fq-method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: center; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 28px; background: var(--fq-paper); border: 1px solid var(--fq-line); }
.fq-method-quote { text-align: center; padding: 1.5rem; border-radius: 22px; color: #fff; background: linear-gradient(160deg, #0d3b36, var(--fq-night)); }
.fq-method-quote .fq-ar { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--fq-gold-2); margin: 0 0 .5rem; line-height: 1.7; }
.fq-method-quote .fq-tr { color: rgba(255,255,255,.85); font-style: italic; margin: 0 0 .6rem; }
.fq-method-quote .fq-ref { color: rgba(255,255,255,.65); justify-content: center; }
.fq-method h2 { margin: .2rem 0 .8rem; }
.fq-rules { counter-reset: r; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.fq-rules li { counter-increment: r; position: relative; padding: .8rem .9rem .8rem 3rem; border-radius: 14px; background: var(--fq-paper-2); border: 1px solid var(--fq-line); display: grid; gap: .15rem; }
[dir="rtl"] .fq-rules li { padding: .8rem 3rem .8rem .9rem; }
.fq-rules li::before { content: counter(r); position: absolute; inset-inline-start: .8rem; top: .8rem; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--fq-gold); color: #1b1a12; font-weight: 800; font-size: .85rem; }
.fq-rules strong { color: var(--fq-head); }
.fq-rules span { font-size: .86rem; color: var(--fq-muted); line-height: 1.55; }

/* ---------- Glossaire ---------- */
.fq-filter { position: relative; display: inline-flex; align-items: center; }
.fq-filter .bi { position: absolute; inset-inline-start: .9rem; color: var(--fq-muted); pointer-events: none; }
.fq-filter input { padding: .6rem 1rem .6rem 2.4rem; border-radius: 999px; border: 1px solid var(--fq-line); background: var(--c-input, #fff); color: var(--fq-ink); min-width: 240px; font-size: .9rem; }
[dir="rtl"] .fq-filter input { padding: .6rem 2.4rem .6rem 1rem; }
.fq-filter input:focus { outline: none; border-color: var(--fq-gold); box-shadow: 0 0 0 3px rgba(200,155,94,.25); }
.fq-gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; margin: 0; }
.fq-gloss-item { padding: .8rem 1rem; border-radius: 14px; background: var(--fq-paper); border: 1px solid var(--fq-line); }
.fq-gloss-item dt { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.fq-gloss-item dt .fq-ar { font-size: 1.25rem; color: var(--fq-head); }
.fq-gloss-item dt em { font-size: .8rem; color: var(--c-gold-text, #8a6a3e); }
.fq-gloss-item dd { margin: .3rem 0 0; font-size: .88rem; line-height: 1.6; color: var(--fq-muted); }
[hidden] { display: none !important; }

/* ---------- Confiance ---------- */
.fq-trust { display: flex; gap: 1.2rem; align-items: flex-start; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 24px; background: linear-gradient(135deg, hsl(165 50% 30% / .1), transparent 70%), var(--fq-paper); border: 1px solid hsl(165 40% 40% / .25); }
.fq-trust > .bi { font-size: 2.2rem; color: hsl(165 55% 32%); }
.fq-trust h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.fq-trust ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .4rem; line-height: 1.65; color: var(--fq-ink); }
.fq-trust p { margin: 0 0 .6rem; line-height: 1.7; }

/* ---------- Page niveau ---------- */
.fq-level-facts dl { display: grid; gap: .8rem; margin: 0 0 1rem; }
.fq-level-facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fq-gold-2); display: flex; gap: .4rem; align-items: center; }
.fq-level-facts dd { margin: .15rem 0 0; color: rgba(255,255,255,.88); line-height: 1.55; font-size: .92rem; }
.fq-level-progress { display: flex; align-items: center; gap: .8rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.8); font-weight: 600; }
.fq-level-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.fq-level-switch a { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 16px; border: 1px solid hsl(var(--h) 40% 45% / .25); background: var(--fq-paper); text-decoration: none; color: var(--fq-head) !important; font-weight: 600; font-size: .9rem; transition: background .15s; }
.fq-level-switch a b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: hsl(var(--h) 55% 40% / .14); color: hsl(var(--h) 55% 30%); flex-shrink: 0; }
.fq-level-switch a.is-active { background: linear-gradient(135deg, hsl(var(--h) 55% 30%), hsl(var(--h) 60% 18%)); color: #fff !important; border-color: transparent; }
.fq-level-switch a.is-active b { background: rgba(255,255,255,.2); color: #fff; }
.fq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.fq-main { display: grid; gap: 1.5rem; min-width: 0; }
.fq-aside { min-width: 0; }
.fq-sticky { position: sticky; top: calc(var(--nx-header-h, 0px) + 80px); }
.fq-sticky > h2 { font-size: 1.1rem; }
.fq-sticky > h2.mt { margin-top: 1.2rem; }
.fq-goal { background: linear-gradient(135deg, hsl(var(--h) 50% 45% / .12), transparent 70%), var(--fq-paper); border-color: hsl(var(--h) 40% 45% / .3); }
.fq-goal p { margin: 0; font-size: 1.05rem; line-height: 1.8; }
.fq-modules { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.fq-modules li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: .9rem 1rem; border-radius: 16px; background: var(--fq-paper-2); border: 1px solid var(--fq-line); }
.fq-mod-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, hsl(var(--h) 55% 36%), hsl(var(--h) 60% 22%)); color: #fff; font-weight: 800; }
.fq-modules strong { color: var(--fq-head); font-size: 1rem; }
.fq-modules p { margin: .25rem 0 0; color: var(--fq-muted); line-height: 1.6; font-size: .92rem; }
.fq-mem { display: grid; gap: .8rem; }
.fq-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fq-checklist label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: start; padding: .55rem .6rem; border-radius: 12px; cursor: pointer; transition: background .15s; font-size: .9rem; line-height: 1.5; }
.fq-checklist label:hover { background: hsl(var(--h) 50% 50% / .08); }
.fq-checklist input { width: 18px; height: 18px; margin-top: .15rem; accent-color: hsl(var(--h) 55% 38%); }
.fq-checklist input:checked + span { color: var(--fq-muted); text-decoration: line-through; text-decoration-color: hsl(var(--h) 55% 45%); }
.fq-done { display: flex; gap: .5rem; align-items: center; margin-top: .8rem; padding: .7rem .9rem; border-radius: 12px; background: linear-gradient(135deg, #f1d79e, var(--fq-gold)); color: #1b1a12; font-weight: 700; font-size: .9rem; }
.fq-sticky hr { border: 0; border-top: 1px solid var(--fq-line); margin: 1rem 0; }
.fq-toc { display: grid; gap: .2rem; }
.fq-toc a { display: flex; gap: .5rem; align-items: center; padding: .4rem .6rem; border-radius: 10px; text-decoration: none; color: var(--fq-muted) !important; font-size: .88rem; }
.fq-toc a:hover { background: hsl(var(--h) 50% 50% / .08); color: var(--fq-head) !important; }
.fq-pager { display: flex; justify-content: space-between; gap: 1rem; }
.fq-pager a { display: inline-flex; align-items: center; gap: .7rem; padding: .9rem 1.2rem; border-radius: 16px; background: var(--fq-paper); border: 1px solid var(--fq-line); text-decoration: none; color: var(--fq-head) !important; font-weight: 700; }
.fq-pager a small { display: block; font-weight: 600; font-size: .74rem; color: var(--fq-muted); }
.fq-pager a.is-next { margin-inline-start: auto; text-align: end; }

/* ---------- Livres ---------- */
.fq-book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.fq-book-grid-sm { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fq-book { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1rem; border-radius: 20px; background: var(--fq-paper); border: 1px solid var(--fq-line); transition: transform .2s, box-shadow .2s; }
.fq-book:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -30px rgba(0,0,0,.6); }
.fq-book-cover { display: block; text-decoration: none; }
.fq-book-cover .mk-cover { width: 104px; }
.fq-book.is-compact .fq-book-cover .mk-cover { width: 78px; }
.fq-book-body { min-width: 0; display: grid; gap: .3rem; align-content: start; }
.fq-book-body h3 { margin: 0; font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.fq-book-body h3 a { color: var(--fq-head) !important; text-decoration: none; }
.fq-book-body h3 a:hover { text-decoration: underline; }
.fq-book-ar { margin: 0; font-size: 1.05rem; color: var(--fq-muted); line-height: 1.5; }
.fq-book-author { margin: 0; font-size: .82rem; color: var(--fq-muted); display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.fq-book-author .bi { color: var(--fq-gold); }
.fq-book-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.fq-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 600; background: var(--fq-paper-2); border: 1px solid var(--fq-line); color: var(--fq-muted); }
.fq-chip.is-pdf { color: #a8322d; border-color: rgba(168,50,45,.3); background: rgba(168,50,45,.06); }
.fq-badge { justify-self: start; padding: .15rem .55rem; border-radius: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: hsl(165 50% 35% / .12); color: hsl(165 55% 26%); }
.fq-badge-sharh { background: hsl(205 50% 45% / .12); color: hsl(205 55% 30%); }
.fq-badge-plus, .fq-badge-mutawwal { background: hsl(30 60% 45% / .14); color: hsl(30 60% 30%); }
.fq-badge-en { background: hsl(260 40% 50% / .12); color: hsl(260 40% 35%); }
.fq-badge-usul, .fq-badge-comparé { background: hsl(280 40% 50% / .12); color: hsl(280 40% 35%); }
[data-bs-theme="dark"] .fq-badge, html.dark .fq-badge { filter: brightness(1.8); }
.fq-book-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.fq-book-actions .fq-btn { padding: .42rem .8rem; font-size: .8rem; }
.fq-book.is-external .mk-cover { filter: saturate(.75); }

/* ---------- Écoles : pages ---------- */
.fq-roots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fq-root { padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--fq-paper); border: 1px solid var(--fq-line); border-top: 4px solid hsl(var(--h) 50% 42%); display: grid; gap: .5rem; align-content: start; }
.fq-root h3 { margin: 0; font-size: 1.15rem; display: flex; gap: .4rem; align-items: center; }
.fq-root h3 .bi { color: hsl(var(--h) 50% 40%); }
.fq-root p { margin: 0; font-size: .9rem; line-height: 1.65; color: var(--fq-muted); }
.fq-root-heir { font-size: .84rem; font-weight: 700; text-decoration: none; display: inline-flex; gap: .3rem; }
.fq-table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--fq-line); background: var(--fq-paper); }
.fq-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .9rem; }
.fq-table caption { caption-side: top; text-align: start; padding: 1rem 1.2rem .4rem; font-family: var(--font-heading, Georgia, serif); font-weight: 700; font-size: 1.15rem; color: var(--fq-head); }
.fq-table th, .fq-table td { padding: .8rem 1rem; border-top: 1px solid var(--fq-line); text-align: start; vertical-align: top; line-height: 1.55; }
.fq-table thead th { border-top: 0; font-family: var(--font-heading, Georgia, serif); font-size: 1.02rem; color: #fff; background: linear-gradient(160deg, hsl(var(--h) 45% 26%), hsl(var(--h) 50% 16%)); }
.fq-table tbody th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fq-muted); width: 150px; }
.fq-table td small { display: block; color: var(--fq-muted); font-size: .76rem; }
.fq-timeline { list-style: none; margin: 0; padding: 1.4rem 0 .4rem; display: flex; gap: 0; overflow-x: auto; position: relative; }
.fq-timeline::before { content: ""; position: absolute; inset: 1.95rem 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--fq-gold) 8%, var(--fq-gold) 92%, transparent); }
.fq-timeline li { flex: 0 0 120px; position: relative; text-align: center; }
.fq-timeline a { display: grid; gap: .35rem; justify-items: center; text-decoration: none; padding: 0 .3rem; color: var(--fq-ink) !important; }
.fq-timeline a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--fq-paper); border: 3px solid hsl(var(--h) 50% 45%); position: relative; z-index: 1; }
.fq-timeline li.is-major a::before { width: 20px; height: 20px; background: hsl(var(--h) 55% 42%); border-color: var(--fq-gold-2); box-shadow: 0 0 0 4px hsl(var(--h) 55% 45% / .2); margin-top: -3px; }
.fq-timeline b { font-size: .76rem; color: var(--c-gold-text, #8a6a3e); }
.fq-timeline span { font-size: .78rem; line-height: 1.35; }
.fq-timeline li.is-major span { font-weight: 700; color: var(--fq-head); }
.fq-other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.fq-other { display: grid; gap: .35rem; align-content: start; padding: 1.1rem 1.2rem; border-radius: 20px; text-decoration: none; color: var(--fq-ink) !important; background: linear-gradient(160deg, hsl(var(--h) 50% 50% / .1), transparent 60%), var(--fq-paper); border: 1px solid hsl(var(--h) 40% 45% / .25); transition: transform .2s; }
.fq-other:hover { transform: translateY(-3px); }
.fq-other-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: hsl(var(--h) 55% 40% / .15); color: hsl(var(--h) 55% 32%); font-size: 1.2rem; }
.fq-other strong { font-family: var(--font-heading, Georgia, serif); font-size: 1.12rem; color: var(--fq-head); }
.fq-other-who { font-weight: 600; font-size: .9rem; }
.fq-other .fq-school-dates { color: var(--fq-muted); }
.fq-other-p { font-size: .86rem; line-height: 1.6; color: var(--fq-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fq-out-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fq-out { padding: 1.1rem 1.2rem; border-radius: 18px; background: rgba(176,58,58,.05); border: 1px solid rgba(176,58,58,.25); display: grid; gap: .5rem; align-content: start; }
.fq-out h3 { margin: 0; font-size: 1.05rem; display: flex; gap: .45rem; align-items: center; }
.fq-out h3 .bi { color: #b03a3a; }
.fq-out p { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--fq-muted); }
.fq-founder { display: grid; justify-items: center; text-align: center; gap: .4rem; }
.fq-founder strong { font-family: var(--font-heading, Georgia, serif); font-size: 1.2rem; color: #fff; }
.fq-founder em { color: var(--fq-gold-2); font-size: .86rem; }
.fq-founder dl { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; margin: .6rem 0; }
.fq-founder dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); }
.fq-founder dd { margin: .1rem 0 0; color: #fff; font-size: .88rem; }
.fq-founder-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.fq-founder-links a { display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff !important; font-size: .8rem; text-decoration: none; }
.fq-medal { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-family: var(--font-heading, Georgia, serif); font-weight: 700; font-size: 1.6rem; color: #1b1a12;
  background: radial-gradient(circle at 30% 25%, #fff3d1, var(--fq-gold) 60%, #8a6a3e); box-shadow: 0 0 0 4px rgba(233,201,143,.25), 0 12px 30px -10px rgba(0,0,0,.6); }
.fq-medal.sm { width: 46px; height: 46px; font-size: .95rem; flex-shrink: 0; }
.fq-usul { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; }
.fq-usul li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; padding: .6rem .8rem; border-radius: 12px; background: var(--fq-paper-2); line-height: 1.55; }
.fq-usul span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: hsl(var(--h) 55% 38%); color: #fff; font-weight: 800; font-size: .85rem; }
.fq-students { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.fq-students article { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 16px; background: var(--fq-paper); border: 1px solid var(--fq-line); }
.fq-students strong { display: block; color: var(--fq-head); }
.fq-students small { color: var(--c-gold-text, #8a6a3e); font-weight: 600; }
.fq-students p { margin: .25rem 0 0; font-size: .86rem; color: var(--fq-muted); line-height: 1.5; }
.fq-aqida { border-color: hsl(165 40% 40% / .35); background: linear-gradient(135deg, hsl(165 50% 35% / .08), transparent 70%), var(--fq-paper); }
.fq-side-nav { display: grid; gap: .15rem; }
.fq-side-nav a { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 10px; text-decoration: none; font-size: .88rem; color: var(--fq-ink) !important; }
.fq-side-nav a:hover { background: hsl(var(--h) 50% 50% / .08); }
.fq-side-nav a.is-active { background: hsl(var(--h) 50% 50% / .14); font-weight: 700; }
.fq-side-nav .dot { width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--h) 55% 45%); flex-shrink: 0; }

/* ---------- Divergence ---------- */
.fq-proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.fq-weak { display: grid; gap: .3rem; padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid rgba(176,58,58,.3); background: rgba(176,58,58,.05); }
.fq-weak-tag { display: inline-flex; gap: .35rem; align-items: center; font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #b03a3a; }
.fq-weak .fq-ar { font-size: 1.3rem; margin: 0; text-decoration: line-through; text-decoration-color: rgba(176,58,58,.6); }
.fq-weak p { margin: 0; line-height: 1.6; }
.fq-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fq-type { padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--fq-paper); border: 1px solid var(--fq-line); border-top: 4px solid; }
.fq-type.is-green { border-top-color: #1f7a54; } .fq-type.is-gold { border-top-color: var(--fq-gold); } .fq-type.is-red { border-top-color: #b03a3a; }
.fq-type h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.fq-type p { margin: 0; line-height: 1.65; font-size: .92rem; color: var(--fq-muted); }
.fq-causes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.fq-causes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; padding: .7rem .9rem; border-radius: 14px; background: var(--fq-paper); border: 1px solid var(--fq-line); line-height: 1.55; font-size: .92rem; }
.fq-causes span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #f1d79e, var(--fq-gold)); color: #1b1a12; font-weight: 800; }
.fq-salaf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fq-salaf-item { display: grid; gap: .5rem; align-content: start; }
.fq-salaf-who { font-family: var(--font-heading, Georgia, serif); font-weight: 700; font-size: 1.05rem; color: var(--fq-head); }
.fq-conduct { display: flex; flex-wrap: wrap; gap: .45rem; }
.fq-cases { display: grid; gap: .7rem; }
.fq-case { border-radius: 18px; background: var(--fq-paper); border: 1px solid var(--fq-line); overflow: hidden; }
.fq-case summary { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; cursor: pointer; list-style: none; }
.fq-case summary::-webkit-details-marker { display: none; }
.fq-case summary strong { flex: 1; font-size: 1rem; color: var(--fq-head); }
.fq-case summary .bi { transition: transform .2s; color: var(--fq-muted); }
.fq-case[open] summary .bi { transform: rotate(180deg); }
.fq-case-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: hsl(165 50% 35% / .12); color: hsl(165 55% 26%); font-weight: 800; }
.fq-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; padding: 0 1.1rem 1rem; }
.fq-case-pos { padding: .7rem .8rem; border-radius: 12px; background: hsl(var(--h) 50% 50% / .08); border-top: 3px solid hsl(var(--h) 50% 42%); display: grid; gap: .2rem; }
.fq-case-pos span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fq-muted); }
.fq-case-pos b { font-size: .9rem; color: var(--fq-head); font-weight: 600; line-height: 1.45; }
.fq-case-rajih { margin: 0 1.1rem 1.1rem; padding: .9rem 1rem; border-radius: 14px; background: linear-gradient(135deg, hsl(165 50% 35% / .1), transparent), var(--fq-paper-2); border: 1px solid hsl(165 40% 40% / .25); display: grid; gap: .4rem; }
.fq-case-rajih .fq-tag { background: hsl(165 50% 35% / .14); color: hsl(165 55% 24%); justify-self: start; }
.fq-case-rajih p { margin: 0; line-height: 1.65; }

/* ---------- Programme ---------- */
.fq-rhythm p { margin: 0; line-height: 1.75; }
.fq-road { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fq-mod { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; }
.fq-mod-rail { position: relative; display: flex; justify-content: center; }
.fq-mod-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--fq-gold), hsl(165 40% 40% / .4)); }
.fq-mod:first-child .fq-mod-rail::before { top: 24px; }
.fq-mod:last-child .fq-mod-rail::before { bottom: auto; height: 24px; }
.fq-mod-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-top: .4rem; border-radius: 50%; background: var(--fq-paper); border: 3px solid var(--fq-gold); color: hsl(165 55% 28%); font-size: 1.2rem; transition: background .3s, color .3s; }
.fq-mod.is-done .fq-mod-dot { background: linear-gradient(135deg, hsl(165 55% 32%), hsl(165 60% 20%)); color: #fff; border-color: var(--fq-gold-2); }
.fq-mod-card { margin-bottom: 1.2rem; padding: clamp(1rem, 2.4vw, 1.4rem); border-radius: var(--fq-r); background: var(--fq-paper); border: 1px solid var(--fq-line); box-shadow: 0 18px 40px -34px rgba(0,0,0,.5); display: grid; gap: .7rem; }
.fq-mod.is-done .fq-mod-card { border-color: hsl(165 40% 40% / .35); }
.fq-mod-card header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.fq-mod-card h3 { margin: 0; flex: 1 1 260px; font-size: 1.3rem; }
.fq-mod-card h3 span { color: var(--fq-gold); }
.fq-mod-weeks { width: 100%; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold-text, #8a6a3e); }
.fq-mod-done { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--fq-line); font-size: .82rem; font-weight: 600; cursor: pointer; }
.fq-mod-done input { accent-color: hsl(165 55% 32%); }
.fq-mod-goal, .fq-mod-read { margin: 0; display: flex; gap: .5rem; align-items: flex-start; line-height: 1.6; font-size: .93rem; }
.fq-mod-goal .bi, .fq-mod-read .bi { color: hsl(165 55% 32%); margin-top: .2rem; }
.fq-lessons { margin: 0; padding: 0; list-style: none; counter-reset: l; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.fq-lessons li { counter-increment: l; position: relative; padding: .8rem .9rem .8rem 2.6rem; border-radius: 14px; background: var(--fq-paper-2); border: 1px solid var(--fq-line); display: grid; gap: .25rem; }
[dir="rtl"] .fq-lessons li { padding: .8rem 2.6rem .8rem .9rem; }
.fq-lessons li::before { content: counter(l); position: absolute; inset-inline-start: .8rem; top: .8rem; font-weight: 800; color: var(--fq-gold); }
.fq-lessons strong { color: var(--fq-head); font-size: .95rem; }
.fq-lessons p { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--fq-muted); }
.fq-mod-media { display: flex; flex-wrap: wrap; gap: .5rem; }
.fq-quiz { padding: .8rem 1rem; border-radius: 14px; background: hsl(45 60% 50% / .08); border: 1px dashed hsl(45 50% 45% / .4); }
.fq-quiz h4 { margin: 0 0 .4rem; font-size: .92rem; display: flex; gap: .4rem; align-items: center; color: var(--fq-head); }
.fq-quiz details { padding: .35rem 0; border-top: 1px solid var(--fq-line); }
.fq-quiz details:first-of-type { border-top: 0; }
.fq-quiz summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.fq-quiz details p { margin: .4rem 0 .2rem; padding: .5rem .7rem; border-radius: 10px; background: var(--fq-paper); font-size: .88rem; line-height: 1.6; }

/* ---------- Études approfondies ---------- */
.fq-sci-nav { display: flex; flex-wrap: wrap; gap: .45rem; }
.fq-sci-nav a { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .85rem; border-radius: 999px; border: 1px solid hsl(var(--h) 40% 45% / .3); background: hsl(var(--h) 50% 50% / .07); text-decoration: none; color: var(--fq-head) !important; font-size: .84rem; font-weight: 600; }
.fq-sci { scroll-margin-top: 140px; display: grid; gap: 1rem; padding: clamp(1.1rem, 3vw, 1.8rem); border-radius: 26px; background: linear-gradient(160deg, hsl(var(--h) 50% 50% / .08), transparent 40%), var(--fq-paper); border: 1px solid hsl(var(--h) 40% 45% / .22); }
.fq-sci-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.fq-sci-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, hsl(var(--h) 55% 40%), hsl(var(--h) 60% 22%)); color: #fff; font-size: 1.6rem; }
.fq-sci-head h2 { margin: .1rem 0 .4rem; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.fq-sci-def { margin: 0 0 .4rem; line-height: 1.7; font-size: 1.02rem; }
.fq-sci-why { margin: 0; display: flex; gap: .45rem; color: var(--fq-muted); line-height: 1.6; }
.fq-sci-why .bi { color: var(--fq-gold); }
.fq-concepts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.fq-concepts li { padding: .4rem .8rem; border-radius: 10px; background: var(--fq-paper-2); border: 1px solid var(--fq-line); font-size: .86rem; }
.fq-maxims { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.fq-maxims .fq-ar { font-size: 1.4rem; text-align: center; }
.fq-maxims .fq-tr { text-align: center; }
.fq-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .8rem; counter-reset: p; }
.fq-path li { position: relative; }
.fq-path-n { position: absolute; z-index: 2; inset-inline-start: -.4rem; top: -.4rem; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h) 55% 38%); color: #fff; font-weight: 800; font-size: .8rem; box-shadow: 0 0 0 3px var(--fq-paper); }
.fq-bodies { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; }
.fq-bodies a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; background: var(--fq-paper); border: 1px solid var(--fq-line); text-decoration: none; color: var(--fq-ink) !important; transition: transform .15s; }
.fq-bodies a:hover { transform: translateY(-2px); }
.fq-bodies a > .bi:first-child { font-size: 1.3rem; color: hsl(165 55% 32%); }
.fq-bodies strong { display: block; font-size: .92rem; color: var(--fq-head); }
.fq-bodies small { color: var(--fq-muted); font-size: .78rem; }

/* ---------- Médiathèque ---------- */
.fq-media { display: grid; gap: 1rem; }
.fq-media-switch { display: inline-flex; gap: .4rem; padding: .35rem; border-radius: 999px; background: var(--fq-paper); border: 1px solid var(--fq-line); justify-self: start; }
.fq-media-switch button { border: 0; font-size: .95rem; padding: .6rem 1.2rem; }
.fq-media section { display: grid; gap: .9rem; }
.fq-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fq-filters select { padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--fq-line); background: var(--c-input, #fff); color: var(--fq-ink); font-size: .88rem; max-width: 100%; }
.fq-filter-grow { flex: 1 1 280px; }
.fq-filter-grow input { width: 100%; min-width: 0; }

/* =====================================================================
   Lecteur intégré (dock)
   ===================================================================== */
.fq-player { position: fixed; z-index: 1080; inset: auto 12px 12px; max-width: 1320px; margin: 0 auto; color: #fff; font-size: .9rem;
  border-radius: 22px; background: linear-gradient(135deg, rgba(8,29,43,.97), rgba(11,47,42,.97)); border: 1px solid rgba(233,201,143,.28);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); backdrop-filter: blur(14px); --h: 165; }
.fq-player button, .fq-player a { color: inherit; font: inherit; }
.fq-player button { background: none; border: 0; cursor: pointer; }
.fq-bar { position: relative; padding: .55rem .8rem .6rem; }
.fq-progress { position: absolute; inset: 0 14px auto; top: -1px; height: 6px; border-radius: 6px; }
.fq-progress > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; pointer-events: none; }
[dir="rtl"] .fq-progress > span { inset: 0 0 0 auto; }
.fq-progress-buf { background: rgba(255,255,255,.18); width: 0; }
.fq-progress-fill { background: linear-gradient(90deg, var(--c-gold, #c89b5e), #f6dc9c); width: 0; box-shadow: 0 0 12px rgba(233,201,143,.6); }
.fq-progress-ab { background: rgba(120,200,255,.35); }
.fq-progress-marks { inset: 0 !important; width: 100%; }
.fq-progress-marks i { position: absolute; top: -3px; width: 4px; height: 12px; border-radius: 2px; background: #fff; opacity: .85; transform: translateX(-50%); }
.fq-progress input { position: absolute; inset: -8px 0; width: 100%; height: 22px; opacity: 0; cursor: pointer; margin: 0; }
[dir="rtl"] .fq-progress input { direction: rtl; }
.fq-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .8rem; align-items: center; padding-top: .35rem; }
.fq-bar-now { display: flex; align-items: center; gap: .7rem; min-width: 0; text-align: start; padding: 0; }
.fq-bar-art { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; font-family: var(--font-heading, Georgia, serif); font-weight: 700; color: #1b1a12; background: radial-gradient(circle at 30% 25%, #fff3d1, var(--c-gold, #c89b5e) 60%, #8a6a3e); overflow: hidden; background-size: cover; background-position: center; }
.fq-bar-text { display: grid; min-width: 0; }
.fq-bar-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.fq-bar-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.65); font-size: .76rem; }
.fq-bar-ctrl { display: flex; align-items: center; gap: .15rem; }
.fq-bar-ctrl button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 1.15rem; transition: background .15s; }
.fq-bar-ctrl button:hover, .fq-bar-opts button:hover { background: rgba(255,255,255,.1); }
.fq-bar-ctrl em { position: absolute; font-style: normal; font-size: .5rem; font-weight: 800; top: 50%; left: 50%; transform: translate(-50%, -40%); }
.fq-bar-ctrl .fq-play { width: 50px; height: 50px; font-size: 1.6rem; color: #1b1a12; background: linear-gradient(135deg, #f6dc9c, var(--c-gold, #c89b5e)); box-shadow: 0 8px 20px -8px rgba(233,201,143,.8); }
.fq-bar-ctrl .fq-play:hover { background: linear-gradient(135deg, #fff0c4, #d6ab70); }
[dir="rtl"] .fq-bar-ctrl .bi-skip-start-fill, [dir="rtl"] .fq-bar-ctrl .bi-skip-end-fill { transform: scaleX(-1); }
.fq-bar-time { display: flex; gap: .3rem; font-variant-numeric: tabular-nums; font-size: .78rem; color: rgba(255,255,255,.75); direction: ltr; }
.fq-bar-opts { display: flex; align-items: center; gap: .1rem; }
.fq-bar-opts button { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; transition: background .15s, color .15s; }
.fq-bar-opts button.is-on { color: var(--c-gold-light, #e9c98f); background: rgba(233,201,143,.14); }
.fq-rate { font-weight: 800; font-size: .8rem !important; padding: 0 .4rem; }
.fq-vol { display: inline-flex; align-items: center; gap: .2rem; }
.fq-vol input { width: 80px; accent-color: var(--c-gold, #c89b5e); }
.fq-player.is-video [data-fq-video-only], .fq-player [data-fq-video-only] { display: none; }
.fq-player.is-video [data-fq-video-only] { display: grid; }
.fq-player.is-video .fq-stage-tools [data-fq-video-only] { display: inline-flex; }

.fq-stage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 1rem; padding: 1rem 1rem .2rem; max-height: min(74vh, 720px, calc(100vh - var(--nx-header-h, 120px) - 120px)); position: relative; }
.fq-stage-main { display: grid; gap: .8rem; align-content: start; min-height: 0; overflow-y: auto; }
.fq-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.fq-screen video { width: 100%; height: 100%; display: block; background: #000; }
.fq-player:not(.is-video) .fq-screen video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.fq-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, hsl(var(--h) 55% 30%), #061922 75%); overflow: hidden; }
.fq-player.is-video .fq-art { display: none; }
.fq-art-ring { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(233,201,143,.25); animation: fqPulse 4s ease-in-out infinite; }
.fq-art-ring.r2 { width: 80%; animation-delay: 1.2s; opacity: .6; }
@keyframes fqPulse { 0%, 100% { transform: scale(.92); opacity: .4; } 50% { transform: scale(1.05); opacity: .9; } }
.fq-player:not(.is-playing) .fq-art-ring { animation-play-state: paused; }
.fq-art-ini { position: relative; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; font-family: var(--font-heading, Georgia, serif); font-size: 2.4rem; font-weight: 700; color: #1b1a12; background: radial-gradient(circle at 30% 25%, #fff3d1, var(--c-gold, #c89b5e) 60%, #8a6a3e); box-shadow: 0 0 0 8px rgba(233,201,143,.12), 0 20px 40px -10px rgba(0,0,0,.7); }
.fq-art-cal { position: absolute; bottom: 10%; font-family: var(--font-arabic) !important; font-size: 1.6rem; color: rgba(233,201,143,.5); }
.fq-eq { position: absolute; bottom: 24%; display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.fq-eq i { width: 4px; border-radius: 2px; background: var(--c-gold-light, #e9c98f); height: 30%; animation: fqEq 1s ease-in-out infinite; }
.fq-eq i:nth-child(2) { animation-delay: .2s; } .fq-eq i:nth-child(3) { animation-delay: .4s; } .fq-eq i:nth-child(4) { animation-delay: .1s; } .fq-eq i:nth-child(5) { animation-delay: .3s; }
@keyframes fqEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.fq-player:not(.is-playing) .fq-eq i { animation-play-state: paused; }
.fq-toast { position: absolute; inset-inline-start: 50%; bottom: 1rem; transform: translateX(-50%); padding: .5rem 1rem; border-radius: 999px; background: rgba(0,0,0,.75); color: #fff; font-size: .84rem; white-space: nowrap; z-index: 2; }
[dir="rtl"] .fq-toast { transform: translateX(50%); }
.fq-stage-info h2 { margin: 0; font-family: var(--font-heading, Georgia, serif); font-size: 1.3rem; color: #fff; line-height: 1.35; }
.fq-stage-series { margin: 0; font-size: .78rem; color: var(--c-gold-light, #e9c98f); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.fq-stage-who { margin: .2rem 0 .6rem; color: rgba(255,255,255,.7); }
.fq-stage-tools { display: flex; flex-wrap: wrap; gap: .35rem; }
.fq-stage-tools > * { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18) !important; background: rgba(255,255,255,.05) !important; font-size: .8rem; text-decoration: none; transition: background .15s; }
.fq-stage-tools > *:hover { background: rgba(255,255,255,.14) !important; }
.fq-stage-tools > .is-on { color: var(--c-gold-light, #e9c98f); border-color: rgba(233,201,143,.5) !important; }
.fq-stage-side { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: .5rem; min-height: 0; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: .5rem; }
.fq-side-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .2rem; }
.fq-side-tabs button { display: grid; justify-items: center; gap: .1rem; padding: .4rem .2rem; border-radius: 10px; font-size: .72rem; color: rgba(255,255,255,.65); position: relative; }
.fq-side-tabs button .bi { font-size: 1rem; }
.fq-side-tabs button.is-active { background: rgba(233,201,143,.14); color: var(--c-gold-light, #e9c98f); }
.fq-side-tabs b { position: absolute; top: 2px; inset-inline-end: 6px; font-size: .6rem; padding: 0 .3rem; border-radius: 6px; background: rgba(255,255,255,.15); }
.fq-side-tabs b:empty { display: none; }
.fq-side-search { position: relative; }
.fq-side-search .bi { position: absolute; inset-inline-start: .7rem; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.5); font-size: .8rem; }
.fq-side-search input { width: 100%; padding: .45rem .7rem .45rem 2rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.2); color: #fff; font-size: .82rem; }
[dir="rtl"] .fq-side-search input { padding: .45rem 2rem .45rem .7rem; }
.fq-side-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 120px; display: grid; align-content: start; gap: .15rem; scrollbar-width: thin; scrollbar-color: rgba(233,201,143,.4) transparent; }
.fq-side-list .row-wrap > button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; width: 100%; padding: .45rem .55rem; border-radius: 10px; text-align: start; }
.fq-side-list .row-wrap > button:hover { background: rgba(255,255,255,.07); }
.fq-side-list li.is-current .row-wrap > button { background: rgba(233,201,143,.16); }
.fq-side-list .n { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: .72rem; font-weight: 700; }
.fq-side-list li.is-current .n { background: var(--c-gold, #c89b5e); color: #1b1a12; }
.fq-side-list .t { min-width: 0; display: grid; }
.fq-side-list .t strong { font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fq-side-list .t strong[lang="ar"] { font-family: var(--font-arabic-ui, var(--font-arabic)); font-size: .9rem; }
.fq-side-list .t small { font-size: .7rem; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fq-side-list .d { font-size: .7rem; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; direction: ltr; }
.fq-side-list .done-mark { color: #8fe0b8; }
.fq-side-list .x { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.6); }
.fq-side-list .x:hover { background: rgba(255,80,80,.2); color: #fff; }
.fq-side-list .empty { padding: 1rem; text-align: center; color: rgba(255,255,255,.55); font-size: .82rem; }
.fq-side-list .row-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.fq-stage-close { position: absolute; top: .4rem; inset-inline-end: .5rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35) !important; z-index: 3; }
.fq-player-fab { position: fixed; z-index: 1079; inset-inline-end: 18px; bottom: 86px; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; color: #1b1a12; background: linear-gradient(135deg, #f6dc9c, var(--c-gold, #c89b5e)); box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.fq-player.is-expanded .fq-bar-ctrl .fq-play { box-shadow: 0 0 0 4px rgba(233,201,143,.2); }
:fullscreen .fq-screen, .fq-screen:fullscreen { border-radius: 0; aspect-ratio: auto; }
body.fq-has-player .fq-page { padding-bottom: 8rem; }

/* ---------- Banque de questions (fiqh/questions) ---------- */
.fq-lvl { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem .18rem .2rem; border-radius: 999px; font-size: .74rem; font-weight: 700; color: hsl(var(--h) 55% 28%); background: hsl(var(--h) 55% 45% / .12); }
.fq-lvl b { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: hsl(var(--h) 50% 38%); color: #fff; font-size: .7rem; }
[data-bs-theme="dark"] .fq-lvl, html.dark .fq-lvl { color: hsl(var(--h) 60% 75%); background: hsl(var(--h) 50% 50% / .18); }
.fq-qb-score { margin-top: 1rem; max-width: 560px; }
.fq-qb-score-bar { display: flex; height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.fq-qb-score-bar span { display: block; height: 100%; width: 0; transition: width .4s ease; }
.fq-qb-score-bar .is-k { background: linear-gradient(90deg, #3fae7d, #6fd3a4); }
.fq-qb-score-bar .is-r { background: linear-gradient(90deg, #e0a440, #f3cf8f); }
.fq-qb-score p { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .55rem 0 0; font-size: .85rem; color: rgba(255,255,255,.82); }
.fq-qb-score p span { display: inline-flex; align-items: center; gap: .35rem; }
.fq-qb-score .bi-check-circle-fill { color: #6fd3a4; }
.fq-qb-score .bi-arrow-repeat { color: #f3cf8f; }

.fq-qb-tools { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; padding: .75rem .9rem; border-radius: 18px; background: color-mix(in srgb, var(--fq-paper) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--fq-line); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.fq-qb-search { flex: 1 1 240px; display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--fq-line); background: var(--fq-paper-2); }
.fq-qb-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fq-ink); font: inherit; outline: none; }
.fq-qb-search:focus-within { outline: 3px solid var(--fq-gold); outline-offset: 2px; }
.fq-qb-search .bi { color: var(--fq-muted); }
.fq-qb-chips, .fq-qb-toggles, .fq-qb-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.fq-qb-chips button { --h: 165; border: 1px solid var(--fq-line); background: var(--fq-paper); color: var(--fq-head); border-radius: 999px; padding: .38rem .75rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.fq-qb-chips button small { opacity: .6; font-weight: 500; }
.fq-qb-chips button.is-active { background: hsl(var(--h) 45% 32%); border-color: transparent; color: #fff; }
.fq-qb-toggles label { position: relative; cursor: pointer; }
.fq-qb-toggles input { position: absolute; opacity: 0; pointer-events: none; }
.fq-qb-toggles span { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .75rem; border-radius: 999px; border: 1px dashed var(--fq-line); font-size: .8rem; font-weight: 600; color: var(--fq-muted); }
.fq-qb-toggles input:checked + span { border-style: solid; border-color: var(--fq-gold); color: var(--fq-head); background: hsl(40 70% 55% / .14); }
.fq-qb-toggles input:focus-visible + span { outline: 3px solid var(--fq-gold); outline-offset: 2px; }
.fq-qb-actions .fq-btn { padding: .45rem .9rem; font-size: .82rem; }
.fq-qb-count { margin: 0; margin-inline-start: auto; font-size: .8rem; color: var(--fq-muted); }

.fq-qb-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.fq-qb-nav { position: sticky; top: calc(var(--nx-header-h, 0px) + 74px); max-height: calc(100vh - var(--nx-header-h, 0px) - 90px); overflow-y: auto; }
.fq-qb-nav ol { list-style: none; margin: 0; padding: .4rem; display: grid; gap: .15rem; border-radius: 18px; background: var(--fq-paper); border: 1px solid var(--fq-line); }
.fq-qb-nav a { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 12px; text-decoration: none; color: var(--fq-ink); font-size: .86rem; font-weight: 600; }
.fq-qb-nav a:hover, .fq-qb-nav a.is-active { background: hsl(165 45% 35% / .1); color: var(--fq-head); }
.fq-qb-nav a.is-active { box-shadow: inset 3px 0 0 var(--fq-gold); }
[dir="rtl"] .fq-qb-nav a.is-active { box-shadow: inset -3px 0 0 var(--fq-gold); }
.fq-qb-nav a .bi { color: var(--fq-gold); }
.fq-qb-nav em { font-style: normal; font-size: .72rem; color: var(--fq-muted); font-variant-numeric: tabular-nums; }
.fq-qb-nav a.is-done em { color: #2f9a6a; font-weight: 700; }
.fq-qb-nav li.is-off { opacity: .4; }

.fq-qb-main { display: grid; gap: 2rem; min-width: 0; }
.fq-qb-ch { scroll-margin-top: calc(var(--nx-header-h, 0px) + 80px); display: grid; gap: 1rem; }
.fq-qb-ch-head { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--fq-r); background: radial-gradient(circle at 100% 0, hsl(40 70% 55% / .16), transparent 55%), linear-gradient(135deg, var(--fq-night), var(--fq-night-2)); color: #fff; }
.fq-qb-ch-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(233,201,143,.14); border: 1px solid rgba(233,201,143,.35); color: var(--fq-gold-2); font-size: 1.5rem; }
.fq-qb-kitab { margin: 0; font-size: 1.15rem; color: var(--fq-gold-2); }
.fq-qb-ch-head h2 { margin: .1rem 0 .35rem; color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.fq-qb-ch-head h2 span { color: var(--fq-gold-2); }
.fq-qb-ch-head p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.6; }
.fq-qb-ch-media { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.fq-qb-ch-media .fq-btn { padding: .48rem .9rem; font-size: .82rem; max-width: 100%; }
.fq-qb-ch-media .fq-btn > span { min-width: 0; }
.fq-qb-ch-media .fq-btn small { display: block; font-size: .7rem; opacity: .75; font-weight: 500; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fq-qb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.fq-qcard { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--fq-paper); border: 1px solid var(--fq-line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.fq-qcard[hidden] { display: none; }
.fq-qcard:hover { box-shadow: 0 14px 30px -22px rgba(0,0,0,.45); transform: translateY(-1px); }
.fq-qcard.is-known { border-color: hsl(150 45% 45% / .55); background: linear-gradient(180deg, hsl(150 50% 45% / .06), transparent 40%), var(--fq-paper); }
.fq-qcard.is-review { border-color: hsl(38 75% 50% / .6); background: linear-gradient(180deg, hsl(38 80% 55% / .08), transparent 40%), var(--fq-paper); }
.fq-qcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.fq-qcard-n { display: grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .3rem; border-radius: 9px; background: var(--fq-paper-2); border: 1px solid var(--fq-line); font-size: .75rem; font-weight: 800; color: var(--fq-head); font-variant-numeric: tabular-nums; }
.fq-qcard-ikh { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: hsl(270 35% 40%); background: hsl(270 40% 55% / .12); }
[data-bs-theme="dark"] .fq-qcard-ikh, html.dark .fq-qcard-ikh { color: hsl(270 60% 80%); }
.fq-qcard-state { margin-inline-start: auto; width: 10px; height: 10px; border-radius: 50%; }
.fq-qcard.is-known .fq-qcard-state { background: #2f9a6a; box-shadow: 0 0 0 4px hsl(150 50% 45% / .18); }
.fq-qcard.is-review .fq-qcard-state { background: #d18f22; box-shadow: 0 0 0 4px hsl(38 80% 55% / .2); }
.fq-qcard-q { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.fq-qcard-reveal { display: none; align-self: flex-start; align-items: center; gap: .4rem; padding: .42rem .85rem; border-radius: 999px; border: 1px dashed var(--fq-gold); background: hsl(40 70% 55% / .08); color: var(--fq-head); font-size: .82rem; font-weight: 700; cursor: pointer; }
.fq-qcard-ans { display: grid; gap: .45rem; padding: .7rem .85rem; border-radius: 14px; background: var(--fq-paper-2); border-inline-start: 3px solid hsl(165 45% 38%); }
.fq-qcard-ans p { margin: 0; line-height: 1.65; font-size: .92rem; }
.fq-qcard-ans .fq-ref { display: flex; align-items: flex-start; font-size: .78rem; line-height: 1.5; }
.fq-qcard-ans .fq-ref .bi { margin-top: .15rem; }
.fq-qcard-note { display: flex; gap: .4rem; padding: .5rem .6rem; border-radius: 10px; background: hsl(270 40% 55% / .08); font-size: .82rem !important; color: var(--fq-ink); }
.fq-qcard-note .bi { color: hsl(270 40% 50%); margin-top: .2rem; }
.fq-qcard-note a { font-weight: 700; }
[data-fq-qbank].is-test .fq-qcard-ans { display: none; }
[data-fq-qbank].is-test .fq-qcard-reveal { display: inline-flex; }
[data-fq-qbank].is-test .fq-qcard.is-open .fq-qcard-ans { display: grid; animation: fq-qin .25s ease; }
@keyframes fq-qin { from { opacity: 0; transform: translateY(-4px); } }
.fq-qcard-self { display: flex; gap: .4rem; margin-top: auto; padding-top: .2rem; }
.fq-qcard-self button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: .35rem; padding: .4rem .6rem; border-radius: 10px; border: 1px solid var(--fq-line); background: none; color: var(--fq-muted); font-size: .78rem; font-weight: 700; cursor: pointer; }
.fq-qcard-self button[data-fq-qmark="k"][aria-pressed="true"] { background: #2f9a6a; border-color: #2f9a6a; color: #fff; }
.fq-qcard-self button[data-fq-qmark="r"][aria-pressed="true"] { background: #d18f22; border-color: #d18f22; color: #fff; }
.fq-qb-books { border-radius: 16px; border: 1px solid var(--fq-line); background: var(--fq-paper); padding: .2rem 1rem; }
.fq-qb-books summary { cursor: pointer; padding: .7rem 0; font-weight: 700; color: var(--fq-head); display: flex; align-items: center; gap: .5rem; }
.fq-qb-books summary small { color: var(--fq-muted); font-weight: 500; }
.fq-qb-books .fq-book-grid { padding-bottom: 1rem; }
.fq-qb-empty { text-align: center; padding: 2rem; color: var(--fq-muted); display: flex; gap: .5rem; justify-content: center; }
.fq-qb-empty[hidden], .fq-qb-ch[hidden] { display: none; }

/* Cartes de révision */
.fq-cards { width: min(560px, calc(100vw - 32px)); padding: 1.1rem; border: 0; border-radius: 24px; background: var(--c-paper, #fffdf8); color: var(--c-ink, #1d2a26); box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); }
.fq-cards::backdrop { background: rgba(4,18,26,.72); backdrop-filter: blur(4px); }
.fq-cards-head { display: flex; align-items: center; gap: .7rem; }
.fq-cards-head h2 { margin: 0; font-size: 1.1rem; display: flex; gap: .45rem; align-items: center; color: var(--c-heading, #0f3a2c); }
.fq-cards-pos { margin-inline-start: auto; font-size: .82rem; color: var(--c-muted, #6b7470); font-variant-numeric: tabular-nums; }
.fq-cards-bar { height: 5px; margin: .8rem 0 1rem; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
.fq-cards-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-gold, #c89b5e), #e9c98f); transition: width .3s; }
.fq-card3d { display: block; width: 100%; min-height: 300px; padding: 0; border: 0; background: none; perspective: 1400px; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.fq-card3d[hidden] { display: none; }
.fq-card3d-inner { position: relative; display: block; min-height: 300px; transition: transform .55s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.fq-card3d.is-flipped .fq-card3d-inner { transform: rotateY(180deg); }
.fq-card3d-face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow-y: auto; }
.fq-card3d-face.is-front { justify-content: center; align-items: center; text-align: center; color: #fff; background: radial-gradient(circle at 100% 0, rgba(233,201,143,.25), transparent 55%), linear-gradient(135deg, #081d2b, #0b2f2a); }
.fq-card3d-face.is-front small { color: #e9c98f; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.fq-card3d-face.is-front strong { font-family: var(--font-heading, Georgia, serif); font-size: clamp(1.1rem, 3vw, 1.35rem); line-height: 1.5; }
.fq-card3d-face.is-front em { font-style: normal; font-size: .78rem; color: rgba(255,255,255,.6); display: flex; gap: .35rem; }
.fq-card3d-face.is-back { transform: rotateY(180deg); background: var(--c-paper-2, #faf7f0); border: 1px solid rgba(0,0,0,.08); line-height: 1.7; }
.fq-card3d-face.is-back p { margin: 0; }
.fq-card3d-face.is-back .fq-ref { display: flex; gap: .35rem; font-size: .8rem; color: var(--c-muted, #6b7470); }
.fq-card3d-face.is-back .fq-ref .bi { color: var(--c-gold, #c89b5e); }
.fq-card3d-face.is-back .fq-qcard-note { display: flex; gap: .4rem; padding: .5rem .6rem; border-radius: 10px; background: hsl(270 40% 55% / .08); font-size: .84rem; }
.fq-cards-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.fq-cards-foot .fq-btn { justify-content: center; }
.fq-cards-foot .fq-btn[hidden] { display: none; }
.fq-cards-done { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.4rem 1rem; text-align: center; font-weight: 700; color: var(--c-heading, #0f3a2c); }
.fq-cards-done[hidden] { display: none; }
.fq-cards-done .bi { font-size: 2.6rem; color: var(--c-gold, #c89b5e); }
.fq-cards-keys { margin: .8rem 0 0; text-align: center; font-size: .72rem; color: var(--c-muted, #6b7470); }
[data-bs-theme="dark"] .fq-cards, html.dark .fq-cards { background: #0f1f1c; color: #e8efe9; }
[data-bs-theme="dark"] .fq-card3d-face.is-back, html.dark .fq-card3d-face.is-back { background: #13261f; border-color: rgba(255,255,255,.08); }
[data-bs-theme="dark"] .fq-cards-head h2, [data-bs-theme="dark"] .fq-cards-done, html.dark .fq-cards-head h2, html.dark .fq-cards-done { color: #e9c98f; }
@media (max-width: 1100px) {
  .fq-qb-layout { grid-template-columns: minmax(0, 1fr); }
  .fq-qb-nav { position: static; max-height: none; }
  .fq-qb-nav ol { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .fq-qb-nav a { white-space: nowrap; }

}
@media (max-width: 760px) { .fq-qb-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .fq-qb-ch-head { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .fq-qb-ch-icon { width: 46px; height: 46px; font-size: 1.2rem; }
  .fq-qb-count { margin-inline-start: 0; }
  .fq-card3d, .fq-card3d-inner { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) { .fq-card3d-inner, .fq-qcard { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fq-school-grid, .fq-imams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fq-layout { grid-template-columns: minmax(0, 1fr); }
  .fq-sticky { position: static; }
  .fq-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fq-stage { grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - var(--nx-header-h, 120px) - 120px); overflow-y: auto; }
  .fq-stage-side { max-height: 340px; }
}
@media (max-width: 900px) {
  .fq-hero-inner, .fq-method { grid-template-columns: minmax(0, 1fr); }
  .fq-stairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fq-step { transform: none; }
  .fq-start-grid, .fq-roots, .fq-out-grid, .fq-types { grid-template-columns: minmax(0, 1fr); }
  .fq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fq-level-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fq-proofs, .fq-salaf, .fq-imams-full, .fq-causes, .fq-lessons, .fq-rules { grid-template-columns: minmax(0, 1fr); }
  .fq-hide-sm { display: none !important; }
  .fq-bar-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .fq-bar-time { display: none; }
}
@media (max-width: 600px) {
  .fq-page { padding: .6rem 16px 8rem; gap: 1.2rem; }
  .fq-hero { border-radius: 22px; }
  .fq-stairs, .fq-school-grid, .fq-imams { grid-template-columns: minmax(0, 1fr); }
  .fq-case-grid { grid-template-columns: minmax(0, 1fr); }
  .fq-book { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .fq-book-grid, .fq-book-grid-sm, .fq-path, .fq-audio-grid, .fq-bodies { grid-template-columns: minmax(0, 1fr); }
  .fq-filter input { min-width: 0; width: 100%; }
  .fq-filter { width: 100%; }
  .fq-hide-xs { display: none !important; }
  .fq-player { inset: auto 6px 6px; border-radius: 18px; }
  .fq-bar-art { width: 38px; height: 38px; }
  .fq-bar-ctrl button { width: 34px; height: 34px; }
  .fq-bar-ctrl .fq-play { width: 44px; height: 44px; }
  .fq-bar-opts [data-fq-act="rate"] { display: none; }
  .fq-mod { grid-template-columns: 40px minmax(0, 1fr); gap: .6rem; }
  .fq-mod-dot { width: 38px; height: 38px; font-size: 1rem; }
  .fq-table tbody th { width: 110px; }
  .fq-pager { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .fq-hero-pattern, .fq-art-ring, .fq-eq i, .fq-loading span { animation: none !important; }
  .fq-step a, .fq-school, .fq-book, .fq-audio, .fq-vcard { transition: none; }
}
@media print {
  .fq-player, .fq-player-fab, .fq-tabs { display: none !important; }
}
