:root {
  --glb-accent: #a78824;
  --glb-light-bg: rgba(245, 245, 245, 0.78);
  --glb-light-panel: #ffffff;
  --glb-light-text: #111111;
  --glb-light-muted: rgba(0,0,0,.72);
  --glb-dark-bg: rgba(64, 64, 64, 0.78);
  --glb-dark-panel: #4a4a4a;
  --glb-dark-text: #f5f5f5;
  --glb-dark-muted: rgba(255,255,255,.78);
}

.glb360-trigger {
 
  
  /*clear:right;
  --size: 54px; 
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  user-select: none;
  border: 3px solid #000;
  background: #000;
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(0,0,0,.16);
  overflow: hidden; */
  
  position: relative;
  cursor: pointer;
  display: flex;
  background: url(/images/360Cube.png);
  background-repeat: no-repeat;
  width: 51px;
  height: 41px;
  margin-top: 19px;
  margin-right: auto;
  
}

.glb360-trigger::before {
  /* content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0) 0deg,
    rgba(255,255,255,.35) 70deg,
    rgba(255,255,255,0) 140deg,
    rgba(255,255,255,0) 360deg
  );
  animation: glb360Spin 2.2s linear infinite;
  opacity: .9;
  z-index: 1; */
}

.glb360-trigger::after {
  /* content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: #000;
  z-index: 2; */
}

.glb360-trigger span {
  position: relative;
  z-index: 3;
  color: #fff;
}

@keyframes glb360Spin {
  to { transform: rotate(360deg); }
}

.glb360-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
  background: rgb(159 159 159 / 78%);
}

.glb360-modal.is-open {
  display: block;
}

.glb360-modal.is-dark {
  background: var(--glb-dark-bg);
}

.glb360-shell {
  position: absolute;
  top: 70px;
  left: 50px;
  right: 52px;
  bottom: 60px;
  background: #f5f5f5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  border: 1px solid rgb(191 191 191);
}

.glb360-modal.is-dark .glb360-shell {
  background: var(--glb-dark-panel);
  border-color: rgba(255,255,255,.08);
}

.glb360-topbar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 0px;
    z-index: 40;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
    background: #fff;
    width: 27%;
    margin-top: -13px;
    height: 100%;
	flex-direction: row-reverse;
}

.glb360-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--glb-light-text);
  font: 700 12px/1 Arial, sans-serif;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--glb-accent);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  direction: rtl;
}

.glb360-modal.is-dark .glb360-badge {
  color: var(--glb-dark-text);
  background: rgba(74,74,74,.96);
  border-color: rgba(255,255,255,.10);
}

.glb360-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glb-accent);
  box-shadow: 0 0 10px rgba(167,136,36,.55);
}

.glb360-top-actions {
  pointer-events: auto;
  display: flex;
  gap: 10px;
}

.glb360-icon-btn {
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glb-accent);
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  color: #4d4d4d;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  font: 100 28px/1 Arial, sans-serif;
}

.glb360-modal.is-dark .glb360-icon-btn {
  background: rgba(74,74,74,.96);
  color: #fff;
  border-color: rgba(255,255,255,.10);
}

.glb360-stage {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  bottom: 0;
}

.glb360-viewer {
  display: block;
  width: 100%;
  height: calc(100% - 24px);
  margin-top: 24px;
  background: transparent;
  --poster-color: transparent;
}

.glb360-floor-dots {
  position: absolute;
  left: 50%;
  bottom: 88px;
  width: 220px;
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 8;
  transition: opacity .25s ease, visibility .25s ease;
}

.glb360-floor-dots.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.glb360-floor-dots span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
}

.glb360-modal.is-dark .glb360-floor-dots span {
  background: rgba(255,255,255,.42);
}

.glb360-floor-dots span:nth-child(1) { left: 6px; top: 62px; }
.glb360-floor-dots span:nth-child(2) { left: 20px; top: 42px; }
.glb360-floor-dots span:nth-child(3) { left: 44px; top: 26px; }
.glb360-floor-dots span:nth-child(4) { left: 74px; top: 16px; }
.glb360-floor-dots span:nth-child(5) { left: 108px; top: 12px; }
.glb360-floor-dots span:nth-child(6) { left: 142px; top: 16px; }
.glb360-floor-dots span:nth-child(7) { left: 172px; top: 26px; }
.glb360-floor-dots span:nth-child(8) { left: 196px; top: 42px; }
.glb360-floor-dots span:nth-child(9) { left: 210px; top: 62px; }
.glb360-floor-dots span:nth-child(10) { left: 182px; top: 82px; }
.glb360-floor-dots span:nth-child(11) { left: 110px; top: 94px; }
.glb360-floor-dots span:nth-child(12) { left: 38px; top: 82px; }

.glb360-touch-flash {
  position: absolute;
  inset: 10px;
  border: 2px solid transparent;
  border-radius: 16px;
  pointer-events: none;
  z-index: 15;
}

.glb360-touch-flash.is-active {
  animation: glbTouchFlash .45s ease forwards;
}

@keyframes glbTouchFlash {
  0% { border-color: rgba(167,136,36,.95); opacity: 1; }
  100% { border-color: rgba(167,136,36,0); opacity: 0; }
}

