@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════════════
   AKASHA · BIBLIOTHÈQUE AKASHIQUE — refonte VISUELLE / UX (2026-10-06)
   Couche chargée APRÈS toutes les feuilles d'Akasha : elle habille, elle ne
   remplace rien. Aucun ID, aucune fonction, aucune donnée touchés.
   Parcours spatial : PORTAIL (intro) → GRANDE GALERIE (accueil) → ROTONDE
   (Noosphère) → 7 ÉTAGES → PARCHEMINS → TRANSMISSIONS VISUELLES →
   MUSICOTHÈQUE → LIBRAIRIE → ARCHIVES PERSONNELLES (Mon Inventaire).
   Préfixe .akb- pour tout ce qui est nouveau. Décor = CSS, SVG, dégradés,
   pseudo-éléments (pas de vidéo, pas de WebGL). prefers-reduced-motion coupe
   toutes les animations de cette couche (fin de fichier).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --akb-night: #05041a;
  --akb-indigo: #1b1550;
  --akb-violet: #3a2470;
  --akb-violet-l: #8f6ad8;
  --akb-gold: #d3ae57;
  --akb-gold-l: #f1d891;
  --akb-gold-old: #9c7a2c;
  --akb-ivory: #f1ebdc;
  --akb-parch: #e9dcbc;
  --akb-cyan: #8fdcec;
  --akb-wood: #1d1022;
  --akb-hair: rgba(211,174,87,.32);      /* filet d'or très fin */
  --akb-hair-soft: rgba(211,174,87,.16);
  --akb-ease: cubic-bezier(.2,.7,.2,1);
}

@keyframes akbBreath { 0%,100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes akbFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes akbSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ═════════════════════════════ 1. PORTAIL (intro) ═════════════════════════════ */
/* rayonnages suggérés en profondeur autour du portail */
.akb-intro-depth {
  position: absolute; inset: -4%; pointer-events: none;
  background: url('ASSETS/akasha-galerie.svg') center 46% / cover no-repeat;
  filter: blur(1.4px) saturate(.85);
  -webkit-mask: radial-gradient(ellipse 72% 64% at 50% 46%, #000 25%, transparent 82%);
          mask: radial-gradient(ellipse 72% 64% at 50% 46%, #000 25%, transparent 82%);
  opacity: 0; animation: akbDepthIn 3.2s ease forwards .2s;
}
@keyframes akbDepthIn { to { opacity: .2; } }

.akb-portal {
  --pw: min(90vw, 600px, 60vh);
  position: absolute; left: 50%; top: 48%; z-index: 1; pointer-events: none;
  width: var(--pw); height: calc(var(--pw) * 1.3);
  transform: translate(-50%, -50%);
  opacity: 0; animation: akbPortalIn 2.4s var(--akb-ease) forwards .3s;
}
@keyframes akbPortalIn {
  from { opacity: 0; transform: translate(-50%, -48.5%) scale(.965); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.akb-portal-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 10px rgba(211,174,87,.22)); }
.akb-pf-energy { animation: akbEnergy 14s linear infinite; }
@keyframes akbEnergy { to { stroke-dashoffset: -300; } }
.akb-pf-key { transform-box: fill-box; transform-origin: center; animation: akbKey 5s ease-in-out infinite; }
@keyframes akbKey { 0%,100% { opacity: .7; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }

/* ouverture de l'arche (gabarit = trou de l'arche du SVG 640×832 : x 130→510, y 140→800) */
.akb-gate {
  position: absolute; left: 20.3125%; width: 59.375%; top: 16.83%; height: 79.33%;
  border-radius: 50% 50% 0 0 / 28.79% 28.79% 0 0; overflow: hidden;
  perspective: 900px; background: #07051a;
  box-shadow: 0 0 60px rgba(143,106,216,.25), 0 0 120px rgba(211,174,87,.08);
}
.akb-gate-hall {
  position: absolute; inset: 0;
  background: url('ASSETS/akasha-galerie.svg') center / cover no-repeat;
  transform: scale(1.04); transition: transform 1.5s var(--akb-ease), filter 1.2s ease;
}
/* lumière qui filtre entre les deux battants */
.akb-gate::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; z-index: 3; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 3%, rgba(255,240,205,.85) 28%, #fff6dc 58%, rgba(200,170,255,.55) 90%, transparent);
  box-shadow: 0 0 12px 2px rgba(255,226,160,.55), 0 0 36px 7px rgba(160,120,230,.32);
  animation: akbBreath 4.6s ease-in-out infinite; transition: opacity .4s ease;
}
.akb-door {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s var(--akb-ease);
  background:
    radial-gradient(circle at var(--hx) 57%, #f4dd90 0 2.6px, #8a6a2c 3px 4.6px, transparent 5px),
    radial-gradient(circle at var(--hx) 57%, transparent 0 8px, rgba(196,159,72,.55) 8.5px 9.3px, transparent 9.8px),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 32%, transparent 80%, rgba(0,0,0,.35)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 2px, transparent 2px 7px),
    linear-gradient(90deg, #120a24, #22143c 52%, #170c2c);
  box-shadow: inset 0 0 0 1px rgba(196,159,72,.38), inset 0 0 34px rgba(0,0,0,.55);
}
.akb-door.l { left: 0; transform-origin: left center; --hx: 86%; }
.akb-door.r { right: 0; transform-origin: right center; --hx: 14%; }
/* panneaux gravés : haut (arqué, constellation) et bas */
.akb-door::before {
  content: ""; position: absolute; left: 15%; right: 15%; top: 27%; height: 34%;
  border: 1px solid rgba(212,175,90,.42); border-radius: 50% 50% 3px 3px / 26% 26% 3px 3px;
  box-shadow: inset 0 0 0 4px rgba(10,6,22,.6), inset 0 0 0 5px rgba(212,175,90,.16), inset 0 0 26px rgba(143,106,216,.2);
}
.akb-door::after {
  content: ""; position: absolute; left: 15%; right: 15%; top: 67%; height: 25%;
  border: 1px solid rgba(212,175,90,.3); border-radius: 3px;
  box-shadow: inset 0 0 0 4px rgba(10,6,22,.6), inset 0 0 0 5px rgba(212,175,90,.12);
}
.akb-door i {
  position: absolute; left: 22%; right: 22%; top: 33%; height: 24%; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80' fill='none' stroke='%23e8c97a' stroke-opacity='.65' stroke-width='.8'%3E%3Cpath d='M10 66L22 47 34 54 45 31 30 15'/%3E%3Cpath d='M34 54L46 66' stroke-dasharray='1.5 2.5'/%3E%3Cg fill='%23f8efc0' stroke='none'%3E%3Ccircle cx='10' cy='66' r='1.6'/%3E%3Ccircle cx='22' cy='47' r='1.3'/%3E%3Ccircle cx='34' cy='54' r='1.7'/%3E%3Ccircle cx='45' cy='31' r='2.1'/%3E%3Ccircle cx='30' cy='15' r='1.3'/%3E%3Ccircle cx='46' cy='66' r='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.akb-door.r i { transform: scaleX(-1); }

/* survol du bouton : les battants s'entrouvrent */
@media (hover: hover) {
  #akashaIntro:has(.intro-enter:hover) .akb-door.l { transform: rotateY(11deg); }
  #akashaIntro:has(.intro-enter:hover) .akb-door.r { transform: rotateY(-11deg); }
  #akashaIntro:has(.intro-enter:hover) .akb-gate-hall { filter: brightness(1.2); }
}
/* « Entrer dans Akasha » : les portes s'ouvrent sur la galerie, puis l'intro se dissout */
#akashaIntro.intro-leaving { transition: opacity .85s ease .3s, transform 1.15s ease; }
#akashaIntro.intro-leaving .akb-door { transition: transform 1s cubic-bezier(.6,.05,.3,1); }
#akashaIntro.intro-leaving .akb-door.l { transform: rotateY(104deg); }
#akashaIntro.intro-leaving .akb-door.r { transform: rotateY(-104deg); }
#akashaIntro.intro-leaving .akb-gate-hall { transform: scale(1.4); filter: brightness(1.6); }
#akashaIntro.intro-leaving .akb-gate::after { opacity: 0; animation: none; }

/* lisibilité des textes posés sur les battants */
#akashaIntro .intro-core { z-index: 3; }
#akashaIntro .intro-lightburst { z-index: 2; }
@keyframes akbBurstSoft { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.12); } 42% { opacity: .8; } 100% { opacity: .3; transform: translate(-50%,-50%) scale(1); } }
#akashaIntro:not(.intro-leaving) .intro-lightburst { animation-name: akbBurstSoft; }
#akashaIntro .intro-sacred-wrap { opacity: 0; animation-name: akbSacredIn; }
@keyframes akbSacredIn { to { opacity: .22; } }
#akashaIntro .intro-title { font-size: clamp(44px, 10vw, 100px); }
#akashaIntro .intro-wordmark { filter: drop-shadow(0 4px 22px rgba(0,0,0,.85)) drop-shadow(0 0 30px rgba(232,201,122,.25)); }
#akashaIntro .intro-subtitle { text-shadow: 0 2px 12px #000, 0 0 22px rgba(160,110,220,.45); }
#akashaIntro .intro-slogan { text-shadow: 0 2px 12px #000, 0 0 2px #000; color: #cdbfe0; }

/* « Passer l'introduction » : centré sans transform (l'animation introFadeUp finit sur
   transform:none, ce qui annulait le translateX(-50%) et décalait le lien à droite) */
#akashaIntro .intro-skip { left: 0; right: 0; margin: 0 auto; width: max-content; transform: none; z-index: 3; }

/* le bouton : un heurtoir de laiton qui ouvre la porte */
#akashaIntro .intro-enter {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 40px 40px 12px 12px;
  background: linear-gradient(180deg, #2c1a52 0%, #1a0f36 100%);
  border: 1px solid rgba(224,192,108,.65);
  box-shadow: 0 0 26px rgba(122,69,192,.3), inset 0 0 0 3px rgba(10,6,24,.6), inset 0 0 0 4px rgba(224,192,108,.22), inset 0 1px 0 rgba(255,255,255,.1);
}
#akashaIntro .intro-enter::before {
  content: ""; width: 18px; height: 20px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20' fill='none' stroke='%23f1d891' stroke-width='1.1'%3E%3Cpath d='M2 19V8a7 7 0 0 1 14 0v11z'/%3E%3Cpath d='M9 2v17'/%3E%3Ccircle cx='7' cy='12' r='.9' fill='%23f1d891'/%3E%3Ccircle cx='11' cy='12' r='.9' fill='%23f1d891'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(241,216,145,.6));
}
#akashaIntro .intro-enter:hover, #akashaIntro .intro-enter:focus-visible {
  background: linear-gradient(180deg, #3a2470 0%, #22144a 100%);
  border-color: #f1d891;
}

/* ═════════════════════════ 2. GRANDE GALERIE (fond global) ═════════════════════════ */
.akb-hall {
  --akb-tint: 158,118,235;
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
/* lumière douce venant du fond de la salle */
.akb-hall::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: min(86vw, 980px); aspect-ratio: 1.45;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--akb-tint),.2) 0%, rgba(var(--akb-tint),.07) 42%, transparent 70%);
  animation: akbBreath 10s ease-in-out infinite;
}
/* brume au ras du sol */
.akb-hall::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(0deg, rgba(var(--akb-tint),.09), transparent);
}
/* arcades : grande arche + arche intérieure + pilastres */
.akb-arcade {
  position: absolute; left: 50%; top: 92px; width: min(96vw, 1400px); height: 170%;
  transform: translateX(-50%);
  border: 1px solid rgba(211,174,87,.13); border-bottom: 0;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  -webkit-mask: linear-gradient(#000 0%, #000 30%, transparent 62%);
          mask: linear-gradient(#000 0%, #000 30%, transparent 62%);
}
.akb-arcade::before {
  content: ""; position: absolute; inset: 22px 22px 0;
  border: 1px solid rgba(143,106,216,.12); border-bottom: 0; border-radius: inherit;
}
.akb-arcade::after {
  content: ""; position: absolute; inset: 9px 9px 0; border-radius: inherit;
  border: 2px dotted rgba(241,216,145,.12); border-bottom: 0;
}
/* lignes de perspective du dallage, qui fuient vers le fond */
.akb-floor {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 44%;
  background: repeating-conic-gradient(from 90deg at 50% -60%, rgba(211,174,87,.085) 0 .3deg, transparent .3deg 6deg);
  -webkit-mask: linear-gradient(transparent 0%, #000 70%);
          mask: linear-gradient(transparent 0%, #000 70%);
}
/* poussière lumineuse (2 couches décalées) */
.akb-dust {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%;
  box-shadow:
    8vw 86vh 0 0 rgba(255,236,190,.55), 19vw 72vh 0 .4px rgba(255,236,190,.35), 27vw 95vh 0 0 rgba(220,200,255,.5),
    36vw 78vh 0 .6px rgba(255,236,190,.4), 44vw 90vh 0 0 rgba(255,236,190,.55), 53vw 70vh 0 0 rgba(220,200,255,.4),
    61vw 88vh 0 .5px rgba(255,236,190,.45), 70vw 76vh 0 0 rgba(255,236,190,.35), 79vw 93vh 0 .3px rgba(220,200,255,.5),
    88vw 81vh 0 0 rgba(255,236,190,.5), 94vw 68vh 0 .4px rgba(255,236,190,.35), 14vw 64vh 0 0 rgba(220,200,255,.35);
  animation: akbDust 30s linear infinite;
}
.akb-dust.d2 {
  box-shadow:
    4vw 74vh 0 .3px rgba(255,236,190,.4), 23vw 84vh 0 0 rgba(255,236,190,.5), 32vw 66vh 0 0 rgba(220,200,255,.45),
    48vw 82vh 0 .5px rgba(255,236,190,.35), 57vw 97vh 0 0 rgba(255,236,190,.5), 66vw 68vh 0 0 rgba(220,200,255,.4),
    74vw 86vh 0 .4px rgba(255,236,190,.45), 84vw 72vh 0 0 rgba(255,236,190,.4), 97vw 90vh 0 0 rgba(220,200,255,.45);
  animation-duration: 44s; animation-delay: -18s;
}
@keyframes akbDust {
  0%   { transform: translate(0, 0);       opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: .7; }
  100% { transform: translate(2vw, -46vh); opacity: 0; }
}
/* chaque salle a sa lumière */
#akashaApp[data-akb-room="noosphere"]  .akb-hall { --akb-tint: 120,110,240; }
#akashaApp[data-akb-room="etages"]     .akb-hall { --akb-tint: 176,122,236; }
#akashaApp[data-akb-room="parchemins"] .akb-hall { --akb-tint: 232,201,140; }
#akashaApp[data-akb-room="videos"]     .akb-hall { --akb-tint: 150,214,255; }
#akashaApp[data-akb-room="musique"]    .akb-hall { --akb-tint: 90,140,255; }
#akashaApp[data-akb-room="librairie"]  .akb-hall { --akb-tint: 214,160,90; }
#akashaApp[data-akb-room="inventaire"] .akb-hall { --akb-tint: 196,150,255; }
#akashaApp[data-akb-room="nexus"] .akb-hall,
#akashaApp[data-akb-room="gardien"] .akb-hall { opacity: .35; }
#akashaApp[data-akb-room="noosphere"] .akb-floor,
#akashaApp[data-akb-room="nexus"] .akb-floor { display: none; }

/* entrée dans une salle : le titre et l'emblème apparaissent comme une porte qui s'ouvre */
#akashaApp.akb-entering .panel.active .subpanel.active > .section-header,
#akashaApp.akb-entering .panel.active > .section-header,
#akashaApp.akb-entering #panelConstellations.active .ck-title {
  animation: akbFadeUp .8s var(--akb-ease) both;
}

/* ═════════════════════════ 3. EN-TÊTE & NAVIGATION ═════════════════════════ */
/* une arche fine au-dessus du titre AKASHA */
.topbar-logo::before {
  content: ""; position: absolute; left: 50%; top: -9px; bottom: -6px; width: calc(100% + 64px);
  transform: translateX(-50%); pointer-events: none;
  border: 1px solid rgba(211,174,87,.2); border-bottom: 0; border-radius: 999px 999px 0 0;
  -webkit-mask: linear-gradient(#000 40%, transparent 92%); mask: linear-gradient(#000 40%, transparent 92%);
}

/* barre du bas : chaque onglet devient une plaque gravée, l'onglet actif un sceau éclairé */
#ak-bottom-nav .akbn-item:not(.akbn-organize) {
  margin: 0 2px; border-radius: 13px 13px 5px 5px;
  background-color: rgba(20,13,44,.36);
  box-shadow: inset 0 0 0 1px rgba(196,159,72,.12), inset 0 12px 16px -12px rgba(232,201,122,.08);
}
#ak-bottom-nav .akbn-item:not(.akbn-organize):hover {
  background-color: rgba(34,23,70,.55);
  box-shadow: inset 0 0 0 1px rgba(196,159,72,.32), inset 0 12px 16px -10px rgba(232,201,122,.14);
}
#ak-bottom-nav .akbn-item.active:not(.akbn-organize) {
  background-color: rgba(48,31,96,.66);
  box-shadow: inset 0 0 0 1px rgba(224,192,108,.62), inset 0 16px 18px -10px rgba(241,216,145,.24),
              0 0 18px rgba(139,92,199,.3), 0 -3px 16px rgba(213,174,85,.16);
}
#ak-bottom-nav .akbn-item.active .akbn-lb { color: var(--akb-ivory); }
#ak-bottom-nav .akbn-item.active .akbn-ic::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none;
  border: 1px solid rgba(224,192,108,.5);
  background: radial-gradient(circle, rgba(241,216,145,.16), transparent 70%);
  box-shadow: 0 0 12px rgba(224,192,108,.25), inset 0 0 8px rgba(139,92,199,.3);
}
#ak-bottom-nav .akbn-item[data-aknav="comm"].active .akbn-ic::before { width: 38px; height: 38px; }
@media (max-width: 767px) {
  #ak-bottom-nav .akbn-item:not(.akbn-organize) { margin: 0 1px; border-radius: 10px 10px 4px 4px; }
  #ak-bottom-nav .akbn-item.active .akbn-ic::before { width: 30px; height: 30px; }
}

/* onglets de salle : plaques gravées (et non plus des pilules) */
.subtab-btn, .mus-tab-btn {
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, rgba(26,18,56,.72), rgba(10,7,26,.78));
  border-color: rgba(196,159,72,.24);
  box-shadow: inset 0 0 0 2px rgba(6,4,18,.45), inset 0 0 0 3px rgba(196,159,72,.07);
}
.subtab-btn.active, .mus-tab-btn.active {
  color: var(--akb-ivory);
  background: linear-gradient(180deg, rgba(64,42,120,.75), rgba(22,14,52,.85));
  border-color: rgba(224,192,108,.7);
  box-shadow: inset 0 0 0 2px rgba(6,4,18,.45), inset 0 0 0 3px rgba(224,192,108,.22), 0 0 18px rgba(211,174,87,.26), 0 4px 0 -2px rgba(224,192,108,.55);
}
.subtab-bar .subtab-btn.subtab-suggest { border-radius: 12px 12px 4px 4px; }

/* bandeau « Retour à la Noosphère » des salles ouvertes depuis la Noosphère : un linteau */
.noo-back {
  position: relative; padding: 10px 14px; border-radius: 14px 14px 6px 6px;
  background: linear-gradient(90deg, rgba(22,15,50,.82), rgba(10,7,26,.55));
  border: 1px solid var(--akb-hair-soft);
  box-shadow: inset 0 1px 0 rgba(241,216,145,.06);
}
.noo-back::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211,174,87,.55), transparent);
}
.noo-back span { color: var(--akb-gold-l); text-shadow: 0 0 14px rgba(211,174,87,.35); }

