/* ══════════════════════════════════════════════════════════════════════════
   akasha-rayonnages.css — AKASHA 4.0 · LA BIBLIOTHÈQUE VIVANTE (04/11/2026)
   Rayonnages (.akr-*), pupitre et livre volant (.akr-ov, .akr-fly), lecteur (.akl-*).
   Hiérarchie : livres › rayonnages › thèmes › commandes › décor. Pas de flou en boucle,
   pas de particules ; les seules animations permanentes (flammes) s'arrêtent en mouvement réduit.
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --akr-abyss: #070516; --akr-night: #120921; --akr-ame: #30194a; --akr-ame-l: #8755d7;
  --akr-gold: #c9a45b; --akr-gold-l: #f0d895; --akr-parch: #ead7ae; --akr-ink: #382718; --akr-text: #f4eff9;
  --akr-slot: 154px; --akr-plank: 14px;
}
.akr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Vues : l'ancien affichage n'est masqué que dans les nouvelles vues ── */
#panelArticles[data-akr-view="bibliotheque"] .akb-gal-wrap,
#panelArticles[data-akr-view="bibliotheque"] #articlesGrid,
#panelArticles[data-akr-view="liste"] .akb-gal-wrap,
#panelArticles[data-akr-view="liste"] #articlesGrid { display: none !important; }

.akr-views { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; margin: 4px 0 14px; }
.akr-vbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  font: 600 12px/1 "Cinzel", "Cinzel Fallback", serif; letter-spacing: .08em; color: #d9c9f2;
  background: rgba(18, 9, 33, .7); border: 1px solid rgba(201, 164, 91, .32); border-radius: 999px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.akr-vbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.akr-vbtn:hover { color: var(--akr-gold-l); border-color: rgba(240, 216, 149, .6); }
