/* =========================
   CHAMBRES PAGE
========================= */
.chambres-hero {
  min-height: 100vh;
}

.chambres-hero .hero-title {
  max-width: none;
}

.chambres-intro {
  background-color: var(--color-light);
}

.chambres-intro__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.chambres-intro__text {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}

.chambres-common-list {
  margin: 0 auto 18px;
  padding: 0;
  list-style: none;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.chambres-common-list li {
  padding: 10px 14px;
  border: 1px solid rgba(88, 73, 16, 0.18);
  background-color: rgba(88, 73, 16, 0.05);
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.82);
}

.chambres-intro__note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.72);
}

.chambres-list {
  background-color: var(--color-light);
}

.chambres-list__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
}

.chambre-card {
  overflow: hidden;
  background-color: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  transition:
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.chambre-card__media {
  min-height: 420px;
  transform: scale(1);
  transition:
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.chambre-card__body {
  padding: 24px 24px 28px;
}

.chambre-card__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-brown);
}

.chambre-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.08;
  font-weight: 500;
  color: var(--color-black);
}

.chambre-card__meta {
  margin: 0 0 10px;
  font-size: 0.98rem;
  color: rgba(17, 17, 17, 0.68);
}

.chambre-card__desc {
  margin: 0 0 18px;
  min-height: 2.6em;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chambre-card__features {
  margin: 0 0 22px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.chambre-card__features li {
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.82);
}

.chambre-card__btn {
  min-width: 150px;
}

/* Hover plus doux et premium */
.chambre-card:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: rgba(88, 73, 16, 0.2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.chambre-card:hover .chambre-card__media {
  transform: scale(1.03);
  filter: brightness(1.03);
}

/* Apparition plus lente */
.chambres-list .reveal {
  transition:
    opacity 1.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.chambres-list .reveal-up {
  transform: translate3d(0, 52px, 0);
}

/* =========================
   CHAMBRE CAROUSEL
========================= */
.chambre-card__media.chambre-carousel {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.chambre-carousel__track {
  position: absolute;
  inset: 0;
}

.chambre-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition:
    opacity 0.7s ease,
    transform 1.2s ease,
    visibility 0s linear 0.7s;
}

.chambre-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition:
    opacity 0.7s ease,
    transform 1.2s ease,
    visibility 0s linear 0s;
}

.chambre-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-gold-brown);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
  opacity: 0;
}

.chambre-carousel__arrow--prev {
  left: 14px;
}

.chambre-carousel__arrow--next {
  right: 14px;
}

.chambre-card:hover .chambre-carousel__arrow {
  opacity: 1;
}

.chambre-carousel__arrow:hover {
  background-color: var(--color-gold-brown);
  color: var(--color-white);
}

.chambre-carousel__arrow:active {
  transform: translateY(-50%) scale(0.96);
}
.chambre-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chambre-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chambre-card__btn {
  margin-top: auto;
  align-self: flex-start; /* le bouton garde sa taille naturelle */
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .chambres-hero {
    min-height: auto;
    height: clamp(320px, 58vw, 520px);
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 24px;
    align-items: flex-end;
  }

  .chambres-hero .hero-media {
    inset: 0;
  }

  .chambres-hero .hero-bg {
    transform: scale(1.01);
    background-position: center center;
  }

  .chambres-hero .hero-title {
    max-width: 12ch;
  }

  .chambres-list__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .chambre-card__media,
  .chambre-card__media.chambre-carousel {
    min-height: 340px;
  }

  .chambre-card__body {
    padding: 22px 18px 24px;
  }

  .chambres-common-list {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .chambres-hero {
    min-height: auto;
    height: clamp(260px, 62vw, 380px);
    padding-top: calc(var(--header-height) + 8px);
    padding-bottom: 20px;
    margin-bottom: 0;
  }

  .chambres-hero .hero-title {
    font-size: clamp(1.9rem, 8vw, 3rem);
    max-width: 11ch;
    line-height: 1.08;
  }

  .chambre-card__media,
  .chambre-card__media.chambre-carousel {
    min-height: 280px;
  }

  .chambre-card__title {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .chambre-card__desc {
    font-size: 0.84rem;
    min-height: 2.5em;
  }

  .chambre-card__features li {
    font-size: 0.92rem;
  }

  .chambre-card__btn {
    width: 100%;
  }

  .chambre-carousel__arrow {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
    opacity: 1;
  }

  .chambre-carousel__arrow--prev {
    left: 10px;
  }

  .chambre-carousel__arrow--next {
    right: 10px;
  }
}