@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base styles */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #212121;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* Stat numbers */
.stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Card hover */
.card-hover {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Nav */
.nav-blur {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-scrolled {
  background: rgba(33, 33, 33, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #c0cf23 0%, #9ab01a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button styles */
.btn-primary {
  background: #c0cf23;
  color: #212121;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #a7b51c;
  box-shadow: 0 10px 40px -10px rgba(192, 207, 35, 0.5);
  transform: translateY(-2px);
}

.btn-dark {
  background: #212121;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Hero gradient mesh */
.hero-mesh {
  background:
    radial-gradient(ellipse 100% 80% at 60% 0%, rgba(192, 207, 35, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(192, 207, 35, 0.05), transparent 50%);
}

/* Diagonal section */
.diagonal-section {
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  margin-top: -5%;
  padding-top: calc(5% + 5rem);
}

/* Stats card glow */
.stats-card {
  box-shadow:
    0 0 0 1px rgba(192, 207, 35, 0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Book/Magazine shadow */
.book-shadow {
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.25),
    4px 4px 8px rgba(0, 0, 0, 0.15),
    inset -2px 0 4px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-2deg);
  transition: all 0.3s ease;
}

.book-shadow:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-4px);
  box-shadow:
    12px 12px 30px rgba(0, 0, 0, 0.3),
    6px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f7f7f8; }
::-webkit-scrollbar-thumb { background: #d9d9de; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b8b8c0; }

/* ══════════════════════════════════════════════════════════════
   CONFIGURATOR STYLES
   ══════════════════════════════════════════════════════════════ */

/* Step indicator */
.step-indicator {
  transition: all 0.3s ease;
}

.step-indicator.active {
  transform: scale(1.05);
}

/* Form steps */
.form-step {
  display: none;
  animation: fadeInStep 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Selection cards */
.selection-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.selection-card:hover {
  border-color: #c0cf23;
  transform: translateY(-2px);
}

.selection-card.selected {
  border-color: #c0cf23;
  background: #fafbe8;
  box-shadow: 0 0 0 2px #c0cf23;
}

.selection-card.selected .check-icon {
  opacity: 1;
  transform: scale(1);
}

.check-icon {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  height: 8px;
  background: #eeeef0;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  background: #c0cf23;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(192, 207, 35, 0.4);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #c0cf23;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(192, 207, 35, 0.4);
}

/* France departments map */
.departement {
  fill: #eeeef0;
  stroke: #ffffff;
  stroke-width: 1;
  transition: all 0.15s ease;
  cursor: pointer;
}

.departement:hover {
  fill: #dde656;
}

.departement.selected {
  fill: #c0cf23;
}

/* Region groups - subtle region borders */
.region {
  stroke: #d9d9de;
  stroke-width: 0.5;
}

/* Form inputs */
.form-input {
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #c0cf23;
  box-shadow: 0 0 0 3px rgba(192, 207, 35, 0.15);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Pagy pagination styling */
.pagy nav {
  display: flex;
  gap: 0.25rem;
}

.pagy nav a,
.pagy nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.15s;
}

.pagy nav a {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.pagy nav a:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.pagy nav span.current {
  background: #84cc16;
  color: white;
  border: 1px solid #84cc16;
}

.pagy nav span.gap {
  background: transparent;
  border: none;
  color: #9ca3af;
}

.pagy nav a[aria-disabled="true"],
.pagy nav span.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Radar ping animation for CTA buttons */
@keyframes radar-ping {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.btn-radar {
  position: relative;
}

.btn-radar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(132, 204, 22, 0.4);
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}
