/* ============================================
   BLOG CARTER & BITUME — Surcharges WP
   ============================================ */

/* Reset body WP */
body { margin: 0; background: var(--creme-pale, #F5F0E8); }
*, *::before, *::after { box-sizing: border-box; }

/* Liens dans les cards */
.article-card h3 a {
  color: var(--bitume, #1F1F1F);
  text-decoration: none;
}
.article-card h3 a:hover { color: var(--bordeaux, #6B1F2E); }
.article-img { display: block; text-decoration: none; }

/* Pilules catégories */
.cb-pills-bar {
  background: var(--creme, #EFE6D2);
  border-bottom: 1px solid rgba(31,31,31,0.08);
  padding: 0;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.cb-pills {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cb-pills::-webkit-scrollbar { display: none; }

.cb-pill {
  flex-shrink: 0;
  display: inline-block;
  padding: 15px 20px;
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gris-chaud, #7A7168);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.cb-pill:hover { color: var(--bitume, #1F1F1F); }
.cb-pill.active { color: var(--bordeaux, #6B1F2E); border-bottom-color: var(--bordeaux, #6B1F2E); }

/* Listing */
.cb-listing { padding: 60px 0 100px; }

/* Placeholder image manquante */
.cb-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bitume, #1F1F1F);
}
.cb-no-thumb span {
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(239,230,210,0.4);
}

/* Pagination */
.cb-pagination { margin-top: 60px; text-align: center; }
.cb-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.cb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bitume, #1F1F1F);
  border: 1px solid rgba(31,31,31,0.15);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cb-pagination .page-numbers:hover { background: var(--creme, #EFE6D2); }
.cb-pagination .page-numbers.current { background: var(--bordeaux, #6B1F2E); color: white; border-color: var(--bordeaux, #6B1F2E); }
.cb-empty { text-align: center; padding: 4rem 0; color: var(--gris-chaud, #7A7168); font-style: italic; }

/* ============================================
   SINGLE ARTICLE
   ============================================ */

.cb-single-hero { background: var(--creme, #EFE6D2); border-bottom: 1px solid rgba(31,31,31,0.08); }

.cb-single-thumb {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--bitume, #1F1F1F);
}
.cb-single-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }

.cb-single-header {
  max-width: 800px;
  padding: 3rem 0;
}

.cb-single-meta-top { margin-bottom: 1rem; }

.cb-single-title {
  font-family: var(--font-serif, 'Spectral', serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--bitume, #1F1F1F);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.cb-single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.8rem;
  color: var(--gris-chaud, #7A7168);
  flex-wrap: wrap;
}

.cb-single-author { font-weight: 700; color: var(--bitume, #1F1F1F); }

/* Layout article + sidebar */
.cb-single-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 4rem;
  padding: 4rem 0 6rem;
  align-items: start;
}

/* Contenu éditorial */
.cb-entry { min-width: 0; }

.cb-entry-content {
  font-family: var(--font-serif, 'Spectral', serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--bitume, #1F1F1F);
}

.cb-entry-content p { margin-bottom: 1.5rem; }

.cb-entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bitume, #1F1F1F);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bordeaux, #6B1F2E);
}

.cb-entry-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bitume, #1F1F1F);
  margin: 2rem 0 0.8rem;
}

.cb-entry-content ul, .cb-entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.cb-entry-content li { margin-bottom: 0.5rem; }

.cb-entry-content blockquote {
  border-left: 3px solid var(--bordeaux, #6B1F2E);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--creme, #EFE6D2);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bitume, #1F1F1F);
}

.cb-entry-content figure { margin: 2rem 0; }
.cb-entry-content figure img { width: 100%; height: auto; display: block; }
.cb-entry-content figcaption {
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.78rem;
  color: var(--gris-chaud, #7A7168);
  margin-top: 8px;
  font-style: italic;
}

.cb-entry-content a { color: var(--bordeaux, #6B1F2E); text-decoration: underline; }
.cb-entry-content strong { font-weight: 700; }

/* Tags */
.cb-tags { margin-top: 2.5rem; display: flex; gap: 8px; flex-wrap: wrap; }
.cb-tag {
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border: 1px solid rgba(31,31,31,0.15);
  color: var(--gris-chaud, #7A7168);
  text-decoration: none;
  transition: background 0.2s;
}
.cb-tag:hover { background: var(--creme, #EFE6D2); color: var(--bitume, #1F1F1F); }

/* Sidebar single */
.cb-single-sidebar { position: sticky; top: 80px; }

.cb-sidebar-block {
  padding: 1.5rem;
  background: var(--creme, #EFE6D2);
  border-top: 3px solid var(--bordeaux, #6B1F2E);
  margin-bottom: 1rem;
}

.cb-sidebar-label {
  font-family: var(--font-sans, 'Outfit', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gris-chaud, #7A7168);
  margin-bottom: 6px;
}

.cb-sidebar-author {
  font-family: var(--font-serif, 'Spectral', serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bitume, #1F1F1F);
  margin-bottom: 6px;
}

.cb-sidebar-bio {
  font-size: 0.82rem;
  color: var(--gris-chaud, #7A7168);
  line-height: 1.6;
  margin: 0;
}

/* Articles connexes */
.cb-related { padding: 80px 0; background: var(--creme, #EFE6D2); }
.cb-related-header { margin-bottom: 2.5rem; }
.cb-related-title {
  font-family: var(--font-serif, 'Spectral', serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bitume, #1F1F1F);
  margin: 0.5rem 0 0;
}

/* Header link active */
.nav-links a.active {
  color: var(--bordeaux, #6B1F2E);
  border-bottom-color: var(--bordeaux, #6B1F2E);
}

/* Responsive */
@media (max-width: 960px) {
  .cb-single-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cb-single-sidebar { position: static; }
  .cb-single-thumb { height: 300px; }
}

@media (max-width: 640px) {
  .cb-single-title { font-size: 1.6rem; }
  .cb-single-header { padding: 2rem 0; }
}

/* YouTube / iframes responsive */
.wp-block-embed { margin: 2.5rem 0; width: 100%; }
.wp-block-embed__wrapper { width: 100%; }
.wp-block-embed__wrapper iframe,
.cb-entry-content iframe {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  min-width: 0 !important;
  border: 0 !important;
  margin: 0;
}
/* Placeholder CookieYes avant consentement */
.wp-block-embed__wrapper .video-placeholder-youtube {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  max-width: 100% !important;
}
