/* ==========================================
   SERVICES SECTION
   ========================================== */

.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 40px;
  padding-bottom: 20px;
}

.services h2 {
  margin-bottom: 0;
  color: #fff !important;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.5);
}

/* Grid avec scroll horizontal mobile */
.grid-services {
  display: grid;
  grid-template-rows: 360px;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 20px;
  padding: 5px 15px 15px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 43, 226, 0.5) transparent;
}

.grid-services::-webkit-scrollbar {
  height: 8px;
}

.grid-services::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 0 15px;
}

.grid-services::-webkit-scrollbar-thumb {
  background: rgba(138, 43, 226, 0.5);
  border-radius: 10px;
}

.grid-services::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 43, 226, 0.8);
}

/* Animation delays */
.carte-container:nth-child(1).carte-visible {
  animation-delay: 0s;
}
.carte-container:nth-child(2).carte-visible {
  animation-delay: 0.1s;
}
.carte-container:nth-child(3).carte-visible {
  animation-delay: 0.2s;
}

/* Colonne unique sur mobile */
@media (max-width: 599px) {
  .grid-services {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: 210px;
    grid-auto-rows: 360px;
    overflow-x: visible;
    overflow-y: visible;
    justify-content: center;
    scroll-snap-type: none;
    scrollbar-width: none;
    padding: 20px 0;
  }
}
