/* V87 — Réalisation Perpignan : 4 comparaisons avant / après, pièce par pièce. */
.v87-perpignan-board {
  overflow: hidden;
  background: #f6f8f7;
}

.v87-perpignan-head {
  padding: 20px 24px;
}

.v87-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #f6f8f7 0%, #ffffff 100%);
}

.v87-room-card {
  overflow: hidden;
  border: 1px solid rgba(11, 47, 45, .12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 47, 45, .08);
}

.v87-room-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(11, 47, 45, .09);
  background: #fff;
}

.v87-room-title > span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 50%;
  color: #fff;
  background: #0b2f2d;
  font-size: .78rem;
  font-weight: 900;
}

.v87-room-title h3 {
  margin: 0;
  color: #0b2f2d;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.v87-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #dfe7e4;
}

.v87-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #edf1f0;
}

.v87-photo > span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(181, 67, 31, .96);
  box-shadow: 0 5px 16px rgba(0,0,0,.18);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.v87-photo.after > span {
  background: rgba(23, 139, 103, .96);
}

.v87-photo img {
  display: block;
  width: 100%;
  height: clamp(310px, 34vw, 470px);
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease, filter .45s ease;
}

.v87-room-card:hover .v87-photo img {
  transform: scale(1.018);
  filter: saturate(1.03) contrast(1.02);
}

@media (max-width: 900px) {
  .v87-comparison-grid {
    grid-template-columns: 1fr;
  }
  .v87-photo img {
    height: clamp(300px, 62vw, 520px);
  }
}

@media (max-width: 560px) {
  .v87-perpignan-head {
    padding: 16px 13px;
  }
  .v87-comparison-grid {
    gap: 14px;
    padding: 12px;
  }
  .v87-room-card {
    border-radius: 17px;
  }
  .v87-room-title {
    padding: 12px;
  }
  .v87-photo > span {
    top: 8px;
    left: 8px;
    padding: 6px 9px;
    font-size: .68rem;
  }
  .v87-photo img {
    height: min(72vw, 370px);
  }
}
