.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Style pour les images dans les cartes */
.post-card__image {
    height: auto;
    min-height: 200px;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles spécifiques pour chaque layout */
.post-card--minimal .post-card__image {
    max-height: 280px;
}

.post-card--full-image .post-card__image {
    max-height: 300px;
}

.post-card--compact .post-card__image {
    max-height: 150px;
}

/* Carte compacte (image, titre, catégorie, date, lien) */
.post-card--compact .post-card__excerpt {
  display: none;
}
/* Carte minimale (image, titre, lien) */
.post-card--minimal .post-card__excerpt {
  display: none;
}


/* Styles pour les titres et le contenu */
.post-card__title{
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem;
  text-align: center;
}

.post-card__excerpt {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.post-card__title-link:hover{
  text-decoration: underline;
}

.post-card__content {
  padding: 0rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  flex: 1;
}
.post-card__category{
  background: white;
  padding: 0.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}
.post-card__category:hover {
  text-decoration: underline;
}

.post-1 .post-card {
  position: relative;
}

.post-1 .post-card__content {
  align-items: flex-start;
  position: absolute;
  bottom: 5px;
}

.post-card__excerpt {
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--color-text);
  text-align: center;
}
.post-card__title {
  margin: 0.5rem 0;
  font-size: 1.125rem;
  line-height: 1.4;
}
.post-1 .post-card__title {
  background-color: var(--color-text);
  border-radius: 4px;
  vertical-align: text-top;
}
.post-1 .post-card__title-link {
    color: var(--color-background);
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}
.post-card__title-link {
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.25rem 0.5rem;
}
.post-card__title-link:hover {
  color: var(--color-accent);
}
.post-1 .post-card__link{
  background-color: var(--color-background);
  color: var(--color-text);
  padding: 0 0.5rem;
}
.post-card__link{
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 0.85rem;
}

/** RESPONSIVE **/
@media (max-width: 600px) {
  .post-card__link{
    font-size: 0.80rem;
    font-weight: 600;
  }
}
@media (min-width: 600px) and (max-width: 800px) {}
@media (min-width: 800px) and (max-width: 1230px) {}
@media (min-width: 1230px) and (max-width: 1700px) {}