/* ------------------------------------------------------------- */
/*               📦 CONTAINER — Reddit Wide Mode                  */
/* ------------------------------------------------------------- */

.post-container {
  width: 80%;                       /* ⭐ Largeur basée sur la page */
  max-width: 1200px;                /* garde les très grands écrans propres */
  margin: 3rem auto;
  padding: 2rem 2.5rem;

  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 0.6rem;

  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ------------------------------------------------------------- */
/*                         ⬆️ HEADER                              */
/* ------------------------------------------------------------- */

.post-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.post-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1b;
}

.post-header .post-author {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- */
/*                      ✍️ CONTENU TEXTE                          */
/* ------------------------------------------------------------- */

.post-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #1c1c1c;
}

.post-content p + p {
  margin-top: 1.3rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
}

.post-content ul,
.post-content ol {
  margin: 0.9rem 0 1.2rem 1.4rem;
}

/* ------------------------------------------------------------- */
/*                   🖼️ IMAGES — centrées, limitées              */
/* ------------------------------------------------------------- */

.post-image-wrapper {
  width: 100%;
  display: flex;                    /* ⭐ centre les images */
  justify-content: center;

  margin: 2rem 0;
  padding: 0;                       /* pas de padding autour */
  background: transparent;          /* plus de grosse boîte grise */
  border: none;
}

.post-image {
  width: 100%;
  max-width: 650px;                 /* ⭐ images limitées comme Reddit */
  height: auto;
  object-fit: contain;

  background: #fff;
  border-radius: 0.4rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ------------------------------------------------------------- */
/*                         ⚙️ ACTIONS                             */
/* ------------------------------------------------------------- */

.post-actions {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e5e5e5;

  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
}

.post-actions a,
.post-actions button {
  font-size: 0.95rem;
  font-weight: 500;
  color: #3b82f6;
  cursor: pointer;
  text-decoration: none;
}

.post-actions a:hover,
.post-actions button:hover {
  text-decoration: underline;
}
