/* Container */
.pc {
  position: relative;
  width: 100%;
  margin-top: 10vh;
}

/* Stack area */
.pc__stack {
  position: relative;
  width: 100%;
  min-height: 560px; /* ajuste selon ton design */
}

/* Card base */
.pc__card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 56px;
  cursor: pointer;
  user-select: none;
  transition: transform 320ms ease, opacity 320ms ease;
  box-sizing: border-box;
}

/* Left content */
.pc__title {
  margin: 0 0 6px 0;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  color: #EDE7DD; /* ajuste selon ton thème */
}

.pc__subtitle {
  font-size: 22px;
  font-weight: 600;
  color: #D6B890; /* petit accent */
  margin-bottom: 28px;
}

.pc__pills {
  display: grid;
  gap: 18px;
}

.pc__pill {
  background: #fff;
  border-radius: 18px;
  padding: 18px 22px;
  color: #1e1e1e;
  font-size: 18px;
  line-height: 1.4;
}

/* Right column */
.pc__right {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pc__imageWrap {
  width: min(60%);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badges */
.pc__badges {
  position: absolute;
  left: 20%;
  top: 20%;
  transform: translateY(-50%);
  display: grid;
  gap: 16px;
  z-index: 3;
}

.pc__badge {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.pc__badge--big { width: 260px; }
.pc__badge--small { width: 170px; }

.pc__badgeLabel {
  font-weight: 700;
  margin-bottom: 6px;
  color: #2a2a2a;
}

.pc__badgeValue {
  font-weight: 800;
  font-size: 22px;
  color: #3B6EA8; /* tu peux passer ça en variable */
}

/* --- Stack positions (3 visibles) --- */
/* Position 0: front */
.pc__card.is-front {
  z-index: 30;
  opacity: 1;
  transform: translateY(0) scale(1);
  background: var(--primary7);
}

/* Position 1: mid */
.pc__card.is-mid {
  z-index: 20;
  opacity: 1;
  transform: translateY(-46px) scale(0.94);
  background: var(--primary5);
}

/* Position 2: back */
.pc__card.is-back {
  z-index: 10;
  opacity: 1;
  transform: translateY(-96px) scale(0.88);
  background: var(--color-primary);
}

/* Le reste (caché) */
.pc__card.is-hidden {
  z-index: 0;
  opacity: 0;
  transform: translateY(-90px) scale(0.86);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .pc__card {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 18px;
  }
  .pc__badges {
    left: 0;
    top: 0;
    transform: none;
    position: relative;
    margin-bottom: 12px;
  }
  .pc__stack { min-height: 720px; }
}

@media (max-width: 640px) {
  .pc__title { font-size: 30px; }
  .pc__subtitle { font-size: 18px; }
  .pc__pill { font-size: 16px; padding: 14px 16px; }
}