.single-article-wrapper {
  padding-top: 4.5rem; /* espace pour le header */
  padding-left: 2vw;
  padding-right: 2vw;
}

.single-article-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.single-article-header {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 30px;
  padding: 0;
  border-radius: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--light-color);
}

.single-hero {
  position: relative;
  width: 100%;
  height: 320px;
  max-width: 1000px;
  margin: 0 auto 1.5rem auto;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  height: 100%;
}

.single-article-title {
  color: #fff;
  font-size: 2.2rem;
  line-height: 1.2;
  text-align: center;
  padding: 0 1rem;
  z-index: 1;
}

.no-hero.single-article-title {
  color: #222;
  background: #f5f5f5;
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
}

.single-article-info-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0 0.2rem 0;
  gap: 1rem;
}

.single-article-cats {
  margin-top: 0;
  color: #888;
  font-size: 0.95rem;
  text-align: left;
  padding-left: 0.5rem;
}

.single-article-meta {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 0;
  text-align: right;
  padding-right: 0.5rem;
}

.single-article-content {
  width: 1000px;
  max-width: 1000px;
  margin: 0;
  padding: 1.5rem 1.5rem;
  text-align: center;
  line-height: 1.8;
  font-size: 1.08rem;
  color: #333;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.single-article-nav {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 2.5rem auto 0 auto;
  padding: 0 1rem;
}
.single-article-nav .nav-previous a,
.single-article-nav .nav-next a {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.single-article-nav .nav-previous a:hover,
.single-article-nav .nav-next a:hover {
  color: #005b99;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.col-main {
  flex: 1 1 0;
  min-width: 0;
}

.col-sidebar {
  flex: 0 0 300px;
  max-width: 300px;
  margin-top: 4.5rem;
  margin-left: auto;
  position: sticky;
  top: 6rem;
  align-self: flex-start;
}

.col-sidebar .sidebar-block {
  background: #fff;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-title {
  color: #2eb435 !important;
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 0;
  letter-spacing: 0.01em;
  text-align: center;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0 1rem;
}

.col-sidebar .sidebar-categories,
.col-sidebar .sidebar-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.col-sidebar .sidebar-categories li,
.col-sidebar .sidebar-recent-posts li {
  list-style: none !important;
  list-style-type: none !important;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
  font-size: 0.98rem;
  color: #222;
  line-height: 1.4;
}
.col-sidebar .sidebar-categories a,
.col-sidebar .sidebar-recent-posts a {
  color: #2b4636 !important;
  text-decoration: none !important;
  border: none !important;
  background: none !important;
  font-size: 0.98rem;
  transition: color 0.2s;
  box-shadow: none !important;
}
.col-sidebar .sidebar-categories a:hover,
.col-sidebar .sidebar-recent-posts a:hover {
  color: var(--emerald-color-alt) !important;
  text-decoration: underline !important;
  border: none !important;
  background: none !important;
}

/* Supprime les puces personnalisées éventuelles */
.col-sidebar .sidebar-categories li::before,
.col-sidebar .sidebar-recent-posts li::before {
  display: none !important;
}

.voir-plus-categories {
    color: #007bff;
    text-decoration: underline;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 5px;
    cursor: pointer;
}

.voir-plus-categories:hover {
    color: #0056b3;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 5px;
}

.sidebar-categories a {
    color: #333;
    text-decoration: none;
}

.sidebar-categories a:hover {
    color: #007bff;
}

@media (max-width: 1100px) {
  .col-sidebar {
    flex-basis: 200px;
    max-width: 200px;
  }
}
@media (max-width: 992px) {
  .row {
    flex-direction: column;
  }
  .col-main, .col-sidebar {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .col-sidebar {
    margin-top: 2rem;
    position: static;
  }
  .single-hero { height: 200px; max-width: 100%; }
  .single-article-title { font-size: 1.5rem; }
  .single-article-header, .single-article-content, .single-article-nav { max-width: 98vw; }
}
@media (max-width: 768px) {
  .row { display: block; }
  .col-main, .col-sidebar { width: 100%; }
  .single-article-wrapper { padding: 0 0.5vw; }
  .single-article-header, .single-article-content, .single-article-nav { padding: 0 0.5rem; }
  .col-sidebar { margin-top: 2rem; }
  .single-hero { height: 140px; }
}

  