body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fdf8f3;
  color: #333;
}

/* ===== BOUTON DE CONTACT EN HAUT À DROITE ===== */
.contact-button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.contact-btn {
  background: linear-gradient(135deg, #16a34a, #0d9488);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  font-size: 1em;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
}

.contact-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  min-width: 280px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.contact-button:hover .contact-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-menu a {
  display: block;
  padding: 12px 16px;
  color: #1e293b;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.contact-menu a:last-child {
  border-bottom: none;
}

.contact-menu a:hover {
  background: #f5f7fa;
  color: #16a34a;
  padding-left: 20px;
}

header .hero {
  background: url('../images/gitesARMILIN.png') center 35%/cover no-repeat;
  text-align: center;
  padding: 5em 20px;
  color: #fff;
}

header h1 {
  font-size: 3em;
  margin: 0;
}

header p {
  font-size: 1.2em;
  margin-top: 10px;
}

.listing {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 40px auto;
  padding: 20px;
  max-width: 1000px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.listing .info {
  flex: 1;
  padding-right: 20px;
}

.listing h2 {
  color: #2c3e50;
}

.capacity {
  font-weight: bold;
  margin-top: 10px;
}

.price {
  font-weight: bold;
  font-size: 1.2em;
  color: #16a34a;
  margin-top: 8px;
}

.price-reserve-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.price-reserve-container .price {
  margin: 0;
}

.carousel {
  position: relative;
  width: 400px;
  height: 280px;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(44, 62, 80, 0.8);
  color: #fff;
  border: none;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 1.4em;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel button:hover {
  background: rgba(22, 163, 74, 0.95);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.carousel button:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel .prev {
  left: 15px;
}

.carousel .next {
  right: 15px;
}

/* ===== ANIMATIONS AU SCROLL ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.listing.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.listing.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.listing.animate-in .info {
  animation: slideInLeft 0.8s ease forwards;
}

.listing.animate-in .carousel {
  animation: slideInRight 0.8s ease forwards;
}

footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}

footer h3 {
  margin: 0 0 10px 0;
  font-size: 1.5em;
}

footer p {
  margin: 8px 0;
}

.footer-contact {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin: 15px auto;
  max-width: 400px;
}

.footer-contact a {
  color: #16a34a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #0d9488;
  text-decoration: underline;
}

/* ===== BOUTONS (RÉSERVATION ET DISPONIBILITÉ) ===== */
.buttons-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-reserve,
.btn-disponibilite {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #0d9488);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  margin: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  cursor: pointer;
  font-size: 1em;
}

.btn-reserve:hover,
.btn-disponibilite:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
  background: linear-gradient(135deg, #15922f, #0a7a6f);
}

.btn-reserve:active,
.btn-disponibilite:active {
  transform: translateY(-1px);
}

/* ===== MODAL DISPONIBILITÉ ===== */
.modal-disponibilite {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal-disponibilite.show {
  display: block;
}

.modal-content-disponibilite {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 900px;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-disponibilite {
  color: #aaa;
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-disponibilite:hover,
.close-disponibilite:focus {
  color: #333;
}

#modal-title {
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.8em;
}

#calendar-container {
  min-height: 400px;
}

/* ===== RESPONSIVE ===== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
  header h1 {
    font-size: 2em;
  }

  header p {
    font-size: 1em;
  }

  .listing {
    flex-direction: column;
    margin: 20px auto;
    padding: 15px;
    max-width: 100%;
  }

  .listing .info {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .carousel {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 400px;
    margin: 0 auto;
  }

  .carousel button {
    padding: 6px 10px;
    font-size: 1em;
  }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5em;
  }

  header p {
    font-size: 0.9em;
  }

  .listing {
    padding: 10px;
    margin: 15px auto;
  }

  .listing h2 {
    font-size: 1.2em;
  }

  .carousel {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }

  .carousel button {
    padding: 5px 8px;
    font-size: 0.9em;
  }
}