:root {
  --main-bg: #f7f8fb;
  --main-color: #202a44;
  --accent-color: #4863a0;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--main-bg);
  color: #333;
  font-family: var(--font-main);
  line-height: 1.5;
}

/* conteneur générique (pages classiques) */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  width: 100%;
}

/* anciens blocs accueil (utiles sur d'autres pages) */
.home-blocs {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-text {
  text-align: center;
  max-width: 580px;
}

#home-title {
  font-size: 2.1rem;
  margin: 0.5rem 0;
}

.lead {
  font-size: 1.15rem;
  color: #3a5a3a;
}

/* sections alternées éventuelles */
.home-section {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.home-section.reverse {
  flex-direction: row-reverse;
}

.home-text {
  flex: 1;
  max-width: 520px;
}

.home-text h2 {
  margin: 0 0 0.5rem;
}

/* blocs image colorés éventuels */
.image-bloc {
  flex: 1;
  min-height: 200px;
  border-radius: 18px;
  box-shadow: 0 0 14px rgba(0, 0, 0, .08);
}

.placeholder-blue  { background:#ddeeff; }
.placeholder-orange{ background:#ffe8c9; }
.placeholder-green { background:#e3ffe0; }

/* responsive global contenu */
@media (max-width: 900px) {
  .home-section,
  .home-section.reverse {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 1rem 0.5rem 2rem;
  }

  #home-title {
    font-size: 1.4rem;
  }

  .lead {
    font-size: 1rem;
  }

  h1, h2 {
    font-size: 1.5em;
  }
}

/* médias fluides */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Mise en forme page d'accueil ===== */

/* bande pano pleine largeur (collée à la nav) */
.hero-full {
  margin: 0;
}

.hero-full-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* conteneur de la home (texte + image bas) */
.container.home-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
}

/* bloc texte central */
.home-text-block {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 0.98rem;
  color: #444;
}

.home-text-block p {
  margin: 1.1rem 0;
}

/* image villa en bas (image classique, sans cadre, sans arrondi) */
.hero-image {
  margin: 0 0 2.5rem 0;
}

.img-placeholder.villa {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

/* Responsive spécifique home */
@media (max-width: 800px) {
  .hero-full-img {
    height: 200px;
  }

  .container.home-intro {
    padding: 2rem 1rem 2.5rem;
  }
}

@media (max-width: 500px) {
  .hero-full-img {
    height: 160px;
  }

  .container.home-intro {
    padding: 1.5rem 0.5rem 2rem;
  }

  .home-text-block {
    font-size: 0.9rem;
  }
}
/* =========================================================== */
/* ======================= Page intérieur ==================== */
/* =========================================================== */

.interior-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
}

.interior-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  align-items: flex-start;
}

.interior-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #202a44;
  font-size: 1.35rem;
}

.interior-text {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* colonne droite : un seul bloc visible par groupe */
.interior-images {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* bloc cliquable qui déclenche le diaporama */
.gallery-block {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0,0,0,.12);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  max-width: 520px;
  width: 100%;
}

/* bloc “chambres” un peu plus large */
.gallery-block[data-group="rooms"] {
  max-width: 580px;
}

.gallery-block img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

/* bandeau qui indique à l'utilisateur qu'il peut cliquer */
.gallery-hint {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.05));
  pointer-events: none;
}

/* vignettes cachées (uniquement pour alimenter le diaporama) */
.gallery-thumb {
  display: none;
}

/* responsive : pile texte + bloc image */
@media (max-width: 900px) {
  .interior-section {
    grid-template-columns: 1fr;
  }
  .interior-images {
    align-items: center;
  }
}

/* réduction taille photo sur petits téléphones */
@media (max-width: 600px) {
  .interior-page {
    padding: 2rem 1rem 2.5rem;
  }

  .gallery-block {
    max-width: 420px;
  }

  .gallery-block[data-group="rooms"] {
    max-width: 460px;
  }
}

/* ===== Lightbox / diaporama ===== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.83);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

#lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(0,0,0,.6);
}

/* boutons lightbox */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 0.4em 0.7em;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 4px;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2.2rem;
}

.lightbox-prev {
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0,0,0,0.8);
}

/* ===================================================================*/
/* ======================== Page extérieur ===========================*/
/* ===================================================================*/


.exterior-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
  text-align: center;
}

.ext-section {
  margin-bottom: 3.5rem;
}

.ext-section h2 {
  margin: 0 0 1.5rem 0;
  color: #202a44;
}

/* rangées d'images */
.ext-gallery-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* bloc cliquable générique */
.ext-gallery-block {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0,0,0,.12);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  flex: 1 1 30%;      /* ≈ 3 colonnes sur grand écran */
  max-width: 460px;
}

.ext-gallery-block img {
  width: 100%;
  height: auto;
  display: block;
}

.ext-gallery-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

/* rangée Terrasse/Piscine/Barbecue légèrement plus large */
.ext-gallery-row-terrace .ext-gallery-block {
  flex: 1 1 32%;
  max-width: 480px;
}

/* bandeau "cliquer pour voir les photos" (rempli via i18n) */
.gallery-hint {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.05));
  pointer-events: none;
}

/* vignettes cachées pour diaporama */
.gallery-thumb {
  display: none;
}

/* texte région */
.ext-region-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* -------- Responsive -------- */

/* Tablettes / petits laptops */
@media (max-width: 900px) {
  .ext-gallery-block {
    flex: 1 1 45%;    /* 2 colonnes */
    max-width: 420px;
  }

  .ext-gallery-row-terrace .ext-gallery-block {
    flex: 1 1 48%;
    max-width: 440px;
  }
}

/* Téléphones */
@media (max-width: 600px) {
  .exterior-page {
    padding: 2rem 1rem 2.5rem;
  }

  .ext-gallery-block {
    flex: 1 1 100%;   /* 1 colonne */
    max-width: 340px;
  }

  .ext-gallery-row-terrace .ext-gallery-block {
    max-width: 360px;
  }
}




/* =========================================================== */
/* ==================== Page contact/tarif =================== */
/* =========================================================== */

.contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.contact-col-left h2 {
  margin: 0;
  color: #202a44;
  font-size: 1.8rem;
}

.contact-col-right {
  font-size: 0.98rem;
  line-height: 1.6;
}

/* responsive */
@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-col-left h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .contact-page {
    padding: 2rem 1rem 2.5rem;
  }
}
