/* ============================================
   Project / Use Case Pages
   ============================================ */

/* Header override for project pages */
.uc-banner ~ .header,
.header + .uc-banner {
  /* handled below */
}

/* Hero Background — hidden, styling moved to .uc-hero */
.uc-hero-bg {
  display: none;
}

.uc-hero-bg__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%) rotate(15deg) scale(0.8);
  width: 160%;
  max-width: none;
  transform-origin: center center;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* Hero Card */
/* Hero section with integrated background */
.uc-hero {
  max-width: 1264px;
  margin: -127px auto 0;
  padding: 242px 40px 48px;
  position: relative;
}

.uc-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  background: rgba(255, 205, 0, 0.2);
}

.uc-hero--audiens::before {
  background: url('../assets/audiens/hero-bg.png') center/cover no-repeat;
}

.uc-hero--rayon::before {
  background: url('../assets/rayon-project/hero-bg.png') center/cover no-repeat;
}

.uc-hero__card {
  background: white;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.uc-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 76px;
  padding: 64px 120px 16px;
  min-height: 400px;
}

.uc-hero__heading {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.uc-hero__title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uc-hero__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: normal;
}

.uc-hero__tags {
  display: flex;
  gap: 8px;
}

.uc-hero__tags .nav-pill {
  font-size: 18px;
  letter-spacing: 0.4px;
}

.uc-hero__desc {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.8px;
  line-height: 24px;
}

.uc-hero__desc p {
  margin-bottom: 16px;
}

.uc-hero__illustration {
  width: 286px;
  flex-shrink: 0;
}

.uc-hero__illustration img {
  width: 100%;
  height: 320px;
  object-fit: contain;
}

.uc-hero__meta {
  display: flex;
  gap: 64px;
  padding: 16px 120px 64px;
  font-size: 16px;
  letter-spacing: 1.2px;
  line-height: 24px;
}

.uc-hero__meta-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 334px;
}

.uc-hero__meta-label {
  font-weight: 700;
  margin-bottom: 16px;
}

.uc-hero__meta-value {
  font-weight: 400;
}

/* Sections */
.uc-section {
  padding: 100px 0;
}

.uc-section > * {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 142px;
  padding-right: 142px;
}

.uc-section--defi {
  position: relative;
  z-index: 2;
}

.uc-section--white {
  background: white;
}

.uc-section--yellow {
  background: #fff3c4;
}

.uc-section--purple {
  background: #e5e4f0;
}


.uc-methode__detail--pink {
  background: #fff9fb;
}

.uc-methode__detail--green {
  background: #e8f5e9;
}


.uc-section--beige {
  background: #f5ebc0;
}

.uc-section__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 64px;
}

.uc-section__title--center {
  text-align: left;
}

.uc-section--yellow .uc-section__title,
.uc-section--purple .uc-section__title,
.uc-section--beige .uc-section__title {
  text-align: center;
}

.uc-section__subtitle {
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 32px;
  text-align: center;
  margin-top: 64px;
}

/* Two Column Layout */
.uc-two-col {
  display: flex;
  align-items: center;
  gap: 75px;
}

.uc-two-col--reverse {
  flex-direction: row-reverse;
}

.uc-two-col__text {
  flex: 1;
  min-width: 0;
}

.uc-two-col__text .uc-section__title {
  margin-bottom: 64px;
}

.uc-two-col__img {
  flex: 1;
  min-width: 0;
}

.uc-two-col__img img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
}

.uc-two-col__img--full img {
  max-height: none;
}

.uc-two-col__img--offset img {
  width: 100%;
  margin-left: 0;
  margin-bottom: 0;
}

/* Body Text */
.uc-body-text {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.8px;
  line-height: 24px;
}

.uc-body-text p {
  margin-bottom: 16px;
}

.uc-body-text ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.uc-body-text li {
  margin-bottom: 4px;
}

.uc-body-text ul ul {
  margin-top: 4px;
  margin-bottom: 4px;
}