/* ═════════════════════════ 4. FRONTONS DES SALLES ═════════════════════════ */
/* arche fine derrière chaque titre de salle */
.section-header::after {
  content: ""; position: absolute; left: 50%; top: -2px; width: min(600px, 94%); height: 170px;
  transform: translateX(-50%); pointer-events: none; z-index: -1;
  border: 1px solid rgba(211,174,87,.15); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  -webkit-mask: linear-gradient(#000 30%, transparent 85%); mask: linear-gradient(#000 30%, transparent 85%);
}
.section-header { isolation: isolate; }

/* emblème de la salle, dans un médaillon qui respire */
.akb-emblem {
  --akb-e: 211,174,87;
  position: relative; width: 60px; height: 60px; margin: 0 auto 10px;
  display: grid; place-items: center; color: var(--akb-gold-l);
}
.akb-emblem::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--akb-e),.24) 0%, rgba(var(--akb-e),.06) 45%, transparent 70%);
  animation: akbBreath 6s ease-in-out infinite;
}
.akb-emblem::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(var(--akb-e),.35);
  box-shadow: inset 0 0 0 3px rgba(6,4,18,.4), inset 0 0 0 4px rgba(var(--akb-e),.12);
}
.akb-emblem svg {
  position: relative; z-index: 1; width: 38px; height: 38px;
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(var(--akb-e),.5));
}
.akb-emblem svg .c1 { fill: currentColor; }
.akb-emblem[data-room="videos"]     { --akb-e: 143,220,236; color: #c8f1fa; }
.akb-emblem[data-room="musique"]    { --akb-e: 110,150,255; color: #c9d8ff; }
.akb-emblem[data-room="parchemins"] { --akb-e: 233,220,188; color: var(--akb-parch); }
.akb-emblem[data-room="inventaire"] { --akb-e: 190,150,255; color: #e2d2ff; }
.akb-emblem[data-room="etages"]     { --akb-e: 200,140,255; }

/* ═════════════════════════ 6. NOOSPHÈRE = ROTONDE CENTRALE ═════════════════════════ */
.ck-stage { isolation: isolate; }
/* plan de la rotonde : anneau de rayonnages, 7 alcôves, dôme (tourne très lentement) */
.ck-stage::before {
  content: ""; position: absolute; left: 50%; top: 52%; z-index: -1; pointer-events: none;
  width: min(128vmin, 1220px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url('ASSETS/akasha-rotonde.svg') center / contain no-repeat;
  opacity: .5;
  -webkit-mask: radial-gradient(circle, #000 48%, rgba(0,0,0,.55) 62%, transparent 72%);
          mask: radial-gradient(circle, #000 48%, rgba(0,0,0,.55) 62%, transparent 72%);
  animation: akbSpin 900s linear infinite;
}
/* sphère de savoir au centre */
.ck-stage::after {
  content: ""; position: absolute; left: 50%; top: 52%; z-index: -1; pointer-events: none;
  width: min(34vmin, 300px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 44% 38%, rgba(255,246,220,.22), rgba(201,168,255,.14) 32%, rgba(80,50,160,.08) 58%, transparent 72%);
  box-shadow: 0 0 90px rgba(143,106,216,.2);
  animation: akbBreath 8s ease-in-out infinite;
}
.ck-title h2 { font-size: 17px; letter-spacing: .3em; color: var(--akb-gold-l); }
/* le panneau de détail = un pupitre de lecture */
.ck-panel {
  background:
    linear-gradient(90deg, rgba(211,174,87,.07), transparent 7%),
    linear-gradient(180deg, rgba(16,10,36,.97), rgba(6,4,18,.98));
  border-left: 1px solid rgba(211,174,87,.32);
  box-shadow: -22px 0 44px -24px rgba(0,0,0,.85), inset 1px 0 0 rgba(255,236,190,.05);
}
.ck-btn { border-radius: 14px 14px 6px 6px; }
.ck-btn.sq { border-radius: 50%; }

/* ═════════════════════════ 8. PARCHEMINS : manuscrits suspendus ═════════════════════════ */
/* le cartouche devient une tablette de savoir : ivoire, or, violet sombre, filets très fins */
#panelArticles .ak-card .card-body {
  background:
    linear-gradient(180deg, rgba(233,220,188,.06), transparent 40%),
    linear-gradient(160deg, rgba(30,22,52,.86), rgba(12,9,28,.9));
  border: 1px solid rgba(233,220,188,.24); border-radius: 4px;
  box-shadow: 0 14px 30px -16px #000c, inset 0 0 0 3px rgba(8,6,20,.55), inset 0 0 0 4px rgba(233,220,188,.09);
}
#panelArticles .ak-card .card-title { color: var(--akb-ivory); }
#panelArticles .ak-card .card-tag.tag-article { color: var(--akb-parch); background: rgba(233,220,188,.06); border-color: rgba(233,220,188,.3); }
#panelArticles .ak-card .card-footer { border-top-color: rgba(233,220,188,.14); }
/* les pages brillent légèrement au survol */
#panelArticles .ak-card:hover .card-body { border-color: rgba(241,216,145,.5); box-shadow: 0 14px 30px -16px #000c, inset 0 0 0 3px rgba(8,6,20,.55), inset 0 0 0 4px rgba(241,216,145,.18), 0 0 22px rgba(233,220,188,.1); }

/* ═════════════════════════ 9. VIDÉOTHÈQUE : salle de projection ═════════════════════════ */
#panelVideos .card-grid { gap: 40px 28px; padding-top: 18px; }
#panelVideos .ak-card {
  overflow: visible; border-radius: 6px;
  background: linear-gradient(165deg, rgba(22,28,62,.62), rgba(8,8,26,.82));
  border: 1px solid rgba(143,220,236,.24);
  box-shadow: 0 22px 44px -26px #000, inset 0 0 0 3px rgba(6,6,20,.55), inset 0 0 0 4px rgba(211,174,87,.12);
}
#panelVideos .ak-card::before { border-radius: 6px; }
/* faisceau de projection venu de la voûte */
#panelVideos .ak-card::after {
  content: ""; position: absolute; left: 50%; top: -34px; width: 74%; height: 48px; z-index: 0; pointer-events: none;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(190,236,255,0), rgba(190,236,255,.13));
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  opacity: .7; transition: opacity .4s;
}
#panelVideos .ak-card:hover::after { opacity: 1; }
/* l'écran flottant, cadre de cristal */
#panelVideos .ak-card .card-thumb {
  width: auto; margin: 10px 10px 0; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(200,240,255,.38), 0 0 0 4px rgba(6,6,20,.85), 0 0 0 5px rgba(211,174,87,.32), 0 0 26px rgba(143,220,236,.16);
  animation: akbScreenFloat 7s ease-in-out infinite;
}
#panelVideos .ak-card:nth-child(3n+2) .card-thumb { animation-delay: -2.3s; }
#panelVideos .ak-card:nth-child(3n) .card-thumb { animation-delay: -4.6s; }
@keyframes akbScreenFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
#panelVideos .ak-card .card-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(115deg, transparent 40%, rgba(220,245,255,.14) 49%, transparent 58%) -120% 0 / 220% 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(200,240,255,.035) 0 1px, transparent 1px 3px);
  transition: background-position 1.1s ease;
}
#panelVideos .ak-card:hover .card-thumb::after { background-position: 140% 0, 0 0; }
/* l'œil de la transmission (remplace le triangle) */
#panelVideos .card-play-icon {
  font-size: 0; opacity: .78; z-index: 2; padding: 0;
  background: rgba(8,10,30,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8f4fb' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M2.5 12s3.6-6.2 9.5-6.2 9.5 6.2 9.5 6.2-3.6 6.2-9.5 6.2S2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='12' cy='12' r='1' fill='%23d8f4fb'/%3E%3C/svg%3E") center / 26px no-repeat;
  border-color: rgba(200,240,255,.6); box-shadow: 0 0 18px rgba(143,220,236,.38);
}
#panelVideos .ak-card:hover .card-play-icon { opacity: 1; box-shadow: 0 0 26px rgba(143,220,236,.6); }
#panelVideos .ak-card .card-body::before {
  content: "Transmission conservée dans les archives"; display: block; margin-bottom: 7px;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 12.5px; color: rgba(160,226,240,.75);
}
#panelVideos .ak-card .card-tag.tag-video { color: #c8f1fa; background: rgba(143,220,236,.08); border-color: rgba(143,220,236,.32); }

/* ═════════════════════════ 10. MUSICOTHÈQUE : salle vibratoire ═════════════════════════ */
/* géométrie harmonique en fond (cercles concentriques) */
#panelMusique::before {
  content: ""; position: absolute; left: 50%; top: -20px; width: min(980px, 140%); height: 760px; z-index: -1; pointer-events: none;
  transform: translateX(-50%);
  background:
    repeating-radial-gradient(circle at 50% 70px, rgba(110,150,255,.07) 0 1px, transparent 1px 36px),
    radial-gradient(ellipse 60% 40% at 50% 70px, rgba(90,120,255,.12), transparent 70%);
  -webkit-mask: radial-gradient(ellipse 50% 60% at 50% 20%, #000 20%, transparent 75%);
          mask: radial-gradient(ellipse 50% 60% at 50% 20%, #000 20%, transparent 75%);
}
.mus-masthead { position: relative; padding-top: 22px; }
.mus-masthead > * { position: relative; z-index: 1; }
.mus-masthead > .akb-waves {
  position: absolute; z-index: 0; left: 50%; top: 34px; width: min(680px, 100%); height: 60px;
  transform: translateX(-50%); pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.akb-waves svg { width: 100%; height: 100%; display: block; overflow: visible; }
.akb-waves path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.akb-waves .w1 { stroke: rgba(120,170,255,.5); stroke-width: 1.2; stroke-dasharray: 5 9; animation: akbWave 9s linear infinite; }
.akb-waves .w2 { stroke: rgba(176,140,255,.38); stroke-width: 1; stroke-dasharray: 2 7; animation: akbWave 13s linear infinite reverse; }
.akb-waves .w3 { stroke: rgba(241,216,145,.28); stroke-width: .8; stroke-dasharray: 1 5; animation: akbWave 6s linear infinite; }
@keyframes akbWave { to { stroke-dashoffset: -280; } }
.mus-masthead .akb-emblem { margin-bottom: 8px; }
.mus-masthead .mm-title { font-family: "Cinzel Decorative", "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; font-size: 28px; letter-spacing: .14em; }
/* chaque morceau : un fragment de vibration conservé */
.mtrack-card { border-color: rgba(110,150,255,.24); }
.mtrack-card:hover { border-color: rgba(140,170,255,.6); box-shadow: 0 14px 48px #000a, 0 0 26px rgba(90,130,255,.25); }
.mtrack-card:not(.is-meditation) .mtrack-cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 26' fill='none' stroke='%23b8ccff' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M0 13c5-9 10-9 15 0s10 9 15 0 10-9 15 0 10 9 15 0'/%3E%3C/svg%3E") 0 50% / 60px 26px repeat-x,
              linear-gradient(0deg, rgba(10,12,40,.7), transparent);
  transition: opacity .35s;
}
.mtrack-card:hover .mtrack-cover::after { opacity: .85; animation: akbWaveSlide 2.4s linear infinite; }
.mtrack-card.is-playing:not(.is-meditation) .mtrack-cover::after { opacity: 1; animation: akbWaveSlide 1.6s linear infinite; }
@keyframes akbWaveSlide { to { background-position: -60px 50%, 0 0; } }
.mus-section-head {
  border-bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' fill='none' stroke='%238fa8ff' stroke-opacity='.45' stroke-width='.8'%3E%3Cpath d='M0 4c3.3-4 6.7-4 10 0s6.7 4 10 0 6.7-4 10 0 6.7 4 10 0'/%3E%3C/svg%3E") 0 100% / 40px 8px repeat-x;
}
.mtrack-card.is-playing { box-shadow: 0 0 0 1px rgba(140,170,255,.4), 0 14px 48px #000a, 0 0 34px rgba(90,130,255,.3); }

/* ═════════════════════════ 11. LIBRAIRIE : vrais rayonnages ═════════════════════════ */
/* le meuble : montants de bois noble, fronton, fond sombre */
.lib-shell {
  padding-left: 28px; padding-right: 28px;
  background:
    linear-gradient(90deg, #2a1810 0, #4a2e18 5px, #1c0f0a 12px, transparent 13px, transparent calc(100% - 13px), #1c0f0a calc(100% - 12px), #4a2e18 calc(100% - 5px), #2a1810 100%),
    radial-gradient(120% 60% at 50% 0%, rgba(90,45,154,.12) 0%, transparent 62%),
    linear-gradient(180deg, rgba(10,6,18,.78) 0%, rgba(8,5,16,.5) 100%);
  border-radius: 26px 26px 6px 6px;
  box-shadow: inset 0 1px 0 rgba(211,174,87,.22), inset 0 44px 90px -64px rgba(0,0,0,.92), 0 30px 60px -40px #000;
}
.lib-shell::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: -1px; height: 6px; border-radius: 26px 26px 0 0; pointer-events: none;
  border-top: 2px solid rgba(196,159,72,.45);
  box-shadow: 0 -6px 18px -8px rgba(211,174,87,.35);
}
/* chaque ouvrage est rangé dans une niche arquée */
.grimoire-stage::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 4px; bottom: 0; z-index: 0; pointer-events: none;
  border-radius: 999px 999px 0 0 / 120px 120px 0 0;
  background: linear-gradient(180deg, rgba(34,20,52,.5), rgba(10,6,18,.86));
  box-shadow: inset 0 0 0 1px rgba(196,159,72,.16), inset 0 26px 40px -24px rgba(var(--halo),.22), inset 0 -34px 40px -22px rgba(0,0,0,.85);
  transition: box-shadow .5s;
}
.grimoire:hover .grimoire-stage::before {
  box-shadow: inset 0 0 0 1px rgba(224,192,108,.42), inset 0 26px 46px -20px rgba(var(--halo),.4), inset 0 -34px 40px -22px rgba(0,0,0,.8);
}
/* la planche : bois sombre, chant de laiton, continue d'un ouvrage à l'autre */
.lib-grid { --akb-plank: 17px; }
.lib-grid.is-sparse { --akb-plank: 29px; }
.grimoire-shelf::after {
  left: calc(var(--akb-plank) * -1); right: calc(var(--akb-plank) * -1); width: auto; transform: none;
  top: 2px; height: 13px;
  background: linear-gradient(180deg, #e0c06c 0 1px, #7a5028 1px, #4a2c16 45%, #24130b);
  box-shadow: 0 12px 18px -6px rgba(0,0,0,.85), 0 1px 0 rgba(255,236,190,.12) inset;
  transition: box-shadow .45s;
}
.grimoire-shelf::before { top: 12px; width: 92%; height: 16px; }
/* l'étagère s'éclaire au survol */
.grimoire:hover .grimoire-shelf::after {
  box-shadow: 0 12px 18px -6px rgba(0,0,0,.85), 0 1px 0 rgba(255,236,190,.2) inset, 0 -10px 26px -4px rgba(var(--halo),.35);
}
/* livres numériques : tablettes de lumière translucides */
.grimoire:has(.grimoire-format.is-num) .grimoire-cover {
  box-shadow: -14px 18px 34px rgba(0,0,0,.55), inset 0 0 0 1px rgba(190,160,255,.55), 0 0 22px rgba(143,106,216,.38), 0 0 44px rgba(143,220,236,.14);
}
.grimoire:has(.grimoire-format.is-num) .grimoire-cover::after {
  opacity: .9; background: linear-gradient(115deg, transparent 40%, rgba(220,210,255,.2) 49%, rgba(160,230,255,.12) 52%, transparent 60%) 0 0 / 260% 100% no-repeat;
  transform: none; animation: akbTabletSheen 6.5s ease-in-out infinite;
}
@keyframes akbTabletSheen { 0%,100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.grimoire:has(.grimoire-format.is-num) .grimoire-halo {
  background: radial-gradient(circle, rgba(170,140,255,.34) 0%, rgba(143,220,236,.12) 34%, transparent 68%);
}
@media (max-width: 680px) {
  .lib-grid { --akb-plank: 7px; }
  .lib-grid.is-sparse { --akb-plank: 15px; }
  .lib-shell { padding-left: 14px; padding-right: 14px;
    background:
      linear-gradient(90deg, #2a1810 0, #4a2e18 3px, #1c0f0a 7px, transparent 8px, transparent calc(100% - 8px), #1c0f0a calc(100% - 7px), #4a2e18 calc(100% - 3px), #2a1810 100%),
      linear-gradient(180deg, rgba(10,6,18,.78) 0%, rgba(8,5,16,.5) 100%); }
}

/* ═════════════════════════ 12. MON INVENTAIRE : archives personnelles ═════════════════════════ */
#panelBibliotheque #invRoot {
  position: relative; padding: 24px 18px 30px; margin-top: 4px;
  border-radius: 24px 24px 10px 10px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(176,130,255,.14), transparent 70%),
    linear-gradient(180deg, rgba(24,15,40,.86), rgba(10,6,20,.93));
  border: 1px solid rgba(196,159,72,.32);
  box-shadow: inset 0 0 0 6px rgba(6,4,16,.55), inset 0 0 0 7px rgba(196,159,72,.13), 0 34px 64px -36px #000;
}
/* coins de laiton du coffret */
#panelBibliotheque #invRoot::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none; border-radius: 18px 18px 6px 6px;
  --c: rgba(224,192,108,.6);
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 18px 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px 18px no-repeat;
}
#panelBibliotheque .section-desc::after {
  content: "Ta propre collection dans la bibliothèque akashique."; display: block; margin-top: 6px;
  font-size: 14px; color: var(--text3); letter-spacing: .5px;
}
/* chaque objet repose sur un velours, l'étiquette d'archive est en or */
#panelBibliotheque .ik-card { border-radius: 14px 14px 8px 8px; }
#panelBibliotheque .ik-grid { gap: 22px; }

/* ═════════════════════════ 5. LE GRAND HALL (accueil = rotonde) ═════════════════════════
   Une seule zone à la fois : le Hall plein écran, OU le pupitre (tableau de bord akDash),
   OU une aile. Le Hall cache le tableau de bord (toujours monté, intact) ; « Ton pupitre »
   (#panelHome.akb-pupitre) ou « Organiser » (akd-edit) le ramènent. */
#panelHome:not(.akb-pupitre):not(.akd-edit) { max-width: none; padding: 0; height: 100%; text-align: center; }
#panelHome:not(.akb-pupitre):not(.akd-edit) .ak-home-inner { height: 100%; padding: 0; align-items: stretch; }
#panelHome:not(.akb-pupitre):not(.akd-edit) .akd-host,
#panelHome:not(.akb-pupitre):not(.akd-edit) .ak-home-halo { display: none !important; }
#panelHome.akb-pupitre .akb-rotunda, #panelHome.akd-edit .akb-rotunda { display: none; }
#panelHome.akb-pupitre.akd-mode { height: calc(100% - var(--akb-wb-h)); }
.akb-pupitre-empty { display: none; }
#panelHome.akb-pupitre.akd-empty:not(.akd-edit) .akb-pupitre-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 12vh auto 0;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 18px; color: var(--text2);
}
.akb-pe-btn {
  cursor: pointer; padding: 11px 22px; border-radius: 14px 14px 5px 5px; color: var(--akb-gold-l);
  font: 600 10px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(48,31,96,.7), rgba(16,10,36,.9)); border: 1px solid rgba(224,192,108,.55);
}
.akb-no-organize .akb-pe-btn { display: none; }

.akb-rotunda {
  position: relative; flex: 1 1 auto; width: 100%; min-height: 540px; overflow: hidden; isolation: isolate;
}
.akb-rot-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.akb-rot-scene > i { position: absolute; display: block; }
/* mur circulaire du fond : rayonnages sur toute la hauteur, creusés au centre (profondeur) */
.akb-rot-wall {
  left: -3%; right: -3%; top: -4%; height: 80%;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background:
    radial-gradient(ellipse 30% 44% at 50% 74%, rgba(5,4,20,.97) 35%, rgba(5,4,20,0) 80%),
    linear-gradient(180deg, rgba(5,4,20,.35) 0%, rgba(5,4,20,0) 35%, rgba(5,4,20,.97) 97%),
    repeating-linear-gradient(180deg, transparent 0 44px, rgba(196,159,72,.34) 44px 45px, #120a08 45px 50px),
    repeating-linear-gradient(90deg, #2a1736 0 5px, #1d1a44 5px 9px, #3a2614 9px 12px, #241438 12px 17px, #402a52 17px 21px, #18203e 21px 26px, rgba(232,201,122,.4) 26px 27px, #2b2252 27px 32px, #341a2c 32px 37px, #0c0820 37px 39px),
    #0c0820;
  opacity: .5;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
/* colonnes qui rythment la rotonde */
.akb-rot-cols {
  left: 2%; right: 2%; top: 0; height: 74%;
  background:
    linear-gradient(90deg, rgba(8,5,20,.95), rgba(196,159,72,.3) 45%, rgba(8,5,20,.95)) 9% 0 / 18px 100% no-repeat,
    linear-gradient(90deg, rgba(8,5,20,.95), rgba(196,159,72,.3) 45%, rgba(8,5,20,.95)) 27% 0 / 14px 92% no-repeat,
    linear-gradient(90deg, rgba(8,5,20,.95), rgba(196,159,72,.26) 45%, rgba(8,5,20,.95)) 40% 0 / 10px 84% no-repeat,
    linear-gradient(90deg, rgba(8,5,20,.95), rgba(196,159,72,.26) 45%, rgba(8,5,20,.95)) 60% 0 / 10px 84% no-repeat,
    linear-gradient(90deg, rgba(8,5,20,.95), rgba(196,159,72,.3) 45%, rgba(8,5,20,.95)) 73% 0 / 14px 92% no-repeat,
    linear-gradient(90deg, rgba(8,5,20,.95), rgba(196,159,72,.3) 45%, rgba(8,5,20,.95)) 91% 0 / 18px 100% no-repeat;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 95%); mask: linear-gradient(180deg, #000 30%, transparent 95%);
}
/* dallage de la rotonde, en perspective */
.akb-rot-floor {
  left: 50%; top: 62%; width: min(1250px, 125%); aspect-ratio: 1;
  transform: translate(-50%, -50%) perspective(900px) rotateX(73deg);
  background:
    radial-gradient(circle, rgba(201,168,255,.22) 0 12%, transparent 30%),
    url('ASSETS/akasha-rotonde.svg') center / contain no-repeat;
  opacity: .75;
}
/* lumière de l'oculus, qui tombe sur l'astre */
.akb-rot-beam {
  left: 50%; top: -2%; width: 46%; height: 64%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,240,205,.17), rgba(201,168,255,.07) 62%, transparent);
  clip-path: polygon(42% 0, 58% 0, 82% 100%, 18% 100%);
  animation: akbBreath 9s ease-in-out infinite;
}
.akb-rot-mist {
  left: -10%; right: -10%; bottom: -6%; height: 38%;
  background: radial-gradient(ellipse 50% 60% at 30% 70%, rgba(143,106,216,.16), transparent 70%), radial-gradient(ellipse 50% 60% at 72% 80%, rgba(90,120,230,.12), transparent 70%);
  animation: akbMist 26s ease-in-out infinite alternate;
}
@keyframes akbMist { to { transform: translateX(4%); } }

.akb-rot-head { position: absolute; left: 26px; top: 20px; z-index: 60; text-align: left; pointer-events: none; }
.akb-crumb { display: flex; align-items: center; gap: 8px; font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .26em; text-transform: uppercase; color: var(--text3); }
.akb-crumb i { font-style: normal; color: var(--akb-gold-old); }
.akb-crumb b { color: var(--akb-gold-l); font-weight: 600; }
.akb-rot-head h2 {
  margin: 6px 0 2px; font-family: "Cinzel Decorative", "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; font-weight: 700; font-size: 26px; letter-spacing: .08em;
  color: var(--akb-gold-l); text-shadow: 0 2px 16px rgba(0,0,0,.9), 0 0 24px rgba(211,174,87,.3);
}
.akb-rot-head p { margin: 0; max-width: 30ch; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 15px; color: var(--text2); text-shadow: 0 2px 10px #000; }

/* ═══ l'ASTRE AKASHIQUE — cœur du Grand Hall (v7) ═══
   Couches, de l'extérieur vers le centre :
   halo (éclaire le Hall, mode screen) → rayons lents → géométrie sacrée + anneau de glyphes
   → sphère (fond indigo, 2 nébuleuses en rotation différentielle, 2 champs d'étoiles,
   filaments de connaissance qui circulent, noyau blanc/or qui pulse, reflets et ombre propre)
   → anneaux d'orbite inclinés → particules qui dérivent. Survol/focus : l'astre « s'éveille ». */
.akb-orb {
  position: absolute; left: 50%; top: 39%; z-index: 55; transform: translate(-50%, -50%);
  width: clamp(176px, 25vmin, 264px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: akbOrbFloat 9s ease-in-out infinite;
}
@keyframes akbOrbFloat { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 6px)); } }
.akb-orb > span, .akb-orb > svg { position: absolute; pointer-events: none; }

