@charset "utf-8";
/* /site/site.css – feuille de style principale du site Les Esparnettes */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
}

header.navbar {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

main.container {
  margin-top: 90px;
  padding-bottom: 40px;
}

h1, h2, h3, h4, h5 {
  color: #2c3e50;
}

a {
  color: #27ae60;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: #fff;
}

.btn-outline-light:hover {
  background-color: #fff !important;
  color: #2c3e50 !important;
}

/* Cartes hébergement */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.card img {
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1621905251918-18dd6e8b2409?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: white;
  text-align: center;
  max-width: 1296px;
  margin: 0 auto;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: 50%;
  float: right;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-section h2 {
  font-size: 2.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-section p {
  font-size: 1.1rem;
  margin-top: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.25;
}

section.hero-image {
  width: 46.2%;
  float: left;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* Bouton principal */
.btn-primary-custom {
  background-color: #27ae60;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-primary-custom:hover {
  background-color: #1e874b;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h2 { font-size: 2rem; }
  .hero-section p { font-size: 1rem; }
  .hero-video { display: none; }
  .hero-section {
    background: url('/site/images/lesesparnettes_cover.jpg') center/cover no-repeat;
    height: auto;
  }
}

/* Styles de validation formulaire */
.is-valid {
  border: 2px solid #27ae60 !important;
  background-color: #eafaf1;
}

.is-invalid {
  border: 2px solid #e74c3c !important;
  background-color: #fdecea;
}

#contactAlert {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: opacity 0.4s;
}

#mapid {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Présentation */
#presentation {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  clear: both;
}

#presentation .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

#presentation h3 {
  font-weight: 700;
  color: #2c3e50;
}

#presentation .card-title {
  color: #27ae60;
  font-weight: 600;
}

img.img-fluid {
  border-radius: 10px !important;
}

/* === CALENDRIER === */
.calendar-container {
  text-align: center;
  margin-top: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  padding: 7px 0;
  border-radius: 10px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.5s ease;
  user-select: none;
  font-size: 13px;
}

.calendar-day:hover {
  background: #e9f5ee;
}

.calendar-day.selected {
  background: #2e8b57;
  color: white;
}

.calendar-day.disabled {
  background: #eee;
  color: #999;
  cursor: not-allowed;
}

/* === POPUP DE RÉSERVATION === */

.reservation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 20px 25px;
  width: 90%;
  max-width: 750px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  animation: fadeInScale 0.25s ease forwards;
  position: relative;
}

/* Disposition 2 colonnes */
.modal-content.wide .row-form {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.modal-content.wide .form-col {
  flex: 1 1 320px;
}

.modal-content.wide .info-col {
  flex: 1 1 300px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 0.9rem;
}

.modal-content.wide .info-col h6 {
  font-weight: 600;
  margin-bottom: 10px;
}

.error-message {
  font-size: 0.8rem;
  color: #b30000;
  margin-top: 3px;
}

/* Correction transparence du popup */
.reservation-modal .form-col {
  background: #fff;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.reservation-modal #reservForm {
  background: #fff;
}

.reservation-modal .form-control {
  background: #fff !important;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: none;
  padding: 8px 10px;
}

/* Animation d’apparition */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content.wide .row-form {
    flex-direction: column;
  }
}

/* === CORRECTION FOND TRANSPARENT DU POPUP === */

.reservation-modal {
  background: rgba(0, 0, 0, 0.75) !important; /* fond assombri plus opaque */
  backdrop-filter: blur(2px); /* optionnel : léger flou sur l’arrière-plan */
}

.modal-content {
  background-color: #fff !important; /* fond du bloc bien opaque */
}

.modal-content.wide .form-col {
  background-color: #fff !important;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 3;
}

.modal-content.wide .info-col {
  background-color: #f8f9fa !important; /* colonne de droite */
  z-index: 3;
}

.reservation-modal input,
.reservation-modal textarea,
.reservation-modal select {
  background-color: #fff !important;
  color: #000;
}
/* Responsive : image et bloc hero à 100% sur mobile */
@media (max-width: 992px) {
  section.hero-image,
  .hero-section {
    width: 100% !important;
    float: none;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0;
  }

  .hero-section {
    padding: 60px 20px; /* espace intérieur plus confortable */
    box-shadow: none; /* retire l'ombre sur mobile */
  }

  .hero-section::before {
    border-radius: 0;
  }

  .hero-image img {
    border-radius: 0;
  }
}

/* === PRODUIT TYPE AIRBNB === */
.product-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.product-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.1));
}
.product-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
}
.gallery-grid img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.features-list li {
  margin-bottom: 6px;
}
.price-table p {
  margin-bottom: 5px;
  font-size: 0.95rem;
}
.long-desc p {
  margin-bottom: 0.8em;
  line-height: 1.6;
}


/* === Lightbox Galerie === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 90%;
  /* max-height: 85%; */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.lightbox .close {
  position: absolute;
  top: 25px; right: 35px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(-50%);
}

.lightbox-nav .prev,
.lightbox-nav .next {
  color: white;
  font-size: 45px;
  cursor: pointer;
  opacity: 0.7;
  user-select: none;
  transition: opacity 0.2s;
}

.lightbox-nav .prev:hover,
.lightbox-nav .next:hover {
  opacity: 1;
}

.gallery-grid img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
/* Agrandissement au survol de la grande image */
.cover-clickable {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cover-clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}



.reservation-modal img {
  animation: zoomIn 2s ease;
}

@keyframes zoomIn {
  from { transform: scale(2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

