:root {
  --green: #718e40;
  --green-dark: #4e6230;
  --sand: #f5ede0;
  --sand-2: #faf5ec;
  --red-earth: #a44828;
  --blue: #4a7a8a;
  --lavender: #7b6a9e;
  --lavender-dark: #4f416e;
  --accent:      var(--red-earth);
  --accent-dark: #6e2e12;
  --cta-end:     var(--green);
  --text: #1e2814;
  --muted: #6b6550;
  --white: #ffffff;
  --border: #e8d9c0;
  --shadow: 0 24px 60px rgba(58, 72, 35, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--sand-2);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

/* ── Header / Mega-menu ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 216, 200, .9);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--green-dark);
  white-space: nowrap;
}

.brand img {
  max-height: 40px;
}

.nav-toggle { display: none; }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 999px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.main-nav > ul > li > a:hover { background: var(--sand); }

.phone-link {
  background: var(--red-earth);
  color: #fff !important;
  padding: 0 16px !important;
}

.phone-link:hover { background: var(--green-dark) !important; }

.phone-mobile {
  display: none;
  background: var(--red-earth);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  margin-left: auto;
}

.has-menu > a::after {
  content: "▾";
  font-size: 11px;
  margin-left: 6px;
  opacity: .75;
}

.has-menu {
  padding-bottom: 16px; /* pont invisible entre le lien et le mega-menu */
  margin-bottom: -16px; /* compense pour ne pas décaler les items suivants */
}

.mega-menu {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: grid;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(31, 63, 50, .16);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* délai à la fermeture : le menu reste 300ms après que la souris le quitte */
  transition: opacity .2s ease .3s, transform .2s ease .3s, visibility .2s ease .3s;
}

.has-menu:hover .mega-menu,
.has-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s; /* ouverture immédiate, sans délai */
}

.mega-menu.small {
  width: 380px;
  grid-template-columns: 1fr;
}

.mega-menu.two-cols {
  width: 640px;
  grid-template-columns: repeat(2, 1fr);
}

.mega-menu.three-cols {
  width: min(940px, calc(100vw - 40px));
  grid-template-columns: repeat(3, 1fr);
}

.mega-menu h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red-earth);
  margin: 0 0 10px;
}

.mega-menu a {
  display: block;
  padding: 8px 0;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(228, 216, 200, .7);
}

.mega-menu a:hover { color: var(--red-earth); }
.mega-menu a:last-child { border-bottom: 0; }

/* ── Hero ── */

.hero {
  --hero-g-begin: rgba(0,0,0,.45);
  --hero-g-mid: rgba(0,0,0,.31);
  --hero-g-end: rgba(0,0,0,.09);
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-image: linear-gradient(90deg, var(--hero-g-begin), var(--hero-g-mid), var(--hero-g-end)), var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 1060px;
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ── Typography ── */

h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  line-height: 1.1;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(22px, 3vw, 38px);
  color: var(--green-dark);
}

h3 {
  font-size: 24px;
  color: var(--green-dark);
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-facts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}

.hero-facts span {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  padding: 9px 12px;
  border-radius: 999px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 63, 50, .18);
}

.btn-primary { background: var(--red-earth); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--green-dark); border-color: rgba(31, 63, 50, .2); }

/* ── Layout ── */

section { padding: 76px 0; }

.section-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-intro p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -58px;
  position: relative;
  z-index: 2;
}

.proof-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 216, 200, .75);
}

.proof-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.proof-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.bg-sand { background: var(--sand); }

.grid-2 {
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 40px;
  align-items: center;
}
.grid-2:has(> .rounded-img:first-child) {
  grid-template-columns: 3fr 4fr;
}

.rounded-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-credit {
  font-size: .75rem;
  color: var(--muted);
  margin: .5rem 0 0;
  line-height: 1.4;
}
.photo-credit a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(102,115,110,.4);
}
.photo-credit a:hover { color: var(--green); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--green-dark);
}

.feature small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}

/* ── Table ── */

.gites-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

th, td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--green);
  color: var(--white);
  font-size: 14px;
}

td strong { color: var(--green-dark); }
tr:last-child td { border-bottom: 0; }

.tag {
  display: inline-block;
  background: var(--sand);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 6px;
}

/* ── Cards ── */

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.need-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 38px rgba(31, 63, 50, .08);
}

.need-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.preview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 38px rgba(31, 63, 50, .08);
}

.preview-card h3 { color: var(--green-dark); margin-bottom: 10px; }
.preview-card p { color: var(--muted); margin: 0; }

.note {
  margin-top: 24px;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--muted);
  font-weight: 600;
}

