.hero {
  grid-template-columns: minmax(0, 1fr) minmax(370px, 480px);
  column-gap: 0;
  row-gap: clamp(10px, 1.3vw, 20px);
  padding-top: clamp(8px, 1.4vw, 20px);
  padding-right: 20px;
  padding-bottom: clamp(14px, 1.8vw, 28px);
}

.hero .hero-identity {
  z-index: 3;
  justify-self: end;
  margin-right: -8px;
  padding: 24px 34px 23px 38px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-right: 0;
  border-radius: 24px 0 0 24px;
  box-shadow: 0 18px 55px rgba(21, 40, 83, 0.1);
  backdrop-filter: blur(8px);
}

.hero-animated-logo {
  z-index: 1;
  width: min(100%, 480px);
  justify-self: end;
  margin: 0;
}

.hero-animated-logo video {
  transform: none;
}

.hero-message {
  width: auto;
  margin-right: -20px;
  margin-left: calc(var(--page) * -1);
  padding: clamp(22px, 2.2vw, 34px) var(--page);
  background: linear-gradient(110deg, #0e1f48 0%, #173d9d 58%, #2454e6 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(7, 21, 52, 0.35);
  box-shadow: 0 20px 45px rgba(16, 38, 91, 0.2);
  text-align: center;
}

.hero-message h1 {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  font-size: clamp(34px, 3.35vw, 62px);
  line-height: 1;
  text-align: center;
  text-wrap: balance;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.16);
}

.hero-message h1 em { color: #a8c0ff; }

.configurator {
  padding-top: clamp(34px, 4vw, 58px);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(145px, 38vw);
    padding-top: 8px;
  }

  .hero .hero-identity { margin-right: -14px; }
  .hero .hero-identity {
    padding: 15px 16px;
    border-radius: 14px 0 0 14px;
  }
  .hero-brand { font-size: clamp(34px, 9vw, 54px); }
  .hero-services { font-size: 9px; }

  .hero-message h1 {
    font-size: clamp(40px, 11vw, 58px);
    line-height: 1.02;
    white-space: normal;
  }
}

.witness-heading {
  margin: 42px 0 20px;
  text-align: center;
}

.witness-heading .witness-title {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.witness-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.witness-heading > p:last-child {
  max-width: 660px;
  margin: 13px auto 0;
  color: var(--muted);
  line-height: 1.5;
}

.witness-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.witness-mini-card {
  min-width: 0;
  min-height: 100px;
  padding: 10px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.witness-mini-card:hover,
.witness-mini-card.is-page-match {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(22, 54, 130, 0.12);
  transform: translateY(-2px);
}

.witness-mini-card.is-page-match::after {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 8px;
  color: #fff;
  background: var(--blue);
  border-radius: 0 13px 0 9px;
  content: "Votre sélection";
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.witness-mini-card img {
  width: 74px;
  height: 74px;
  padding: 4px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 10px;
}

.witness-mini-card span,
.witness-mini-card strong,
.witness-mini-card small,
.witness-mini-card b {
  display: block;
}

.witness-mini-card strong {
  padding-right: 54px;
  font-size: 15px;
  line-height: 1.15;
}

.witness-mini-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.witness-mini-card b {
  position: absolute;
  right: 11px;
  bottom: 10px;
  color: var(--blue);
  font-size: 11px;
}

.witness-library-link {
  margin-top: 12px;
  padding: 17px 20px;
  display: block;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.witness-library-link:hover { background: var(--blue); }

@media (max-width: 760px) {
  .witness-mini-grid { grid-template-columns: 1fr; }
  .witness-mini-card { min-height: 92px; }
}
