/*
 * Babyphone Video — Footer éditorial articles single
 * Compagnon de babyphone-article-footer.php
 */

body.bpv-single-article #comments,
body.bpv-single-article .comments-area,
body.bpv-single-article #respond,
body.bpv-single-article .comment-respond,
body.bpv-single-article .comment-form,
body.bpv-single-article .post-navigation,
body.bpv-single-article .author-info,
body.bpv-single-article .post-author {
  display: none !important;
}

.bpv-single-article {
  --bpv-footer-navy: #1a365d;
  --bpv-footer-orange: #f97316;
  --bpv-footer-muted: #64748b;
  --bpv-footer-border: #e2e8f0;
  --bpv-footer-surface: #f8fafc;
  --bpv-footer-shell: min(1120px, calc(100vw - 2rem));
}

/* ── Meta bar (temps de lecture + like) ─────────────────────── */

body.bpv-single-article .bpv-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: var(--bpv-footer-shell);
  margin: 1.75rem auto 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bpv-footer-border);
}

body.bpv-single-article .bpv-article-read-time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bpv-footer-muted);
}

body.bpv-single-article .bpv-like-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.75rem;
  margin-left: auto;
}

body.bpv-single-article .bpv-like-prompt {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

body.bpv-single-article .bpv-like-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--bpv-footer-border);
  background: #fff;
  color: var(--bpv-footer-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(0) scale(1);
  transition:
    color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body.bpv-single-article .bpv-like-button:hover,
body.bpv-single-article .bpv-like-button:focus-visible {
  color: var(--bpv-footer-navy);
  border-color: rgba(26, 54, 93, 0.35);
  background: var(--bpv-footer-surface);
  box-shadow:
    0 8px 22px rgba(26, 54, 93, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

body.bpv-single-article .bpv-like-button:hover .bpv-like-heart,
body.bpv-single-article .bpv-like-button:focus-visible .bpv-like-heart {
  transform: scale(1.14);
  color: var(--bpv-footer-orange);
}

body.bpv-single-article .bpv-like-button:active {
  transform: translateY(0) scale(0.98);
}

body.bpv-single-article .bpv-like-wrapper.is-thanked .bpv-like-button,
body.bpv-single-article .bpv-like-button.is-thanked {
  color: var(--bpv-footer-orange);
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.12);
  cursor: default;
  pointer-events: none;
  animation: bpv-like-thank 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.bpv-single-article .bpv-like-ui {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.bpv-single-article .bpv-like-heart {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
}

body.bpv-single-article .bpv-like-wrapper.is-thanked .bpv-like-heart {
  color: var(--bpv-footer-orange);
}

body.bpv-single-article .bpv-like-label,
body.bpv-single-article .bpv-like-count {
  white-space: nowrap;
}

body.bpv-single-article .bpv-like-count {
  font-variant-numeric: tabular-nums;
}

body.bpv-single-article .bpv-like-sep {
  opacity: 0.55;
}

@keyframes bpv-like-thank {
  0% {
    transform: scale(0.96);
  }
  55% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bpv-single-article .bpv-like-button,
  body.bpv-single-article .bpv-like-heart {
    transition: none;
  }

  body.bpv-single-article .bpv-like-button:hover,
  body.bpv-single-article .bpv-like-button:focus-visible,
  body.bpv-single-article .bpv-like-button:active {
    transform: none;
  }

  body.bpv-single-article .bpv-like-wrapper.is-thanked .bpv-like-button {
    animation: none;
  }
}

/* ── À lire ensuite ─────────────────────────────────────────── */

.bpv-article-footer {
  max-width: var(--bpv-footer-shell);
  margin: 2rem auto 0;
  padding-top: 0.25rem;
  border-top: 1px solid var(--bpv-footer-border);
}

.bpv-read-next-header {
  margin-bottom: 0.85rem;
}

.bpv-read-next-heading {
  margin: 0 0 0.25rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--bpv-footer-navy);
}

.bpv-read-next-intro {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--bpv-footer-muted);
}

.bpv-read-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.bpv-read-next-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bpv-footer-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bpv-read-next-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 54, 93, 0.25);
  box-shadow: 0 10px 24px rgba(26, 54, 93, 0.08);
}

