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

@font-face {
  font-family: "Hakgyoansim";
  src: url("../fonts/Hakgyoansim/HakgyoansimRikodeoR.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Nanomson";
  src: url("../fonts/Nanomson.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@keyframes unblur {
  0% {
    opacity: 0;
    filter: blur(9px);
  }
  100% {
    opacity: 0.8;
    filter: blur(0px);
  }
}

.kr {
  font-family: sans-serif;
  font-weight: normal;
  font-style: normal;
}

.kr h2,
.kr a {
  font-family: "Hakgyoansim", sans-serif;
  font-weight: normal;
  font-style: normal;
}

/* Mode normal */
body {
  background-color: #161616;
  color: #f3f1f6;
  font-family: "Figtree", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.8s ease, color 0.8s ease;
  overflow-y: scroll; /* Active le défilement vertical */
  scrollbar-width: none; /* Masque la scrollbar pour Firefox */
  -ms-overflow-style: none; /* Masque la scrollbar pour Internet Explorer */
  overflow-x: hidden;
  overflow-y: scroll;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Masque la scrollbar pour Chrome, Safari et Edge */
}

body.centrage {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #161616;
}

body.taille {
  height: 100vh;
  overflow: hidden;
}

body.chapitres {
  overflow: hidden;
}

/* Son au lancement */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.95)
    ),
    url("noise.gif");
  color: #161616;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.random {
  text-transform: uppercase;
  font-weight: bolder !important;
}

.preloader h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  animation: unblur 2s ease-out forwards; /* Animation pour enlever le flou */
}

.preloader p {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 10px;
  animation: unblur 2s ease-out forwards; /* Animation pour enlever le flou */
}

.animation {
  animation: unblur_opacity 1.5s ease-in-out forwards;
}

@keyframes unblur_opacity {
  0% {
    opacity: 0;
    filter: blur(9px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0);
  }
}

.content {
  display: none;
  padding: 50px;
}

/* Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  width: 18px;
  height: 1.5px;
  background-color: #f3f1f6;
  display: block;
}

.logo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}

.logo img {
  width: 20%;
  display: flex;
}

#logo {
  font-style: italic;
  font-weight: bolder;
  font-size: 22px !important;
  filter: blur(0px);
  letter-spacing: 3px;
  color: #f3f1f6;
  font-family: "times", serif;
  opacity: 1;
  text-transform: lowercase;
}

.bouttons {
  display: flex;
  flex-direction: row;
  gap: 10%;
}

.menu {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0% 0%;
}

.rolling-text {
  display: inline-block;
  font-size: 16px;
  line-height: 25px;
  height: 25px;
  text-decoration: none;
  overflow: hidden;
  color: #f3f1f6;
  opacity: 0.5;
  filter: blur(0.4px);
  padding: 0px 15px;
}

.onglet_active {
  opacity: 1;
  filter: blur(0px);
}

.rolling-text:hover {
  filter: blur(0px);
}

.rolling-text:hover .letter,
.rolling-text.play .letter {
  transform: translateY(-100%);
}

.rolling-text .block:last-child {
  opacity: 1;
}

.rolling-text .letter {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Player */
.letter:nth-child(1) {
  transition-delay: 0s;
}

.letter:nth-child(2) {
  transition-delay: 0.015s;
}

.letter:nth-child(3) {
  transition-delay: 0.03s;
}

.letter:nth-child(4) {
  transition-delay: 0.045;
}

.letter:nth-child(5) {
  transition-delay: 0.06s;
}

.letter:nth-child(6) {
  transition-delay: 0.075s;
}

.letter:nth-child(7) {
  transition-delay: 0.09s;
}

.letter:nth-child(8) {
  transition-delay: 0.105s;
}

.letter:nth-child(9) {
  transition-delay: 0.12s;
}

.loading-screen {
  position: relative;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  background-color: #f3f1f6;
  width: 0%;
  height: 100%;
}

.load-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

/* Fond */
.noise::before {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.02;
  z-index: 1000;
  pointer-events: none;
  background: url("noise.gif");
}

.fond {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -100;
  pointer-events: none;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  padding: 3% 5%;
}

.artiste {
  width: 80%;
  height: 390px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 34rem;
}

.p_expection {
  margin: 0px 0px 0px 0px;
}

#figure_one {
  width: 450px;
}

#figure_three {
  width: 375px;
}

#figure_four {
  width: 375px;
}

#figure_two {
  width: 670px;
  margin: -160px 0px -140px 0px;
}

/* Barre de scroll */
.scroll-indicators {
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 1000;
}

.indicator {
  width: 6px;
  height: 6px;
  background-color: #f3f1f679;
  opacity: 0.6;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: rgb(255, 255, 255); /* Pas de couleur de fond */
  transition: background-color 0.5s ease-in-out; /* Animation fluide */
}

