.projet3d-layout { margin: 0; padding: 0;}
.projet3d-wrapper { display: flex;  overflow: hidden;}
.projet3d-layout,.projet3d-wrapper {
  height: 100dvh;
  min-height: 100dvh;
}
.projet3d-sidebar { 
    width: 100px;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
    padding: 20px 10px 80px; /* marge basse pour éviter que les derniers boutons collent */
    background: #f8f9fa; 
    border-right: 1px solid #dee2e6;
    /*padding: 10px 10px;*/
    display: flex; flex-direction: column; gap: 12px;
    flex-shrink: 0;
}
.btn-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 5px 0;
}
.sidebar-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 2px 0;
}
.fullscreen-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    gap: 12px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.Zoom-Toogle {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.viewer-action-btn {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.viewer-action-btn--fullscreen {
  border-radius: 50%;
}

.viewer-action-btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.viewer-action-btn:active {
  transform: scale(0.96);
}

.viewer-action-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.viewer-action-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

#fullscreen-btn, #zoom-in-btn, #zoom-out-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#fullscreen-btn:hover, #zoom-in-btn:hover, #zoom-out-btn:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.1);
}

#fullscreen-btn:active, #zoom-in-btn:active, #zoom-out-btn:active  {
    transform: scale(0.95);
}
.vm-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.btn-logo{
    width: 12px; height: 12px;
}
.etage-subbtn-logo{
        width: 12px; height: 12px;
}
.btn-text{
    font-size: 11px;
}
.etage-subbtn-text{
        font-size: 11px;
}

.vm-fullscreen-btn, .HD-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;

}

.vm-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.projet3d-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.2s ease;
}

.projet3d-btn:hover {
    background: var(--projet3d-btn-hover, #e9ecef);
    transform: translateY(-1px);
}
.projet3d-btn.btn-active {
    /*opacity: 0.8;*/
    background: var(--projet3d-btn-active, rgba(0, 124, 186, 0.18)) !important;
    color: var(--projet3d-btn-active-text, #ffffff) !important;
}

/* ligne du haut */
.projet3d-btn.btn-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0px;
    right: 0px;
    height: 2px;
    background: var(--projet3d-btn-active, #007cba) !important;
    border-radius: 999px;
}

/* si tu veux éviter le logo trop sombre ou trop clair */
.projet3d-btn.btn-active .btn-logo {
    filter: brightness(0) invert(1);
}

.projet3d-iframe-area { flex: 1; padding: 0px;    position: relative; background: black;
  min-width: 0;
  min-height: 0;}
#projet3d-iframe { width: 100%; height: 100%; border-radius: 0px; }
.projet3d-logo {
    display: block;
    background: rgba(0,0,0,0);
    transition: all 0.3s ease;
}
.projet3d-logo:hover {
    transform: translateY(-2px);
}
.projet3d-logo img {
    max-width: 100px;
    height: auto;
    display: block;
}

.projet3d-logo img,
.projet3d-logo-img {
    width: 75%;   /* largeur fixe */
    height: auto;   /* conserve le ratio */
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.etage-submenu {
    display: none;
    margin: 8px 0 12px;
    padding: 8px 0 0;
}

.etage-submenu.is-open {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.etage-subbtn {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-left: 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.2s ease;
}

.etage-subbtn:hover {
    background: #e2e6ea;
}

.etage-subbtn.active {
    background: var(--projet3d-btn-active, rgba(0, 124, 186, 0.18)) !important;
    color: var(--projet3d-btn-active-text, #ffffff) !important;
}

.projet3d-powered {
position: fixed;
left: 12px;
bottom: 12px;
z-index: 9999;
display: flex;
align-items: center;
gap: 8px;
padding: 6px 8px;
border-radius: 6px;
pointer-events: auto;
}
.projet3d-powered .powered-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: inherit;
text-decoration: none;
font-size: 0.85rem;
}
.projet3d-powered .powered-img {
display: block;
width: 80px; /* ajuster selon votre image */
height: auto;
}
@media (prefers-reduced-motion: reduce) {
.projet3d-powered { transition: none; }
}