/* ==========================================================================
   CESURNES — Pièces uniques (template-pieces-uniques.php)
   The page came as a static export styled entirely inline; every declaration
   below is one of those inline styles moved onto a class, so the rendering is
   unchanged. Loaded only on this page, after page-hero.css and
   closing-band.css (the hero and closing band use their shared defaults).
   ========================================================================== */

/* The export gives every link on this page a terracotta hover. :where() keeps
   it at the export's a:hover weight, so the .btn hover colours still win. */
:where(.page-pieces-uniques) a:hover { color: var(--c-terracota); }

/* =================================================================== intro */
.uniques-intro {
  padding: clamp(64px, 8vw, 120px) var(--gutter) clamp(48px, 6vw, 80px);
  background: var(--c-white);
  color: var(--c-black);
}

.uniques-intro__inner {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.uniques-intro__text {
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.2;
  font-weight: 100;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ================================================================== pieces */
.uniques {
  padding: clamp(16px, 2vw, 32px) var(--gutter) clamp(72px, 9vw, 140px);
  background: var(--c-white);
  color: var(--c-black);
}

/* Two columns from about 1000px wide, one below. A row is as tall as its
   tallest piece: photo, then text. */
.uniques__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(380px, calc(50% - 64px))), 1fr));
  gap: 64px clamp(24px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
}

.uniques-piece {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
  min-width: 0;
}

/* The photo keeps one frame at every width, 4:5 as on a piece's page: a
   longer text makes the piece taller below it, never the photo smaller. */
.uniques-piece__media {
  flex: none;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #f2efea;
}

.uniques-piece__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.22, .61, .36, 1);
}

/* The text fills the rest of the piece, so in a row of two the material
   and button lines sit level, whatever each description's length. */
.uniques-piece__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
}

.uniques-piece__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.uniques-piece__name {
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.uniques-piece__price {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-black);
}

.uniques-piece__desc {
  max-width: 44ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  font-weight: 300;
  text-wrap: pretty;
}

.uniques-piece__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(9, 8, 7, .14);
}

.uniques-piece__material {
  font-size: 13px;
  line-height: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
}

.uniques-piece__cta { min-width: 200px; }

/* The piece opens its page: its name's link covers it, "Acquérir" above it
   (inc/piece.php). */
.uniques-piece { position: relative; }

.uniques-piece__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.uniques-piece__cta {
  position: relative;
  z-index: 1;
}
