/* Styles modernes pour la page d'accueil */

/* Custom lightweight animations (replaces external animate.css import) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate__animated {
  animation-duration: 0.6s;
  animation-fill-mode: both;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0); /* Force GPU acceleration */
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.animate__fadeIn {
  animation-name: fadeIn;
}

.animate__delay-1s {
  animation-delay: 0.2s;
}

.animate__delay-2s {
  animation-delay: 0.4s;
}

/* Variables globales */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #BAE6FD;
  --secondary: #7C3AED;
  --secondary-dark: #6D28D9;
  --tech-color: #2563EB;
  --business-color: #C026D3;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #DC2626;
  --dark: #1E293B;
  --light: #F1F5F9;
  --gray: #94A3B8;
  --white: #FFFFFF;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.15);
  
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

/* Reset et styles de base */
body {
  background-color: var(--light);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

.btn-primary, .btn-secondary, .btn-card, .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  border-radius: 3rem;
}

.btn-card {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: currentColor;
  border-radius: var(--radius-full);
  margin-top: 1rem;
  font-weight: 500;
  border: 1px solid currentColor;
}

.btn-card:hover {
  background-color: currentColor;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-card i {
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.btn-card:hover i {
  transform: translateX(4px);
}

.btn-cta {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
}

.btn-cta:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-cta i {
  margin-left: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60%;
  height: 4px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  /* Removed blue line for consistency with specialty pages */
  display: none;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.3rem;
  background-color: var(--primary-light);
  z-index: -1;
}

/* Improved Typewriter Effect */
.specialty-typing-container {
  margin: 1.5rem 0;
  font-size: 1.4rem;
  font-weight: 500;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.specialty-typing-container p {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
}

.typewriter {
  display: inline-block;
  position: relative;
  color: var(--primary);
  font-weight: 700;
  margin-left: 0.2em;
  min-width: 10em;
  min-height: 1.4em;
  text-align: left;
}

.typewriter::after {
  content: '|';
  display: inline-block;
  position: relative;
  color: var(--primary);
  font-weight: 700;
  margin-left: 0.1em;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Section with enhanced styling */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #BAE6FD 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -10px 20px -10px rgba(0,0,0,0.05);
}

/* Add pseudo-element for background transitions */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Use CSS variable set by JS, with fallback to default */
  background: var(--hero-before-bg-dynamic, linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #BAE6FD 100%));
  opacity: 0; /* Hidden by default */
  transition: opacity 0.7s ease; /* Animate opacity */
  z-index: 0; /* Behind content */
}

/* When the pseudo-element becomes active (via JS) */
.hero-section.background-active::before {
  opacity: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .hero-cta .btn-large {
    min-width: 250px;
  }
}

/* Orbiting tech icons with enhanced styling */
.tech-orbit {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
  perspective: 1000px;
  z-index: 1;
}

.orbit-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(14, 165, 233, 0.3);
  border-radius: 50%;
  z-index: 1;
}

.tech-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55px;
  height: 55px;
  margin-top: -27.5px;
  margin-left: -27.5px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  box-shadow: var(--shadow);
  transition: all 0.3s ease, transform 0s;
  z-index: 2;
  text-decoration: none;
  --tx: 0px;
  --ty: 0px;
  transform: translate(var(--tx), var(--ty));
}

.tech-icon:hover {
  z-index: 2;
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.1);
  text-decoration: none;
}

/* Smart fix: When hovering any tech icon, boost the entire visual container's z-index */
.hero-visual:has(.tech-icon:hover) {
  z-index: 20;
}

/* Style pour le tooltip qui affiche le nom de la spécialité */
.icon-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
  box-shadow: var(--shadow);
  pointer-events: none;
  z-index: 9999;
}

.icon-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--dark);
}

.tech-icon:hover .icon-tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}

