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

body,
html {
  height: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #4a4a4a;
  background-color: #fffcfc;
  scroll-behavior: smooth;
}

/* Logo fixe en haut à gauche */
.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));
}

/* HEADER pleine hauteur immersive */
.header {
  position: relative;
  height: 100vh;
  background: url("../images/destinations/bg.jpg") center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* contenu en bas */
  align-items: flex-start; /* alignement à gauche */
  padding: 3rem 5vw 5rem 8vw; /* plus de padding à gauche */
  color: #5b3a3a;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* légère superposition d'un filtre jaune transparent pour rendre plus doux */
.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(252, 249, 209, 0.3);
  z-index: 0;
  mix-blend-mode: multiply;
}

/* Contenu header décalé à gauche, max width */
.header-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  background: rgba(255 255 255 / 0.65);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  backdrop-filter: saturate(180%) blur(12px);
}

.header-content h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  color: #a84b4b;
  text-transform: uppercase;
}

.header-content p {
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #5a3f3f;
}

/* TITRES H2 dans main */
main h2 {
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  color: #a84b4b;
  text-transform: uppercase;
  padding-left: 0.3rem; /* léger décalage pour alignement */
}

/* MAIN container */
main {
  max-width: 1200px;
  margin: 3rem auto 4rem;
  padding: 0 5vw;
}



/* 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: #f1c4c4;
  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);
}

/*icon menu*/
/* 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;
}

/* Flex général pour sections résumé voyage */
.trip-summary {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.summary-item {
  background: #fcf9d1;
  border-radius: 16px;
  padding: 2rem 3rem;
  box-shadow: 0 12px 40px rgba(217, 122, 122, 0.15);
  flex: 1;
  text-align: center;
  color: #a84b4b;
  transition: transform 0.3s ease;
  cursor: default;
}

.summary-item:hover {
  transform: translateY(-6px);
}

.summary-item h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-item p {
  font-weight: 600;
  font-size: 1.3rem;
  color: #6e4b4b;
}

/* Galerie */
.gallery-section h2 {
  font-weight: 700;
  font-size: 2.3rem;
  margin-bottom: 1.5rem;
  color: #a84b4b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding-left: 0.3rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 15px 50px rgba(217, 122, 122, 0.2);
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.08);
}

/* Description complète */
.details-section {
  margin-top: 4rem;
  padding: 2.5rem 3rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(217, 122, 122, 0.2);
  color: #5a3f3f;
}

.details-section h2 {
  font-weight: 700;
  font-size: 2.3rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.details-section p {
  font-size: 1.2rem;
  line-height: 1.75;
}

/* Activités */
.activities-section {
  margin-top: 3.5rem;
}

.activities-slider {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.8rem;
  padding-left: 0.3rem; /* alignement avec les titres */
  scrollbar-width: thin;
  scrollbar-color: #a84b4b transparent;
  scroll-snap-type: x mandatory;
}

.activities-slider::-webkit-scrollbar {
  height: 8px;
}

.activities-slider::-webkit-scrollbar-thumb {
  background-color: #a84b4b;
  border-radius: 10px;
}

.activity-slide {
  flex: 0 0 280px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(217, 122, 122, 0.15);
  background: #fcf9d1;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
}

.activity-slide:hover {
  transform: scale(1.07);
}

.activity-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

.activity-slide .activity-name {
  padding: 0.8rem 1rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #a84b4b;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255 255 255 / 0.85);
  border-radius: 0 0 16px 16px;
  user-select: none;
}

/* inclus*/
/* Animation générale scroll-reveal (déjà en place, sinon à ajouter) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Avantages inclus */
.advantages-section {
  margin-top: 3.5rem;
  padding: 2rem 2rem;
  background: #fcf9d1; /* fond jaune clair */
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(217, 122, 122, 0.3);
  color: #a84b4b;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.advantages-list {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.advantage-item {
  flex: 1 1 140px;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #7a423a;
  cursor: default;
  transition: transform 0.25s ease;
}

.advantage-item:hover {
  transform: translateY(-6px);
}

.advantage-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.7rem;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(168, 75, 75, 0.4));
}

/* Container de la carte avec ombre et bord arrondi */
/* Container de la carte avec ombre, bord arrondi et fond blanc */
.map-section {
  margin-top: 4rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(217, 122, 122, 0.15);
  background: #fff;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

/* Titre de la section carte */
.map-section h2 {
  font-weight: 700;
  font-size: 2.3rem;
  margin: 0 0 1rem 0.3rem;
  color: #a84b4b;
  letter-spacing: 0.07em;
}

/* Style de la carte Leaflet */
#map {
  width: 100%;
  height: 400px; /* hauteur fixe pour une bonne visibilité */
  border-radius: 12px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  /* optionnel : pour éviter les conflits de bordure */
  border: none;
  background-color: #eaeaea; /* légère couleur de fond avant chargement de la carte */
}

#map img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
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;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    max-width: 100%;
    padding: 1rem 1.5rem;
  }

  .header-content h1 {
    font-size: 2.5rem;
  }

  .trip-summary {
    flex-direction: column;
    gap: 1.5rem;
  }

  .summary-item {
    padding: 1.5rem 2rem;
  }

  main {
    margin: 2rem auto 3rem;
    padding: 0 3vw;
  }

  .gallery img {
    height: 160px;
  }

  .details-section,
  .activities-section {
    padding: 2rem 1.5rem;
  }

  .activities-section ul {
    grid-template-columns: 1fr;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reserve-button-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0 4rem;
}

.btn-reserve {
  background: linear-gradient(135deg, #a84b4b, #f1c4c4);
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 1rem 3rem;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 25px rgba(168, 75, 75, 0.5);
  transition: background 0.4s ease, transform 0.3s ease;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  display: inline-block;
}

.btn-reserve:hover,
.btn-reserve:focus {
  background: linear-gradient(135deg, #f1c4c4, #a84b4b);
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(168, 75, 75, 0.7);
  outline: none;
}