.img {
  width: 10px;
  height: auto;
  transition: filter 0.3s ease-out; /* Bonus : transition douce si JS désactivé */
}

.text {
  width: 400px;
  display: inline-block;
  overflow: hidden;
  /* clip-path: inset(0 0 100% 0); masqué de droite à gauche */
  opacity: 0.1;
  filter: blur(4px);
}

h1 {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 3rem;
}

h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.h2_centre {
  text-align: start;
}

p {
  line-height: 1.6;
}

.shadow {
  filter: drop-shadow(0px 10px 30px rgba(0, 0, 0, 0.5));
}

.tele {
  transform: translateX(-100px);
}

.content_figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Accueil */
.centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.option_affichage {
  display: flex;
  flex-direction: wrap;
  align-items: center;
  justify-content: end;
  padding: 0px 30px;
  gap: 15px;
  width: 100%;
  height: fit-content;
}

.content_accueil {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  gap: 70px;
  margin-top: 0px;
}

/* Trailer */
.trailer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  padding: 3% 5%;
}

.content_trailer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.option_trailer {
  display: flex;
  flex-direction: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  width: 60%;
}

.option_trailer a {
  text-decoration: none;
  color: #f3f1f6;
  padding: 15px 20px;
  font-size: calc(1vw + 0.1rem);
  opacity: 0.75;
  display: inline-block;
  transition: background-color 0.4s ease;
}

.option_trailer a:hover {
  color: #f3f1f6;
  opacity: 1;
  font-weight: 400;
}

/* Figure */
.citation {
  font-family: "Figtree", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  font-size: calc(1vw + 1.25rem);
  line-height: 62px;
  line-height: 1.7;
  font-weight: 300;
  display: inline-block;
  transform: skewX(-5deg);
  width: 85%;
  text-align: center;
}

.sous_titre {
  font-size: calc(1vw + 0.28rem);
  text-align: center;
  opacity: 0.8;
  line-height: 2;
  width: 80%;
  word-break: break-word;
}

.resume {
  font-size: calc(1vw + 0.28rem);
  text-align: center;
  opacity: 0.8;
  line-height: 2.5;
  width: 25%;
  word-break: break-word;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  height: 100vh;
}

/* Bouton */
button {
  all: unset; /* Réinitialise les styles par défaut */
  display: inline-block; /* Nécessaire pour appliquer vos styles */
}

.button_2 {
  width: 54px; /* Largeur fixe, ajuste si besoin */
  height: 54px; /* Hauteur fixe, ajuste si besoin */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 4px; /* Optionnel : petit espace entre les boutons */
  border: 1px solid #f3f1f6;
  color: #f3f1f6;
  opacity: 0.75;
}

.button_2 button {
  text-decoration: none;
  padding: 15px 20px;
  font-size: calc(1vw + 0.28rem);
  display: inline-block;
  transition: background-color 0.4s ease, transform 0.7s ease;
}

.button_2:hover {
  background-color: #d4d2d270;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(6px); /* pour Safari */
}

.button_2 a {
  text-decoration: none;
  padding: 10px 10px;
  font-size: calc(1vw - 0.05rem);
  display: inline-block;
}

.button a {
  text-decoration: none;
  color: #f3f1f6;
  border: 1px solid #f3f1f6;
  padding: 15px 20px;
  font-size: calc(1vw + 0.15rem);
  filter: blur(0.5px);
  opacity: 0.75;
  display: inline-block;
  transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55), filter 0.3s;
  background-color: #d4d2d225;
  backdrop-filter: blur(100px);
}

.button a::before {
  content: "→";
  margin-right: 10px;
  display: inline-block;
  transition: inherit;
}

.button a:hover {
  filter: blur(0px);
  transform: translateX(6px);
}

.highlight_split {
  font-size: 1.2em;
  line-height: 2;
  opacity: 0.6;
  width: 50%;
  margin: 0 auto;
  text-align: center;
  width: 25%;
}

.highlight_split .char {
  display: inline-block;
  transition: color 0.3s, background-color 0.3s;
}

.kursor {
  pointer-events: none !important;
}

canvas {
  width: 100%;
  height: 100%;
}

#enable-sound {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ------------------------- Chapitres ------------------------------ */
.pre-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.loader {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: #f3f1f6;
  color: #161616;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-60%, -50%);
  display: flex;
  width: 500px;
  z-index: 2;
  color: #161616;
  font-weight: 600;
}

.count {
  flex: 2;
  text-align: right;
  line-height: 1;
  padding: 0 1em;
}

.copy {
  font-family: "Figtree", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1;
}

.ml16 {
  overflow: hidden;
  text-align: center;
}

.ml16 .letters {
  display: inline-block;
  line-height: 1em;
}