/* Style pour l'icône en hover avec effet de clonage */
.tech-icon.hovered {
  z-index: 10;
  background-color: var(--primary);
  color: var(--white);
}

/* Animation pour l'effet de pulse */
@keyframes pulse {
  0% { transform: scale(1.5); opacity: 0.2; }
  50% { transform: scale(1.8); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0.2; }
}

/* Style pour l'élément de pulse */
.icon-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: -1;
  transform: scale(1.5);
  opacity: 0.2;
  animation: pulse 2s infinite;
  pointer-events: none; /* Pour que l'élément ne bloque pas les événements de la souris */
}

/* Label central pour l'orbite */
.center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.center-label span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-align: center;
  line-height: 1.2;
}

/* Stats Band with enhanced styling */
.stats-band {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  /* Use a subtle gradient related to the main theme */
  background: linear-gradient(to right, var(--light), #E0F2FE, var(--light)); 
  padding: 4rem 2rem; /* Increased padding */
  box-shadow: 0 -10px 30px rgba(0,0,0,0.03), 0 10px 30px rgba(0,0,0,0.03);
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  gap: 2rem; /* Add gap between items */
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Remove margin, use gap in parent */
  text-align: center;
  background-color: #f8fafc; /* Slightly off-white background */
  padding: 2rem 1.5rem; /* Adjusted padding */
  border-radius: 1rem;
  border: 1px solid #e5e7eb; /* Subtle border */
  box-shadow: 0 8px 16px rgba(0,0,0,0.04); /* Slightly adjusted shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
  min-width: 200px; /* Increased min-width */
  flex: 1; /* Allow items to grow but maintain min-width */
  max-width: 280px; /* Add max-width */
}

.stat-item:hover {
  transform: translateY(-8px); /* Increased lift */
  box-shadow: 0 15px 30px rgba(0,0,0,0.08); /* Enhanced shadow on hover */
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-symbol {
  font-size: 2rem; /* Reduced size slightly */
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 0.25rem; /* Add space before symbol */
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 500;
  margin-top: 0.75rem; /* Increased margin-top */
  display: flex; /* Use flex for icon alignment */
  align-items: center;
  gap: 0.5rem; /* Space between icon and text */
}

.stat-label i {
  color: var(--primary-dark); /* Use a slightly darker color for icon */
  font-size: 1.1rem;
}

/* Specialties Section with enhanced styling */
.specialties-section {
  padding: 5rem 2rem;
  background-color: var(--light);
  text-align: center;
}

.category-cards {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.category-card {
  flex: 1;
  min-width: 320px;
  max-width: 650px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}

.category-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.tech-card {
  border-top: 5px solid var(--tech-color);
}

.business-card {
  border-top: 5px solid var(--business-color);
}

.category-content {
  padding: 2.5rem;
  z-index: 10;
  position: relative;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  position: relative;
}

.category-card h3:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: currentColor;
  border-radius: var(--radius-full);
}

.tech-card h3, .tech-card .btn-card {
  color: var(--tech-color);
}

.business-card h3, .business-card .btn-card {
  color: var(--business-color);
}

.category-card p {
  color: var(--gray);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.specialty-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
}

.specialty-list li {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  padding-left: 0.25rem;
  transition: transform 0.2s ease;
}

.specialty-list li:hover {
  transform: translateX(5px);
  color: var(--dark);
}

.specialty-list i {
  margin-right: 0.85rem;
  color: var(--primary);
  font-size: 1.1rem;
}

.card-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  overflow: hidden;
  opacity: 0.05;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.category-card:hover .card-visual {
  opacity: 0.08;
}

.code-bg, .graph-bg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.code-line {
  height: 8px;
  background-color: var(--tech-color);
  margin-bottom: 1.25rem;
  border-radius: var(--radius-full);
  width: 100%;
}

.code-line:nth-child(2) { width: 80%; }
.code-line:nth-child(3) { width: 60%; }
.code-line:nth-child(4) { width: 70%; }
.code-line:nth-child(5) { width: 40%; }

.graph-bar {
  height: 20px;
  background-color: var(--business-color);
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
}

.graph-bar:nth-child(1) { width: 60%; }
.graph-bar:nth-child(2) { width: 80%; }
.graph-bar:nth-child(3) { width: 40%; }
.graph-bar:nth-child(4) { width: 70%; }

.graph-line {
  height: 3px;
  width: 100%;
  background-color: var(--business-color);
  border-radius: var(--radius-full);
  margin-top: 1rem;
}

/* Specialties Grid with enhanced styling */
.specialties-grid {
  padding: 5rem 2rem;
  text-align: center;
}

.tech-specialties {
  background-color: var(--white);
}

.business-grid {
  background: linear-gradient(to bottom, var(--light) 0%, #E0F2FE 100%);
}

.specialties-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* Force 3 columns specifically for the tech specialties grid on wider screens */
@media (min-width: 992px) { /* Adjust breakpoint as needed */
  #tech-specialties .specialties-masonry {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px; /* Adjust max-width for 3 columns */
  }
  /* Also force 3 columns for business grid */
  #business-specialties .specialties-masonry {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px; /* Adjust max-width for 3 columns */
  }
}

.specialite-card {
  background-color: var(--white);
  background-image: linear-gradient(to bottom, var(--white) 80%, hsla(from var(--card-color) h s l / 0.1));
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: 5px solid var(--card-color);
}

.specialite-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 20px hsla(from var(--card-color) h s l / 0.3);
}

