/* ============================================================
   Section 5 — VITRINE "Ce qu'on fait"
   ============================================================ */

.showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) var(--gutter);
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 19, 22, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 19, 22, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
}

.showcase-head,
.showcase-grid {
  position: relative;
  z-index: 1;
}

.showcase-head {
  max-width: var(--container);
  margin: 0 auto clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(300px, 0.62fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(18, 19, 22, 0.16);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 88% 18%, rgba(193, 39, 45, 0.16), transparent 24vw),
    linear-gradient(135deg, var(--ink) 0%, #181a1e 100%);
  box-shadow: 0 28px 72px rgba(18, 19, 22, 0.18);
  color: var(--paper);
}

.showcase-head-left {
  max-width: 760px;
}

.showcase-eyebrow {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 241, 234, 0.16);
  border-radius: var(--r-full);
  background: rgba(245, 241, 234, 0.06);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.showcase-title {
  margin: 0;
  max-width: 13.5ch;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.showcase-title em {
  color: var(--signal);
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.showcase-note {
  position: relative;
  margin: 0;
  padding: 18px 0 18px 20px;
  max-width: 46ch;
  border-left: 2px solid var(--signal);
  color: rgba(245, 241, 234, 0.72);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.35vw, 18px);
  font-style: normal;
  line-height: 1.58;
}

.showcase-note::before {
  content: none;
}

.showcase-grid {
  max-width: var(--container);
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.showcase-slide {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(18, 19, 22, 0.18);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
  text-decoration: none;
  transform: translateZ(0);
  transition:
    border-color 260ms var(--ease),
    box-shadow 260ms var(--ease),
    transform 260ms var(--ease);
}

.showcase-slide:nth-child(1) {
  grid-column: 1 / span 6;
  grid-row: 1 / span 2;
}

.showcase-slide:nth-child(2) {
  grid-column: 7 / span 3;
  grid-row: 1;
}

.showcase-slide:nth-child(3) {
  grid-column: 10 / span 3;
  grid-row: 1;
}

.showcase-slide:nth-child(4) {
  grid-column: 7 / span 6;
  grid-row: 2;
}

.showcase-slide:hover,
.showcase-slide:focus-visible {
  border-color: rgba(201, 165, 90, 0.72);
  box-shadow: 0 22px 54px rgba(18, 19, 22, 0.22);
  transform: translateY(-4px);
}

.showcase-slide:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.showcase-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.01);
  transition:
    filter 420ms var(--ease),
    transform 700ms var(--ease);
}

.showcase-slide:nth-child(1) .showcase-slide-bg { background-position: 52% center; }
.showcase-slide:nth-child(2) .showcase-slide-bg { background-position: 50% 42%; }
.showcase-slide:nth-child(3) .showcase-slide-bg { background-position: 50% 54%; }
.showcase-slide:nth-child(4) .showcase-slide-bg { background-position: 50% 44%; }

.showcase-slide:hover .showcase-slide-bg,
.showcase-slide:focus-visible .showcase-slide-bg {
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.055);
}

.showcase-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 19, 22, 0.08) 0%, rgba(18, 19, 22, 0.2) 38%, rgba(18, 19, 22, 0.84) 100%),
    linear-gradient(90deg, rgba(18, 19, 22, 0.54) 0%, rgba(18, 19, 22, 0.1) 58%, rgba(18, 19, 22, 0) 100%);
}

.showcase-slide-num {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(243, 242, 239, 0.34);
  background: rgba(18, 19, 22, 0.42);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.showcase-slide-num::before {
  content: none;
}

.showcase-slide-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 40px);
}

.showcase-slide-cat {
  width: fit-content;
  padding: 6px 8px;
  background: rgba(201, 165, 90, 0.92);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.showcase-slide-title {
  max-width: 15ch;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.showcase-slide-desc {
  max-width: 47ch;
  margin: 0;
  color: rgba(243, 242, 239, 0.82);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
}

.showcase-slide-more {
  width: fit-content;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.92;
  transition: gap 220ms var(--ease), opacity 220ms var(--ease);
}

.showcase-slide:hover .showcase-slide-more,
.showcase-slide:focus-visible .showcase-slide-more {
  gap: 14px;
  opacity: 1;
}

.showcase-slide-more .arrow {
  color: var(--gold);
}

.showcase-slide:nth-child(2) .showcase-slide-body,
.showcase-slide:nth-child(3) .showcase-slide-body {
  padding: 22px;
}

.showcase-slide:nth-child(2) .showcase-slide-title,
.showcase-slide:nth-child(3) .showcase-slide-title {
  font-size: clamp(24px, 2.2vw, 34px);
}

.showcase-slide:nth-child(2) .showcase-slide-desc,
.showcase-slide:nth-child(3) .showcase-slide-desc {
  font-size: 13px;
  line-height: 1.48;
}

.showcase-slide:nth-child(2) .showcase-slide-more,
.showcase-slide:nth-child(3) .showcase-slide-more {
  font-size: 11px;
}

@media (max-width: 1080px) {
  .showcase-grid {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .showcase-slide,
  .showcase-slide:nth-child(1),
  .showcase-slide:nth-child(2),
  .showcase-slide:nth-child(3),
  .showcase-slide:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    min-height: 420px;
  }

  .showcase-slide:nth-child(1),
  .showcase-slide:nth-child(4) {
    grid-column: 1 / -1;
    min-height: 480px;
  }
}

@media (max-width: 820px) {
  .showcase-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .showcase-note {
    max-width: 56ch;
  }
}

@media (max-width: 640px) {
  .showcase {
    padding: 54px 16px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .showcase-head {
    padding: 22px 18px;
    margin-bottom: 28px;
  }

  .showcase-eyebrow {
    margin-bottom: 12px;
  }

  .showcase-title {
    max-width: 13ch;
    font-size: 36px;
    letter-spacing: -0.035em;
    line-height: 1;
  }

  .showcase-note {
    padding: 14px 0 14px 16px;
    font-size: 15px;
    line-height: 1.5;
  }

  .showcase-slide,
  .showcase-slide:nth-child(1),
  .showcase-slide:nth-child(2),
  .showcase-slide:nth-child(3),
  .showcase-slide:nth-child(4) {
    grid-column: auto;
    min-height: 330px;
  }

  .showcase-slide-body,
  .showcase-slide:nth-child(2) .showcase-slide-body,
  .showcase-slide:nth-child(3) .showcase-slide-body {
    padding: 18px;
  }

  .showcase-slide-title,
  .showcase-slide:nth-child(2) .showcase-slide-title,
  .showcase-slide:nth-child(3) .showcase-slide-title {
    max-width: 13ch;
    font-size: 29px;
    line-height: 1;
  }

  .showcase-slide-desc,
  .showcase-slide:nth-child(2) .showcase-slide-desc,
  .showcase-slide:nth-child(3) .showcase-slide-desc {
    font-size: 13px;
    line-height: 1.45;
  }

  .showcase-slide-more {
    font-size: 11px;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .showcase-slide,
  .showcase-slide:nth-child(1),
  .showcase-slide:nth-child(2),
  .showcase-slide:nth-child(3),
  .showcase-slide:nth-child(4) {
    min-height: 310px;
  }
}
