body{
  overflow-y: hidden;
}

.cylindrePopUp.is-open .cylindrePopUp__subtitle {
  font-size: 12px;
  font-weight: bold;
  color: #666;
  text-align: left;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cylindrePopUp.is-open .cylindrePopUp__title {
  font-size: 90px;
  text-align: left;
}

.cylindrePopUp.is-open .cylindrePopUp__description {
  font-size: 20px;
  color: #000000;
  width: 60%;
  text-align: left;
  margin: 0;
  line-height: 1;

}


.cylindrePopUp.is-open .cylindrePopUp__date {
  font-size: 12px;
  color: #999;
  text-align: left;
  margin: 0;
}

.traitCoupe {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 13000;
}

.croix {
  position: absolute;
  width: 28px;
  height: 28px;
}

.croix::before,
.croix::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}

.croix::before {
  width: 0.7px;
  height: 38px;
}

.croix::after {
  width: 38px;
  height: 0.7px;
}

.haut-gauche {
  top: 0px;
  left: 0px;
}

.haut-droit {
  top: 0px;
  right: 0px;
}

.bas-gauche {
  bottom: 0px;
  left: 0px;
}

.bas-droit {
  bottom: 0px;
  right: 0px;
}

.scene {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 90vw;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.cylinder {
  --cylinderWidth: 14vw;
  --cylinderHeight: 115vh;
  --profondeur: 0px;
  --echelle: 1;
  --pi: 3.14159265359;
  --faceCount: 18;
  --faceWidth: calc(calc(var(--pi) * var(--cylinderWidth)) / var(--faceCount));
  
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: var(--cylinderWidth);
  height: var(--cylinderHeight);
  min-height: 100vh;
  transform-style: preserve-3d;
  animation: none;
}


.scene .cylinder:nth-child(1) {
  --cylinderHeight: 115vh;
  --cylinderWidth: clamp(120px, 18vw, 220px);
  --profondeur: 0px;
  --echelle: 1;
  z-index: 6;
}

.scene .cylinder:nth-child(2) {
  --profondeur: 0px;
  --echelle: 1;
  z-index: 2;
}

.scene .cylinder:nth-child(3) {
  --profondeur: 0px;
  --echelle: 1;
  z-index: 5;
}

.scene .cylinder:nth-child(4) {
  --profondeur: 0px;
  --echelle: 1;
  z-index: 1;
}

.scene .cylinder:nth-child(5) {
  --profondeur: 0px;
  --echelle: 1;
  z-index: 4;
}

.scene .cylinder:nth-child(6) {
  --profondeur: 0px;
  --echelle: 1;
  z-index: 3;
}

.cylinder_end {
  position: absolute;
  width: var(--cylinderWidth);
  height: 100vh;
  border-radius: 100%;
}

.cylinder_end:first-child {
  transform: rotateX(90deg) translateZ(calc(var(--cylinderHeight) / 2));
}

.cylinder_end:last-child {
  transform: rotateX(90deg) translateZ(calc(var(--cylinderHeight) / -2));
}

.cylinder_section:nth-child(3) { --angle: 20deg; }
.cylinder_section:nth-child(4) { --angle: 40deg; }
.cylinder_section:nth-child(5) { --angle: 60deg; }
.cylinder_section:nth-child(6) { --angle: 80deg; }
.cylinder_section:nth-child(7) { --angle: 100deg; }
.cylinder_section:nth-child(8) { --angle: 120deg; }
.cylinder_section:nth-child(9) { --angle: 140deg; }
.cylinder_section:nth-child(10) { --angle: 160deg; }
.cylinder_section:nth-child(11) { --angle: 180deg; }
.cylinder_section:nth-child(12) { --angle: 200deg; }
.cylinder_section:nth-child(13) { --angle: 220deg; }
.cylinder_section:nth-child(14) { --angle: 240deg; }
.cylinder_section:nth-child(15) { --angle: 260deg; }
.cylinder_section:nth-child(16) { --angle: 280deg; }
.cylinder_section:nth-child(17) { --angle: 300deg; }
.cylinder_section:nth-child(18) { --angle: 320deg; }
.cylinder_section:nth-child(19) { --angle: 340deg; }

.cylinder_section {
  --angle: 0deg;
  position: absolute;
  width: calc(var(--faceWidth) + 0.8px);
  height: var(--cylinderHeight);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform-style: preserve-3d;
  transform: rotateY(var(--angle)) translateZ(calc(var(--cylinderWidth) / 2));
  border: 0;
}

.cylinder-sliced {
  --textureSlices: 18;
  --textureStep: calc(100% / (var(--textureSlices) - 1));
}

.cylinder-sliced .cylinder_section {
  background-image: var(--cylinder-image);
  background-size: 1800% 100%;
}

.cylinder-sliced .cylinder_section:nth-child(2)  { background-position: calc(var(--textureStep) * 0) 50%; }
.cylinder-sliced .cylinder_section:nth-child(3)  { background-position: calc(var(--textureStep) * 1) 50%; }
.cylinder-sliced .cylinder_section:nth-child(4)  { background-position: calc(var(--textureStep) * 2) 50%; }
.cylinder-sliced .cylinder_section:nth-child(5)  { background-position: calc(var(--textureStep) * 3) 50%; }
.cylinder-sliced .cylinder_section:nth-child(6)  { background-position: calc(var(--textureStep) * 4) 50%; }
.cylinder-sliced .cylinder_section:nth-child(7)  { background-position: calc(var(--textureStep) * 5) 50%; }
.cylinder-sliced .cylinder_section:nth-child(8)  { background-position: calc(var(--textureStep) * 6) 50%; }
.cylinder-sliced .cylinder_section:nth-child(9)  { background-position: calc(var(--textureStep) * 7) 50%; }
.cylinder-sliced .cylinder_section:nth-child(10) { background-position: calc(var(--textureStep) * 8) 50%; }
.cylinder-sliced .cylinder_section:nth-child(11) { background-position: calc(var(--textureStep) * 9) 50%; }
.cylinder-sliced .cylinder_section:nth-child(12) { background-position: calc(var(--textureStep) * 10) 50%; }
.cylinder-sliced .cylinder_section:nth-child(13) { background-position: calc(var(--textureStep) * 11) 50%; }
.cylinder-sliced .cylinder_section:nth-child(14) { background-position: calc(var(--textureStep) * 12) 50%; }
.cylinder-sliced .cylinder_section:nth-child(15) { background-position: calc(var(--textureStep) * 13) 50%; }
.cylinder-sliced .cylinder_section:nth-child(16) { background-position: calc(var(--textureStep) * 14) 50%; }
.cylinder-sliced .cylinder_section:nth-child(17) { background-position: calc(var(--textureStep) * 15) 50%; }
.cylinder-sliced .cylinder_section:nth-child(18) { background-position: calc(var(--textureStep) * 16) 50%; }
.cylinder-sliced .cylinder_section:nth-child(19) { background-position: calc(var(--textureStep) * 17) 50%; }

.cylinder-journal2 {
  --cylinder-image: url("/PHOTOS/EDITROULEAUX/JOURNAL2%20copie.jpg");
}

.cylinder-hermana {
  --cylinder-image: url("/PHOTOS/EDITROULEAUX/hermana.png");
}

.cylinder-datcha {
  --cylinder-image: url("/PHOTOS/EDITROULEAUX/datcha.png");
}

.cylinder-sonar {
  --cylinder-image: url("/PHOTOS/EDITROULEAUX/sonar.png");
}

.cylinder-heure {
  --cylinder-image: url("/PHOTOS/EDITROULEAUX/heure.png");
}

.cylinder-mma {
  --cylinder-image: url("/PHOTOS/EDITROULEAUX/mma.png");
}

.cylinder-newme {
  --cylinder-image: url("/PHOTOS/EDITROULEAUX/newme.png");
}

.cylindrePopUp {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  z-index: 12000;
  padding: 24px;
  background-color: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}

.cylindrePopUp.is-open {
  display: flex;
}

.cylindrePopUp__dialog {
  position: relative;
  height: 90vh;

}


.cylindrePopUp__content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}




