html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#visite {
  width: 100%;
  height: 100%;
}

/* ----- Menu des pièces (en haut au centre) ----- */
#menu-pieces {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 50;
}

#menu-pieces button {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

#menu-pieces button:hover {
  background: rgba(0, 0, 0, 0.8);
}

#menu-pieces button.actif {
  background: #c9a04e;
  color: #1a1a1a;
  font-weight: 600;
}

/* ----- Hotspots d'information ----- */
.hotspot-info {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  border: 3px solid #c9a04e;
  font: bold 18px Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

/* ----- Mode éditeur ----- */
#btn-editeur {
  position: absolute;
  bottom: 60px;
  right: 14px;
  z-index: 50;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

#btn-editeur.actif {
  background: #c9a04e;
  color: #1a1a1a;
  font-weight: 600;
}

#panneau-editeur {
  position: absolute;
  bottom: 60px;
  left: 14px;
  z-index: 50;
  max-width: 520px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 13px;
}

#panneau-editeur .titre-editeur {
  margin: 0 0 6px;
  font-weight: 600;
  color: #c9a04e;
}

#panneau-editeur code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #1e1e1e;
  color: #9cdcfe;
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 380px;
}

.ligne-snippet {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.ligne-snippet button {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: #c9a04e;
  color: #1a1a1a;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

#panneau-editeur .aide {
  margin: 6px 0 0;
  color: #bbb;
  font-size: 11px;
}

.cache {
  display: none !important;
}
