/* Hero Section IA */
.hero-ia {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-ia::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}

.hero-ia h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-ia .lead {
  font-size: 1.3rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* Technologies Grid */
.ia-technologies {
  padding: 60px 0;
  background: var(--bg-primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.tech-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

.tech-card:nth-child(2) .tech-icon {
  animation-delay: 0.2s;
}

.tech-card:nth-child(3) .tech-icon {
  animation-delay: 0.4s;
}

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

.tech-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.tech-card ul {
  list-style: none;
  padding: 0;
}

.tech-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.tech-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Use Cases Grid */
.ia-use-cases {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.use-case {
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
}

.use-case:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.use-case h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.use-case p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Benefits Section */
.ia-benefits {
  padding: 60px 0;
  background: var(--bg-primary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.benefit:hover {
  transform: scale(1.05);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.benefit h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.benefit p {
  color: var(--text-secondary);
}

/* Process Steps */
.ia-process {
  padding: 60px 0;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

.process-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(102, 126, 234, 0.3));
}

.process-steps li {
  counter-increment: step-counter;
  padding-left: 80px;
  margin-bottom: 3rem;
  position: relative;
}

.process-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 10px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.process-steps li h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.process-steps li p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta-ia {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-ia::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-ia h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-ia .lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta-ia .btn {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-ia h1 {
    font-size: 2rem;
  }
  
  .hero-ia .lead {
    font-size: 1.1rem;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps li {
    padding-left: 60px;
  }
  
  .process-steps::before {
    left: 20px;
  }
  
  .process-steps li::before {
    left: 0;
  }
  
  .cta-ia h2 {
    font-size: 1.8rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .tech-card {
    background: rgba(30, 30, 40, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .tech-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
  }
  
  .use-case {
    background: rgba(30, 30, 40, 0.8);
  }
  
  .benefit {
    background: rgba(30, 30, 40, 0.8);
  }
  
  .process-steps::before {
    background: linear-gradient(to bottom, var(--color-primary), rgba(102, 126, 234, 0.2));
  }
}

/* Animations d'entrée */
.tech-card,
.use-case,
.benefit,
.process-steps li {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.tech-card:nth-child(1) { animation-delay: 0.1s; }
.tech-card:nth-child(2) { animation-delay: 0.2s; }
.tech-card:nth-child(3) { animation-delay: 0.3s; }

.use-case:nth-child(1) { animation-delay: 0.1s; }
.use-case:nth-child(2) { animation-delay: 0.15s; }
.use-case:nth-child(3) { animation-delay: 0.2s; }
.use-case:nth-child(4) { animation-delay: 0.25s; }
.use-case:nth-child(5) { animation-delay: 0.3s; }
.use-case:nth-child(6) { animation-delay: 0.35s; }

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