/* Envie en Vue — alpha92
   Harmonisation stricte des 4 bandeaux principaux :
   Boîte à idées, Que fait-on ?, Nos accords, Suivi. */

.eiv-shared-hero {
  display: grid !important;
  min-height: 228px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.56fr);
  align-items: center;
  gap: clamp(24px, 2.4vw, 40px);
  overflow: hidden;
  padding: 24px clamp(20px, 2.55vw, 40px);
  border: 1px solid rgba(64, 58, 92, 0.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(64, 58, 92, 0.09);
}

.eiv-shared-hero .section-eyebrow {
  margin: 0 0 8px;
  color: var(--eiv-turquoise-deep, #287f86);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eiv-shared-hero h2 {
  margin: 0;
  color: var(--eiv-plum, #403a5c);
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.1;
}

.eiv-shared-hero h2::after {
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--eiv-turquoise-deep, #287f86);
  content: "";
}

.eiv-shared-hero__copy,
.library-alpha88 .library-reference-hero__identity > div {
  max-width: 700px;
}

.eiv-shared-hero__copy > p:last-child,
.library-alpha88 .library-reference-hero__identity p:last-child,
.agreements-alpha88 .terrain-hero__summary,
.what-hero-v3__summary,
.tracking-hero-v3__summary {
  max-width: 700px;
  margin: 16px 0 0 !important;
  color: var(--eiv-text-secondary, #777086) !important;
  font-size: 13px !important;
  line-height: 1.6;
}

.eiv-shared-hero > img,
.library-alpha88 .library-reference-hero__art,
.agreements-alpha88 .terrain-hero.eiv-unified-hero > img,
.what-hero-v3 > img,
.tracking-hero-v3 > img {
  display: block;
  width: min(100%, 280px) !important;
  height: 190px !important;
  justify-self: end;
  align-self: center;
  object-fit: contain;
  object-position: center;
}

.library-alpha88 .library-reference-hero__identity {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.library-alpha88 .library-reference-hero__identity > img {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  border: 1px solid rgba(243, 164, 131, 0.2);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(64, 58, 92, 0.08);
}

.agreements-alpha88 .terrain-hero__metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 850;
  white-space: nowrap;
}

.agreements-alpha88 .terrain-hero__metric strong {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 9px;
  border-radius: 13px;
  font-size: 17px;
  line-height: 1;
}

.agreements-alpha88 .terrain-hero__metric--common,
.agreements-alpha88 .terrain-hero__metric--common strong {
  color: var(--eiv-raspberry, #c64b67) !important;
}

.agreements-alpha88 .terrain-hero__metric--common strong {
  background: var(--eiv-raspberry-pale, #fbe9ee);
}

.agreements-alpha88 .terrain-hero__metric--love,
.agreements-alpha88 .terrain-hero__metric--love strong {
  color: var(--eiv-turquoise-deep, #287f86) !important;
}

.agreements-alpha88 .terrain-hero__metric--love strong {
  background: var(--eiv-turquoise-pale, #e8f8f7);
}

@media (max-width: 1220px) {
  .eiv-shared-hero {
    min-height: 216px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .eiv-shared-hero > img,
  .library-alpha88 .library-reference-hero__art,
  .agreements-alpha88 .terrain-hero.eiv-unified-hero > img,
  .what-hero-v3 > img,
  .tracking-hero-v3 > img {
    width: 250px !important;
    height: 176px !important;
  }
}

@media (max-width: 920px) {
  .eiv-shared-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .eiv-shared-hero > img,
  .library-alpha88 .library-reference-hero__art,
  .agreements-alpha88 .terrain-hero.eiv-unified-hero > img,
  .what-hero-v3 > img,
  .tracking-hero-v3 > img {
    width: min(100%, 280px) !important;
    height: auto !important;
    max-height: 190px;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .eiv-shared-hero {
    padding: 18px;
    border-radius: 21px;
  }

  .eiv-shared-hero h2 {
    font-size: 22px;
  }

  .eiv-shared-hero h2::after {
    width: 40px;
    height: 3px;
    margin-top: 14px;
  }

  .eiv-shared-hero__copy > p:last-child,
  .library-alpha88 .library-reference-hero__identity p:last-child,
  .agreements-alpha88 .terrain-hero__summary,
  .what-hero-v3__summary,
  .tracking-hero-v3__summary {
    margin-top: 14px !important;
    font-size: 12px !important;
  }

  .library-alpha88 .library-reference-hero__identity {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
  }

  .library-alpha88 .library-reference-hero__identity > img {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }
}
