.services-section {
  background: transparent !important;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  margin-top: 8vh;
  position: relative;
  z-index: 10;
}

.service-item {
  background: #fff;
  padding: 15px;
  flex: 1;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
  border-left: 3px solid #DF6B22;
}

.service-image {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  margin: 1vh 0;
}
.service-image img {
  width: 50px;
  height: 50px;
  margin-right: 0.5em;
  object-fit: cover;
}

/* Ruban orange */
.service-item {
  position: relative;
}

.service-item {
  padding-top: 10;
}


/* Suppression du trait orange */

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #DF6B22;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 0.5rem;
  text-align: left;
}

.service-desc {
  color: #3b4656;
  font-size: 0.9rem;
  margin: 1rem 0;
  line-height: 1.6;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: justify;
}


.service-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #1e293b;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 800;
  transition: color 0.2s;
}

.service-link:hover {
  color: #DF6B22;
}

.service-link svg {
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.2em;
  fill: currentColor;
}

.services-accueil-section {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.services-accueil-list{
  padding: 1.3rem;
  position: absolute;
  width: 90%;
  background: white;
  z-index: 10;
  margin-top: -7vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 10px;
}

.service-accueil-item {
  padding: 0 0.9rem;
  position: relative;
  text-align: center;
}

.service-accueil-item:before {
  content: '';
  position: absolute;
  top: -2.4rem;
  left: 0.7vw;
  width: 15px;
  height: 35px;
  background-color: #DF6B22;
  z-index: 10;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

.service-accueil-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #DF6B22;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 0.5rem;
  text-align: left;
}

.service-accueil-desc {
  color: #3b4656;
  font-size: 1.1rem;
  margin: 1rem 0;
  line-height: 1.6;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: justify;
}

@media (min-width: 768px) and (max-width: 992px) {
  .services-accueil-section {
    padding: 1rem 0;
  }
  
  .service-accueil-item:before {
    display: none;
  }

  .services-accueil-list {
    position: relative;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px 0;
    margin-top: 0;
  }

  .services-list {
    display: block;
  }
  .service-item {
    flex: 0 0 calc(33.33% - 15px);
    padding: 25px 15px;
    box-sizing: border-box;
  }
  .service-item:not(:last-child) {
    border-right: none;
  }
  .service-item:nth-child(n+4) {
    margin-top: 15px;
  }
}

@media (max-width: 767px) {
  .services-accueil-list {
    position: relative;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px 0;
    margin-top: 0;
  }

  .service-accueil-item:before {
    display: none;
  }

  .services-accueil-section {
    padding: 1rem 0;
  }

  .services-list {
    display: block;
    margin-top: 30px;
    z-index: 1;
  }
  .service-item {
    margin: 0;
    border-right: none !important;
    padding: 25px 20px;
    border-bottom: none;
  }
  .service-item:not(:last-child) {
    margin-bottom: 15px;
  }
  .service-title {
    font-size: 1.6rem;
    text-align: center;
  }
  .service-desc {
    font-size: 1.1rem;
    text-align: center;
  }
  .service-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-list {
    max-width: 95%;
  }
  .service-item {
    padding: 25px 15px;
  }
  .service-item:before {
    left: 50%;
    transform: translateX(-50%);
  }
  .service-title {
    font-size: 1.4rem;
  }
  .service-desc {
    font-size: 1rem;
  }
  .service-link {
    font-size: 1.2rem;
  }
}

/* Classes de débogage */
.debug-services {
  border: 2px solid #ff0000;
}

.debug-no-services {
  color: #ff0000;
  font-weight: bold;
  padding: 1rem;
  text-align: center;
}

.debug-service-item {
  border: 1px solid #00ff00;
}
