/* Corps du site */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f1ed;
  color: #2c2c2c;
}

/* Header */
header.site-header {
  background-color: #e0dcd5;
  padding: 30px 0;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

header.site-header h1 {
  margin: 0;
  font-size: 36px;
  font-family: 'Playfair Display', serif;
  color: #1a1a1a;
}

/* Navigation */
nav.primary-nav {
  margin-top: 15px;
}

nav.primary-nav a {
  margin: 0 20px;
  text-decoration: none;
  color: #4b3f3f;
  font-weight: 600;
  font-size: 15px;
}

nav.primary-nav a:hover {
  color: #8c7851;
}

/* Introduction */
section.intro {
  text-align: center;
  padding: 40px 50px 10px;
  font-size: 20px;
  font-style: italic;
  color: #4b3f3f;
  max-width: 1000px;
  margin: auto;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 50px;
  align-items: flex-start; /* Alignement des éléments */
  max-width: 1400px;
  margin: auto;
}

.hero .left {
  flex: 1.5; /* Image plus petite à gauche */
}

.hero .left img,
.hero .right img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero .left img:hover,
.hero .right img:hover {
  transform: scale(1.03);
}

.hero .left .description {
  padding: 25px 0;
  text-align: center;
}

.hero .left .description h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.hero .left .description p {
  margin: 6px 0;
  font-size: 17px;
  color: #444;
}

.hero .right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-height: 400px; /* Assure que les images ont la même hauteur */
  align-items: flex-start; /* Aligne les images à la même hauteur */
  /* CORRECTION CLS PRÉCÉDENTE */
  min-height: 500px;
}

.hero .right img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero .right img:hover {
  transform: scale(1.03);
}

/* Call-to-action Button */
.cta {
  text-align: center;
  margin-top: 25px;
}

.cta button {
  background-color: #8c7851;
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.cta button:hover {
  background-color: #a59068;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  padding: 0 20px;
  user-select: none;
}

.lightbox .nav.prev {
  left: 10px;
}

.lightbox .nav.next {
  right: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Galerie des images */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

/* Nouvelle structure spécifique pour les détails des espaces */
.espaces-gallery {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 30px;
}

.espace-block {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.espace-block img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.espace-block .text {
  flex: 1;
}

.espace-block h3 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  color: #8c7851;
}

.espace-block p {
  font-size: 16px;
  line-height: 1.6;
}

/* --- NOUVELLES RÈGLES CLS POUR HEADER/FOOTER (Injection JavaScript) --- */
#header {
    min-height: 120px; /* Pour réserver l'espace du menu/logo */
}

#footer {
    min-height: 150px; /* Pour réserver l'espace du pied de page */
}
/* --------------------------------------------------------------------- */


/* Responsivité */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    padding: 20px;
  }

  .hero .right {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .espaces-gallery {
    padding: 30px 20px;
  }

  .espaces-gallery img {
    max-width: 100%;
  }
}

.footer {
  padding: 30px 20px;
  text-align: center;
  color: #4b3f3f;
}

/* === Ajustement discret du ratio hero === */
@media (min-width: 1200px){
  .hero { max-width: 1300px; }
  .hero .left  { flex: 0 0 58%; }
  .hero .right { flex: 0 0 40%; }
}

@media (min-width: 1600px){
  .hero { max-width: 1400px; }
  .hero .left  { flex: 0 0 56%; }
  .hero .right { flex: 0 0 42%; }
}