/* Nafsologie, site v6 : les passages repris mot pour mot des livres (classe .extrait).
   Ce sont les règles de la charte des livres (04_design/application/charte.css), passées des millimètres de la page
   aux unités de l'écran : mêmes encadrés (une bande à gauche, un signe blanc dedans), mêmes couleurs, mêmes polices.
   La mise en page ne change aucun mot. */

.extrait { margin: 0 0 1.2rem; }
.extrait p { margin: 0 0 0.7em; }
.extrait b { font-weight: 700; }
.extrait sup { font-size: 0.62em; line-height: 0; vertical-align: super; }
.extrait sup.appel { font-family: var(--ui); font-weight: 700; color: var(--or-t); padding-left: 0.05em; }
.extrait ul, .extrait ol { margin: 0 0 0.8em; padding-left: 1.3em; }
.extrait li { margin: 0 0 0.35em; }
.extrait a.web { text-decoration: underline; text-decoration-color: var(--sable); text-decoration-thickness: 2px; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
.extrait h2 { font-family: var(--ui); font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 1.6rem 0 0.6rem; padding-left: 0.8rem; border-left: 5px solid var(--sable); }
.extrait h3 { font-family: var(--ui); font-weight: 700; font-size: 1.05rem; color: var(--doux); margin: 1.2rem 0 0.4rem; }
.extrait .lettrine { font-weight: 700; font-size: 1.2rem; }
.extrait .refrain { font-weight: 700; font-size: 1.15rem; padding-left: 0.8rem; border-left: 5px solid var(--sable); }
.extrait .remarque { font-style: italic; font-size: 0.92em; color: var(--doux); }

/* phrase importante : surlignage beige, posé bas sur la ligne */
.extrait mark { color: inherit; background: linear-gradient(to bottom, transparent 68%, var(--surligne) 68%, var(--surligne) 97%, transparent 97%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* notre lecture : vert clair plein + filet pointillé dessous + un signe */
.extrait .nafs { background: var(--brume); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0.05em 0.1em; border-bottom: 1.2px dotted var(--doux); }

/* listes du livre */
.extrait .deux { list-style: none; padding: 0; }
.extrait .deux > li { margin-bottom: 0.6rem; padding-left: 0.8rem; border-left: 4px solid var(--sable); }
.extrait .six, .extrait .quatre, .extrait .trois, .extrait .rangs { padding-left: 1.6rem; }
.extrait .six > li::marker, .extrait .quatre > li::marker, .extrait .trois > li::marker, .extrait .rangs > li::marker { font-family: var(--ui); font-weight: 700; color: var(--or-t); }
.extrait .numeros { list-style: none; padding-left: 0; display: block; }
.extrait .numeros li { display: block; border: 0; padding: 0; margin-bottom: 0.3rem; }
.extrait .geste-tag { font-family: var(--ui); font-weight: 400; color: var(--doux); margin-left: 0.5em; text-transform: none; letter-spacing: 0; }
.extrait .saw { font-family: Amiri, serif; unicode-bidi: isolate; }
.extrait .insec { white-space: nowrap; }

/* signes de nature */
.extrait .signe { display: inline-block; line-height: 0; color: var(--doux); }
.extrait .signe svg { width: 1.15em; height: 1.15em; }
.extrait .signe-ligne svg { width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-right: 0.12em; }
.extrait .nafs .signe-ligne { color: var(--lecture); }

/* l'arabe */
.extrait .ar { font-family: Amiri, serif; font-size: 1.5em; line-height: 2.05; direction: rtl; text-align: right; margin: 0.1em 0 0.15em; color: var(--encre-ar); hyphens: manual; }
.extrait .bloc-coran .ar, .extrait .ar.coran { font-family: "Scheherazade New", "Amiri Quran", Amiri, serif; font-size: 1.45em; line-height: 2.1; }
.extrait .fr { margin-bottom: 0.3em; }
.extrait figure { margin: 0; }
.extrait figcaption, .extrait .src, .extrait .auteur { font-size: 0.82em; line-height: 1.45; color: var(--doux); margin: 0 0 0.35em; }
.extrait .translit { font-style: italic; font-size: 0.88em; color: var(--doux); margin: 0 0 0.3em; }

/* les encadrés : une bande à gauche, un signe blanc dedans */
.extrait :is(.encadre, .bloc-coran, .bloc-hadith, .nature-savant, p.nature-nafs, .peine) { position: relative; padding: 0.8rem 1rem 0.6rem 3.1rem; margin: 0.8rem 0 1.2rem; background: #fff; }
.extrait :is(.encadre, .bloc-coran, .bloc-hadith, .nature-savant, p.nature-nafs)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.1rem; }
.extrait :is(.encadre > .titre-encadre > .signe-titre, .encadre > .signe-titre, .signe-bloc) { position: absolute; left: 0.4rem; top: 0.8rem; color: #fff; z-index: 1; margin: 0; }
.extrait :is(.encadre .signe-titre, .signe-bloc) svg { width: 1.3rem; height: 1.3rem; margin: 0; vertical-align: top; }
.extrait .titre-encadre { font-family: var(--ui); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.5rem; line-height: 1.4; }
.extrait .encadre > :last-child, .extrait .encadre ul:last-child, .extrait .encadre ol:last-child { margin-bottom: 0; }
.extrait .encadre .marches { font-style: italic; text-align: center; hyphens: none; }

.extrait .bloc-coran { border: 1px solid #b9c7c2; border-left: none; }
.extrait .bloc-coran::before { background: var(--vert); }
.extrait .bloc-coran :is(.ar, .fr, figcaption, .src) { text-align: center; }
.extrait .bloc-hadith { border: 1px solid #d9cfb5; border-left: none; }
.extrait .bloc-hadith::before { background: var(--or-t); }
.extrait .nature-savant { border: 1px solid #c3cfcb; border-left: none; }
.extrait .nature-savant::before { background: var(--doux); }
.extrait figure.nature-savant .fr { font-style: italic; }
.extrait p.nature-nafs { background: var(--brume); border-bottom: 1.2px dotted var(--doux); }
.extrait p.nature-nafs::before { background: var(--lecture); }
.extrait .encadre.recherche { border: 1px solid #b8c0cc; border-left: none; }
.extrait .encadre.recherche::before { background: var(--ardoise); }
.extrait .encadre.recherche .titre-encadre { color: var(--ardoise); }
.extrait .encadre.exercice { border: 1.5px dashed var(--vert); border-left: none; }
.extrait .encadre.exercice::before { background: var(--vert); }
.extrait .encadre.retenir { background: var(--vert); color: #fff; }
.extrait .encadre.retenir::before { background: var(--sable); }
.extrait .encadre.retenir .titre-encadre { color: var(--sable); }
.extrait .encadre.retenir > .titre-encadre > .signe-titre { color: var(--vert); }
.extrait .encadre.retenir li::marker { color: var(--sable); }
.extrait .encadre.retenir mark { background: linear-gradient(to bottom, transparent 68%, #3d6563 68%, #3d6563 97%, transparent 97%); }
.extrait .encadre.retenir a { color: #fff; }
.extrait .encadre.urgence { border: 2px solid var(--alerte); border-left: none; }
.extrait .encadre.urgence::before { background: var(--alerte); }
.extrait .encadre.urgence .titre-encadre { color: var(--alerte); font-size: 1.05rem; text-transform: none; letter-spacing: 0.01em; }
.extrait .encadre.urgence p { font-size: 1.05rem; hyphens: manual; }
.extrait .peine { border: 2px solid var(--vert); padding-left: 1rem; background: #f6f8f6; }
.extrait .peine .titre-encadre { color: var(--vert); }
.extrait .deux-parties > div { border: 1px solid var(--sable); padding: 0.8rem 1rem; margin-bottom: 0.8rem; background: #fff; }
.extrait .deux-parties p:last-child { margin-bottom: 0; }

/* l'avertissement du livre (page 2) : en grand, dans son cadre rouge */
.extrait p.ed { position: relative; font-family: var(--ui); font-size: 1.15rem; line-height: 1.55; border: 2px solid var(--alerte); border-left: none;
  padding: 1rem 1rem 1rem 3.4rem; margin: 0; background: #fff; hyphens: manual; }
.extrait p.ed::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.4rem; background: var(--alerte); }
.extrait p.ed .signe { position: absolute; left: 0.5rem; top: 1rem; color: #fff; }
.extrait p.ed .signe svg { width: 1.4rem; height: 1.4rem; }

/* les schémas */
.extrait .schema { margin: 1rem 0 1.4rem; background: #fff; padding: 0.8rem; border: 1px solid var(--filet); }
.extrait .schema svg { display: block; width: 100%; max-width: 34rem; height: auto; margin: 0 auto; }
.extrait .schema figcaption { font-family: var(--ui); font-size: 0.85rem; line-height: 1.4; color: var(--doux); margin-top: 0.6rem; border-top: 1px solid var(--sable); padding-top: 0.5rem; }
.extrait .schema .num { font-weight: 700; color: var(--vert); margin-right: 0.3em; }

/* les tableaux */
.extrait table { border-collapse: collapse; width: 100%; font-family: var(--ui); font-size: 0.92rem; line-height: 1.4; margin: 0.8rem 0 1.2rem; background: #fff; }
.extrait th { text-align: left; font-weight: 700; color: #fff; background: var(--vert); padding: 0.4rem 0.5rem; }
.extrait td { border-bottom: 1px solid #c3cfcb; padding: 0.4rem 0.5rem; vertical-align: top; }

/* le lexique */
.extrait dl { margin: 0.3rem 0 1rem; }
.extrait dt { font-family: var(--ui); font-weight: 700; margin-top: 0.8rem; }
.extrait dd { margin: 0.15rem 0 0 1.2rem; }

/* le début d'un chapitre ou d'un module : haut vert, grand chiffre doré */
.extrait .ouv { background: var(--vert); color: var(--ivoire); padding: 1.2rem 1.2rem 1.1rem; }
.extrait .ouv::before { content: attr(data-n); display: block; font-family: var(--serif); font-weight: 400; font-size: 2.8rem; line-height: 1; color: var(--sable); margin-bottom: 0.5rem; }
.extrait .ouv .chap-num { font-family: var(--ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sable); margin: 0 0 0.5rem; }
.extrait .ouv .chap-num .geste-tag { color: #dfe7e3; text-transform: none; letter-spacing: 0.02em; }
.extrait .ouv h1, .extrait .ouv .mod-titre { color: var(--ivoire); font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.15; margin: 0 0 0.5rem; }
.extrait .ouv .chap-sous { font-family: var(--ui); font-size: 1.02rem; line-height: 1.45; color: #dfe7e3; margin: 0; }
.chapitre-site > .extrait { margin: 0; }
.page-parcours .extrait .ouv { margin: 0 calc(-1 * var(--marge)); padding-inline: var(--marge); }
@media (min-width: 44rem) { .page-parcours .extrait .ouv { margin: 0; padding-inline: 1.4rem; } }

/* « temps » d'un module (1 · Ton piège…) */
.extrait .temps { display: inline-block; font-family: var(--ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--vert); padding: 0.2rem 0.7rem; margin: 1rem 0 0.5rem; }

/* les notes du passage, juste dessous */
.notes-passage { margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px solid var(--sable); }
.notes-passage:empty { display: none; }
.extrait .note { font-family: var(--serif); font-size: 0.82rem; line-height: 1.45; margin: 0 0 0.35rem; color: var(--doux); }
.extrait .note .nn { font-family: var(--ui); font-weight: 700; color: var(--or-t); margin-right: 0.3em; }
.extrait .note .ar-note { display: block; direction: rtl; text-align: right; font-family: Amiri, serif; font-size: 1.25em; line-height: 1.6; margin: 0.15em 0; color: var(--encre-ar); }
.extrait .note-generale { font-style: italic; }

/* la parole du jour */
.paroles .extrait .nature-savant { font-size: 1.1rem; }

/* le texte des passages sur fond vert (bande sombre) */
.sombre .extrait { color: var(--vert); }
.extrait .schema .src { display: block; font-family: var(--ui); font-size: 0.8rem; color: var(--or-t); margin-top: 0.3rem; }
/* les titres d'ouverture du livre deviennent des h2 sur le site (un seul h1 par vue, audit A20) */
.extrait .ouv h2.titre-livre { color: var(--ivoire); font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.15; margin: 0 0 0.5rem; padding: 0; border: 0; }
.extrait h2.titre-livre { padding-left: 0; border-left: 0; }
.extrait .urgence a[href^="tel:"], .extrait p.ed a[href^="tel:"], .extrait .nature-securite a[href^="tel:"] { color: var(--alerte); font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }
