/* Site compagnon : même identité que le livre et sa couverture (vert profond, or, crème ; Amiri, EB Garamond).
   Pensé d'abord pour le téléphone. */
:root { --gold: #9a7b3c; --gold-2: #c8a55a; --gold-soft: #e6d9bd; --cream: #fbf6ec; --ink: #1d1d1b;
        --muted: #5b5853; --green: #10302a; --green-2: #184239; --paper: #fffdf8;
        /* Or foncé pour les petits textes : contraste 5,3 sur crème (l'or --gold, 3,7, ne sert qu'aux grands titres,
           aux filets et aux icônes ; seuil WCAG AA : 4,5 pour le texte courant). */
        --gold-ink: #7d6230; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font: 18px/1.55 "EB Garamond", "Amiri", serif; }
a { color: var(--gold-ink); }
main { max-width: 820px; margin: 0 auto; padding: 0 16px; }
h2 { font-weight: 600; font-size: 24px; text-align: center; margin: 48px 0 6px; letter-spacing: .03em; }
h2::after { content: ""; display: block; width: 160px; height: 10px; margin: 10px auto 18px;
            background: url("assets/divider.svg") center/contain no-repeat; }
.logo { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; margin-right: 8px;
        background: url("assets/star-clair.svg") center/contain no-repeat; }

/* Bandeau du haut */
.top { background: var(--green) url("assets/motif.svg") 0 0/56px; padding: 12px 18px; display: flex;
       align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top a { color: var(--gold-2); text-decoration: none; }
.top .brand { letter-spacing: .22em; text-transform: uppercase; font-size: 15px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: #efe6cf; }

/* Accueil */
.hero { margin: 0 calc(50% - 50vw); padding: 56px max(24px, calc(50vw - 410px)) 60px; text-align: center; color: #efe6cf;
        background: linear-gradient(#10302aee, #10302af5), url("assets/motif.svg") 0 0/70px, var(--green);
        border-bottom: 3px double var(--gold-2); }
.hero .star { width: 64px; height: 64px; margin: 0 auto 6px; background: url("assets/star-clair.svg") center/contain no-repeat; }
.hero .basm { font: 30px/1.8 "Amiri", serif; color: var(--gold-2); margin: 0; direction: rtl; }
.hero h1 { font-weight: 400; font-size: 36px; letter-spacing: .06em; margin: 4px 0 12px; }
.hero .lead { max-width: 560px; margin: 0 auto 26px; font-size: 19px; font-style: italic; }
.cta { display: inline-block; background: var(--gold-2); color: var(--green); padding: 12px 28px; border-radius: 30px;
       text-decoration: none; font-weight: 600; letter-spacing: .04em; box-shadow: 0 3px 10px #0004; }
.cta:hover { background: #d7b86c; }
.steps ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.steps li { display: flex; }   /* cartes toutes de la même hauteur, quel que soit leur texte */
.steps .carte { background: var(--cream); border: 1px solid var(--gold-soft); border-radius: 12px; text-align: center; }
.steps .i { display: block; width: 44px; height: 44px; margin: 0 auto 8px; line-height: 44px; border-radius: 50%;
            border: 1px solid var(--gold); color: var(--gold-ink); font: 22px/44px "Amiri", serif; }
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.shelf { list-style: none; padding: 0; }
.book { display: flex; gap: 20px; align-items: center; padding: 18px; border-radius: 14px; background: #fff;
        border: 1px solid var(--gold-soft); box-shadow: 0 4px 18px #10302a14; color: var(--ink); text-decoration: none; transition: transform .15s; }
.book:hover { transform: translateY(-2px); }
.book .info span { display: block; }
.book .info strong { font-size: 22px; }
.book .info span:first-of-type { font-style: italic; color: var(--muted); }
.book .count { font-size: 15px; color: var(--gold-ink); margin-top: 4px; }
.book .go { margin-top: 8px; font-weight: 600; color: var(--green-2); }
.soon, .promise p { text-align: center; color: var(--muted); font-style: italic; max-width: 620px; margin: 10px auto; }

/* Mini-couverture, reprise de la vraie couverture */
.mini-cover { flex: 0 0 auto; width: 120px; height: 172px; display: flex; flex-direction: column; align-items: center;
              justify-content: center; gap: 4px; background: var(--green) url("assets/motif.svg") 0 0/30px; border-radius: 4px 8px 8px 4px;
              outline: 3px double var(--gold-2); outline-offset: -9px; box-shadow: 4px 6px 14px #0003, inset 6px 0 8px #0003; }
.mini-cover .ar { font: 700 30px/1.5 "Amiri", serif; color: var(--gold-2); }
.mini-cover .fr { color: #efe6cf; font-size: 12px; letter-spacing: .14em; }

/* Page d'un livre */
.hero.small { display: flex; gap: 24px; align-items: center; text-align: left; padding: 32px 24px; }
.hero.small h1 { font-size: 30px; margin: 0; }
.hero.small .subtitle { color: var(--gold-2); font-style: italic; margin: 4px 0 10px; }
.toc { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.toc a { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 14px;
         background: #fff; border: 1px solid var(--gold-soft); border-radius: 12px; color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--gold); background: var(--cream); }
.toc .n { width: 40px; height: 40px; line-height: 38px; text-align: center; border: 1px solid var(--gold); color: var(--gold-ink);
          border-radius: 50%; font-size: 15px; }
.toc .t strong { display: block; font-weight: 600; }
.toc .t em { color: var(--muted); font-size: 15px; }
.toc .ar { font: 22px/1.4 "Amiri", serif; color: var(--gold); direction: rtl; }
.toc .p { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 560px) { .toc a { grid-template-columns: 40px 1fr auto; } .toc .p { grid-column: 2 / 4; margin-top: -6px; }
                            .hero.small { flex-direction: column; text-align: center; } .book { flex-direction: column; text-align: center; } }

/* Pied de page */
.credits { margin-top: 56px; padding: 28px 18px 18px; font-size: 14px; color: #cfc6ad; text-align: center;
           background: var(--green) url("assets/motif.svg") 0 0/56px; }
.credits a { color: var(--gold-2); }
.credits p { max-width: 720px; margin: 6px auto; }
.brand-foot { color: var(--gold-2); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 0; }
.sous-foot { margin-top: 2px; font-style: italic; opacity: .8; font-size: 15px; }

/* Sourate : mêmes blocs que le livre (build.sura_html) */
.where { text-align: center; font-style: italic; color: var(--muted); font-size: 15px; margin: 18px 0 8px; }
.hint { text-align: center; color: var(--muted); font-size: 14px; margin: -4px 0 10px; }
/* Écoute mot par mot : le mot se touche ; seul son fond change (jamais la lettre, pour ne pas gêner l'écriture liée). */
.ar .w.mot { cursor: pointer; border-radius: 8px; transition: background-color .2s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .ar .w.mot:hover { background: #9a7b3c1f; } }
.ar .w.dit { background: #9a7b3c38; box-shadow: 0 0 0 2px #9a7b3c38; }
.ar .w.suivi { background: #9a7b3c2b; box-shadow: 0 0 0 2px #9a7b3c2b; }
.ar .w { transition: background-color .18s var(--ease), box-shadow .18s var(--ease), color .4s var(--ease); }
/* Mode « par cœur » : l'arabe et la translittération se masquent (la place reste, rien ne saute) ; chaque mot touché
   ou récité se dévoile en fondu, le verset écouté en entier aussi. La traduction reste comme indice. */
.verse .ar, .verse .tr, .basmala .ar, .basmala .tr { transition: color .4s var(--ease), background-color .3s var(--ease); }
.memo .playable:not(.vu) .ar .w:not(.vu) { color: transparent; background: #9a7b3c17; }
.memo .playable.sans-mots:not(.vu) .ar { color: transparent; background: #9a7b3c10; border-radius: 8px; }
.memo .playable:not(.vu) .tr { color: transparent; background: #9a7b3c0d; border-radius: 6px; }
/* Plage en boucle : un filet doré discret sur les versets concernés. */
.verse { transition: box-shadow var(--t-moyen) var(--ease), background-color var(--t-moyen) var(--ease); }
.verse.plage:not(.on) { box-shadow: inset 3px 0 0 #c8a55a88; }
.player .plage { display: flex; align-items: center; gap: 6px; color: #efe6cf; }
.player .plage select { min-height: 38px; min-width: 64px; padding: 0 8px; border-radius: 19px; border: 1px solid #c8a55a88;
                        background: transparent; color: #efe6cf; font: 16px "EB Garamond", serif; }
.player .plage select option { color: var(--ink); }
.sura-head { background: url("assets/cartouche.svg") center/100% 100% no-repeat; text-align: center; padding: 18px 40px 14px; }
.sura-ar { font: 700 28px/1.6 "Amiri", serif; color: var(--gold); direction: rtl; }
.sura-fr { font-weight: 600; font-size: 18px; }
.sura-meta { font-size: 14px; font-style: italic; color: var(--muted); text-align: center; margin: 6px 0 14px; }
.basmala { text-align: center; padding: 8px 8px 16px; margin-bottom: 8px;
           background: url("assets/divider.svg") bottom center/180px 10px no-repeat; }
.basmala .ar { font: 30px/2 "Amiri Quran", serif; direction: rtl; }
.basmala .tr, .verse .tr { font-style: italic; color: #3f3d39; }
.basmala .fr { font-style: italic; }
.verse { padding: 10px 12px 12px; margin: 6px 0; background: #fff; border: 1px solid var(--gold-soft); border-radius: 12px; }
.verse .ar { direction: rtl; text-align: right; font: 30px/2.1 "Amiri Quran", serif; }
.verse .end { color: var(--gold); }
.verse .tr { margin: 2px 0 6px; padding-left: 10px; border-left: 2px solid var(--gold-soft); }
.verse .num { display: inline-block; min-width: 24px; height: 24px; line-height: 22px; border-radius: 50%;
              border: 1px solid var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 600; text-align: center; margin-right: 6px; }
.playable { cursor: pointer; transition: background .2s, box-shadow .2s; }
@media (hover: hover) { .playable:hover { background: #fffaf0; } }
.basmala.playable { border-radius: 12px; }
.playable.on { background: var(--cream); box-shadow: inset 4px 0 0 var(--gold), 0 4px 14px #9a7b3c22; }
.no-tr .verse .tr, .no-tr .basmala .tr { display: none; }
.no-fr .verse .fr, .no-fr .basmala .fr { display: none; }
nav.suras { display: flex; justify-content: space-between; margin: 24px 0; font-size: 16px; }

/* Lecteur, fixé en bas de l'écran */
.player { position: fixed; left: 0; right: 0; bottom: 0; background: var(--green); color: #efe6cf;
          padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
          box-shadow: 0 -4px 18px #0003; z-index: 10; overscroll-behavior: contain; }
.player .progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #c8a55a33; }
.player .progress span { display: block; height: 100%; background: var(--gold-2); transform-origin: left; transform: scaleX(0);
                         transition: transform .25s linear; }
.player .row { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.player button { font: inherit; cursor: pointer; }
.player .row > button { flex: 0 0 auto; font-size: 20px; width: 44px; height: 44px; border-radius: 50%;
                        border: 1px solid var(--gold-2); background: transparent; color: var(--gold-2); }
.player .row > button.main { width: 54px; height: 54px; background: var(--gold-2); color: var(--green); font-size: 22px; position: relative; }
.player.loading button.main::after { content: ""; position: absolute; inset: -5px; border-radius: 50%;
                                     border: 2px solid transparent; border-top-color: #efe6cf; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player .now { flex: 1; min-width: 0; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .now a { color: var(--gold-2); font-style: normal; }
.player .row > button.back { flex: 1; width: auto; height: 40px; border-radius: 20px; font-size: 15px; background: #c8a55a22; }
.player .row > button.back[hidden], .player .now[hidden] { display: none; }
.player .row > button.gear { width: 42px; height: 42px; font-size: 18px; border-color: #c8a55a88; }
.player .row > button.gear[aria-expanded="true"] { background: #c8a55a33; }
.player .opts[hidden] { display: none; }
.player .opts { flex-wrap: wrap; gap: 10px 18px; padding: 12px 0 4px; font-size: 15px; max-height: 50vh; overflow-y: auto; }
.player .opt { display: flex; align-items: center; gap: 8px; }
.player .opt > span { color: #cfc6ad; min-width: 84px; }
.seg { display: inline-flex; border: 1px solid #c8a55a88; border-radius: 22px; overflow: hidden; }
.seg button { min-width: 44px; min-height: 38px; padding: 0 12px; background: transparent; color: #efe6cf; border: 0;
              border-left: 1px solid #c8a55a44; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--gold-2); color: var(--green); font-weight: 600; }
.seg[data-o="size"] button:nth-child(1) { font-size: 13px; } .seg[data-o="size"] button:nth-child(3) { font-size: 21px; }
.player .voice { margin: 0; width: 100%; font-size: 13px; color: #cfc6ad; font-style: italic; }
@media (max-width: 560px) { .player .opt { width: 100%; } .player .opt > span { min-width: 92px; }
                            .seg { flex: 1; } .seg button { flex: 1; padding: 0 6px; } }

/* Confort tactile, clavier et mouvement */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
.credits { padding-bottom: calc(18px + var(--bar-h, 0px)); }
@media (max-width: 560px) { .verse .ar { font-size: 27px; } .basmala .ar { font-size: 27px; } .verse { padding: 8px 10px 10px; } }
a, button, .playable { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.player :focus-visible { outline-color: #efe6cf; }
body[data-size="1"] .verse .ar, body[data-size="1"] .basmala .ar { font-size: 23px !important; } body[data-size="3"] .verse .ar, body[data-size="3"] .basmala .ar { font-size: 36px !important; line-height: 2.2; }
@media (hover: none) { .playable:hover, .toc a:hover { background: inherit; } .book:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

@media (min-width: 900px) { .toc { grid-template-columns: 1fr 1fr; } .hero.small { justify-content: center; } }

/* Pages annexes (mentions légales, confidentialité, 404) */
.doc { max-width: 680px; margin: 36px auto 0; }
.doc h1 { font-weight: 400; font-size: 32px; color: var(--green); margin: 0 0 18px; }
.doc h2 { font-size: 20px; color: var(--green); margin: 28px 0 6px; text-align: left; }
.doc h2::after { display: none; }
.doc p { line-height: 1.6; margin: 6px 0; }
.doc.center { text-align: center; padding: 30px 0; }
.doc.center .cta { margin-top: 16px; }
.todo { background: #fbe3dd; color: #8a2a12; padding: 0 6px; border-radius: 4px; font-style: italic; }
.credits .legal { font-size: 13px; }
.credits .legal a { color: #cfc6ad; }

/* Installer sur le téléphone */
.install { text-align: center; margin: 40px auto 0; max-width: 620px; }
.install p { color: var(--muted); }
.install [hidden] { display: none; }
.install button.cta { border: 0; font: inherit; cursor: pointer; margin-top: 8px; }
.install .how { font-style: italic; }
@media (display-mode: standalone) { .install { display: none; } }

/* Pied de page toujours en bas, même sur une page courte */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }

/* =====================================================================
   Version 2 (06/12/2026) : accueil cinématique, livre en volume, animations douces.
   Règle : le texte arabe n'est jamais animé, déformé ni découpé.
   ===================================================================== */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --t-court: .18s; --t-moyen: .35s; }
.ic { width: 28px; height: 28px; display: block; }

/* Blocs animés : cachés seulement si les animations vont les montrer (sinon toujours visibles).
   Filet de sécurité : s'ils ne sont pas montrés au bout de 2,5 s, ils apparaissent quand même. */
@keyframes din-montre { to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .js .vitrine [data-intro], .js .vitrine [data-reveal], .js .vitrine .toc li, .js .vitrine .book3d.big, .js .vitrine .book3d.small {
    opacity: 0; animation: din-montre .4s 2.5s forwards; }
  .anim-on .vitrine [data-intro], .anim-on .vitrine [data-reveal], .anim-on .vitrine .toc li,
  .anim-on .vitrine .book3d.big, .anim-on .vitrine .book3d.small { animation: none; }
}
.anim-off .vitrine [data-intro], .anim-off .vitrine [data-reveal], .anim-off .vitrine .toc li,
.anim-off .vitrine .book3d { opacity: 1 !important; animation: none !important; }

/* En-tête posé sur le bandeau de l'accueil */
.accueil .top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: transparent;
                padding-top: max(12px, env(safe-area-inset-top)); }

/* Bandeau plein écran */
.hero.full { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
             justify-content: center; padding: 96px max(22px, calc(50vw - 560px)) 70px; text-align: left; border-bottom: 0;
             background: radial-gradient(120% 80% at 75% 45%, #1d4a3f 0%, #10302a 55%, #0a221d 100%); }
.hero-bg { position: absolute; inset: -60px; background: url("assets/motif.svg") 0 0/84px; opacity: .22; pointer-events: none;
           -webkit-mask-image: radial-gradient(80% 70% at 70% 45%, #000 20%, transparent 80%);
                   mask-image: radial-gradient(80% 70% at 70% 45%, #000 20%, transparent 80%); }
@media (prefers-reduced-motion: no-preference) { .hero-bg { animation: din-motif 90s linear infinite; } }
@keyframes din-motif { to { background-position: 84px 168px; } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero.full .basm { font-size: clamp(24px, 3.2vw, 34px); text-align: left; margin: 0 0 6px; }
.hero.full h1 { font-weight: 400; font-size: clamp(46px, 7.4vw, 92px); line-height: .98; letter-spacing: .01em; margin: 0 0 22px; }
.hero.full h1 span { display: block; }
.hero.full h1 .or { color: var(--gold-2); font-style: italic; }
.hero.full .lead { margin: 0 0 30px; max-width: 520px; font-size: clamp(18px, 1.6vw, 21px); color: #e2d9c1; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { transition: background var(--t-court) var(--ease), transform var(--t-court) var(--ease), box-shadow var(--t-court) var(--ease);
       min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.cta:active { transform: scale(.97); }
.cta.ghost { background: transparent; color: #efe6cf; box-shadow: inset 0 0 0 1px #c8a55a99; }
.cta.ghost:hover { background: #c8a55a1f; }
.hero-book { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1400px; padding: 20px 0; }
.hero-book .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
                   background: radial-gradient(circle, #c8a55a55 0%, #c8a55a00 65%); filter: blur(10px); }
.scroll-hint { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
               width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold-2); border-radius: 50%; }
.scroll-hint .ic { width: 26px; height: 26px; }
@media (prefers-reduced-motion: no-preference) { .scroll-hint .ic { animation: din-flotte 2.4s var(--ease) infinite; } }
@keyframes din-flotte { 50% { transform: translateY(6px); } }

/* Livre en volume (photos de la vraie couverture) */
.book3d { --w: 260px; --d: calc(var(--w) * .085); --ry: 24deg; width: var(--w); aspect-ratio: 2 / 3; position: relative;
          perspective: 1400px; flex: 0 0 auto; }
.book3d .b3-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(4deg);
                    transition: transform .6s var(--ease); }
.book3d .b3-front, .book3d .b3-spine, .book3d .b3-pages, .book3d .b3-back { position: absolute; top: 0; height: 100%; display: block; }
.book3d .b3-front { left: 0; width: 100%; object-fit: cover; border-radius: 2px 5px 5px 2px; transform: translateZ(calc(var(--d) / 2));
                    box-shadow: inset 4px 0 6px #0005; }
.book3d .b3-spine { left: calc(50% - var(--d) / 2); width: var(--d); object-fit: cover; transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.book3d .b3-pages { left: calc(50% - var(--d) / 2); width: var(--d); top: 1.5%; height: 97%;
                    transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
                    background: repeating-linear-gradient(90deg, #f4ecda 0 1px, #e3d6b8 1px 2px); }
.book3d .b3-back { left: 0; width: 100%; background: #0d2823; border-radius: 5px 2px 2px 5px; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg);
                   box-shadow: 0 30px 60px #0008; }
.book3d.big { --w: clamp(190px, 26vw, 330px); filter: drop-shadow(0 30px 40px #0007); }
.book3d.small { --w: 150px; --ry: 22deg; filter: drop-shadow(0 16px 22px #0006); }
.book3d.tiny { --w: 112px; --ry: 18deg; filter: drop-shadow(0 10px 14px #0004); }
@media (hover: hover) { .hero-book:hover .b3-inner, .book:hover .b3-inner { transform: rotateY(calc(var(--ry) - 10deg)) rotateX(4deg); } }
@media (prefers-reduced-motion: reduce) { .book3d .b3-inner { transition: none; } }

@media (max-width: 760px) {
  .hero.full { padding-top: 108px; padding-bottom: 86px; text-align: center; }
  .hero-in { grid-template-columns: 1fr; gap: 6px; }
  .hero-book { order: -1; padding: 4px 0 8px; }
  .book3d.big { --w: min(150px, 40vw); }
  .hero.full .basm { text-align: center; }
  .hero.full .lead { margin-left: auto; margin-right: auto; }
  .ctas { justify-content: center; }
  .hero.full h1 { font-size: clamp(40px, 12vw, 58px); margin-bottom: 14px; }
  .hero.full h1 span { display: inline; }
}
@media (max-height: 640px) and (max-width: 760px) { .book3d.big { --w: 110px; } }

/* Comment ça marche */
.steps .carte { position: relative; transition: transform var(--t-moyen) var(--ease), box-shadow var(--t-moyen) var(--ease),
                 opacity var(--t-moyen) var(--ease), border-color var(--t-moyen) var(--ease); }
@media (hover: hover) { .steps .carte:hover { transform: translateY(-3px); box-shadow: 0 10px 26px #10302a14; } }
.step-ic { display: block; color: var(--gold); margin: 0 auto 6px; width: 28px; }
.steps .i { width: 30px; height: 30px; font-size: 17px; line-height: 30px; position: absolute; top: 12px; right: 12px; margin: 0; }

/* Démonstration du lecteur (illustration, sans texte) */
.demo { max-width: 420px; margin: 26px auto 8px; padding: 16px 16px 0; background: var(--paper); border: 1px solid var(--gold-soft);
        border-radius: 16px; box-shadow: 0 12px 36px #10302a17; overflow: hidden; }
.d-card { border: 1px solid var(--gold-soft); border-radius: 10px; background: #fff; padding: 10px 12px; margin-bottom: 8px;
          display: grid; gap: 6px; justify-items: end; }
.d-card i { display: block; height: 9px; width: 78%; border-radius: 5px; background: #d9ccad; }
.d-card i.s { width: 46%; justify-self: start; background: #e9e0cc; }
.d-card i.t { width: 64%; justify-self: start; background: #efe8d8; }
.d-bar { margin: 4px -16px 0; background: var(--green); height: 54px; position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; }
.d-prog { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #c8a55a33; }
.d-prog b { display: block; height: 100%; width: 100%; background: var(--gold-2); transform-origin: left; transform: scaleX(0); }
.d-play { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-2); position: relative; }
.d-play::after { content: ""; position: absolute; left: 11px; top: 9px; border: 6px solid transparent; border-left: 9px solid var(--green); border-right: 0; }
.d-wave { display: flex; gap: 3px; align-items: center; height: 20px; }
.d-wave b, .wave b { display: block; width: 3px; height: 30%; border-radius: 2px; background: var(--gold-2); }
.demo-cap { text-align: center; color: var(--muted); font-style: italic; margin: 10px auto 0; max-width: 460px; }
@media (prefers-reduced-motion: no-preference) {
  .d-card { animation: din-verset 9s var(--ease) infinite; }
  .d-card:nth-child(2) { animation-delay: 3s; } .d-card:nth-child(3) { animation-delay: 6s; }
  .d-prog b { animation: din-prog 3s linear infinite; }
  .d-wave b, .playing .wave b { animation: din-onde 1s ease-in-out infinite; }
  .d-wave b:nth-child(2), .wave b:nth-child(2) { animation-delay: .15s; } .d-wave b:nth-child(3), .wave b:nth-child(3) { animation-delay: .3s; }
  .d-wave b:nth-child(4), .wave b:nth-child(4) { animation-delay: .45s; }
}
@keyframes din-verset { 0%, 30% { background: var(--cream); box-shadow: inset 4px 0 0 var(--gold), 0 4px 14px #9a7b3c22; } 34%, 100% { background: #fff; box-shadow: none; } }
@keyframes din-prog { to { transform: scaleX(1); } }
@keyframes din-onde { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* Pensé pour apprendre */
.features ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.features li { background: #fff; border: 1px solid var(--gold-soft); border-radius: 14px; padding: 18px 16px; font-size: 16px; color: var(--muted); }
.features li .ic { color: var(--gold); margin-bottom: 8px; }
.features strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 2px; }

/* Étagère et sommaire */
.book { gap: 26px; padding: 22px 22px 22px 30px; transition: transform var(--t-moyen) var(--ease), box-shadow var(--t-moyen) var(--ease); }
@media (hover: hover) { .book:hover { box-shadow: 0 14px 34px #10302a1f; } }
.book .go { display: inline-flex; gap: 6px; }
.hero.small { gap: 34px; padding: 40px 24px 36px; }
.hero.small .kicker, .kicker { color: var(--gold-2); letter-spacing: .22em; text-transform: uppercase; font-size: 13px; margin: 0 0 4px; }
.hs-book { perspective: 1200px; padding: 6px 10px; }
.toc a { transition: border-color var(--t-court) var(--ease), background var(--t-court) var(--ease), transform var(--t-court) var(--ease); }
.toc a:active { transform: scale(.985); }

/* Notre engagement */
.promise { text-align: center; }
.promise-star { display: block; width: 46px; height: 46px; margin: 40px auto -30px; background: url("assets/star.svg") center/contain no-repeat; }

/* Passage d'une page à l'autre en fondu (navigateurs qui le permettent) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.player { view-transition-name: lecteur; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Lecteur : icônes vectorielles, onde dorée pendant la récitation */
.player .row > button svg { width: 22px; height: 22px; display: block; margin: auto; }
.player .row > button.main svg { width: 24px; height: 24px; }
.player .row > button.gear svg { width: 20px; height: 20px; }
.player .row > button { transition: background var(--t-court) var(--ease), transform var(--t-court) var(--ease); }
.player .row > button:active { transform: scale(.92); }
.wave { display: none; gap: 2px; align-items: center; height: 14px; margin-right: 6px; vertical-align: -1px; }
.playing .wave { display: inline-flex; }
.wave b { width: 2px; }
.playable { transition: background var(--t-moyen) var(--ease), box-shadow var(--t-moyen) var(--ease); }
.playable:active { background: #fffaf0; }
.player .row > button.gear { width: 44px; height: 44px; }

/* ── Démonstrations « Comment ça marche » (06/12/2026) ─────────────────────────────────────────────
   Toucher une étape l'agrandit un peu et déroule sa petite scène animée dans la carte même (pas de plein écran),
   faite de vraies captures du livre et du site (outils/demos.py). « Réduire les animations » : scènes fixes, état final visible. */
.step { all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; padding: 22px 18px 16px; cursor: pointer;
        text-align: center; border-radius: 12px; color: var(--ink); font: 18px/1.55 "EB Garamond", "Amiri", serif; }
.step:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.step strong { display: block; font-size: 19px; margin-bottom: 4px; }
.step .txt { display: block; }
.step .voir { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--gold-ink);
              border-bottom: 1px solid transparent; transition: border-color var(--t-moyen) var(--ease); }
.step .voir span { display: inline-block; transition: transform var(--t-moyen) var(--ease); }
@media (hover: hover) {
  .step:hover .voir { border-color: currentColor; }
  .step:hover .voir span { transform: translateX(4px); }
}
.step:active { transform: scale(.985); }
@media (prefers-reduced-motion: no-preference) {
  .step:hover .step-ic .ic, .step:focus-visible .step-ic .ic { animation: din-ic 1.1s var(--ease) infinite; }
  .steps li:nth-child(1) .step:hover .ic, .steps li:nth-child(1) .step:focus-visible .ic { animation-name: din-ic-livre; }
  .steps li:nth-child(2) .step:hover .ic, .steps li:nth-child(2) .step:focus-visible .ic { animation-name: din-ic-scan; }
  .steps li:nth-child(3) .step:hover .ic, .steps li:nth-child(3) .step:focus-visible .ic { animation-name: din-ic-ecoute; }
}
@keyframes din-ic-livre { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(4deg); } }
@keyframes din-ic-scan { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes din-ic-ecoute { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-3px); } 50% { transform: translateY(0); } 75% { transform: translateY(-2px); } }

/* Grande version d'une carte : elle naît de la carte touchée et grandit dans les deux sens (mêmes proportions
   pendant le mouvement), puis son contenu apparaît. Seules transform et opacity sont animées : fluide même sur un
   petit téléphone. Les autres cartes s'effacent ; la page reste visible autour. */
.steps { position: relative; }
.steps .carte { height: 100%; }
.steps ol.ouvert .carte { opacity: .45; }
.steps .carte.source { opacity: 0 !important; transition: none; }
.zoom { position: absolute; z-index: 20; background: var(--cream); border: 1px solid var(--gold); border-radius: 16px;
        box-shadow: 0 24px 60px #10302a33; transform-origin: 0 0; will-change: transform; text-align: center; }
.zoom[hidden] { display: none; }
.zoom-c { position: relative; padding: 18px 18px 18px; }
.zoom-k { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px;
          letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.zoom-k .step-ic { display: inline-block; width: 22px; margin: 0; }
.zoom h3 { margin: 2px 0 12px; font-size: 24px; font-weight: 600; }
.zoom p:not(.zoom-k) { margin: 12px 4px 0; text-align: left; font-size: 17px; }
.zoom-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
          font: 28px/1 "EB Garamond", serif; color: var(--muted); border-radius: 50%; transition: background var(--t-court) var(--ease); }
.zoom-x:hover { background: #fff; color: var(--ink); }
.zoom-x:focus-visible, .demo-nav .cta:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.demo-nav { margin-top: 14px; }
.demo-nav .cta { border: 0; cursor: pointer; font: 600 17px "EB Garamond", serif; }
.demo-nav .cta span { margin-left: .3em; }
.scene { position: relative; height: min(340px, 44svh); margin: 0 auto; display: flex; align-items: center; justify-content: center;
         background: radial-gradient(circle at 50% 45%, var(--cream), #efe6cf 80%); border-radius: 12px; overflow: hidden; }

/* Scène 1 : la page du livre s'ouvre, le code s'entoure d'or */
.s1 .pg { position: relative; height: 92%; aspect-ratio: 733 / 1100; box-shadow: 0 8px 22px #10302a33; transform-origin: left center; }
.s1 .pg img { display: block; width: 100%; height: 100%; }
.s1 .ring { position: absolute; left: 37.6%; top: 22.6%; width: 11.6%; height: 7.8%; border: 2px solid var(--gold); border-radius: 6px;
            box-shadow: 0 0 0 3px #c8a55a55; }
/* Étiquette sous le code, centrée sur lui : elle reste dans le cadre une fois la page zoomée (×1,9). */
.s1 .tag { position: absolute; left: 43.4%; top: 32%; translate: -50% 0; background: var(--green); color: #efe6cf; font-size: 10px;
           line-height: 1.3; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.s1 .tag::before { content: ""; position: absolute; left: 50%; top: -4px; margin-left: -4px; border: 4px solid transparent;
                   border-top: 0; border-bottom-color: var(--green); }

/* Téléphone (scènes 2 et 3) */
.ph { position: relative; height: 94%; display: flex; background: #111; border-radius: 22px; padding: 6px;
      box-shadow: 0 10px 26px #0005; }
.ph-cam { position: absolute; top: 9px; left: 50%; width: 34%; height: 9px; margin-left: -17%; background: #111; border-radius: 0 0 8px 8px; z-index: 3; }
/* Écran exactement au format de la capture du site : rien n'est rogné (surtout pas le texte arabe). */
.scr { position: relative; height: 100%; aspect-ratio: 780 / 1520; border-radius: 17px; overflow: hidden; background: var(--paper); }
.scr > img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Scène 2 : l'appareil photo vise le code, un lien apparaît, la sourate s'ouvre */
.s2 .cam { position: absolute; inset: 0; background: url("assets/demo-livre.jpg") 41.75% 18% / 500% auto no-repeat; filter: saturate(.85); }
.s2 .vis { position: absolute; left: 22%; top: 30%; width: 56%; aspect-ratio: 1; border-radius: 10px;
           background: linear-gradient(var(--green), var(--green)) 0 0 / 18% 3px, linear-gradient(var(--green), var(--green)) 0 0 / 3px 18%,
                       linear-gradient(var(--green), var(--green)) 100% 0 / 18% 3px, linear-gradient(var(--green), var(--green)) 100% 0 / 3px 18%,
                       linear-gradient(var(--green), var(--green)) 0 100% / 18% 3px, linear-gradient(var(--green), var(--green)) 0 100% / 3px 18%,
                       linear-gradient(var(--green), var(--green)) 100% 100% / 18% 3px, linear-gradient(var(--green), var(--green)) 100% 100% / 3px 18%;
           background-repeat: no-repeat; }
.s2 .ligne { position: absolute; left: 24%; width: 52%; top: 31%; height: 2px; background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); opacity: 0; }
.s2 .bulle { position: absolute; left: 6%; right: 6%; top: 7%; background: #fffffff2; border-radius: 12px; padding: 7px 10px;
             font-size: 12px; text-align: left; box-shadow: 0 4px 14px #0003; color: var(--ink); }
.s2 .bulle b { display: block; font-size: 13px; }
.s2 .apres { opacity: 0; }
.doigt { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
         background: #ffffff8c; border: 2px solid #fff; box-shadow: 0 2px 8px #0005; opacity: 0; z-index: 2; }
.s2 .d2 { left: 50%; top: 13%; }

/* Scène 3 : un verset touché s'illumine, puis le suivant ; le réglage « Répéter » */
.s3 .hl { position: absolute; left: 4.2%; width: 91.5%; border: 2px solid var(--gold); border-radius: 8px;
          background: #c8a55a1f; box-shadow: 0 0 12px #c8a55a88; opacity: 0; }
.s3 .v1 { top: 59.1%; height: 18.3%; }
.s3 .v2 { top: 78.3%; height: 12.6%; }
.s3 .d3 { left: 60%; top: 66%; }
.s3 .lect { position: absolute; left: 45.5%; top: 93%; width: 33%; height: 5%; background: var(--green); color: #efe6cf;
            display: flex; align-items: center; gap: 4px; font: italic 10px/1 "EB Garamond", serif; white-space: nowrap; opacity: 0; }
.s3 .lect .w { display: inline-flex; gap: 2px; align-items: center; height: 10px; }
.s3 .lect .w b { display: block; width: 2px; height: 40%; background: var(--gold-2); border-radius: 1px; }
.s3 .l1, .s3 .l2 { position: absolute; left: 18px; }
.s3 .l2 { opacity: 0; }
.s3 .rep { position: absolute; right: 4%; bottom: 9%; background: var(--gold-2); color: var(--green); font: 600 11px "EB Garamond", serif;
           padding: 3px 7px; border-radius: 6px; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .zoom.open .s1 .pg { animation: din-ouvre 1s var(--ease) both, din-zoom 1.2s 2.2s var(--ease) forwards; }
  .zoom.open .s1 .ring { animation: din-apparait .4s .9s both, din-pulse 1.6s 1.3s ease-in-out infinite; }
  .zoom.open .s1 .tag { animation: din-apparait .5s 1.3s both; }
  .zoom.open .s2 .ligne { animation: din-scan 9s infinite; }
  .zoom.open .s2 .vis { animation: din-vise 9s infinite; }
  .zoom.open .s2 .bulle { animation: din-bulle 9s infinite; }
  .zoom.open .s2 .d2 { animation: din-touche2 9s infinite; }
  .zoom.open .s2 .apres { animation: din-ouvre-site 9s infinite; }
  .zoom.open .s3 .d3 { animation: din-touche3 10s infinite; }
  .zoom.open .s3 .v1 { animation: din-v1 10s infinite; }
  .zoom.open .s3 .v2 { animation: din-v2 10s infinite; }
  .zoom.open .s3 .lect { animation: din-lect 10s infinite; }
  .zoom.open .s3 .l1 { animation: din-l1 10s infinite; }
  .zoom.open .s3 .l2 { animation: din-v2 10s infinite; }
  .zoom.open .s3 .lect .w b { animation: din-onde 1s ease-in-out infinite; }
  .zoom.open .s3 .lect .w b:nth-child(2) { animation-delay: .2s; }
  .zoom.open .s3 .lect .w b:nth-child(3) { animation-delay: .4s; }
  .zoom.open .s3 .rep { animation: din-rep 10s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .s2 .cam, .s2 .vis, .s2 .bulle { display: none; }
  .s2 .apres, .s3 .v1, .s3 .lect, .s3 .rep { opacity: 1; }
}
/* Zoom sur le code (centre du code : 43 % de la largeur, 27 % de la hauteur de la page), pivot au bord gauche. */
@keyframes din-zoom { to { transform: translate(-31.7%, 43.7%) scale(1.9); } }
@keyframes din-ouvre { from { transform: perspective(900px) rotateY(-75deg); opacity: 0; } }
@keyframes din-apparait { from { opacity: 0; transform: scale(.8); } }
@keyframes din-pulse { 50% { box-shadow: 0 0 0 7px #c8a55a33; } }
@keyframes din-scan { 0%, 8% { opacity: 0; top: 31%; } 10% { opacity: 1; } 22% { top: 58%; } 34% { top: 31%; opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes din-vise { 0%, 34% { filter: none; } 36%, 100% { filter: drop-shadow(0 0 4px var(--gold-2)); } }
@keyframes din-bulle { 0%, 38% { opacity: 0; transform: translateY(-120%); } 44%, 62% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; } }
@keyframes din-touche2 { 0%, 52% { opacity: 0; transform: scale(1.4); } 56% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(.85); } 63%, 100% { opacity: 0; } }
@keyframes din-ouvre-site { 0%, 62% { opacity: 0; transform: scale(1.04); } 68%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes din-touche3 { 0%, 4% { opacity: 0; transform: scale(1.4); } 8% { opacity: 1; transform: scale(1); } 12% { opacity: 1; transform: scale(.85); } 15%, 100% { opacity: 0; } }
@keyframes din-v1 { 0%, 12% { opacity: 0; } 15%, 48% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes din-v2 { 0%, 49% { opacity: 0; } 52%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes din-lect { 0%, 12% { opacity: 0; } 15%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes din-l1 { 0%, 49% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes din-rep { 0%, 60% { opacity: 0; transform: translateY(6px); } 64%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* ── Progression : sourate apprise, révisions espacées (06/12/2026) ───────────────────────────────────────────
   Apparitions en fondu, coche dorée qui se dessine, barre qui se remplit : transform, opacity et tracé SVG seulement. */
.progres { margin: 28px 0 8px; }
.pr-carte { background: var(--cream); border: 1px solid var(--gold-soft); border-radius: 16px; padding: 22px 18px 20px;
            text-align: center; animation: din-pr-in .45s var(--ease) both; }
.pr-carte h2 { margin: 4px 0 8px; font-size: 23px; font-weight: 600; }
.pr-carte p { margin: 0 auto 6px; max-width: 520px; color: var(--muted); }
.pr-carte p strong { color: var(--ink); }
.pr-k { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink) !important; margin: 0 !important; }
.pr-reviser { border-color: var(--gold); box-shadow: 0 8px 24px #10302a14; }
.pr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.pr-actions .cta { border: 0; cursor: pointer; font: 600 17px "EB Garamond", serif; }
.pr-sec { border: 1px solid var(--gold); background: transparent; color: var(--gold-ink); cursor: pointer; border-radius: 30px;
          padding: 11px 22px; font: 600 17px "EB Garamond", serif;
          transition: background var(--t-court) var(--ease), transform var(--t-court) var(--ease); }
.pr-sec:hover { background: #fff; }
.pr-sec:active, .pr-actions .cta:active { transform: scale(.97); }
.pr-lien { border: 0; background: none; color: var(--muted); font: 15px "EB Garamond", serif; text-decoration: underline;
           cursor: pointer; margin-top: 6px; padding: 8px; }
.pr-sec:focus-visible, .pr-lien:focus-visible, .pr-actions .cta:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.pr-coche { width: 56px; height: 56px; display: block; margin: 0 auto 4px; fill: none; stroke: var(--gold); stroke-width: 2.5;
            stroke-linecap: round; stroke-linejoin: round; }
.pr-coche circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: din-trace .6s var(--ease) .1s forwards; }
.pr-coche path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: din-trace .35s var(--ease) .6s forwards; }
@keyframes din-trace { to { stroke-dashoffset: 0; } }
@keyframes din-pr-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* Sommaire : bilan et pastilles */
.bilan { background: var(--cream); border: 1px solid var(--gold-soft); border-radius: 14px; padding: 16px 18px; margin: 18px 0 6px;
         animation: din-pr-in .45s var(--ease) both; }
.bilan p { margin: 0; }
.b-t { font-size: 19px; }
.b-t strong { font-size: 26px; color: var(--gold-ink); }
.b-barre { height: 8px; border-radius: 4px; background: #9a7b3c22; overflow: hidden; margin: 10px 0; }
.b-barre span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 4px;
                transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.bilan.vu .b-barre span { transform: scaleX(var(--p)); }
.b-r { font-size: 16px; color: var(--muted); }
.b-r a { color: var(--gold-ink); font-weight: 600; }
.etat { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 10px; font-size: 13px; font-style: normal;
        vertical-align: 2px; animation: din-pr-in .4s var(--ease) both; }
.etat-apprise { background: #9a7b3c24; color: var(--gold-ink); }
.etat-apprise::before { content: "✓ "; }
.etat-reviser { background: var(--green); color: #efe6cf; }
.etat-encours { border: 1px solid var(--gold-soft); color: var(--muted); }

/* Accueil : rappel sous le livre */
.book .rappel { margin-top: 6px; font-size: 15px; color: var(--gold-ink); font-weight: 600; animation: din-pr-in .45s var(--ease) both; }
.book .rappel.du { display: inline-block; background: var(--green); color: #efe6cf; padding: 2px 10px; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .pr-carte, .bilan, .etat, .book .rappel { animation: none; }
  .pr-coche circle, .pr-coche path { animation: none; stroke-dashoffset: 0; }
  .b-barre span { transition: none; }
}
/* Interrupteur Masquer / Afficher l'arabe : l'icône d'œil change, le bouton bascule en douceur. */
.pr-oeil { display: inline-flex; align-items: center; gap: 8px; }
.pr-oeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pr-oeil[aria-pressed="true"] { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.pr-bascule { animation: din-bascule .35s var(--ease); }
@keyframes din-bascule { from { opacity: .3; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .pr-bascule { animation: none; } }
/* Œil dans la barre de lecture : n'apparaît que l'arabe masqué, pour le réafficher d'un geste. */
.player .row > button.oeil { display: none; width: 44px; height: 44px; color: var(--gold-2); }
.player .row > button.oeil svg { width: 24px; height: 24px; }
.memo .player .row > button.oeil { display: inline-flex; align-items: center; justify-content: center; animation: din-bascule .35s var(--ease); }

/* Transfert de progression */
.transfert ol { text-align: left; max-width: 520px; margin: 0 auto 12px; }
.tf-qr { width: min(280px, 78vw); margin: 16px auto 8px; padding: 10px; background: #fff; border: 1px solid var(--gold-soft);
         border-radius: 14px; box-shadow: 0 10px 28px #10302a1f; animation: din-pr-in .5s var(--ease) both; }
.tf-qr svg { display: block; width: 100%; height: auto; }
.tf-resume { text-align: center; color: var(--gold-ink); font-weight: 600; }
.tf-copie { text-align: center; }
.tf-note { font-size: 15px; color: var(--muted); }
.b-tf { margin-top: 8px !important; font-size: 15px; }
.b-tf a { color: var(--gold-ink); }
