/* Section Services */
#services {
  padding-bottom: 2rem;
  padding-top: 1rem;
  position: relative;
  background-image: url('../images/ap4.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

#services .section-title {
  color: #026ea7;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  z-index: 0;
}

#services .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease, opacity 0.6s ease;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.service-card.animate {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

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

.service-card:nth-child(2).animate {
  animation-delay: 0.25s;
}

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

.service-card:nth-child(4).animate {
  animation-delay: 0.55s;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation du diaporama services (mobile) */
.services-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #026ea7;
  border: none;
  padding: 0;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  width: auto;
  height: auto;
}

.services-arrow:hover {
  color: #025580;
}

.services-arrow.prev {
  left: 10px;
}

.services-arrow.next {
  right: 10px;
}

/* Indicateurs du diaporama services */
.services-indicators {
  display: none;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.service-indicator {
  width: 40px;
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.service-indicator.active {
  background: #026ea7;
  width: 60px;
}

@media (max-width: 768px) {
  #services {
    padding-bottom: 3rem;
    padding-top: 2rem;
  }

  #services .container {
    position: relative;
    padding: 0 1rem;
    max-width: 100%;
  }

  .services-grid {
    display: flex;
    overflow: visible;
    position: relative;
    min-height: 420px;
    width: 100%;
  }

  .service-card {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    display: none !important;
    padding: 1.2rem 1.2rem;
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .service-card.active {
    display: flex !important;
    opacity: 1;
    transform: translateX(0);
  }

  .service-card h3 {
    min-height: auto;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .service-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 0.8rem;
  }

  .service-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 0.3rem;
  }

  .btn-service {
    margin-top: auto;
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
  }

  .services-arrow {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }

  .services-arrow.prev {
    left: -15px;
  }

  .services-arrow.next {
    right: -15px;
  }

  .services-indicators {
    display: none !important;
  }
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.1rem;
  color: #1C2A33;
  margin-bottom: 1rem;
  font-weight: 700;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.2rem;
  flex-grow: 1;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.btn-service {
  display: inline-block;
  background: transparent;
  color: #0373ab;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-service:hover {
  color: #025580;
  transform: translateY(-2px);
}

.services-arrow,
.services-indicators {
  display: none;
}

/* Styles pour les bannières vidéo sur mobile */
@media (max-width: 768px) {
  .video-banner {
    height: 300px; /* Augmentation de la hauteur */
  }
}

/* Cache les icônes des réseaux sociaux sur mobile */
.social-icons-container {
  display: block; /* Par défaut visible */
}

@media (max-width: 768px) {
  .social-icons-container {
    display: none; /* Caché sur mobile */
  }
}