/* halo : lumière diffuse qui éclaire réellement le Hall autour (screen) */
.akb-orb-halo {
  inset: -90%; border-radius: 50%; mix-blend-mode: screen;
  background:
    radial-gradient(circle, rgba(255,240,210,.20) 0%, rgba(201,168,255,.22) 18%, rgba(110,80,220,.13) 34%, rgba(80,180,255,.05) 48%, transparent 64%);
  animation: akbHalo 7s ease-in-out infinite; transition: opacity .6s, transform .8s var(--akb-ease);
}
@keyframes akbHalo { 0%,100% { opacity: .78; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
/* rayons très lents */
.akb-orb-rays {
  inset: -62%; border-radius: 50%; opacity: .55; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, transparent 0 9deg, rgba(255,236,190,.09) 10.5deg, transparent 12deg 22deg, rgba(160,210,255,.06) 23deg, transparent 24.5deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 30%, #000 38%, transparent 70%); mask: radial-gradient(circle, transparent 30%, #000 38%, transparent 70%);
  animation: akbSpinSelf 240s linear infinite; transition: opacity .6s;
}
/* géométrie sacrée discrète + anneau de glyphes */
.akb-orb-geo { inset: -30%; width: 160%; height: 160%; overflow: visible; opacity: .55; animation: akbSpinSelf 300s linear infinite reverse; transition: opacity .6s; }
.akb-orb-geo .g1 { fill: none; stroke: rgba(224,192,108,.55); stroke-width: .5; }
.akb-orb-geo .g2 { fill: none; stroke: rgba(176,140,255,.35); stroke-width: .4; stroke-dasharray: 1 3; }
.akb-orb-geo .g3 { fill: none; stroke: rgba(224,192,108,.16); stroke-width: .4; }
.akb-orb-geo .g4 { stroke: rgba(224,192,108,.5); stroke-width: .5; }
.akb-orb-geo .g5 { fill: rgba(241,216,145,.75); }

/* la sphère */
.akb-orb-core {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 42% 38%, #3c2b8e 0%, #251560 36%, #130b36 66%, #07041a 100%);
  box-shadow:
    0 0 40px rgba(201,168,255,.45), 0 0 110px rgba(143,106,216,.3),
    inset 0 0 0 1px rgba(200,230,255,.12),
    inset -22px -28px 56px rgba(3,1,14,.85),            /* ombre propre : volume */
    inset 12px 14px 34px rgba(150,220,255,.16);         /* reflet cyan */
  transition: box-shadow .6s, filter .6s;
}
.akb-orb-core > span, .akb-orb-core > svg { position: absolute; pointer-events: none; }
/* nébuleuses : deux couches qui tournent à des vitesses différentes (profondeur interne) */
.akb-orb-neb { inset: -25%; border-radius: 50%; mix-blend-mode: screen; filter: blur(7px); }
.akb-orb-neb.n1 {
  background:
    radial-gradient(ellipse 34% 26% at 30% 42%, rgba(176,120,255,.7), transparent 70%),
    radial-gradient(ellipse 30% 22% at 70% 62%, rgba(70,190,255,.45), transparent 70%),
    radial-gradient(ellipse 22% 18% at 58% 26%, rgba(255,214,150,.38), transparent 70%);
  animation: akbSpinSelf 70s linear infinite;
}
.akb-orb-neb.n2 {
  background:
    radial-gradient(ellipse 28% 20% at 66% 36%, rgba(120,90,255,.55), transparent 70%),
    radial-gradient(ellipse 26% 30% at 36% 70%, rgba(200,120,255,.4), transparent 70%),
    radial-gradient(ellipse 18% 14% at 46% 52%, rgba(140,230,255,.35), transparent 70%);
  animation: akbSpinSelf 110s linear infinite reverse;
}
/* points de données / étoiles (deux champs, deux vitesses) */
.akb-orb-stars { inset: 0; border-radius: 50%; }
.akb-orb-stars.s1 {
  background:
    radial-gradient(1.2px 1.2px at 22% 34%, #fff, transparent), radial-gradient(1px 1px at 68% 22%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 74% 58%, #ffe9b8, transparent), radial-gradient(1px 1px at 36% 72%, #fff, transparent),
    radial-gradient(1px 1px at 52% 14%, #cfe9ff, transparent), radial-gradient(1.3px 1.3px at 84% 40%, #fff, transparent),
    radial-gradient(1px 1px at 14% 56%, #e6d2ff, transparent), radial-gradient(1.2px 1.2px at 58% 84%, #fff, transparent);
  animation: akbSpinSelf 90s linear infinite;
}
.akb-orb-stars.s2 {
  opacity: .8;
  background:
    radial-gradient(1px 1px at 28% 20%, #fff, transparent), radial-gradient(1px 1px at 80% 74%, #cfe9ff, transparent),
    radial-gradient(1.2px 1.2px at 44% 46%, #ffe9b8, transparent), radial-gradient(1px 1px at 18% 80%, #fff, transparent),
    radial-gradient(1px 1px at 62% 36%, #fff, transparent), radial-gradient(1px 1px at 90% 54%, #e6d2ff, transparent);
  animation: akbSpinSelf 160s linear infinite reverse, akbTwinkle 5s ease-in-out infinite;
}
@keyframes akbTwinkle { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
/* filaments : les lignes de connaissance circulent */
.akb-orb-fil { inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; animation: akbSpinSelf 140s linear infinite; }
.akb-orb-fil path, .akb-orb-fil ellipse { fill: none; stroke-linecap: round; }
.akb-orb-fil .b { stroke-width: .35; opacity: .45; }
.akb-orb-fil .b1, .akb-orb-fil .b4 { stroke: rgba(150,225,255,.6); }
.akb-orb-fil .b2 { stroke: rgba(241,216,145,.55); }
.akb-orb-fil .b3 { stroke: rgba(200,160,255,.6); }
.akb-orb-fil .f1 { stroke: #c8f1ff; stroke-width: 1;  stroke-dasharray: 9 70;  animation: akbFlow 6s linear infinite;  filter: drop-shadow(0 0 1.2px #8fdcec); }
.akb-orb-fil .f2 { stroke: #fff0c4; stroke-width: .9; stroke-dasharray: 7 80;  animation: akbFlow 8s linear infinite reverse; filter: drop-shadow(0 0 1.2px #f1d891); }
.akb-orb-fil .f3 { stroke: #eadcff; stroke-width: .9; stroke-dasharray: 10 66; animation: akbFlow 9.5s linear infinite; filter: drop-shadow(0 0 1.2px #b08cff); }
.akb-orb-fil .f4 { stroke: #d8f4fb; stroke-width: .8; stroke-dasharray: 6 74;  animation: akbFlow 7s linear infinite reverse; filter: drop-shadow(0 0 1px #8fdcec); }
.akb-orb-fil .f5 { stroke: rgba(224,192,108,.22); stroke-width: .4; }
@keyframes akbFlow { to { stroke-dashoffset: -158; } }
/* noyau : lumière blanche / or, très énergétique, qui pulse */
.akb-orb-heart {
  left: 50%; top: 48%; width: 58%; height: 58%; transform: translate(-50%, -50%); border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0%, #fff6dc 10%, rgba(255,222,150,.85) 20%, rgba(220,170,255,.42) 40%, rgba(140,100,255,.12) 60%, transparent 72%);
  mix-blend-mode: screen; animation: akbHeart 4.2s ease-in-out infinite;
}
.akb-orb-heart::before, .akb-orb-heart::after { /* éclat en croix (micro-éclat) */
  content: ""; position: absolute; left: 50%; top: 50%; width: 170%; height: 2px; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255,246,220,.85), transparent); border-radius: 2px;
}
.akb-orb-heart::after { transform: translate(-50%, -50%) rotate(90deg); width: 120%; opacity: .7; }
@keyframes akbHeart { 0%,100% { transform: translate(-50%, -50%) scale(.88); opacity: .85; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
/* reflet spéculaire + liseré de lumière */
.akb-orb-shine {
  inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 30% 20% at 30% 20%, rgba(255,255,255,.42), transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 92%, rgba(120,210,255,.18), transparent 70%);
}
/* anneaux d'orbite (rotation différentielle) */
.akb-orb-rings { inset: 0; }
.akb-orb-rings i {
  position: absolute; inset: -18%; border-radius: 50%; border: 1px solid rgba(241,216,145,.5);
  transform: rotateY(var(--ry, 0deg)) rotateX(74deg); animation: akbRing var(--t, 22s) linear infinite;
  box-shadow: 0 0 10px rgba(241,216,145,.15); transition: border-color .6s, box-shadow .6s;
}
.akb-orb-rings i::after {
  content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: #fff6dc; box-shadow: 0 0 10px 3px rgba(255,236,190,.8);
}
.akb-orb-rings i:nth-child(2) { inset: -30%; --ry: 30deg; --t: 34s; border-color: rgba(176,140,255,.42); animation-direction: reverse; }
.akb-orb-rings i:nth-child(2)::after { background: #e6d2ff; box-shadow: 0 0 10px 3px rgba(201,168,255,.8); }
.akb-orb-rings i:nth-child(3) { inset: -42%; --ry: -36deg; --t: 52s; border-color: rgba(143,220,236,.3); border-style: dashed; }
.akb-orb-rings i:nth-child(3)::after { background: #d8f4fb; box-shadow: 0 0 10px 3px rgba(143,220,236,.8); }
@keyframes akbRing { from { transform: rotateY(var(--ry, 0deg)) rotateX(74deg) rotateZ(0); } to { transform: rotateY(var(--ry, 0deg)) rotateX(74deg) rotateZ(360deg); } }
/* particules qui dérivent autour */
.akb-orb-motes { inset: 0; transition: transform 1s var(--akb-ease), opacity .6s; }
.akb-orb-motes i { position: absolute; inset: calc(var(--r) * -1); border-radius: 50%; animation: akbSpinSelf var(--t) linear infinite; animation-delay: var(--dl); }
.akb-orb-motes i::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 3px; height: 3px; border-radius: 50%; opacity: var(--o);
  background: #fff3d0; box-shadow: 0 0 6px 1px rgba(255,226,160,.8);
}
.akb-orb-motes i:nth-child(3n)::after { background: #cfe9ff; box-shadow: 0 0 6px 1px rgba(143,220,236,.8); }
.akb-orb-motes i:nth-child(3n+1)::after { background: #e6d2ff; box-shadow: 0 0 6px 1px rgba(201,168,255,.8); }
@keyframes akbSpinSelf { to { transform: rotate(360deg); } }

/* l'astre s'éveille au survol / au focus */
.akb-orb:hover .akb-orb-halo, .akb-orb:focus-visible .akb-orb-halo { opacity: 1; transform: scale(1.12); animation-play-state: paused; }
.akb-orb:hover .akb-orb-rays, .akb-orb:focus-visible .akb-orb-rays { opacity: .9; }
.akb-orb:hover .akb-orb-geo, .akb-orb:focus-visible .akb-orb-geo { opacity: .85; }
.akb-orb:hover .akb-orb-core, .akb-orb:focus-visible .akb-orb-core {
  filter: brightness(1.12) saturate(1.1);
  box-shadow: 0 0 60px rgba(220,195,255,.65), 0 0 150px rgba(143,106,216,.42), inset 0 0 0 1px rgba(200,230,255,.2),
              inset -22px -28px 56px rgba(3,1,14,.8), inset 12px 14px 34px rgba(150,220,255,.24);
}
.akb-orb:hover .akb-orb-rings i, .akb-orb:focus-visible .akb-orb-rings i { border-color: rgba(255,240,200,.85); box-shadow: 0 0 16px rgba(241,216,145,.35); }
.akb-orb:hover .akb-orb-motes, .akb-orb:focus-visible .akb-orb-motes { transform: scale(1.14); }
.akb-orb:focus-visible { outline: none; }
.akb-orb:focus-visible .akb-orb-label b { text-decoration: underline; text-underline-offset: 5px; }

/* le Hall s'organise autour de l'astre : lumière au sol, portes éclairées du côté qui lui fait face */
.akb-rotunda::before {
  content: ""; position: absolute; left: 50%; top: 62%; width: min(780px, 70%); height: 26%; z-index: 1; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(ellipse, rgba(201,168,255,.26) 0%, rgba(120,90,230,.12) 40%, transparent 70%);
  animation: akbHalo 7s ease-in-out infinite;
}
.akb-hd-arch { box-shadow: inset 0 0 0 4px rgba(6,4,18,.6), inset 0 0 0 5px rgba(211,174,87,.14), inset 0 -22px 30px rgba(0,0,0,.65), calc(var(--lx, 0) * -8px) 0 24px -6px rgba(176,140,255,.42); }

.akb-orb-label {
  position: absolute; left: 50%; top: 100%; margin-top: 14px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
}
.akb-orb-label b { display: block; font: 600 12px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .26em; text-transform: uppercase; color: var(--akb-gold-l); text-shadow: 0 2px 10px #000, 0 0 16px rgba(211,174,87,.4); }
.akb-orb-label small { display: block; margin-top: 3px; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 14px; color: var(--text2); text-shadow: 0 2px 8px #000; }
.akb-orb:focus-visible { outline: none; }
.akb-orb:focus-visible .akb-orb-label b { text-decoration: underline; text-underline-offset: 5px; }

/* les portes des ailes, posées sur l'ellipse de la rotonde (place = akasha-bibliotheque.js) */
.akb-rot-doors { position: absolute; inset: 0; }
/* le Hall n'est pas une zone de texte : un appui glissé ne doit pas surligner les noms des portes */
.akb-rotunda, .akb-rotunda * { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
/* la rotonde tourne (akasha-bibliotheque.js § 2) */
@media (min-width: 761px) {
  .akb-rotunda { touch-action: pan-y; cursor: grab; }
  .akb-rotunda.is-rotating { cursor: grabbing; }
  .akb-rotunda.is-rotating .akb-hdoor { transition: none; }
}
.akb-hdoor.is-front .akb-hd-arch {
  border-color: rgba(241,216,145,.85);
  box-shadow: inset 0 0 0 4px rgba(6,4,18,.6), inset 0 0 0 5px rgba(241,216,145,.26), inset 0 -22px 30px rgba(0,0,0,.6), 0 0 34px rgba(var(--dc),.45);
}
.akb-hdoor.is-front .akb-hd-arch::after { opacity: .75; }
.akb-hdoor.is-front .akb-hd-plate b { color: var(--akb-gold-l); }
.akb-rot-turn {
  position: absolute; left: 26px; right: 26px; bottom: 18px; z-index: 70; display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.akb-rot-turn button {
  pointer-events: auto; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 50%;
  color: var(--akb-gold-l); background: radial-gradient(circle, rgba(58,36,112,.78), rgba(12,8,30,.92) 72%);
  border: 1px solid rgba(211,174,87,.5); box-shadow: 0 0 14px rgba(143,106,216,.3), inset 0 0 0 3px rgba(6,4,18,.4);
  transition: transform .25s var(--akb-ease), box-shadow .25s, border-color .25s;
}
.akb-rot-turn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.akb-rot-turn button:hover, .akb-rot-turn button:focus-visible { outline: none; border-color: #f1d891; box-shadow: 0 0 20px rgba(241,216,145,.35), inset 0 0 0 3px rgba(6,4,18,.4); }
.akb-rot-turn .l:hover { transform: translateX(-2px); }
.akb-rot-turn .r:hover { transform: translateX(2px); }
.akb-rot-hint {
  position: absolute; left: 60px; top: 50%; transform: translateY(-50%); font: 600 8.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .26em; text-transform: uppercase;
  color: var(--text3); text-shadow: 0 1px 6px #000; transition: opacity .6s; white-space: nowrap;
}
.akb-rotunda.akb-spun .akb-rot-hint { opacity: 0; }
.akb-rotunda .akb-gal-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .akb-rot-turn { display: none; } }
.akb-hgroup, .akb-hgroup-doors { display: contents; }
.akb-hgroup-h { display: none; }
.akb-hdoor {
  position: absolute; left: var(--x); top: var(--y); width: 112px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--s)); opacity: calc(.74 + .26 * var(--d));
  color: var(--akb-ivory); font: inherit; text-align: center; -webkit-tap-highlight-color: transparent;
  transition: transform .4s var(--akb-ease), opacity .4s;
}
.akb-hdoor::after { /* ombre portée au sol */
  content: ""; position: absolute; left: 12%; right: 12%; top: 108px; height: 16px; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.75), transparent 70%);
}
.akb-hd-arch {
  position: relative; display: block; width: 88px; height: 114px; margin: 0 auto; overflow: hidden;
  border-radius: 44px 44px 5px 5px / 42px 42px 5px 5px;
  background: radial-gradient(ellipse 70% 42% at 50% 26%, rgba(var(--dc),.32), transparent 72%), linear-gradient(180deg, #1c1338, #07051a);
  border: 1px solid rgba(211,174,87,.42);
  box-shadow: inset 0 0 0 4px rgba(6,4,18,.6), inset 0 0 0 5px rgba(211,174,87,.14), inset 0 -22px 30px rgba(0,0,0,.65), 0 0 22px rgba(var(--dc),.16);
  transition: border-color .4s, box-shadow .4s;
}
.akb-hd-arch::after { /* lumière qui vient du fond de l'aile */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(ellipse 60% 55% at 50% 46%, rgba(var(--dc),.42), transparent 72%);
}
.akb-hd-shelves {
  position: absolute; left: 12px; right: 12px; top: 58px; bottom: 9px; border-radius: 2px; opacity: .55;
  background:
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(211,174,87,.5) 13px 14px),
    repeating-linear-gradient(90deg, rgba(var(--dc),.5) 0 3px, transparent 3px 4px, rgba(255,236,190,.2) 4px 6px, transparent 6px 7px, rgba(var(--dc),.3) 7px 9px, transparent 9px 11px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.akb-hd-seal {
  position: absolute; left: 50%; top: 12px; width: 38px; height: 38px; transform: translateX(-50%);
  display: grid; place-items: center; border-radius: 50%; color: var(--akb-gold-l);
  background: radial-gradient(circle, rgba(var(--dc),.32), rgba(10,7,26,.7) 70%);
  border: 1px solid rgba(211,174,87,.5); box-shadow: 0 0 14px rgba(var(--dc),.4);
}
.akb-hd-seal svg, .akb-wb-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.akb-hd-plate { display: block; margin-top: 9px; }
.akb-hd-plate b { display: block; font: 600 10.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; color: var(--akb-ivory); text-shadow: 0 2px 8px #000, 0 0 2px #000; }
.akb-hd-plate small { display: block; margin-top: 2px; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 12.5px; line-height: 1.2; color: var(--text2); text-shadow: 0 2px 8px #000; }
.akb-hdoor:hover, .akb-hdoor:focus-visible { outline: none; opacity: 1; transform: translate(-50%, -54%) scale(calc(var(--s) * 1.07)); }
.akb-hdoor:hover .akb-hd-arch, .akb-hdoor:focus-visible .akb-hd-arch {
  border-color: rgba(241,216,145,.9);
  box-shadow: inset 0 0 0 4px rgba(6,4,18,.6), inset 0 0 0 5px rgba(241,216,145,.3), 0 0 30px rgba(var(--dc),.5);
}
.akb-hdoor:hover .akb-hd-arch::after, .akb-hdoor:focus-visible .akb-hd-arch::after { opacity: 1; }
.akb-hdoor:hover .akb-hd-plate b, .akb-hdoor:focus-visible .akb-hd-plate b { color: var(--akb-gold-l); }
.akb-hdoor[data-wing="inventaire"] .akb-hd-arch { border-color: rgba(224,192,108,.7); }
/* arrivée dans le Hall : les portes apparaissent du fond vers le premier plan */
#akashaApp.akb-entering[data-akb-room="hall"] .akb-hdoor { animation: akbDoorIn .9s var(--akb-ease) both; animation-delay: calc((1 - var(--d)) * 260ms); }
#akashaApp.akb-entering[data-akb-room="hall"] .akb-orb { animation: akbOrbIn 1.1s var(--akb-ease) both; }
@keyframes akbDoorIn { from { opacity: 0; filter: blur(4px); } }
@keyframes akbOrbIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.82); } }
#akashaApp[data-akb-room="hall"] .akb-arcade, #akashaApp[data-akb-room="hall"] .akb-floor { display: none; }

/* mobile : l'astre en haut, puis les trois ailes en niches */
@media (max-width: 760px) {
  #panelHome:not(.akb-pupitre):not(.akd-edit) { height: auto; min-height: 100%; }
  .akb-rotunda { min-height: 0; overflow: visible; display: flex; flex-direction: column; align-items: center; padding: 16px 12px 26px; }
  .akb-rot-wall { height: 360px; top: -20px; }
  .akb-rot-cols { height: 330px; }
  .akb-rot-floor { top: 300px; width: 760px; }
  .akb-rot-beam { height: 330px; width: 80%; }
  .akb-rot-head { position: relative; left: auto; top: auto; text-align: center; }
  .akb-crumb { justify-content: center; }
  .akb-rot-head p { margin: 0 auto; }
  .akb-rot-head h2 { font-size: 23px; }
  .akb-orb { position: relative; left: auto; top: auto; transform: none; width: 136px; margin: 44px auto 84px; animation: none; }
  @keyframes akbOrbIn { from { opacity: 0; transform: scale(.82); } }
  .akb-rot-doors { position: relative; width: 100%; }
  .akb-hgroup { display: block; margin-top: 18px; }
  .akb-hgroup-h {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .3em; text-transform: uppercase; color: var(--akb-gold-l);
  }
  .akb-hgroup-h::before, .akb-hgroup-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(211,174,87,.45), transparent); }
  .akb-hgroup-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .akb-hdoor { position: relative; left: auto; top: auto; width: auto; transform: none; opacity: 1; z-index: auto !important; }
  .akb-hdoor:hover, .akb-hdoor:focus-visible { transform: translateY(-3px); }
  .akb-hdoor::after { top: 80px; }
  .akb-hd-arch { width: 68px; height: 86px; }
  .akb-hd-shelves { top: 46px; left: 10px; right: 10px; }
  .akb-hd-seal { top: 9px; width: 32px; height: 32px; }
  .akb-hd-seal svg { width: 17px; height: 17px; }
  .akb-hd-plate b { font-size: 9.5px; letter-spacing: .1em; }
  .akb-hd-plate small { font-size: 11.5px; }
}

/* ═════════════════════════ 5b. BARRE D'AILE (fil d'Ariane) ═════════════════════════ */
:root { --akb-wb-h: 50px; }
.akb-wingbar {
  display: none; position: sticky; top: 0; z-index: 30; height: var(--akb-wb-h);
  align-items: center; gap: 14px; padding: 0 18px;
  background: linear-gradient(180deg, rgba(9,6,24,.95), rgba(9,6,24,.86));
  border-bottom: 1px solid rgba(211,174,87,.24);
  box-shadow: 0 12px 26px -16px #000;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.akb-wingbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold-violet-line); opacity: .7; pointer-events: none; }
#akashaApp.akb-in-wing .akb-wingbar { display: flex; }
.akb-wb-back {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 10px; cursor: pointer;
  border-radius: 14px 14px 5px 5px; color: var(--akb-gold-l);
  font: 600 9.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(48,31,96,.62), rgba(16,10,36,.86)); border: 1px solid rgba(224,192,108,.5);
  box-shadow: inset 0 0 0 2px rgba(6,4,18,.45);
}
.akb-wb-back span { font-size: 17px; line-height: 1; margin-top: -2px; }
.akb-wb-back em { font-style: normal; }
.akb-wb-back:hover, .akb-wb-back:focus-visible { outline: none; border-color: #f1d891; box-shadow: inset 0 0 0 2px rgba(6,4,18,.45), 0 0 14px rgba(211,174,87,.3); }
.akb-wb-crumb { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.akb-wb-crumb li { display: flex; align-items: center; gap: 8px; white-space: nowrap; font: 600 9.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .2em; text-transform: uppercase; color: var(--text3); }
.akb-wb-crumb li + li::before { content: "›"; color: var(--akb-gold-old); font-size: 13px; letter-spacing: 0; }
.akb-wb-crumb li button { padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.akb-wb-crumb li button:hover { color: var(--akb-gold-l); }
.akb-wb-crumb .here { min-width: 0; color: var(--akb-ivory); }
.akb-wb-crumb .here b { font-weight: 700; color: var(--akb-gold-l); overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 14px rgba(211,174,87,.35); }
.akb-wb-ico { display: inline-grid; place-items: center; color: var(--akb-gold-l); }
.akb-wb-ico svg { width: 17px; height: 17px; }
@media (max-width: 600px) {
  .akb-wingbar { gap: 8px; padding: 0 10px; }
  .akb-wb-back em, .akb-wb-crumb li:nth-child(2) { display: none; }
  .akb-wb-back { padding: 0 10px; }
  .akb-wb-crumb li { letter-spacing: .12em; }
}
/* les onglets de salle existants restent la navigation (Librairie · Objets · TCG · Web 3.0,
   7 Étages · Parchemins · Vidéos · Musicothèque) ; seul le bandeau « Retour à la Noosphère »
   est remplacé par la barre d'aile. Les onglets du Codex, masqués par le mode noo-music,
   sont réaffichés (sauf quand un étage ouvert les masque lui-même : style="display:none"). */
#akashaApp.akb-wings .noo-back { display: none !important; }
#akashaApp.akb-wings #panelCodex.noo-music .subtab-bar:not([style*="none"]) { display: flex !important; }
/* une aile = une salle : titre plus compact (la barre dit déjà où l'on est) */
#akashaApp.akb-wings .panel:not(#panelHome) { padding-top: 22px; }
#akashaApp.akb-wings .panel .section-header { margin-bottom: 18px; padding-top: 0; }
#akashaApp.akb-wings .panel .section-title { font-size: clamp(24px, 2.8vw, 30px); margin-bottom: 6px; }
#akashaApp.akb-wings .panel .section-eyebrow { font-size: 10px; margin-bottom: 6px; }
#akashaApp.akb-wings .panel .section-desc { font-size: 16px; margin-bottom: 6px; }
#akashaApp.akb-wings .panel .section-sep { display: none; }
#akashaApp.akb-wings .panel .akb-emblem { width: 44px; height: 44px; margin-bottom: 6px; }
#akashaApp.akb-wings .panel .akb-emblem svg { width: 28px; height: 28px; }

/* fil d'Ariane dans la carte de la Noosphère (le réseau des savoirs) */
.akb-hudcrumb { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.akb-hudcrumb button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; cursor: pointer; border-radius: 13px 13px 5px 5px;
  color: var(--akb-gold-l); font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(16,10,36,.82); border: 1px solid rgba(224,192,108,.5);
}
.akb-hudcrumb button span { font-size: 15px; line-height: 1; margin-top: -2px; }
.akb-hc-path { font: 600 8.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .22em; text-transform: uppercase; color: var(--text3); text-shadow: 0 1px 6px #000; }
.akb-hc-path i { font-style: normal; color: var(--akb-gold-old); margin: 0 4px; }
.akb-hc-path b { color: var(--akb-gold-l); }
@media (max-width: 600px) { .akb-hc-path { display: none; } }
/* la vue liste de la carte commence sous l'en-tête (qui porte maintenant le fil d'Ariane) */
#ckRoot .ck-list { padding-top: 176px; }
#ckRoot.filters-open .ck-list { padding-top: 258px; }
#ckRoot.narrow .ck-list { padding-top: 200px; }
#ckRoot.narrow.filters-open .ck-list { padding-top: 290px; }

/* ═════════════════════════ 5c. TRANSITION : les battants d'une aile ═════════════════════════ */
.akb-veil { position: absolute; left: 0; right: 0; z-index: 9; display: none; pointer-events: none; overflow: hidden; perspective: 1600px; }
.akb-veil.closing, .akb-veil.opening { display: block; }
.akb-veil > i {
  position: absolute; top: 0; bottom: 0; width: 50.4%; backface-visibility: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 30%, transparent 80%, rgba(0,0,0,.4)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 8px),
    linear-gradient(90deg, #0e0820, #1e1236 55%, #130a26);
  box-shadow: inset 0 0 0 1px rgba(196,159,72,.3), inset 0 0 80px rgba(0,0,0,.6);
}
.akb-veil > i::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 12%; bottom: 12%;
  border: 1px solid rgba(212,175,90,.28); border-radius: 50% 50% 4px 4px / 22% 22% 4px 4px;
  box-shadow: inset 0 0 0 6px rgba(10,6,22,.55), inset 0 0 0 7px rgba(212,175,90,.12);
}
.akb-veil > i.l { left: 0; transform-origin: left center; }
.akb-veil > i.r { right: 0; transform-origin: right center; }
.akb-veil::after { /* le filet de lumière entre les battants */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, #fff3d0 30%, #fff6dc 60%, transparent); box-shadow: 0 0 16px 3px rgba(255,226,160,.5);
}
.akb-veil-name { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; z-index: 2; white-space: nowrap; }
.akb-veil-name small { display: block; font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .34em; text-transform: uppercase; color: var(--akb-violet-l); }
.akb-veil-name b { display: block; margin-top: 8px; font-family: "Cinzel Decorative", "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; font-size: clamp(22px, 3.4vw, 34px); letter-spacing: .1em; color: var(--akb-gold-l); text-shadow: 0 0 26px rgba(211,174,87,.45), 0 2px 12px #000; }
.akb-veil.closing > i.l { animation: akbVeilShutL .3s cubic-bezier(.5,0,.7,.4) both; }
.akb-veil.closing > i.r { animation: akbVeilShutR .3s cubic-bezier(.5,0,.7,.4) both; }
.akb-veil.closing .akb-veil-name { animation: akbFadeIn .3s ease both; }
.akb-veil.opening > i.l { animation: akbVeilOpenL .85s cubic-bezier(.6,.05,.3,1) .12s both; }
.akb-veil.opening > i.r { animation: akbVeilOpenR .85s cubic-bezier(.6,.05,.3,1) .12s both; }
.akb-veil.opening .akb-veil-name { animation: akbFadeOut .45s ease both; }
.akb-veil.opening::after { animation: akbFadeOut .3s ease both; }
@keyframes akbVeilShutL { from { transform: rotateY(70deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes akbVeilShutR { from { transform: rotateY(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes akbVeilOpenL { from { transform: none; opacity: 1; } 85% { opacity: 1; } to { transform: rotateY(96deg); opacity: 0; } }
@keyframes akbVeilOpenR { from { transform: none; opacity: 1; } 85% { opacity: 1; } to { transform: rotateY(-96deg); opacity: 0; } }
@keyframes akbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes akbFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ═════════════════════════ 7. LES 7 ÉTAGES : une tour de 7 chambres ═════════════════════════
   La Racine en bas, la Couronne en haut, reliées par un puits de lumière. Chaque chambre
   montre son parchemin déjà ouvert (nom, principe, thèmes, « Consulter » = openChakraFloor). */
#panelEtages .etages-layout { display: block !important; }
#panelEtages .etages-layout > .chakra-rail, #panelEtages .etages-layout > .chakra-voie { display: none !important; }
#panelEtages .chakra-hall {
  display: flex !important; flex-direction: column-reverse !important; flex-wrap: nowrap !important; gap: 12px !important;
  max-width: 880px; margin: 0 auto; padding: 8px 0 !important; overflow: visible !important; position: relative;
}
#panelEtages .chakra-hall::before { /* puits de lumière : de la Racine à la Couronne */
  content: ""; position: absolute; left: 49px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; opacity: .9; z-index: 0;
  border-radius: 2px; animation: none !important;
  background: linear-gradient(0deg, #c0392b, #d35400, #d4a017, #2e8b57, #2f7fd1, #3f3fa8, #8e5fc0);
  box-shadow: 0 0 12px rgba(201,168,255,.35);
}
#panelEtages .chakra-hall::after { /* une lueur monte le long du puits */
  content: ""; position: absolute; left: 44px; right: auto; bottom: 18px; width: 12px; height: 70px; opacity: 0; z-index: 3;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(255,250,235,.95), rgba(255,236,190,0) 70%);
  animation: akbAscend 6s ease-in infinite; transition: none;
}
@keyframes akbAscend { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .7; } 100% { transform: translateY(-560px); opacity: 0; } }
#panelEtages .chakra-hall .chakra-col {
  flex: none !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important;
  gap: 22px; width: 100%; margin: 0 !important; padding: 7px 20px 7px 12px !important; text-align: left !important;
  transform: none !important; opacity: 1 !important; filter: none !important; background: none !important; border: 0 !important; box-shadow: none !important;
}
#panelEtages .chakra-hall .chakra-col::before { /* la chambre */
  display: block !important; content: ""; position: absolute; inset: 0 !important; width: auto !important; height: auto !important;
  transform: none !important; opacity: 1 !important; z-index: 0;
  border-radius: 50px 16px 16px 50px;
  background:
    radial-gradient(ellipse 22% 120% at 5% 50%, var(--chg), transparent 70%),
    linear-gradient(90deg, color-mix(in srgb, var(--ch) 16%, rgba(14,10,34,.94)), rgba(12,9,30,.88) 34%, rgba(8,6,22,.82));
  border: 1px solid color-mix(in srgb, var(--ch) 34%, rgba(211,174,87,.3));
  box-shadow: inset 0 0 0 3px rgba(6,4,18,.45), 0 14px 28px -20px #000;
  transition: border-color .35s, box-shadow .35s;
}
#panelEtages .chakra-hall .chakra-col:hover::before, #panelEtages .chakra-hall .chakra-col.is-open::before {
  border-color: color-mix(in srgb, var(--ch) 70%, #f1d891);
  box-shadow: inset 0 0 0 3px rgba(6,4,18,.45), 0 0 26px var(--chg), 0 14px 28px -20px #000;
}
#panelEtages .chakra-hall .chakra-col::after { display: none !important; }
#panelEtages .chakra-hall .col-orb { flex: none; width: 76px; height: 76px; order: 0; position: relative; z-index: 2; }
#panelEtages .chakra-hall .col-orb .col-symbol { width: 56px; height: 56px; }
#panelEtages .chakra-hall .col-orb::after { inset: -5px; }
#panelEtages .chakra-hall .col-scroll { flex: 1 1 auto; min-width: 0; display: block !important; order: 1; position: relative; z-index: 1; }
#panelEtages .chakra-hall .col-scroll-clip { visibility: visible !important; overflow: visible !important; }
#panelEtages .chakra-hall .col-parch-wrap { padding: 0 !important; }
#panelEtages .chakra-hall .col-parch {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.55fr) auto;
  grid-template-areas: "etage principle cta" "name themes cta" "fr themes count";
  gap: 3px 22px; align-items: center; padding: 0 !important; text-align: left;
  background: none !important; border: 0 !important; box-shadow: none !important; container-type: normal;
}
#panelEtages .chakra-hall .parch-roll, #panelEtages .chakra-hall .col-elem { display: none !important; }
#panelEtages .chakra-hall .col-etage { grid-area: etage; margin: 0 !important; font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .28em; text-transform: uppercase; color: color-mix(in srgb, var(--ch) 55%, #f1d891); }
#panelEtages .chakra-hall .col-name { grid-area: name; font-family: "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif !important; font-size: 15px !important; letter-spacing: .08em !important; color: var(--akb-ivory) !important; white-space: nowrap; }
#panelEtages .chakra-hall .col-fr { grid-area: fr; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 15px; color: var(--text2); letter-spacing: 0 !important; text-transform: none; }
#panelEtages .chakra-hall .col-principle { grid-area: principle; font: 600 10px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .16em; color: var(--akb-gold-l); margin: 0; }
#panelEtages .chakra-hall .col-themes { grid-area: themes; font-family: "Cormorant Garamond", serif; font-size: 14px; line-height: 1.4; color: var(--text3); margin: 0; }
#panelEtages .chakra-hall .col-count { grid-area: count; margin: 0 !important; font: 600 8.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .16em; text-transform: uppercase; color: var(--text3); text-align: center; }
#panelEtages .chakra-hall .col-cta { grid-area: cta; margin: 0 !important; align-self: end; }
#panelEtages .chakra-hall .col-name { line-height: 1.3; }
#panelEtages .chakra-hall .col-themes { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
#akashaApp.akb-entering #panelEtages .chakra-hall .chakra-col { animation: akbFloorIn .6s var(--akb-ease) both; animation-delay: calc(var(--akb-step, 0) * 90ms); }
@keyframes akbFloorIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  #panelEtages .chakra-hall::before { left: 41px; }
  #panelEtages .chakra-hall::after { left: 36px; }
  #panelEtages .chakra-hall .chakra-col { gap: 14px; padding: 10px 12px 10px 8px !important; }
  #panelEtages .chakra-hall .chakra-col::before { border-radius: 46px 14px 14px 46px; }
  #panelEtages .chakra-hall .col-orb { width: 66px; height: 66px; }
  #panelEtages .chakra-hall .col-orb .col-symbol { width: 48px; height: 48px; }
  #panelEtages .chakra-hall .col-orb::after { inset: -5px; }
  #panelEtages .chakra-hall .col-parch { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "etage cta" "name cta" "fr count"; gap: 2px 10px; }
  #panelEtages .chakra-hall .col-principle, #panelEtages .chakra-hall .col-themes { display: none; }
  #panelEtages .chakra-hall .col-name { font-size: 12.5px !important; }
}

/* ═════════════════════════ 8b. PARCHEMINS : pupitres et manuscrits ═════════════════════════ */
/* chaque manuscrit repose sur un pupitre : plateau incliné + rebord de laiton */
#panelArticles .ak-card .card-thumb::before {
  content: ""; position: absolute; left: 7%; right: 7%; bottom: 2%; height: 32%; z-index: 0; border-radius: 4px; pointer-events: none;
  background: linear-gradient(180deg, #5a3a1e, #2e1a0e 70%, #1b0f08);
  box-shadow: inset 0 1px 0 rgba(241,216,145,.45), 0 18px 24px -10px #000;
  transform: perspective(520px) rotateX(54deg); transform-origin: 50% 100%;
}
#panelArticles .ak-card .card-thumb::after {
  content: ""; position: absolute; left: 13%; right: 13%; bottom: 4%; height: 5px; z-index: 3; border-radius: 2px; pointer-events: none;
  background: linear-gradient(180deg, #f1d891, #8a6a2c); box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
#panelArticles #articlesGrid { row-gap: 40px; }
/* le pied du pupitre et sa plaque */
#panelArticles .ak-card .card-body {
  background: linear-gradient(180deg, rgba(42,26,16,.94), rgba(20,12,8,.96)) !important;
  border: 1px solid rgba(196,159,72,.38) !important; border-radius: 3px 3px 12px 12px !important;
}
#panelArticles .ak-card .card-body::after {
  content: ""; position: absolute; left: 50%; top: -16px; width: 26px; height: 15px; transform: translateX(-50%);
  background: linear-gradient(90deg, #1b0f08, #4a2c16 50%, #1b0f08); border-left: 1px solid rgba(196,159,72,.3); border-right: 1px solid rgba(196,159,72,.3);
}
/* le contenu s'ouvre comme un manuscrit */
#contentModal .modal-box:has(.tag-article) { border-color: rgba(233,220,188,.35); }
#contentModal .modal-box:has(.tag-article) .modal-article-full {
  position: relative; margin: 22px 0 10px; padding: 38px clamp(18px, 5vw, 46px) 34px;
  color: #2b1d0e; font-family: "Cormorant Garamond", serif; font-size: 18px; line-height: 1.75;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 50%),
    repeating-linear-gradient(0deg, rgba(120,80,30,.025) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #f1e7cb, #e6d6ad 60%, #ddca9c);
  border-radius: 3px; box-shadow: inset 0 0 50px rgba(120,80,30,.28), 0 20px 44px -18px #000;
}
#contentModal .modal-box:has(.tag-article) .modal-article-full::before,
#contentModal .modal-box:has(.tag-article) .modal-article-full::after {
  content: ""; position: absolute; left: -8px; right: -8px; height: 14px; border-radius: 8px;
  background: linear-gradient(180deg, #7a5a22, #e8c46a 38%, #b58a3a 62%, #4e3814); box-shadow: 0 3px 8px rgba(0,0,0,.55);
}
#contentModal .modal-box:has(.tag-article) .modal-article-full::before { top: -7px; }
#contentModal .modal-box:has(.tag-article) .modal-article-full::after { bottom: -7px; }
#contentModal .modal-box:has(.tag-article) .modal-article-full p,
#contentModal .modal-box:has(.tag-article) .modal-article-full em { color: #2b1d0e; }
#contentModal .modal-box:has(.tag-article) .modal-article-full h2,
#contentModal .modal-box:has(.tag-article) .modal-article-full h3 { color: #4a2a10; font-family: "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; text-shadow: none; }
#contentModal .modal-box:has(.tag-article) .modal-article-full strong { color: #3a1d06; }
/* Parchemin « manuscrit » (28/10, <!-- akasha:manuscrit -->, akasha.page-1.js _akManuscrit) :
   Crimson Text pour le texte, Cinzel pour les titres, séparateurs dorés, cartouches de citation */
#contentModal .modal-box:has(.tag-article) .modal-article-full.is-manuscrit { font-family: "Crimson Text", "Crimson Fallback", Georgia, serif; font-size: 19px; line-height: 1.72; overflow-wrap: break-word; hyphens: auto; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit p { margin: 0 0 1em; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit h2 { margin: 1.6em 0 .6em; font-size: 19px; letter-spacing: .08em; line-height: 1.35; text-align: center; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit h3 { margin: 1.3em 0 .5em; font-size: 16px; letter-spacing: .06em; line-height: 1.4; color: #5a2f5e; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit ul,
#contentModal .modal-box:has(.tag-article) .is-manuscrit ol { margin: 0 0 1em 1.3em; padding: 0; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit li { margin-bottom: .45em; line-height: 1.6; color: #2b1d0e; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit li::marker { color: #9a7230; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-sep {
  border: 0; height: 14px; margin: 1.8em auto; width: min(70%, 320px); position: relative; overflow: visible;
  background: linear-gradient(90deg, transparent, #b58a3a 22%, #e8c46a 50%, #b58a3a 78%, transparent) center / 100% 1px no-repeat;
}
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-sep::after {
  content: "✦"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); padding: 0 10px;
  font-size: 13px; line-height: 1; color: #9a7230; background: #e8dbb5;
}
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-cartouche {
  margin: 1.4em 0; padding: 18px clamp(14px, 4vw, 26px); text-align: center; font-style: italic; font-size: 1.04em;
  border: 1px solid rgba(154,114,48,.55); border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,250,232,.55), rgba(232,214,170,.35));
  box-shadow: inset 0 0 0 4px rgba(241,231,203,.9), inset 0 0 0 5px rgba(154,114,48,.35), 0 0 22px -6px rgba(122,74,140,.35);
}
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-cartouche p { margin: 0 0 .5em; color: #3a2310; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-cartouche p:last-child { margin-bottom: 0; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-note {
  margin: 1.2em 0; padding: 12px 16px; font-size: .92em; line-height: 1.6;
  border-left: 3px solid #7a4a8c; border-radius: 0 4px 4px 0; background: rgba(122,74,140,.08);
}
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-note p { margin: 0 0 .5em; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-note p:last-child { margin-bottom: 0; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-link { color: #5a2f5e; text-decoration: underline; text-decoration-color: rgba(154,114,48,.7); text-underline-offset: 3px; }
@media (max-width: 430px) {
  /* le manuscrit prend toute la largeur utile : la fenêtre resserre ses marges pour lui seul */
  #contentModal .modal-box:has(.is-manuscrit) .modal-content-body { padding-left: 10px; padding-right: 10px; }
  #contentModal .modal-box:has(.tag-article) .modal-article-full.is-manuscrit { margin-left: 4px; margin-right: 4px; padding: 30px 14px 26px; font-size: 17.5px; line-height: 1.66; }
  #contentModal .modal-box:has(.tag-article) .is-manuscrit h2 { font-size: 16.5px; letter-spacing: .05em; }
  #contentModal .modal-box:has(.tag-article) .is-manuscrit .ak-ms-cartouche { padding: 14px 12px; }
}

/* §86 (29/10) Ojas : parchemin « manuscrit indien » (data-ms="ojas", posé par openArticle d'après le marqueur).
   Même parchemin 3D (rouleaux dorés, Crimson/Cinzel) ; en plus : cadre or et améthyste, lotus en filigrane,
   double danda « ॥ » sur les séparateurs. Aucune animation. */
#contentModal .modal-box:has(.tag-article) .modal-article-full.is-manuscrit[data-ms="ojas"] {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%23a07a2c' stroke-width='1.2'%3E%3Cpath d='M60 8C50 24 50 44 60 62C70 44 70 24 60 8Z'/%3E%3Cpath d='M60 62C44 52 34 36 32 20C46 26 56 40 60 62Z'/%3E%3Cpath d='M60 62C76 52 86 36 88 20C74 26 64 40 60 62Z'/%3E%3Cpath d='M60 62C38 60 22 50 12 36C30 36 48 46 60 62Z'/%3E%3Cpath d='M60 62C82 60 98 50 108 36C90 36 72 46 60 62Z'/%3E%3Cpath d='M28 68Q60 78 92 68' stroke='%237a4a8c'/%3E%3C/g%3E%3C/svg%3E") center 18px / 110px auto no-repeat,
    radial-gradient(ellipse at 50% 0%, rgba(122,74,140,.10), transparent 55%),
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 50%),
    repeating-linear-gradient(0deg, rgba(120,80,30,.025) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #f3e6c6, #e9d4a4 60%, #dfc690);
  box-shadow: inset 0 0 0 6px rgba(243,230,198,.7), inset 0 0 0 7px rgba(176,128,46,.55), inset 0 0 0 10px rgba(243,230,198,.5),
    inset 0 0 0 11px rgba(122,74,140,.35), inset 0 0 50px rgba(120,80,30,.26), 0 20px 44px -18px #000;
  padding-top: 92px;
}
#contentModal .modal-box:has(.tag-article) .is-manuscrit[data-ms="ojas"] h2 { color: #4b2560; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit[data-ms="ojas"] h2::after {
  content: ""; display: block; width: 64px; height: 1px; margin: .55em auto 0;
  background: linear-gradient(90deg, transparent, #b0802e, #e8c46a, #b0802e, transparent);
}
#contentModal .modal-box:has(.tag-article) .is-manuscrit[data-ms="ojas"] h3 { color: #6a3a7c; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit[data-ms="ojas"] .ak-ms-sep::after { content: "॥ ✿ ॥"; color: #8a5a9c; background: #ead7a8; letter-spacing: .2em; }
#contentModal .modal-box:has(.tag-article) .is-manuscrit[data-ms="ojas"] .ak-ms-cartouche {
  border-color: rgba(176,128,46,.6);
  box-shadow: inset 0 0 0 4px rgba(243,230,198,.9), inset 0 0 0 5px rgba(122,74,140,.35), 0 0 26px -6px rgba(232,196,106,.55);
}
#contentModal .modal-box:has(.tag-article) .is-manuscrit[data-ms="ojas"] .ak-ms-note { border-left-color: #b0802e; background: linear-gradient(90deg, rgba(122,74,140,.10), rgba(232,196,106,.10)); }
#contentModal .modal-box:has(.tag-article) .is-manuscrit[data-ms="ojas"] li::marker { color: #7a4a8c; }
@media (max-width: 430px) {
  #contentModal .modal-box:has(.tag-article) .modal-article-full.is-manuscrit[data-ms="ojas"] { padding-top: 76px; background-size: 86px auto, auto, auto, auto, auto; background-position: center 14px, 0 0, 0 0, 0 0, 0 0; }
}

/* ═════════════════════════ 9b. VIDÉOTHÈQUE : la transmission centrale ═════════════════════════ */
#contentModal:has(.modal-content-body > .tag-video) { background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(30,60,110,.4), rgba(2,2,10,.95) 72%); }
#contentModal .modal-box:has(.modal-content-body > .tag-video) {
  background: linear-gradient(180deg, #070a1c, #04040e); border: 1px solid rgba(143,220,236,.38);
  box-shadow: 0 0 0 1px rgba(211,174,87,.18), 0 0 90px rgba(143,220,236,.2), 0 40px 100px -30px #000;
}
#contentModal .modal-box:has(.modal-content-body > .tag-video) iframe,
#contentModal .modal-box:has(.modal-content-body > .tag-video) video { box-shadow: 0 0 0 1px rgba(200,240,255,.4), 0 0 46px rgba(143,220,236,.28); }
#contentModal .modal-box:has(.modal-content-body > .tag-video) .modal-content-body::before {
  content: "◉ Transmission conservée dans les archives"; display: block; margin-bottom: 10px;
  font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .3em; text-transform: uppercase; color: #a8e6f4;
}
/* une salle plus sombre */
#akashaApp[data-akb-room="videos"] .akb-hall::after { height: 100%; background: linear-gradient(0deg, rgba(2,3,12,.55), rgba(2,3,12,.3)); }

/* ═════════════════════════ 10b. MUSICOTHÈQUE : le lecteur devient la console de la salle ═════════════════════════ */
.mpb-cover { border-radius: 50%; position: relative; box-shadow: 0 0 0 2px rgba(6,6,24,1), 0 0 0 3px rgba(140,170,255,.45), 0 4px 16px #0008; }
#musicPlayerBar.akb-playing .mpb-cover { animation: akbDisc 14s linear infinite, akbHaloPulse 2.4s ease-in-out infinite; }
@keyframes akbDisc { to { transform: rotate(360deg); } }
@keyframes akbHaloPulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(6,6,24,1), 0 0 0 3px rgba(140,170,255,.5), 0 0 14px rgba(110,150,255,.35); }
  50%     { box-shadow: 0 0 0 2px rgba(6,6,24,1), 0 0 0 4px rgba(170,195,255,.75), 0 0 28px rgba(110,150,255,.6); }
}
#akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open {
  left: 50%; right: auto; width: min(1000px, calc(100% - 32px)); transform: translateX(-50%);
  bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  border-radius: 26px 26px 14px 14px; border: 1px solid rgba(120,160,255,.42); border-image: none;
  background:
    radial-gradient(ellipse 40% 160% at 6% 50%, rgba(90,130,255,.24), transparent 60%),
    linear-gradient(180deg, rgba(12,14,48,.95), rgba(6,6,24,.97));
  box-shadow: inset 0 0 0 1px rgba(211,174,87,.12), 0 22px 60px -10px #000, 0 0 54px rgba(80,120,255,.24);
}
#akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open .mpb-cover { width: 60px; height: 60px; }
#akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open::before { /* onde qui court sur le bord haut */
  content: ""; position: absolute; left: 24px; right: 24px; top: -5px; height: 10px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' fill='none' stroke='%23a8bcff' stroke-opacity='.7' stroke-width='.9'%3E%3Cpath d='M0 5c3.3-5 6.7-5 10 0s6.7 5 10 0 6.7-5 10 0 6.7 5 10 0'/%3E%3C/svg%3E") 0 50% / 40px 10px repeat-x;
  opacity: .5;
}
#akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open.akb-playing::before { opacity: 1; animation: akbWaveRun 1.6s linear infinite; }
@keyframes akbWaveRun { to { background-position: -40px 50%; } }
@media (max-width: 767px) {
  #akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open { bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; width: calc(100% - 16px); }
  #akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open .mpb-cover { width: 48px; height: 48px; }
}
/* halo autour du morceau joué */
.mtrack-card.is-playing .mtrack-cover { box-shadow: inset 0 0 0 2px rgba(170,195,255,.55), inset 0 0 30px rgba(110,150,255,.35); }

/* ═════════════════════════ 11b. LIBRAIRIE : volumes couchés, pupitre, mobile ═════════════════════════ */
/* sur le fronton du meuble : volumes couchés et un globe */
.lib-shell::after {
  top: -30px; height: 31px; left: 22px; right: 22px; border-radius: 0; border-top: 0; box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Crect x='2' y='20' width='74' height='9' rx='1.5' fill='%233a2470'/%3E%3Crect x='8' y='11' width='62' height='9' rx='1.5' fill='%235a3a1e'/%3E%3Crect x='14' y='3' width='52' height='8' rx='1.5' fill='%231d1a44'/%3E%3Cpath d='M10 20v9M66 20v9M16 11v9M60 11v9M22 3v8M56 3v8' stroke='%23e0c06c' stroke-opacity='.7' stroke-width='.8'/%3E%3Ccircle cx='100' cy='17' r='8' fill='none' stroke='%23c49f48'/%3E%3Cpath d='M92 17h16M100 9c3 3 3 13 0 16' stroke='%23c49f48' stroke-width='.7' fill='none'/%3E%3Cpath d='M95 29h10M100 25v4' stroke='%23c49f48'/%3E%3C/svg%3E") right 8px bottom 2px / auto 28px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 22'%3E%3Crect x='2' y='13' width='60' height='8' rx='1.5' fill='%23402a52'/%3E%3Crect x='8' y='5' width='50' height='8' rx='1.5' fill='%2318203e'/%3E%3Cpath d='M9 13v8M56 13v8M14 5v8M52 5v8' stroke='%23e0c06c' stroke-opacity='.6' stroke-width='.8'/%3E%3C/svg%3E") left 10px bottom 2px / auto 20px no-repeat,
    linear-gradient(90deg, transparent, rgba(196,159,72,.6) 6%, rgba(241,216,145,.7) 50%, rgba(196,159,72,.6) 94%, transparent) bottom / 100% 2px no-repeat;
}
/* la fiche d'un ouvrage s'ouvre sur un pupitre */
#contentModal .modal-box:has(.arch-layout) {
  border: 1px solid rgba(196,159,72,.45);
  box-shadow: inset 0 0 0 6px rgba(18,10,6,.55), inset 0 0 0 7px rgba(196,159,72,.18), 0 40px 100px -30px #000, 0 0 60px rgba(211,174,87,.1);
}
/* mobile : les rayonnages deviennent des fiches verticales */
@media (max-width: 680px) {
  .lib-grid, .lib-grid.is-sparse { display: flex !important; flex-direction: column; gap: 14px !important; --akb-plank: 3px; }
  .lib-grid .grimoire, .lib-grid.is-sparse .grimoire, .lib-grid.is-sparse .grimoire:only-child {
    width: 100% !important; min-width: 0 !important; height: auto; display: grid; grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 14px; align-items: center; padding: 12px 12px 10px; border-radius: 14px 14px 6px 6px;
    background: linear-gradient(160deg, rgba(34,22,48,.86), rgba(10,6,18,.92)); border: 1px solid rgba(196,159,72,.24);
    box-shadow: inset 0 0 0 3px rgba(6,4,16,.4);
  }
  .lib-grid .grimoire-stage { grid-column: 1; grid-row: 1; padding: 6px 0 0 !important; }
  .lib-grid .grimoire-stage::before, .lib-grid .grimoire-halo, .lib-grid .grimoire-circle { display: none; }
  .lib-grid .grimoire-cover { max-width: 92px !important; transform: none !important; }
  .lib-grid .grimoire-shelf { grid-column: 1; grid-row: 2; height: 16px; }
  .lib-grid .grimoire-info { grid-column: 2; grid-row: 1 / span 2; align-items: flex-start; text-align: left; padding: 0 !important; gap: 6px; }
  .lib-grid .grimoire-title { min-height: 0; text-align: left; }
  .lib-grid .grimoire-cta { align-self: flex-start; margin-top: 4px; }
  .lib-shell::after { display: none; }
  .lib-format { max-width: 100%; }
  .lib-fmt { padding: 8px 6px; letter-spacing: .8px; font-size: 8.5px; }
}

/* ═════════════════════════ 11c. ARTEFACTS : cabinet des objets de pouvoir ═════════════════════════ */
#panelObjets #objetsGrid {
  gap: 40px 26px; padding: 30px 24px 26px; border-radius: 22px 22px 6px 6px;
  background:
    linear-gradient(90deg, #2a1810 0, #4a2e18 5px, #1c0f0a 12px, transparent 13px, transparent calc(100% - 13px), #1c0f0a calc(100% - 12px), #4a2e18 calc(100% - 5px), #2a1810 100%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(200,120,230,.12), transparent 70%),
    linear-gradient(180deg, rgba(14,8,22,.82), rgba(8,5,14,.6));
  box-shadow: inset 0 1px 0 rgba(211,174,87,.25), 0 30px 60px -40px #000;
}
#panelObjets .ak-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
#panelObjets .ak-card::before { display: none; }
#panelObjets .ak-card .card-thumb { /* la vitrine de verre */
  border-radius: 12px 12px 2px 2px;
  background: radial-gradient(ellipse 60% 40% at 50% 92%, rgba(200,120,230,.3), transparent 70%), linear-gradient(180deg, #0d0a22, #05040f);
  box-shadow: inset 0 0 0 1px rgba(220,230,255,.25), inset 0 0 34px rgba(200,120,230,.14), 0 0 26px rgba(200,120,230,.1);
}
#panelObjets .ak-card .card-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, rgba(255,255,255,.11) 0 16%, transparent 30% 72%, rgba(255,255,255,.05) 86%);
}
#panelObjets .ak-card .card-body { /* le socle */
  background: linear-gradient(180deg, #2a1810, #120a06); border-top: 3px solid #b08a3e; border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 26px -16px #000;
}

/* ═════════════════════════ 11d. TCG : galerie des cartes ═════════════════════════ */
#panelTcg .card-grid { gap: 44px 26px; padding-top: 22px; }
#panelTcg .card-grid .ak-card {
  overflow: visible; border-radius: 4px; background: #07060f; border: 1px solid rgba(211,174,87,.32);
  box-shadow: 0 0 0 6px rgba(22,13,32,.92), 0 0 0 7px rgba(211,174,87,.24), 0 26px 40px -22px #000;
}
#panelTcg .card-grid .ak-card::after { /* la lampe de tableau */
  content: ""; position: absolute; left: 50%; top: -20px; width: 44%; height: 6px; transform: translateX(-50%); z-index: 3; pointer-events: none;
  border-radius: 3px; background: linear-gradient(180deg, #f1d891, #7a5a22);
  box-shadow: 0 10px 34px 8px rgba(255,226,160,.16);
}
#panelTcg .card-grid .ak-card:hover::after { box-shadow: 0 10px 40px 12px rgba(255,226,160,.28); }

/* ═════════════════════════ 12. GALERIES HORIZONTALES : d'un pupitre à l'autre ═════════════════════════
   (akasha-bibliotheque.js § 7) La grille d'une salle devient une rangée qui défile en X avec
   scroll-snap : le pupitre central ressort, ses voisins s'éloignent (légèrement plus petits,
   plus sombres). Largeurs en cqw (unités du conteneur) : justes malgré html{zoom:1.15}. */
#akashaApp .akb-gal-wrap {
  --akb-iw: 340px; --akb-gap: 34px; --akb-glow: 211,174,87;
  position: relative; margin: 4px 0 6px; container-type: inline-size;
}
#akashaApp .akb-gal-wrap[data-kind="librairie"] { --akb-iw: 270px; }
#akashaApp .akb-gal-wrap[data-kind="videos"]    { --akb-iw: 380px; --akb-glow: 143,220,236; }
#akashaApp .akb-gal-wrap[data-kind="artefacts"] { --akb-iw: 300px; --akb-glow: 200,120,230; }
#akashaApp .akb-gal-wrap[data-kind="musique"]   { --akb-iw: 184px; --akb-gap: 18px; --akb-glow: 120,160,255; margin: 0; }
#akashaApp .akb-gal-wrap[data-kind="noosphere"] { --akb-iw: 380px; --akb-gap: 24px; --akb-glow: 176,140,255; }

/* le décor de la galerie : piliers qui défilent plus lentement (parallaxe), sol, lumière centrale */
#akashaApp .akb-gal-wrap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; bottom: 58px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 26% 62% at 50% 46%, rgba(var(--akb-glow),.15), transparent 72%),
    linear-gradient(180deg, transparent 0 84%, rgba(211,174,87,.22) 84%, rgba(211,174,87,.22) calc(84% + 1px), transparent calc(84% + 1px)),
    repeating-linear-gradient(90deg, transparent 0 130px, rgba(10,6,24,.5) 130px 141px, rgba(211,174,87,.12) 141px 142px, transparent 142px 260px);
  background-position: 0 0, 0 0, calc(var(--akb-px, 0) * -0.3px) 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
#akashaApp .akb-gal-wrap[data-kind="musique"]::before { bottom: 50px; }

#akashaApp .akb-gal {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch;
  justify-content: flex-start !important;   /* jamais « center » : le début de la rangée deviendrait inatteignable */
  gap: var(--akb-gap) !important; position: relative; z-index: 1;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 30px calc(50cqw - var(--akb-iw) / 2) 24px !important; margin: 0 !important;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  outline: none; cursor: grab;
}
#akashaApp .akb-gal::-webkit-scrollbar { display: none; }
#akashaApp .akb-gal-wrap.is-dragging .akb-gal { scroll-snap-type: none; cursor: grabbing; user-select: none; -webkit-user-select: none; }
#akashaApp .akb-gal > * {
  flex: 0 0 var(--akb-iw) !important; width: var(--akb-iw) !important; min-width: 0 !important; max-width: none !important;
  scroll-snap-align: center; scroll-snap-stop: normal; transform-origin: 50% 65%;
  transition: transform .36s var(--akb-ease), filter .36s ease, opacity .36s ease !important;
}
/* profondeur : les voisins s'éloignent, le pupitre central ressort (subtil) */
#akashaApp .akb-gal > :not(.is-center) { transform: scale(.9) !important; filter: brightness(.6) saturate(.8); opacity: .92; }
#akashaApp .akb-gal > .is-near { filter: brightness(.7) saturate(.85) blur(.4px); }
#akashaApp .akb-gal > .is-center { transform: scale(1.02) !important; filter: drop-shadow(0 0 22px rgba(var(--akb-glow),.22)); opacity: 1; z-index: 2; }
#akashaApp .akb-gal-wrap[data-kind="musique"] .akb-gal > :not(.is-center) { transform: scale(.95) !important; filter: brightness(.8); }
#akashaApp .akb-gal-wrap[data-kind="musique"] .akb-gal > .is-center { transform: scale(1.05) !important; }
#akashaApp .akb-gal-wrap[data-kind="musique"] .mtrack-card.is-center { border-color: rgba(150,180,255,.7); box-shadow: 0 0 0 1px rgba(150,180,255,.35), 0 0 34px rgba(110,150,255,.4), 0 18px 40px -18px #000; }
#akashaApp .akb-gal-wrap[data-kind="noosphere"] .akb-gal { align-items: flex-start; }
#akashaApp .akb-gal:focus-visible > .is-center { outline: 2px solid rgba(241,216,145,.85); outline-offset: 6px; border-radius: 14px; }
/* hors galerie (chargement, état vide) : présentation d'origine */
#akashaApp .akb-gal-wrap.akb-gal-off .akb-gal { display: block !important; padding: 0 !important; -webkit-mask: none; mask: none; cursor: auto; }
#akashaApp .akb-gal-wrap.akb-gal-off .akb-gal-bar, #akashaApp .akb-gal-wrap.akb-gal-off::before { display: none; }
#akashaApp .akb-gal-wrap.akb-gal-off .akb-gal > * { flex: none !important; width: auto !important; transform: none !important; filter: none !important; opacity: 1; }
#akashaApp .akb-gal-wrap.akb-gal-single .akb-gal-arrow, #akashaApp .akb-gal-wrap.akb-gal-single .akb-gal-dots { visibility: hidden; }

/* l'action principale du pupitre */
#akashaApp .akb-gal .akb-cta {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; padding: 8px 18px;
  border-radius: 12px 12px 4px 4px; font: 600 9.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .22em; text-transform: uppercase;
  color: var(--akb-gold-l); background: linear-gradient(180deg, rgba(58,36,112,.6), rgba(16,10,36,.85)); border: 1px solid rgba(224,192,108,.45);
  transition: border-color .3s, box-shadow .3s, color .3s;
}
#akashaApp .akb-gal > .is-center .akb-cta { border-color: rgba(241,216,145,.85); color: #fff3d0; box-shadow: 0 0 16px rgba(var(--akb-glow),.3); }
#akashaApp .akb-gal > :not(.is-center) .akb-cta { opacity: .6; }

/* barre de position : ‹  PUPITRE III — TITRE · ●○○ · 03 / 07  › */
#akashaApp .akb-gal-bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 2px 0 6px; }
#akashaApp .akb-gal-pos { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
#akashaApp .akb-gal-name {
  max-width: min(560px, 64cqw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 9.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .22em; text-transform: uppercase; color: var(--akb-gold-l);
  text-shadow: 0 0 12px rgba(211,174,87,.3);
}
#akashaApp .akb-gal-dots { display: flex; gap: 7px; }
#akashaApp .akb-gal-dots:empty { display: none; }
#akashaApp .akb-gal-dots i { width: 6px; height: 6px; border-radius: 50%; cursor: pointer; background: rgba(211,174,87,.25); border: 1px solid rgba(211,174,87,.45); transition: background .3s, box-shadow .3s, transform .3s; }
#akashaApp .akb-gal-dots i.on { background: var(--akb-gold-l); box-shadow: 0 0 8px rgba(241,216,145,.8); transform: scale(1.25); }
#akashaApp .akb-gal-count { font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .24em; color: var(--text3); }
#akashaApp .akb-gal-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#akashaApp .akb-gal-arrow {
  flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 50%;
  color: var(--akb-gold-l); background: radial-gradient(circle, rgba(58,36,112,.78), rgba(12,8,30,.92) 72%);
  border: 1px solid rgba(211,174,87,.5); box-shadow: 0 0 14px rgba(143,106,216,.3), inset 0 0 0 3px rgba(6,4,18,.4);
  transition: transform .25s var(--akb-ease), box-shadow .25s, border-color .25s, opacity .25s;
}
#akashaApp .akb-gal-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#akashaApp .akb-gal-arrow:hover:not(:disabled), #akashaApp .akb-gal-arrow:focus-visible {
  outline: none; border-color: #f1d891; box-shadow: 0 0 20px rgba(241,216,145,.35), 0 0 30px rgba(143,106,216,.35), inset 0 0 0 3px rgba(6,4,18,.4);
}
#akashaApp .akb-gal-arrow.prev:hover:not(:disabled) { transform: translateX(-2px); }
#akashaApp .akb-gal-arrow.next:hover:not(:disabled) { transform: translateX(2px); }
#akashaApp .akb-gal-arrow:disabled { opacity: .28; cursor: default; }
/* desktop : les flèches se placent de part et d'autre de la galerie */
@media (min-width: 768px) {
  #akashaApp .akb-gal-arrow { position: absolute; top: calc(50% - 52px); transform: translateY(-50%); z-index: 4; width: 50px; height: 50px; }
  #akashaApp .akb-gal-arrow.prev { left: 6px; }
  #akashaApp .akb-gal-arrow.next { right: 6px; }
  #akashaApp .akb-gal-arrow.prev:hover:not(:disabled) { transform: translate(-2px, -50%); }
  #akashaApp .akb-gal-arrow.next:hover:not(:disabled) { transform: translate(2px, -50%); }
  #akashaApp .akb-gal-wrap[data-kind="musique"] .akb-gal-arrow { width: 40px; height: 40px; top: calc(50% - 44px); }
}

