.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}
.checkbox-label {
  font-weight: bold;
  cursor: pointer;
  margin: 0; /* Pour annuler d'éventuelles marges par défaut */
}

.compare-slider {
  position: absolute;
  z-index: 100;
  cursor: ew-resize;
  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%);
  cursor: ns-resize;
}

.compare-slider-handle {
  position: absolute;
  width: 24px;
  height: 24px;
  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: none; /* important: drag stays on slider */
}

/* vertical mode (left/right split) */
.compare-slider--vertical .compare-slider-handle {
  top: 50%;
}

/* horizontal mode (top/bottom split) */
.compare-slider--horizontal .compare-slider-handle {
  left: 50%;
}

/* 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 {
  position: absolute;
  background-color: rgba(26, 42, 26, 0.85); /* À adapter selon votre thème */
  color: #e0f0e0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid #46ad8b;
  transition: opacity 0.2s;
}

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

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