/*PRESTATIONS*/

.prestations {
  height: 100vh; /* Ajuste la hauteur en fonction du contenu */
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prestation_container {
  width: 90%;
  height: 90%;
  background-color: var(--colorv2);
}

.prestation__partie-haute {
  margin-left: 4rem;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Sépare les éléments : titre à gauche, bouton à droite */
  gap: 1rem; /* Ajoute un espace entre les éléments */
}

.prestation__textes {
  display: flex;
  flex-direction: column;
}

.prestation__textes h3 {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.prestation__textes h4 {
  display: flex;
  font-size: 1.25rem;
}

.prestation__partie-haute button {
  padding: 1.2rem;
  margin-right: 4rem;
  word-spacing: 0.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.prestation__partie-basse {
  height: 80%;
  width: 100%;
  background-image: url("../../Images/Images/discussion.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prestation_détail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  width: 90%;
  margin: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.prestation_détail-card {
  position: relative;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.prestation_détail-card::before {
  content: attr(data-number);
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.prestation_détail-card img {
  width: 50px;
  height: auto;
  margin-bottom: 1rem;
}

.prestation_détail-card h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
}

.prestation_détail-card p {
  font-size: 1rem;
  color: grey;
}

.prestation_détail-card:not(:last-child) {
  border-right: 1px solid #ddd;
}

/* === RESPONSIVE PRESTATIONS === */

/* Grands écrans (1600px+) */
@media screen and (min-width: 1600px) {
  .prestation_détail-card h4 {
    font-size: 1.4rem;
  }

  .prestation_détail-card p {
    font-size: 1.1rem;
  }
}

/* Desktop standard (1280px - 1599px) */
@media screen and (min-width: 1280px) and (max-width: 1599px) {
  .prestation__partie-haute {
    margin-left: 2rem;
  }

  .prestation__partie-haute button {
    margin-right: 2rem;
  }

  .prestation_détail-card h4 {
    font-size: 1.1rem;
  }

  .prestation_détail-card p {
    font-size: 0.95rem;
  }
}

/* Tablette paysage (1024px - 1279px) */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .prestation_container {
    height: auto;
    padding-bottom: 2rem;
  }

  .prestation__partie-haute {
    flex-direction: column;
    align-items: flex-start;
    margin: 2rem;
    gap: 1rem;
  }

  .prestation__partie-haute button {
    margin: 0;
    align-self: flex-end;
  }

  .prestation_détail {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .prestation_détail-card {
    width: 45%;
    border-right: none !important;
    border-bottom: 1px solid #ddd;
  }

  .prestation_détail-card:last-child {
    border-bottom: none;
  }
  .prestation__partie-basse {
    height: 80%;
    width: 100%;
    background-image: url("../../Images/Images/discussion.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .prestation_détail-card::before {
    content: none;
  }
}

/* Tablette portrait (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .prestations {
    height: auto;
  }

  .prestation__partie-haute {
    flex-direction: column;
    align-items: flex-start;
    margin: 2rem;
    gap: 1rem;
  }

  .prestation__partie-haute button {
    align-self: flex-end;
    margin: 0;
  }

  .prestation_détail {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin: 1rem;
  }

  .prestation_détail-card {
    width: 90%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .prestation_détail-card:last-child {
    border-bottom: none;
  }
  .prestation__partie-basse {
    background-image: url("");
  }

  .prestation_détail-card:not(:last-child) {
    border-right: none;
  }
  .prestation_détail-card img {
    display: none;
  }
  .prestation_détail-card::before {
    content: none;
  }
}

/* Mobile large (600px - 767px) */
@media screen and (min-width: 600px) and (max-width: 767px) {
  .prestations {
    height: auto;
    padding-bottom: 2rem;
  }

  .prestation_container {
    height: auto;
  }

  .prestation__partie-haute {
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    gap: 1rem;
  }

  .prestation__partie-haute button {
    margin: 0;
  }
  .prestation__partie-basse {
    background-image: url("");
  }
  .prestation_détail {
    flex-direction: column;
    align-items: center;
    width: 95%;
    padding: 1rem;
    margin: 1rem;
  }

  .prestation_détail-card {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .prestation_détail-card:last-child {
    border-bottom: none;
  }

  .prestation_détail-card h4 {
    font-size: 1rem;
  }

  .prestation_détail-card p {
    font-size: 0.9rem;
  }
  .prestation_détail-card:not(:last-child) {
    border-right: none;
  }
  .prestation_détail-card img {
    display: none;
  }
  .prestation_détail-card::before {
    content: none;
  }
}

/* Mobile petit (<600px) */
@media screen and (max-width: 599px) {
  .prestations {
    height: auto;
    padding-bottom: 2rem;
  }

  .prestation_container {
    height: auto;
  }

  .prestation__partie-haute {
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    gap: 1rem;
    text-align: center;
  }

  .prestation__partie-haute button {
    margin: 0;
    width: 60%;
    font-size: 1rem;
  }
  .prestation__partie-basse {
    background-image: url("");
  }

  .prestation_détail {
    flex-direction: column;
    align-items: center;
    width: 95%;
    padding: 1rem;
    margin: 1rem;
  }

  .prestation_détail-card {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .prestation_détail-card:last-child {
    border-bottom: none;
  }

  .prestation_détail-card h4 {
    font-size: 1rem;
  }

  .prestation_détail-card p {
    font-size: 0.85rem;
  }

  .prestation_détail-card::before {
    font-size: 2.5rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  .prestation_détail-card:not(:last-child) {
    border-right: none;
  }
  .prestation_détail-card img {
    display: none;
  }
  .prestation_détail-card::before {
    content: none;
  }
}
