.purchase {
  background: #f0f2e9
}

.purchasegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px
}

.purchaseproduct {
  display: flex;
  align-items: center;
  gap: 30px;
  border: 1px solid #cbd5c3;
  padding: 30px;
  background: #e3eadb;
  border-radius: 5px
}

.purchaseproduct img {
  width: 37%;
  max-height: 290px;
  object-fit: contain;
  transform: rotate(-6deg)
}

.purchase h3 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -.6px;
  margin: 12px 0
}

.purchaseproduct .eyebrow {
  font-size: 14px
}

.purchase p {
  font-size: 17px;
  color: var(--muted)
}

.purchasebadge {
  display: inline-block;
  font: 14px/1.6 monospace;
  border-top: 1px solid #bcccb1;
  padding-top: 15px;
  margin-top: 12px
}

.purchaseform {
  padding: 30px;
  background: #fffdf7;
  border: 1px solid #d2d9cb;
  border-radius: 5px
}

.purchaseform h3 {
  margin-top: 0
}

.purchasefields {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  margin: 22px 0
}

.purchasefields label {
  display: block;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px
}

.purchasefields input,
.purchasefields select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c6d1be;
  border-radius: 4px;
  background: white;
  padding: 11px;
  color: var(--ink);
  font: 17px Arial
}

.purchaseform .btn {
  width: 100%
}

.purchaseform .purchasenote {
  font-size: 15px;
  line-height: 1.65
}

.purchaseform .purchasefallback {
  font-size: 15px;
  margin-bottom: 0
}

.purchasefallback a {
  text-decoration: underline;
  text-underline-offset: 3px
}

.purchasesteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding-top: 28px
}

.purchasesteps span {
  display: block;
  font: 15px monospace;
  color: var(--orange);
  margin-bottom: 13px
}

.purchasesteps strong {
  font-size: 18px;
  font-weight: 500
}

.purchasesteps p {
  font-size: 16px;
  max-width: 270px
}

.purchase input:focus-visible,
.purchase select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px
}

@media(max-width:1000px) {
  .purchasegrid {
    gap: 20px
  }

  .purchaseproduct {
    gap: 18px;
    padding: 22px
  }

  .purchaseform {
    padding: 22px
  }
}

@media(max-width:760px) {
  .purchasegrid {
    grid-template-columns: 1fr
  }

  .purchaseproduct {
    gap: 24px
  }

  .purchaseproduct img {
    max-height: 220px
  }

  .purchase h3 {
    font-size: 27px
  }

  .purchasefields {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px
  }

  .purchasesteps {
    grid-template-columns: 1fr;
    gap: 15px
  }

  .purchasesteps div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px
  }

  .purchasesteps p {
    max-width: none
  }

  .purchasesteps span {
    display: inline-block;
    margin-right: 12px
  }
}

.purchaseproduct {
  flex-direction: column;
  align-items: stretch
}

.purchaseproduct img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  transform: none;
  border-radius: 4px
}

.purchaseproduct>div {
  padding-top: 4px
}

.purchaseproduct,
.purchaseproduct img {
  border-radius: 0
}

/* Align controls even when their labels wrap to different numbers of lines. */
.purchasefields {
  align-items: end
}

.purchasefields>div {
  min-width: 0
}

.purchasefields label {
  line-height: 1.4
}

.purchasefields input,
.purchasefields select {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  margin: 0;
  line-height: normal
}

.retailers {
  margin: 0 0 40px;
  scroll-margin-top: 95px
}

.retailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px
}

.retailer-grid article {
  display: flex;
  flex-direction: column;
  background: #fffdf7;
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 30px)
}

.retailer-grid h4 {
  margin: 0;
  font-size: 22px
}

.retailer-grid a {
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 17px
}

/* Références clients de RAP-COR. */
.purchase .trusted-clients {
  padding: 0;
  margin: 0 0 44px;
  scroll-margin-top: 110px;
}

.trusted-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.trusted-client {
  min-width: 0;
  margin: 0;
  padding: 26px 20px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.trusted-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin-bottom: 20px;
}

.trusted-logo img {
  display: block;
  width: 200px;
  height: 100px;
  max-width: 100%;
  object-fit: contain;
}

.trusted-client figcaption strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.trusted-client figcaption span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .trusted-grid {
    gap: 12px;
  }

  .trusted-client {
    padding: 20px 12px;
  }

  .trusted-logo {
    height: 84px;
    margin-bottom: 16px;
  }

  .trusted-logo img {
    height: 84px;
  }

  .trusted-client figcaption strong {
    font-size: 16px;
  }

  .trusted-client figcaption span {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}


/* Logo discret à côté du nom du point de vente. */
.retailer-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.retailer-logo {
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 48px;
  object-fit: contain;
}
