@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
  font-family: 'Inter', sans-serif;
}

.gradient-text {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.nav-shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

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

@keyframes arrow-wiggle {
  0%, 100% { 
    transform: translateX(0px); 
  }
  25% { 
    transform: translateX(3px); 
  }
  75% { 
    transform: translateX(-3px); 
  }
}

.arrow-wiggle {
  animation: arrow-wiggle 2s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { 
    opacity: 1; 
  }
  50% { 
    opacity: 0.5; 
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.95);
    opacity: 1;
  }
}

.pulse-ring {
  animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-success {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.7);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(125, 211, 252, 0);
  }
}

.pulse-success {
  animation: pulse-success 2s infinite;
}

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

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.cta-bounce {
  animation: bounce-in 0.8s ease-out;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(125, 211, 252, 0.15);
}

.card-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.card-3d:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.offer-card {
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
  overflow: visible;
}

.offer-card .card-image {
  transition: transform 0.3s ease;
  transform: translateZ(0);
}

.offer-card:hover .card-image {
  transform: scale(1.05) translateZ(0);
}

.card-features {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.card-features.expanded {
  max-height: 500px;
  opacity: 1;
}

.expand-arrow {
  transition: transform 0.3s ease;
}

.expand-arrow.rotated {
  transform: rotate(180deg);
}

.expand-btn {
  transition: all 0.3s ease;
}

.expand-btn:hover {
  background-color: rgba(125, 211, 252, 0.1);
  transform: translateY(-1px);
}

.step-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-enter {
  opacity: 0;
  transform: translateX(-100px);
}

.step-active {
  opacity: 1;
  transform: translateX(0);
}

.step-exit {
  opacity: 0;
  transform: translateX(100px);
}

.offer-selected-badge,
.version-selected-badge {
  width: max-content !important;
  height: max-content !important;
}

.step-container {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.step-indicator.active {
  background-color: #7dd3fc;
  color: white;
}

.progress-bar {
  transition: width 0.3s ease;
}

.pixel-corners {
  clip-path: polygon(
    0 8px, 8px 8px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
  );
}

@media (max-width: 640px) {
  .card-hover:hover {
    transform: translateY(-4px);
  }
  
  .card-3d:hover {
    transform: translateY(-2px) translateZ(0);
  }
}

@media (min-width: 768px) {
  .float-animation {
    animation: float 4s ease-in-out infinite;
  }
}

@media (min-width: 1024px) {
  .card-hover:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(125, 211, 252, 0.2);
  }
}

@media print {
  .gradient-text {
    -webkit-text-fill-color: #7dd3fc;
    color: #7dd3fc;
  }
  
  .card-hover,
  .card-3d,
  .offer-card {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .animate-pulse,
  .animate-pulse-slow,
  .pulse-ring,
  .pulse-success,
  .arrow-wiggle,
  .float-animation {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .float-animation,
  .arrow-wiggle,
  .pulse-ring,
  .pulse-success,
  .animate-pulse-slow {
    animation: none !important;
  }
}

@media (prefers-contrast: high) {
  .gradient-text {
    -webkit-text-fill-color: #38bdf8;
    color: #38bdf8;
  }
  
  .card-hover:hover,
  .card-3d:hover {
    border: 2px solid #7dd3fc;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #7dd3fc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #7dd3fc #f1f5f9;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #7dd3fc;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.coming-soon-overlay {
  position: relative;
}

.coming-soon-overlay::after {
  content: 'Bientôt ⏱️';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  border-radius: inherit;
  z-index: 10;
}
