body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  background: #f1f1f1;
}

/* Applique l'overflow: hidden uniquement quand le plugin est actif */
body.fauteuil-3d-active {
  overflow: hidden;
}


#c {
  width: 100%;
  height: 100vh;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}



.loading {
  position: fixed;
  z-index: 50;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #f1f1f1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  perspective: 120px;
  width: 100px;
  height: 100px;
  position: relative;
}

.loader::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 25px;
  width: 50px;
  height: 50px;
  background-color: #ff0000;
  animation: flip 1s infinite;
}

@keyframes flip {
  0% {
    transform: rotate(0);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(180deg) rotateX(180deg);
  }
}

.drag-notice {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: none;
}

.drag-notice.start {
  display: block;
}

.options {
  position: fixed;
  top: 80px;
  left: 1rem;
  z-index: 10;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.options p {
  font-weight: bold;
  margin: 0 0 10px;
}
.option {
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.option img {
  width: 40px;
  height: 40px;
}
.option.--is-active {
  transform: scale(1.1);
  border: 2px solid #333;
  border-radius: 5px;
}

.controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.info__message {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.tray {
  overflow-x: auto;
  white-space: nowrap;
}
.tray__slide {
  display: inline-flex;
}
.tray__swatch {
  width: 50px;
  height: 50px;
  margin: 0 4px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.frame {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 5;
}
.frame__title {
  font-size: 1.5rem;
  font-weight: bold;
}