/* ── Media ── */

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

video {
  border-radius: 18px;
  width: 100%;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(31, 63, 50, .1);
  border: 1px solid var(--border);
}

.activities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.activity {
  background: rgba(255,255,255,.68);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 18px;
  font-weight: 700;
  color: var(--green-dark);
}

.activity small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ── FAQ ── */

.faq { display: grid; gap: 14px; }

details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(31, 63, 50, .06);
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--green-dark);
}

details p { color: var(--muted); margin-bottom: 0; }

/* ── CTA ── */

.cta {
  background: linear-gradient(135deg, var(--green-dark), var(--cta-end));
  color: var(--white);
  border-radius: 34px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta h2 { color: var(--white); }
.cta p { margin: 0; color: rgba(255,255,255,.84); font-size: 17px; }

/* ── Footer ── */

footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.82);
  padding: 46px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

footer strong { color: var(--white); }

/* ── Responsive ── */

@media (max-width: 1120px) {
  .brand span { display: none; }
}

@media (max-width: 1020px) {
  .nav-wrapper { min-height: 74px; }
  .brand span { display: inline; }
  .phone-mobile { display: flex; }
  .nav-burger { display: flex; }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(31, 63, 50, .12);
    display: none;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .main-nav { display: block; }

  .main-nav > ul {
    display: block;
    padding: 16px 18px 24px;
  }

  .main-nav > ul > li > a {
    min-height: auto;
    padding: 13px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .phone-link {
    display: inline-flex !important;
    margin-top: 12px;
    padding: 12px 18px !important;
    border-radius: 999px !important;
    border-bottom: 0 !important;
  }

  .mega-menu,
  .mega-menu.small,
  .mega-menu.two-cols,
  .mega-menu.three-cols {
    position: static;
    transform: none;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 16px;
    margin: 8px 0 18px;
    padding: 16px;
    background: var(--sand-2);
  }

  .has-menu:hover .mega-menu,
  .has-menu:focus-within .mega-menu { transform: none; }
}

@media (max-width: 900px) {
  .proof-grid,
  .need-grid,
  .preview-grid,
  .activities { grid-template-columns: repeat(2, 1fr); }
  .grid-2,
  .cta { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .brand span {
    font-size: 13px;
    max-width: 165px;
    white-space: normal;
    line-height: 1.2;
  }

  .preview-grid { grid-template-columns: 1fr; }
  .hero { min-height: 460px; }
  section { padding: 54px 0; }
}

@media (max-width: 640px) {

  .proof-grid,
  .need-grid,
  .preview-grid,
  .activities,
  .feature-list,
  .gallery { grid-template-columns: 1fr; }

  .cta { padding: 30px; }
}

/* ═══════════════════════════════════════════════
   Boutons supplémentaires
═══════════════════════════════════════════════ */
.btn-blue    { background: var(--blue);     color: var(--white); }
.btn-lavender { background: var(--lavender); color: var(--white); }

/* ═══════════════════════════════════════════════
   Quick card (fiche résumé d'un gîte)
═══════════════════════════════════════════════ */
.quick-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.quick-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.quick-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.quick-list strong { color: var(--green-dark); }
.quick-list span   { color: var(--muted); }

/* ═══════════════════════════════════════════════
   Layout grid (plan du gîte / couchages)
═══════════════════════════════════════════════ */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.layout-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 38px rgba(31,63,50,.08);
}

.layout-card ul { padding-left: 20px; margin-bottom: 0; color: var(--muted); }
.layout-card li { margin: 8px 0; }

.layout-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ═══════════════════════════════════════════════
   Amenities (liste des équipements)
═══════════════════════════════════════════════ */
.amenities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.amenity {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 18px;
  font-weight: 700;
  color: var(--green-dark);
}

.amenity small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   Distance grid (distances aux points d'intérêt)
═══════════════════════════════════════════════ */
.distance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.distance-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(31,63,50,.07);
}

.distance-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 20px;
  margin-bottom: 2px;
}

.distance-card span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ═══════════════════════════════════════════════
   Price box (tarifs)
