@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

.title-div {
  text-align: center;
}

em {
  color: rgba(55, 56, 58, 0.8);
}

.body-content {
  margin: auto;
  width: 45%;
}

::ng-deep p {
  word-break: break-word;
  text-align: justify;
  text-justify: inter-word;
}

::ng-deep img {
  height: auto;
  width: 100%;
}

::ng-deep pre {
  background-color: #f0f0f0;
  padding: 1em;
  border-radius: 5px;
}

::ng-deep h2 {
  font-family: "Lora", sans-serif;
}

::ng-deep p span {
  font-family: "Spectral", serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

@media only screen and (min-width: 1080px) {
  ::ng-deep p span {
    line-height: 30px;
    font-size: 19px;
  }

  ::ng-deep h2 {
    font-size: 31px;
    font-weight: 600;
    line-height: 36px;
  }
}

@media only screen and (max-width: 1080px) {
  .body-content {
    width: 100%;
  }
}

.delete-dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3em;
}

.commentaires {
  margin: auto;
  margin-top: 5rem;
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0 1rem;
}

.comment-div {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  position: relative;
}

@media screen and (max-width: 1200px) {
  .body-content,
  .commentaires {
    width: 95%;
  }

  .comment-div {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-meta-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .delete-button {
    position: static;
    align-self: flex-end;
    margin-top: 0.5rem;
  }
}

