/* Portfolio — vitrine qui convertit */

.page-portfolio {
  --glass: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04) 40%,
    rgba(30, 200, 176, 0.08)
  );
}

.page-portfolio .page-hero {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-portfolio .page-hero .wrap {
  max-width: 48rem;
}

.page-portfolio .page-hero h1 {
  max-width: 16ch;
  background: linear-gradient(105deg, #fff 0%, #e8f1f4 40%, #7ef0dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-portfolio .page-hero p {
  max-width: 40ch;
}

.page-portfolio .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.85s var(--ease) 0.5s forwards;
}

.page-portfolio .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.85s var(--ease) 0.65s forwards;
}

.page-portfolio .hero-proof span {
  font-size: 0.88rem;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.page-portfolio .hero-proof span::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

/* Showcase */
.showcase {
  display: grid;
  gap: clamp(4rem, 9vw, 7rem);
  padding-bottom: 1rem;
}

.showcase-item {
  position: relative;
}

.showcase-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.showcase-item .index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.showcase-item .index::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: rgba(30, 200, 176, 0.45);
}

.showcase-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--foam);
  letter-spacing: -0.02em;
}

.showcase-price small {
  color: var(--mist);
  font-weight: 500;
  font-size: 0.85rem;
}

.showcase-frame {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a1424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(30, 200, 176, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
}

.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  filter: saturate(1.05) brightness(0.92) contrast(1.02);
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}

.showcase-item:hover .showcase-frame img {
  transform: scale(1.1);
  filter: saturate(1.12) brightness(1) contrast(1.02);
}

.showcase-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 45% at 75% 15%, rgba(30, 200, 176, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(7, 16, 31, 0.05) 0%, transparent 42%, rgba(7, 16, 31, 0.42) 100%);
  pointer-events: none;
}

.showcase-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 56%
  );
  transform: translateX(-60%);
  transition: transform 0.9s var(--ease);
}

.showcase-item:hover .showcase-shine {
  transform: translateX(60%);
}

/* Glass panel vendeur */
.showcase-glass {
  position: absolute;
  z-index: 3;
  left: clamp(1rem, 3vw, 1.85rem);
  bottom: clamp(1rem, 3vw, 1.85rem);
  width: min(100% - 2rem, 26.5rem);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  display: grid;
  gap: 0.7rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--glass), rgba(7, 16, 31, 0.42);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(30, 200, 176, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s;
}

.showcase-item:hover .showcase-glass {
  transform: translateY(-6px);
  border-color: rgba(30, 200, 176, 0.4);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(30, 200, 176, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.showcase-glass .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7ef0dc;
  text-shadow: 0 0 18px rgba(30, 200, 176, 0.45);
}

.showcase-glass h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.showcase-glass > p {
  margin: 0;
  color: rgba(232, 241, 244, 0.82);
  font-size: 0.98rem;
  line-height: 1.5;
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.showcase-meta span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(232, 241, 244, 0.9);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.showcase-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.showcase-cta .btn {
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
}

.showcase-cta .btn-primary {
  box-shadow: 0 10px 28px rgba(30, 200, 176, 0.35);
}

.showcase-note {
  font-size: 0.8rem;
  color: rgba(232, 241, 244, 0.55);
}

/* Bande conversion */
.buy-strip {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 1.4rem;
  border: 1px solid rgba(30, 200, 176, 0.28);
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(30, 200, 176, 0.18), transparent 55%),
    rgba(232, 241, 244, 0.03);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 20px 50px rgba(30, 200, 176, 0.08);
}

.buy-strip h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
  line-height: 1.15;
}

.buy-strip p {
  color: var(--mist);
  margin-top: 0.4rem;
  max-width: 36ch;
}

.buy-strip .price-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--teal);
  text-align: right;
}

.buy-strip .price-line small {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mist);
  margin-top: 0.2rem;
}

.buy-strip__btn {
  margin-top: 0.85rem;
}

.page-portfolio .cta-inner {
  align-items: center;
}

.page-portfolio .cta-inner h2 {
  max-width: 16ch;
}

@media (max-width: 760px) {
  .showcase-frame {
    aspect-ratio: 3 / 4.2;
    border-radius: 1.25rem;
  }

  .showcase-glass {
    left: 0.85rem;
    right: 0.85rem;
    width: auto;
    bottom: 0.85rem;
  }

  .buy-strip .price-line {
    text-align: left;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .showcase-glass {
    background: rgba(7, 16, 31, 0.9);
  }
}
