/* PASSION AUTO 85 - Styles page d'accueil */

@media (min-width: 1025px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1600px;
    margin: 4rem auto 0 auto;
    padding: 0 2rem;
  }
}

.welcome-content .service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(30, 144, 255, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-content .service-card h3.card-title-bmw {
  color: white;
}

.welcome-content .service-card:hover h3.card-title-bmw {
  color: #00aeef;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-content .service-card:hover p {
  color: #2c3e50;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.welcome-content .service-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.welcome-content .service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.welcome-content .service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.welcome-content .service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.welcome-content .service-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1200px) and (min-width: 1025px) {
  .services-section .container > div {
    max-width: 1400px;
    gap: 1.8rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    padding: 0 1.5rem;
  }
  .service-card {
    min-height: 260px;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 600px;
    padding: 0 1rem;
  }
  .service-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 250px;
  }
}

@media (max-width: 480px) and (min-width: 361px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    padding: 0 0.8rem;
  }
  .service-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 230px;
    padding: 1.5rem;
  }
}

@media (max-width: 360px) {
  .services-section .container > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: 320px;
    padding: 0 0.5rem;
  }
  .service-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 220px;
    padding: 1.2rem;
  }
  .service-card h3 {
    font-size: 1.3rem;
  }
  .service-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .welcome-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .welcome-content .service-card {
    padding-top: 300px;
  }

  .welcome-content .service-card img {
    height: 300px;
  }

  .welcome-content .service-card h3 {
    font-size: 1.5rem;
  }

  .welcome-content .service-card p {
    font-size: 1rem;
  }
}
