/*
 * Maison Plus Libre — Home V5
 * Recompose le hero pour privilégier compréhension, rythme et action.
 */

body.mpl-is-front-page .mpl4-hero__grid {
  min-height: 690px;
  grid-template-columns: minmax(0, 540px) minmax(480px, 590px);
  justify-content: space-between;
  gap: clamp(44px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 6vw, 78px);
  padding-bottom: clamp(58px, 6vw, 82px);
}

body.mpl-is-front-page .mpl4-hero__copy {
  max-width: 540px;
  padding-right: 8px;
}

body.mpl-is-front-page .mpl4-hero .mpl4-kicker {
  margin-bottom: 20px;
  font-size: .66rem;
  letter-spacing: .12em;
}

body.mpl-is-front-page .mpl4-hero h1 {
  max-width: 540px;
  font-size: clamp(3.45rem, 5.15vw, 5.45rem);
  font-weight: 760;
  line-height: .93;
  letter-spacing: -.058em;
  text-wrap: balance;
}

body.mpl-is-front-page .mpl4-hero h1 em {
  max-width: 510px;
  margin-top: .2em;
  font-size: .54em;
  line-height: 1.05;
  letter-spacing: -.035em;
}

body.mpl-is-front-page .mpl4-hero__lead {
  max-width: 525px;
  margin-top: 26px;
  color: #53645e;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.58;
}

body.mpl-is-front-page .mpl4-actions {
  gap: 10px;
  margin-top: 30px;
}

body.mpl-is-front-page .mpl4-btn {
  min-height: 50px;
  gap: 18px;
  padding-inline: 20px;
  font-size: .78rem;
}

body.mpl-is-front-page .mpl4-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 28px;
  font-size: .62rem;
  letter-spacing: .065em;
}

body.mpl-is-front-page .mpl4-proof span {
  padding-left: 14px;
}

body.mpl-is-front-page .mpl4-system {
  width: 100%;
  max-width: 590px;
  min-height: 560px;
  justify-self: end;
  border-radius: 16px 42px 16px 16px;
  background-size: 48px 48px, 48px 48px, auto, auto;
  box-shadow: 0 24px 64px rgba(20,54,46,.15);
}

body.mpl-is-front-page .mpl4-system__drawing {
  inset: 2% 3% 10%;
  width: 94%;
  height: 88%;
}

body.mpl-is-front-page .mpl4-system__caption {
  left: 26px;
  right: 26px;
  bottom: 22px;
  padding-top: 14px;
}

body.mpl-is-front-page .mpl4-system__caption strong {
  max-width: 300px;
  font-size: .94rem;
  line-height: 1.25;
}

body.mpl-is-front-page .mpl4-flow-rail__grid {
  max-width: 1220px;
}

body.mpl-is-front-page .mpl4-flow-tab {
  min-height: 104px;
  padding: 20px 22px 18px;
}

body.mpl-is-front-page .mpl4-flow-tab strong {
  font-size: .87rem;
}

body.mpl-is-front-page .mpl4-flow-tab small {
  font-size: .68rem;
}

@media (max-width: 1180px) {
  body.mpl-is-front-page .mpl4-hero__grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 58px;
    padding-bottom: 64px;
  }

  body.mpl-is-front-page .mpl4-hero__copy {
    max-width: 760px;
    padding-right: 0;
  }

  body.mpl-is-front-page .mpl4-hero h1,
  body.mpl-is-front-page .mpl4-hero h1 em,
  body.mpl-is-front-page .mpl4-hero__lead {
    max-width: 720px;
  }

  body.mpl-is-front-page .mpl4-hero h1 {
    font-size: clamp(3.7rem, 7.4vw, 5.9rem);
  }

  body.mpl-is-front-page .mpl4-system {
    max-width: 760px;
    min-height: 520px;
    justify-self: start;
  }

  body.mpl-is-front-page .mpl4-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px) {
  body.mpl-is-front-page .mpl4-hero__grid {
    gap: 34px;
    padding-top: 42px;
    padding-bottom: 46px;
  }

  body.mpl-is-front-page .mpl4-hero .mpl4-kicker {
    margin-bottom: 16px;
    font-size: .58rem;
  }

  body.mpl-is-front-page .mpl4-hero h1 {
    font-size: clamp(2.75rem, 13.5vw, 4.25rem);
    line-height: .94;
    letter-spacing: -.052em;
  }

  body.mpl-is-front-page .mpl4-hero h1 em {
    margin-top: .24em;
    font-size: .57em;
    line-height: 1.08;
  }

  body.mpl-is-front-page .mpl4-hero__lead {
    margin-top: 22px;
    font-size: .98rem;
    line-height: 1.55;
  }

  body.mpl-is-front-page .mpl4-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  body.mpl-is-front-page .mpl4-btn {
    width: 100%;
  }

  body.mpl-is-front-page .mpl4-proof {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  body.mpl-is-front-page .mpl4-system {
    min-height: 410px;
    border-radius: 12px 30px 12px 12px;
  }

  body.mpl-is-front-page .mpl4-system__label {
    font-size: .6rem;
  }

  body.mpl-is-front-page .mpl4-system__label b {
    width: 22px;
    height: 22px;
  }

  body.mpl-is-front-page .mpl4-system__caption {
    left: 18px;
    right: 18px;
    bottom: 16px;
    gap: 14px;
  }

  body.mpl-is-front-page .mpl4-system__caption strong {
    max-width: 210px;
    font-size: .78rem;
  }
}
