.gite-page  {
  background:#fff;
  color:var(--navy);
  padding-bottom:80px;
}

.gite-features  {
  max-width:1200px;
  margin:auto;
  padding:80px 32px;
  display:grid;
  gap:80px;
}

.gite-feature  {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:64px;
  align-items:start;
}

.gite-feature-photo  {
  width:100%;
  max-width:529px;
}

.gite-feature-photo,.room-photo,.gite-outdoors-photo  {
  aspect-ratio:1;
  border-radius:8px;
  overflow:hidden;
}

.gite-feature-photo img,.room-photo img,.gite-outdoors-photo img,.gite-living-card > img  {
  width:100%;
  height:100%;
  object-fit:cover;
}

.gite-feature-copy  {
  padding:40px 0;
  display:grid;
  gap:24px;
}

.gite-feature h2  {
  font-size:clamp(36px, 3.334vw, 48px);
  line-height:1.12;
}

.gite-feature-copy > p,.gite-practical > p  {
  color:rgba(33,47,58,.8);
  font:400 16px/1.65 var(--sans);
  white-space:pre-line;
}

@media(min-width:701px)  {
  .gite-feature:nth-child(even) .gite-feature-photo  {
    order:2;
  }

}

.gite-rooms  {
  padding:64px 32px;
  overflow:hidden;
  background:var(--navy);
  color:#fff;
}

.gite-rooms-inner  {
  max-width:1200px;
  margin:auto;
}

.gite-rooms-heading  {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:48px;
  margin-bottom:64px;
}

.gite-rooms-heading > div  {
  min-width:0;
}

.gite-rooms-heading h2  {
  margin-top:22px;
  font-size:clamp(36px, 4.028vw, 58px);
  line-height:1.12;
}

.gite-rooms-intro  {
  max-width:350px;
  font:400 16px/1.65 var(--sans);
}

.gite-label  {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--green);
  font:14px/1.4 var(--serif);
  text-transform:uppercase;
}

.gite-label::before,.gite-label::after  {
  content:'';
  width:28px;
  height:1px;
  background:currentColor;
  flex:none;
}

.gite-rooms .gite-label  {
  color:#fff;
}

.rooms-viewport  {
  /* La seconde photo déborde du conteneur comme dans la maquette, pas de la page. */
  width:calc(100% + max(0px, (100vw - 1200px) / 2));
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.5) transparent;
}

.rooms-carousel.is-enhanced .rooms-viewport  {
  scrollbar-width:none;
  cursor:grab;
}

.rooms-viewport.is-dragging,.rooms-viewport.is-settling {
  scroll-snap-type:none;
  scroll-behavior:auto;
}

.rooms-carousel.is-enhanced .rooms-viewport.is-dragging {
  cursor:grabbing;
  user-select:none;
  -webkit-user-select:none;
}

.rooms-carousel.is-enhanced .rooms-viewport::-webkit-scrollbar  {
  display:none;
}

.rooms-viewport:focus-visible  {
  outline:3px solid #c68d3c;
  outline-offset:5px;
}

.rooms-track  {
  display:flex;
  gap:32px;
  width:max-content;
}

.room-card  {
  width:clamp(286px, 43.334vw, 624px);
  flex:none;
  scroll-snap-align:start;
}

.room-card figcaption  {
  margin-top:23px;
}

.room-card figcaption,.gite-living-card figcaption  {
  font:38px/1.2 var(--serif);
  overflow-wrap:anywhere;
}

.rooms-controls  {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:48px;
}

.rooms-controls[hidden]  {
  display:none;
}

.rooms-dots,.rooms-arrows  {
  display:flex;
  align-items:center;
}

.rooms-arrows  {
  gap:16px;
}

.room-arrow  {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  padding:12px;
}

.room-arrow .icon  {
  width:24px;
  height:24px;
}

.room-arrow:disabled  {
  opacity:.45;
  cursor:default;
}

.room-dot  {
  display:grid;
  place-items:center;
  width:16px;
  height:44px;
  padding:0;
  border:0;
  background:transparent;
}

.room-dot::before  {
  content:'';
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.4);
}

.room-dot[aria-current="true"]::before  {
  background:#fff;
}

.gite-sr-only  {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

.gite-container  {
  max-width:1200px;
  margin:80px auto 0;
}

.gite-section-heading  {
  display:grid;
  gap:16px;
  padding:40px 32px;
  margin-bottom:32px;
}

.gite-section-heading h2  {
  font-size:40px;
  line-height:1.12;
}

.gite-living-grid  {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:32px;
  padding:0 32px;
}

.gite-living-card  {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  min-height:640px;
  padding:40px;
  border-radius:8px;
  overflow:hidden;
  color:#fff;
}

.gite-living-card:last-child  {
  grid-column:1 / -1;
}

.gite-living-card > img  {
  position:absolute;
  inset:0;
  z-index:-2;
}

.gite-living-card:first-child > img  {
  object-position:76% center;
}

.gite-living-card:last-child > img  {
  object-position:center top;
}

.gite-living-card::after  {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(23,37,45,0), rgba(23,37,45,.2));
  z-index:-1;
}

.gite-living-zoom {
  position:absolute;
  inset:0;
  z-index:1;
  cursor:pointer;
}

.gite-living-zoom:focus-visible {
  outline-offset:-4px;
}

