.floating-video {
  position: fixed;
  bottom: 80px;
  right: 20px;

  /* ✅ autoriser le repositionnement */
  left: auto;
  top: auto;

  width: 210px;
  height: auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 9999;
  cursor: move; /* ✅ indique qu’on peut la déplacer */
}


.floating-video video {
  width: 100%;
  height: auto;
  object-fit: contain; /* ✅ affiche toute la vidéo sans couper */
  background: #000;    /* bandes noires si ratio différent */
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 20px;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.close-btn:hover {
  background: rgba(255,0,0,0.7);
}

/* Bouton rond qui reste en bas */
.video-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--jaune, #FFD700);
  border: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  transition: background 0.3s;
}

.video-toggle:hover {
  background: var(--vert, #28a745);
  color: white;
}
.video-toggle svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}
