/* ══════════════════════════════════════════════════════════════
   QUATRE — EFFECTS SETTINGS PANEL
   Floating customise panel for Ghost / Splash cursor effects
   ═════════════════════════════════════════════════════════════ */

/* ── Wrapper — fixed so it stays in the viewport corner ── */
.effect-settings {
  position: fixed !important;
  bottom: 24px;
  left: 28px;
  z-index: 200 !important;
  pointer-events: auto;
}

/* ── Toggle button — même DA que le mode-switcher pill ── */
.effect-settings__toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.90);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s, color 0.2s;
}

.effect-settings__toggle:hover {
  background: rgba(30, 30, 34, 0.95);
  color: #fff;
}

/* ── Panel ── */
.effect-settings__panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 272px;
  background: rgba(10, 10, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 18px 18px 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  user-select: none;
}

.effect-settings__panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Panel header ── */
.effect-settings__title {
  font-size: 11px;
  font-family: inherit;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 14px;
  font-weight: 500;
}

/* ── Row ── */
.ep-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ep-row:last-child {
  margin-bottom: 0;
}

/* ── Label ── */
.ep-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  min-width: 86px;
  flex-shrink: 0;
  font-family: inherit;
}

/* ── Slider ── */
.ep-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.ep-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.20);
  cursor: pointer;
  transition: transform 0.15s;
}

.ep-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.ep-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

/* ── Value badge ── */
.ep-val {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.40);
  min-width: 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}

/* ── Color swatch ── */
.ep-color {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  background: #B1E8EF;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}

.ep-color input[type="color"] {
  width: 140%;
  height: 140%;
  border: none;
  padding: 0;
  margin: -20% 0 0 -20%;
  cursor: pointer;
  opacity: 0;
  position: absolute;
}

.ep-color-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.ep-color-swatch {
  position: absolute;
  inset: 0;
  border-radius: 5px;
}

.ep-color-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* ── Divider ── */
.ep-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 12px 0;
}

/* ══════════════════════════════════════════════════════════════
   MODE SWITCHER — 3-tab sliding pill, bottom-center of viewport
   Same design pattern as the offre pricing toggle
   ══════════════════════════════════════════════════════════════ */

.effect-mode-switcher {
  position: fixed !important;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200 !important;
  pointer-events: auto;
  /* pill container */
  display: inline-flex;
  align-items: center;
  background: rgba(10, 10, 12, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 4px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Sliding highlight — moves under the active tab */
.effect-mode-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.effect-mode-switcher[data-active="1"] .effect-mode-slider {
  transform: translateX(100%);
}

.effect-mode-switcher[data-active="2"] .effect-mode-slider {
  transform: translateX(200%);
}

/* Tab buttons */
.effect-mode-tab {
  position: relative;
  z-index: 1;
  padding: 7px 22px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 450;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  line-height: 1;
  transition: color 0.22s ease;
  user-select: none;
}

.effect-mode-tab.is-active {
  color: rgba(255, 255, 255, 0.92);
}

.effect-mode-tab:hover:not(.is-active) {
  color: rgba(255, 255, 255, 0.62);
}

/* ── Reset button ── */
.ep-reset {
  width: 100%;
  padding: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.ep-reset:hover {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.70);
}
