.accueil-description {
  animation: apparition 0.8s ease-in-out;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}

.accueil-description em {
  color:#3d7058;
  font-weight: bold;
}

.accueil-description p {
  color:#242424;
}

.accueil-forteresses {
  animation: apparition 1.2s ease-in-out;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.accueil-forteresses img {
  margin-right: 15px;
}

.section-forteresses {
  display: flex;
  align-items: center;
  width: 1000px;
  min-height: 270px;
  padding: 20px;
}

.section-forteresses .cta {
  margin-top: 10px;
  background-color: #3d7058;
  cursor: pointer;
}

.forteresse {
  display: none;
  width: 100%;
  height: fit-content;
}
.forteresse img {
  width: 400px;
  height: 100%;
}

.section-forteresses .forteresse:nth-child(1) {
  display: flex;
}

.text-forteresses {
  display: flex;
  flex-direction: column;
  justify-content:space-between;
}

.accueil-photos, .accueil-description, .accueil-reservation {
  background-color: white;
  padding: 80px;
}
.accueil-description {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px); 
}
.accueil-photos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#arrow-photos {
  background-color: #fff;
  border-radius: 50px;
  margin-top: 50px;
  padding: 10px;
  position: relative;
  top: 47px;
  transform: rotate(270deg);
}
#arrow-photos:hover {
  background-color: #2D473B;
}

.accueil-photos .arrow-bar1, .accueil-photos .arrow-bar2 {
  margin-left: 28px;
  background-color: #2D473B;
}

.accueil-photos {
  padding-bottom: 0px;
}
.section-photos {
  perspective: 1000px;
  max-width: 1050px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.conteneur-photo {
  transform-style: preserve-3d;
  transition: transform 0.3s ease-in-out;
  margin: 8px;
  opacity: 0;
}
.conteneur-photo:hover {
  transform: translateZ(50px);
}
.conteneur-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: white;
  display: none;
  transition: background-color 1s ease-in-out;
}
.conteneur-photo:hover .photo-hover {
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  cursor: pointer;
}

.accueil-photos h2, .accueil-description h2 {
  color: #242424;
  text-align: center;
  margin-bottom: 80px;
}

.accueil-photos h2 {
  opacity: 0;
}

.accueil-description h2 {
  margin-bottom: 30px;
}

.accueil-description div {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  margin-bottom: 15px;
}

.accueil-introduction {
  background-image: url('../images/canon.jpg');
  background-size: cover;
  margin: auto;
  z-index: 1;
}

#contenu-introduction {
  perspective: 1000px;

  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 950px;
  margin: auto;
  z-index: 1;
}

#text-principal {
  transform-style: preserve-3d; /* Activer la transformation 3D */
  animation: fadeInRotate 0.8s ease-in-out;

  margin-top: 100px;
  max-width: 500px;
  z-index: 1;
}

.text-principal {
  position: relative;
  z-index: 4;
}

.acceil-reservation {
  display: flex;
  justify-content: center;
}
.section-reservation {
  max-width: 1050px;
}
.section-reservation h2 {
  color: #242424;
}


/*forme simple*/
#taches {
  z-index: 0;
}

#taches div {
  border-radius: 35% 65% 58% 42% / 41% 46% 54% 59% ;
  position: absolute;
  width: 290px;
  height: 250px;
  background-color: #2D473B;
}

#taches div:nth-child(1) {
  border-radius: 58% 42% 55% 45% / 66% 59% 41% 34% ;
  background-color: #4c8b6e;
  margin-left: 60px;
  top: 70px;
  z-index: 2;
}

#taches div:nth-child(2) {
  border-radius: 30% 70% 55% 45% / 29% 66% 34% 71%  ;
  background-color: #3d7058;
  top: 70px;
  width: 200px;
  margin-left: -50px;
  z-index: 3;
}

#taches div:nth-child(3) {
  top: -40px;
  z-index: 3;
}

/*calendrier*/
.accueil-calendrier {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  overflow: hidden;
}
#conteneur-accueil-calendrier {
  display: flex;
  justify-content: start;
  width: 1000px;
}
#calendriers {
  perspective: 2000px;
  display: flex;
  align-items: start;
}
.conteneur-calendar {
  transform-style: preserve-3d;
  transform: translateZ(-200px);
  background-color:#2d473be3;
  max-width: 600px;
  padding: 20px;
  margin: 10px;
  height: fit-content;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.conteneur-calendar:nth-child(1) {
  transform: translateZ(0px);
}

.calendar {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.calendar th,
.calendar td {
  color: white;
  padding: 12px;
  text-align: center;
  border: 0px solid #ddd;
}

.calendar th {
  background-color:#3d7058;
}
.calendar td:hover {
  background-color: #45a049;
}

.calendar tbody tr:nth-child(even) {
  background-color: #f3f3f3;
}

.today {
  background-color:#3d7058;
  font-weight: bold;
}

.prev-next-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
  overflow: hidden;
}

button {
  padding: 8px 16px;
  background-color:#3d7058;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}


.accueil-introduction h1 {
  margin-bottom: 15px;
}

.accueil-introduction p {
  margin-bottom: 30px;
}

.accueil-introduction div {
  padding-right: 80px;
}

.section-contact h2 {
  color: #DBE6D4;
  text-align: center;
  margin-bottom: 50px;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: auto;
  color: white;
}

.form-nom-email {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.form-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

input,
textarea {
  padding: 15px;
  border-radius: 3px;
  border: none;
}

label {
  margin-bottom: 10px;
}

input[type='submit'] {
  width: 200px;
  margin: auto;
  margin-top: 30px;
}

/* Animation au chargement */
@keyframes fadeInRotate {
  0% {
      opacity: 0;
      transform: rotateY(40deg); 
  }
  
  100% {
      opacity: 1;
      transform: rotateY(0deg);
  }
}
@keyframes apparition {
  0% {
    opacity: 0;
    top: 100px
  }
  
  100% {
    opacity: 1;
    top: 0px;
  }
}

@media screen and (max-width: 996px) {
  .accueil-introduction {
    background: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .accueil-introduction div {
    padding-right: 0;
    text-align: center;
    order: 2;
  }

  .accueil-photos, .accueil-description, .accueil-reservation {
    padding: 50px 20px 50px 20px;
  }
  .accueil-photos {
    padding: 90px 20px 20px 20px;
  }

  .section-photos {
    max-width: 200px;
  }

  .accueil-forteresses .arrow {
    display: none;
  }

  #contenu-introduction {
    justify-content: center;
  }

  .forteresse {
    flex-direction: column;
  }
  .forteresse .cta {
    margin-top: 20px;
  }
  .text-forteresses {
    align-items: center;
    margin-top: 20px;
  }

  .accueil-introduction img {
    order: 1;
    margin-bottom: 20px;
    width: 100%;
  }

  .section-contact {
    padding: 50px 20px;
  }

  .form-nom-email {
    flex-direction: column;
    gap: 0;
  }
  .forteresse {
    align-items: center;
    text-align: center;
  }

  #conteneur-accueil-calendrier {
    flex-direction: column;
    align-items: center;
  }
  #calendriers {
    width: 460px;
  }

  #taches {
    display: none;
  }

  #arrow-photos {
    top: 65px;
  }
  #arrow-photos div:nth-child(1) {
    margin-top: 2px;
    margin-left: 30px;
  }
  #arrow-photos div:nth-child(2) {
    margin-top: 27px;
    margin-left: 30px;
  }
}
