/* ================================
   PROCESSUS.HTML - STYLES SPÉCIFIQUES
   ================================ */

/* Section Hero */
.processus-hero {
  background-image: url('../img/process_banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--spacing-4xl) 0;
  text-align: center;
  color: var(--color-text-white);
}

.processus-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.processus-hero-description {
  font-size: var(--font-xl);
  color: #dbeafe;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section processus */
.processus-main {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  padding: var(--spacing-4xl) 0;
}

.processus-intro {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.processus-intro-title {
  font-size: var(--font-4xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.processus-intro-description {
  font-size: var(--font-xl);
  color: var(--color-text-muted);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Timeline container */
.processus-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.processus-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-light));
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

/* Étapes du processus */
.processus-step {
  position: relative;
  margin-bottom: var(--spacing-3xl);
  width: 100%;
}

.processus-step:last-child {
  margin-bottom: 0;
}

/* Alternance gauche/droite */
.processus-step:nth-child(odd) .step-content {
  margin-left: 0;
  margin-right: calc(50% + 2rem);
  text-align: right;
}

.processus-step:nth-child(even) .step-content {
  margin-left: calc(50% + 2rem);
  margin-right: 0;
  text-align: left;
}

/* Numéro de l'étape */
.step-number {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-text-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
  font-weight: 700;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Contenu de l'étape */
.step-content {
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  position: relative;
  transition: var(--transition-normal);
}

.step-content:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* Flèches pointant vers la timeline */
.processus-step:nth-child(odd) .step-content::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 2rem;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-left-color: var(--color-bg-primary);
  transform: translateY(-50%);
}

.processus-step:nth-child(even) .step-content::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 2rem;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-right-color: var(--color-bg-primary);
  transform: translateY(-50%);
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.processus-step:nth-child(odd) .step-header {
  justify-content: flex-end;
}

.processus-step:nth-child(even) .step-header {
  justify-content: flex-start;
}

.step-icon {
  background-color: #dbeafe;
  color: var(--color-primary);
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  font-size: var(--font-2xl);
  margin: 0 var(--spacing-md);
  flex-shrink: 0;
}

.step-title {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.step-subtitle {
  color: var(--color-text-muted);
  font-size: var(--font-base);
}

.step-description {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-features {
  list-style: none;
  padding: 0;
}

.step-features li {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

.processus-step:nth-child(odd) .step-features li {
  justify-content: flex-end;
}

.processus-step:nth-child(even) .step-features li {
  justify-content: flex-start;
}

.step-check {
  color: var(--color-success);
  margin: 0 0.75rem;
  font-size: var(--font-lg);
}

/* Section CTA finale */
.processus-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  text-align: center;
  color: var(--color-text-white);
  margin-top: var(--spacing-3xl);
}

.processus-cta-title {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.processus-cta-description {
  color: #dbeafe;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-lg);
  line-height: 1.6;
}

.processus-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  justify-content: center;
}

@media (min-width: 640px) {
  .processus-cta-buttons {
    flex-direction: row;
  }
}

.processus-cta-button {
  padding: 0.75rem var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.processus-cta-button.primary {
  background-color: var(--color-secondary);
  color: var(--color-text-white);
}

.processus-cta-button.primary:hover {
  background-color: var(--color-secondary-hover);
}

.processus-cta-button.secondary {
  background-color: var(--color-text-white);
  color: var(--color-primary);
}

.processus-cta-button.secondary:hover {
  background-color: var(--color-bg-secondary);
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.processus-step:nth-child(odd) .step-content {
  animation: fadeInLeft 0.8s ease-out;
}

.processus-step:nth-child(even) .step-content {
  animation: fadeInRight 0.8s ease-out;
}

.processus-step:nth-child(1) .step-content { animation-delay: 0.1s; }
.processus-step:nth-child(2) .step-content { animation-delay: 0.2s; }
.processus-step:nth-child(3) .step-content { animation-delay: 0.3s; }
.processus-step:nth-child(4) .step-content { animation-delay: 0.4s; }
.processus-step:nth-child(5) .step-content { animation-delay: 0.5s; }
.processus-step:nth-child(6) .step-content { animation-delay: 0.6s; }

/* Version mobile */
@media (max-width: 768px) {
  .processus-hero {
    padding: var(--spacing-2xl) 0;
  }
  
  .processus-hero-title {
    font-size: var(--font-3xl);
  }
  
  .processus-hero-description {
    font-size: var(--font-lg);
  }
  
  .processus-main {
    padding: var(--spacing-2xl) 0;
  }
  
  .processus-intro-title {
    font-size: var(--font-3xl);
  }
  
  .processus-intro-description {
    font-size: var(--font-lg);
  }
  
  /* Timeline mobile */
  .processus-timeline::before {
    left: 2rem;
  }
  
  .step-number {
    left: 2rem;
    width: 3rem;
    height: 3rem;
    font-size: var(--font-lg);
  }
  
  .processus-step:nth-child(odd) .step-content,
  .processus-step:nth-child(even) .step-content {
    margin-left: 5rem;
    margin-right: 0;
    text-align: left;
  }
  
  .processus-step:nth-child(odd) .step-content::after,
  .processus-step:nth-child(even) .step-content::after {
    left: -12px;
    right: auto;
    border-left-color: transparent;
    border-right-color: var(--color-bg-primary);
  }
  
  .processus-step:nth-child(odd) .step-header,
  .processus-step:nth-child(even) .step-header {
    justify-content: flex-start;
  }
  
  .processus-step:nth-child(odd) .step-features li,
  .processus-step:nth-child(even) .step-features li {
    justify-content: flex-start;
  }
  
  .step-content {
    padding: var(--spacing-lg);
  }
  
  .processus-step {
    margin-bottom: var(--spacing-xl);
  }
  
  .processus-cta {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
  }
  
  .processus-cta-title {
    font-size: var(--font-xl);
  }
}