.bpv-read-next-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.bpv-read-next-media img,
.bpv-read-next-media-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bpv-read-next-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.bpv-read-next-badge {
  align-self: flex-start;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bpv-read-next-title {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  font-weight: 700;
}

.bpv-read-next-title a {
  color: var(--bpv-footer-navy);
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.bpv-read-next-title a:hover,
.bpv-read-next-title a:focus-visible {
  color: var(--bpv-footer-orange);
}

.bpv-read-next-meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--bpv-footer-muted);
}

.bpv-read-next-meta-sep {
  margin: 0 0.2rem;
}

.bpv-read-next-likes {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--bpv-footer-muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.bpv-read-next-likes-icon {
  font-size: 0.9em;
  line-height: 1;
  color: #94a3b8;
}

/* ── Bandeau auteur ─────────────────────────────────────────── */

.bpv-article-author {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: var(--bpv-footer-shell);
  margin: 1.25rem auto 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, rgba(249, 115, 22, 0.06) 100%);
  border: 1px solid var(--bpv-footer-border);
}

.bpv-article-author-photo,
.bpv-article-author-monogram {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(26, 54, 93, 0.18);
}

.bpv-article-author-photo {
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid rgba(255, 255, 255, 0.95);
}

.bpv-article-author-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bpv-footer-navy) 0%, #2c5282 100%);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.bpv-article-author-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
}

.bpv-article-author-name {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bpv-footer-navy);
}

.bpv-article-author-role {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bpv-footer-orange);
}

.bpv-article-author-bio {
  margin: 0 0 0.45rem;
  max-width: 720px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.bpv-article-author-method {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
}

.bpv-article-author-method a {
  color: var(--bpv-footer-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.bpv-article-author-method a:hover,
.bpv-article-author-method a:focus-visible {
  color: var(--bpv-footer-navy);
}

.bpv-article-author-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bpv-footer-orange) 0%, #ea580c 100%);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bpv-article-author-cta:hover,
.bpv-article-author-cta:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ── Hub blog — meta cartes ─────────────────────────────────── */

.bpv-blog-hub .bpv-blog-card .entry-header .bpv-blog-card-meta {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.45rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid var(--bpv-blog-border, #e2e8f0);
  font-size: 0.8125rem;
  color: var(--bpv-blog-muted, #64748b);
}

.bpv-blog-hub .bpv-blog-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.bpv-blog-hub .bpv-blog-card-sep {
  opacity: 0.55;
}

.bpv-blog-hub .bpv-blog-card-likes-icon {
  font-size: 0.9em;
  line-height: 1;
  color: #94a3b8;
}

.bpv-blog-search-item-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--bpv-blog-muted, #64748b);
}

@media (max-width: 991px) {
  .bpv-read-next-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .bpv-read-next-card {
    flex-direction: row;
    align-items: stretch;
  }

  .bpv-read-next-media {
    flex: 0 0 112px;
    width: 112px;
    aspect-ratio: auto;
    min-height: 88px;
  }

  .bpv-read-next-body {
    flex: 1;
    justify-content: center;
    padding: 0.55rem 0.65rem;
  }
}

@media (max-width: 640px) {
  body.bpv-single-article .bpv-article-meta-bar {
    flex-direction: column;
    align-items: stretch;
  }

  body.bpv-single-article .bpv-like-wrapper {
    margin-left: 0;
    justify-content: space-between;
  }

  .bpv-article-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bpv-article-author-copy,
  .bpv-article-author-bio {
    max-width: none;
  }

  .bpv-article-author-photo,
  .bpv-article-author-monogram {
    width: 76px;
    height: 76px;
  }
}
