/* Section vidéos — accueil + bloc article */

.bpv-video-home {
  margin: 2.5rem 0 2rem;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.bpv-video-home-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}

.bpv-video-home-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.bpv-video-home-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: #1a365d;
  line-height: 1.25;
}

.bpv-video-home-intro {
  margin: 0;
  font-size: 0.9875rem;
  color: #475569;
  line-height: 1.55;
}

.bpv-video-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.bpv-video-home-card-title {
  margin: 0.65rem 0 0;
  font-size: 0.9875rem;
  line-height: 1.4;
  font-weight: 600;
}

.bpv-video-home-card-title a {
  color: #1a365d;
  text-decoration: none;
}

.bpv-video-home-card-title a:hover {
  color: #ea580c;
  text-decoration: underline;
}

.bpv-video-home-shorts-wrap {
  margin-top: 0.5rem;
}

.bpv-video-home-shorts-label {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #334155;
}

.bpv-video-home-shorts {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.bpv-video-home-card--short {
  flex: 0 0 min(200px, 44vw);
  scroll-snap-align: start;
}

.bpv-youtube-facade--home-short {
  width: 100%;
  max-width: 100%;
}

.bpv-youtube-facade--home-short .bpv-youtube-play {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.bpv-youtube-facade--home-short .bpv-youtube-thumb {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Lecteur Short : ratio vertical (évite la miniaturisation 16:9) */
.bpv-youtube-facade--home-short .bpv-youtube-iframe-wrap,
.bpv-youtube-iframe-wrap--short {
  width: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: 9 / 16;
}

.bpv-video-home-actions {
  text-align: center;
  margin: 1.5rem 0 0;
}

.bpv-video-home-cta {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: #1a365d;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.bpv-video-home-cta:hover {
  background: #234876;
  color: #fff !important;
  text-decoration: none;
}

/* Bloc article */
.bpv-video-block {
  margin: 1.75rem 0;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.bpv-video-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.bpv-video-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #1a365d;
}

.bpv-video-intro {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.9875rem;
  line-height: 1.5;
}

.bpv-youtube-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.bpv-youtube-play {
  position: relative;
}

.bpv-video-noscript {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.bpv-video-fallback {
  color: #1a365d;
}