/* salles : adaptations du même pupitre */
#panelArticles .akb-gal > .is-center .card-thumb::before { box-shadow: inset 0 1px 0 rgba(241,216,145,.6), 0 18px 24px -10px #000, 0 0 30px rgba(241,216,145,.18); }
#panelVideos .akb-gal > .is-center::after { opacity: 1; }
#panelVideos .akb-gal > :not(.is-center) .card-thumb { animation: none; }
.lib-grid.akb-gal { --akb-plank: calc(var(--akb-gap) / 2); }
#akashaApp .akb-gal-wrap[data-kind="librairie"] .akb-gal { padding-top: 34px !important; }
/* Noosphère (vue liste) : chaque domaine devient une tablette de savoir */
#ckList .ck-list-in:has(.ck-ld-track) { max-width: none; }
#ckList .ck-list-intro { max-width: 760px; margin-left: auto; margin-right: auto; }
#ckList .ck-ld-track .ck-ld {
  padding: 18px 18px 14px; margin: 0; border-radius: 18px 18px 6px 6px;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(176,140,255,.14), transparent 70%), linear-gradient(180deg, rgba(22,15,52,.92), rgba(8,6,22,.95));
  border: 1px solid rgba(211,174,87,.32); box-shadow: inset 0 0 0 4px rgba(6,4,18,.45), 0 18px 34px -22px #000;
}