/* Le défi */
.uc-defi {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.uc-defi__screenshots {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.uc-defi__screen {
  width: 100%;
  display: block;
}

.uc-defi__quotes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uc-defi__quote {
  background: white;
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uc-defi__quote p {
  font-size: 16px;
  letter-spacing: 0.4px;
  line-height: 22px;
}

.uc-defi__quote--faded {
  opacity: 1;
}

.uc-defi__quote--more-faded {
  opacity: 1;
}

.uc-defi__quote-avatar {
  width: 81px;
  height: 99px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
}

.uc-defi__quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uc-defi__quotes--horizontal {
  flex-direction: row;
  gap: 24px;
}

.uc-defi__quotes--horizontal .uc-defi__quote {
  flex: 1;
  flex-direction: row;
  align-items: flex-start;
  padding: 17px 12px 14px 8px;
}

/* Méthode */
.uc-methode__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.uc-methode__step {
  background: white;
  border-radius: 50px;
  padding: 20px 24px;
  width: 320px;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
}

.uc-methode__arrow {
  font-size: 20px;
  color: var(--primary-a);
  opacity: 0.5;
}

.uc-methode__detail {
  background: #fff3c4;
  border-radius: 16px;
  padding: 64px 44px;
  font-size: 16px;
  letter-spacing: 0.8px;
  line-height: 24px;
}

.uc-methode__detail p {
  margin-bottom: 16px;
}

.uc-methode__detail p:last-child {
  margin-bottom: 0;
}

/* Screens overflow */
.uc-screens {
  overflow: hidden;
}

.uc-screens img {
  width: auto;
  height: 526px;
  max-width: none;
}

/* Solution */
.uc-solution__text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 16px;
  letter-spacing: 0.8px;
  line-height: 24px;
  margin-bottom: 52px;
}

.uc-solution__col {
  flex: 1;
  max-width: 50ch;
}

.uc-solution__col ul {
  list-style: disc;
  padding-left: 24px;
}

.uc-solution__col li {
  margin-bottom: 4px;
}

.uc-solution__screens {
  border-radius: 16px;
  overflow: hidden;
}

.uc-solution__img {
  width: 100%;
  display: block;
}

/* Craft */
.uc-craft {
  width: 100%;
  overflow: hidden;
}

.uc-craft__full {
  width: 100%;
  display: block;
}

/* Impact row with illustration */
.uc-impact__row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
}

.uc-impact__row .uc-impact__cards {
  margin-top: 0;
}

.uc-impact__illustration {
  width: 188px;
  height: 290px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Impact cards */
.uc-impact__cards {
  display: flex;
  gap: 24px;
  margin-top: 64px;
  position: relative;
}

.uc-impact__icon {
  position: absolute;
  top: -59px;
  right: 30px;
  width: 154px;
  height: 151px;
  z-index: 1;
}

.uc-impact__card {
  flex: 1;
  background: white;
  border-radius: 44px;
  padding: 44px 32px;
}

.uc-impact__stat {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
}

.uc-impact__card p {
  font-size: 16px;
  letter-spacing: 1.2px;
  line-height: 24px;
}

/* Nav Previous/Next */
.uc-nav {
  display: flex;
  justify-content: space-between;
  padding: 44px 142px;
}

.uc-nav__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.uc-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-a);
  color: white;
  border-radius: 50%;
  font-size: 16px;
}

/* ============================================
   Mobile
   ============================================ */

@media (max-width: 768px) {

  .uc-hero {
    padding: calc(127px + 32px) 24px 48px;
    min-height: auto;
  }

  .uc-hero__card {
    border-radius: 24px;
  }

  .uc-hero__top {
    flex-direction: column;
    padding: 32px 24px 16px;
    gap: 24px;
    min-height: auto;
  }

  .uc-hero__illustration {
    width: 70%;
    margin: 0 auto;
  }

  .uc-hero__illustration img {
    height: auto;
  }

  .uc-hero__meta {
    flex-direction: column;
    gap: 24px;
    padding: 16px 24px 32px;
  }

  .uc-hero__meta-group {
    width: 100%;
  }

  .uc-section {
    padding: 48px 0;
  }

  .uc-section > * {
    padding-left: 24px;
    padding-right: 24px;
  }

  .uc-section__title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .uc-two-col,
  .uc-two-col--reverse {
    flex-direction: column;
    gap: 40px;
  }

  .uc-two-col .uc-two-col__text {
    order: -1;
  }

  .uc-two-col__img {
    width: 100%;
  }

  .uc-defi {
    flex-direction: column;
  }

  .uc-defi__screenshots {
    width: 100%;
  }

  .uc-defi__quotes--horizontal {
    flex-direction: column;
  }

  .uc-methode__steps {
    width: 100%;
  }

  .uc-two-col__img--offset img {
    width: 70%;
    margin-left: 15%;
    margin-bottom: 15%;
  }

  .uc-methode__detail {
    padding: 44px;
  }

  .uc-methode__steps {
    order: 2;
  }

  .uc-methode__step {
    width: 100%;
  }

  .uc-screens {
    width: 100%;
  }

  .uc-screens img {
    height: 360px;
  }

  .uc-solution__text {
    flex-direction: column;
  }

  .uc-solution__screens {
    border-radius: 8px;
  }


  .uc-impact__cards {
    flex-direction: column;
  }

  .uc-impact__row {
    flex-direction: column;
  }

  .uc-impact__illustration {
    width: 140px;
    height: auto;
  }

  .uc-impact__card {
    border-radius: 24px;
  }

  .uc-nav {
    padding: 32px 24px;
  }
}
