/* Ateliers — déclinaison éditoriale ivoire, noire et jaune du système projets. */

body.project-ateliers {
  --atelier-yellow: #e2a827;
  background: var(--project-paper);
}

body.project-ateliers .pu-hero::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .05) 38%, rgba(0, 0, 0, .82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .08) 46%, rgba(0, 0, 0, .18) 100%);
}

.atelier-hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  background: #15130f;
}

.atelier-hero-media__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.035);
}

.atelier-hero-media__image--movement { object-position: 54% 50%; }
.atelier-hero-media__image--circle { object-position: 76% 50%; }

body.project-ateliers .pu-hero h1 {
  max-width: none;
  white-space: nowrap;
}

.atelier-opening {
  background: var(--project-paper);
}

.atelier-opening__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(42px, 7vw, 116px);
  align-items: end;
  padding-block: clamp(74px, 9vw, 138px);
}

.atelier-opening h2 {
  max-width: 12ch;
  margin: 0;
  font-family: "Climate Crisis", var(--font-title);
  font-size: clamp(46px, 6.4vw, 94px);
  font-weight: 400;
  font-variation-settings: "YEAR" 1988;
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.atelier-opening__inner > p {
  margin: 0;
  padding-top: 24px;
  border-top: 4px solid var(--atelier-yellow);
  color: #2b2822;
  font-family: var(--font-clean);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.65;
}

.atelier-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atelier-programmes {
  background: var(--project-paper-light);
}

.atelier-programmes h2 {
  font-size: clamp(42px, 5.8vw, 86px);
}

@media (max-width: 560px) {
  .atelier-programmes h2 {
    font-size: clamp(35px, 10vw, 47px);
  }
}

.atelier-programmes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(54px, 8vw, 126px);
  row-gap: clamp(68px, 8vw, 112px);
}

.atelier-programme {
  position: relative;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--project-line);
}

.atelier-programme::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 58px;
  height: 4px;
  background: var(--atelier-yellow);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.atelier-programme:is(:hover, :focus-within)::before {
  transform: scaleX(1.65);
}

.atelier-programme__source {
  margin: 0 0 22px !important;
  color: #776025 !important;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.atelier-programme h3 {
  max-width: 15ch;
}

.atelier-practice {
  padding: clamp(84px, 10vw, 154px) 0;
  color: var(--project-paper-light);
  background: var(--project-ink);
}

.atelier-practice__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(54px, 9vw, 142px);
  align-items: start;
}

.atelier-practice__heading > p {
  width: fit-content;
  margin: 0 0 28px;
  padding-top: 14px;
  border-top: 4px solid var(--atelier-yellow);
  color: rgba(251, 248, 241, .62);
  font-family: var(--font-clean);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.atelier-practice h2 {
  max-width: 13ch;
  margin: 0;
  font-family: "Climate Crisis", var(--font-title);
  font-size: clamp(40px, 4.7vw, 70px);
  font-weight: 400;
  font-variation-settings: "YEAR" 1988;
  line-height: .9;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.atelier-practice__copy {
  padding-top: 8px;
}

.atelier-practice__copy p {
  max-width: 58ch;
  margin: 0 0 1.35em;
  color: rgba(251, 248, 241, .9);
  font-family: var(--font-clean);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .atelier-hero-media {
    grid-template-columns: 53% 47%;
    gap: 1px;
  }

  .atelier-hero-media__image--movement { object-position: 52% 50%; }
  .atelier-hero-media__image--circle { object-position: 78% 50%; }

  body.project-ateliers .pu-hero h1 {
    white-space: normal;
  }

  .atelier-opening__inner,
  .atelier-programmes__grid,
  .atelier-practice__grid {
    grid-template-columns: 1fr;
  }

  .atelier-opening__inner {
    gap: 42px;
  }

  .atelier-strip {
    grid-template-columns: 1fr;
    padding-inline: var(--project-gutter);
  }

  .atelier-strip > div {
    border-right: 1px solid rgba(251, 248, 241, .15);
    border-bottom: 1px solid rgba(251, 248, 241, .15);
  }

  .atelier-programmes__grid {
    row-gap: 58px;
  }

  .atelier-practice__grid {
    gap: 46px;
  }
}

@media (max-width: 560px) {
  body.project-ateliers .pu-hero h1 {
    font-size: clamp(38px, 10.2vw, 43px);
    letter-spacing: -.05em;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atelier-programme::before {
    transition: none;
  }
}
