/* Titres */

#prestations-text h2 {
  margin: 20px auto 10px auto;
  max-width: 960px;
}

#prestations-text h2 span {
  position: relative;
  padding: 1em;
}

#prestations-text h2 span:before {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  background-color: #6B1863;
  width: 1200px;
  top: 50%;
  margin-top: -1px;
  right: 100%;
}

#prestations-text h2 span:after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  background-color: #6B1863;
  width: 1200px;
  top: 50%;
  margin-top: -1px;
  left: 100%;
}

/* Image */

#prestations-image {
  width: 350px;
  height: 350px;
  object-fit: cover;
  margin-top: 40px;
  margin-right: 20%;
}


/* Texte */

#prestations-text {
  padding: 60px;
  margin: auto;
  font-weight: bold;
}

#prestations-text i {
  color: #7ECE29;;
  font-size: 25px;
}

#prestations-text p {
  margin-top: 30px;
  padding: 10px 10px 0px 10px;
}

#subtitle {
  font-weight: bold;
  font-size: 22px;
}

@media screen and (max-width: 990px)
{
  #prestations-image {
    margin-right: 0%;
  }
  #prestations-text h2 {
    margin-top: 0px;
    max-width: 960px;
  }
  #prestations-text {
    padding: 20px 30px 40px 30px;
  }
}

/* Prestations */

#prestations {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url("contact.jpg");
  background-color: hsl(0, 0%, 0%);
  background-size: auto;
  background-attachment: fixed;
  padding: 80px 20px 40px 20px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 16px;
}

.prestation {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 8px 15px 8px 15px;
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 4px 4px 3px rgb(0 0 0 / 30%);
  text-align: center;
  margin-bottom: 30px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}

.prestation h3 {
  color: #6B1863;
  font-weight: bold;
  border-bottom: solid;
  border-width: 0.5px;
  font-size: 28px;
  padding-bottom: 15px;
}

.prestation p {
  color: #6B1863;
  font-weight: bold;
  font-size: 20px;
}

.prestation ul {
  list-style-type: none;
  margin-bottom: 10px;
  margin-left: 0;
  padding-left: 0;
}

.prestation li {
  margin-top: 10px;
  font-weight: bold;
}

.prestation i {
  margin-right: 10px;
  color: #7ECE29;
  font-weight: bold;
  font-size: 18px;
}

.prestation span {
  font-style: italic;
  font-size: 12px;
}

.prestation em {
  font-size: 14px;
}

.prestation #rdv {
  margin-top: 30px;
  margin-bottom: 20px
}

.prestation:nth-child(3) #rdv {
    margin-top: 40px;
}

#offre {
  margin-top: 10px;
  background-color: #6B1863;
  height: 32px;
  width: 267px;
}

#offre p{
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin: auto;
}

#contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  border-radius: 5px;
  box-shadow: 3px 3px 2px rgb(0 0 0 / 10%);
  border: none;
  margin-left: 28%;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px;
  border-style: solid;
  border-color: #6B1863;
  color: #6B1863;
  font-weight: bold;
  }

#contact a:hover {
  background-color: #6B1863;
  color: white;
}

#payment {
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin-top: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  width: 460px;
  margin: 20px auto 0px auto;
  height: 30px;
}

#payment p {
  font-size: 18px;
  font-weight: bold;
}

#mutuelle {
  text-align: center;
  padding: 0px 80px 50px 80px;
  color: #6B1863;
  font-weight: bold;
  margin-top: 40px;
}

@media (min-width: 100px) and (max-width: 660px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 661px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 990px) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1300px) {
  .cards {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 990px)
{
  #mutuelle {
    padding: 0px 20px 50px 20px;
  }
}
