/* Le Panthéon d'Artworks : l'interface de visite. Mêmes couleurs que le
   musée (or #c6a675, verre fumé), mêmes polices que le site. L'interface
   reste à la marge de l'image : jamais sur les œuvres. */

.px {
  --px-ink: #f5f2eb;
  --px-muted: #b9b1a3;
  --px-gold: #c6a675;
  --px-gold-hi: #e8cf9f;
  --px-glass: rgba(14, 13, 16, 0.6);
  --px-glass-strong: rgba(14, 13, 16, 0.82);
  --px-line: rgba(198, 166, 117, 0.42);
  color: var(--px-ink);
  font-family: Outfit, system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}
.px .m3d-canvas { cursor: grab; }
.px-collection { position: absolute; top: 5rem; left: .8rem; z-index: 8; max-width: min(28rem, calc(100% - 1.6rem)); border: 1px solid var(--px-line); border-radius: .8rem; background: #171619; color: #f5f2eb; padding: .7rem; }
.px-collection summary { cursor: pointer; font-size: .85rem; }
.px-collection[open] { width: 28rem; max-height: calc(100% - 7rem); overflow: auto; }
.px-collection nav { display: flex; flex-wrap: wrap; gap: .7rem; margin: .8rem 0; }
.px-collection label { display: grid; gap: .4rem; font-size: .85rem; }
.px-collection input { width: 100%; background: #fff; color: #202020; border: 1px solid #999; padding: .6rem; }
.px-collection ul { list-style: none; padding: 0; margin: .7rem 0; }
.px-collection li { display: grid; gap: .2rem; padding: .6rem 0; border-bottom: 1px solid #555; }
.px-collection a { color: #e8cf9f; }
.px-collection small { color: #eee; }
.px-collection :focus-visible { outline: 3px solid #e8cf9f; outline-offset: 3px; }
.px .m3d-canvas.is-pointing { cursor: pointer; }
.px .m3d-canvas:active { cursor: grabbing; }
.px::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at 50% 45%, transparent 60%, rgba(0, 0, 0, 0.32) 100%); }

.px button, .px select {
  font: inherit;
  color: var(--px-ink);
  border: 1px solid var(--px-line);
  background: var(--px-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 2.35rem;
  padding: 0 0.85rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.px button:hover, .px select:hover { border-color: var(--px-gold); color: var(--px-gold-hi); }
.px button[aria-pressed="true"], .px button[aria-expanded="true"] { border-color: var(--px-gold); color: var(--px-gold-hi); background: rgba(40, 32, 22, 0.78); }
.px :focus-visible { outline: 2px solid var(--px-gold-hi); outline-offset: 2px; }
.px [hidden] { display: none !important; }

.px-fade { position: absolute; inset: 0; z-index: 6; background: #07070a; opacity: 1; pointer-events: none; transition: opacity 1.1s ease; }
.px-fade.is-open { opacity: 0; }

/* Chargement : l'écran d'accueil d'Artworks Digital (logo vivant, progression lavande et or). */
.px-loading {
  position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, #2a2139 0%, #15111d 45%, #0b0910 100%);
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.px-loading.is-ready { opacity: 0; visibility: hidden; }
.px-loading.is-done { opacity: 0; visibility: hidden; }
.px-loader { display: grid; justify-items: center; gap: 0.9rem; width: min(22rem, 80vw); text-align: center; }
.px-loader__mark { position: relative; width: 6.4rem; height: 6.4rem; display: grid; place-items: center; margin-bottom: 0.6rem; }
.px-loader__ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(184, 160, 238, 0.18);
  border-top-color: #b8a0ee; animation: px-spin 1.6s cubic-bezier(.55, .15, .45, .85) infinite;
}
.px-loader__ring--2 { inset: 0.55rem; border-color: rgba(201, 164, 107, 0.14); border-bottom-color: #c9a46b; animation-duration: 2.4s; animation-direction: reverse; }
.px-loader__a {
  position: relative; font: italic 400 3.1rem/1 "Cormorant Garamond", Georgia, serif; color: #d8c7f5;
  transform: translateY(-0.2rem); animation: px-breathe 2.4s ease-in-out infinite;
}
.px-loader__a i { position: absolute; right: -0.55rem; bottom: 0.45rem; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #e6a2c3; box-shadow: 0 0 14px #e6a2c3; }
.px-loader__kicker { margin: 0; font: 500 0.66rem/1 Outfit, system-ui, sans-serif; letter-spacing: 0.24em; text-transform: uppercase; color: #c9a46b; }
.px-loader__title { margin: 0; font: 400 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 "Cormorant Garamond", Georgia, serif; color: #f4f0f7; }
.px-loading__bar { position: relative; display: block; width: 100%; height: 2px; margin-top: 0.6rem; border-radius: 2px; background: rgba(244, 240, 247, 0.1); overflow: hidden; }
.px-loading__bar span { position: absolute; inset: 0; background: linear-gradient(90deg, #b8a0ee, #e6a2c3 55%, #c9a46b); transform: scaleX(0); transform-origin: left center; transition: transform 0.35s ease-out; }
.px-loader__meta { display: flex; justify-content: space-between; gap: 1rem; width: 100%; font: 400 0.78rem/1.3 Outfit, system-ui, sans-serif; color: #aaa2b9; }
.px-loading__text { text-align: left; }
.px-loader__pct { font-variant-numeric: tabular-nums; color: #d8c7f5; }
@keyframes px-spin { to { transform: rotate(360deg); } }
@keyframes px-breathe { 50% { opacity: 0.75; transform: translateY(-0.2rem) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .px-loader__ring, .px-loader__a { animation: none; } }

/* La barre de navigation du site garde ses couleurs : le noir du musée ne la teinte pas. */
body.museum-3d .top { background: var(--paper); color: var(--ink); }
body.museum-3d .top .nav > a:not(.btn), body.museum-3d .top .nav-auth > a:not(.btn) { color: var(--ink); }
body.museum-3d .top .nav a[aria-current] { color: var(--accent, var(--bronze)); }

.px-error { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: #0b0c10; }
.px-error__title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 1rem; }
.px-error a { color: var(--px-gold); }
.px-error [data-error-text] { max-width: 40rem; color: var(--px-muted); line-height: 1.55; }
.px-error__causes { margin: 0.8rem auto 0; padding: 0; list-style: none; font-size: 0.82rem; text-align: left; display: grid; gap: 0.3rem; }
.px-error__causes li::before { content: "· "; color: var(--px-gold); }
.px-error__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: center; margin-top: 1.2rem; }

/* Écrans à encoche (iPhone) : l'interface reste dans la zone sûre. */
.px-top { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.px-aria { margin-bottom: env(safe-area-inset-bottom, 0px); }
.px-joystick { margin-left: env(safe-area-inset-left, 0px); margin-bottom: env(safe-area-inset-bottom, 0px); }
.px .m3d-canvas, .px .pxf { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }

/* ------------------------------------------------------------ le musée 2.5D (museum-flat.js)
   Les salles en éléments HTML placés par des transformations CSS 3D. */
.pxf { position: absolute; inset: 0; z-index: 0; overflow: hidden; touch-action: none; cursor: grab;
  background: radial-gradient(ellipse at 50% 30%, #2b2620, #0c0b0a 75%);
  -webkit-perspective-origin: 50% 50%; perspective-origin: 50% 50%; user-select: none; -webkit-user-select: none; }
.pxf:active { cursor: grabbing; }
.pxf-cam { position: absolute; left: 0; top: 0; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; pointer-events: none; }
.pxf-p { position: absolute; left: 0; top: 0; box-sizing: border-box; transform-origin: 50% 50%; pointer-events: auto;
  -webkit-backface-visibility: visible; backface-visibility: visible; background-repeat: repeat; }
.pxf-frieze { display: grid; place-items: center; font: 600 22px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.18em; color: #6e5428; overflow: hidden; }
.pxf-oculus { box-shadow: 0 0 60px 30px rgba(255, 250, 235, 0.55); }
.pxf-sun { pointer-events: none; border-radius: 50%; }
.pxf-art { cursor: pointer; }
.pxf-art__mat { background: #e9e4da; box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35); line-height: 0; }
.pxf-art--black .pxf-art__mat, .pxf-art--gold .pxf-art__mat { background: #e9e4da; }
.pxf-art img { display: block; background: #4c4640; object-fit: contain; opacity: 0.35; transition: opacity 0.6s ease; -webkit-user-drag: none; pointer-events: none; }
.pxf-art img.is-in { opacity: 1; }
.pxf-label { background: #f4f1ea; color: #1c1915; padding: 12px 14px; font: 400 13px/1.25 Outfit, system-ui, sans-serif; overflow: hidden; }
.pxf-label p { margin: 0 0 3px; }
.pxf-label__a { font-weight: 500; font-size: 14px; }
.pxf-label__t { font: italic 400 19px/1.1 "Cormorant Garamond", Georgia, serif; }
.pxf-label__m { color: #4a443c; font-size: 11px; }
.pxf-label__p { color: #8a6a34; font-size: 11px; }
.pxf-plaque { display: grid; place-content: center; text-align: center; gap: 6px; background: #242924; border: 6px double #bda377; color: #e6c88e; overflow: hidden; }
.pxf-plaque span { font: 600 22px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.12em; }
.pxf-plaque strong { font: italic 400 34px/1.05 "Cormorant Garamond", Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; }
.pxf-panel { padding: 26px 22px; color: #f6eedf; background: #242924; border-top: 3px solid #bda377; overflow: hidden; }
.pxf-panel p { margin: 0 0 10px; }
.pxf-panel__k { font: 500 13px/1 Outfit, system-ui, sans-serif; letter-spacing: 0.14em; color: #d9b77c; }
.pxf-panel__t { font: italic 400 34px/1.05 "Cormorant Garamond", Georgia, serif; }
.pxf-panel:not(.is-intro) .pxf-panel__t { font-size: 28px; }
.pxf-panel__s { font: 400 15px/1.35 Outfit, system-ui, sans-serif; color: #e8dcc6; }
.pxf-panel__x { font: 400 13px/1.45 Outfit, system-ui, sans-serif; color: #e8dcc6; display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; }
.pxf-panel__n { font: 400 13px/1.3 Outfit, system-ui, sans-serif; color: #d9b77c; border-top: 2px solid #d9b77c; padding-top: 8px; width: max-content; }
.px.is-flat::after { background: radial-gradient(ellipse at 50% 46%, transparent 50%, rgba(0, 0, 0, 0.4) 100%); }

/* Barre du haut. */
.px-top { position: absolute; z-index: 4; left: 1rem; right: 1rem; top: 0.9rem; display: flex; align-items: center; gap: 0.8rem; pointer-events: none; }
.px-top > * { pointer-events: auto; }
.px-link { color: var(--px-muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 999px; background: var(--px-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.px-link:hover { color: var(--px-gold-hi); }
.px-where {
  flex: 1; margin: 0; text-align: center; pointer-events: none;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1rem, 1.6vw, 1.35rem); letter-spacing: 0.04em;
  color: var(--px-gold-hi); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.px-tools { display: flex; gap: 0.3rem; align-items: center; }
.px-quality select { appearance: none; -webkit-appearance: none; padding-right: 0.85rem; }
.px-quality option { background: #15141a; color: var(--px-ink); }

/* ARIA, la commissaire : le panneau qui guide la visite. */
.px-aria {
  position: absolute; z-index: 4; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  width: min(44rem, calc(100% - 2rem));
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 0.95rem 1.05rem; border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(20, 17, 24, 0.84), rgba(26, 21, 16, 0.78));
  border: 1px solid rgba(198, 166, 117, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 236, 200, 0.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.px-aria.is-speaking { border-color: var(--px-gold-hi); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 207, 159, 0.25), 0 0 40px rgba(198, 166, 117, 0.18); }
.px .px-aria__orb { flex: none; width: 3.1rem; height: 3.1rem; min-height: 0; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.px .px-aria__orb .aria-orb { width: 2.7rem; height: 2.7rem; }
.px-aria__body { flex: 1; min-width: 0; }
.px-aria__name { margin: 0 0 0.2rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--px-gold); }
.px-aria__name span { color: var(--px-muted); letter-spacing: 0.08em; text-transform: none; margin-left: 0.35rem; }
.px-aria__text { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.38; color: var(--px-ink); max-height: 7.2em; overflow-y: auto; user-select: text; -webkit-user-select: text; }
.px-aria__actions, .px-aria__tour { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.65rem; align-items: center; }
.px-aria__actions [data-tour-start] { border-color: var(--px-gold); color: var(--px-gold-hi); background: rgba(58, 44, 24, 0.7); }
.px-aria__step { font-size: 0.72rem; color: var(--px-muted); letter-spacing: 0.06em; padding: 0 0.3rem; }
.px .px-aria__fold { flex: none; min-height: 0; width: 1.9rem; height: 1.9rem; padding: 0; line-height: 1; }
.px-aria.is-folded { width: auto; padding: 0.5rem 0.6rem; }
.px-aria.is-folded .px-aria__body { display: none; }

.px-hint { position: absolute; z-index: 3; left: 50%; bottom: calc(1.2rem + 9.6rem); transform: translateX(-50%); margin: 0; padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.72rem; color: var(--px-muted); background: rgba(10, 10, 12, 0.5); white-space: nowrap; pointer-events: none; transition: opacity 0.8s ease; }
.px-hint.is-gone { opacity: 0; }
.px-hint--touch { display: none; }

/* Joystick : seulement au toucher. */
.px-joystick { display: none; position: absolute; z-index: 4; left: 1.2rem; bottom: 1.4rem; width: 7.2rem; height: 7.2rem; border-radius: 50%; border: 1px solid rgba(245, 242, 235, 0.3); background: rgba(10, 10, 12, 0.3); backdrop-filter: blur(6px); touch-action: none; }
.px-joystick span { position: absolute; left: 50%; top: 50%; width: 2.8rem; height: 2.8rem; margin: -1.4rem 0 0 -1.4rem; border-radius: 50%; background: rgba(232, 207, 159, 0.55); border: 1px solid var(--px-gold-hi); }

/* Cartel. */
.px-card {
  position: absolute; z-index: 5; right: 1.2rem; top: 4.4rem; width: min(23rem, calc(100% - 2.4rem));
  max-height: calc(100% - 15rem); overflow-y: auto;
  padding: 1.3rem 1.3rem 1.1rem; border-radius: 1.1rem;
  background: var(--px-glass-strong); border: 1px solid var(--px-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  user-select: text; -webkit-user-select: text;
  animation: px-in 0.35s ease;
}
@keyframes px-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.px .px-card__close { position: absolute; right: 0.7rem; top: 0.7rem; min-height: 0; width: 2rem; height: 2rem; padding: 0; }
.px-card__room { margin: 0 2rem 0.4rem 0; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--px-gold); }
.px-card h2 { margin: 0 0 0.3rem; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.7rem; line-height: 1.1; color: var(--px-ink); }
.px-card__artist { margin: 0 0 0.5rem; }
.px-card__artist a { color: var(--px-gold-hi); text-decoration: none; font-size: 0.95rem; }
.px-card__meta { margin: 0 0 0.6rem; color: var(--px-muted); font-size: 0.82rem; line-height: 1.5; }
.px-card__text { margin: 0 0 0.7rem; font-size: 0.86rem; line-height: 1.55; color: #ddd6ca; }
.px-card__price { margin: 0 0 0.7rem; font-size: 0.9rem; color: var(--px-gold-hi); }
.px-card__actions, .px-card__aria { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.px-card__buy { display: inline-flex; align-items: center; min-height: 2.35rem; padding: 0 1rem; border-radius: 999px; background: var(--px-gold); color: #16130e; font-size: 0.76rem; letter-spacing: 0.06em; text-decoration: none; font-weight: 500; }
.px-card__buy:hover { background: var(--px-gold-hi); }
.px-card__aria button { border-color: rgba(232, 207, 159, 0.55); }
.px-card__links { margin: 0.4rem 0 0; font-size: 0.78rem; color: var(--px-muted); }
.px-card__links a { color: var(--px-gold); }

/* Plan. */
.px-map { position: absolute; z-index: 5; left: 1.2rem; top: 4.4rem; width: min(26rem, calc(100% - 2.4rem)); padding: 0.9rem; border-radius: 1.1rem; background: var(--px-glass-strong); border: 1px solid var(--px-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: px-in 0.3s ease; }
.px-map__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.px-map__head p { margin: 0; font-size: 0.72rem; color: var(--px-muted); letter-spacing: 0.04em; }
.px .px-map__head button { min-height: 0; width: 2rem; height: 2rem; padding: 0; }
.px-map canvas { display: block; width: 100%; aspect-ratio: 1; cursor: pointer; border-radius: 0.6rem; background: rgba(0, 0, 0, 0.25); }
.px-map__list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.25rem; max-height: 9rem; overflow-y: auto; }
.px .px-map__list button { width: 100%; text-align: left; border-radius: 0.6rem; font-size: 0.74rem; }

/* Zoom haute définition. */
.px-zoom { position: absolute; inset: 0; z-index: 9; background: rgba(6, 6, 8, 0.96); display: flex; flex-direction: column; }
.px-zoom__stage { flex: 1; overflow: hidden; display: grid; place-items: center; cursor: grab; touch-action: none; }
.px-zoom__stage img { max-width: 92%; max-height: 92%; transform-origin: center; will-change: transform; user-select: none; -webkit-user-drag: none; }
.px-zoom__caption { margin: 0; padding: 0.4rem 1rem; text-align: center; color: var(--px-muted); font-size: 0.82rem; }
.px-zoom__tools { display: flex; justify-content: center; gap: 0.4rem; padding: 0 0 1.2rem; }

/* L'oiseau et le lanceur ARIA du site : dans le musée, ARIA a son propre panneau. */
body.museum-pantheon .aria-launcher { display: none; }
body.museum-pantheon .foot { display: none; }
/* La salle prend exactement la hauteur laissée par l'en-tête du site (plus haut sur
   téléphone, variable selon la connexion) : pas de hauteur d'en-tête supposée, sinon
   le panneau d'ARIA et le joystick passaient sous le bord de l'écran. */
body.museum-pantheon .m3d { flex: 1 1 auto; min-height: 320px; height: auto; }
body.museum-pantheon .site-layout, body.museum-pantheon main, body.museum-pantheon .m3d { min-width: 0; max-width: 100%; width: 100%; }
body.museum-pantheon { overflow-x: hidden; }

@media (pointer: coarse) {
  .px-joystick { display: block; }
  .px-hint--desktop { display: none; }
  .px-hint--touch { display: inline; }
  .px-aria { left: auto; right: 0.8rem; transform: none; width: min(30rem, calc(100% - 10rem)); }
}
@media (max-width: 760px) {
  .px-top { left: 0.6rem; right: 0.6rem; top: 0.6rem; flex-wrap: wrap; }
  .px-where { order: 3; flex-basis: 100%; font-size: 1rem; }
  .px-link { display: none; }
  .px-tools { margin-left: auto; }
  .px-quality, .px [data-fullscreen] { display: none; }
  .px-aria__body { min-width: 0; }
  .px-aria__text { overflow-wrap: anywhere; }
  .px button, .px select { min-height: 2.2rem; padding: 0 0.65rem; font-size: 0.7rem; }
  .px-aria { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; transform: none; width: auto; padding: 0.7rem 0.8rem; gap: 0.6rem; }
  .px-top { top: calc(0.6rem + env(safe-area-inset-top, 0px)); }
  .px .px-aria__orb { width: 2.4rem; height: 2.4rem; }
  .px .px-aria__orb .aria-orb { width: 2.1rem; height: 2.1rem; }
  .px-aria__text { font-size: 1rem; max-height: 4.2em; }
  /* Au-dessus du panneau d'ARIA, quelle que soit sa hauteur (mesurée par le script : --px-aria-h). */
  .px-joystick { top: auto; left: 0.8rem; bottom: calc(1.4rem + var(--px-aria-h, 9.4rem)); width: 6.4rem; height: 6.4rem; transition: bottom 0.25s ease; }
  .px-hint { display: none; }
  .px-card { left: 0.6rem; right: 0.6rem; width: auto; top: auto; bottom: calc(1.2rem + var(--px-aria-h, 9.4rem)); max-height: calc(100% - var(--px-aria-h, 9.4rem) - 7rem); border-radius: 1.1rem; }
  .px-map { left: 0.6rem; right: 0.6rem; width: auto; top: 5.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .px-fade, .px-loading, .px-card, .px-map { transition: none; animation: none; }
}

/* Mode immersion (bouton « Immersion ») : tout l'écran, interface réduite à l'essentiel. Au-dessus de l'en-tête (36)
   et de la barre d'onglets (35), sous le tiroir d'ARIA (60). */
html.museum-immersive, html.museum-immersive body { overflow: hidden; }
.px.is-immersive { position: fixed !important; inset: 0; z-index: 38; width: 100vw !important; height: 100vh !important; height: 100dvh !important; min-height: 0; }
.px.is-immersive .px-where, .px.is-immersive .px-link, .px.is-immersive .px-hint,
.px.is-immersive [data-voice], .px.is-immersive [data-sound], .px.is-immersive .px-quality, .px.is-immersive [data-fullscreen] { display: none !important; }
.px.is-immersive .px-top { justify-content: flex-end; }
.px [data-immersive][aria-pressed="true"] { border-color: var(--px-gold-hi); color: var(--px-gold-hi); }
@media (max-width: 760px) {
  /* Commandes visibles sans découvrir un défilement horizontal caché. */
  .px-aria__actions { flex-wrap: wrap; overflow: visible; }
  .px-aria__actions > button { max-width: 100%; white-space: normal; height: auto; padding: .4rem .6rem; }
  .px.has-card .px-collection, .px.has-card .px-joystick { visibility: hidden; }
  .px-aria__tour { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 0.45rem; padding-bottom: 2px; }
  .px-aria__actions::-webkit-scrollbar, .px-aria__tour::-webkit-scrollbar { display: none; }
  .px-aria__actions > *, .px-aria__tour > * { flex: none; }
  .px-aria__name span { display: none; }
  .px-aria__text { font-size: 0.98rem; max-height: 4.1em; }
  .px-joystick { width: 5.6rem; height: 5.6rem; }
  .px-joystick span { width: 2.3rem; height: 2.3rem; margin: -1.15rem 0 0 -1.15rem; }
  .px.is-immersive .px-top { top: calc(0.5rem + env(safe-area-inset-top, 0px)); }
  .px.is-immersive .px-aria { bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); }
  .px-aria.is-folded { left: auto; right: 0.6rem; width: auto; } /* replié : l’orbe seule, à droite (le joystick est à gauche) */
}
