/* Base Styles */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #efebe8;
  color: #6d4c41;
}

/* Banner */
.banner img {
  width: 100%;
  display: block;
  animation: zoomIn 3s ease forwards;
  transform: scale(1.2);
}
@keyframes zoomIn {
  to { transform: scale(1); }
}

.iti__flag-container {
  background-color: white;
  border-right: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.iti__selected-flag {
  padding: 0 10px;
}

.iti input[type="tel"] {
  height: 44px;
  font-size: 1rem;
  border-radius: 4px;
}

/* Wave separator */
.wave-container {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #ffffff;
}

.wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave-top path {
  fill: #E28727; /* Orange */
}

.wave-bottom path {
  fill: #6d4c41; /* Brown */
  transform: translateY(50px); /* Moves the brown wave down to overlap bottom half */
}


/* Form section */
.form-section {
  background: #ffffff;
  padding: 3rem 1rem;
}

.form-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 2s ease forwards;
  opacity: 0;
}

.form-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #6d4c41;
  margin-bottom: 0.5rem;
}

.form-subtitle-line {
  width: 60px;
  height: 3px;
  background-color: #6d4c41;
  margin: 0.5rem auto 1.5rem auto;
  border-radius: 2px;
}

.form-section p {
  font-size: 1.1rem;
  color: #444;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.form-section .intro-text {
  font-weight: 500;
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 1rem;
}

/* Required fields */
.required {
  color: red;
}

/* Form grid */
.form-section form {
  max-width: 700px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #6d4c41;
}

.form-group input,
.form-group select,
.form-section textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Button */
.form-section button {
  background: #6d4c41;
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  margin-top: 2rem;
}

.form-section button:hover {
  background: #2fc6f6;
}

/* Checkbox GDPR */
.checkbox-info {
  margin-top: 1rem;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-line input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #6d4c41;
}

.check-label {
  font-weight: 600;
  color: #6d4c41;
}

.legal-text {
  font-size: 0.7rem !important;
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* CTA Carousel - Desktop Version */
.cta-carousel {
  position: relative;
  width: 100%;
  max-width: 100vw;
  padding: 60px 0;
  background: #6d4c41;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-thumbs {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 1; /* Thumbnails behind */
}

.thumb-prev, .thumb-next {
  position: relative;
  width: 30%;
  height: 70%;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0.8;
  pointer-events: auto;
}

.thumb-prev {
  margin-left: -15%;
}

.thumb-next {
  margin-right: -15%;
}

.thumb-prev:hover, .thumb-next:hover {
  opacity: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.cta-carousel .swiper {
  width: 90%;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Main image in front */
}

.cta-carousel .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
  width: 100% !important;
}

.cta-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide arrows by default */
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}

/* Socials */
.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #5a3c32; /* Couleur plus foncée que le brown principal */
}

.socials a {
  background: #efebe8;
  color: #6d4c41;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s;
}

.socials a:hover {
  transform: scale(1.2);
  background: #2fc6f6;
  color: white;
}

.socials a i {
  transition: all 0.3s;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #6d4c41;
  color: #fff;
  font-size: 0.9rem;
}

/* Button Wrapper */
.button-wrapper {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.button-wrapper button {
  width: 100%;
  background: #6d4c41;
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 2rem;
}

.button-wrapper button:hover {
  background: #2fc6f6;
}

/* Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Virtual Tour Section */
.virtual-tour {
  padding: 3rem 1rem;
  color: #fff;
  text-align: center;
}

.virtual-tour h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.virtual-tour p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #fceae3;
}

.brown-bg {
  background: #6d4c41;
}

.tour-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tour-card {
  background: #ffffff;
  color: #6d4c41;
  text-decoration: none;
  border-radius: 8px;
  padding: 1.5rem;
  width: 260px;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tour-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2fc6f6;
}

.tour-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.tour-card span {
  font-size: 0.95rem;
  color: #444;
}

.tour-card:hover {
  transform: scale(1.05);
  background: #f2f2f2;
}

.tour-card img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  margin-bottom: 1rem;
  border-radius: 6px;
  object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .carousel-container {
    width: 95%;
  }
  
  .cta-carousel .swiper {
    width: 95%;
  }
  
  .thumb-prev, .thumb-next {
    width: 35%;
  }
}

@media (max-width: 768px) {

  .form-section {
    padding: 2rem 1rem;
  }

  .cta-carousel {
    padding: 30px 0;
    margin-top: -1px;
  }
  
  .cta-carousel .swiper-slide {
    height: 350px;
  }
  
  /* Show arrows on mobile */
  .swiper-button-next,
  .swiper-button-prev {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    width: 44px;
    height: 44px;
    background: rgba(109, 76, 65, 0.8);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
  }
  
  .swiper-button-next {
    right: 10px !important;
  }
  
  .swiper-button-prev {
    left: 10px !important;
  }
  
  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    background: rgba(109, 76, 65, 0.9);
    transform: translateY(-50%) scale(1.1);
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 1.4rem;
    font-weight: bold;
  }

  /* Hide thumbnails on mobile */
  .carousel-thumbs {
    display: none;
  }

  .form-section h2 {
    font-size: 1.6rem;
  }

  .form-section p {
    font-size: 1rem;
  }

  .legal-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .cta-carousel .swiper-slide {
    height: 250px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 1.2rem;
  }

  .tour-card {
    width: 100%;
    max-width: 300px;
  }

  .virtual-tour h2 {
    font-size: 1.6rem;
  }
}