/* AutoProgFrance — bloc categories. Style completement isole des autres modules. */
.apc-section,
.apc-section * {
  box-sizing: border-box;
}

.apc-section {
  width: min(1480px, calc(100% - 40px));
  margin: 32px auto 64px;
  font-family: inherit;
}

.apc-heading {
  text-align: center;
  margin-bottom: 31px;
}

.apc-kicker {
  color: #087eee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.apc-heading h2 {
  margin: 8px 0 10px;
  color: #17243b;
  font-size: clamp(30px, 3.15vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.04em;
}

.apc-heading p {
  margin: 0;
  color: #58677f;
  font-size: 17px;
  line-height: 1.5;
}

.apc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.apc-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 352px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 19px 24px;
  overflow: hidden;
  border: 1px solid #e1edfa;
  border-radius: 17px;
  background: linear-gradient(139deg, #edf7ff 0%, #f6fbff 66%, #e9f5ff 100%);
  box-shadow: 0 9px 23px rgb(20 61 105 / 7%);
  color: #17243b !important;
  text-decoration: none !important;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.apc-card::before,
.apc-card::after {
  position: absolute;
  content: "";
  z-index: 0;
  border: 1px solid #d4e8fa;
  border-radius: 50%;
  pointer-events: none;
}

.apc-card::before {
  width: 165px;
  height: 165px;
  right: -91px;
  top: -95px;
}

.apc-card::after {
  width: 148px;
  height: 148px;
  right: -58px;
  bottom: -91px;
}

.apc-card:hover,
.apc-card:focus-visible {
  transform: translateY(-5px);
  border-color: #91caff;
  box-shadow: 0 17px 32px rgb(18 69 115 / 13%);
  outline-offset: 3px;
}

.apc-accent {
  position: relative;
  z-index: 2;
  display: block;
  width: 58px;
  height: 6px;
  border-radius: 99px;
  margin-bottom: 21px;
  background: #087eee;
}

.apc-title {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
  color: #17243b;
  font-size: clamp(18px, 1.38vw, 23px);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.apc-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  min-height: 135px;
  padding-top: 10px;
}

.apc-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 165px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgb(26 61 98 / 17%));
  transition: transform 220ms ease;
}

.apc-img--autel { width: 106%; max-width: none; }
.apc-img--xhorse { width: 112%; max-width: none; }
.apc-card:hover .apc-img { transform: scale(1.035); }

.apc-visual--keys { overflow: visible; }

.apc-key {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 9px 6px rgb(26 61 98 / 20%));
}

.apc-key--silver {
  width: 62%;
  left: 2%;
  top: 9%;
  transform: rotate(-8deg);
}

.apc-key--black {
  width: 71%;
  right: -4%;
  bottom: 6%;
  transform: rotate(16deg);
}

.apc-visual--icon {
  color: #087eee;
}

.apc-visual--icon svg {
  display: block;
  width: min(80%, 154px);
  height: auto;
  filter: drop-shadow(0 12px 11px rgb(9 110 218 / 9%));
  transition: transform 220ms ease;
}

.apc-card:hover .apc-visual--icon svg { transform: scale(1.06); }

.apc-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid #087eee;
  color: #087eee;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
}

.apc-link span { font-size: 21px; }

@media (max-width: 1199px) {
  .apc-section { width: min(100% - 28px, 1140px); }
  .apc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apc-card { min-height: 315px; }
  .apc-title { font-size: 21px; }
}

@media (max-width: 700px) {
  .apc-section { margin: 27px auto 42px; }
  .apc-heading { margin-bottom: 21px; }
  .apc-heading h2 { font-size: 30px; }
  .apc-heading p { font-size: 14px; }
  .apc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .apc-card { min-height: 277px; padding: 20px 14px 18px; }
  .apc-accent { width: 40px; height: 5px; margin-bottom: 15px; }
  .apc-title { font-size: 18px; }
  .apc-visual { min-height: 112px; }
  .apc-img { max-height: 132px; }
  .apc-link { font-size: 13px; }
}

@media (max-width: 380px) {
  .apc-section { width: calc(100% - 20px); }
  .apc-card { min-height: 247px; padding: 15px 10px; }
  .apc-title { font-size: 15px; }
  .apc-link { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .apc-card, .apc-img, .apc-visual--icon svg { transition: none; }
}
