/* difrecords — « Hyperespace » (2026-10-27, docs §54) : interface plus belle et plus « haute technologie ».
   Niveau d'effets (Réglages › Apparence) : html.fx-rich = Riches ou Hyperespace ; html.fx-hyper = Hyperespace seulement. « Calmes » = comme avant.
   Habillages : html[data-hab=cockpit|holo] (ignorés avec le thème Fallout). Couleurs du jour : variables posées par hyper.js.
   n° 1 Cockpit · 2 Hologramme · 3 couleurs du jour · 5 bordures d'énergie · 6 matière premium · 7 profondeur 3D · 8 démarrage · 9 compteurs
   11 serveur 3D · 12 pouls · 15 tuiles vivantes · 16 bandeau · 37 Milo 3D · 43 Films · 44 Bibliothèque 3D · 45 Maison 3D */

@property --hy-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --hy-cyan: #22e3ff; --hy-vio: #a78bfa; --hy-pink: #f472b6; --hy-glow: color-mix(in srgb, var(--acc) 55%, transparent); }
:root { transition: --acc .8s; }

/* ============================================================ 1 · habillage « Cockpit » */
:root[data-hab="cockpit"]:not([data-skin]) {
  --bg: #020812; --panel: #030b19; --card: #061326; --card2: #08182f; --card3: #050f20; --line: #0d3150; --line2: #13466f;
  --txt: #d9f4ff; --mut: #6f9fbf; --hover: #0a1d38; --btn: #0a2240; --track: #0b2238; --inset: #040d1c;
}
:root[data-hab="cockpit"]:not([data-skin]) body {
  background:
    linear-gradient(rgba(34, 227, 255, .035) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(34, 227, 255, .035) 1px, transparent 1px) 0 0 / 28px 100%,
    radial-gradient(1200px 700px at 70% -10%, #0b2a4a 0%, transparent 60%), var(--bg);
}
:root[data-hab="cockpit"]:not([data-skin]) #page .card {
  border-radius: 4px; border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--line));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 6%, var(--card)), var(--card));
  box-shadow: inset 0 0 0 1px rgba(34, 227, 255, .04), inset 0 1px 0 rgba(34, 227, 255, .12);
}
:root[data-hab="cockpit"]:not([data-skin]) #page .card::after {
  content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: .55;
  background:
    linear-gradient(var(--acc), var(--acc)) 0 0 / 12px 1.5px, linear-gradient(var(--acc), var(--acc)) 0 0 / 1.5px 12px,
    linear-gradient(var(--acc), var(--acc)) 100% 100% / 12px 1.5px, linear-gradient(var(--acc), var(--acc)) 100% 100% / 1.5px 12px;
  background-repeat: no-repeat;
}
:root[data-hab="cockpit"]:not([data-skin]) #page .card h3,
:root[data-hab="cockpit"]:not([data-skin]) .head h1 { text-transform: uppercase; letter-spacing: .12em; font-family: "Rajdhani", "Orbitron", "Eurostile", "Bahnschrift", "DIN Alternate", system-ui, sans-serif; }
:root[data-hab="cockpit"]:not([data-skin]) .head h1 { text-shadow: 0 0 18px var(--hy-glow); }
:root[data-hab="cockpit"]:not([data-skin]) #page .card h3 { color: var(--acc); font-size: 13px; }
:root[data-hab="cockpit"]:not([data-skin]) .btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
:root[data-hab="cockpit"]:not([data-skin]) .btn.pri { box-shadow: 0 0 18px var(--hy-glow); }
:root[data-hab="cockpit"]:not([data-skin]) .big, :root[data-hab="cockpit"]:not([data-skin]) .gauge span { font-variant-numeric: tabular-nums; text-shadow: 0 0 12px var(--hy-glow); }
:root[data-hab="cockpit"]:not([data-skin]) .side, :root[data-hab="cockpit"]:not([data-skin]) aside { border-right: 1px solid color-mix(in srgb, var(--acc) 25%, var(--line)); }
:root[data-hab="cockpit"]:not([data-skin]) .nav.on { box-shadow: inset 3px 0 0 var(--acc), 0 0 22px -6px var(--hy-glow); }

