* {
  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%;
}

main {
  display: flex;
  position: relative;
  flex-direction: row;
  /* min-height: 100vh; */
  min-height: 200vh;
  overflow-x: auto;
}

.scroller-target {
  position: absolute;
  /* top: calc(100vh + 500px);  */
  top: 100vh;
  left: calc(var(--i) * 50vw);
  cursor: pointer;
}

.textes {
  flex: 0 0 auto;
  height: 100vh;
  display: flex;
  /* color: #4f5d3a; */
  /* color: #a2a3a4; */
  color: #979b9e96;
  display: inline-block;
  /* filter: url(#texte-un); */
  text-shadow: 0.5px 0 #6f7375, -0.5px 0 #b6bbbe55, 1px 1px #4f535555, -1px -1px #8f949655, 2px 0px #ffffff10;
}

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

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

.textes p:nth-child(even):not(.scroller-target) {
  transform:
    translateX(calc(var(--i) * 50vw)) translateY(35vh);
}

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

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


.scroller-target,
.textes p[id] {
  scroll-margin-top: -750px;
  scroll-margin-left: 20vw;
}

.moisissure {
  position: relative;
  /* color: #d8d8d8; */
  z-index: 999;
}

span {
  background-color: transparent;
}

.moisissure p {
  z-index: 9;
}

.moisissure img {
  position: absolute;
  background-color: transparent;
  mix-blend-mode: difference;
}

.micro {
  position: relative;
  margin-left: -100px;
  opacity: 50%;
}

.micro img {
  position: absolute;
  width: 100%;
  z-index: -9;
}


/* @keyframes dev {

  0% {
    transform:  scale(0.5);
  }

  70% {
    transform:  scale(1);
  }

  100% {
    transform:  scale(1.2);
  }
} */

/* 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;
}

.titre-svg {
  width: 100vw;
  height: 400px;
  overflow: visible;
}

.titres {
  flex: 0 0 auto;
  display: flex;
  margin: 5% 0 0 0;
}

.titrea {
  font-size: 80px;
  fill: hsl(0, 0%, 0%);
  font-family: "HNT";
  width: 100vw;
  letter-spacing: -10px;
  /* line-height: 1; */
  /* margin: 10% 0 0 10%; */
  /* color: #bbb67c; */
  filter: url(#filtre-un);
  text-shadow: 1px 3px 0 #c5c5af9d;
  animation: spacing 20s linear;
}

@keyframes spacing {

  0% {
    letter-spacing: -20px;
  }

  100% {
    letter-spacing: -10px;
  }
}


.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;
  }

}