/* Section Processus */
.processus-section-main {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.processus-container {
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.processus-title {
  font-size: 1.8rem;
  color: #1C2A33;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 900;
  position: relative;
  padding: 1rem 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  width: 100%;
}

.processus-title::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #026ea7;
  border-radius: 2px;
}

/* Bannière vidéo pour desktop */
.processus-video-banner {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  height: 250px;
  position: relative;
  will-change: auto;
}

.processus-video-banner video {
  width: 100%;
  max-width: 100vw;
  height: 250px;
  display: block;
  object-fit: cover;
  background: #000;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000;
  -webkit-perspective: 1000;
}

@media (max-width: 768px) {
  .processus-video-banner {
    height: auto;
    min-height: 250px;
  }
  
  .processus-video-banner video {
    height: auto;
    min-height: 250px;
    max-height: 350px;
    object-fit: cover;
    width: 100%;
  }
}

.processus-steps {
  display: none !important;
}

.processus-step {
  display: none !important;
}

.processus-step.animate {
  animation: fadeInUpProcess 0.6s ease-out forwards;
}

.processus-step:nth-child(1).animate {
  animation-delay: 0.1s;
}

.processus-step:nth-child(3).animate {
  animation-delay: 0.2s;
}

.processus-step:nth-child(5).animate {
  animation-delay: 0.3s;
}

.processus-step:nth-child(7).animate {
  animation-delay: 0.4s;
}

@keyframes fadeInUpProcess {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.processus-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(2, 110, 167, 0.5);
  border-color: #0373ab;
}

.processus-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processus-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.processus-step h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #026ea7;
  margin: 0;
}

.processus-arrow {
  display: none;
}

@media (max-width: 768px) {
  .processus-container {
    padding-top: 1rem;
    background: transparent;
  }

  .processus-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: none;
    color: #1C2A33;
  }

  .processus-video-banner {
    display: block;
    height: auto;
    min-height: 200px;
  }

  .processus-video-banner video {
    height: auto;
    min-height: 200px;
  }

  .processus-steps {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem 3rem;
    align-items: center;
    justify-items: center;
    max-width: 400px;
    margin: 0 auto;
  }

  .processus-arrow {
    display: none !important;
  }

  .processus-step {
    background: white;
    padding: 1.2rem 1rem;
    border-radius: 50%;
    text-align: center;
    border: 1px solid #026ea7;
    box-shadow: 0 4px 15px rgba(2, 110, 167, 0.3);
    transition: all 0.3s ease;
    min-height: 140px;
    max-width: 140px;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    aspect-ratio: 1/1;
  }

  .processus-step::before {
    content: attr(data-number);
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 25px;
    height: 25px;
    background: #026ea7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
  }

  .processus-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 0.5rem;
  }

  .processus-step h4 {
    font-size: 0.95rem;
    color: #026ea7;
  }
}

@media (max-width: 480px) {
  .processus-steps {
    gap: 1.5rem 2rem;
    max-width: 300px;
  }

  .processus-step {
    padding: 0.8rem;
    min-height: 110px;
    max-width: 110px;
    width: 110px;
    height: 110px;
  }

  .processus-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.3rem;
  }

  .processus-step h4 {
    font-size: 0.75rem;
  }

  .processus-step::before {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }
}