/* Histoire des Valshaar : la frise des Souffles et le grimoire (préfixe hi-, 2026-11-15).
   Le livre vient de valshaar-livre.css (jetons --lv-*, définis par .lv-page). */
.hi-page { max-width: 1240px; }

/* ---------- La frise des Souffles ---------- */
.hi-frise { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--plate); backdrop-filter: blur(6px); }
.hi-souffle { display: flex; flex-direction: column; gap: 8px; min-width: 180px; padding: 0 6px; }
.hi-souffle__tete { padding: 6px 10px; border-bottom: 3px solid var(--souffle); text-align: center; }
.hi-souffle__tete b { display: block; font: 400 1.1rem var(--font-h1), serif; color: var(--accent); }
.hi-souffle__tete small { color: var(--text-dim); font-size: .78rem; }
.hi-souffle__chap { display: flex; justify-content: space-around; align-items: flex-start; gap: 4px; }
.hi-sceau { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; text-decoration: none; color: var(--text); }
.hi-sceau:hover { text-decoration: none; color: var(--text); }
.hi-sceau span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font: 400 14px var(--font-h1), serif; color: #fbeedd; transition: transform .2s;
    background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--lv-cire) 65%, #fff), var(--lv-cire) 60%, color-mix(in srgb, var(--lv-cire) 55%, #000)); box-shadow: 0 3px 0 #0006; }
.hi-sceau small { font: .72rem/1.25 var(--font-ui, system-ui), sans-serif; text-align: center; }
.hi-sceau.is-scelle span { background: radial-gradient(circle at 35% 35%, #9a8e80, #6f6458 60%, #463e36); }
.hi-sceau.is-scelle small { color: var(--text-dim); font-style: italic; }
.hi-sceau:hover span, .hi-sceau:focus-visible span { transform: scale(1.1); }
.hi-sceau:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.hi-sceau.is-ouvert span { outline: 2px solid #f7e7b0; outline-offset: 2px; }
.hi-aide { margin: 10px 0 0; text-align: center; color: var(--text-dim); font-size: .9rem; }
@media (max-width: 760px) {
    .hi-frise { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    .hi-souffle { min-width: max-content; }
    .hi-sceau { width: 52px; }
    .hi-sceau small { display: none; }
}

/* ---------- Le grimoire : en-tête de chapitre, texte, page scellée ---------- */
.hi-chap__n { font: 400 1em var(--font-h1), serif; color: var(--lv-cire); margin-top: 6px; }
.lv-chap.is-scelle .lv-chap__titre, .lv-chap.is-scelle .hi-chap__n { color: color-mix(in srgb, var(--lv-encre) 45%, var(--lv-papier)); }
.hi-texte > p:first-child::first-letter { float: left; font: 400 3.4em/.85 var(--font-h1), serif; color: var(--lv-cire); margin: 6px 10px 0 0; }
.hi-texte blockquote { margin: .8em 0; padding: .5em .9em; border-left: 3px solid var(--lv-cire); background: color-mix(in srgb, var(--lv-cire) 6%, transparent); }
.hi-scelle { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 8px; text-align: center; }
.hi-scelle__sceau { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; font: 400 36px var(--font-h1), serif; color: #f2ece2;
    background: radial-gradient(circle at 35% 35%, #9a8e80, #6f6458 60%, #463e36); box-shadow: 0 5px 0 #2a241e, 0 0 0 6px color-mix(in srgb, var(--lv-filet) 40%, transparent); }
.hi-scelle p { margin: 0 !important; max-width: 300px; font-style: italic; color: color-mix(in srgb, var(--lv-encre) 70%, var(--lv-papier)); }
.hi-scelle a { font: 700 12px var(--font-ui, system-ui), sans-serif; color: var(--lv-cire); }
/* Sommaire rangé par Souffle */
.lv-som .lv-som-groupe { margin: 10px 0 2px; padding-bottom: 2px; border-bottom: 2px solid var(--lv-filet); font: 400 1.05em var(--font-h1), serif; color: var(--lv-titre); list-style: none; }
.lv-som a.scelle { color: color-mix(in srgb, var(--lv-encre) 50%, var(--lv-papier)); font-style: italic; }
.lv-som a.scelle .p { color: color-mix(in srgb, var(--lv-encre) 45%, var(--lv-papier)); }
/* Sans JavaScript */
.lv-source .hi-scelle__sceau { width: 56px; height: 56px; font-size: 22px; }
