.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #141210;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 30px 80px -30px rgba(26, 24, 20, 0.55);
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #141210;
  cursor: pointer;
}
.video-cta {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(20,18,16,0.15) 0%, rgba(20,18,16,0.55) 100%);
  border: 0;
  color: var(--paper);
  font-family: inherit;
  transition: opacity 400ms ease;
}
.video-frame.is-started .video-cta { opacity: 0; pointer-events: none; }
.video-play {
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--orange-vif);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(232, 85, 45, 0.18), 0 12px 40px rgba(232, 85, 45, 0.35);
  transition: transform 280ms cubic-bezier(0.4,0,0.2,1), box-shadow 280ms ease;
}
.video-cta:hover .video-play {
  transform: scale(1.06);
  box-shadow: 0 0 0 16px rgba(232, 85, 45, 0.16), 0 14px 48px rgba(232, 85, 45, 0.45);
}
.video-play svg { width: 34px; height: 34px; margin-left: 5px; fill: var(--paper); }
.video-caption {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(20, 18, 16, 0.45);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.video-duration {
  position: absolute; bottom: 22px; left: 22px; z-index: 2;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: rgba(20, 18, 16, 0.55);
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: opacity 400ms ease;
}
.video-frame.is-started .video-duration { opacity: 0; }

/* Barre de contrôle */
.vp-bar {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(247, 241, 230, 0.10);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}
.video-frame.is-started.show-ui .vp-bar,
.video-frame.is-started.is-paused .vp-bar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.video-frame.is-started:not(.show-ui):not(.is-paused) { cursor: none; }
.vp-btn {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247, 241, 230, 0.10);
  color: var(--paper);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.vp-btn:hover { background: rgba(247, 241, 230, 0.20); transform: scale(1.06); }
.vp-btn:focus-visible { outline: 2px solid var(--orange-vif); outline-offset: 2px; }
.vp-btn svg { width: 16px; height: 16px; fill: currentColor; }
.vp-btn.vp-main { background: var(--orange-vif); }
.vp-btn.vp-main:hover { background: #f0663f; }
.vp-time {
  flex: none;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cognac-soft);
  min-width: 92px;
  text-align: center;
}
.vp-track {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.vp-rail {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(247, 241, 230, 0.16);
  overflow: hidden;
}
.vp-buffer, .vp-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 999px;
}
.vp-buffer { background: rgba(247, 241, 230, 0.22); width: 0; }
.vp-fill { background: linear-gradient(90deg, var(--cognac), var(--orange-vif)); width: 0; }
.vp-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px; height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(232, 85, 45, 0.35);
  transform: scale(0.8);
  transition: transform 200ms ease;
}
.vp-track:hover .vp-knob { transform: scale(1); }
@media (max-width: 720px) {
  .video-frame { border-radius: 16px; }
  .video-play { width: 76px; height: 76px; }
  .video-play svg { width: 26px; height: 26px; }
  .vp-bar { left: 10px; right: 10px; bottom: 10px; gap: 8px; padding: 6px 8px; }
  .vp-btn { width: 32px; height: 32px; }
  .vp-time { min-width: 0; font-size: 10px; }
  .vp-vol { display: none; }
}


/* Écran de fin de l'extrait */
.vp-end {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(160, 83, 44, 0.28), transparent 60%),
    rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}
.video-frame.is-ended .vp-end { opacity: 1; pointer-events: auto; }
.video-frame.is-ended .vp-bar { opacity: 0; pointer-events: none; }
.vp-end-eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cognac-soft);
}
.vp-end-title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 20ch;
  margin: 0;
}
.vp-end-title em { color: var(--orange-vif); font-style: italic; }
.vp-end-sub {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.55;
  color: rgba(247, 241, 230, 0.75);
  max-width: 46ch;
  margin: 0;
}
.vp-end-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.vp-end-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 28px;
  border-radius: 999px;
  background: var(--orange-vif);
  color: var(--paper);
  font-family: var(--ff-display);
  font-size: 19px;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(232, 85, 45, 0.35);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.vp-end-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(232, 85, 45, 0.45); }
.vp-end-cta .arrow-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--orange-vif);
  display: flex; align-items: center; justify-content: center;
}
.vp-end-cta .arrow-dot svg { width: 16px; height: 16px; fill: currentColor; }
.vp-end-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 230, 0.25);
  background: transparent;
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.vp-end-replay:hover { background: rgba(247, 241, 230, 0.08); }
.vp-end-replay svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 720px) {
  .vp-end { gap: 10px; padding: 18px; }
  .vp-end-sub { display: none; }
  .vp-end-cta { font-size: 16px; padding: 12px 12px 12px 20px; }
  .vp-end-cta .arrow-dot { width: 28px; height: 28px; }
}

/* Icônes selon l'état */
.vp-btn .i-pause,
.vp-btn .i-mute { display: none; }
.video-frame.is-started:not(.is-paused) .vp-btn .i-play { display: none; }
.video-frame.is-started:not(.is-paused) .vp-btn .i-pause { display: block; }
.video-frame.is-muted .vp-btn .i-vol { display: none; }
.video-frame.is-muted .vp-btn .i-mute { display: block; }

/* Version discrète (26/10) : plus de pilule pleine, juste un dégradé en bas */
.vp-bar {
  left: 0; right: 0; bottom: 0;
  gap: 10px;
  padding: 28px 18px 12px;
  border-radius: 0;
  border: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 18, 16, 0.55) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.vp-btn,
.vp-btn.vp-main {
  width: 30px; height: 30px;
  background: transparent;
  color: rgba(247, 241, 230, 0.85);
}
.vp-btn:hover,
.vp-btn.vp-main:hover { background: rgba(247, 241, 230, 0.12); transform: none; color: var(--paper); }
.vp-btn svg { width: 14px; height: 14px; }
.vp-rail { height: 3px; background: rgba(247, 241, 230, 0.18); }
.vp-track:hover .vp-rail { height: 5px; }
.vp-fill { background: var(--orange-vif); }
.vp-knob { width: 10px; height: 10px; margin-left: -5px; margin-top: -5px; box-shadow: none; transform: scale(0); }
.vp-track:hover .vp-knob { transform: scale(1); }
.vp-time { font-size: 10px; min-width: 0; color: rgba(247, 241, 230, 0.7); }
@media (max-width: 720px) {
  .vp-bar { left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; gap: 6px; }
  .vp-btn { width: 28px; height: 28px; }
}

/* Pilule discrète (26/10, v2) : forme conservée, très légère */
.vp-bar {
  left: 14px; right: 14px; bottom: 14px;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.28);
  border: 1px solid rgba(247, 241, 230, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vp-btn,
.vp-btn.vp-main { width: 28px; height: 28px; }
.vp-btn.vp-main { color: var(--orange-vif); }
.vp-btn svg { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .vp-bar { left: 8px; right: 8px; bottom: 8px; padding: 2px 6px; gap: 4px; }
}