/* mobile : un pupitre ≈ 86 % de la largeur, le suivant dépasse pour inviter au geste */
@media (max-width: 767px) {
  /* [data-kind] : même poids que les largeurs desktop par salle, donc prioritaire ici */
  #akashaApp .akb-gal-wrap, #akashaApp .akb-gal-wrap[data-kind] { --akb-iw: 84cqw; --akb-gap: 12px; }
  #akashaApp .akb-gal-wrap[data-kind="librairie"] { --akb-iw: 84cqw; }
  #akashaApp .akb-gal-wrap[data-kind="musique"] { --akb-iw: 56cqw; --akb-gap: 12px; }
  #akashaApp .akb-gal { padding-top: 22px !important; padding-bottom: 18px !important; cursor: auto;
    -webkit-mask: none; mask: none; }
  #akashaApp .akb-gal > :not(.is-center) { transform: scale(.94) !important; }
  #akashaApp .akb-gal > .is-center { transform: none !important; }
  #akashaApp .akb-gal-bar { gap: 12px; }
  #akashaApp .akb-gal-arrow { width: 40px; height: 40px; }
  .lib-grid.akb-gal { --akb-plank: 0px; }
}


/* une salle à galerie garde l'essentiel au-dessus des pupitres : titre, onglets, recherche */
#akashaApp.akb-wings .subpanel:has(.akb-gal-wrap:not(.akb-gal-off)) .section-header .section-desc { display: none; }
#akashaApp.akb-wings .subpanel:has(.akb-gal-wrap:not(.akb-gal-off)) .section-header { margin-bottom: 12px; }
#akashaApp.akb-wings .subpanel:has(.akb-gal-wrap:not(.akb-gal-off)) .subtab-bar { margin-bottom: 16px; }
#akashaApp .akb-gal-wrap[data-kind="parchemins"] { --akb-iw: 270px; }
#panelArticles .akb-gal .card-thumb { aspect-ratio: 1 / .86 !important; }
#panelArticles .akb-gal .card-excerpt, #panelVideos .akb-gal .card-excerpt, #panelObjets .akb-gal .card-excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#panelArticles .akb-gal .card-body, #panelVideos .akb-gal .card-body { padding-top: 12px; padding-bottom: 12px; }
#panelArticles .akb-gal .card-footer { margin-top: 8px; padding-top: 7px; }
@media (max-width: 767px) {
  /* onglets de salle : une seule ligne qui défile au doigt */
  #akashaApp.akb-wings .panel .subtab-bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: -6px; margin-right: -6px; padding: 2px 6px 4px; }
  #akashaApp.akb-wings .panel .subtab-bar::-webkit-scrollbar { display: none; }
  #akashaApp.akb-wings .panel .subtab-bar .subtab-btn { flex: none; padding: 8px 14px; }
  #akashaApp.akb-wings .subtab-bar .subtab-btn.subtab-suggest { margin: 0 0 0 10px; }
  #akashaApp.akb-wings .subpanel:has(.akb-gal-wrap:not(.akb-gal-off)) .akb-emblem { display: none; }
  #akashaApp .akb-gal-wrap[data-kind="parchemins"] { --akb-iw: 78cqw; }
  #panelArticles .akb-gal .card-thumb { aspect-ratio: 1 / .78 !important; }
}

