/* ============================================================
   Church Word Cloud — Archive CSS
   Layout : image gauche, texte droite, bouton "Lire la suite"
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.cwc-archive-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* ── Header ──────────────────────────────────────────────── */
.cwc-archive-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cwc-archive-header-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cwc-archive-category {
  display: inline-block;
  padding: 3px 12px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 20px;
  align-self: flex-start;
}

.cwc-archive-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin: 0;
}

.cwc-archive-title em {
  font-style: normal;
  color: #4f46e5;
}

.cwc-clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: background .2s, color .2s;
}

.cwc-clear-filter:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.cwc-archive-count {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.cwc-archive-count strong { color: #6b7280; }

/* ── Post list ───────────────────────────────────────────── */
.cwc-post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Post card ───────────────────────────────────────────── */
.cwc-post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  border-bottom: 1px solid #f3f4f6;
  padding: 28px 0;
  transition: background .2s;
}

.cwc-post-card:first-child { padding-top: 0; }
.cwc-post-card:last-child  { border-bottom: none; }

/* ── Image ───────────────────────────────────────────────── */
.cwc-post-image-wrap {
  display: block;
  width: 180px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-start;
  background: #f3f4f6;
}

.cwc-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.cwc-post-card:hover .cwc-post-image {
  transform: scale(1.04);
}

.cwc-post-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  color: #6366f1;
}

/* ── Body ────────────────────────────────────────────────── */
.cwc-post-body {
  padding: 0 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cwc-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cwc-post-cat-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7c3aed;
  background: #ede9fe;
  padding: 2px 10px;
  border-radius: 20px;
}

.cwc-post-date {
  font-size: 12px;
  color: #9ca3af;
}

.cwc-post-title {
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #111827;
}

.cwc-post-title a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}

.cwc-post-title a:hover { color: #4f46e5; }

.cwc-post-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Keyword tags on card ────────────────────────────────── */
.cwc-post-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.cwc-kw-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: background .2s, color .2s, border-color .2s;
}

.cwc-kw-tag:hover {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}

/* Active (currently filtered) keyword */
.cwc-kw-tag.cwc-kw-active {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
  font-weight: 700;
}

/* ── Read more button ────────────────────────────────────── */
.cwc-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 18px;
  background: #4f46e5;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.cwc-read-more:hover {
  background: #4338ca;
  color: #fff;
  transform: translateX(2px);
}

/* ── No results ──────────────────────────────────────────── */
.cwc-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── Pagination ──────────────────────────────────────────── */
.cwc-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.cwc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  transition: background .2s, color .2s;
}

.cwc-pagination .page-numbers:hover,
.cwc-pagination .page-numbers.current {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cwc-post-card {
    grid-template-columns: 110px 1fr;
    gap: 0;
    padding: 20px 0;
  }

  .cwc-post-image-wrap {
    width: 110px;
    height: 90px;
    border-radius: 8px;
  }

  .cwc-post-body { padding-left: 14px; }

  .cwc-post-excerpt { -webkit-line-clamp: 2; }
}