.specialite-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  flex-shrink: 0;
  margin: 0 auto 1.75rem;
  background-color: var(--card-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.specialite-card:hover .specialite-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.specialite-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dark);
  transition: color 0.3s ease;
}

.specialite-card:hover h3 {
  color: var(--card-color);
}

.specialite-card p {
  color: var(--gray);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  flex-grow: 1;
}

.specialite-card .btn-primary {
  background-color: var(--card-color);
  border-color: var(--card-color);
  align-self: center;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.specialite-card .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  background-color: var(--white);
  color: var(--card-color);
}

/* Testimonials with improved styling */
.testimonials-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  text-align: center;
  position: relative;
}

.testimonials-section:before, .testimonials-section:after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(186, 230, 253, 0.4);
  z-index: 0;
}

.testimonials-section:before {
  top: -50px;
  left: 10%;
}

.testimonials-section:after {
  bottom: -50px;
  right: 10%;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  margin: 1.5rem auto;
  text-align: left;
  display: none;
  transform: scale(0.95);
  transition: all 0.4s ease;
  opacity: 0;
}

.testimonial-card.active {
  display: block;
  transform: scale(1);
  opacity: 1;
}

.testimonial-content {
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 2.25rem;
  position: relative;
  font-style: italic;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -35px;
  left: -15px;
  font-size: 6rem;
  color: var(--primary-light);
  opacity: 0.6;
  line-height: 1;
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 1.5rem;
}

.author-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.25rem;
  border: 3px solid var(--primary-light);
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

.author-info p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.testimonial-prev, .testimonial-next {
  background-color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  color: var(--primary);
  transition: all 0.3s ease;
  margin: 0 0.5rem;
}

.testimonial-prev:hover, .testimonial-next:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.testimonial-dots {
  display: flex;
  gap: 0.65rem;
  margin: 0 1.25rem;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: var(--gray);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.4);
}

/* CTA Section with enhanced styling */
.cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.cta-section h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--white);
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2.75rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--primary);
  padding: 0.875rem 2.25rem;
  font-weight: 700;
  border-radius: 3rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  animation: pulse-cta 2.5s infinite ease-in-out;
}

@keyframes pulse-cta {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
}

.cta-section .btn-primary:hover {
  background-color: var(--light);
  color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  animation-play-state: paused;
}

