/* -------- Article Single (Blog) -------- */

#portfolio-single {
  margin-bottom: 120px;
}

/* Hero */
.portfolio-hero {
  position: relative;
  max-height: 325px;
  overflow: hidden;
}
.portfolio-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  position: relative;
}
.portfolio-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05));
}

/* Nav (Précédent / Suivant / Retour) */
.portfolio-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 3rem 0;
}
.portfolio-nav .is-disabled {
  opacity: .4;
}

/* Titre et date */
.title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.title-row h1 {
  margin: 0;
  font-size: clamp(1.6rem,4vw,2.2rem);
  line-height: 1.1;
}
.portfolio-badge {
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  color: #233E87;
}
.portfolio-badge p {
  margin: 0;
  text-align: center !important;
  text-transform: uppercase;
}

/* Contenu */
.entry-content {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #222;
}
.entry-content p {
  margin-bottom: 1.5rem;
}
.entry-content ul,
.entry-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 5px;
}

/* Bouton Retour + Liens de navigation */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  text-decoration: none;
  color: #233E87;
  transition: color 0.2s ease;
  margin: 0 10px;
}
.btn-link:hover:not(.is-disabled) {
  color: #c3d1e4;
}
.btn-link.is-disabled {
  color: #888;
  cursor: not-allowed;
}
.btn-link .arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background: #c3d1e4;
  color: #233E87;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-link:hover:not(.is-disabled) .arrow {
  background: #233E87;
  color: #c3d1e4;
}

.back-to-blog-btn {
  display: none;
}