.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}
.checkbox-label {
  font-weight: bold;
  cursor: pointer;
  margin: 0;
}

.compare-slider {
  position: absolute;
  z-index: 100;
  background: white;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.compare-slider--vertical {
  top: 0; bottom: 0;
  width: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.compare-slider--horizontal {
  left: 0; right: 0;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.compare-slider-handle {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--theme-color);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: ew-resize;
}

.compare-slider--vertical .compare-slider-handle {
  top: 50%;
}

.compare-slider--horizontal .compare-slider-handle {
  left: 50%;
  cursor: ns-resize;
}

/* chevrons */
.compare-slider-handle::before,
.compare-slider-handle::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-style: solid;
  border-color: white;
  border-width: 0 2px 2px 0;
  pointer-events: none;
}

/* vertical */
.compare-slider--vertical .compare-slider-handle::before {
  top: 50%;
  left: 8px;
  transform: translateY(-50%) rotate(135deg);
}
.compare-slider--vertical .compare-slider-handle::after {
  top: 50%;
  right: 8px;
  transform: translateY(-50%) rotate(-45deg);
}

/* horizontal */
.compare-slider--horizontal .compare-slider-handle::before {
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(-135deg);
}
.compare-slider--horizontal .compare-slider-handle::after {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

/* bouton principal */
.comparator-btn {
  width: 100%;
  display: block;
  border: 1px solid var(--theme-color);
  background: white;
  color: var(--theme-color);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.comparator-btn.active {
  background: var(--theme-color);
  color: white;
}

/* groupe orientation */
#orientation-toggle {
  display: flex;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  gap: 10px;
}

.comparator-toggle-btn {
  flex: 1;
  border: 1px solid var(--theme-color);
  background: white;
  color: var(--theme-color);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.comparator-toggle-btn:first-child {
  border-radius: 10px;
}

.comparator-toggle-btn:last-child {
  border-radius: 10px;
}

/* état actif */
.comparator-toggle-btn.active {
  background: var(--theme-color);
  color: white;
}

.compare-label {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  color: #222;
  padding: 4px 8px;
  border-radius: 0;
  font-size: 12px;
  font-weight: bold;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

/* Positionnement pour un slider vertical (découpe gauche/droite) : labels en haut */
.compare-slider--vertical .compare-label-1 {
  top: 15px;
  right: 50%;
  margin-right: 4px;
}
.compare-slider--vertical .compare-label-2 {
  top: 15px;
  left: 50%;
  margin-left: 4px;
}

/* Positionnement pour un slider horizontal (découpe haut/bas) : labels à gauche */
.compare-slider--horizontal .compare-label-1 {
  left: 15px;
  bottom: 50%;
  margin-bottom: 4px;
}
.compare-slider--horizontal .compare-label-2 {
  left: 15px;
  top: 50%;
  margin-top: 4px;
}