.cta-section .btn-secondary {
  border-color: var(--white);
  color: var(--white);
  padding: 0.875rem 2.25rem;
  font-weight: 700;
  border-radius: 3rem;
  background-color: transparent;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-width: 2px;
}

.cta-section .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.cta-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.dec-circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  animation: float 8s ease-in-out infinite;
}

.dec-circle:nth-child(1) {
  width: 350px;
  height: 350px;
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.dec-circle:nth-child(2) {
  width: 250px;
  height: 250px;
  bottom: -50px;
  right: 50px;
  animation-delay: 2s;
}

.dec-circle:nth-child(3) {
  width: 180px;
  height: 180px;
  top: 50px;
  right: -50px;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Ajustements pour les media queries */
@media (max-width: 1200px) {
  .tech-orbit {
    width: 450px;
    height: 450px;
  }
  
  .tech-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 1rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1rem;
  }
  
  .hero-content {
    margin-top: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .specialty-typing-container {
    font-size: 1.2rem;
    height: auto;
    min-height: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .specialties-masonry {
    column-count: 1;
    gap: 1rem;
  }
  
  .hero-cta {
    margin-top: 1.5rem;
  }
  
  .btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .testimonial-content {
    padding: 1.5rem;
  }
  
  .category-card {
    padding: 1.5rem;
  }
  
  .cta-section h2 {
    font-size: 1.8rem;
  }
  
  .cta-section p {
    font-size: 0.95rem;
  }
  
  .hero-visual {
    max-width: 380px;
  }
  
  .tech-orbit {
    width: 350px;
    height: 350px;
  }
  
  .tech-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .center-label {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
  
  .center-label span {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .specialties-masonry {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-content {
    margin-top: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .hero-cta {
    margin-top: 1rem;
  }
  
  .btn-large {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .cta-section h2 {
    font-size: 1.6rem;
  }
  
  .cta-section p {
    font-size: 0.9rem;
  }
  
  .hero-visual {
    max-width: 320px;
  }
  
  .tech-orbit {
    width: 300px;
    height: 300px;
  }
  
  .tech-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .icon-tooltip {
    display: none;
  }
  
  .center-label {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
  
  .center-label span {
    font-size: 1.3rem;
  }
  
  .specialty-typing-container {
    font-size: 1.1rem;
  }
  
  .stat-item {
    flex-basis: 100%;
    margin-bottom: 1rem;
  }
  
  .stats-band {
    padding: 1.5rem 1rem;
  }
}

/* Scroll Animation Styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggering delay using CSS custom properties (set by JS) */
.animate-on-scroll {
  transition-delay: var(--scroll-anim-delay, 0s);
}

/* Add glow based on category */
.tech-card:hover {
   box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 25px rgba(37, 99, 235, 0.3);
}
.business-card:hover {
   box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 25px rgba(192, 38, 211, 0.3);
  }
  
.category-card .btn-card {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: currentColor;
  border-radius: var(--radius-full);
  margin-top: auto;
  align-self: flex-start;
  font-weight: 500;
  border: 1px solid currentColor;
  transition: all var(--transition-normal);
  }
  
.tech-card:hover .btn-card {
  background-color: var(--tech-color);
  color: var(--white);
  border-color: var(--tech-color);
  transform: translateY(-2px) scale(1.05);
}

.business-card:hover .btn-card {
  background-color: var(--business-color);
  color: var(--white);
  border-color: var(--business-color);
  transform: translateY(-2px) scale(1.05);
  }
  
.category-card:hover .btn-card i {
  transform: translateX(6px);
}

/* Microinteractions for buttons */
.btn-primary:active, .btn-secondary:active, .btn-card:active, .btn-cta:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
  }
  
/* Ensure parallax doesn't affect button active state */
.hero-cta .btn-primary:active,
.hero-cta .btn-secondary:active {
    transform: scale(0.97); /* Re-apply scale on active */
} 