html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
  overflow-y: auto;  
}

.image-container {
  position: relative;
  display: flex;
  justify-content: flex-start; 
  align-items: flex-start;   
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;             
  padding: 0;
}

.lucentouch-wrapper {
  position: relative;
  width: min(80vw, 800px);
  aspect-ratio: 800 / 532; 
}

.lucentouch-wrapper canvas {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  backface-visibility: hidden;
  will-change: transform;
}

/* superposition des canvas */
#image-back,
#image-front {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  display: block;
  background-color: #000; 
  z-index: 1;
}

#image-front {
  z-index: 2;
}

#loader {
  position: absolute;
  inset: 0; 
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3; 
  border-radius: 0px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

#loader.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

#progress-container {
  width: 80%;
  height: 5px;
  background: #ddd;
  border-radius: 0px;
  overflow: hidden; 
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: #000000;
  transition: width 0.2s;
}

#progress-text {
  margin-top: 10px;
  font-family: sans-serif;
  font-size: 1.2rem;
  color: #333;
  font-weight: 500;
}


