.float-top-right {
  position: absolute;
  right: 0;
  top: 0;
}

/* Sidebar styles for large screens */
@media (min-width: 992px) { /* lg et plus */
  body {
    padding-left: 250px; /* laisse de la place pour la sidebar */
  }
  #sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(0,0,0,.08);
    background: #f8f9fa;
  }
}
/* Pour petits écrans, le sidebar disparaît et on utilise l'offcanvas */

.optionGroup {
  font-weight: bold;
  font-style: italic;
}

.camera-container {
    position: relative; /* All absolute children are positioned relative to this div */
    width: 100%;
    display: none;
    /* You might want a max-width or set a specific aspect ratio here */
}

/* Make the video fill its container width */
#cameraFeed {
    width: 100%;
    height: 100%;
    display: block; /* Helps with layout consistency */
}

#cameraPhotos {
    position: absolute; /* Positions the button relative to .camera-container */
    top: 0px;           /* Distance from the top edge */
    left: 50%;           /* Start from the middle of the container */
    transform: translateX(-50%); /* Pull back half the button's width to center it */
    z-index: 10;         /* Ensure the button is above the video (default video z-index is 0) */
    display: none;
}

#cameraButtons {
    position: absolute; /* Positions the button relative to .camera-container */
    bottom: 50px;           /* Distance from the top edge */
    left: 50%;           /* Start from the middle of the container */
    transform: translateX(-50%); /* Pull back half the button's width to center it */
    z-index: 10;         /* Ensure the button is above the video (default video z-index is 0) */
}

.camera-image-scroll {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.camera-image-item {
  flex: 0 0 auto;
  max-width: 45%;
}

.camera-image-remove-btn {
  position: absolute;
  top: 5px;
  padding-bottom: 0px;
  right: 5px;
  width: 24px;
  height: 24px;
  background-color: #dc3545; /* Bootstrap danger */
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}

.camera-image-remove-btn:hover {
  background-color: #bb2d3b;
}