.akr-vbtn[aria-pressed="true"] { color: #1b0f05; background: linear-gradient(180deg, #f0d895, #c9a45b); border-color: #f0d895; }
.akr-vbtn-old { font-size: 11px; opacity: .85; }
.akr-motion { display: inline-flex; align-items: center; gap: 6px; font: 15px/1.2 "Cormorant Garamond", serif; color: #cbb9e6; cursor: pointer; margin-left: 6px; }
.akr-motion input { width: 17px; height: 17px; accent-color: var(--akr-gold); }
.akr-vbtn:focus-visible, .akr-motion input:focus-visible, .akr-plaque:focus-visible, .akr-book:focus-visible,
.akr-li button:focus-visible, .akr-ov button:focus-visible, .akl button:focus-visible, .akl input:focus-visible, .akl-scroll:focus-visible {
  outline: 2px solid var(--akr-gold-l); outline-offset: 3px;
}

/* ════════════════ La salle ════════════════ */
.akr-hall {
  position: relative; padding: 26px clamp(10px, 2.4vw, 30px) 34px; margin: 0 0 18px; border-radius: 22px; isolation: isolate;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(135, 85, 215, .30), transparent 60%),
    radial-gradient(60% 40% at 0% 100%, rgba(135, 85, 215, .16), transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(201, 164, 91, .10), transparent 70%),
    linear-gradient(180deg, #120921 0%, #0b0618 60%, #070516 100%);
  border: 1px solid rgba(201, 164, 91, .22);
  box-shadow: inset 0 0 0 1px rgba(135, 85, 215, .12), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
/* colonnes sculptées sur les côtés (décor, jamais au-dessus d'un livre) */
.akr-hall::before, .akr-hall::after {
  content: ""; position: absolute; top: 14px; bottom: 14px; width: 18px; z-index: -1; border-radius: 9px; opacity: .55;
  background: repeating-linear-gradient(90deg, #2a1a3e 0 3px, #4a3266 3px 5px, #2a1a3e 5px 8px), linear-gradient(#c9a45b, #c9a45b);
  background-size: 100% 100%, 100% 2px; background-repeat: no-repeat;
}
.akr-hall::before { left: 4px; } .akr-hall::after { right: 4px; }
.akr-none { text-align: center; font: italic 19px/1.4 "Cormorant Garamond", serif; color: #cbb9e6; padding: 40px 0; }

.akr-floor { position: relative; padding: 6px 0 4px; content-visibility: auto; contain-intrinsic-size: auto 520px; transition: opacity .3s; }
.akr-floor + .akr-floor { margin-top: 26px; }
.akr-floor.is-dim { opacity: .55; }
.akr-floor-h { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center; margin-bottom: 18px; }
.akr-floor-n { display: block; font: 600 11px/1 "Cinzel", serif; letter-spacing: .32em; text-transform: uppercase; color: rgba(240, 216, 149, .72); }
.akr-floor-t { margin: 6px 0 0; font: 600 clamp(19px, 2.2vw, 25px)/1.15 "Cinzel", "Cinzel Fallback", serif; letter-spacing: .08em; color: var(--akr-gold-l);
  text-shadow: 0 0 18px rgba(201, 164, 91, .35); }
/* lanternes */
.akr-lantern { position: relative; width: 16px; height: 26px; border: 1px solid rgba(201, 164, 91, .7); border-radius: 4px 4px 7px 7px;
  background: radial-gradient(circle at 50% 60%, #ffe6a8 0 3px, rgba(255, 190, 90, .55) 4px, rgba(80, 40, 10, .2) 9px); box-shadow: 0 0 16px rgba(255, 190, 90, .45); flex: none; }
.akr-lantern::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 8px; background: rgba(201, 164, 91, .7); }
.akr-balustrade { height: 20px; margin-top: 12px; opacity: .55;
  background: linear-gradient(#c9a45b, #c9a45b) top/100% 2px no-repeat, linear-gradient(#5b3e1f, #5b3e1f) bottom/100% 3px no-repeat,
              repeating-linear-gradient(90deg, transparent 0 9px, rgba(201, 164, 91, .55) 9px 12px, transparent 12px 22px) center/100% 12px no-repeat; }

.akr-shelves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; }
.akr-shelf { position: relative; display: flex; flex-direction: column; align-items: stretch; transition: opacity .3s, filter .3s; }
.akr-shelf.is-dim { opacity: .42; filter: saturate(.5); }
.akr-shelf.is-focus .akr-case { border-color: rgba(240, 216, 149, .85); box-shadow: 0 0 0 1px rgba(240, 216, 149, .35), 0 0 34px rgba(201, 164, 91, .28), inset 0 0 40px rgba(0, 0, 0, .6); }

/* plaque sculptée (cliquable : choisit le thème) */
.akr-plaque {
  position: relative; z-index: 2; align-self: center; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%;
  margin-bottom: -16px; padding: 8px 20px; cursor: pointer;
  background: linear-gradient(180deg, #3a2160, #22113b); color: var(--akr-gold-l);
  border: 1px solid var(--akr-gold); border-radius: 22px 22px 8px 8px;
  box-shadow: inset 0 0 0 3px #22113b, inset 0 0 0 4px rgba(201, 164, 91, .45), 0 6px 16px rgba(0, 0, 0, .55);
  transition: box-shadow .2s, transform .2s;
}
.akr-plaque:hover { box-shadow: inset 0 0 0 3px #22113b, inset 0 0 0 4px rgba(240, 216, 149, .8), 0 0 24px rgba(201, 164, 91, .45); transform: translateY(-1px); }
.akr-plaque[aria-pressed="true"] { background: linear-gradient(180deg, #5a3592, #2e1650); }
.akr-pl-glyph { font-size: 17px; line-height: 1; }
.akr-pl-name { font: 600 clamp(11.5px, 1.05vw, 13px)/1.2 "Cinzel", serif; letter-spacing: .12em; text-transform: uppercase; }
.akr-pl-n { font: italic 15px/1 "Cormorant Garamond", serif; color: #d9c9f2; white-space: nowrap; }
.akr-pl-n b { font-style: normal; color: var(--akr-gold-l); }

/* l'armoire : arche, bois sombre, étagères */
.akr-case {
  position: relative; padding: 34px 14px 14px; border: 1px solid rgba(201, 164, 91, .5); border-radius: 120px 120px 10px 10px / 46px 46px 10px 10px;
  background:
    radial-gradient(80% 50% at 50% 0%, hsla(var(--sk-hue, 270), 50%, 40%, .28), transparent 70%),
    linear-gradient(180deg, #1d1029 0%, #140a1d 100%);
  box-shadow: inset 0 0 0 5px #1a0e12, inset 0 0 0 6px rgba(201, 164, 91, .22), inset 0 0 40px rgba(0, 0, 0, .65), 0 18px 30px -18px #000;
  transition: border-color .3s, box-shadow .3s;
}
.akr-row {
  position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 2px; row-gap: var(--akr-plank);
  padding: 0 60px var(--akr-plank) 10px;
  background: repeating-linear-gradient(180deg,
    transparent 0 var(--akr-slot),
    #6e4625 var(--akr-slot), #8a5a2f calc(var(--akr-slot) + 2px), #4a2c15 calc(var(--akr-slot) + 4px), #2a170a calc(var(--akr-slot) + var(--akr-plank)));
  min-height: calc(var(--akr-slot) + var(--akr-plank));
}

/* ── Le livre (tranche) ── */
.akr-book {
  --c1: hsl(var(--hue) var(--sat) var(--lit)); --c2: hsl(var(--hue) var(--sat) calc(var(--lit) + 12%)); --c0: hsl(var(--hue) var(--sat) calc(var(--lit) - 7%));
  position: relative; flex: none; width: var(--w); height: var(--h); margin-top: calc(var(--akr-slot) - var(--h)); padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; overflow: hidden; cursor: pointer;
  color: #f3e3b4; border: 0; border-radius: 3px 3px 2px 2px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 18%, rgba(255, 255, 255, .14) 45%, transparent 62%, rgba(0, 0, 0, .5)),
    linear-gradient(180deg, var(--c2), var(--c1) 40%, var(--c0));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 1px 0 0 rgba(0, 0, 0, .55);
  transform-origin: 50% 100%; transform: rotate(var(--lean, 0deg));
  transition: transform .22s cubic-bezier(.3, 1.3, .5, 1), box-shadow .22s, opacity .3s, filter .3s;
}
.akr-book[data-mat="cuir"] { background:
    linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 20%, rgba(255, 255, 255, .1) 46%, transparent 60%, rgba(0, 0, 0, .55)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .06) 0 1px, transparent 2px) 0 0/5px 6px,
    linear-gradient(180deg, var(--c2), var(--c1) 40%, var(--c0)); }
.akr-book[data-mat="toile"] { background:
    linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 18%, rgba(255, 255, 255, .12) 45%, transparent 62%, rgba(0, 0, 0, .5)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--c2), var(--c1) 40%, var(--c0)); }
/* nervures dorées (1 à 3 jeux) */
.akr-sp-cap, .akr-sp-foot { display: block; width: 100%; height: 14px; flex: none;
  background: linear-gradient(180deg, transparent 3px, var(--akr-gold) 3px 4px, transparent 4px 7px, rgba(240, 216, 149, .8) 7px 8px, transparent 8px); }
.akr-book[data-bands="1"] .akr-sp-cap, .akr-book[data-bands="1"] .akr-sp-foot { background: linear-gradient(180deg, transparent 5px, var(--akr-gold) 5px 7px, transparent 7px); }
.akr-book[data-bands="3"] .akr-sp-cap { background: linear-gradient(180deg, transparent 2px, var(--akr-gold) 2px 3px, transparent 3px 5px, var(--akr-gold-l) 5px 6px, transparent 6px 8px, var(--akr-gold) 8px 9px, transparent 9px); }
.akr-sp-foot { transform: scaleY(-1); }
.akr-sp-glyph { flex: none; font-size: 11px; line-height: 1; color: var(--akr-gold-l); text-shadow: 0 0 6px rgba(240, 216, 149, .5); margin-top: -2px; }
.akr-sp-title {
  flex: 1 1 auto; min-height: 0; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center;
  font: 600 var(--fs, 10.5px)/1.12 "Cinzel", "Cinzel Fallback", serif; letter-spacing: .05em; color: #f6e7bd;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .7); padding: 4px 0; overflow: hidden;
}
.akr-book:hover, .akr-book:focus-visible {
  transform: translateY(-7px) rotate(0deg); z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(240, 216, 149, .9), 0 0 0 1px rgba(240, 216, 149, .55), 0 8px 18px rgba(201, 164, 91, .35), 0 0 22px rgba(135, 85, 215, .45);
}
.akr-book.is-dim { opacity: .26; filter: saturate(.35) brightness(.8); }
.akr-book.is-match { box-shadow: inset 0 0 0 1px rgba(240, 216, 149, .55), 0 0 14px rgba(240, 216, 149, .35); }
.akr-book.is-kept::after { content: ""; position: absolute; top: 0; right: 3px; width: 6px; height: 18px; background: #b02a3e;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); box-shadow: 0 0 4px rgba(0, 0, 0, .5); }

/* objets posés sur l'étagère (décor) */
.akr-orn { position: absolute; right: 12px; bottom: var(--akr-plank); width: 40px; height: 64px; color: rgba(201, 164, 91, .6); pointer-events: none; }
.akr-orn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.akr-orn .fill { fill: rgba(201, 164, 91, .35); }
.akr-orn .flame { fill: rgba(255, 200, 110, .8); stroke: none; transform-origin: 50% 100%; animation: akrFlame 2.8s ease-in-out infinite; }
.akr-orn-cristal { color: rgba(167, 120, 240, .75); }
@keyframes akrFlame { 50% { transform: scaleY(.86) translateX(.4px); opacity: .85; } }

/* infobulle unique */
.akr-tip { position: absolute; left: 0; top: 0; z-index: 5; max-width: min(320px, 80vw); padding: 8px 12px; pointer-events: none;
  background: rgba(13, 7, 26, .96); border: 1px solid rgba(201, 164, 91, .6); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .6);
  font: 16px/1.25 "Cormorant Garamond", serif; color: var(--akr-text); }
.akr-tip b { display: block; font-weight: 600; }
.akr-tip span { display: block; margin-top: 3px; font: 600 10px/1.2 "Cinzel", serif; letter-spacing: .1em; text-transform: uppercase; color: var(--akr-gold-l); }

/* ════════════════ Vue liste ════════════════ */
.akr-list { margin: 0 0 18px; }
.akr-ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.akr-li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(48, 25, 74, .55), rgba(18, 9, 33, .75)); border: 1px solid rgba(201, 164, 91, .22); border-radius: 14px; }
.akr-li-spine { width: 26px; height: 58px; display: grid; place-items: center; border-radius: 3px; color: var(--akr-gold-l); font-size: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .4), transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%), hsl(var(--hue) var(--sat) var(--lit));
  box-shadow: inset 0 3px 0 -1px var(--akr-gold), inset 0 -3px 0 -1px var(--akr-gold); }
.akr-li-t { margin: 0; font: 600 16px/1.3 "Cinzel", serif; letter-spacing: .02em; }
.akr-li-t button { all: unset; cursor: pointer; color: var(--akr-gold-l); }
.akr-li-t button:hover { text-decoration: underline; text-underline-offset: 3px; }
.akr-li-kept { color: #e06a7e; }
.akr-li-ths { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.akr-li-th { font: 600 10px/1 "Cinzel", serif; letter-spacing: .08em; text-transform: uppercase; color: #d9c9f2; padding: 5px 8px; border: 1px solid rgba(135, 85, 215, .45); border-radius: 99px; }
.akr-li-d { margin: 6px 0 0; font: 17px/1.4 "Cormorant Garamond", serif; color: #e3d8f2; }
.akr-li-meta { margin: 4px 0 0; font: italic 15px/1.3 "Cormorant Garamond", serif; color: #b9a8d6; }
.akr-li-go { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--akr-gold); background: rgba(201, 164, 91, .12);
  color: var(--akr-gold-l); font: 600 11.5px/1 "Cinzel", serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.akr-li-go:hover { background: rgba(201, 164, 91, .25); }
@media (max-width: 600px) {
  .akr-li { grid-template-columns: auto 1fr; }
  .akr-li-go { grid-column: 1 / -1; justify-self: stretch; }
}

/* ════════════════ Le pupitre ════════════════ */
html.akr-open { overflow: hidden; }
.akr-ov { position: fixed; inset: 0; z-index: 9000; perspective: 1800px; }
.akr-ov[hidden] { display: none; }
.akr-ov-back { position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(48, 25, 74, .82), rgba(7, 5, 22, .96)), #070516; }
.akr-stage { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: center;
  padding: max(56px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.akr-halo { position: absolute; left: 50%; top: 48%; width: min(1100px, 96vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(135, 85, 215, .35), transparent 70%); }
.akr-lectern { position: absolute; left: 50%; bottom: 0; width: min(760px, 92vw); transform: translateX(-50%); pointer-events: none; opacity: .95; }
.akr-lectern svg { display: block; width: 100%; height: auto; }

.akr-spread { position: relative; z-index: 1; grid-column: 2; display: grid; grid-template-columns: 1fr 1fr;
  width: min(1000px, 100%); height: min(620px, calc(100dvh - 190px)); min-height: 440px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); }
.akr-pg { position: relative; overflow: hidden; }
.akr-pg-l { border-radius: 14px 4px 4px 14px; padding: 18px;
  background: linear-gradient(90deg, #1b0d2c, #2a1645 90%, #160a24), #2a1645; box-shadow: inset -14px 0 24px -12px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(201, 164, 91, .35); }
.akr-pv-cover { position: relative; height: 100%; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px 26px; text-align: center;
  background: radial-gradient(90% 60% at 50% 30%, hsl(var(--hue) calc(var(--sat) + 10%) calc(var(--lit) + 14%)), hsl(var(--hue) var(--sat) var(--lit)) 70%, hsl(var(--hue) var(--sat) calc(var(--lit) - 8%)));
  border: 1px solid rgba(201, 164, 91, .75); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .22), inset 0 0 0 7px rgba(240, 216, 149, .4); color: var(--akr-gold-l); container-type: size; }
.akr-pv-corner { position: absolute; width: 26px; height: 26px; border: 1.5px solid var(--akr-gold); }
.akr-pv-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; } .akr-pv-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.akr-pv-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; } .akr-pv-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.akr-pv-motif { width: min(42cqw, 30cqh); height: auto; fill: none; stroke: var(--akr-gold-l); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(240, 216, 149, .45)); }
.akr-pv-img { max-width: 78%; max-height: 46%; object-fit: contain; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.akr-pv-short { margin: 0; font: 600 clamp(20px, 7cqw, 40px)/1.1 "Cinzel Decorative", "Cinzel", serif; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.akr-pv-sub { margin: 0; max-width: 90%; font: 600 clamp(11px, 3.2cqw, 15px)/1.35 "Cinzel", serif; letter-spacing: .08em; text-transform: uppercase; color: #f3e3b4; }
.akr-pv-star { font-size: 18px; opacity: .8; }

.akr-pg-r { border-radius: 4px 14px 14px 4px; padding: clamp(22px, 3.4vw, 40px) clamp(20px, 3.4vw, 42px); overflow-y: auto; color: var(--akr-ink);
  background: radial-gradient(120% 90% at 0% 50%, rgba(120, 80, 30, .2), transparent 30%), linear-gradient(90deg, #d6bf8d, #ead7ae 8%, #f2e3c0 60%, #e2cc9c);
  box-shadow: inset 14px 0 22px -14px rgba(60, 35, 10, .7), inset 0 0 0 1px rgba(120, 80, 30, .4); }
.akr-ribbon { position: absolute; top: -4px; right: 34px; width: 22px; height: 88px; background: linear-gradient(90deg, #4b2380, #6b3bb0, #4b2380);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.akr-pv-eyebrow { margin: 0 0 8px; font: 600 11px/1.2 "Cinzel", serif; letter-spacing: .22em; text-transform: uppercase; color: #6b4a1e; text-align: center; padding: 0 30px; }
.akr-pv-title { margin: 0; padding: 0 36px; text-align: center; font: 600 clamp(19px, 2vw, 26px)/1.22 "Cinzel", serif; color: #2a1a0c; overflow-wrap: anywhere; }
.akr-pv-orn { margin: 8px 0 14px; text-align: center; color: #9a7434; letter-spacing: .3em; }
.akr-pv-excerpt { margin: 0 0 16px; font: 19px/1.5 "Cormorant Garamond", serif; color: #33230f; }
.akr-pv-label { margin: 0 0 8px; font: 600 10.5px/1 "Cinzel", serif; letter-spacing: .18em; text-transform: uppercase; color: #6b4a1e; }
.akr-pv-ths ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 0; }
.akr-pv-ths li { font: italic 15.5px/1 "Cormorant Garamond", serif; color: #3d2a12; padding: 6px 11px; border: 1px solid rgba(107, 74, 30, .55); border-radius: 99px; background: rgba(255, 248, 230, .5); }
.akr-pv-info { margin: 0 0 18px; font: italic 16px/1.35 "Cormorant Garamond", serif; color: #5a4220; }
.akr-pv-acts { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.akr-read { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 22px; cursor: pointer; border-radius: 999px;
  font: 700 12.5px/1 "Cinzel", serif; letter-spacing: .12em; text-transform: uppercase; color: #f6ecd2;
  background: linear-gradient(180deg, #4b2380, #2a1145); border: 1px solid #c9a45b; box-shadow: inset 0 0 0 2px rgba(240, 216, 149, .2), 0 6px 16px rgba(48, 25, 74, .45); }
.akr-read:hover { background: linear-gradient(180deg, #5d2ea0, #34165a); }
.akr-read svg, .akr-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.akr-act { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; cursor: pointer; border-radius: 999px;
  font: 600 15.5px/1 "Cormorant Garamond", serif; color: #3d2a12; background: rgba(255, 248, 230, .55); border: 1px solid rgba(107, 74, 30, .5); }
.akr-act:hover { background: rgba(255, 248, 230, .9); }
.akr-act[aria-pressed="true"] { color: #8a1f30; border-color: #8a1f30; }
.akr-act[aria-pressed="true"] svg { fill: #b02a3e; stroke: #8a1f30; }

.akr-nav { position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font: 30px/1 "Cormorant Garamond", serif; color: var(--akr-gold-l); background: rgba(18, 9, 33, .85); border: 1px solid var(--akr-gold); margin: 0 10px; }
.akr-nav:hover:not(:disabled) { box-shadow: 0 0 18px rgba(201, 164, 91, .5); }
.akr-nav:disabled { opacity: .3; cursor: default; }
.akr-nav span { margin-top: -4px; }
.akr-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font: 30px/1 "Cormorant Garamond", serif; color: var(--akr-gold-l); background: rgba(18, 9, 33, .9); border: 1px solid var(--akr-gold); }
.akr-x:hover { box-shadow: 0 0 18px rgba(201, 164, 91, .5); }
.akr-reader-host { display: none; }

/* ouvrages voisins (en haut) ; les flèches latérales tournent les pages */
.akr-shelfnav { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.akr-shelfnav[hidden], .akr-stage[data-mode="reading"] .akr-shelfnav { display: none; }
.akr-shelfnav button { min-height: 40px; padding: 0 14px; cursor: pointer; border-radius: 999px; font: 600 10.5px/1 "Cinzel", serif; letter-spacing: .1em; text-transform: uppercase;
  color: #e6d7f7; background: rgba(18, 9, 33, .85); border: 1px solid rgba(201, 164, 91, .45); }
.akr-shelfnav button:hover:not(:disabled) { color: var(--akr-gold-l); border-color: var(--akr-gold-l); }
.akr-shelfnav button:disabled { opacity: .35; cursor: default; }
/* coin de page à soulever */
.akr-corner { position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; padding: 0; border: 0; cursor: pointer; z-index: 2;
  background: linear-gradient(135deg, transparent 49%, #c8ad78 50%, #e9d6aa 72%, #b99a5f); border-radius: 0 0 14px 0; box-shadow: -3px -3px 8px rgba(60, 35, 10, .25);
  transition: width .2s, height .2s; }
.akr-corner:hover, .akr-corner:focus-visible { width: 62px; height: 62px; }

@media (min-width: 761px) {
  /* Lecture dans le livre du pupitre : le lecteur se pose exactement sur la double page */
  .akr-spread, .akr-reader-host { grid-row: 1; grid-column: 2; }
  .akr-stage[data-mode="reading"] .akr-reader-host { display: block; position: relative; z-index: 2;
    width: min(1000px, 100%); height: min(620px, calc(100dvh - 190px)); min-height: 440px; }
  /* la couverture reste visible le temps que la première feuille tourne, puis la présentation s'efface (plus de focus dessous) */
  .akr-stage[data-mode="reading"] .akr-spread { visibility: hidden; transition: visibility 0s linear .75s; }
  .akr-stage[data-mode="reading"]:has(.akl.is-entering) .akr-spread { visibility: visible; transition: none; }
}

/* ── Le livre volant (extraction, trajet, ouverture, retour) ── */
.akr-fly { position: fixed; z-index: 4; pointer-events: none; perspective: 1400px; }
.akr-fly-pages { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; background: linear-gradient(90deg, #d6bf8d, #ead7ae 10%, #f2e3c0); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.akr-fly-hinge { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; }
.akr-fly-cover, .akr-fly-inside { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 4px 12px 12px 4px; }
.akr-fly-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8%; container-type: size; color: var(--akr-gold-l);
  background: radial-gradient(90% 60% at 50% 30%, hsl(var(--hue) calc(var(--sat) + 10%) calc(var(--lit) + 14%)), hsl(var(--hue) var(--sat) var(--lit)) 70%, hsl(var(--hue) var(--sat) calc(var(--lit) - 8%)));
  border: 1px solid rgba(201, 164, 91, .8); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .25), inset 0 0 0 7px rgba(240, 216, 149, .45), 0 18px 36px rgba(0, 0, 0, .6); }
.akr-fly-cover .akr-pv-motif { width: 38cqw; }
.akr-fly-t { margin: 0; padding: 0 8%; text-align: center; font: 600 7.5cqw/1.1 "Cinzel Decorative", "Cinzel", serif; text-transform: uppercase; letter-spacing: .06em; }
.akr-fly-inside { transform: rotateY(180deg); border-radius: 12px 4px 4px 12px; background: linear-gradient(90deg, #1b0d2c, #2a1645 90%, #160a24); box-shadow: inset 0 0 0 2px rgba(201, 164, 91, .35); }
.akr-fly-spine { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; overflow: hidden; border-radius: 3px; color: #f3e3b4;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 18%, rgba(255, 255, 255, .14) 45%, transparent 62%, rgba(0, 0, 0, .5)), hsl(var(--hue) var(--sat) var(--lit));
  box-shadow: inset 0 10px 0 -8px var(--akr-gold), inset 0 -10px 0 -8px var(--akr-gold); transform-origin: 100% 50%; }

/* ════════════════ Le lecteur ════════════════ */
.akl > * { min-width: 0; }
.akl { --akl-fs: 1; position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 8px; color: var(--akr-text); }
.akl-bar { grid-row: 1; } .akl-resume { grid-row: 2; } .akl-book, .akl-scroll { grid-row: 3; } .akl-nav { grid-row: 4; }
.akl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 54px; }
.akl-title { flex: 1 1 260px; min-width: 0; margin: 0; font: 600 clamp(14px, 1.5vw, 18px)/1.25 "Cinzel", serif; color: var(--akr-gold-l); letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akl-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.akl-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 12px; cursor: pointer; border-radius: 999px;
  font: 600 11px/1 "Cinzel", serif; letter-spacing: .08em; color: #e6d7f7; background: rgba(18, 9, 33, .85); border: 1px solid rgba(201, 164, 91, .45); }
.akl-b:hover { border-color: var(--akr-gold-l); color: var(--akr-gold-l); }
.akl-b svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.akl-b[aria-pressed="true"], .akl-b[aria-expanded="true"], .akl-b.is-on { color: #1b0f05; background: linear-gradient(180deg, #f0d895, #c9a45b); border-color: #f0d895; }
.akl-b.is-on svg { fill: #8a1f30; stroke: #5a1220; }
.akl-resume { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font: italic 17px/1.3 "Cormorant Garamond", serif; color: #e3d8f2; }
.akl-resume[hidden] { display: none; }

.akl-book { position: relative; min-height: 0; width: min(1180px, 100%); justify-self: center; display: grid; grid-template-columns: 1fr; perspective: 2200px;
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, .65)); }
.akl.is-spread .akl-book { grid-template-columns: 1fr 1fr; }
.akl:not(.is-spread) .akl-r, .akl:not(.is-spread) .akl-gutter { display: none; }
.akl-page { position: relative; min-height: 0; display: flex; flex-direction: column; overflow: hidden; color: var(--akr-ink);
  padding: clamp(18px, 3vh, 34px) clamp(18px, 3vw, 46px) 10px;
  background: linear-gradient(90deg, #e2cc9c, #f2e3c0 12%, #f4e7c8 70%, #ead7ae); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(120, 80, 30, .35), inset 0 0 40px rgba(150, 110, 50, .22); }
.akl.is-spread .akl-l { border-radius: 12px 3px 3px 12px; box-shadow: inset -18px 0 24px -16px rgba(60, 35, 10, .65), inset 0 0 0 1px rgba(120, 80, 30, .35); }
.akl.is-spread .akl-r { border-radius: 3px 12px 12px 3px; box-shadow: inset 18px 0 24px -16px rgba(60, 35, 10, .65), inset 0 0 0 1px rgba(120, 80, 30, .35); }
.akl-gutter { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: rgba(90, 60, 25, .5); pointer-events: none; }
.akl-in {
  flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; row-gap: calc(.7em * var(--akl-fs));
  font: calc(19px * var(--akl-fs))/1.55 "Cormorant Garamond", serif; color: #2e2010; hyphens: auto; -webkit-hyphens: auto; text-align: justify;
}
.akl-in > * { margin: 0 !important; flex: none; }
.akl-in h2 { font: 600 calc(1.12em)/1.25 "Cinzel", serif; color: #3a2408; text-align: center; letter-spacing: .04em; padding-top: .5em; }
.akl-in h3 { font: 600 calc(.98em)/1.3 "Cinzel", serif; color: #4b3010; letter-spacing: .03em; padding-top: .3em; text-align: left; }
.akl-in ul, .akl-in ol { padding-left: 1.3em; } .akl-in li + li { margin-top: .25em; }
.akl-in blockquote, .akl-in aside { padding: .5em .9em; border-left: 3px solid #9a7434; background: rgba(154, 116, 52, .1); border-radius: 0 8px 8px 0; font-style: italic; }
.akl-in blockquote p, .akl-in aside p { margin: 0; } .akl-in blockquote p + p, .akl-in aside p + p { margin-top: .35em; }
.akl-in .akl-cont { border-top-left-radius: 0; }
.akl-in hr { border: 0; height: 12px; background: radial-gradient(circle, #9a7434 0 2px, transparent 3px) center/18px 12px repeat-x; opacity: .7; width: 40%; align-self: center; }
.akl-in a, .akl-scroll a { color: #5a2d91; }
.akl-in strong { color: #22150a; }
.akl-fin { margin: auto !important; font-size: 30px; color: #9a7434; }
.akl-folio { flex: none; text-align: center; padding-top: 6px; font: 600 11px/1 "Cinzel", serif; color: #8a6a3a; letter-spacing: .12em; }
.akl-page.is-blank { background: linear-gradient(90deg, #e2cc9c, #efdfbb); }
::highlight(akl-hit) { background-color: rgba(201, 164, 91, .55); color: #1a0f05; }

/* feuille qui tourne */
.akl-leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; z-index: 3; pointer-events: none; }
.akl-leaf.is-next { left: 50%; transform-origin: 0 50%; }
.akl-leaf.is-prev { left: 0; transform-origin: 100% 50%; }
.akl-leaf.is-single { left: 0; width: 100%; transform-origin: 0 50%; }
.akl-leaf-f, .akl-leaf-b { position: absolute; inset: 0; backface-visibility: hidden; }
.akl-leaf-b { transform: rotateY(180deg); }
.akl-leaf-f::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 30%); }

.akl-scroll { display: none; min-height: 0; overflow-y: auto; width: min(760px, 100%); justify-self: center; padding: clamp(18px, 4vw, 44px); border-radius: 12px;
  background: linear-gradient(180deg, #f4e7c8, #ead7ae); color: #2e2010; font: calc(19px * var(--akl-fs))/1.65 "Cormorant Garamond", serif; }
.akl-scroll > * + * { margin-top: .8em; }
.akl-scroll h2 { font: 600 1.15em/1.3 "Cinzel", serif; color: #3a2408; text-align: center; margin-top: 1.4em; }
.akl-scroll h3 { font: 600 1em/1.3 "Cinzel", serif; color: #4b3010; margin-top: 1.1em; }
.akl-scroll blockquote, .akl-scroll aside { padding: .5em .9em; border-left: 3px solid #9a7434; background: rgba(154, 116, 52, .1); font-style: italic; }
.akl-scroll hr { border: 0; border-top: 1px solid rgba(154, 116, 52, .5); width: 40%; margin: 1.4em auto; }
.akl[data-mode="scroll"] .akl-book, .akl[data-mode="scroll"] .akl-nav { display: none; }
.akl[data-mode="scroll"] .akl-scroll { display: block; }

.akl-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: min(1180px, 100%); justify-self: center; }
.akl-turn { min-height: 46px; padding: 0 18px; cursor: pointer; border-radius: 999px; font: 600 11.5px/1 "Cinzel", serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--akr-gold-l); background: rgba(18, 9, 33, .9); border: 1px solid var(--akr-gold); }
.akl-turn:disabled { opacity: .35; cursor: default; }
.akl-turn:hover:not(:disabled) { box-shadow: 0 0 16px rgba(201, 164, 91, .45); }
.akl-progress { text-align: center; }
.akl-bar-p { height: 4px; border-radius: 4px; background: rgba(201, 164, 91, .2); overflow: hidden; }
.akl-bar-p i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8755d7, #f0d895); transition: width .3s; }
.akl-where { margin: 6px 0 0; font: italic 16px/1 "Cormorant Garamond", serif; color: #d9c9f2; }

.akl-panel { position: absolute; top: 56px; right: 0; z-index: 5; width: min(380px, 100%); max-height: calc(100% - 70px); overflow-y: auto; padding: 16px 18px;
  background: rgba(13, 7, 26, .97); border: 1px solid rgba(201, 164, 91, .55); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.akl-ph { margin: 0 0 10px; font: 600 12px/1 "Cinzel", serif; letter-spacing: .16em; text-transform: uppercase; color: var(--akr-gold-l); }
.akl-ph:not(:first-child) { margin-top: 18px; }
.akl-toc, .akl-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.akl-toc button, .akl-hits button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font: 17px/1.3 "Cormorant Garamond", serif; color: #eadff7; }
.akl-toc button:hover, .akl-hits button:hover, .akl-toc button:focus-visible, .akl-hits button:focus-visible { background: rgba(135, 85, 215, .22); outline: 1px solid rgba(240, 216, 149, .5); }
.akl-toc .lv3 button { padding-left: 24px; font-size: 16px; color: #cbb9e6; }
.akl-pn { flex: none; font: italic 15px/1.3 "Cormorant Garamond", serif; color: var(--akr-gold-l); }
.akl-pe { margin: 0; font: italic 16px/1.4 "Cormorant Garamond", serif; color: #b9a8d6; }
.akl-find { display: flex; gap: 8px; margin-bottom: 10px; }
.akl-find input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(201, 164, 91, .5); background: #1a0e2c; color: #fff; font: 17px "Cormorant Garamond", serif; }

/* page de mesure (invisible, même taille qu'une page) */
.akl-measure { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }
.akl-measure .akl-page { display: flex; }
.akl-measure .akl-in { flex: none; height: auto !important; overflow: visible; }

/* ── Lecture dans le livre du pupitre (ordinateur) ── */
.akl.is-inline { display: block; height: 100%; }
.akl.is-loading { visibility: hidden; }
.akl.is-inline .akl-book { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); }
.akl.is-inline .akl-scroll { position: absolute; inset: 0; width: 100%; }
.akl.is-inline.is-spread .akl-l { border-radius: 14px 4px 4px 14px; }
.akl.is-inline.is-spread .akl-r { border-radius: 4px 14px 14px 4px; }
.akl.is-inline .akl-bar { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); justify-content: center; padding-right: 0; }
.akl.is-inline .akl-title { display: none; }
.akl.is-inline .akl-turn { display: none; }
.akl.is-inline .akl-nav { position: absolute; left: 50%; top: calc(100% + 10px); width: min(420px, 80%); transform: translateX(-50%); display: block; }
.akl.is-inline .akl-resume { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 4; width: max-content; max-width: 90%;
  padding: 8px 16px; border-radius: 999px; background: rgba(13, 7, 26, .94); border: 1px solid rgba(201, 164, 91, .55); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.akl.is-inline .akl-panel { top: 0; }
.akl.is-inline.is-entering .akl-l { visibility: hidden; }
.akl-leaf .akl-intro { position: absolute; inset: 0; height: 100%; overflow: hidden; border-radius: 4px 14px 14px 4px; }
.akl-leaf .akl-intro .akr-corner { display: none; }

/* ════════════════ Téléphone ════════════════ */
@media (max-width: 760px) {
  .akr-views { justify-content: center; }
  .akr-vbtn { padding: 8px 12px; font-size: 11px; }
  .akr-hall { padding: 18px 8px 24px; border-radius: 16px; }
  .akr-hall::before, .akr-hall::after { display: none; }
  .akr-lantern { display: none; }
  .akr-case { padding: 30px 8px 10px; }
  .akr-row { padding: 0 4px var(--akr-plank); justify-content: center; }
  .akr-orn { display: none; }

  .akr-stage { display: block; padding: 0; }
  .akr-lectern, .akr-halo, .akr-nav { display: none; }
  .akr-spread { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; display: block; overflow-y: auto; filter: none;
    background: linear-gradient(180deg, #f2e3c0, #ead7ae); padding-bottom: env(safe-area-inset-bottom); }
  .akr-pg-l { border-radius: 0; padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 18px 14px; box-shadow: none; }
  .akr-pv-cover { height: auto; min-height: 220px; padding: 22px 18px; }
  .akr-pv-motif { width: 86px; }
  .akr-pv-short { font-size: 28px; }
  .akr-pv-sub { font-size: 13px; }
  .akr-pg-r { border-radius: 0; overflow: visible; box-shadow: none; padding: 20px 20px 34px; background: none; }
  .akr-ribbon, .akr-corner { display: none; }
  .akr-shelfnav { top: max(10px, env(safe-area-inset-top)); left: 12px; transform: none; }
  .akr-shelfnav button { padding: 0 10px; font-size: 9.5px; }
  .akr-stage[data-mode="reading"] .akr-spread { display: none; }
  .akr-stage[data-mode="reading"] .akr-reader-host { display: block; position: absolute; inset: 0; z-index: 2;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .akr-read { flex: 1 1 100%; justify-content: center; }
  .akl { gap: 6px; }
  .akl-bar { padding-right: 52px; }
  .akl-bar { flex-wrap: nowrap; gap: 8px; }
  .akl-title { flex: 1 1 auto; font-size: 12.5px; }
  .akl-tools { order: 3; flex: none; width: 100%; margin-top: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .akl-bar { flex-wrap: wrap; }
  .akl-bar > .akl-back, .akl-bar > .akl-title { order: 1; }
  .akl-title { flex-basis: 0; }
  .akl-b { padding: 0 10px; flex: none; }
  .akl-tl { display: none; }
  .akl-turn { min-width: 52px; font-size: 20px; padding: 0 12px; }
  .akl-page { padding: 18px 18px 8px; }
  .akl-panel { top: auto; bottom: 64px; left: 0; width: 100%; max-height: 60%; }
}

/* ════════════════ Mouvement réduit ════════════════ */
@media (prefers-reduced-motion: reduce) {
  .akr-book, .akr-plaque, .akr-floor, .akr-shelf, .akl-bar-p i { transition: none !important; }
  .akr-book:hover, .akr-book:focus-visible { transform: rotate(var(--lean, 0deg)); }
  .akr-orn .flame { animation: none; }
}
@media (forced-colors: active) {
  .akr-book { border: 1px solid CanvasText; }
  .akr-book.is-dim { opacity: .5; }
}
