/* AutoProgFrance — section promotionnelle sous le diaporama principal. */
.apm-section,
.apm-section * {
  box-sizing: border-box;
}

.apm-section {
  width: min(1480px, calc(100% - 40px));
  margin: 36px auto 54px;
  font-family: inherit;
}

.apm-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.apm-carousel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 465px;
  overflow: hidden;
  border-radius: 15px;
  background: #f1f6fc;
}

.apm-slides,
.apm-slide {
  position: absolute;
  inset: 0;
}

.apm-slide {
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 450ms ease, visibility 450ms ease;
  overflow: hidden;
}

.apm-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.apm-slide--keys {
  background: linear-gradient(118deg, #f6f9fd 0%, #f0f7ff 55%, #d4e8ff 100%);
}

.apm-slide--diagnostic {
  background: linear-gradient(120deg, #eaf5ff 0%, #e6f3ff 57%, #c1dcff 100%);
}

.apm-pattern {
  position: absolute;
  inset: 0;
  opacity: .65;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 100%, transparent 0 180px, #d8e8f9 181px 182px, transparent 183px),
    radial-gradient(circle at 83% 1%, transparent 0 132px, #d3e6fb 133px 134px, transparent 135px),
    radial-gradient(circle, #bdd9f1 1px, transparent 1.3px);
  background-size: auto, auto, 30px 30px;
  mask-image: linear-gradient(90deg, transparent, #000 55%);
}

.apm-slide__copy {
  position: relative;
  z-index: 2;
  padding: 26px 0 38px 8.5%;
  min-width: 0;
}

.apm-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #1479c7;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.apm-slide__copy h2 {
  max-width: 530px;
  margin: 0 0 16px;
  color: #142239;
  font-size: clamp(30px, 3.15vw, 53px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.apm-slide__copy p {
  max-width: 420px;
  margin: 0 0 29px;
  color: #45576f;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
}

.apm-primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 9px;
  background: #087eee;
  color: white !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 7px 16px rgb(8 126 238 / 19%);
  transition: transform 180ms ease, background-color 180ms ease;
}

.apm-primary-link:hover,
.apm-primary-link:focus-visible {
  background: #0066ce;
  transform: translateY(-2px);
}

.apm-primary-link span {
  font-size: 20px;
}

.apm-visual {
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
}

.apm-device {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgb(26 60 104 / 18%));
}

.apm-device--xhorse {
  width: 113%;
  max-width: none;
  right: 0;
  top: 27%;
  transform: rotate(-5deg);
}

.apm-floating-key {
  position: absolute;
  width: 35%;
  height: auto;
  right: 0;
  bottom: 6%;
  transform: rotate(17deg);
  filter: drop-shadow(0 13px 10px rgb(26 60 104 / 23%));
}

.apm-device--autel {
  width: 115%;
  max-width: none;
  right: -1%;
  top: 31%;
  transform: rotate(-4deg);
}

.apm-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 1px solid rgb(14 48 89 / 10%);
  border-radius: 50%;
  background: rgb(255 255 255 / 91%);
  color: #1d4d7a;
  font-size: 29px;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgb(19 48 79 / 8%);
  cursor: pointer;
}

.apm-arrow:hover,
.apm-arrow:focus-visible {
  background: #087eee;
  color: #fff;
}

.apm-arrow--prev { left: 12px; }
.apm-arrow--next { right: 12px; }

.apm-dots {
  position: absolute;
  z-index: 4;
  bottom: 17px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.apm-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #8ea5b8;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.apm-dot.is-active {
  background: #087eee;
  transform: scale(1.22);
}

.apm-promos {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

.apm-promo {
  position: relative;
  display: block;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 15px;
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.apm-promo:hover,
.apm-promo:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgb(17 36 61 / 14%);
}

.apm-promo--dark {
  background: linear-gradient(121deg, #12253d 0%, #10243d 54%, #245481 100%);
  color: #fff !important;
}

.apm-promo--blue {
  background: linear-gradient(122deg, #4bbffd 0%, #2ba8f8 55%, #0981e9 100%);
  color: #082c4f !important;
}

.apm-promo::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -22%;
  top: -68%;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  pointer-events: none;
}

.apm-promo__copy {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 0 18px 7%;
  pointer-events: none;
}

.apm-promo__kicker {
  display: block;
  margin-bottom: 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: .85;
}

.apm-promo strong {
  display: block;
  font-size: clamp(21px, 1.6vw, 29px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.apm-promo__link {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
}

.apm-promo__autel {
  position: absolute;
  z-index: 1;
  right: -9%;
  bottom: 12%;
  width: 61%;
  height: auto;
  transform: rotate(-9deg);
  filter: drop-shadow(0 12px 9px rgb(0 0 0 / 28%));
}

.apm-promo__key {
  position: absolute;
  z-index: 1;
  height: auto;
  filter: drop-shadow(0 13px 8px rgb(2 38 81 / 24%));
}

.apm-promo__key--one {
  width: 48%;
  right: 1%;
  bottom: 7%;
  transform: rotate(-18deg);
}

.apm-promo__key--two {
  width: 28%;
  right: 3%;
  top: 12%;
  transform: rotate(17deg);
}

@media (max-width: 1199px) {
  .apm-section { width: min(100% - 28px, 1140px); }
  .apm-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; }
  .apm-promos { gap: 14px; }
  .apm-carousel { min-height: 410px; }
  .apm-slide__copy h2 { font-size: 32px; }
  .apm-promo strong { font-size: 22px; }
}

@media (max-width: 850px) {
  .apm-section { margin: 24px auto 34px; }
  .apm-grid { grid-template-columns: 1fr; }
  .apm-carousel { min-height: 400px; }
  .apm-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 210px; }
  .apm-slide__copy h2 { font-size: clamp(30px, 5vw, 40px); }
}

@media (max-width: 590px) {
  .apm-section { width: calc(100% - 24px); margin: 16px auto 26px; }
  .apm-carousel { min-height: 470px; }
  .apm-slide { grid-template-columns: 1fr; grid-template-rows: 54% 46%; }
  .apm-slide__copy { padding: 26px 31px 0; align-self: start; }
  .apm-eyebrow { margin-bottom: 10px; font-size: 10px; }
  .apm-slide__copy h2 { font-size: clamp(27px, 8vw, 35px); margin-bottom: 10px; }
  .apm-slide__copy p { font-size: 13px; line-height: 1.35; margin-bottom: 15px; }
  .apm-primary-link { min-height: 41px; font-size: 12px; padding: 7px 12px; }
  .apm-visual--keys .apm-device--xhorse { width: 75%; right: 11%; top: -10%; }
  .apm-floating-key { width: 22%; right: 8%; bottom: 4%; }
  .apm-device--autel { width: 72%; right: 14%; top: -10%; }
  .apm-promos { grid-template-columns: 1fr; grid-template-rows: 194px 194px; }
  .apm-promo__copy { padding-left: 7%; }
  .apm-promo strong { font-size: 24px; }
  .apm-arrow { width: 31px; height: 31px; font-size: 24px; top: 55%; }
}

@media (prefers-reduced-motion: reduce) {
  .apm-slide, .apm-promo, .apm-primary-link, .apm-dot { transition: none; }
}