.loader-bg {
  position: absolute;
  display: block;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(163, 162, 162, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(50px); /* pour Safari */
  z-index: -1;
}

.loader-2 {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  /*background: url("../images/haha.gif");*/
  background-color: #828282;
  background-size: cover;
  z-index: -1;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.site-content {
  position: relative;
  z-index: -2;
}

.pads {
  padding: 3% 5%;
  opacity: 1;
}

.links {
  display: flex;
  justify-content: flex-end;
  gap: 5em;
}

.header {
  display: flex;
  padding: 1em;
}

.header h1 {
  flex: 1;
  position: relative;
  font-size: calc(15vw + 0.3rem);
  font-family: "PP Editorial Old", serif;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  filter: blur(1px);
}

h1:nth-child(2) {
  filter: blur(2px);
}

h1:nth-child(3) {
  filter: blur(3px);
}

h1:nth-child(4) {
  filter: blur(4px);
}

h1:nth-child(5) {
  filter: blur(4px);
}

h1:nth-child(6) {
  filter: blur(4px);
}

h1:nth-child(7) {
  filter: blur(4px);
}

h1:nth-child(8) {
  filter: blur(5px);
}

h1:nth-child(9) {
  filter: blur(5px);
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 2em;
}

footer > div {
  flex: 1;
}

.footer-copy p {
  width: 100%;
  transition: all 1s ease;
  mix-blend-mode: lighten;
  font-size: calc(0.7vw + 0.3rem);
  opacity: 0.8;
  line-height: 2;
  word-break: break-word;
}

.footer-nav {
  display: flex;
  gap: calc(2vw + 0.3rem);
  justify-content: flex-end;
  padding: 0 1em;
}

.img_ {
  width: 15vw;
  height: 10.6vw;
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
}

.img_:nth-child(1) {
  background: url("../images/film.gif") no-repeat 50% 50%;
  background-size: cover;
}

.img_:nth-child(2) {
  background: url("../images/chapitre1.gif") no-repeat 50% 50%;
  background-size: cover;
}

.img_:nth-child(3) {
  background: url("../images/chapitre2.gif") no-repeat 50% 50%;
  background-size: cover;
}

.img_:nth-child(4) {
  background: url("../images/chapitre3.gif") no-repeat 50% 50%;
  background-size: cover;
}

.img_:hover {
  cursor: none;
  background-color: rgba(59, 59, 59, 0.8);
  background-blend-mode: multiply;
}

.img_ a {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 900) {
  footer {
    flex-direction: column;
    gap: 2em;
  }

  .footer-copy p {
    width: 100%;
  }

  .footer-nav {
    width: 100%;
    justify-content: space-between;
  }
}

.cursor {
  position: absolute;
  top: 1px;
  left: 1px;
  text-transform: uppercase;
  transition: transform 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  pointer-events: none;
  z-index: 2;
}

.cursor p {
  white-space: pre-line;
  text-align: center;
}

@media (max-width: 420px) {
  .button a {
    font-size: 16px;
  }

  .sous_titre {
    font-size: 14px;
  }

  .content_accueil {
    gap: 50px;
  }

  .preloader {
    text-align: center;
    padding: 5px;
  }

  .preloader h1 {
    font-size: 1.5em;
  }

  .preloader p {
    font-size: 14px;
  }

  .passer a {
    display: none;
  }

  .equipe {
    font-size: 16px !important;
  }

  .option_trailer {
    justify-content: space-between;
    width: 100%;
  }

  .footer-nav {
    flex-direction: column;
  }

  .img_ {
    width: 43vw;
    height: 22.6vw;
  }

  body.chapitres {
    overflow: hidden;
  }

  .footer-copy p {
    font-size: calc(1.9vw + 0.3rem);
    word-break: break-word;
  }

  .artiste {
    flex-direction: column;
    display: inline-block;
  }

  #figure_one,
  #figure_three,
  #figure_four {
    width: 200px !important;
  }

  #figure_two {
    margin: 0px 0px -100px 0px;
    width: 300px !important;
  }

  .text {
    overflow: visible;
    width: 90%;
  }

  .tele {
    transform: translateX(-40px);
  }

  .tak p {
    margin-bottom: 50px;
  }

  .lien_telephone {
    pointer-events: none;
  }

  .burger {
    display: flex;
    z-index: 9999999;
  }

  .onglet {
    display: none;
    flex-direction: column;
    background: rgba(95, 95, 95, 0.2);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 9999999;
  }

  .onglet.open {
    display: flex;
  }

  .menu {
    position: relative;
    flex-wrap: wrap;
  }

  .bouttons {
    gap: 4%;
  }

  .boutton_kr {
    height: 17.5px;
  }

  .count {
    padding: 0 0.5em 0 3.5em;
  }

  .loader-content {
    width: 80%;
  }
}

@media (min-width: 480px) and (max-width: 667px) {
  .body {
    overflow: hidden;
  }

  .footer-copy p {
    font-size: calc(0.9vw + 0.3rem);
    word-break: break-word;
  }

  .img_ {
    width: 10vw;
    height: 18.6vw;
  }
}
