/* ================================================================
   PMW Service Grid — Styles
   ================================================================ */

/* Section */
.svc {
  padding: 60px 0;
}

.svc h2 {
  margin: 0 0 32px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
}

/* Grille */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: stretch;
}

/* Carte */
.svc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #ecebed;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Image */
.svc-card > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* Contenu */
.svc-body {
  position: relative;
  flex: 1;
  padding: 10px 20px 22px;
  background: #ecebed;
}

/* Dégradé */
.svc-body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -38px;
  height: 38px;
  background: linear-gradient(to bottom,rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.35) 35%,
    rgba(255, 255, 255, 0.95) 85%,
    #ecebed 100%
  );
  pointer-events: none;
}

/* Barre orange */
.svc-card h3::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #c96b1c;
}

.svc-card h3 {
  margin: 10px 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
}

.svc-card h3 a {
  color: #111;
  text-decoration: none;
}

.svc-card p {
  margin: 0;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Effets */
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.svc-card:hover h3 a {
  color: #c96b1c;
}

/* Focus clavier */
.svc-card a:focus-visible {
  outline: 3px solid #c96b1c;
  outline-offset: 4px;
  border-radius: 6px;
}

/* Mobile */
@media (max-width: 600px) {
  .svc {
    padding: 40px 0;
  }

  .svc-grid {
    gap: 18px;
  }

  .svc-body {
    padding: 16px 18px 20px;
  }

  .svc-body::before {
    top: -20px;
    height: 20px;
  }

  .svc-card h3 {
    font-size: 1.15rem;
  }
}
