/* Carte de post (utilisée dans index et all-posts) */

.post {
  display: flex;
  height: 100%;
}

.post a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-decoration: none;
  color: #111827;
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.3rem 1.25rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.post a:hover,
.post a:active {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  background-color: #F9FAFB;
}

/* Image miniature */

.post img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Layout texte + image */

.post-content {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
}

.post h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #111827;
}

.post p {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  color: #6B7280;
}

/* Date & author */

.post time {
  font-size: 0.8rem;
  color: #9CA3AF;
}

.post:hover time,
.post:active time {
  color: #6B7280;
}



/* Mobile: stack */

@media (max-width: 639px) {
  .post-content {
    flex-direction: row;
    align-items: flex-start;
  }
}