@import 'tailwindcss';

@theme {
  /* Couleurs primaires */
  --color-pink-primary: #FF30AA;
  --color-blue-primary: #32C8FA;
  --color-violet-primary: #B912DE;
  --color-dark-blue-primary: #000056;
  
  /* Couleurs neutres */
  --color-white: #FFFFFF;
  --color-text-dark: #0B0B1A;
  --color-text-muted: #6B6F85;
  --color-text-light: #8B8FA5;
  
  /* Font family */
  --font-family-base: 'Roboto', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  
  /* Typography Scale - Apple/Stripe style (HUGE) */
  --font-size-hero: clamp(56px, 7vw, 96px);
  --font-size-section: clamp(40px, 5vw, 64px);
  --font-size-subsection: clamp(28px, 3.5vw, 40px);
  --font-size-body-large: 21px;
  --font-size-body: 17px;
  --font-size-body-small: 14px;
  
  --line-height-tight: 1.05;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  
  /* Spacing - Apple/Stripe style (GENEROUS) */
  --container-max-width: 1280px;
  --section-padding-y: clamp(80px, 12vw, 160px);
  --section-padding-y-small: clamp(60px, 10vw, 120px);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Shadows - Premium depth */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.16);
  
  /* Animation */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset et base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text-dark);
  background-color: #F9FAFB;
  line-height: var(--line-height-normal);
  font-size: var(--font-size-body);
}

/* Typography Styles - Apple/Stripe level */
h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0;
}

h2 {
  font-size: var(--font-size-section);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.025em;
  margin: 0;
}

h3 {
  font-size: var(--font-size-subsection);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

h4 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.body-large {
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-relaxed);
  font-weight: 400;
}

.body-small {
  font-size: var(--font-size-body-small);
  line-height: 1.5;
}

/* Gradient Text - Premium */
.gradient-text {
  background: linear-gradient(135deg, #FF30AA 0%, #B912DE 50%, #32C8FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.05em; /* Prevent descender clipping */
}

/* Glass Effect - Modern */
.glass-effect {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-effect-dark {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Premium */
.card-premium {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 48, 170, 0.2);
}

/* Button Premium - Stripe style */
.btn-premium {
  position: relative;
  overflow: hidden;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--transition-base);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-premium:hover::before {
  opacity: 1;
}

/* Grid Pattern - Subtle */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(0, 0, 86, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 86, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Gradient Background */
.gradient-bg {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 48, 170, 0.15), transparent),
              radial-gradient(ellipse 60% 50% at 50% 120%, rgba(50, 200, 250, 0.15), transparent);
}

/* Blur Orbs - Apple style */
.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Smooth Scroll */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Link Styles */
a {
  transition: all var(--transition-fast);
}

button {
  transition: all var(--transition-base);
  cursor: pointer;
}

/* Selection */
::selection {
  background: rgba(255, 48, 170, 0.2);
  color: var(--color-text-dark);
}

/* Focus States */
:focus-visible {
  outline: 2px solid #FF30AA;
  outline-offset: 2px;
}

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Section Utilities */
.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-padding-small {
  padding-top: var(--section-padding-y-small);
  padding-bottom: var(--section-padding-y-small);
}
/* Speed Badge Animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 48, 170, 0.4),
                0 0 20px 0 rgba(185, 18, 222, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 48, 170, 0),
                0 0 30px 0 rgba(185, 18, 222, 0.3);
    transform: scale(1.02);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.speed-badge {
  animation: pulse-glow 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.speed-badge:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 0 0 0 rgba(255, 48, 170, 0.6),
              0 0 40px 0 rgba(185, 18, 222, 0.4);
}

.speed-badge-text {
  background: linear-gradient(
    90deg,
    #FF30AA,
    #B912DE,
    #32C8FA,
    #B912DE,
    #FF30AA
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  font-weight: 700;
}