/* ═════════════════════════ 14. PROFONDEUR ARCHITECTURALE (v6) ═════════════════════════
   Plans : 1. contenu  2. pupitres / étagères  3. arches / galeries (.akb-far)  4. bibliothèque
   infinie (photo du fond). Le Grand Hall reçoit ses niveaux (ASSETS/akasha-niveaux.svg :
   balcons à balustres, rayonnages qui montent dans l'obscurité, passerelle, escaliers,
   portes éclairées, lumière du noyau). */
.akb-rot-levels {
  left: -4%; right: -4%; top: -6%; height: 84%;
  background: url('ASSETS/akasha-niveaux.svg') center 38% / cover no-repeat;
  opacity: .92;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.akb-rot-wall { opacity: .2; }
.akb-rot-cols { display: none; }
@media (max-width: 760px) { .akb-rot-levels { height: 380px; top: -30px; background-size: auto 100%; } }

/* troisième plan de toutes les salles : galeries et portes éclairées au loin, qui se
   déplacent un peu d'une salle à l'autre (JS : --akb-shift-x / -y) */
.akb-far {
  position: absolute; left: -10%; right: -10%; top: -6%; height: 96%;
  background: url('ASSETS/akasha-niveaux.svg') center 34% / cover no-repeat;
  mix-blend-mode: lighten; opacity: .34; filter: blur(1.1px);
  transform: translate3d(var(--akb-shift-x, 0px), var(--akb-shift-y, 0px), 0) scale(1.06);
  transition: transform .9s var(--akb-ease), opacity .6s ease;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 14%, #000 58%, transparent 92%);
          mask: linear-gradient(180deg, transparent 0%, #000 14%, #000 58%, transparent 92%);
}
#akashaApp[data-akb-room="hall"] .akb-far, #akashaApp[data-akb-room="reseau"] .akb-far, #akashaApp[data-akb-room="nexus"] .akb-far { opacity: 0; }
@media (max-width: 760px) { .akb-far { opacity: .22; filter: none; } }

/* changement de salle : une lumière traverse la galerie, la salle apparaît en fondu (300–500 ms) */
.akb-sweep {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 34%, rgba(241,216,145,.09) 47%, rgba(201,168,255,.12) 53%, transparent 66%) 120% 0 / 260% 100% no-repeat;
}
#akashaApp.akb-entering .akb-sweep { animation: akbSweep .55s ease-out; }
@keyframes akbSweep { 0% { opacity: 0; background-position: 120% 0; } 30% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
#akashaApp.akb-entering .panels-wrap > .panel.active:not(#panelComm):not(#panelConstellations) { animation: akbPanelIn .42s ease both; }
@keyframes akbPanelIn { from { opacity: .25; } to { opacity: 1; } }

/* ═════════════════════════ 15. RECHERCHES : la lentille akashique ═════════════════════════ */
.lib-search input, .musique-search-row input, .mus-searchbar input, #tcgSearch, #floorSearch {
  font-family: "Cormorant Garamond", serif !important; font-size: 16px !important; color: var(--akb-ivory) !important;
  padding-left: 54px !important; min-height: 46px;
  border-radius: 20px 20px 8px 8px !important;
  border: 1px solid rgba(211,174,87,.38) !important;
  background:
    radial-gradient(circle at 27px 50%, rgba(241,216,145,.16) 0 9px, rgba(241,216,145,.6) 9.6px 10.6px, transparent 11.2px),
    radial-gradient(circle at 27px 50%, rgba(201,168,255,.18), transparent 22px),
    linear-gradient(180deg, rgba(24,16,48,.94), rgba(9,6,22,.96)) !important;
  box-shadow: inset 0 0 0 3px rgba(6,4,16,.55), inset 0 0 0 4px rgba(211,174,87,.1), 0 14px 26px -18px #000 !important;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.lib-search input::placeholder, .musique-search-row input::placeholder, .mus-searchbar input::placeholder, #tcgSearch::placeholder, #floorSearch::placeholder {
  color: rgba(233,220,188,.5) !important; font-style: italic;
}
.lib-search input:focus, .musique-search-row input:focus, .mus-searchbar input:focus, #tcgSearch:focus, #floorSearch:focus {
  outline: none; border-color: rgba(241,216,145,.85) !important;
  background:
    radial-gradient(circle at 27px 50%, rgba(255,240,200,.5) 0 9px, #f1d891 9.6px 10.6px, transparent 11.2px),
    radial-gradient(circle at 27px 50%, rgba(201,168,255,.45), transparent 30px),
    linear-gradient(180deg, rgba(30,20,60,.96), rgba(10,7,26,.97)) !important;
  box-shadow: inset 0 0 0 3px rgba(6,4,16,.55), inset 0 0 0 4px rgba(241,216,145,.22), 0 0 26px rgba(201,168,255,.22), 0 14px 26px -18px #000 !important;
}
/* la lentille remplace les anciennes petites icônes */
.lib-search::before, .mus-searchbar .ms-icon { display: none !important; }
.musique-search-row input { min-width: min(520px, 100%); }
/* pied de pupitre sous la lentille */
.lib-search, .mus-searchbar { position: relative; }
.lib-search::after, .mus-searchbar::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 38%; height: 1px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(211,174,87,.5), transparent);
}
/* recherche de l'Inventaire et de la Noosphère : même lentille sur l'icône existante */
.ik-search, .ck-search { border-radius: 20px 20px 8px 8px !important; border-color: rgba(211,174,87,.38) !important; box-shadow: inset 0 0 0 3px rgba(6,4,16,.45), inset 0 0 0 4px rgba(211,174,87,.08) !important; }
.ik-search span, .ck-search span {
  width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 13px !important;
  border: 1px solid rgba(241,216,145,.6); background: radial-gradient(circle, rgba(241,216,145,.16), transparent 70%);
}
.ik-search:focus-within span, .ck-search:focus-within span { box-shadow: 0 0 14px rgba(201,168,255,.5); background: radial-gradient(circle, rgba(255,240,200,.4), transparent 70%); }

/* ═════════════════════════ 16. CHARGEMENTS IMMERSIFS ═════════════════════════
   Plus de « Chargement de… » affiché : un astre qui pulse dans son orbite (texte conservé
   pour les lecteurs d'écran, seulement rendu invisible). Variantes par salle. */
