@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Anton&family=Squada+One&family=Black+Ops+One&family=Graduate&family=Righteous&family=Boogaloo&family=Lobster&family=Permanent+Marker&family=Pacifico&family=Montserrat:wght@700&family=Playfair+Display:wght@700&display=swap');
@import url('configurateur-maillot-ui.css');

/* ═══════════════════════════════════════════════════
   CONFIGURATEUR FAUTEUIL — CSS
   ═══════════════════════════════════════════════════ */

#dv-configurateur {
  display: block;
  width: 100%;
  height: 600px;
  position: relative;
}

#dv-configurateur * { box-sizing: border-box; }

.dv-cfg-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

#dv-configurateur viewer-3dvue {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 600px !important;
  aspect-ratio: unset !important;
  margin: 0 !important;
  padding: 0 !important;
}

#dv-configurateur viewer-3dvue iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 600px !important;
  position: absolute !important;
  inset: 0 !important;
  border: none !important;
}

/* Hotspots */
.dv-cfg-hotspots {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 12px;
  pointer-events: none;
  z-index: 20;
}

.dv-hotspot {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: all;
  cursor: default;
  position: relative;
}

.dv-hotspot__label-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
}

.dv-hotspot__label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--dv-font, "DM Sans", sans-serif);
  color: var(--dv-black, #080808);
  background: rgba(255,255,255,0.92);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.dv-hotspot__selection {
  font-size: 10px;
  font-weight: 500;
  font-family: var(--dv-font, "DM Sans", sans-serif);
  color: var(--dv-grey, #6E6E6E);
  background: rgba(255,255,255,0.85);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.dv-hotspot__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dv-violet, #7C3AED);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}

.dv-hotspot__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: dv-pulse 2.5s ease-out infinite;
}

@keyframes dv-pulse {
  0%   { opacity: 0.5; transform: scale(1); }
  80%  { opacity: 0;   transform: scale(1.6); }
  100% { opacity: 0;   transform: scale(1.6); }
}

.dv-hotspot.is-open .dv-hotspot__dot { transform: scale(1.1); }

.dv-hotspot__swatches {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: 0;
  overflow: visible;
  opacity: 0;
  transition: max-width 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s;
  pointer-events: none;
  padding: 6px 0;
  margin: -6px 0;
}

.dv-hotspot.is-open .dv-hotspot__swatches {
  max-width: 300px;
  opacity: 1;
  pointer-events: all;
}

.dv-swatch-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  display: block;
}

.dv-swatch-circle:hover { transform: scale(1.25); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.dv-swatch-circle.is-active { border-color: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.35); }

/* Responsive fauteuil */
@media (max-width: 1024px) {
  #dv-configurateur {
    height: auto;
  }

  .dv-cfg-wrap {
    height: auto;
  }

  #dv-configurateur viewer-3dvue {
    position: relative !important;
    inset: unset !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 3/4 !important;
  }

  #dv-configurateur viewer-3dvue iframe {
    position: relative !important;
    inset: unset !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 3/4 !important;
  }
}
