/* ==========================================================================
   blog-sidebar.css — Light theme Lynakor / Atalas-inspired
   ========================================================================== */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

@media (max-width: 1024px) { .blog-layout { grid-template-columns: 1fr 260px; gap: 2rem; } }

@media (max-width: 768px) {
  .blog-layout { grid-template-columns: 1fr; padding-top: 0; }
  .blog-sidebar { order: 2; }
}

/* ── Sidebar ── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 5rem;
}

/* ── Carte ── */
.sb-card {
  background: #fff;
  border: 1px solid rgba(10,10,20,0.07);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(10,10,20,0.07);
}

.sb-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9898b2;
  margin: 0 0 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── CTA ── */
.sb-cta {
  background: linear-gradient(135deg, #4f52c8 0%, #7c6fd8 100%);
  border-color: transparent;
  color: #fff;
  text-align: center;
  padding: 1.75rem 1.5rem;
}

.sb-cta__eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.875rem;
}

.sb-cta__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.sb-cta__body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.25rem;
}

.sb-cta__btn {
  background: #fff !important;
  color: #4f52c8 !important;
  border-color: #fff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
}
.sb-cta__btn:hover { opacity: 0.9; transform: translateY(-1px); color: #4f52c8 !important; }
.sb-cta__arrow { flex-shrink: 0; transition: transform 0.15s; }
.sb-cta__btn:hover .sb-cta__arrow { transform: translateX(3px); }
.sb-cta__reassurance { font-size: 0.7rem; color: rgba(255,255,255,0.65); margin: 0.625rem 0 0; }

/* ── Tags ── */
.sb-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }

.sb-tags__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: #52526e;
  font-size: 0.875rem;
  transition: background 0.12s, color 0.12s;
  gap: 0.5rem;
}
.sb-tags__link:hover { background: rgba(79,82,200,0.07); color: #4f52c8; }
.sb-tags__link--active { background: rgba(79,82,200,0.08); color: #4f52c8; font-weight: 600; }
.sb-tags__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sb-tags__count {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #4f52c8;
  border-radius: 999px;
  min-width: 1.375rem;
  height: 1.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  line-height: 1;
}
.sb-tags__link--active .sb-tags__count { background: #3b3ea8; }

/* ── Articles récents ── */
.sb-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sb-recent__item + .sb-recent__item { border-top: 1px solid rgba(10,10,20,0.07); margin-top: 0.625rem; padding-top: 0.625rem; }

.sb-recent__link { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; color: #52526e; transition: color 0.12s; }
.sb-recent__link:hover { color: #4f52c8; }

.sb-recent__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0a0a14;
}

.sb-recent__meta { display: flex; align-items: center; gap: 0.375rem; font-size: 0.72rem; color: #9898b2; }
.sb-recent__sep { opacity: 0.5; }

/* ── Clara ── */
.sb-about { border-top: 3px solid #4f52c8; }

.sb-about__header { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.875rem; }
.sb-about__avatar { position: relative; flex-shrink: 0; width: 52px; height: 52px; }
.sb-about__avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(79,82,200,0.3); display: block; }
.sb-about__identity { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.sb-about__name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; font-weight: 700; color: #0a0a14; line-height: 1.2; }
.sb-about__role { font-size: 0.72rem; color: #9898b2; line-height: 1.3; }
.sb-about__badge { margin-top: 0.2rem; font-size: 0.62rem; align-self: flex-start; }
.sb-about__bio { font-size: 0.8rem; line-height: 1.65; color: #52526e; margin: 0 0 0.875rem; }
.sb-about__link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: #4f52c8; text-decoration: none; transition: color 0.12s, gap 0.15s; }
.sb-about__link:hover { color: #3b3ea8; gap: 0.5rem; }
