body {
  font-family: "Montserrat", sans-serif;
  background-color: #121212;
  color: white;
  margin: 0;
  padding: 0;
}

.logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  width: 120px;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.2));
}

/*image de fond*/
header {
  position: relative;
  height: 100vh;
  background: url("../images/imageAccueil.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.header-content {
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 42px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.cta-button {
  display: inline-block;
  background: #e2c678;
  color: #121212;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
}

.cta-button:hover {
  background: #e6b800;
  transform: scale(1.05);
}

/* menu */
#menu-toggle {
  display: none;
}

.menu-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 200px;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu ul li {
  margin: 20px 0;
}

.menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
}

.menu ul li a:hover {
  color: #e2c678;
}

#menu-toggle:checked ~ .menu {
  right: 0;
}

#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/*utilisateur*/
/* Zone utilisateur à côté du menu hamburger */
#user-info {
  position: fixed;
  top: 20px;
  right: 70px; /* un peu à gauche du menu hamburger (qui est à right: 20px) */
  color: #5a3f3f;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
  z-index: 1002; /* au-dessus du menu */
}

/* Icône utilisateur */
#user-info img,
#user-info .user-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Si tu veux un emoji à la place d'une image, style pour alignement */
#user-info .user-icon {
  font-size: 24px;
  display: inline-block;
  line-height: 1;
}

/*partie en bas moitié-moitié*/
.rect-section {
  display: flex;
  width: 100%;
  height: 80vh;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.rect-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-side {
  flex: 2;
  background-color: #fcf9d1;
  color: #121212;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
}

.image-side {
  flex: 1;
  background-image: url("../images/essaicroisiere.png");
  background-size: cover;
  background-position: center;
}

/*avantages */
.benefits-wrapper {
  background-color: #ffffff;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  font-weight: 600;
}

.benefits-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 40px 30px;
  background-color: #ffe7e7;
  border-radius: 20px;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;

  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Apparition */
.benefits-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit {
  flex: 1 1 150px;
  max-width: 180px;
  text-align: center;
  margin: 20px;
  color: rgb(0, 0, 0);
}

.benefit img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

/* avis */
.testimonials-section {
  background-color: #fcf9d1;
  color: #121212; 
  padding: 60px 20px;
  text-align: center;

  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.testimonials-section.visible {
  opacity: 1;
  transform: translateY(0);
}


.testimonials-title {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: bold;
}

.testimonial-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-group {
  display: flex;
  flex: 0 0 100%;
  justify-content: space-around;
  gap: 20px;
  box-sizing: border-box;
  padding: 20px 0;
}

.testimonial {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 30%;
  max-width: 30%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.stars {
  color: #f1c40f;
  font-size: 18px;
  margin: 5px 0;
}

.testimonial p {
  font-style: italic;
  font-size: 14px;
  margin-top: 10px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #e2c678;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background: #d4af37;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}


/* destinations */
.destinations-section {
  background: linear-gradient(to bottom, #ffe7e7, #ffffff);
  padding: 80px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.destinations-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.destinations-title {
  font-size: 2.8rem;
  margin-bottom: 60px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #222;
}

.destinations-carousel {
  position: relative;
  width: 100%; /* Étendre la largeur au max */
  padding: 0 20px; /* Marge latérale minimale */
  overflow: hidden;
  box-sizing: border-box;
}


.destinations-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.destination-group {
  display: flex;
  flex: 0 0 100%;
  justify-content: space-around;
  gap: 30px;
  padding: 30px 0;
  box-sizing: border-box;
}

.destination-card {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex: 1 1 calc(20% - 16px); /* 5 cartes avec espace */
  max-width: calc(20% - 16px);
  text-align: center;
}


.destination-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.destination-card img {
  width: 200%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover img {
  transform: scale(1.05);
}

.destination-card p {
  margin: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #444;
}

.dest-prev,
.dest-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #00bcd4;
  color: white;
  border: none;
  padding: 14px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: background 0.3s ease;
}

.dest-prev:hover,
.dest-next:hover {
  background: #0097a7;
}

.dest-prev {
  left: 20px;
}

.dest-next {
  right: 20px;
}


/* Responsive pour mobile */
@media (max-width: 768px) {
  .testimonial-group {
    flex-direction: column;
    align-items: center;
  }

  .testimonial {
    max-width: 90%;
  }
}


/* Pied de page */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  color: #7a4a4a;
  background: #fcf9d1;
  letter-spacing: 0.05em;
  user-select: none;
}


.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #cc7dcc;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 28px;
  cursor: pointer;
  z-index: 1000;
}

.chatbot-window {
  position: fixed;
  bottom: 80px; /* Au-dessus du bouton */
  right: 20px;
  width: 300px;
  max-height: 400px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

/* Par défaut, la fenêtre est cachée */
.hidden {
  display: none;
}

.chatbot-header {
  padding: 10px;
  background-color: #cc7dcc;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f5f5f5;
  font-size: 14px;
}

.message {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.user {
  background-color: #d1e7ff;
  align-self: flex-end;
}

.message.bot {
  background-color: #e2e2e2;
  align-self: flex-start;
}

#chatbot-input {
  border: none;
  border-top: 1px solid #ccc;
  padding: 10px;
  font-size: 14px;
  outline: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}


.hidden {
  display: none;
}

/* Messages */
.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 80%;
  clear: both;
}

.message.user {
  background-color: #cc7dcc;
  color: white;
  float: right;
}

.message.bot {
  background-color: #eee;
  color: #333;
  float: left;
}
