/* ============================================
   KEOPS — Site Vitrine
   Custom styles (Tailwind via CDN handles the rest)
   ============================================ */

/* --- Smooth scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Navbar blur background --- */
.navbar-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Scroll-reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 360ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 480ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 600ms; }

/* --- Gradient text --- */
.gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #A78BFA 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero illustration placeholder --- */
.hero-illustration {
  background: linear-gradient(135deg, rgba(79,70,229,0.1) 0%, rgba(124,58,237,0.1) 100%);
  border: 2px dashed rgba(165,180,252,0.3);
}

/* --- Logo carousel (removed) --- */

/* --- Card hover effects --- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(79, 70, 229, 0.25);
}

/* --- Fake screenshot mock styles --- */
.mock-screenshot {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  overflow: hidden;
}

.mock-titlebar {
  background: rgba(30, 41, 59, 0.9);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.mock-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

/* --- Gratuit badge --- */
.pricing-gratuit {
  position: relative;
}

.pricing-gratuit::before {
  content: 'Gratuit \00E0  vie';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- CTA pulse animation --- */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid #4F46E5;
  opacity: 0;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.02); }
}

/* --- Pricing card popular badge --- */
.pricing-popular {
  position: relative;
}

.pricing-popular::before {
  content: 'Populaire';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Floating stat cards --- */
.float-card {
  animation: float-gentle 6s ease-in-out infinite;
}

.float-card:nth-child(2) {
  animation-delay: -2s;
}

.float-card:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Testimonial card --- */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 20px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(99, 102, 241, 0.3);
  font-family: Georgia, serif;
}

/* --- Mobile menu overlay --- */
.mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
}

.mobile-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

/* --- Active nav link --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #818CF8;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Stat counter --- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* --- Form focus styles --- */
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  border-color: #4F46E5;
}

/* --- Decorative gradient orbs --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.orb-indigo {
  background: #4F46E5;
}

.orb-violet {
  background: #7C3AED;
}

.orb-amber {
  background: #F59E0B;
}

/* --- Module tabs --- */
.module-tab {
  transition: all 0.3s ease;
}

.module-tab.active {
  background: #4F46E5;
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.module-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.module-content.active {
  display: block;
}

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

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(20px);
  }
}
