* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #eaeaea;
   font-family: 'DinaChaumont-TextRegular';
    font-weight: 400;
    text-align: center;
    
    
}



#canvas-container {
  width: 75vw;
  height: 100vh;
}

/* partie droite */
#ui {
  width: 25vw;
  height: 100vh;
  padding: 20px;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid #ddd;
}

/* titre */
.gallery p {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

/* sliders */
.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls p {
  font-size: 25px;
  color: #555;
}

/* sliders */
input[type="range"] {
  width: 100%;
  cursor: pointer;
  
}


.gallery {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  
}

.scrollable {
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  scroll-behavior: smooth;
  
}

/* cacher scrollbar */
.scrollable::-webkit-scrollbar {
  display: none;
}
.scrollable {
  scrollbar-width: none;
}

figure {
  margin: 0;
  flex-shrink: 0;
}

/* image cliquable */
.scrollable img {
  height: 110px;
  border-radius: 8px;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.scrollable img:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.scrollable img.active {
  outline: 3px solid black;
}

/* effet quand tu clique sur une image  */
.scrollable img:active {
  transform: scale(0.98);
}

.scrollable {
  cursor: grab;
}

.scrollable:active {
  cursor: grabbing;
}

@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  #canvas-container {
    width: 100%;
    height: 60vh;
  }

  #ui {
    width: 100%;
    height: 40vh;
    
    
  }
}
.actions {
  display: flex;
  gap: 10px;
}

.actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: black;
  color: white;
  cursor: pointer;
  font-size: 23px;
   font-family: 'DinaChaumont-TextRegular';
    font-weight: 400;

  transition: 0.2s;
}

.actions button:hover {
  opacity: 0.8;
}

