/* Visite 360 Studio - Player public */
.v360-root {
  --v360-accent: #e8b84a;
  --v360-glass: rgba(14, 16, 20, .62);
  --v360-line: rgba(255, 255, 255, .14);
  position: relative; width: 100%; height: 100%; min-height: 320px;
  overflow: hidden; background: #0b0c0f; color: #fff;
  font: 14px/1.4 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
html, body.v360-standalone { margin: 0; height: 100%; background: #0b0c0f; }
body.v360-standalone #v360 { position: fixed; inset: 0; }
.v360-pano { position: absolute; inset: 0; }
.v360-pano .pnlm-load-box { background: var(--v360-glass); border-radius: 14px; backdrop-filter: blur(10px); }
.v360-pano .pnlm-lbar-fill { background: var(--v360-accent); }

.v360-loader, .v360-error { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; text-align: center; color: #cfd3da; }
.v360-spin { width: 46px; height: 46px; margin: auto; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--v360-accent); animation: v360spin 0.9s linear infinite; }
.v360-loader-t { letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
@keyframes v360spin { to { transform: rotate(360deg); } }

/* Barre du haut */
.v360-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px; pointer-events: none; z-index: 5;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent); }
.v360-brand { display: flex; align-items: center; gap: 12px; pointer-events: auto; background: var(--v360-glass); border: 1px solid var(--v360-line); backdrop-filter: blur(12px); border-radius: 14px; padding: 8px 14px 8px 8px; max-width: 70%; }
.v360-brand:not(:has(.v360-logo)) { padding-left: 14px; }
.v360-logo { height: 38px; width: auto; max-width: 120px; object-fit: contain; border-radius: 8px; }
.v360-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v360-scene-name { font-size: 12px; color: var(--v360-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v360-tools { display: flex; gap: 8px; pointer-events: auto; }
.v360-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--v360-line); background: var(--v360-glass); backdrop-filter: blur(12px); color: #fff; cursor: pointer; padding: 0; transition: background .2s, color .2s, transform .15s; }
.v360-icon svg { width: 20px; height: 20px; }
.v360-icon:hover { background: rgba(255,255,255,.18); }
.v360-icon:active { transform: scale(.94); }
.v360-icon.is-on { background: var(--v360-accent); color: #111; border-color: transparent; }

.v360-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--v360-glass); backdrop-filter: blur(10px); padding: 10px 16px; border-radius: 30px; font-size: 13px; pointer-events: none; transition: opacity .8s; z-index: 4; text-align: center; max-width: 86%; }
.v360-root.hint-off .v360-hint { opacity: 0; }

/* Bas : galerie */
.v360-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 14px 14px; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none; }
.v360-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; pointer-events: auto; }
.v360-credit { color: rgba(255,255,255,.75); font-size: 11px; text-decoration: none; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v360-credit:hover { color: #fff; }
.v360-ctas { display: flex; gap: 8px; }
.v360-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 14px; white-space: nowrap; }
.v360-btn svg { width: 18px; height: 18px; }
.v360-cta { background: var(--v360-accent); color: #111; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.v360-phone { background: var(--v360-glass); color: #fff; border: 1px solid var(--v360-line); backdrop-filter: blur(12px); }
.v360-gallery { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 4px; pointer-events: auto; scrollbar-width: thin; transition: max-height .35s, opacity .35s; max-height: 120px; scroll-snap-type: x proximity; }
.v360-gallery.is-hidden { max-height: 0; opacity: 0; overflow: hidden; }
.v360-thumb { flex: 0 0 auto; width: 132px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #000; padding: 0; cursor: pointer; position: relative; color: #fff; scroll-snap-align: center; transition: border-color .2s, transform .2s; }
.v360-thumb img { display: block; width: 100%; height: 76px; object-fit: cover; opacity: .82; transition: opacity .2s; }
.v360-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11px; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v360-thumb:hover img, .v360-thumb.is-active img { opacity: 1; }
.v360-thumb.is-active { border-color: var(--v360-accent); }
.v360-thumb:hover { transform: translateY(-2px); }

/* Points chauds */
.v360-pano .pnlm-hotspot-base.v360-hs { width: 0; height: 0; background: none; cursor: pointer; }
.v360-hs-scene { }
.v360-hs-ring { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.22); border: 3px solid rgba(255,255,255,.95); color: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.45);
  transform: perspective(240px) rotateX(52deg); transition: transform .2s, background .2s; animation: v360pulse 2.4s ease-in-out infinite; }
.v360-hs-ring svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.v360-hs-scene:hover .v360-hs-ring { background: var(--v360-accent); color: #111; transform: perspective(240px) rotateX(40deg) scale(1.12); animation: none; }
.v360-hs-label { position: absolute; left: 50%; top: -74px; transform: translateX(-50%); background: rgba(10,11,14,.82); padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .2s, top .2s; pointer-events: none; }
.v360-hs-scene:hover .v360-hs-label { opacity: 1; top: -80px; }
@keyframes v360pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45), 0 4px 18px rgba(0,0,0,.45); } 50% { box-shadow: 0 0 0 12px rgba(255,255,255,0), 0 4px 18px rgba(0,0,0,.45); } }

.v360-hs-dot { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--v360-accent); color: #111; font: 700 18px/1 Georgia, serif; box-shadow: 0 3px 14px rgba(0,0,0,.5); border: 2px solid #fff; }
.v360-hs-card { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(6px); width: 240px; background: rgba(12,13,17,.92); border: 1px solid var(--v360-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 13px; color: #e6e8ec; text-align: left; white-space: normal; }
.v360-hs-card strong { color: #fff; font-size: 14px; }
.v360-hs-card a { color: var(--v360-accent); font-weight: 600; text-decoration: none; }
.v360-hs-info:hover .v360-hs-card, .v360-hs-info:focus-within .v360-hs-card { opacity: 1; transform: translateX(-50%); pointer-events: auto; }

.v360-toast { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%) translateY(10px); background: rgba(10,11,14,.9); padding: 9px 16px; border-radius: 20px; opacity: 0; transition: .25s; pointer-events: none; z-index: 9; }
.v360-toast.is-on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 640px) {
  .v360-top { padding: 10px; }
  .v360-brand { max-width: 56%; padding: 6px 10px 6px 6px; }
  .v360-logo { height: 30px; }
  .v360-title { font-size: 13px; }
  .v360-icon { width: 36px; height: 36px; border-radius: 10px; }
  .v360-tools { gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 84px; }
  .v360-thumb { width: 104px; }
  .v360-thumb img { height: 60px; }
  .v360-btn span { display: none; }
  .v360-btn { padding: 0 12px; }
  .v360-bottom { padding: 0 10px 10px; }
}

/* Masque le cartouche natif de Pannellum (titre géré par le player) */
.v360-pano .pnlm-panorama-info, #edPano .pnlm-panorama-info { display: none !important; }
