/* =====================================================================
   CE Widget — Widget « Vidéo + CTA »
   Couche posée sur le lecteur natif (feuille CE « widget-video » chargée
   aussi). Animation en opacity / transform uniquement.
   ===================================================================== */
.cew-vcta {
  position: relative;
}

/* Vidéo entière cliquable (sous le CTA, au-dessus du lecteur) */
.cew-vcta__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Zone de placement : laisse passer les clics hors du bloc */
.cew-vcta__layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.cew-vcta.is-visible .cew-vcta__layer {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease;
}

.cew-vcta__box {
  max-width: 100%;
  text-align: center;
  pointer-events: auto;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1);
}
.cew-vcta--fx-up .cew-vcta__box { transform: translateY(14px); }
.cew-vcta--fx-zoom .cew-vcta__box { transform: scale(.94); }
.cew-vcta.is-visible .cew-vcta__box { transform: none; }

.cew-vcta__title {
  margin: 0 0 .35em;
  color: #fff;
  font-size: 1.75em;
  font-weight: 800;
  line-height: 1.15;
}
.cew-vcta__text {
  margin: 0 0 1em;
  color: #fff;
  line-height: 1.45;
}
.cew-vcta__title:last-child,
.cew-vcta__text:last-child { margin-bottom: 0; }

.cew-vcta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cew-vcta__btn {
  --cew-vcta-bw: 0px;
  --cew-vcta-bc: transparent;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.6em;
  border-radius: 999px;
  background-color: #fff;
  color: #111;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: inset 0 0 0 var(--cew-vcta-bw) var(--cew-vcta-bc);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cew-vcta__btn:hover,
.cew-vcta__btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}
.cew-vcta__btn--alt {
  --cew-vcta-bw: 2px;
  --cew-vcta-bc: currentColor;
  background-color: transparent;
  color: #fff;
}
.cew-vcta__btn svg,
.cew-vcta__replay svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.cew-vcta__replay {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .6em 1em;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cew-vcta__replay:hover,
.cew-vcta__replay:focus-visible { background: rgba(0, 0, 0, .65); }

.cew-vcta a:focus-visible,
.cew-vcta button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cew-vcta__layer,
  .cew-vcta__box,
  .cew-vcta__btn { transition: none; }
  .cew-vcta__box { transform: none !important; }
}