.cylindrePopUp__only-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


body.modal-open {
  overflow: hidden;
}

@keyframes cylinderSpin {
  0% { transform: translateZ(var(--profondeur)) scale(var(--echelle)) rotateY(0deg); }
  100% { transform: translateZ(var(--profondeur)) scale(var(--echelle)) rotateY(360deg); }
}


/* MEDIAQUERYYYYYYY */

@media screen and (max-width: 768px) {
  .scene {
    width: 100vw;
    gap: 2px;
    perspective: 400px;
    perspective-origin: 90% 60%;
  }

  .cylinder {
    --cylinderWidth: clamp(52px, 14vw, 76px);
    --cylinderHeight: 70vh;
  }

  .scene .cylinder:nth-child(1) {
    --cylinderWidth: clamp(52px, 14vw, 76px);
    --cylinderHeight: 70vh;
    --profondeur: 10px;
  }

  .scene .cylinder:nth-child(2),
  .scene .cylinder:nth-child(5) {
    --profondeur: 40px;
  }

  .scene .cylinder:nth-child(3),
  .scene .cylinder:nth-child(4) {
    --profondeur: -18px;
  }

  .scene .cylinder:nth-child(6) {
    --profondeur: 110px;
  }

  .cylinder_end {
    height: 78vh;
  }

  .cylindrePopUp__dialog::after {
    display: none;
  }

  .cylindrePopUp__content {
    flex-direction: column;
    gap: 18px;
  }

  .cylindrePopUp__left,
  .cylindrePopUp__right {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }

  .cylindrePopUp__left {
    justify-content: flex-start;
    gap: 14px;
  }

  .cylindrePopUp__right {
    justify-content: flex-start;
  }

  .cylindrePopUp__image {
    max-height: 30vh;
    padding-left: 0;
  }

  .cylindrePopUp__content {
    padding: 16px;
  }

  .cylindrePopUp__dialog {
    width: 92vw;
    height: 72vh;
  }
}