#akashaApp .loader, #contentModal .loader, #formModal .loader {
  position: relative; min-height: 150px; padding: 40px 20px; gap: 0;
  color: transparent !important; font-size: 0 !important; letter-spacing: 0; text-shadow: none;
}
#akashaApp .loader::before, #contentModal .loader::before, #formModal .loader::before {
  content: "" !important; display: block; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6dc 0%, #e6cdfb 22%, #8f6ad8 52%, #3a2470 72%, transparent 74%);
  box-shadow: 0 0 26px rgba(201,168,255,.55), 0 0 60px rgba(143,106,216,.25);
  animation: akbLoadPulse 1.8s ease-in-out infinite !important;
}
#akashaApp .loader::after, #contentModal .loader::after, #formModal .loader::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  border: 1px solid rgba(241,216,145,.18); border-top-color: rgba(241,216,145,.85);
  animation: akbLoadOrbit 2.2s linear infinite;
}
@keyframes akbLoadPulse { 0%,100% { transform: scale(.86); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes akbLoadOrbit { to { transform: rotate(360deg); } }
/* petits chargements en ligne (style="padding:8px 0") : version discrète */
#akashaApp .loader[style*="padding:8px"], #contentModal .loader[style*="padding:8px"] { min-height: 40px; padding: 8px 0 !important; }
#akashaApp .loader[style*="padding:8px"]::before, #contentModal .loader[style*="padding:8px"]::before { width: 14px; height: 14px; }
#akashaApp .loader[style*="padding:8px"]::after, #contentModal .loader[style*="padding:8px"]::after { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
/* Librairie : une étagère fantôme qui apparaît */
#livresGrid .loader::before {
  width: min(420px, 80%); height: 70px; border-radius: 2px; box-shadow: none;
  background:
    linear-gradient(180deg, transparent 0 90%, rgba(196,159,72,.55) 90%),
    repeating-linear-gradient(90deg, rgba(143,106,216,.45) 0 9px, transparent 9px 12px, rgba(241,216,145,.28) 12px 18px, transparent 18px 22px, rgba(90,60,150,.5) 22px 30px, transparent 30px 34px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  animation: akbGhostShelf 1.6s ease-in-out infinite alternate !important;
}
#livresGrid .loader::after { display: none; }
@keyframes akbGhostShelf { from { opacity: .25; } to { opacity: .85; } }
/* Musicothèque : une onde qui court */
#panelMusique .loader::before {
  width: min(360px, 80%); height: 30px; border-radius: 0; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' fill='none' stroke='%23a8c4ff' stroke-width='1.2'%3E%3Cpath d='M0 10c3.3-9 6.7-9 10 0s6.7 9 10 0 6.7-9 10 0 6.7 9 10 0'/%3E%3C/svg%3E") 0 50% / 40px 20px repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  animation: akbWaveLoad 1.2s linear infinite !important;
}
#panelMusique .loader::after { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: rgba(120,160,255,.15); border-top-color: rgba(150,190,255,.8); }
@keyframes akbWaveLoad { to { background-position: -40px 50%; } }
/* Vidéothèque : un cadre de cristal qui s'allume */
#videosGrid .loader::before {
  width: 150px; height: 84px; border-radius: 3px; background: linear-gradient(115deg, rgba(10,14,40,.9) 30%, rgba(200,240,255,.25) 50%, rgba(10,14,40,.9) 70%) 0 0 / 300% 100%;
  box-shadow: inset 0 0 0 1px rgba(200,240,255,.45), 0 0 0 4px rgba(6,6,20,.9), 0 0 0 5px rgba(211,174,87,.35), 0 0 26px rgba(143,220,236,.25);
  animation: akbCrystal 1.6s ease-in-out infinite !important;
}
#videosGrid .loader::after { display: none; }
@keyframes akbCrystal { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ═════════════════════════ 17. LIBRAIRIE : rayonnages remplis ═════════════════════════ */
/* d'autres reliures se serrent autour de chaque ouvrage exposé (décor, derrière la couverture) */
.grimoire-stage::after {
  content: ""; position: absolute; left: -12%; right: -12%; bottom: 0; height: 46%; z-index: 1; pointer-events: none; opacity: .7;
  background:
    repeating-linear-gradient(90deg, #2a1736 0 7px, #12091e 7px 8px, #3a2614 8px 13px, #12091e 13px 14px, #1d1a44 14px 21px, #12091e 21px 22px, #402a52 22px 26px, #12091e 26px 27px, #24143c 27px 35px, #12091e 35px 36px) bottom / 100% 88% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(224,192,108,.45) 9px 10px, transparent 10px 23px, rgba(224,192,108,.35) 23px 24px, transparent 24px 36px) bottom 22% left 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, #2b2252 0 6px, #12091e 6px 7px, #341a2c 7px 14px, #12091e 14px 15px, #18203e 15px 19px, #12091e 19px 20px) bottom / 100% 100% no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 3% 16%, transparent 19% 81%, #000 84% 97%, transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 3% 16%, transparent 19% 81%, #000 84% 97%, transparent 100%);
}
.grimoire:hover .grimoire-stage::after { opacity: .9; }
@media (max-width: 680px) { .lib-grid .grimoire-stage::after { display: none; } }

/* ═════════════════════════ 18. MON INVENTAIRE : vitrines personnelles ═════════════════════════ */
#akashaApp .akb-gal-wrap[data-kind="inventaire"] { --akb-iw: 290px; --akb-glow: 190,150,255; }
#akashaApp .akb-gal-wrap[data-kind="tcg"]        { --akb-iw: 230px; --akb-gap: 30px; --akb-glow: 120,190,255; }
#panelBibliotheque .akb-gal .ik-card {
  border-radius: 16px 16px 6px 6px;
  box-shadow: inset 0 0 0 1px rgba(220,230,255,.12), 0 26px 40px -26px #000, 0 10px 0 -6px rgba(176,138,62,.55);
}
#panelBibliotheque .akb-gal .ik-card.is-center { box-shadow: inset 0 0 0 1px rgba(241,216,145,.4), 0 0 34px var(--halo), 0 26px 40px -26px #000, 0 10px 0 -6px rgba(224,192,108,.85); }
@media (max-width: 767px) {
  #akashaApp .akb-gal-wrap[data-kind="inventaire"] { --akb-iw: 80cqw; }
  #akashaApp .akb-gal-wrap[data-kind="tcg"] { --akb-iw: 62cqw; }
}
/* TCG : les cartes sont suspendues dans la galerie, sous leur lampe */
#panelTcg .akb-gal .ak-card .card-body .akb-cta { margin-top: 10px; }
#panelTcg .akb-gal { padding-top: 40px !important; }

/* ═════════════════════════ 19. LE GRAND HALL EST LA NAVIGATION (v7) ═════════════════════════
   La barre d'onglets du bas est retirée (visuellement : #ak-bottom-nav reste dans le DOM,
   showPanel / akSyncBottomNav continuent d'y écrire sans effet). Ses accès vivent ailleurs :
   Noosphère → logo AKASHA + « ‹ Grand Hall » · Boutiques → porte Librairie (+ onglets de salle)
   · Nexus → porte du Hall · Mon Inventaire → porte (+ pastille « nouveau ») · Succès, Lives →
   sceaux du Hall · Organiser → bouton du pupitre. */
#ak-bottom-nav { display: none !important; }
/* gabarit du Nexus mobile : plus de barre en bas (0,01 px car son code remplace 0 par 62) */
html, html.cc-in-comm, :root { --cc-nav-h: .01px; --cc-shell-bottom: .01px; }
.panels-wrap { padding-bottom: env(safe-area-inset-bottom, 0px); }
/* ce qui se posait au-dessus de la barre redescend */
body #musicPlayerBar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
body #toastContainer { bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important; }
#akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open { bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 767px) {
  #akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open { bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* « ‹ Grand Hall » : un sceau discret dans l'en-tête (pas de barre fixe) */
.akb-topback {
  position: absolute; left: 92px; top: 50%; transform: translateY(-50%); z-index: 11;
  display: none; align-items: center; gap: 8px; padding: 0 12px 0 0; height: 36px; cursor: pointer;
  background: none; border: 0; color: var(--akb-gold-l);
  font: 600 9.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .2em; text-transform: uppercase;
}
#akashaApp:not(.akb-in-hall) .akb-topback { display: inline-flex; }
.akb-tb-seal {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,36,112,.75), rgba(12,8,30,.92) 72%);
  border: 1px solid rgba(211,174,87,.55); box-shadow: 0 0 12px rgba(143,106,216,.3), inset 0 0 0 3px rgba(6,4,18,.4);
  transition: transform .25s var(--akb-ease), box-shadow .25s, border-color .25s;
}
.akb-tb-seal svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.akb-topback em { font-style: normal; text-shadow: 0 0 12px rgba(211,174,87,.35); }
.akb-topback:hover .akb-tb-seal, .akb-topback:focus-visible .akb-tb-seal { transform: translateX(-2px); border-color: #f1d891; box-shadow: 0 0 18px rgba(241,216,145,.35), inset 0 0 0 3px rgba(6,4,18,.4); }
.akb-topback:focus-visible { outline: none; }
.akb-topback:focus-visible em { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) { .akb-topback em { display: none; } }
@media (max-width: 767px) {
  .akb-topback { left: 68px; }
  .akb-tb-seal { width: 32px; height: 32px; }
  #akashaApp:not(.akb-in-hall) .topbar-logo { font-size: 24px !important; letter-spacing: 4px !important; }
}

/* fil d'Ariane : une simple ligne gravée en haut de la salle (plus de barre collante) */
:root { --akb-wb-h: 40px; }
.akb-wingbar {
  position: relative; height: var(--akb-wb-h); padding: 0 24px; background: none; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.akb-wingbar::after { left: 24px; right: 24px; opacity: .35; }
.akb-wb-crumb li { font-size: 9px; }
.akb-wb-tool {
  flex: none; margin-left: auto; height: 30px; padding: 0 14px; cursor: pointer; border-radius: 12px 12px 4px 4px;
  color: var(--akb-gold-l); font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(48,31,96,.62), rgba(16,10,36,.86)); border: 1px solid rgba(224,192,108,.5);
}
.akb-wb-tool[hidden] { display: none; }
@media (max-width: 600px) { .akb-wingbar { padding: 0 14px; } }

/* sceaux du Hall : Succès et Lives */
.akb-hall-seals { position: absolute; right: 26px; top: 22px; z-index: 60; display: flex; gap: 14px; }
.akb-hseal {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--akb-gold-l); font: inherit;
}
.akb-hs-ring {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,36,112,.7), rgba(12,8,30,.92) 72%);
  border: 1px solid rgba(211,174,87,.5); box-shadow: 0 0 14px rgba(143,106,216,.3), inset 0 0 0 3px rgba(6,4,18,.45), inset 0 0 0 4px rgba(211,174,87,.14);
  transition: transform .3s var(--akb-ease), box-shadow .3s, border-color .3s;
}
.akb-hs-ring svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.akb-hseal b { font: 600 8.5px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .2em; text-transform: uppercase; color: var(--akb-ivory); text-shadow: 0 2px 8px #000; }
.akb-hseal:hover .akb-hs-ring, .akb-hseal:focus-visible .akb-hs-ring { transform: translateY(-2px); border-color: #f1d891; box-shadow: 0 0 22px rgba(241,216,145,.35), inset 0 0 0 3px rgba(6,4,18,.45); }
.akb-hseal:focus-visible { outline: none; }
.akb-hseal:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }
.akb-hseal[data-seal="lives"] .akb-hs-ring { color: #ffd2d2; }
@media (max-width: 760px) {
  .akb-hall-seals { position: relative; right: auto; top: auto; justify-content: center; margin: 14px auto 0; order: 1; }
  .akb-rot-head { order: 0; } .akb-hall-sats { order: 1; } .akb-orb { order: 2; } .akb-rot-doors { order: 3; }
}
/* pastille « nouvel objet » sur la porte de Mon Inventaire */
.akb-hdoor.akb-new .akb-hd-seal::after {
  content: ""; position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%;
  background: #f6d98a; box-shadow: 0 0 10px 2px rgba(236,196,100,.9);
}

/* ═════════════════════════ 20. PORTES AKASHIQUES (v8) ═════════════════════════
   Chaque aile a sa silhouette (akasha-bibliotheque.js : SHAPES) — stèle à volutes, oculus
   sur pied, cristal, temple, vitrine, carte, octogone, pupitre… — même famille : cadre d'or
   vieilli, niche profonde éclairée de l'intérieur par la couleur de l'aile, motif gravé,
   médaillon en clé de voûte, socle lumineux. Un filament relie chaque porte à l'astre. */
.akb-hdoor { width: 124px; }
.akb-hdoor::after { top: 112px; left: 18%; right: 18%; height: 14px; }
.akb-hd-portal { position: relative; display: block; width: 88px; height: 123px; margin: 0 auto; }
.akb-hd-svg {
  width: 100%; height: 100%; display: block; overflow: visible;
  filter: drop-shadow(0 16px 12px rgba(0,0,0,.6)) drop-shadow(calc(var(--lx, 0) * -7px) 0 12px rgba(176,140,255,.3));
  transition: filter .45s ease;
}
.akb-hd-svg .frame-back { fill: rgba(9,6,22,.94); }
.akb-hd-svg .frame { fill: none; stroke-width: 2.2; stroke-linejoin: round; transition: stroke-width .4s; }
.akb-hd-svg .frame-in { fill: none; stroke: rgba(241,216,145,.26); stroke-width: .7; transition: stroke .4s; }
.akb-hd-svg .s0 { stop-color: rgb(var(--dc)); stop-opacity: .66; }
.akb-hd-svg .s1 { stop-color: #1b1240; stop-opacity: .95; }
.akb-hd-svg .s2 { stop-color: #04030e; stop-opacity: 1; }
/* lumière qui vient de l'intérieur de la niche, respiration décalée d'une porte à l'autre */
.akb-hd-svg .glow { opacity: .8; animation: akbDoorBreath 6.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.6s); transition: opacity .4s; }
@keyframes akbDoorBreath { 0%,100% { opacity: .68; } 50% { opacity: 1; } }
.akb-hd-svg .rays { fill: none; stroke: rgb(var(--dc)); stroke-opacity: .16; stroke-width: .6; transition: stroke-opacity .4s; }
.akb-hd-svg .motif { fill: none; stroke: rgba(241,216,145,.8); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.akb-hd-svg .motif .thin { stroke: rgba(241,216,145,.48); stroke-width: .7; }
.akb-hd-svg .motif circle:not(.thin) { fill: rgba(241,216,145,.55); }
/* petites particules qui montent dans la niche */
.akb-hd-svg .mote { fill: #fff3d0; opacity: 0; transform-box: fill-box; animation: akbDoorMote 5.5s ease-in infinite; animation-delay: calc(var(--i, 0) * -.9s); }
.akb-hd-svg .mote.m2 { animation-duration: 7s; animation-delay: calc(var(--i, 0) * -.9s - 3s); fill: rgb(var(--dc)); }
@keyframes akbDoorMote { 0% { opacity: 0; transform: translateY(0); } 18% { opacity: .9; } 100% { opacity: 0; transform: translateY(-74px); } }
/* médaillon en clé de voûte */
.akb-hd-svg .key > circle { fill: rgba(12,8,30,.95); stroke: #d8b764; stroke-width: 1; }
.akb-hd-svg .key g * { fill: none; stroke: #f3dc98; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* socle : la porte est posée dans le Hall */
.akb-hd-svg .plinth { fill: rgba(var(--dc), .14); stroke: rgba(224,192,108,.55); stroke-width: .8; }
.akb-hd-svg .plinth-glow { fill: rgba(var(--dc), .2); filter: blur(3px); transition: fill .4s; }

/* plaque : titre noble, sous-titre lisible, état éventuel */
.akb-hd-plate { margin-top: 2px; padding: 3px 8px 5px; border-radius: 12px; background: radial-gradient(ellipse 72% 80% at 50% 50%, rgba(5,3,16,.74), transparent 76%); }
.akb-hd-plate b { font: 600 11px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif !important; letter-spacing: .16em !important; color: var(--akb-ivory); }
.akb-hd-plate small { font-size: 13px !important; color: #d2c7e8 !important; }
.akb-hd-state { display: block; margin-top: 3px; font: 600 8px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #f6d98a; text-shadow: 0 0 10px rgba(246,217,138,.6); }
.akb-hd-state:empty { display: none; }

/* survol / focus : la porte s'éveille, son filament s'allume */
.akb-hdoor:hover .akb-hd-svg, .akb-hdoor:focus-visible .akb-hd-svg {
  filter: drop-shadow(0 18px 14px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(var(--dc), .6)) drop-shadow(0 0 2px rgba(255,236,190,.6));
}
.akb-hdoor:hover .glow, .akb-hdoor:focus-visible .glow { opacity: 1; }
.akb-hdoor:hover .frame, .akb-hdoor:focus-visible .frame { stroke-width: 2.9; }
.akb-hdoor:hover .frame-in, .akb-hdoor:focus-visible .frame-in { stroke: rgba(255,240,200,.6); }
.akb-hdoor:hover .rays, .akb-hdoor:focus-visible .rays { stroke-opacity: .45; }
.akb-hdoor:hover .plinth-glow, .akb-hdoor:focus-visible .plinth-glow { fill: rgba(var(--dc), .45); }
.akb-hdoor:hover .akb-hd-plate b, .akb-hdoor:focus-visible .akb-hd-plate b { color: var(--akb-gold-l); }
/* porte devant soi : la plus présente */
.akb-hdoor.is-front .akb-hd-svg { filter: drop-shadow(0 18px 14px rgba(0,0,0,.6)) drop-shadow(0 0 20px rgba(var(--dc), .5)); }
.akb-hdoor.is-front .plinth-glow { fill: rgba(var(--dc), .42); }
.akb-hdoor.is-front .frame-in { stroke: rgba(255,240,200,.5); }
.akb-hdoor.is-front .akb-hd-plate b { color: var(--akb-gold-l); }
/* l'aile d'où l'on revient : une étoile veille au-dessus */
.akb-hdoor.is-last .akb-hd-portal::before {
  content: "✦"; position: absolute; left: 50%; top: -16px; transform: translateX(-50%); z-index: 2;
  color: #f6e2a0; font-size: 13px; text-shadow: 0 0 10px rgba(246,217,138,.9); animation: akbBreath 3s ease-in-out infinite;
}
.akb-hdoor.is-last .akb-hd-state:empty { display: block; }
.akb-hdoor.is-last .akb-hd-state:empty::before { content: "Dernière aile visitée"; color: rgba(241,216,145,.78); }

/* filaments : l'astre alimente chaque aile */
.akb-hall-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 12; pointer-events: none; overflow: visible; }
.akb-hall-links .lk { opacity: calc(.32 + .5 * var(--d, .5)); transition: opacity .4s; }
.akb-hall-links .lk path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.akb-hall-links .lk .b { stroke: rgba(var(--dc, 201,168,255), .42); stroke-width: .8; }
.akb-hall-links .lk .f { stroke: rgba(255,246,220,.95); stroke-width: 1.6; stroke-dasharray: 2 26; animation: akbLinkFlow 2.8s linear infinite; filter: drop-shadow(0 0 2px rgba(var(--dc, 201,168,255), .9)); }
.akb-hall-links .lk.sat { --dc: 241,216,145; --d: .6; }
.akb-hall-links .lk.front { opacity: .9; }
.akb-hall-links .lk.last .b { stroke-dasharray: 3 4; }
.akb-hall-links .lk.hot { opacity: 1; }
.akb-hall-links .lk.hot .b { stroke-width: 1.4; stroke: rgba(var(--dc, 201,168,255), .8); }
.akb-hall-links .lk.hot .f { animation-duration: 1.4s; }
@keyframes akbLinkFlow { to { stroke-dashoffset: -56; } }

/* satellites de l'astre : Succès et Lives */
.akb-hall-sats { position: absolute; inset: 0; z-index: 56; pointer-events: none; }
.akb-hsat {
  position: absolute; top: 39%; transform: translate(-50%, -50%); pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--akb-gold-l); font: inherit; animation: akbSatFloat 8s ease-in-out infinite;
}
.akb-hsat[data-seal="succes"] { left: 35%; }
.akb-hsat[data-seal="lives"] { left: 65%; animation-delay: -4s; }
@keyframes akbSatFloat { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 5px)); } }
.akb-hs-orb {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255,240,210,.38), rgba(120,88,210,.5) 42%, rgba(14,8,34,.96) 74%);
  border: 1px solid rgba(224,192,108,.6);
  box-shadow: 0 0 18px rgba(201,168,255,.38), inset -6px -8px 14px rgba(0,0,0,.55);
  transition: transform .35s var(--akb-ease), box-shadow .35s, border-color .35s;
}
.akb-hs-orb svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.akb-hsat[data-seal="lives"] .akb-hs-orb { color: #ffd9d9; background: radial-gradient(circle at 38% 32%, rgba(255,226,226,.4), rgba(200,80,120,.42) 42%, rgba(24,8,24,.96) 74%); }
.akb-hsat b { font: 600 9px "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; letter-spacing: .22em; text-transform: uppercase; color: var(--akb-ivory); text-shadow: 0 2px 8px #000; }
.akb-hsat small { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 12px; color: var(--text2); text-shadow: 0 2px 8px #000; margin-top: -2px; }
.akb-hsat:hover .akb-hs-orb, .akb-hsat:focus-visible .akb-hs-orb { transform: scale(1.1); border-color: #f6e2a0; box-shadow: 0 0 26px rgba(241,216,145,.45), inset -6px -8px 14px rgba(0,0,0,.5); }
.akb-hsat:focus-visible { outline: none; }
.akb-hsat:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }

/* mobile : les portes en niches (grille), satellites en rangée sous le titre, sans filaments */
@media (max-width: 760px) {
  .akb-hall-links { display: none; }
  .akb-hall-sats { position: relative; inset: auto; order: 1; display: flex; justify-content: center; gap: 34px; margin: 16px auto 0; pointer-events: auto; }
  .akb-hsat { position: relative; left: auto !important; top: auto; transform: none; animation: none; }
  .akb-hdoor { width: auto; }
  .akb-hd-portal { width: 74px; height: 104px; }
  .akb-hdoor::after { top: 96px; }
  .akb-hd-plate b { font-size: 9.5px !important; letter-spacing: .1em !important; }
  .akb-hd-plate small { font-size: 11.5px !important; }
  /* groupes de 4 portes : 4 colonnes plus compactes (pas de porte orpheline sur une 2e ligne) */
  .akb-hgroup[data-group="savoir"] .akb-hgroup-doors, .akb-hgroup[data-group="boutiques"] .akb-hgroup-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 2px; }
  .akb-hgroup[data-group="savoir"] .akb-hd-portal, .akb-hgroup[data-group="boutiques"] .akb-hd-portal { width: 62px; height: 87px; }
  .akb-hgroup[data-group="savoir"] .akb-hdoor::after, .akb-hgroup[data-group="boutiques"] .akb-hdoor::after { top: 78px; }
  .akb-hgroup[data-group="savoir"] .akb-hd-plate, .akb-hgroup[data-group="boutiques"] .akb-hd-plate { padding: 2px 0 4px; }
  .akb-hgroup[data-group="savoir"] .akb-hd-plate b, .akb-hgroup[data-group="boutiques"] .akb-hd-plate b { font-size: 8px !important; letter-spacing: .04em !important; }
  .akb-hgroup[data-group="savoir"] .akb-hd-plate small, .akb-hgroup[data-group="boutiques"] .akb-hd-plate small { font-size: 10.5px !important; line-height: 1.15; }
}
@media (prefers-reduced-motion: reduce) {
  .akb-hd-svg .glow, .akb-hd-svg .mote, .akb-hall-links .lk .f, .akb-hsat, .akb-hdoor.is-last .akb-hd-portal::before { animation: none !important; }
  .akb-hd-svg .mote { display: none; }
  .akb-hd-svg, .akb-hs-orb { transition: none !important; }
}

/* ═════════════════════════ 21. LE FRONTON (header, v9) ═════════════════════════
   Le haut de page devient le fronton du Grand Hall : bandeau de pierre sombre, corniche
   à denticules, arc de fronton très fin avec deux mini-constellations, inscription AKASHA
   en or ancien éclairée par un halo violet, sous-titre « Bibliothèque akashique », sceau
   AKASHA à gauche, sceau des notifications à droite. Réduit quand on fait défiler une salle
   (JS : .akb-top-compact). Le Nexus mobile garde son en-tête réduit (html.cc-in-comm). */
html:not(.cc-in-comm) #akashaApp .topbar {
  min-height: 92px;
  background:
    radial-gradient(ellipse 34% 120% at 50% 0%, rgba(143,106,216,.2), transparent 70%),
    linear-gradient(180deg, rgba(5,3,16,.96) 0%, rgba(9,6,26,.88) 62%, rgba(9,6,26,.55) 100%) !important;
  transition: min-height .35s var(--akb-ease), padding .35s var(--akb-ease);
}
/* corniche : filet d'or, denticules, filet violet */
#akashaApp .topbar::after {
  height: 7px; bottom: 0;
  background:
    linear-gradient(90deg, transparent, rgba(224,192,108,.75) 18%, rgba(241,216,145,.9) 50%, rgba(224,192,108,.75) 82%, transparent) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(196,159,72,.32) 0 3px, transparent 3px 11px) 0 2px / 100% 3px no-repeat,
    linear-gradient(90deg, transparent, rgba(143,106,216,.55) 25%, rgba(143,106,216,.55) 75%, transparent) bottom / 100% 1px no-repeat;
}
/* clé de voûte : l'étoile au centre de la corniche, d'où tombe la lumière du Hall */
#akashaApp .topbar::before {
  bottom: -5px; font-size: 11px; color: #f6e2a0; opacity: 1;
  text-shadow: 0 0 8px rgba(246,226,160,.9), 0 0 22px rgba(143,106,216,.6);
}

/* l'inscription */
html:not(.cc-in-comm) #akashaApp .topbar-logo {
  font-size: 46px !important; letter-spacing: .2em !important; padding-left: .2em; isolation: isolate;
  background: linear-gradient(180deg, #fff7dc 0%, #f4dd96 30%, #d3ae57 58%, #a8843a 80%, #7a5a22 100%) !important;
  background-size: 100% 100% !important; background-position: 0 0 !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  animation: akLogoGlow 6s ease-in-out infinite !important;
  transition: font-size .35s var(--akb-ease);
}
/* le sous-titre, gravé entre deux filets */
html:not(.cc-in-comm) #akashaApp .topbar-logo span {
  font-family: "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif !important; font-style: normal !important; font-weight: 600 !important;
  font-size: 9.5px !important; letter-spacing: .44em !important; padding-left: .44em; margin-top: 7px !important;
  background: linear-gradient(90deg, #b9a6e8, #f1e6c8 50%, #b9a6e8) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  display: flex !important; align-items: center; justify-content: center; gap: 12px;
  transition: opacity .3s, max-height .35s, margin .35s; max-height: 20px; overflow: visible;
}
html:not(.cc-in-comm) #akashaApp .topbar-logo span::before,
html:not(.cc-in-comm) #akashaApp .topbar-logo span::after {
  content: ""; width: 34px; height: 1px; flex: none;
  background: linear-gradient(90deg, transparent, rgba(224,192,108,.85));
}
html:not(.cc-in-comm) #akashaApp .topbar-logo span::after { background: linear-gradient(90deg, rgba(224,192,108,.85), transparent); }
/* arc du fronton + rayons + deux mini-constellations (SVG très fin) */
html:not(.cc-in-comm) #akashaApp .topbar-logo::before {
  top: -12px; bottom: -4px; width: 560px; left: 50%; transform: translateX(-50%);
  border: 0; border-radius: 0; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 100' fill='none'%3E%3Cpath d='M18 98Q280 -6 542 98' stroke='%23e0c06c' stroke-opacity='.42' stroke-width='.9'/%3E%3Cpath d='M58 98Q280 16 502 98' stroke='%23a98ae8' stroke-opacity='.3' stroke-width='.7' stroke-dasharray='1 5'/%3E%3Cg stroke='%23f1d891' stroke-opacity='.13' stroke-width='.6'%3E%3Cpath d='M280 92L170 26M280 92L220 14M280 92L340 14M280 92L390 26M280 92L120 46M280 92L440 46'/%3E%3C/g%3E%3Cg stroke='%23f1d891' stroke-opacity='.45' stroke-width='.6'%3E%3Cpath d='M44 72L66 60L84 66L98 52'/%3E%3Cpath d='M516 72L494 60L476 66L462 52'/%3E%3C/g%3E%3Cg fill='%23fff3d0'%3E%3Ccircle cx='44' cy='72' r='1.4'/%3E%3Ccircle cx='66' cy='60' r='1.1'/%3E%3Ccircle cx='84' cy='66' r='1.6'/%3E%3Ccircle cx='98' cy='52' r='1.1'/%3E%3Ccircle cx='516' cy='72' r='1.4'/%3E%3Ccircle cx='494' cy='60' r='1.1'/%3E%3Ccircle cx='476' cy='66' r='1.6'/%3E%3Ccircle cx='462' cy='52' r='1.1'/%3E%3C/g%3E%3Cpath d='M280 4l2 4.5 4.5 2-4.5 2-2 4.5-2-4.5-4.5-2 4.5-2z' fill='%23f6e2a0' fill-opacity='.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-mask: none; mask: none; opacity: .95; transition: opacity .35s;
}
/* lumière du Grand Hall derrière les lettres */
html:not(.cc-in-comm) #akashaApp .topbar-logo::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 130%; height: 160%; transform: translate(-50%, -52%); z-index: -1;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(143,106,216,.3) 0%, rgba(110,70,200,.12) 40%, transparent 70%);
  animation: akbBreath 8s ease-in-out infinite;
}

/* le sceau AKASHA (roue de raccourcis, en haut à gauche) */
#ps-akasha-rfab .ps-rfab-btn {
  background: radial-gradient(circle at 40% 32%, rgba(120,80,220,.45), rgba(10,6,26,.98) 66%) !important;
  border: 1px solid rgba(241,216,145,.8) !important;
  animation: akbSealIdle 6s ease-in-out infinite !important;
}
@keyframes akbSealIdle {
  0%,100% { box-shadow: 0 0 0 3px rgba(8,5,20,.9), 0 0 0 4px rgba(224,192,108,.35), 0 0 18px rgba(143,106,216,.4), 0 0 34px rgba(212,168,32,.12); }
  50%     { box-shadow: 0 0 0 3px rgba(8,5,20,.9), 0 0 0 4px rgba(224,192,108,.55), 0 0 24px rgba(143,106,216,.55), 0 0 44px rgba(212,168,32,.2); }
}
/* anneau gradué qui tourne très lentement autour du sceau */
#ps-akasha-rfab::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; pointer-events: none; z-index: 2;
  border: 1px dashed rgba(224,192,108,.32); animation: akbSpinSelf 90s linear infinite;
}
#ps-akasha-rfab.is-open::after { opacity: 0; }

/* le sceau des notifications */
#akashaApp .ak-bell {
  width: 42px; height: 42px; border-radius: 50% !important;
  background: radial-gradient(circle at 40% 32%, rgba(90,60,170,.42), rgba(10,6,26,.96) 68%) !important;
  border: 1px solid rgba(224,192,108,.62) !important;
  box-shadow: 0 0 0 3px rgba(8,5,20,.85), 0 0 0 4px rgba(224,192,108,.22), 0 0 16px rgba(143,106,216,.35);
  filter: none !important;
}
#akashaApp .ak-bell:hover, #akashaApp .ak-bell:focus-visible {
  border-color: #f6e2a0 !important; outline: none;
  box-shadow: 0 0 0 3px rgba(8,5,20,.85), 0 0 0 4px rgba(241,216,145,.45), 0 0 22px rgba(241,216,145,.35);
}
#akashaApp .ak-bell.has-unread { box-shadow: 0 0 0 3px rgba(8,5,20,.85), 0 0 0 4px rgba(241,216,145,.5), 0 0 20px rgba(241,216,145,.4); }
#akashaApp .ak-bell .ak-ico { color: #f3dc98; }

/* en faisant défiler une salle, le fronton se resserre (logo, AKASHA et accès restent) */
html:not(.cc-in-comm) #akashaApp.akb-top-compact .topbar { min-height: 62px; padding-top: calc(6px + env(safe-area-inset-top, 0px)) !important; padding-bottom: 6px !important; }
html:not(.cc-in-comm) #akashaApp.akb-top-compact .topbar-logo { font-size: 30px !important; }
html:not(.cc-in-comm) #akashaApp.akb-top-compact .topbar-logo span { opacity: 0; max-height: 0; margin-top: 0 !important; }
html:not(.cc-in-comm) #akashaApp.akb-top-compact .topbar-logo::before { opacity: .45; }

