/* Château de Chambost — feuille de style principale */

@import url('https://fonts.googleapis.com/css2?family=Niconne&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --maroon: #600505;
  --dark-red: #8B0000;
  --text: #2c2c2c;
  --text-light: #555;
  --bg: #fdfcfa;
  --bg-alt: #f6f1ea;
  --border: #ddd2c4;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.top-bar {
  background: var(--bg-alt);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.top-bar strong { color: var(--maroon); font-size: 1.05rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-text {
  font-family: 'Niconne', cursive;
  font-size: 2.75rem;
  line-height: 1;
  color: #9e1414;
  white-space: nowrap;
}
.logo-text:hover { color: #9e1414; text-decoration: none; }
.site-header .gdf-badge img { max-height: 68px; width: auto; }

/* ---------- Nav ---------- */

.nav-wrap {
  background: var(--maroon);
}

.main-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a,
.main-nav > li > .nav-toggle-label {
  display: block;
  padding: 0.85rem 1.1rem;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
  background: var(--dark-red);
  text-decoration: none;
}

.main-nav .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  list-style: none;
  padding: 0.4rem 0;
  min-width: 220px;
  z-index: 50;
}

.main-nav li:hover .submenu { display: block; }

.main-nav .submenu li a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--maroon);
  font-size: 0.9rem;
}
.main-nav .submenu li a:hover { background: var(--bg-alt); text-decoration: none; }

.nav-toggle-checkbox { display: none; }
.nav-toggle-btn {
  display: none;
  color: #fff;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-size: 1.3rem;
}

@media (max-width: 860px) {
  .nav-toggle-btn { display: block; text-align: center; }
  .main-nav { flex-direction: column; display: none; }
  .nav-toggle-checkbox:checked ~ .main-nav { display: flex; }
  .main-nav .submenu { position: static; box-shadow: none; border: none; display: none; }
  .main-nav li.open .submenu { display: block; }
  .main-nav > li > a, .main-nav > li > .nav-toggle-label { text-align: center; }
}

/* ---------- Main content ---------- */

main { max-width: var(--max-width); margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem; }

h1 {
  color: var(--dark-red);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 { color: var(--maroon); font-size: 1.6rem; margin-top: 2rem; }
h3, h4 { color: var(--maroon); }

.intro p { max-width: 780px; margin: 0 auto 1.2rem; text-align: center; }

.section-image { margin: 1.5rem 0; text-align: center; }
.section-image img { border-radius: 4px; max-width: 500px; margin: 0 auto; }

/* ---------- Home hero / slideshow ---------- */

.hero-slideshow {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
  height: 420px;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
}
.hero-slideshow .slide.active { opacity: 1; pointer-events: auto; }
.hero-slideshow .slide img { width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 700px) {
  .hero-slideshow, .hero-slideshow .slide img { height: 260px; }
}

/* ---------- Homepage cards ---------- */

.cards-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  justify-content: center;
}
.card {
  flex: 1 1 320px;
  max-width: 480px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1.5rem;
}
.card img { border-radius: 4px; margin-bottom: 1rem; max-height: 220px; width: 100%; object-fit: cover; }
.btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.55rem 1.4rem;
  background: var(--maroon);
  color: #fff;
  border-radius: 3px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover { background: var(--dark-red); text-decoration: none; }

.welcome-block {
  text-align: center;
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1.8rem;
  margin: 2rem 0;
}
.welcome-block img { max-width: 70px; margin: 0.6rem auto; }

/* ---------- Avis / témoignages ---------- */

.testimonials { margin: 2.5rem 0; }
.testimonials h2 { text-align: center; margin-top: 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  margin: 1.5rem 0 2rem;
}
.testimonial {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
}
.testimonial .stars {
  color: #c9971c;
  letter-spacing: 3px;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.testimonial .quote {
  font-style: italic;
  margin: 0 0 0.8rem;
}
.testimonial .author {
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Rooms ---------- */

.room {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.room:last-child { border-bottom: none; }
.room-gallery { flex: 1 1 360px; max-width: 420px; }
.room-gallery img { border-radius: 4px; }
.room-gallery .thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.room-gallery .thumbs img { width: 70px; height: 50px; object-fit: cover; cursor: pointer; border-radius: 3px; opacity: 0.7; }
.room-gallery .thumbs img.active { opacity: 1; outline: 2px solid var(--maroon); }
.room-info { flex: 1 1 360px; }
.room-info h3 { margin-top: 0; font-size: 1.3rem; }
.room-info .meta { margin-top: 0.8rem; font-weight: 600; color: var(--text-light); }
.room-info .meta span { display: block; }

/* ---------- Gîte ---------- */

.gite-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.gite-gallery-grid img { border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; }

.info-box {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.info-box h3 { margin-top: 0; }
.info-box ul { margin: 0.3rem 0; padding-left: 1.3rem; }

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.tarifs-table td, .tarifs-table th {
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  text-align: center;
  transition: background-color 0.15s ease;
}
.tarifs-table th { background: var(--bg-alt); color: var(--maroon); }
.tarifs-table tr:hover td { background: #efe0c9; }
.tarifs-table--rooms { font-size: 0.9rem; min-width: 640px; }
.tarifs-table--rooms th { white-space: nowrap; }

/* ---------- Recipes ---------- */

.recipe {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.recipe:last-child { border-bottom: none; }
.recipe h2 { text-align: left; margin-top: 0; }
.recipe-columns {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.recipe-columns > div { flex: 1 1 300px; }
.recipe h4 { margin-bottom: 0.4rem; }
.recipe ul, .recipe ol { padding-left: 1.2rem; }
.recipe .conseil { background: var(--bg-alt); border-radius: 6px; padding: 1rem 1.2rem; margin-top: 1rem; }

.years-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 2.5rem;
}
.years-nav a {
  border: 1px solid var(--maroon);
  color: var(--maroon);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}
.years-nav a.active, .years-nav a:hover {
  background: var(--maroon);
  color: #fff;
  text-decoration: none;
}

/* ---------- Region galleries ---------- */

.region-gallery {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.region-gallery img { flex: 1 1 200px; max-width: 260px; border-radius: 4px; object-fit: cover; height: 170px; }
.region-caption { text-align: center; margin-top: 0.3rem; color: var(--text-light); font-size: 0.95rem; }

.map-embed {
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.map-embed iframe { width: 100%; height: 400px; border: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.contact-info { flex: 1 1 320px; }
.contact-form { flex: 1 1 360px; }
.contact-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; color: var(--maroon); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-message {
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.form-message.success { background: #e4f3e1; color: #2c5e26; }
.form-message.error { background: #fbe4e4; color: #7a1f1f; }

.legal-mentions {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}
.site-footer strong { color: var(--maroon); }

/* ---------- Lightbox (agrandissement photo) ---------- */

img.zoomable { cursor: zoom-in; }

body.lightbox-open { overflow: hidden; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }

.lightbox-image {
  max-width: 88vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}

@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 1.1rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
  .lightbox-close { top: 0.6rem; right: 0.6rem; }
}
.site-footer hr { max-width: 300px; margin: 0 auto 1rem; }
