/* PanoTour — maquette 3D (dollhouse), plan 2D cliquable et radar. Partagé par le lecteur et le studio. */
.dh { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #f7f8fa 0%, #e7eaee 70%, #dde1e6 100%); touch-action: none; user-select: none; -webkit-user-select: none; }
.dh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.dh-canvas:active { cursor: grabbing; }
.dh-over { position: absolute; inset: 0; pointer-events: none; }
.dh-over > * { position: absolute; left: 0; top: 0; will-change: transform; }
.dh-over.no-labels .dh-label { display: none; }
.dh-label { pointer-events: none; z-index: 2; display: grid; justify-items: center; gap: 1px; margin: 0; translate: -50% -50%; color: #1c1f24; font: 600 12px/1.25 "Avenir Next", "Segoe UI", system-ui, sans-serif; text-shadow: 0 0 3px #fff, 0 0 6px #fff; white-space: nowrap; }
.dh-label span { font-weight: 500; color: #5b616b; font-size: 11px; }
.dh-point { pointer-events: auto; width: var(--dh-s, 26px); height: var(--dh-s, 26px); translate: -50% -50%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--dh-c, #ff5b2e) 75%, transparent); background: color-mix(in srgb, var(--dh-c, #ff5b2e) 16%, transparent); box-shadow: none; z-index: 1; cursor: pointer; padding: 0; transition: box-shadow .15s; }
/* Survol : anneau autour du point, jamais « scale » — scale s'applique aussi au transform qui place le point,
   le point sautait ailleurs sous la souris (survol perdu → retour → survol… : aperçu qui va et vient). */
.dh-point:focus-visible { outline: none; box-shadow: 0 0 0 5px rgba(255, 255, 255, .85), 0 0 0 7px var(--dh-c, #ff5b2e), 0 2px 8px rgba(0,0,0,.35); }
@media (hover: hover) { .dh-point:hover { background: color-mix(in srgb, var(--dh-c, #ff5b2e) 35%, transparent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); } } /* pas de survol au doigt : sinon iOS réclame un 2e toucher */
.dh-point { touch-action: manipulation; }
.dh-point[hidden], .dh-label[hidden] { display: none; }
.dh-tip { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 22px); pointer-events: none; display: grid; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(0,0,0,.18); font: 600 12px "Avenir Next", "Segoe UI", system-ui, sans-serif; color: #1c1f24; text-align: center; }
.dh-tip img { width: 150px; height: 84px; object-fit: cover; border-radius: 8px; display: block; }
.dh-tip[hidden] { display: none; }
.dh-tip.below { translate: -50% 22px; }
.dh-tip img { aspect-ratio: 150 / 84; }
.dh-fade { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* Plan 2D (repli sans WebGL, aperçu et téléchargement) */
.plan2d { position: relative; display: grid; place-items: center; background: #f4f5f7; overflow: hidden; touch-action: none; }
.plan2d svg { width: 100%; height: 100%; display: block; }
.plan2d [data-point] { cursor: pointer; }

/* Radar (mini-plan du lecteur 360°) */
.radar { position: absolute; z-index: 5; width: 168px; height: 168px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,.22); cursor: pointer; }
.radar svg { width: 100%; height: 100%; display: block; }
.radar [data-point] { cursor: pointer; }
.radar .r-level { position: absolute; left: 8px; bottom: 6px; font: 600 10px "Avenir Next", "Segoe UI", system-ui, sans-serif; color: #5b616b; pointer-events: none; }
@media (max-width: 600px) { .radar { width: 116px; height: 116px; border-radius: 14px; } }

.dh-point.here { background: rgba(23, 24, 28, .8); border-color: #17181c; box-shadow: 0 0 0 4px rgba(255,91,46,.45), 0 2px 8px rgba(0,0,0,.35); }
