/* ============================================================
   BLUE HORIZONS — hebergement.css
   Palette : vert forêt #2D5A3D · bois chaud · lumière douce
   ============================================================ */

/* ── Hero ── */
.hero--hebergement .hero__bg {
  background-image: url('../images/hebergement/index.jpg');
}

.hero--hebergement .hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 16, 0.2) 0%,
    rgba(10, 25, 16, 0.82) 100%
  );
}

/* ══════════════════════════════════════════════════════════════
   SECTION BOURG-ST-PIERRE — texte à gauche, image à droite
   ══════════════════════════════════════════════════════════════ */
.heberg-bsp {
  background-color: var(--color-white);
}

.heberg-bsp__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.heberg-bsp__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.heberg-bsp__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 28px;
}

.heberg-bsp__body p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: #3a4a3f;
  margin-bottom: 18px;
}

.heberg-bsp__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
}

/* ══════════════════════════════════════════════════════════════
   SECTION LES ESPACES — 3 cartes
   ══════════════════════════════════════════════════════════════ */
.heberg-espaces {
  background-color: #F2F5F3;
}

.heberg-espaces__header {
  text-align: center;
  margin-bottom: 60px;
}

.heberg-espaces__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 300;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.heberg-espaces__sub {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

.heberg-espaces__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.espace-card {
  background-color: var(--color-white);
  overflow: hidden;
  position: relative;
}

.espace-card__image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.espace-card:hover .espace-card__image { transform: scale(1.04); }

/* ── Carrousel par espace ── */
.espace-card__carousel {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background-color: #e8ece9;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  z-index: 2;
}

.espace-card__carousel:hover .carousel__btn,
.carousel__btn:focus-visible { opacity: 1; }

.carousel__btn:hover { background-color: #fff; }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }

.carousel__btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel__dot.is-active {
  background-color: #fff;
  transform: scale(1.3);
}

/* ── Lightbox plein écran ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background-color: rgba(12, 16, 14, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox.is-open {
  display: flex;
  animation: lightbox-in 0.3s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__img {
  max-width: min(1200px, 90vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__btn,
.lightbox__close {
  border: none;
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.lightbox__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.lightbox__btn:hover,
.lightbox__close:hover { background-color: rgba(255, 255, 255, 0.25); }

.lightbox__btn svg { width: 26px; height: 26px; }

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
}

.lightbox__close svg { width: 22px; height: 22px; }

.lightbox__btn svg,
.lightbox__close svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.15em;
}

@media (max-width: 700px) {
  .lightbox { padding: 16px; gap: 8px; }
  .lightbox__btn { width: 42px; height: 42px; }
  .lightbox__btn svg { width: 20px; height: 20px; }
  .lightbox__img { max-width: calc(100vw - 116px); }
}

.espace-card__body {
  padding: 28px 28px 36px;
}

.espace-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}

.espace-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.espace-card__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.espace-card__desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: #5a6a5f;
}

/* ══════════════════════════════════════════════════════════════
   SECTION STAGES & SÉMINAIRES
   ══════════════════════════════════════════════════════════════ */
.heberg-stages {
  background-color: var(--bg-tint);
  text-align: center;
  padding-block: 80px;
}

.heberg-stages__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  color: var(--accent-light);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
  padding-inline: var(--gutter);
}

.heberg-stages__detail {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(250,250,248,0.45);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .heberg-bsp__grid { grid-template-columns: 1fr; gap: 40px; }
  .heberg-espaces__grid { grid-template-columns: 1fr; gap: 2px; }
  .espace-card__image,
  .espace-card__carousel { height: 220px; }
  .carousel__btn { opacity: 1; }
}
