/* Lecteur de la vidéo du Pacte RSE (voir video-pacte.js) : cadre aux coins arrondis, ombre douce, grand bouton lecture rouge, commandes qui s'effacent. */
.pv {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000;
  color: #fff;
  box-shadow: 0 1.5rem 3rem -1rem rgb(17 17 17 / 0.45);
  outline: 1px solid rgb(255 255 255 / 0.12);
  outline-offset: -1px;
}
.pv__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}
.pv:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.pv:fullscreen .pv__video {
  max-height: 100dvh;
  height: 100%;
}
.pv__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to top, rgb(0 0 0 / 0.8), transparent);
  pointer-events: none;
  transition: opacity 0.3s;
}
.pv__big {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand, #d82216);
  color: #fff;
  box-shadow: 0 0 0 0.5rem rgb(255 255 255 / 0.25), 0 1rem 2rem rgb(0 0 0 / 0.4);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.3s, opacity 0.3s, background 0.2s;
}
.pv__big svg {
  width: 2.25rem;
  height: 2.25rem;
  transform: translateX(0.12rem);
}
.pv__big:hover {
  background: #b81c11;
  transform: translate(-50%, -50%) scale(1.08);
}
.pv.is-playing .pv__big {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
}
.pv__unmute {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border: 0;
  background: rgb(17 17 17 / 0.85);
  color: #fff;
  font: 700 0.75rem/1 var(--body, Arial, sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.pv__unmute[hidden] {
  display: none;
}
.pv__unmute svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pv__unmute:hover {
  background: var(--brand, #d82216);
}
.pv__bar {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 0.75rem 0.5rem;
  transition: opacity 0.3s;
}
.pv.is-idle .pv__bar,
.pv.is-idle .pv__shade {
  opacity: 0;
  pointer-events: none;
}
.pv__range {
  display: block;
  width: calc(100% - 1rem);
  height: 0.375rem;
  margin: 0.5rem;
  appearance: none;
  background: linear-gradient(to right, var(--brand, #d82216) var(--pos, 0%), rgb(255 255 255 / 0.3) var(--pos, 0%));
  accent-color: var(--brand, #d82216);
  cursor: pointer;
}
.pv__range::-webkit-slider-thumb {
  appearance: none;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #fff;
}
.pv__range::-moz-range-thumb {
  width: 0.875rem;
  height: 0.875rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.pv__row {
  display: flex;
  align-items: center;
}
.pv__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}
.pv__btn:hover {
  color: var(--brand-light, #ff6b5f);
}
.pv__btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pv__full {
  margin-left: auto;
}
.pv__time {
  margin-left: 0.25rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / 0.85);
}
.pv button:focus-visible,
.pv__range:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 40rem) {
  .pv__big {
    width: 4rem;
    height: 4rem;
  }
  .pv__big svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  .pv__btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pv__big,
  .pv__bar,
  .pv__shade {
    transition: none;
  }
}

/* Dans la page de l'événement : le cadre porte, comme sur le site du Pacte RSE, un bloc rouge décalé derrière lui. */
.pv-frame {
  position: relative;
  margin: 0 0.75rem 0.75rem 0;
}
.pv-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  background: var(--brand, #d82216);
  transform: translate(0.75rem, 0.75rem);
}
.pv-frame .pv {
  position: relative;
}
