* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: black;
  /* background-image: url("https://www.transparenttextures.com/patterns/wall-4-light.png"); */
}

html,
body {
  height: 100%;
  /* overflow-y: hidden; */
}

main {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  overflow-x: auto;
}

*:has(.scroller) {
  position: relative;
}

p.scroller-target,
.scroller-target {
  position: absolute;
  transform: translateY(100vh);
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.textes {
  flex: 0 0 auto;
  height: 100vh;
  display: flex;
  /* color: #4f5d3a; */
  color: #a2a3a4;
  display: inline-block;
  /* text-shadow: 1px 0 10px #817954; */
}

.textes .zone {
  display: flex;
  flex-direction: row;
  width: max-content;
}

.textes p {
  transform: translateX(calc(var(--i) * 50vw));
  max-width: 85ch;
  font-size: 1.8rem;
  font-family: "gensco";
  text-align: justify;
  text-justify: inter-character;
  background-color: transparent;
  /* animation-delay: 2s; */
  /* height  40s linear; */
}

.textes p:nth-child(even) {
  transform: translateX(calc(var(--i) * 50vw)) translateY(35vh);
  /* border: 2px solid orange; */
}

.textes p:nth-child(odd):not(:first-child) {
  transform: translateX(calc(var(--i) * 50vw)) translateY(10vh);
}

.textes p:nth-child(1) {
  margin-top: 120px;
  margin-left: 30vw;
  /* transform: translateX(0); */
}

#texte-appart-un {
  scroll-margin-left: 30vw;
  scroll-margin-top: 60px;
}


.moisissure {
  position: relative;
  /* display: inline-block; */
  /* color: #d8d8d8; */
  z-index: 999;
}
span{
    background-color: transparent;
}

.moisissure p {
  z-index: 9;
}

.moisissure img {
  position: absolute;
  /* z-index: -9; */
  /* animation: pousse 6s ease-in-out infinite; */
  background-color: transparent;
}

/* variation des tailles à retravailler */

.un img {
  width: 70px;
  top: -15px;
  left: -30px;
}

.deux img {
  width: 150px;
  top: -15px;
  left: -10px;
}

.trois img {
  width: 240px;
  top: -30px;
  left: -50px;
}

.quatre img {
  width: 300px;
  top: -30px;
  left: -50px;
}

/* .cinq img {
  width: 350px;
  top: -50px;
  left: -50px;
} */

.six img {
  width: 450px;
  top: -60px;
  left: -50px;
}

.sept img {
  width: 600px;
  top: -100px;
  left: -70px;
}

.huit img {
  width: 800px;
  top: -100px;
  left: -50px;
}

.neuf img {
  width: 1000px;
  top: -350px;
  left: -80px;
}


.dix img {
  width: 1000px;
  top: -100px;
  left: -80px;
}


/* à tester : mix-blend-mode: 
screen;
filter: blur(0.3px);
opacity
transform-origin: bottom center; */

/* @keyframes pousse {

  0% {
    transform: translateX(-50%) rotate(-10deg) scale(1);
  }

  50% {
    transform: translateX(-50%) rotate(-6deg) scale(1.04);
  }

  100% {
    transform: translateX(-50%) rotate(-10deg) scale(1);
  }
} */

.titres {
  flex: 0 0 auto;
  display: flex;
  /* align-items: center; */
  /* justify-content: center;  */
  /* font-size: 10rem; */
  text-transform: uppercase;
  margin: 5% 0 0 5%;
}

.titrea {
  font-size: 10rem;
  /* color: black; */
  fill: black;
  font-family: "HNT";
  /* font-family: "germen"; */
  width: 100vw;
  /* letter-spacing: -8rem; */
  /* line-height: 1; */
  /* margin: 10% 0 0 10%; */
  /* color: #bbb67c; */
  filter: url(#filtre-un);
  /* text-shadow: 1px 3px 0 rgba(255, 255, 255, 0.548); */
  text-shadow: 1px 3px 0 #50584e88;
  animation: spacing 30s linear infinite, courbe 10s ease-in-out infinite;
}

@keyframes spacing {

  0% {
    letter-spacing: -2.5rem;
  }

  100% {
    letter-spacing: -1rem;
  }
}

/* 
@keyframes courbe {
  0% {
    transform: translateY(0px) skewX(0deg);
  }

  50% {
    transform: translateY(-15px) skewX(-2deg);
  }

  100% {
    transform: translateY(0px) skewX(0deg);
  }
} */

.titreb {
  font-family: "HNT";
  filter: url(#filtre-deux);
  font-size: 15rem;
  width: 100vw;
  letter-spacing: -2.2rem;
  /* margin: 10% 0 0 10%; */
  /* color: rgba(245, 245, 245, 0.301); */
  /* color: #bbb67c17; */
  /* font-family: "semilla"; */
  /* line-height: 1; */
  /* color: white;  */
  text-shadow: 8px 8px 8px #eed8ae88;
  animation: spacing-deux 40s linear infinite, courbe 10s ease-in-out infinite;
  ;
}

@keyframes spacing-deux {

  0% {
    letter-spacing: -3.5rem;
  }

  100% {
    letter-spacing: -2rem;
  }
}

/* a,
span {
  font-family: "hershey";
} */


@font-face {
  font-family: "germen";
  src: url(FlorDeRuina-Germen.woff2);
}

@font-face {
  font-family: "semilla";
  src: url(FlorDeRuina-Semilla.woff2);
}

@font-face {
  font-family: "gensco";
  src: url(GENSCO.woff2);
}

@font-face {
  font-family: "HNT";
  src: url(Hershey-Noailles-Times-Triplex-Regular.woff2);
}


@font-face {
  font-family: "hershey";
  src: url(Hershey-Noailles-help-me.woff2);
}

/* @font-face {
  font-family: "HNT";
  src: url(/css/Hershey-Noailles-Times-Duplex-Light.woff2);
} */



@media (max-width: 768px) {

  .titrea {
    font-size: 4rem;
    letter-spacing: -0.8rem;
  }

  .textes p {
    font-size: 1.1rem;
    max-width: 90vw;
  }

}