/* NotorioLinks — CSS custom (tokens et surcharges Tailwind) */

:root {
  --primary-900: #0B1E47;
  --primary-700: #1E3A8A;
  --primary-500: #3B82F6;
  --accent-500:  #10B981;
  --accent-600:  #059669;
  --ink-900:     #0F172A;
  --ink-600:     #475569;
  --danger:      #DC2626;
  --border:      #E2E8F0;
}

html { scroll-behavior: smooth; }

/* ========= BUTTONS / CARDS ========= */
.transition-press { transition: transform 150ms ease-out; }
.transition-press:active { transform: scale(0.98); }

.hover-lift {
  transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
  border-color: #cbd5e1;
}

/* ========= SCROLL REVEAL ========= */
.fade-in-up { animation: fadeInUp 400ms ease-out both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========= HERO BLOBS (subtils, respect reduced-motion) ========= */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.hero-blob-1 {
  top: -80px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, #3B82F6, transparent 70%);
  animation: blobFloat 14s ease-in-out infinite;
}
.hero-blob-2 {
  bottom: -100px; right: -60px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, #10B981, transparent 70%);
  animation: blobFloat 18s ease-in-out infinite reverse;
  animation-delay: -5s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 30px) scale(0.95); }
}

/* ========= SLIDER PREMIUM ========= */
.range-wrap { position: relative; padding: 8px 0 28px; }
.range-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent-500) 0%,
    var(--accent-500) var(--slider-fill, 0%),
    #E2E8F0 var(--slider-fill, 0%),
    #E2E8F0 100%
  );
  outline: none;
  cursor: pointer;
  transition: background 120ms linear;
}
.range-wrap input[type="range"]:focus { outline: none; }
.range-wrap input[type="range"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
  border-radius: 999px;
}
/* WebKit thumb */
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--accent-500);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: grab;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
  margin-top: -9px;
}
.range-wrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}
.range-wrap input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.22);
  cursor: grabbing;
}
/* Firefox thumb */
.range-wrap input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--accent-500);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: grab;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.range-wrap input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}
.range-wrap input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: transparent;
}

/* Ticks sous le slider */
.range-ticks {
  position: relative;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 11px;
  color: var(--ink-600);
  font-weight: 500;
}
.range-ticks > span { text-align: center; }
.range-ticks > span:first-child { text-align: left; }
.range-ticks > span:last-child  { text-align: right; }

/* Price pulse on change */
.price-pulse { animation: pricePulse 280ms ease-out; }
@keyframes pricePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); color: var(--accent-500); }
  100% { transform: scale(1); }
}

/* ========= COUNTER ANIMATION (sur stats) ========= */
.counter-up { display: inline-block; min-width: 1ch; }

/* ========= REDUCED MOTION ========= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-blob { opacity: 0.25; }
}
