/* Annule la contrainte de largeur du thème */
.container-md .col-xl-8,
.container-md .col-lg-10 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Supprime les offsets */
.container-md .offset-xl-2,
.container-md .offset-lg-1 {
  margin-left: 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  font-size: 0.85rem;
}

.sidebar-block {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #e5e7eb;
}

.sidebar h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li.active a {
  font-weight: 600;
}

/* =========================
   Sidebar — Author micro-card
   ========================= */

/* Conteneur principal */
.sidebar-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  padding-bottom: 1rem;
  margin-bottom: 1.5rem;

  border-bottom: 1px solid #e5e7eb;

  text-align: left;              /* Annule tout centrage hérité */
}

/* Avatar */
.sidebar-author .author-avatar {
  display: block;
  width: 48px;
  height: 48px;

  border-radius: 50%;
  object-fit: cover;

  margin: 0;                     /* Annule margin:auto du thème */
  flex-shrink: 0;                /* Empêche l’écrasement */
}

/* Bloc texte */
.sidebar-author .author-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;

  line-height: 1.2;
  text-align: left;              /* Sécurité */
}

/* Nom */
.sidebar-author .author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

/* Rôle / titre */
.sidebar-author .author-role {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Liens sociaux */
.sidebar-author .author-links {
  margin-top: 0.25rem;
}

.sidebar-author .author-links a {
  margin-right: 0.4rem;
  opacity: 0.7;
  transition: opacity 0.15s ease-in-out;
}

.sidebar-author .author-links a:hover {
  opacity: 1;
}

/* Icônes SVG */
.sidebar-author .author-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Sidebar mobile */
.sidebar-mobile {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

/* Desktop déjà géré par d-none / d-lg-block */

/* Sidebar categories */
.sidebar-categories {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-categories li {
  margin-bottom: 0.25rem;
}

.sidebar-categories a {
  font-size: 0.85rem;
  color: #374151;
}

/* Sidebar — tags au style /tags (ajusté en taille) */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar-tags .sidebar-tag-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  line-height: 1.2;
  border-radius: 0.375rem;
}

/* =========================
   Home rail (page d'accueil)
   ========================= */

.home-rail {
  font-size: 0.9rem;
}

.home-rail-block {
  margin-bottom: 2rem;
}

.home-rail-positioning {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #374151;
}

.home-rail h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.home-rail-links {
  list-style: none;
  padding-left: 0;
}

.home-rail-links li {
  margin-bottom: 0.75rem;
}

.rail-hint {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}
