.carte {
  position: relative;
  overflow: hidden;
}
.carte > img:first-of-type {
  position: absolute;
  z-index: 0;
  right: 0;
}
.carte .heading {
  margin-top: 100px;
}
.carte .lead {
  margin-top: 20px;
}
.img-carte {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  justify-content: center;
  margin: 40px 0;
}
.card {
  position: relative;
  border-radius: 20px;
}
.card-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  max-width: 325px;
  max-height: 325px;
}
.card .img {
  display: block;
  object-fit: cover;
  max-width: 325px;
  max-height: 325px;
  border-radius: 20px;
  transition: transform 0.5s ease;
  transform-origin: center center;
  position: relative;
  overflow: hidden;
}
.card-img a {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}
.card .svg {
  display: block;
  position: absolute;
  inset: 2% 4% 0% auto;
  z-index: 3;
  pointer-events: none;
  transition: transform 0.5s ease;
}
.card-img > a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 16px;
}
.card:hover .img,
.card:hover .svg {
  transform: scale(1.1);
}
.card-title {
  margin: 10px 0;
}
.line {
  background-color: var(--color-accent);
  width: 50%;
  height: 1.5px;
  margin: 0;
  padding: 0;
}
.card-description {
  max-width: 300px;
  margin: 10px 0;
}

@media screen and (max-width: 1023px) {
  .carte > img:first-of-type {
    width: 50%;
    right: 0;
  }
  .carte .heading {
    margin-top: 80px;
  }
  .img-carte {
    grid-template-columns: auto;
    gap: 20px;
  }
}

@media screen and (max-width: 767px) {
  .carte > img:first-of-type {
    width: 40%;
  }
  .carte .heading {
    margin-top: 40px;
  }
}
