/* ===================================================================
   KLD Mockup 3D Viewer — Grand visuel avec rotation
   =================================================================== */

.kld-mockup {
  position: relative;
  width: 100%;
  background: #f0f0f2;
  overflow: hidden;
  user-select: none;
}

/* -- Viewer : grand, fond gris */
.kld-mockup__viewer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem;
  min-height: 500px;
  background: linear-gradient(170deg, #f5f5f7 0%, #e8e8eb 50%, #f0f0f2 100%);
  position: relative;
  cursor: grab;
}

.kld-mockup__viewer:active {
  cursor: grabbing;
}

/* Ombre au sol */
.kld-mockup__viewer::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: 20%;
  right: 20%;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0,0,0,.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Indicateur de rotation */
.kld-mockup__drag-hint {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  color: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  gap: .3rem;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 2;
}

.kld-mockup__drag-hint svg {
  width: 16px;
  height: 16px;
  opacity: .4;
}

.kld-mockup--dragged .kld-mockup__drag-hint {
  opacity: 0;
}

#kld-mockup-canvas {
  display: block;
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.12));
  position: relative;
  z-index: 1;
}

/* -- Boutons face : toujours visibles */
.kld-mockup__controls {
  display: flex;
  gap: 0;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.kld-mockup__face-btn {
  flex: 1;
  padding: .6rem .2rem;
  font-family: 'Lato', -apple-system, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  background: #fff;
  color: #bbb;
  border: none;
  border-right: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 200ms ease;
  line-height: 1.2;
  position: relative;
}

.kld-mockup__face-btn:last-child { border-right: none; }
.kld-mockup__face-btn:hover { color: #666; background: #fafafa; }

.kld-mockup__face-btn--active {
  color: #1a1a2e;
  font-weight: 800;
  background: #fff;
}

.kld-mockup__face-btn--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e94560;
  border-radius: 3px 3px 0 0;
}

/* -- Label zone */
.kld-mockup__zone-label {
  text-align: center;
  font-size: .68rem;
  font-weight: 600;
  color: #999;
  padding: .35rem .5rem;
  background: #fff;
  min-height: 1.2em;
}
.kld-mockup__zone-label:empty { display: none; }

/* -- Responsive */
@media (max-width: 768px) {
  .kld-mockup__viewer { padding: 1.5rem 1rem; min-height: 350px; }
  #kld-mockup-canvas { max-height: 420px; }
}

@media (max-width: 480px) {
  .kld-mockup__viewer { padding: 1rem .75rem; min-height: 280px; }
  #kld-mockup-canvas { max-height: 340px; }
  .kld-mockup__face-btn { font-size: .65rem; padding: .5rem .15rem; }
}
