/* Reproduction fidèle du site Wix Studio "Terre de Bohème" */
:root {
  --bg: #ede9e5;
  --blue: #0080bd;
  --text: #000;
  --arrow: #d9674f;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--serif); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
.blue { color: var(--blue); }

.container { width: min(1091px, 100% - 32px); margin-inline: auto; }

/* En-tête : logo seul */
.top { width: min(1091px, 100% - 32px); margin: 30px auto 0; }
.logo { width: 96px; }

/* Titre calligraphié + bandeau de 3 photos */
.hero { width: min(1091px, 100% - 32px); margin: 0 auto; }
.hero h1 {
  font: 400 clamp(3.5rem, 15vw, 11.5rem)/1.3 var(--script);
  color: var(--blue); text-align: center; white-space: nowrap;
}
.hero-images { display: grid; grid-template-columns: 245fr 562fr 245fr; gap: 20px; }
.hero-images img { width: 100%; height: 248px; object-fit: cover; }

/* Titres et textes */
.title { font: 400 clamp(1.8rem, 3.6vw, 2.64rem)/1.4 var(--serif); color: var(--blue); margin: 36px 0; }
.big-title { font: 400 clamp(2.4rem, 5vw, 3.75rem)/1.2 var(--serif); color: var(--blue); text-align: center; }
.subtitle { font: italic 400 clamp(1.6rem, 3vw, 2.3rem)/1.25 var(--serif); color: var(--blue); }
.text { font: 400 clamp(1.3rem, 2.4vw, 1.76rem)/1.4 var(--serif); }
.text p + p { margin-top: 1.4em; }

/* Lignes texte / photo en alternance */
.row { display: grid; grid-template-columns: 461fr 544fr; gap: 86px; align-items: start; margin-bottom: 40px; }
.row .photo { width: 100%; aspect-ratio: 544 / 349; object-fit: cover; }
.row-reverse { grid-template-columns: 530fr 460fr; }
.row-reverse .photo { order: -1; }
.row-reverse .photo-tall { aspect-ratio: 530 / 407; }

/* Cottages : photo + équipements */
.cottages { display: grid; grid-template-columns: 502fr 543fr; gap: 46px; align-items: start; }
.cottages .photo { width: 100%; aspect-ratio: 502 / 623; object-fit: cover; }
.cottages-info { font: 400 clamp(1.1rem, 1.9vw, 1.375rem)/1.25 var(--sans); }
.cottages-info .subtitle { font-size: 2rem; margin-bottom: 1em; }
.cottages-info p { margin-bottom: 1.4em; }
.cottages-info ul { list-style: none; padding: 0; }

/* Logements */
.logements { margin-top: 110px; }
.logements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 20px; }
.logement { text-align: center; }
.logement .subtitle { margin-bottom: 14px; }
.logement .slideshow { width: 76%; margin-inline: auto; aspect-ratio: 294 / 420; }

/* Piscine */
.piscine { margin-top: 60px; }
.slideshow-wide { width: 86%; margin: 10px auto 0; aspect-ratio: 913 / 420; }

/* Ambiance : diaporama pleine largeur arrondi, titre blanc en surimpression */
.ambiance { position: relative; margin-top: 50px; }
.slideshow-full { width: 100%; height: min(696px, 60vw); border-radius: 22px; overflow: hidden; }
.ambiance .big-title { position: absolute; top: 20px; left: 0; right: 0; color: #fff; pointer-events: none; }

/* Carte */
.map { margin-top: 20px; height: 463px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Pied de page */
.footer { background: #fff; padding: 56px 16px; text-align: center; }
.footer h2 { font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.35 var(--serif); color: var(--blue); }
.footer a:hover { text-decoration: underline; }

/* Diaporamas */
.slideshow { position: relative; background: rgba(0, 0, 0, .04); }
.slideshow .viewport { overflow: hidden; height: 100%; border-radius: inherit; }
.slideshow .slides { display: flex; height: 100%; transition: transform .5s ease; }
.slideshow .slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.slideshow button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 40px; height: 60px; border: 0; background: none; cursor: pointer; padding: 0;
  color: var(--arrow); font: 300 44px/1 var(--sans);
}
.slideshow .prev { left: 4px; }
.slideshow .next { right: 4px; }
.logement .slideshow .prev { left: -44px; }
.logement .slideshow .next { right: -44px; }
.slideshow-full button {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85);
  color: #555; font-size: 30px; line-height: 40px;
}
.slideshow-full .prev { left: 20px; }
.slideshow-full .next { right: 20px; }

/* Mobile */
@media (max-width: 760px) {
  .hero h1 { white-space: normal; line-height: 1.1; margin: 20px 0; }
  .hero-images { grid-template-columns: 1fr; gap: 12px; }
  .hero-images img { height: 220px; }
  .row, .row-reverse, .cottages { grid-template-columns: 1fr; gap: 24px; }
  .row-reverse .photo { order: 0; }
  .logements { margin-top: 60px; }
  .logements-grid { grid-template-columns: 1fr; gap: 40px; }
  .slideshow-wide { width: 100%; aspect-ratio: 4 / 3; }
  .slideshow-full { height: min(70vh, 520px); border-radius: 16px; }
  .map { height: 360px; }
}
