/* ============================================================
   Blocksy Related Posts Widget — brp-styles.css v1.0.1
   ============================================================ */

/* Reset */
.brp-posts-list,
.brp-posts-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Liste verticale */
.brp-posts-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 14px;
}

/* Séparateur entre articles */
.brp-post-item + .brp-post-item {
  padding-top: 14px;
  border-top: 1px solid var(--theme-border-color, rgba(0,0,0,0.08));
}

/* Ligne : image GAUCHE, texte DROITE */
.brp-post-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}

.brp-post-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Miniature */
.brp-post-thumb {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 72px;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--theme-palette-color-8, #f3f4f6);
  position: relative;
}

.brp-thumb-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

.brp-post-link:hover .brp-thumb-img {
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}

/* Placeholder sans image */
.brp-thumb-placeholder {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--theme-palette-color-5, #9ca3af);
}

.brp-thumb-placeholder svg {
  width: 28px;
  height: 28px;
}

/* Contenu */
.brp-post-content {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
}

/* Titre */
.brp-post-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--theme-headings-color, #1a1a2e);
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.brp-post-link:hover .brp-post-title {
  color: var(--theme-palette-color-1, #2563eb);
}

/* Date */
.brp-post-date {
  display: block;
  font-size: 0.75rem;
  color: var(--theme-palette-color-5, #6b7280);
  line-height: 1.3;
}

/* Extrait */
.brp-post-excerpt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--theme-text-color, #374151);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Titre de section (widget Elementor) */
.brp-elementor-widget .brp-section-title {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-headings-color, #1a1a2e);
}

/* Placeholder éditeur */
.brp-no-posts {
  padding: 14px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #92400e;
  margin: 0;
}

/* Blocksy sidebar */
.ct-sidebar .widget.brp-widget .widget-title {
  margin-bottom: 16px;
}

/* RTL */
[dir="rtl"] .brp-post-link {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 480px) {
  .brp-post-thumb {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 58px;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    min-width: 58px;
  }
  .brp-post-title {
    font-size: 0.8rem;
  }
}
