.main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    max-width: calc(var(--main-width) * 1.5);
    margin: auto;
    padding: var(--gap);
}

/* === Layout posts list : image gauche / texte droite === */
.post-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 1rem;
  align-items: center;
}

/* === Image === */
.post-entry .entry-cover {
  margin: 0;
}

.post-entry .entry-cover img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.entry-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* === Ordre du contenu à droite === */
.post-entry header {
  grid-column: 2;
  grid-row: 1;
}

.post-entry .entry-content {
  grid-column: 2;
  grid-row: 1;
}

.post-entry .entry-footer {
  grid-column: 2;
  grid-row: 2;
  margin-left: .4rem;
}

/* === Titre : 1 ligne max === */
.post-entry h2 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
  margin-top: -4rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Description : 1 ligne max === */
.post-entry .entry-content {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.post-entry .entry-content p {
  margin: 0;
}

/* === Footer inline avec la description === */
.post-entry .entry-footer {
  display: inline;
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}

/* === Responsive mobile === */
@media (max-width: 640px) {
  .post-entry {
    grid-template-columns: 1fr;
  }

  .post-entry .entry-cover img {
    width: 100%;
    height: 180px;
  }

  .post-entry header,
  .post-entry .entry-content,
  .post-entry .entry-footer {
    grid-column: 1;
  }
}

/* === Cover image + TOC côte à côte === */
.post-single .entry-cover {
  display: inline-block;
  vertical-align: top;
  width: 60%;
}

.post-single .toc {
  display: inline-block;
  vertical-align: top;
  width: 38%;
  margin-left: 2%;
}

/* === Ajustement image === */
.post-single .entry-cover img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* === TOC style === */
.post-single .toc {
  max-height: 80vh;
  overflow: auto;
}

.post-entry {
    position: relative;
    margin-bottom: 30px;
    padding: 30px 10px;
    background: var(--entry);
    border-radius: var(--radius);
    transition: transform .1s;
    border: 3px solid var(--border);
}

/* === Responsive mobile : empilé === */
@media (max-width: 900px) {
  .post-single .entry-cover,
  .post-single .toc {
    display: block;
    width: 100%;
    margin-left: 0;
  }

  .post-single .toc {
    margin-top: 1.5rem;
  }
}

