* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #161616;
  color: #f3f1f6;
  text-align: center;
  font-family: "Figtree", Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  overflow-x: hidden;
  transition: background-color 0.8s ease, color 0.8s ease;
}

.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");
}

/* 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;
}

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;
}

.menu {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
}

.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(-125%);
}

.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;
}

span {
  display: block;
  overflow: hidden;
}

header {
  position: absolute;
  top: 0;
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2% 0px;
  font-size: 20px;
}

header div {
  padding: 0px 10px;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
}
.images {
  display: block;
  overflow: hidden;
  width: 600px;
  height: 400px;
}
.images span {
  position: absolute;
  width: 600px;
  height: 400px;
  display: block;
  overflow: hidden;
}
.img,
.imgHome {
  position: absolute;
  width: 600px;
  height: 400px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.img1 {
  background-image: url(/assets/images/histoire5.jpg);
}

.img2 {
  background-image: url(/assets/images/carte.jpg);
}
.img3 {
  background-image: url(/assets/images/jin/1.jpg);
}
.img4 {
  background-image: url(/assets/images/lee/7.jpg);
}
.img5 {
  background-image: url(/assets/images/show.jpg);
}
.img6 {
  background-image: url(/assets/images/jin/16.jpg);
}
.conseil {
  position: fixed;
  right: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
  font-size: calc(1vw + 0.3rem);
  text-transform: uppercase;
  padding: 40px 0px;
  transition: opacity 0.5s;
  opacity: 0;
  animation: arrow-bounce 1s infinite alternate;
}

.propos {
  position: absolute;
  bottom: 37.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(1vw + 0.3rem);
  width: 100%;
  height: fit-content;
  padding: 40px 0px;
  line-height: 1.5;
  opacity: 0;
  /*z-index: -1;*/
}

.propos p {
  width: 32.5%;
}

h2 {
  opacity: 0.75;
  filter: blur(0.2px);
  font-size: 2.5rem;
  font-family: "Figtree", Tahoma, Geneva, Verdana, sans-serif;
  font-style: italic;
  line-height: 2.5;
}

.spacer {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-wrapper {
  height: 400vh;
  position: relative;
}

.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-box {
  position: fixed;
  width: 350px;
  height: 250px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 1;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#center {
  z-index: 10;
  scale: 1;
  opacity: 1 !important;
}

.text-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 700px;
  opacity: 0;
}

.text-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  font-family: "Figtree", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

.stack-section {
  height: calc(100vh * 6); /* 6 cartes × 100vh */
  position: relative;
}

.merci {
  width: 100%;
  height: 110vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.merci p {
  width: 60%;
  margin: 0 auto;
}

h2 span {
  display: inline;
  transition: filter 0.3s;
  vertical-align: middle;
  overflow: none;
}

a {
  text-decoration: underline;
  color: #f3f1f6;
}

.nom {
  color: transparent;
  -webkit-text-stroke: 1px rgb(117, 113, 113);
  font-style: italic;
  display: inline;
}

.drop-zone {
  position: absolute;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 0px;
}

.draggable {
  width: 120px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  cursor: grab;
  opacity: 1;
}

.draggable.removing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

@keyframes arrow-bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(20px);
  }
}

@media (max-width: 460px) {
  /* Masquer tous les éléments non textuels */
  .container,
  .images,
  .img,
  .imgHome,
  .imgHomeSpan,
  .gallery-wrapper,
  .sticky-container,
  .gallery,
  .image-box,
  .drop-zone,
  .draggable,
  .conseil,
  .spacer {
    display: none !important;
  }

  /* Afficher uniquement les blocs de texte */
  .propos,
  .merci,
  .merci.p1,
  .merci.p2,
  .text-content,
  header {
    display: block !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    position: static !important;
    animation: none !important;
    transition: none !important;
  }

  .burger {
    display: flex;
  }

  .onglet {
    display: none;
    flex-direction: column;
    background: #161616;
    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%;
  }

  /* Adapter la largeur et la lisibilité du texte */
  .propos p,
  .merci p {
    width: 95% !important;
    font-size: 1rem !important;
    margin: 0 auto !important;
  }

  h2 {
    font-size: 1.5rem !important;
    filter: none !important;
    opacity: 1 !important;
  }

  body {
    background: #161616 !important;
    color: #f3f1f6 !important;
    overflow-x: hidden !important;
  }
}
