/* Variables CSS - Sophisticated Color Palette */
:root {
  --primary-purple: #6B46C1;
  --primary-pink: #BE185D;
  --dark-purple: #4C1D95;
  --medium-purple: #7C3AED;
  --light-purple: #A78BFA;
  --accent-pink: #DB2777;
  --soft-pink: #F9A8D4;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-bg: #F8F8FC;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --gradient-primary: linear-gradient(135deg, #6B46C1 0%, #BE185D 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(190, 24, 93, 0.05) 100%);
  --gradient-accent: linear-gradient(135deg, #7C3AED 0%, #DB2777 100%);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(107, 70, 193, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(107, 70, 193, 0.12);
  --shadow-xl: 0 24px 48px -12px rgba(107, 70, 193, 0.18);
  --shadow-glow: 0 0 32px rgba(107, 70, 193, 0.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Add Google Fonts link dynamically */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Header et Navigation */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 70, 193, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  letter-spacing: -0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

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

.nav-links a:hover {
  color: var(--primary-purple);
}

/* CTA Button in Navbar */
.nav-cta {
  padding: 0.75rem 1.75rem;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.nav-cta:hover::before {
  left: 100%;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(165deg, #F8F8FC 0%, #FFFFFF 50%, #FAF5FF 100%);
  padding: 8rem 2rem 10rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(107, 70, 193, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(190, 24, 93, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  margin-bottom: 2.5rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Decorative shapes in hero */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
}

.shape-1 {
  top: 15%;
  left: 10%;
  width: 120px;
  height: 120px;
  background: var(--gradient-accent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 15s ease-in-out infinite;
}

.shape-2 {
  bottom: 20%;
  right: 15%;
  width: 150px;
  height: 150px;
  background: var(--gradient-primary);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: morph 20s ease-in-out infinite reverse;
}

@keyframes morph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: rotate(180deg) scale(1.1);
  }
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 1rem;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.2);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(107, 70, 193, 0.3);
}

.btn-gradient {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.2);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(107, 70, 193, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-purple);
  color: var(--primary-purple);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.1);
}

.btn-outline:hover {
  background: var(--primary-purple);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.25);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

/* Sections */
.section {
  padding: 7rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--gray-600);
  margin-bottom: 5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Grille de services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(107, 70, 193, 0.06);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(107, 70, 193, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(107, 70, 193, 0.12);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.08);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(107, 70, 193, 0.15);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 1rem;
}

/* Packs de services */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(107, 70, 193, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-subtle);
  transition: all 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(107, 70, 193, 0.15);
}

.pricing-card:hover::before {
  background: var(--gradient-primary);
  height: 8px;
}

.pricing-card.featured {
  border: 2px solid var(--primary-purple);
  box-shadow: var(--shadow-xl);
  transform: scale(1.05);
  background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.pricing-card.featured::before {
  background: var(--gradient-primary);
  height: 6px;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-12px);
  box-shadow: 0 24px 48px rgba(107, 70, 193, 0.25);
}

.featured-badge {
  position: absolute;
  top: -1px;
  right: 30px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.65rem 1.75rem;
  border-radius: 0 0 16px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(107, 70, 193, 0.25);
}

.pricing-card h3 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card .pack-description {
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  min-height: 60px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 0;
  flex-grow: 1;
}

.pricing-card li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-size: 0.975rem;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.pricing-card li:hover {
  padding-left: 8px;
  color: var(--gray-900);
}

.pricing-card li:last-child {
  border-bottom: none;
}

.pricing-card li::before {
  content: '✓';
  color: var(--primary-purple);
  font-weight: bold;
  margin-right: 1rem;
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 70, 193, 0.08);
  border-radius: 6px;
}

/* Formulaires */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-800);
}

.form-control {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Checkboxes et radios */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-item label,
.radio-item label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--gray-300);
  line-height: 2;
}

.footer-section a:hover {
  color: var(--light-pink);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  color: var(--gray-300);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    padding: 1rem 1.5rem;
  }

  .nav-content {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    align-items: flex-start;
  }

  .nav-content.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.125rem;
    width: 100%;
    padding: 0.75rem 0;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 5rem 1.5rem 6rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }

  .hero {
    padding: 4rem 1rem 5rem;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}
