/* Styles de base */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 96vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f3ecd2;
}

#container {
  position: relative;
  width: 95%;
  height: 95%;
  overflow: hidden;
  border: 2px solid rgb(96, 96, 96);
  border-radius: 15px;
  background-color: #f3ecd2;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.background_ray {
  position: absolute;
  width: 300%;
  height: 300%;
  top: -99.5%;
  left: -99.5%;
  animation: rotate 120s linear infinite;
  opacity: 0.8;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@font-face {
  font-family: gozirabe;
  src: url(gozirabe.otf);
}

.title {
  position: relative;
  top: 5%;
  z-index: 1;
  text-align: center;
  font-size: 7rem;
  color: #16141b;
  font-family: gozirabe;
  text-shadow: -3px -3px 0 #8c8c8c, 1px -1px 0 #8c8c8c, -1px 1px 0 #8c8c8c, 1px 1px 0 #8c8c8c;
}

.description {
  position: relative;
  top: 10%;
  z-index: 1;
  text-align: center;
  font-size: 2.5rem;
  color: #16141b;
  text-shadow: -2px -2px 0 #8c8c8c, 1px -1px 0 #8c8c8c, -1px 1px 0 #8c8c8c, 1px 1px 0 #8c8c8c;
  padding: 0 20px;
}

.join {
  position: relative;
  top: 12%;
  z-index: 1;
  text-align: center;
  font-size: 2.5rem;
  color: #16141b;
  text-shadow: -2px -2px 0 #8c8c8c, 1px -1px 0 #8c8c8c, -1px 1px 0 #8c8c8c, 1px 1px 0 #8c8c8c;
  padding: 0 20px;
}

.date-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background-color: #f1bc0f;
  padding: 30px 60px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border: 4px ridge #575757;
  border-radius: 15px;
  text-align: center;
  width: 80%;
  max-width: 400px;
  box-sizing: border-box;
}

.date-content {
  font-size: 1.6rem;
  color: #16141b;
}

.event-date {
  margin-top: 0.5rem;
  color: #16141b;
  font-weight: bold;
}

.vintage-button {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 60%;
  padding: 15px 30px;
  font-size: 2.8rem;
  font-weight: bold;
  color: #ffffff;
  background: linear-gradient(145deg, #f96518, #e5570f);
  border: 4px solid #575757;
  border-radius: 12px;
  cursor: pointer;
  color: #16141b;
  /*text-shadow: -1px -1px 0 #8c8c8c, 1px -1px 0 #8c8c8c, -1px 1px 0 #8c8c8c, 1px 1px 0 #8c8c8c;*/
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), inset 0 4px 8px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.vintage-button:hover {
  background: linear-gradient(145deg, #e5570f, #f96518);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) translateY(-2px);
}

.vintage-button:active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%) translateY(1px);
}

/* Media queries pour la responsivité */
@media screen and (max-width: 1024px) {
  .title {
    font-size: 5rem;
  }
  
  .description, .join {
    font-size: 2rem;
  }
  
  .date-box {
    padding: 25px 40px;
  }
  
  .carousel {
    height: 200px;
  }
}

@media screen and (max-width: 768px) {
  .title {
    font-size: 4rem;
  }
  
  .description, .join {
    font-size: 1.8rem;
  }
  
  .date-content {
    font-size: 1.4rem;
  }
  
  .date-box {
    padding: 20px 30px;
  }
  
  .vintage-button {
    font-size: 1.5rem;
    padding: 12px 25px;
  }
  
  .carousel {
    max-height: 120px;
  }
}

@media screen and (max-width: 480px) {
  #container {
    height: 90%;
  }
  
  .title {
    font-size: 2.5rem;
    text-shadow: -2px -2px 0 #8c8c8c, 1px -1px 0 #8c8c8c, -1px 1px 0 #8c8c8c, 1px 1px 0 #8c8c8c;
  }
  
  .description, .join {
    font-size: 1.2rem;
    text-shadow: -1px -1px 0 #8c8c8c, 0.5px -0.5px 0 #8c8c8c, -0.5px 0.5px 0 #8c8c8c, 0.5px 0.5px 0 #8c8c8c;
  }
  
  .date-box {
    padding: 15px 20px;
    border-width: 3px;
    border-radius: 10px;
  }
  
  .date-content {
    font-size: 1.1rem;
  }
  
  .vintage-button {
    font-size: 1.2rem;
    padding: 10px 20px;
    width: 70%;
  }
  
  .carousel-container {
    width: 95%;
    padding: 10px;
  }
  
  .carousel {
    max-height: 100px;
  }
}

/* Orientation landscape sur petit écran */
@media screen and (max-height: 500px) and (orientation: landscape) {
  #container {
    height: 85%;
  }
  
  .title {
    font-size: 2.5rem;
    top: 2%;
  }
  
  .description {
    font-size: 1.2rem;
    top: 5%;
  }
  
  .join {
    font-size: 1.2rem;
    top: 7%;
  }
  
  .date-box {
    top: 55%;
    padding: 10px 20px;
  }
  
  .date-content {
    font-size: 1rem;
  }
  
  .vintage-button {
    font-size: 1rem;
    padding: 8px 15px;
    width: 75%;
  }
  
  .carousel {
    max-height: 60px;
  }
}

.carousel-container {
  position: absolute;
  top: 87%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 90%;
  max-width: 600px;
  background-color: rgba(139, 69, 19, 0.8);
  border: 3px solid #8b4513;
  border-radius: 15px;
  padding: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid #654321;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: sepia(20%) contrast(110%) brightness(95%);
}

