/* Styles de base optimisés pour mobile */
body {
  font-size: 16px;
  line-height: 1.5;
}

/* Styles spécifiques à la page des services */
:root {
  --card-bg: rgba(255, 255, 255, 0.1);
  --card-hover-bg: rgba(255, 255, 255, 0.2);
  --card-border: rgba(255, 255, 255, 0.1);
  --icon-color: #7047eb;
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-theme {
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-hover-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.1);
  --icon-color: #5a36c2;
}

#services-hero {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--glass-background);
  border-radius: 10px;
  margin-bottom: 2rem;
}

#services-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-shadow: var(--text-shadow);
}

#services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.service-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover-bg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--icon-color);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-shadow: var(--text-shadow);
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-card ul li {
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.service-link {
  display: inline-block;
  padding: 0.75rem 1.5rem; /* Increased padding for better touch targets */
  background: var(--button-gradient);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem; /* Increased font size for better readability */
  width: 100%; /* Make button full width on mobile */
  max-width: 250px; /* Limit maximum width */
}

.service-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#services-cta {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem 1rem;
  background: var(--glass-background);
  border-radius: 10px;
}

#services-cta h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-shadow: var(--text-shadow);
}

#services-cta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem; /* Increased padding */
  font-size: 1rem; /* Increased font size */
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: var(--button-gradient);
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-top: 5rem;
  width: 100%; /* Make button full width on mobile */
  max-width: 250px; /* Limit maximum width */
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styles pour le nouveau bouton gradient */
.gradient-button {
  position: relative;
  padding: 12px 24px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--background);
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-image: linear-gradient(var(--background), var(--background)),
    linear-gradient(90deg, #ff1b7b, #9333ff, #3366ff, #ff1b7b, #9333ff, #3366ff, #ff1b7b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 200% 100%;
  animation: gradientMove 3s linear infinite;
  text-decoration: none;
  width: 100%; /* Make button full width on mobile */
  max-width: 250px; /* Limit maximum width */
}

.gradient-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 0%, 0% 0%;
  }
  100% {
    background-position: 0% 0%, -200% 0%;
  }
}

/* Ajustements pour les boutons dans les cartes de service */
.service-card .gradient-button {
  padding: 12px 24px; /* Increased padding */
  font-size: 16px; /* Increased font size */
  width: 100%; /* Make button full width on mobile */
  max-width: 250px; /* Limit maximum width */
}

/* Responsive Design */
@media (min-width: 480px) {
  #services-hero {
    padding: 3rem 1.5rem;
  }

  #services-hero h1 {
    font-size: 2.5rem;
  }

  .gradient-text {
    font-size: 1.2rem;
  }

  .service-card {
    padding: 2rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-card h2 {
    font-size: 1.5rem;
  }

  .service-card ul li {
    font-size: 1rem;
  }

  #services-cta h2 {
    font-size: 1.8rem;
  }

  #services-cta p {
    font-size: 1rem;
  }

  .cta-button,
  .service-link,
  .gradient-button {
    width: auto; /* Reset width for larger screens */
    max-width: none; /* Reset max-width for larger screens */
  }
}

@media (min-width: 768px) {
  #services-hero {
    padding: 6rem 2rem;
  }

  #services-hero h1 {
    font-size: 3.5rem;
  }

  .gradient-text {
    font-size: 1.5rem;
  }

  #services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
  }

  .service-card {
    padding: 2.5rem;
  }

  .service-icon {
    font-size: 3rem;
  }

  .service-card h2 {
    font-size: 1.8rem;
  }

  #services-cta {
    padding: 4rem 2rem;
  }

  #services-cta h2 {
    font-size: 2.2rem;
  }

  #services-cta p {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .gradient-button {
    padding: 16px 32px;
    font-size: 20px;
  }

  .service-card .gradient-button {
    padding: 12px 24px;
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  #services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