/* Même curseur sur la photo agrandie par l’extension. */
.glightbox-container .gslide .gslide-image img.zoomable {
  cursor:pointer;
}

.gite-prepare  {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:32px;
}

.gite-prepare .gite-section-heading  {
  margin-bottom:0;
  text-align:center;
}

.gite-prepare .gite-label  {
  justify-content:center;
}

.gite-prepare-grid  {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  width:100%;
}

.gite-practical  {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:16px;
  text-align:center;
}

.gite-practical > .icon  {
  width:51px;
  height:auto;
  margin-bottom:0;
}

.gite-practical h3  {
  font-size:32px;
  line-height:1.375;
}

.gite-practical > p  {
  line-height:24px;
}

.gite-outdoors-grid  {
  display:grid;
  grid-template-columns:2.12fr 1fr 1fr;
  gap:32px;
}

.gite-outdoors-photo  {
  position:relative;
  display:block;
  min-width:0;
  cursor:pointer;
}

.gite-outdoors-photo:focus-visible {
  outline-offset:4px;
}

.gite-photo-zoom {
  position:absolute;
  top:16px;
  right:16px;
  width:20px;
  height:20px;
  background:url('../icons/agrandir.svg') center / contain no-repeat;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.25));
  opacity:0;
  transition:opacity .2s ease;
  pointer-events:none;
}

.gite-living-card > img,.gite-outdoors-photo > img {
  transition:filter .2s ease;
}

.gite-living-zoom:focus-visible .gite-photo-zoom,
.gite-outdoors-photo:focus-visible .gite-photo-zoom {
  opacity:1;
}

.gite-living-card:focus-within > img,.gite-outdoors-photo:focus-visible > img {
  filter:brightness(.84);
}

@media(hover:hover) {
  .gite-living-zoom:hover .gite-photo-zoom,.gite-outdoors-photo:hover .gite-photo-zoom {
    opacity:1;
  }

  .gite-living-card:hover > img,.gite-outdoors-photo:hover > img {
    filter:brightness(.84);
  }
}

/* Sur écran tactile, un indicateur discret reste visible sans dépendre du survol. */
@media(hover:none) {
  .gite-photo-zoom {
    opacity:.75;
  }
}

.gite-outdoors-photo:first-child  {
  grid-row:span 2;
  aspect-ratio:auto;
}

.gite-outdoors-photo:nth-child(4) img  {
  object-position:center 70%;
}

@media(min-width:701px) and (max-width:1100px)  {
  .gite-feature  {
    gap:40px;
  }

  .gite-feature-copy  {
    padding:12px 0;
  }

  .gite-rooms-heading  {
    gap:32px;
  }

  .gite-rooms-intro  {
    max-width:280px;
  }

  .gite-living-card  {
    min-height:480px;
    padding:28px;
  }

  .gite-prepare-grid  {
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:32px;
    padding:0 24px;
  }

  .gite-outdoors-grid  {
    padding:0 32px;
    gap:24px;
  }

}

@media(max-width:700px)  {
  .gite-page  {
    padding-bottom:56px;
  }

  .gite-features  {
    padding:56px 24px;
    gap:56px;
  }

  .gite-feature  {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:24px;
  }

  .gite-feature-photo  {
    max-width:none;
  }

  .gite-feature-copy  {
    display:contents;
  }

  .gite-feature h2,.gite-rooms-heading h2,.gite-section-heading h2  {
    font-size:36px;
    line-height:1.15;
  }

  .gite-rooms  {
    padding:56px 24px;
  }

  .gite-rooms-heading  {
    flex-direction:column;
    align-items:stretch;
    gap:24px;
    margin-bottom:24px;
  }

  .gite-rooms-heading h2  {
    margin-top:24px;
  }

  .gite-rooms-intro  {
    max-width:none;
  }

  .gite-label  {
    font-size:13px;
  }

  .gite-label::before,.gite-label::after  {
    display:none;
  }

  .rooms-viewport  {
    width:100%;
  }

  .rooms-track  {
    gap:16px;
  }

  .room-card  {
    width:286px;
  }

  .room-card figcaption  {
    margin-top:16px;
    font-size:28px;
  }

  .rooms-controls  {
    margin-top:24px;
  }

  .gite-container  {
    margin-top:0;
    padding:56px 24px;
  }

  .gite-section-heading  {
    padding:0;
    margin-bottom:24px;
    gap:24px;
  }

  .gite-living-grid  {
    grid-template-columns:minmax(0, 1fr);
    padding:0;
    gap:24px;
  }

  .gite-living-card  {
    min-height:360px;
    padding:24px;
    border-radius:0;
  }

  .gite-living-card figcaption  {
    font-size:28px;
    line-height:1.15;
  }

  .gite-prepare-grid  {
    grid-template-columns:minmax(0, 1fr);
    gap:32px;
  }

  .gite-practical  {
    padding:0;
  }

  .gite-practical h3  {
    font-size:28px;
    line-height:1.2;
  }

  .gite-practical > .icon {
    width:36px;
  }

  .gite-outdoors  {
    padding-bottom:0;
  }

  .gite-outdoors-grid  {
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
  }

  .gite-outdoors-photo:first-child  {
    grid-column:1 / -1;
    grid-row:auto;
    aspect-ratio:1;
    margin-bottom:8px;
  }

}