/* ============================================================ 2 · habillage « Hologramme » */
:root[data-hab="holo"]:not([data-skin]) {
  --bg: #05040f; --panel: #0a0820; --card: #110e2c; --card2: #161238; --card3: #0d0b24; --line: #2a2360; --line2: #3a3180; --txt: #efeaff; --mut: #a29cc8;
}
:root[data-hab="holo"]:not([data-skin]) body {
  background: radial-gradient(900px 600px at 15% 10%, #2a1460 0%, transparent 60%), radial-gradient(900px 700px at 90% 80%, #0b3a5c 0%, transparent 60%), var(--bg);
}
:root[data-hab="holo"]:not([data-skin]) #page .card {
  background: linear-gradient(135deg, rgba(167, 139, 250, .10), rgba(34, 227, 255, .06) 50%, rgba(244, 114, 182, .08)), color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid transparent; border-radius: 18px;
  background-clip: padding-box; box-shadow: 0 0 0 1px rgba(167, 139, 250, .25), 0 0 30px -10px rgba(34, 227, 255, .35), inset 0 0 30px -18px rgba(244, 114, 182, .4);
}
:root[data-hab="holo"]:not([data-skin]) #page .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
}
:root[data-hab="holo"]:not([data-skin]) .head h1 {
  background: linear-gradient(90deg, #c4b5fd, #67e8f9, #f9a8d4, #c4b5fd); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root.fx-rich[data-hab="holo"]:not([data-skin]) .head h1 { animation: hyShimmer 9s linear infinite; }
:root[data-hab="holo"]:not([data-skin]) .btn.pri { background: linear-gradient(90deg, #8b5cf6, #22d3ee); box-shadow: 0 0 22px -4px rgba(139, 92, 246, .7); }
:root[data-hab="holo"]:not([data-skin]) #page .card h3 { text-shadow: 0 0 10px rgba(167, 139, 250, .5); }
@keyframes hyShimmer { to { background-position: 300% 0; } }

/* ============================================================ 6 · matière premium (Riches / Hyperespace) */
:root.fx-rich:not([data-skin]):not([data-hab="cockpit"]) #page .card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .03), 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px -14px rgba(0, 0, 0, .65), 0 30px 60px -40px color-mix(in srgb, var(--acc) 50%, transparent);
}
:root.fx-rich:not([data-skin]):not([data-hab]) #page .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root.fx-rich #page .card { position: relative; }

/* ============================================================ 5 · bordures d'énergie (cartes qui travaillent) */
:root.fx-rich:not([data-skin]) #page .card:is(:has(i.live), .hy-work) {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              conic-gradient(from var(--hy-a), transparent 0 62%, color-mix(in srgb, var(--acc) 60%, transparent) 78%, var(--acc2) 90%, #fff 94%, transparent 97%) border-box;
  animation: hyEnergy 3.2s linear infinite;
}
:root.fx-hyper:not([data-skin]) #page .card:is(:has(i.live), .hy-work) { box-shadow: 0 0 34px -10px var(--hy-glow); }
@keyframes hyEnergy { to { --hy-a: 360deg; } }

/* ============================================================ 7 · profondeur 3D (inclinaison) */
:root.fx-rich #page .card.hy-tilt { transition: transform .18s ease-out, box-shadow .18s; will-change: transform; }
:root.fx-rich #page .card.hy-tilt-on { box-shadow: 0 22px 45px -20px rgba(0, 0, 0, .7), 0 0 0 1px color-mix(in srgb, var(--acc) 25%, transparent); }

/* ============================================================ 8 · démarrage cinématique */
#hyBoot { position: fixed; inset: 0; z-index: 99999; background: radial-gradient(circle at 50% 45%, #0b1730, #01030a 70%); display: grid; place-items: center; cursor: pointer; transition: opacity .7s, filter .7s; }
#hyBoot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#hyBoot .hb-skip { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #8aa4c8; font: 600 12px system-ui; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
#hyBoot.out { opacity: 0; filter: blur(12px); pointer-events: none; }

/* ============================================================ 9 · compteurs mécaniques */
.hy-roll { animation: hyRoll .5s cubic-bezier(.2, 1.4, .4, 1); font-variant-numeric: tabular-nums; }   /* pas de changement d'affichage : la hauteur ne bouge pas */
@keyframes hyRoll { 0% { transform: translateY(-45%); opacity: .2; filter: blur(2px); } 100% { transform: none; opacity: 1; filter: none; } }

/* ============================================================ 11 · 12 · le serveur en 3D et son pouls */
.hy-hero { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 18px; align-items: center; overflow: hidden; }
@media (max-width: 760px) { .hy-hero { grid-template-columns: 1fr; } }
.hy-stage { position: relative; height: 230px; perspective: 900px; display: grid; place-items: center; }
.hy-floor { position: absolute; bottom: 18px; left: 50%; width: 240px; height: 60px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hy-heat, var(--acc)) 55%, transparent), transparent); filter: blur(6px); opacity: .8; transition: background 1s; }
.hy-pc { position: relative; width: 10px; height: 10px; transform-style: preserve-3d; transform: translateY(10px) rotateX(-20deg) rotateY(-30deg); }
:root.fx-rich .hy-pc { animation: hyTurn 16s ease-in-out infinite; }
@keyframes hyTurn { 0%, 100% { transform: translateY(10px) rotateX(-20deg) rotateY(-34deg); } 50% { transform: translateY(10px) rotateX(-14deg) rotateY(22deg); } }
.hy-pc > div { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
/* clavier : 200 × 130, couché (plan y = 60), de l'arrière (z = −65) à l'avant (z = +65) */
.hy-base { width: 200px; height: 130px; margin: -65px 0 0 -100px; transform: translateY(60px) rotateX(90deg); border-radius: 8px;
  background: linear-gradient(160deg, #2e3854, #171e32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.hy-base::before { content: ""; position: absolute; inset: 12px 14px 46px; border-radius: 4px; background: repeating-linear-gradient(90deg, #0f1525 0 11px, #222b45 11px 13px), #0f1525;
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 11px, transparent 11px 13px); mask: repeating-linear-gradient(180deg, #000 0 11px, transparent 11px 13px); }
.hy-base::after { content: ""; position: absolute; left: 68px; right: 68px; bottom: 9px; height: 28px; border-radius: 4px; background: #121a2c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
/* tranche avant (voyants) et tranche droite (ventilateurs) */
.hy-front { width: 200px; height: 10px; margin: -5px 0 0 -100px; transform: translateY(65px) translateZ(65px); border-radius: 0 0 6px 6px;
  background: linear-gradient(#262f4a, #11172a); display: flex; gap: 7px; align-items: center; padding-left: 12px; box-sizing: border-box; }
.hy-side { width: 130px; height: 10px; margin: -5px 0 0 -65px; transform: translateX(100px) translateY(65px) rotateY(90deg);
  background: linear-gradient(90deg, #1b2236, #10162a); display: flex; gap: 6px; align-items: center; justify-content: center; }
/* écran : charnière à l'arrière du clavier, penché de 12° vers l'arrière */
.hy-screen { width: 190px; height: 124px; margin: -62px 0 0 -95px; transform: translateY(60px) translateZ(-65px) rotateX(12deg) translateY(-62px); border-radius: 9px 9px 2px 2px;
  background: #0a0f1c; border: 5px solid #262f47; box-sizing: border-box; box-shadow: 0 0 40px -6px color-mix(in srgb, var(--acc) 60%, transparent); overflow: hidden; }
.hy-led { width: 6px; height: 6px; border-radius: 50%; background: #233; flex: none; }
.hy-led.on { background: #3dff9a; box-shadow: 0 0 8px #3dff9a; }
.hy-led.net { --c: #38bdf8; } .hy-led.act { --c: #fbbf24; }
.hy-led.blink { background: var(--c); box-shadow: 0 0 9px var(--c); animation: hyBlink var(--hy-rate, 1s) steps(2, jump-none) infinite; }
@keyframes hyBlink { 50% { opacity: .15; box-shadow: none; } }
.hy-fan { width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed #7b8fb8; animation: hySpin var(--hy-fan, 2s) linear infinite; flex: none; }
@keyframes hySpin { to { transform: rotate(360deg); } }
.hy-screen .scr { position: absolute; inset: 0; padding: 6px 8px; font: 600 8.5px/1.4 ui-monospace, monospace; color: color-mix(in srgb, var(--acc) 80%, #fff); }
.hy-screen .scr i { display: block; height: 4px; border-radius: 2px; margin: 2px 0 4px; background: color-mix(in srgb, var(--acc) 25%, transparent); position: relative; overflow: hidden; }
.hy-screen .scr i b { position: absolute; inset: 0 auto 0 0; background: var(--acc); border-radius: 2px; transition: width .8s; }
.hy-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .13) 0 18%, transparent 30%); pointer-events: none; }
.hy-pulse { position: relative; min-width: 0; }
.hy-pulse canvas { width: 100%; height: 150px; display: block; }
.hy-vitals { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.hy-vitals b { font-size: 18px; font-variant-numeric: tabular-nums; }
.hy-vitals .c1 { color: var(--acc); } .hy-vitals .c2 { color: #34d399; } .hy-vitals .c3 { color: #fbbf24; }

/* ============================================================ 16 · bandeau d'actualité */
.hy-ticker { display: flex; align-items: center; gap: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(90deg, #04070f, #070d1d); height: 40px; }
.hy-ticker .lab { flex: none; padding: 0 14px; height: 100%; display: flex; align-items: center; gap: 7px; font: 800 11px system-ui; letter-spacing: .14em; color: #ff5470; background: rgba(255, 84, 112, .08); border-right: 1px solid var(--line); }
.hy-ticker .lab i { width: 8px; height: 8px; border-radius: 50%; background: #ff5470; box-shadow: 0 0 10px #ff5470; animation: hyBlink 1.2s steps(2, jump-none) infinite; }
.hy-ticker .rail { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.hy-ticker .run { display: inline-flex; gap: 38px; white-space: nowrap; padding-left: 20px; animation: hyRun var(--hy-dur, 60s) linear infinite; font: 600 13px system-ui; color: #cfe3ff; }
.hy-ticker:hover .run { animation-play-state: paused; }
.hy-ticker .run span b { color: var(--acc); margin-right: 6px; font-variant-numeric: tabular-nums; }
@keyframes hyRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
:root[data-theme="light"] .hy-ticker { background: linear-gradient(90deg, #0b1324, #111b33); }

/* ============================================================ 15 · tuiles vivantes */
.hy-live-tile { position: relative; overflow: hidden; isolation: isolate; }
.hy-live-tile > .hy-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: blur(2px) saturate(1.2) brightness(.55); transform: scale(1.12); opacity: 0; transition: opacity .8s; }
.hy-live-tile > .hy-bg.on { opacity: 1; }
.hy-live-tile > .hy-wave { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: var(--hy-h, 0%); transition: height 1.2s ease;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 45%, transparent), color-mix(in srgb, var(--acc2) 25%, transparent)); }
.hy-live-tile > .hy-wave::before { content: ""; position: absolute; left: 0; width: 200%; top: -9px; height: 10px; animation: hyWave 3s linear infinite;
  background: radial-gradient(10px 6px at 10px 10px, color-mix(in srgb, var(--acc) 45%, transparent) 98%, transparent) 0 0 / 20px 10px repeat-x; }
@keyframes hyWave { to { transform: translateX(-50%); } }
.hy-live-tile .hy-sub { position: absolute; left: 6px; right: 6px; bottom: 5px; font-size: 10.5px; line-height: 1.2; opacity: .9; font-weight: 600; text-align: center;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }   /* en surimpression : la tuile ne change pas de taille */
.hy-live-tile.hy-nt > i, .hy-live-tile.hy-nt > i::before { transition: none !important; }
.hy-live-tile .hy-type::after { content: "▌"; animation: hyBlink .9s steps(2, jump-none) infinite; margin-left: 1px; }

/* ============================================================ 37 · Milo en 3D */
:root.fx-rich .mcf .mc-root > svg { transform: perspective(500px) rotateY(var(--hy-my, 0deg)) rotateX(var(--hy-mx, 0deg)); transition: transform .25s ease-out;
  filter: drop-shadow(calc(var(--hy-sx, 0) * 1px) 10px 8px rgba(0, 0, 0, .35)); }
:root.fx-hyper .mcf .mc-root > svg { filter: drop-shadow(calc(var(--hy-sx, 0) * 1px) 10px 8px rgba(0, 0, 0, .35)) drop-shadow(0 0 10px color-mix(in srgb, var(--acc) 45%, transparent)); }
:root.fx-rich .mcf .mc-root .eyeL, :root.fx-rich .mcf .mc-root .eyeR { translate: var(--hy-ex, 0px) var(--hy-ey, 0px); transition: translate .12s; }
:root.fx-rich .mcf.hy-boing .mc-root > svg { animation: hyBoing .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hyBoing { 30% { transform: perspective(500px) scale(1.12, .9); } 60% { transform: perspective(500px) scale(.95, 1.06); } }

/* ============================================================ 43 · Films façon Apple TV */
.cn-hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; margin-bottom: 22px; background: #050811; isolation: isolate; }
.cn-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; z-index: -2; transform: scale(1.04); transition: opacity .9s, transform 12s ease-out; }
:root.fx-rich .cn-hero .bg { animation: cnKen 26s ease-in-out infinite alternate; }
@keyframes cnKen { to { transform: scale(1.14) translate(-2%, -1%); } }
.cn-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #050811 0%, rgba(5, 8, 17, .55) 45%, transparent 75%), linear-gradient(90deg, rgba(5, 8, 17, .85), transparent 60%); }
.cn-hero .info { padding: 28px; max-width: 620px; color: #fff; }
.cn-hero .kick { font: 800 11px system-ui; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.cn-hero h2 { font-size: clamp(26px, 4vw, 42px); margin: 6px 0 8px; line-height: 1.05; text-shadow: 0 4px 30px #000; }
.cn-hero p { color: #d6dcef; margin: 0 0 14px; }
#cn { display: grid; grid-template-columns: minmax(0, 1fr); }          /* les rangées défilent à l'intérieur, sans élargir la page */
.cn-row { margin-bottom: 22px; min-width: 0; }
.cn-row h3 { margin: 0 0 10px; }
.cn-strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; perspective: 900px; }
.cn-card { flex: none; width: 150px; scroll-snap-align: start; cursor: pointer; border: 0; padding: 0; background: none; color: inherit; text-align: left; transition: transform .35s cubic-bezier(.2, 1.3, .4, 1); }
.cn-card .pos { width: 150px; aspect-ratio: 2/3; border-radius: 12px; background: var(--card2) center / cover; box-shadow: 0 10px 25px -10px #000c; position: relative; overflow: hidden; }
.cn-card .pos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .18), transparent 40%); opacity: 0; transition: opacity .3s; }
.cn-card:hover, .cn-card:focus-visible { transform: translateY(-6px) scale(1.06) rotateY(-6deg); outline: none; }
.cn-card:hover .pos::after { opacity: 1; }
.cn-card .t { display: block; font-weight: 700; font-size: 13px; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-card .s { display: block; font-size: 12px; color: var(--mut); }
.cn-card .prog { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); margin-top: 5px; overflow: hidden; }
.cn-card .prog i { display: block; height: 100%; background: var(--acc); }
.cn-ph { display: grid; place-items: center; height: 100%; font-size: 40px; opacity: .5; }
.cn-det { position: relative; border-radius: 18px; overflow: hidden; min-height: 300px; background: #050811 center / cover; color: #fff; }
.cn-det .shade { position: absolute; inset: 0; background: linear-gradient(0deg, #050811, rgba(5, 8, 17, .6) 55%, rgba(5, 8, 17, .2)); }
.cn-det .in { position: relative; padding: 26px; display: flex; gap: 20px; align-items: flex-end; min-height: 300px; flex-wrap: wrap; }
.cn-det .in img { width: 140px; border-radius: 12px; box-shadow: 0 18px 40px #000c; }

/* ============================================================ 44 · Bibliothèque 3D */
.bk-shelf { position: relative; display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap; padding: 26px 22px 30px; margin-bottom: 30px; perspective: 1200px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .05)); }
.bk-shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; border-radius: 4px;
  background: linear-gradient(180deg, #5b3b22, #3a2414); box-shadow: 0 14px 22px -8px #000, inset 0 2px 0 rgba(255, 255, 255, .15); }
:root[data-hab="cockpit"] .bk-shelf::after, :root[data-hab="holo"] .bk-shelf::after { background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 50%, #000), #050a14); box-shadow: 0 0 30px -4px var(--hy-glow); }
.bk-label { font: 800 12px system-ui; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); margin: 0 0 6px 4px; }
.bk { --w: 120px; --h: 180px; --d: 26px; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateY(32deg); transition: transform .7s cubic-bezier(.2, 1.1, .3, 1); cursor: pointer; z-index: 1; margin-bottom: 14px; border: 0; padding: 0; background: none; }
.bk:hover, .bk:focus-visible { transform: rotateY(0deg) translateZ(40px) translateY(-14px); z-index: 2; outline: none; }
:root.fx-rich .bk.idle { animation: bkIdle 7s ease-in-out infinite; }
@keyframes bkIdle { 50% { transform: rotateY(44deg); } }
.bk > i { position: absolute; display: block; backface-visibility: hidden; }
/* livre 120 × 180 × 26 : chaque face est centrée puis poussée à sa place */
.bk .fr { inset: 0; border-radius: 2px 5px 5px 2px; background: var(--c, #345) center / cover; transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 4px 0 6px -2px rgba(0, 0, 0, .5), inset -1px 0 0 rgba(255, 255, 255, .15); }
.bk .fr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, rgba(255, 255, 255, .22), transparent 30%, transparent 70%, rgba(0, 0, 0, .25)); }
.bk .bk-t { position: absolute; inset: auto 8px 10px 10px; color: #fff; font: 800 12px/1.15 system-ui; text-shadow: 0 1px 4px #000; }
.bk .sp { top: 0; left: calc(50% - var(--d) / 2); width: var(--d); height: var(--h); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .1), rgba(0, 0, 0, .3)), var(--c, #345);
  writing-mode: vertical-rl; color: #fff; font: 700 10px system-ui; padding: 8px 0; box-sizing: border-box; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.bk .pg { top: 3px; left: calc(50% - var(--d) / 2); width: var(--d); height: calc(var(--h) - 6px); transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f3ecdc 0 1px, #d9cfb8 1px 2px); }
.bk .bc { inset: 0; border-radius: 5px 2px 2px 5px; background: var(--c, #345); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); filter: brightness(.6); }
.bk .tp { left: 3px; top: calc(50% - var(--d) / 2); width: calc(var(--w) - 6px); height: var(--d); transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 2px)); background: #e9e0cb; }
.bk-badge { position: absolute; top: -10px; right: -8px; z-index: 3; transform: translateZ(30px); font: 700 10px system-ui; padding: 3px 7px; border-radius: 99px; background: var(--acc); color: #04111f; box-shadow: 0 4px 12px #0008; }
.bk-open { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; perspective: 1400px; }
.bk-open .cov { width: 220px; aspect-ratio: 1/1.55; border-radius: 4px 10px 10px 4px; background: #345 center / cover; box-shadow: 0 30px 60px -20px #000; transform-origin: 0 50%; animation: bkOpen 1.4s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes bkOpen { from { transform: rotateY(-70deg) translateX(-30px); opacity: 0; } to { transform: rotateY(-14deg); opacity: 1; } }

/* ============================================================ 45 · la maison en 3D (vue isométrique) */
.hm3 { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(900px 400px at 50% 0%, color-mix(in srgb, var(--hy-sky, #1a2b55) 70%, transparent), transparent), linear-gradient(180deg, #070b18, #0b1224); }
.hm3 svg { display: block; width: 100%; height: auto; max-height: 520px; }
.hm3 .room { cursor: pointer; transition: filter .3s; }
.hm3 .room:hover { filter: brightness(1.35); }
.hm3 .room.here .flo { animation: hmHere 1.6s ease-in-out infinite; }
@keyframes hmHere { 50% { filter: brightness(1.5) saturate(1.3); } }
.hm3 .lbl { font: 700 13px system-ui; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .6); stroke-width: 3px; pointer-events: none; }
.hm3 .dev { cursor: pointer; }
.hm3 .glow { animation: hmGlow 2.4s ease-in-out infinite; }
@keyframes hmGlow { 50% { opacity: .45; } }
.hm3 .bot { transition: transform 1.2s linear; }
.hm3 .hm3-info { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #d8e4ff; }
.hm3 .hm3-info span { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12); padding: 4px 9px; border-radius: 99px; backdrop-filter: blur(6px); }

/* ============================================================ offre « Hyperespace » */
.hy-offer { text-align: center; }
.hy-offer .orb { width: 92px; height: 92px; margin: 4px auto 10px; border-radius: 50%; background: conic-gradient(from var(--hy-a), #22e3ff, #a78bfa, #f472b6, #22e3ff); animation: hyEnergy 4s linear infinite; filter: blur(.3px); box-shadow: 0 0 50px -6px #a78bfa; }
.hy-habs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.hy-habs button { display: flex; flex-direction: column; align-items: stretch; text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--card2); color: var(--txt); cursor: pointer; font-weight: 700; }
.hy-habs button.on { border-color: var(--acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 40%, transparent); }
.hy-habs .sw { display: block; height: 46px; border-radius: 9px; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  .hy-pc, .bk.idle, .cn-hero .bg, .hy-ticker .run, .hy-fan, :root.fx-rich #page .card { animation: none !important; }
}
