/* Unité Mobile de Commandement: home block (#unitScroll) and
   unite-mobile-commandement.html. Builds on art.css (lead render, split,
   blocks, CTA); only what is new lives here. Default state is fully visible. */

/* Home block: class="section-art section-unit", so it takes the #artScroll
   layout from art.css; here only the gap after the UMTCD section above. */
.section-unit {
  padding-top: 120px;
}

/* Running text */
.unit-prose p,
.unit-intro,
.unit-card p,
.unit-callout p {
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}
.unit-prose p {
  max-width: 64ch;
}
.unit-prose p + p {
  margin-top: 20px;
}
.unit-prose strong,
.unit-list strong,
.unit-callout strong {
  color: var(--white);
  font-weight: 600;
}

/* Highlighted blocks */
.unit-callout {
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3.6vw, 56px);
  border: 1px solid var(--white-16);
  border-left: 3px solid var(--primary-bright);
  border-radius: 10px;
  background: linear-gradient(
    120deg,
    rgba(26, 26, 110, 0.55) 0%,
    rgba(26, 26, 110, 0.12) 70%
  );
}
.unit-callout p {
  max-width: 82ch;
}
.unit-callout-title {
  margin-bottom: 14px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-bright) !important;
}
.unit-callout--closing {
  margin-top: 0;
}
.unit-callout--closing p {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
}

/* Four capability cards */
.unit-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(32px, 4vw, 56px);
}
.unit-card {
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid var(--white-16);
  border-top: 2px solid var(--primary-bright);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.unit-card h3,
.unit-agency-copy h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}

/* Bullet lists */
.unit-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.unit-list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  text-wrap: pretty;
}
.unit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--primary-bright);
}

/* Text beside a render */
.unit-media {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.unit-media .unit-intro {
  margin: 24px 0 28px;
  max-width: 62ch;
}
.unit-figure {
  margin: 0;
}
.unit-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Agency blocks: render + heading + list, alternating sides */
.unit-agency {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 80px);
}
.unit-agency + .unit-agency {
  padding-top: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--white-16);
}
.unit-agency--flip .unit-figure {
  order: 2;
}
.unit-figure--small {
  width: 78%;
  justify-self: center;
}

@media (max-width: 1439px) {
  .section-unit {
    padding-top: 80px;
  }
}

@media (max-width: 991px) {
  .section-unit {
    padding-top: 60px;
  }
  .unit-media,
  .unit-agency {
    grid-template-columns: 1fr;
  }
  .unit-agency--flip .unit-figure {
    order: 0;
  }
  .unit-figure--small {
    width: 100%;
  }
}

@media (max-width: 767px) {
  /* "Commandement" is one long word: keep it inside a 360px column. */
  .unit-page .art-hero-copy h1 {
    font-size: clamp(34px, 11vw, 56px);
    line-height: 1.08;
    hyphens: auto;
  }
  .unit-cards {
    grid-template-columns: 1fr;
  }
  .unit-list li {
    font-size: 15px;
  }
}