═══════════════════════════════════════════════ */
.price-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.price-card {
  background: var(--sand-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.price-card h3 { margin-bottom: 10px; }
.price-card p  { margin: 0; color: var(--muted); }
.price-card strong { color: var(--accent); font-size: 24px; }

.price-box .hero-actions { margin-top: 24px; margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   Related grid (gîtes similaires)
═══════════════════════════════════════════════ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 34px rgba(31,63,50,.08);
}

.related-card p { color: var(--muted); }

/* ═══════════════════════════════════════════════
   Info card + Cards grid (pages aux alentours)
═══════════════════════════════════════════════ */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.info-card ul { padding-left: 20px; color: var(--muted); margin-bottom: 0; }
.info-card li { margin: 8px 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 38px rgba(31,63,50,.08);
}

.card p { color: var(--muted); margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   Notice (encart informatif)
═══════════════════════════════════════════════ */
.notice {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent-dark);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   FAQ category heading
═══════════════════════════════════════════════ */
.faq-category {
  margin: 30px 0 4px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--green-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

/* ═══════════════════════════════════════════════
   Modificateurs de thème — settent uniquement des variables CSS
═══════════════════════════════════════════════ */
.faq-category--lavender,
.notice--lavender,
.price-card--lavender { --accent: var(--lavender); --accent-dark: var(--lavender-dark); }

.cta--lavender { --cta-end: var(--lavender-dark); }

/* ═══════════════════════════════════════════════
   Responsive — nouveaux composants
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .amenities,
  .distance-grid,
  .cards-grid,
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .price-grid,
  .layout-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .amenities,
  .distance-grid,
  .cards-grid,
  .related-grid { grid-template-columns: 1fr; }

  .quick-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ─────────────────────────────────────────────
   Contact page
───────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(31,63,50,.08);
}
.contact-form h2 { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.4rem; }

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(31,63,50,.06);
}
.contact-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}
.contact-item-body strong {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
  margin-bottom: .3rem;
}
.contact-item-body p, .contact-item-body a {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.contact-item-body a:hover { color: var(--red-earth); }

.tel-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.tel-link:hover { color: var(--red-earth); }

/* ─────────────────────────────────────────────
   Formulaires (contact + réservation)
───────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--sand-2);
  transition: border-color .2s;
  box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: .45;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-submit .btn { width: 100%; justify-content: center; font-size: 1rem; padding: .9rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .75rem; text-align: center; }

/* ─────────────────────────────────────────────
   Réservation
───────────────────────────────────────────── */

.resa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .resa-grid { grid-template-columns: 1fr; }
}

.resa-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(31,63,50,.08);
}
.resa-form h2 { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.4rem; }

.gites-resa-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gite-resa-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(31,63,50,.06);
  transition: box-shadow .2s;
}
.gite-resa-card:hover { box-shadow: var(--shadow); }
.gite-resa-card h3 { margin: 0 0 .25rem; font-size: 1rem; color: var(--green-dark); }
.gite-resa-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.gite-resa-card a { flex-shrink: 0; }

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: etape;
}
.etape {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  counter-increment: etape;
  position: relative;
}
.etape::before {
  content: counter(etape);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.etape h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--green-dark); }
.etape p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ─────────────────────────────────────────────
   Disponibilités
───────────────────────────────────────────── */

.dispo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(31,63,50,.06);
  transition: box-shadow .2s;
}
.dispo-card:hover { box-shadow: var(--shadow); }
.dispo-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--green-dark); }

.dispo-gites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dispo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0 1rem;
}
.dispo-tag {
  display: inline-block;
  background: var(--sand);
  border-radius: 99px;
  padding: .25rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green-dark);
}

.dispo-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-dispo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(31,63,50,.08);
}
.contact-dispo h2 { margin-top: 0; }

.saisons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.saison-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(31,63,50,.06);
}
.saison-card h3 { margin: 0 0 .75rem; font-size: 1rem; color: var(--green-dark); }

.periode {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.periode:last-child { border-bottom: 0; }
.periode strong { color: var(--green-dark); }

/* ─────────────────────────────────────────────
   Localisation
───────────────────────────────────────────── */

.acces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .acces-grid { grid-template-columns: 1fr; }
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.itineraires {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.itineraire-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(31,63,50,.06);
}
.itineraire-card h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.itineraire-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }

.distances-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.distance-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  text-align: center;
}
.distance-item strong { display: block; font-size: 1.3rem; color: var(--green); margin-bottom: .25rem; }
.distance-item span { font-size: .85rem; color: var(--muted); }

/* --- Lightbox --- */
.lightbox-trigger { display: block; cursor: zoom-in; }
.gallery .lightbox-trigger { display: contents; }
.rounded-img .lightbox-trigger { display: block; }

.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay.visible { opacity: 1; }

.lightbox-overlay img {
  max-width: min(90vw, 1160px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transform: scale(.95); transition: transform .25s;
  cursor: default;
}
.lightbox-overlay.visible img { transform: scale(1); }

.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: #fff; font-size: 36px; line-height: 1;
  cursor: pointer; opacity: .7; user-select: none;
}
.lightbox-close:hover { opacity: 1; }