.glb360-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(255,255,255,.58);
  transition: opacity .35s ease, visibility .35s ease;
}

.glb360-modal.is-dark .glb360-loader {
  background: rgba(74,74,74,.52);
}

.glb360-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.glb360-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.glb360-loader-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.10);
  border-top-color: var(--glb-accent);
  animation: glb360Loader 1s linear infinite;
}

.glb360-modal.is-dark .glb360-loader-ring {
  border-color: rgba(255,255,255,.16);
  border-top-color: var(--glb-accent);
}

@keyframes glb360Loader {
  to { transform: rotate(360deg); }
}

.glb360-loader-text {
  color: rgba(0,0,0,.78);
  font: 600 13px/1.2 Arial, sans-serif;
  letter-spacing: .03em;
  direction: rtl;
}

.glb360-modal.is-dark .glb360-loader-text {
  color: rgba(255,255,255,.88);
}

.glb360-bottom {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 12px;
}

.glb360-pill {
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glb-accent);
  background: rgba(255,255,255,.96);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: 700 18px/1 Arial, sans-serif;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.glb360-modal.is-dark .glb360-pill {
  background: rgba(74,74,74,.96);
  color: #fff;
}

.glb360-theme-btn {
  position: absolute;
  left: 18px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--glb-accent);
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.glb360-modal.is-dark .glb360-theme-btn {
  background: #4a4a4a;
  color: #fff;
}

.glb360-theme-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.glb360-theme-icon {
  display: none;
}

.glb360-theme-btn.is-light .glb360-theme-moon {
  display: block;
}

.glb360-theme-btn.is-dark .glb360-theme-sun {
  display: block;
}

.glb360-hotspot-card {
  background: rgba(255,255,255,.96);
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 190px;
  max-width: 240px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  transform: translateY(-8px);
}

.glb360-modal.is-dark .glb360-hotspot-card {
  background: rgba(74,74,74,.96);
  color: #fff;
  border-color: rgba(255,255,255,.10);
}

.glb360-hotspot-title {
  font: 700 13px/1.2 Arial, sans-serif;
  margin: 0 0 6px;
}

.glb360-hotspot-text {
  font: 400 12px/1.45 Arial, sans-serif;
  margin: 0;
  color: rgba(0,0,0,.72);
}

.glb360-modal.is-dark .glb360-hotspot-text {
  color: rgba(255,255,255,.78);
}

button.Hotspot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--glb-accent);
  box-shadow: 0 0 0 8px rgba(167,136,36,.12), 0 0 18px rgba(167,136,36,.22);
  cursor: pointer;
}

button.Hotspot:focus {
  outline: none;
}

model-viewer::part(default-progress-bar) {
  display: none;
}

.glb360-trigger-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.glb360-trigger-top {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.glb360-trigger-icon {
  width: 18px;
  height: 18px;
  stroke: #111;
}

@media (max-width: 363px) {
  .glb360-bottom {
    gap: 28px !important;
    width: 150px !important;
  }

  .glb360-pill {
    width: 36px !important;
    height: 36px !important;
    min-width: 0 !important;
  }

  .glb360-theme-btn {
    width: 36px !important;
    height: 36px !important;
  }

  .glb360-shell {
    top: 70px !important;
    left: 4px !important;
    right: 4px !important;
    bottom: 14px !important;
  }
  
  #TitlePopup {
    
    margin-right: 6px  !important;
    font-size: 17px !important;
	}
  
}


@media (max-width: 520px){
  .glb360-topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .glb360-top-actions{
    order:1;
  }

  .glb360-badge{
    display: none;
  }
}


#TitlePopup {
    z-index: 99;
    position: relative;
    width: 29%;
    margin-top: 65px;
    margin-right: 25px;
    font-weight: bold;
    font-size: 21px;
}


.glb360-loader-inner{
position:relative;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:18px;
}

/* LOGO CENTRÉ DANS LE CERCLE */
.glb360-loader-logo{
position:absolute;
width:105px;
height:auto;
top:50%;
left:50%;
transform:translate(-50%,-50%);
pointer-events:none;
z-index:2;
}

/* CERCLE AU DESSOUS */
.glb360-loader-ring{
width:210px;
height:210px;
border-radius:50%;
border:2px solid rgba(0,0,0,.10);
border-top-color:var(--glb-accent);
animation:glb360Loader 1s linear infinite;
position:relative;
z-index:1;
border-width:4px;
}


/* fleches */
.glb360-dim-point,
.glb360-dim-bubble,
.glb360-dim-svg {
  pointer-events: none;
}

.glb360-dim-point {
  position: fixed;
  transform: translate(-50%, -50%);
  z-index: 999999;
  border-radius: 50%;
  display: none;
}

.glb360-dim-point.is-ref {
  width: 7px;
  height: 7px;
}

.glb360-dim-point:not(.is-ref) {
  width: 5px;
  height: 5px;
}

.glb360-dim-bubble {
  position: fixed;
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 999999;
  display: none;
}

.glb360-dim-svg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999998;
  display: none;
}