/* mobile : l'inscription reste, les décors se simplifient */
@media (max-width: 767px) {
  html:not(.cc-in-comm) #akashaApp .topbar { min-height: 80px; }
  html:not(.cc-in-comm) #akashaApp .topbar-logo { font-size: 30px !important; letter-spacing: .16em !important; padding-left: .16em; }
  html:not(.cc-in-comm) #akashaApp:not(.akb-in-hall) .topbar-logo { font-size: 24px !important; }
  html:not(.cc-in-comm) #akashaApp .topbar-logo span { font-size: 7.5px !important; letter-spacing: .3em !important; padding-left: .3em; margin-top: 5px !important; gap: 0; }
  html:not(.cc-in-comm) #akashaApp .topbar-logo span::before, html:not(.cc-in-comm) #akashaApp .topbar-logo span::after { display: none; }
  html:not(.cc-in-comm) #akashaApp .topbar-logo::before { width: 300px; top: -8px; opacity: .7; }
  html:not(.cc-in-comm) #akashaApp.akb-top-compact .topbar { min-height: 56px; }
  html:not(.cc-in-comm) #akashaApp.akb-top-compact .topbar-logo { font-size: 22px !important; }
  #akashaApp .ak-bell { width: 38px; height: 38px; }
  #ps-akasha-rfab::after { inset: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.cc-in-comm) #akashaApp .topbar-logo, #akashaApp .topbar-logo::after, #ps-akasha-rfab .ps-rfab-btn, #ps-akasha-rfab::after { animation: none !important; }
  html:not(.cc-in-comm) #akashaApp .topbar, #akashaApp .topbar-logo, #akashaApp .topbar-logo span { transition: none !important; }
}

/* ═════════════════════════ 22. PRIX DES BOUTIQUES : € + équivalent STARDUST ═════════════════════════
   Cartes de la Librairie et des Artefacts : prix en € lisible (plaque dorée) et, dessous, le prix ✦ réel
   de l'article (stardust_price, même valeur que l'index et que le débit serveur). JS : _sdEqHtml(). */
#akashaApp .ak-price {
  display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 10px; text-align: center; align-self: center;
  padding: 8px 14px 9px; border-radius: 12px 12px 4px 4px; min-width: 64%;
  background: radial-gradient(ellipse 80% 90% at 50% 0%, rgba(224,192,108,.12), transparent 72%), rgba(8,5,20,.55);
  border: 1px solid rgba(224,192,108,.28); box-shadow: inset 0 0 0 3px rgba(6,4,16,.35);
}
#akashaApp .ak-price .grimoire-access,
#akashaApp .ak-price .card-price {
  margin: 0; font-family: "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; font-weight: 600; font-size: 21px; letter-spacing: .04em; text-transform: none;
  line-height: 1.1; color: #f4dd96; text-shadow: 0 0 14px rgba(224,192,108,.35); width: 100%; text-align: center;
}
#akashaApp .ak-price-sd {
  display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap;
  font-family: "Cinzel", "Cinzel Fallback", "Cinzel Fallback A", serif; font-size: 13px; line-height: 1.2; color: #d9cdf5;
}
#akashaApp .ak-price-sd b { font-weight: 700; font-size: 16px; color: #e8dcff; text-shadow: 0 0 12px rgba(169,138,232,.5); }
#akashaApp .ak-price-sd .sd-u, #akashaApp .ak-price-sd .sdm-u { font-size: 15px; }
#akashaApp .ak-psd-or { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 13px; color: var(--text3, #9a8fb8); }
#akashaApp .ak-psd-u { font-size: 9px; letter-spacing: .2em; color: #b9a6e8; }
/* 21/11 : prix cliquables sur la carte d'étagère (€ → paiement, STARDUST → fiche d'achat) */
#akashaApp button.ak-pay { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 2px 8px; margin: 0; cursor: pointer; border-radius: 8px; transition: background .2s, box-shadow .2s; }
#akashaApp button.ak-pay:hover { background: rgba(224,192,108,.12); box-shadow: 0 0 0 1px rgba(224,192,108,.35); }
#akashaApp button.ak-pay-sd:hover { background: rgba(169,138,232,.14); box-shadow: 0 0 0 1px rgba(169,138,232,.4); }
#akashaApp button.ak-pay:focus-visible { outline: 2px solid #f4dd96; outline-offset: 2px; }
#akashaApp .ak-price-sd.is-incl { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #f6d98a; text-shadow: 0 0 10px rgba(246,217,138,.4); }
/* mobile : plaque plus compacte */
@media (max-width: 760px) {
  #akashaApp .lib-grid .ak-price { min-width: 0; padding: 6px 10px 7px; }
  #akashaApp .ak-price .grimoire-access, #akashaApp .ak-price .card-price { font-size: 18px; }
}
/* fiche détaillée : prix plus présent, bouton STARDUST avec le montant mis en valeur */
#contentModal .arch-price, #contentModal .modal-price { font-size: 32px; font-weight: 600; color: #f4dd96; }
#contentModal #productStardustBtn { font-size: 15px; }
@media (max-width: 767px) { #contentModal .arch-price, #contentModal .modal-price { font-size: 27px; } }

/* ═════════════════════════ 13. MOBILE & ACCESSIBILITÉ ═════════════════════════ */
@media (max-width: 767px) {
  .akb-dust.d2, .akb-arcade::after { display: none; }
  .akb-arcade { top: 70px; width: 118vw; }
  .akb-floor { height: 34%; }
  .section-header::after { height: 120px; }
  #panelVideos .card-grid { gap: 34px 18px; }
  #panelVideos .ak-card::after { top: -26px; height: 34px; }
  #panelBibliotheque #invRoot { padding: 18px 10px 22px; }
}
@media (max-width: 600px) {
  .akb-portal { --pw: min(94vw, 60vh); }
  .akb-intro-depth { opacity: .14; }
}

@media (prefers-reduced-motion: reduce) {
  .akb-intro-depth { animation: none; opacity: .2; }
  .akb-portal { animation: none; opacity: 1; }
  .akb-pf-energy, .akb-pf-key, .akb-gate::after,
  .akb-hall::before, .akb-dust, .akb-emblem::before, .ck-stage::before, .ck-stage::after,
  .akb-waves path, #panelVideos .ak-card .card-thumb,
  .grimoire:has(.grimoire-format.is-num) .grimoire-cover::after,
  .mtrack-card:hover .mtrack-cover::after, .mtrack-card.is-playing .mtrack-cover::after { animation: none !important; }
  .akb-dust { display: none; }
  .akb-rot-beam, .akb-rot-mist, .akb-orb, .akb-orb-halo, .akb-orb-rays, .akb-orb-geo, .akb-orb-neb, .akb-orb-stars, .akb-orb-fil,
  .akb-orb-fil *, .akb-orb-heart, .akb-orb-rings i, .akb-orb-motes i, .akb-rotunda::before,
  #panelEtages .chakra-hall::after, #musicPlayerBar.akb-playing .mpb-cover,
  #akashaApp[data-akb-room="musique"] ~ #musicPlayerBar.open.akb-playing::before { animation: none !important; }
  #akashaApp.akb-entering .akb-hdoor, #akashaApp.akb-entering .akb-orb,
  #akashaApp.akb-entering #panelEtages .chakra-hall .chakra-col { animation: none !important; }
  .akb-hdoor, .akb-hd-arch, .akb-hd-arch::after, .akb-rot-turn button { transition: none !important; }
  #akashaApp .akb-gal > *, #akashaApp .akb-gal-arrow, #akashaApp .akb-gal-dots i { transition: none !important; }
  .akb-far { transition: none; }
  #akashaApp.akb-entering .akb-sweep, #akashaApp.akb-entering .panels-wrap > .panel.active { animation: none !important; }
  #akashaApp .loader::before, #akashaApp .loader::after, #contentModal .loader::before, #contentModal .loader::after,
  #formModal .loader::before, #formModal .loader::after { animation: none !important; }
  .akb-door, .akb-gate-hall,
  #panelVideos .ak-card .card-thumb::after, .grimoire-stage::before, .grimoire-shelf::after { transition: none !important; }
  #akashaIntro.intro-leaving .akb-door { transition: none; }
  #akashaIntro .intro-sacred-wrap { opacity: .22; }
  #akashaApp.akb-entering .section-header,
  #akashaApp.akb-entering .ck-title { animation: none !important; }
}

/* ═════════════════════════ ARRIVÉE DANS UNE SALLE : LES CONTENUS D'ABORD (2026-10-07) ═════════════════════════
   La barre d'aile nomme déjà la salle : l'en-tête se réduit à son titre (sans emblème, surtitre, devise ni
   séparateur) pour que les parchemins, vidéos, étages… soient visibles dès l'arrivée, sans défiler. */
#akashaApp.akb-in-wing .panels-wrap > .panel.active { padding-top: 14px; }
#akashaApp.akb-in-wing .panel .section-header { margin-bottom: 12px; padding-top: 0; }
#akashaApp.akb-in-wing .panel .section-header .akb-emblem,
#akashaApp.akb-in-wing .panel .section-header .section-eyebrow,
#akashaApp.akb-in-wing .panel .section-header .section-desc,
#akashaApp.akb-in-wing .panel .section-header .section-sep { display: none !important; }
#akashaApp.akb-in-wing .panel .section-title { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 0; }
#akashaApp.akb-in-wing .panel .subtab-bar { margin-bottom: 14px; }
#akashaApp.akb-in-wing #chakraHall > .section-desc { margin: 0 0 12px !important; font-size: 15px !important; }
@media (max-width: 767px) {
  #akashaApp.akb-in-wing .panels-wrap > .panel.active { padding-top: 10px; }
  #akashaApp.akb-in-wing .panel .section-title { font-size: 19px; letter-spacing: 2px; }
}
/* AUREA : le temple et le grand titre font doublon avec l'en-tête de salle → le solde et le marché remontent */
#akashaApp.akb-in-wing #panelEmporium .emp-hero-temple,
#akashaApp.akb-in-wing #panelEmporium .emp-hero-aura,
#akashaApp.akb-in-wing #panelEmporium .emp-hero-orn,
#akashaApp.akb-in-wing #panelEmporium .emp-hero-title { display: none !important; }
#akashaApp.akb-in-wing #panelEmporium .emp-hero { padding-top: 12px; padding-bottom: 12px; }
#akashaApp.akb-in-wing #panelEmporium .emp-hero-side { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; flex-basis: auto; }
#akashaApp.akb-in-wing #panelEmporium .emp-balance-card { margin: 0; min-width: 0; flex: 0 1 auto; }
@media (max-width: 760px) { #akashaApp.akb-in-wing #panelEmporium .emp-hero-side { flex-wrap: wrap; } }

/* ── 2026-10-14 : Cubes de Metatron aux extrémités du fronton (décor, jamais cliquable) ── */
#akashaApp .topbar .akb-metatron {
  position: absolute; top: 50%; width: 84px; height: 84px; margin-top: -42px; pointer-events: none; z-index: 1;
  opacity: .62; filter: drop-shadow(0 0 6px rgba(143,106,216,.45));
  transition: opacity .35s var(--akb-ease), transform .35s var(--akb-ease);
}
#akashaApp .topbar .akb-metatron-l { left: 6px; }
#akashaApp .topbar .akb-metatron-r { right: 6px; }
#akashaApp .topbar .akb-metatron svg { width: 100%; height: 100%; overflow: visible; animation: akbMetatronSpin 160s linear infinite; }
#akashaApp .topbar .akb-metatron-r svg { animation-direction: reverse; }
#akashaApp .topbar .akb-metatron .akb-mt-lines path { fill: none; stroke: #e0c06c; stroke-opacity: .55; stroke-width: .45; }
#akashaApp .topbar .akb-metatron .akb-mt-circles circle { fill: none; stroke: #f1d891; stroke-opacity: .5; stroke-width: .7; }
#akashaApp .topbar .akb-metatron .akb-mt-core { fill: #fff7dc; opacity: .95; filter: drop-shadow(0 0 4px rgba(246,226,160,.9)); }
@keyframes akbMetatronSpin { to { transform: rotate(360deg); } }
/* fronton resserré, chat mobile plein écran, petits écrans : les cubes s'effacent */
#akashaApp.akb-top-compact .topbar .akb-metatron { opacity: .5; transform: scale(.72); }   /* 15/10 : on les garde, plus petits, fronton resserré */
html.cc-in-comm #akashaApp .topbar .akb-metatron { opacity: 0; }
@media (max-width: 1100px) { #akashaApp .topbar .akb-metatron { width: 60px; height: 60px; margin-top: -30px; } }
/* 15/10 : sur téléphone les cubes restent (demande), réduits et calés aux bords, loin du titre */
@media (max-width: 860px) { #akashaApp .topbar .akb-metatron { width: 44px; height: 44px; margin-top: -22px; opacity: .55; } #akashaApp .topbar .akb-metatron-l { left: 4px; } #akashaApp .topbar .akb-metatron-r { right: 4px; } }
@media (max-width: 340px) { #akashaApp .topbar .akb-metatron { display: none; } }
/* 15/10 : sous-titre replié du fronton resserré — ne déborde plus sous « AKASHA » */
html:not(.cc-in-comm) #akashaApp.akb-top-compact .topbar-logo span { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { #akashaApp .topbar .akb-metatron svg { animation: none; } }

/* ═════════════════════════ 23. TÉLÉPHONE : allègement graphique (17/10) ═════════════════════════
   Sur téléphone (appli Android comprise), le Grand Hall et la Musicothèque clignotaient au défilement :
   blocs entiers qui disparaissent, tuiles vides. Cause mesurée dans la WebView : ~180 calques GPU
   (≈ 20 écrans de mémoire graphique) — sol en 3D de 2 300 px, file d'attente musicale hors écran
   mais dessinée, poussière animée, modes de fusion « screen », lumières qui respirent derrière le
   contenu (chaque élément posé dessus devient un calque). Ici : même décor, mais figé ou aplati
   là où ça coûte ; l'ordinateur ne change pas. Résultat mesuré : Hall ≈ 9,5 écrans, Musicothèque −27 %. */
@media (hover: none) and (pointer: coarse), (max-width: 760px) {
  #musicQueuePanel { backdrop-filter: none; -webkit-backdrop-filter: none; transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear .35s; }
  #musicQueuePanel:not(.open) { visibility: hidden; }
  #musicQueuePanel.open { visibility: visible; transition-delay: 0s; }
  .light-rays { animation: none; }
  .akb-dust { display: none; }
  #akashaApp[data-akb-room="hall"] .akb-far, #akashaApp[data-akb-room="reseau"] .akb-far, #akashaApp[data-akb-room="nexus"] .akb-far { display: none; }
  .akb-far { mix-blend-mode: normal; filter: none; transform: translate(var(--akb-shift-x, 0px), var(--akb-shift-y, 0px)) scale(1.06); }
  #akashaApp:not(.akb-entering) .akb-sweep { display: none; }
  .akb-rotunda { isolation: auto; }
  .akb-rot-floor { aspect-ratio: auto; height: 228px; transform: translate(-50%, -50%); background-size: 100% 100%, 100% 100%; }
  .akb-rot-mist, .akb-rot-beam, .akb-hall::before { animation: none; }
  .akb-rotunda::before { mix-blend-mode: normal; animation: none; opacity: .8; }
  .akb-orb-halo { inset: -55%; mix-blend-mode: normal; opacity: .8; animation: none; }
  .akb-orb-rays { mix-blend-mode: normal; animation: none; opacity: .4; }
  .akb-orb-geo { animation: none; }
  .akb-orb-core { isolation: auto; box-shadow: 0 0 34px rgba(201,168,255,.45), inset 0 0 0 1px rgba(200,230,255,.12), inset -22px -28px 56px rgba(3,1,14,.85), inset 12px 14px 34px rgba(150,220,255,.16); }
  .akb-orb-neb { mix-blend-mode: normal; filter: none; opacity: .75; }
  .akb-orb-fil, .akb-orb-heart { mix-blend-mode: normal; }
  .akb-orb-stars.s2 { animation: akbSpinSelf 160s linear infinite reverse; }
  .akb-orb-motes { display: none; }
}

/* ═══ v3 (2026-10-17) — modules regroupés ═══
   SAVOIR : la salle du Codex montre 7 Étages · Parchemins · Vidéos (l'onglet Musicothèque, qui a sa propre
   porte, y est masqué) ; dans la Musicothèque, pas de barre d'onglets du Codex. */
#akashaApp.akb-wings:not([data-akb-room="musique"]) #panelCodex .subtab-bar .subtab-btn[data-sub="musique"] { display: none; }
#akashaApp.akb-wings[data-akb-room="musique"] #panelCodex.noo-music .subtab-bar { display: none !important; }
/* Mon Inventaire : alcôves « Ton pupitre » et « Artefacts » */
.akb-inv-alcoves { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto 22px; padding: 0 12px; }
.akb-inv-alc { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 16px 16px 6px 6px; background: linear-gradient(180deg, rgba(30,20,62,.82), rgba(12,8,28,.9));
  border: 1px solid rgba(224,192,108,.38); color: var(--akb-ivory, #f3eee4); transition: border-color .25s ease, transform .25s ease; }
.akb-inv-alc:hover, .akb-inv-alc:focus-visible { border-color: rgba(241,216,145,.8); transform: translateY(-2px); }
.akb-inv-ico { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(224,192,108,.45); color: var(--akb-gold-l, #f1d891); background: rgba(8,6,20,.6); }
.akb-inv-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.akb-inv-alc b { font: 700 13px "Cinzel", "Cinzel Fallback", serif; letter-spacing: .14em; text-transform: uppercase; color: var(--akb-gold-l, #f1d891); }
.akb-inv-alc small { font-size: 14px; color: var(--text3, #b8aed4); line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .akb-inv-alc { transition: none; } .akb-inv-alc:hover { transform: none; } }

/* v3 : retour « ‹ Mon Inventaire » depuis le pupitre et les artefacts */
.akb-wb-back[hidden] { display: none !important; }

/* v3 — Grand Hall sur téléphone : 7 portes en rangées centrées (3 · 2 · 2), plus de trou à droite,
   et la dernière rangée (Mon Inventaire, Nexus) n'est plus cachée par le dock */
@media (max-width: 760px) {
  .akb-hgroup .akb-hgroup-doors,
  .akb-hgroup[data-group="savoir"] .akb-hgroup-doors, .akb-hgroup[data-group="boutiques"] .akb-hgroup-doors {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px;
  }
  .akb-hgroup .akb-hdoor { flex: 0 0 30%; max-width: 132px; }
  .akb-hgroup[data-group="savoir"] .akb-hd-portal, .akb-hgroup[data-group="boutiques"] .akb-hd-portal { width: 74px; height: 104px; }
  .akb-hgroup[data-group="savoir"] .akb-hdoor::after, .akb-hgroup[data-group="boutiques"] .akb-hdoor::after { top: 96px; }
  .akb-hgroup[data-group="savoir"] .akb-hd-plate b, .akb-hgroup[data-group="boutiques"] .akb-hd-plate b { font-size: 9.5px !important; letter-spacing: .1em !important; }
  .akb-hgroup[data-group="savoir"] .akb-hd-plate small, .akb-hgroup[data-group="boutiques"] .akb-hd-plate small { font-size: 11.5px !important; line-height: 1.2; }
  .akb-rot-doors { padding-bottom: calc(var(--ps-bottomnav-h, 78px) + 48px); }
}

/* 2026-10-17 — CORRECTIF « vide en haut des salles » (compte connecté, pupitre vide) :
   #panelHome reçoit la classe .akd-empty (pupitre vide), dont la règle générique `.akd-empty { display:flex }`
   (prévue pour les messages des modules) gardait le Grand Hall affiché, invisible, AU-DESSUS de chaque salle
   (683 px mesurés à 1920×911 sur les Parchemins, les 7 Étages et la Musicothèque). Une salle inactive reste cachée. */
.panels-wrap > .panel.akd-empty:not(.active) { display: none !important; }

/* 2026-10-17 — téléphone (y compris grande taille de texte Android) */
/* 1. Membres & Amis : les boutons Suivre / Ami / MP passent SOUS le nom (ils écrasaient la colonne du nom :
      les badges ADMIN / MOD / POLARIS débordaient sous les boutons) */
@media (max-width: 640px) {
  .member-card { flex-wrap: wrap; align-items: flex-start; padding: 12px 16px; row-gap: 10px; }
  .member-card-info { flex: 1 1 0; }
  .member-card-name { overflow-wrap: anywhere; }
  .member-card-actions { flex: 1 1 100%; flex-wrap: wrap; padding-left: 54px; gap: 8px; }
  .member-card-actions .member-action-btn { min-height: 36px; }
  .friend-req-card { flex-wrap: wrap; padding: 12px 16px; }
  .friend-req-card-name { flex: 1 1 100%; overflow-wrap: anywhere; }
}
/* 2. En-tête : la flèche « ‹ Grand Hall » prend la place du Cube de Metatron de gauche (elle recouvrait « AKASHA ») */
@media (max-width: 767px) {
  .akb-topback { left: 10px; }
  #akashaApp:not(.akb-in-hall) .topbar .akb-metatron-l { opacity: 0; }
  #akashaApp:not(.akb-in-hall) .topbar-logo { font-size: clamp(19px, 6.2vw, 24px) !important; letter-spacing: 3px !important; }
}
@media (max-width: 640px) {
  .members-tabs { display: flex; gap: 6px; width: 100%; box-sizing: border-box; align-self: stretch; padding-left: 12px !important; padding-right: 12px !important; }
  .members-tab { flex: 1 1 0 !important; min-width: 0; padding: 7px 2px !important; text-align: center; letter-spacing: .5px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── Web 3.0 retiré (20/10) : #panelWeb3 n'est plus que la salle AUREA (marché + coffres) ──
   pas de barre Librairie · Objets · TCG · Web 3.0, pas de titre « Web 3.0 », pas d'onglets NFT (Ma progression, Cartes) ;
   ce qu'on possède est dans le pupitre / Mon Inventaire */
#panelWeb3 > .subtab-bar,   /* les deux barres : il ne reste que le marché AUREA (Coffres → Librairie, 20/10) */
#panelWeb3 > .section-header,
#web3HubTab,
#web3NftTab,
#web3CoffresTab { display: none !important; }   /* Coffres : dans la Librairie (20/10) */
