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

.services-list {
  display: flex;
  justify-content: space-between;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  flex-wrap: wrap;
  margin-top: 5vh; 
  position: relative;
  z-index: 10;
}

.service-item {
  background: #fff;
  padding: 30px;
  flex: 1;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}


.service-item:not(:last-child) {
  /* border-right: 2px solid #e5e5e5; */
}

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

.service-item {
  padding-top: 20px;
}

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

/* Suppression du trait orange */

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

.service-desc {
  color: #333;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: left;
}

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

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

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

@media (min-width: 768px) and (max-width: 992px) {
  .services-list {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: -300px;
  }
  .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-list {
    flex-direction: column;
    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;
}
