/* Vidéo de présentation Competiprice (bloc réutilisable, pages vitrine + blog) */
.video-demo {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 4rem 1rem;
}

.video-demo-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.video-demo-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary, #3A32AE);
  background: var(--primary-light, rgba(58, 50, 174, 0.1));
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.video-demo-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.video-demo-lead {
  color: var(--text-light, #666666);
  font-size: 1.125rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.video-demo-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #14113f;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 60px rgba(40, 40, 120, 0.18);
}

.video-demo-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #14113f;
}

.video-demo-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: linear-gradient(0deg, rgba(20, 17, 63, 0.35) 0%, rgba(20, 17, 63, 0) 45%);
  cursor: pointer;
  font: inherit;
}

.video-demo-play-pill {
  position: absolute;
  left: 4.5%;
  bottom: 7%;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  color: #14113f;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-demo-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary, #3A32AE);
  color: #ffffff;
}

.video-demo-play-duration {
  color: var(--text-light, #666666);
  font-weight: 600;
}

.video-demo-play:hover .video-demo-play-pill,
.video-demo-play:focus-visible .video-demo-play-pill {
  transform: scale(1.04);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.video-demo-play:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: -3px;
}

.video-demo-player.is-playing .video-demo-play {
  display: none;
}

.video-demo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
}

.video-demo-cta-note {
  color: var(--text-light, #666666);
  font-size: 0.9rem;
}

/* Variante insérée dans un article de blog */
.video-demo--inline {
  background: none;
  padding: 0;
  margin: 2rem 0 2.25rem;
}

.video-demo--inline .video-demo-inner {
  text-align: left;
}

.video-demo--inline .video-demo-title {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.video-demo--inline .video-demo-lead {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.video-demo--inline .video-demo-cta {
  justify-content: flex-start;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .video-demo {
    padding: 3rem 1rem;
  }

  .video-demo-title {
    font-size: 1.75rem;
  }

  /* Mobile : bouton compact (icône + durée) dans le coin, sans masquer la vignette */
  .video-demo-play-pill {
    left: 4%;
    bottom: 6%;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem 0.35rem 0.35rem;
    font-size: 0;
    white-space: nowrap;
  }

  .video-demo-play-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .video-demo-play-duration {
    font-size: 0.85rem;
    color: #14113f;
  }
}
