/* AutoDeal Cars & Parts — cartes compactes et CTA rapprochés — 2026-10-16 */
.branches-section.ad-branches-exact .branch-grid {
  align-items: stretch !important;
  grid-auto-rows: 1fr !important;
}
.branches-section.ad-branches-exact .branch-grid > .ad-branch-exact {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: clamp(500px, 33vw, 525px) !important;
  max-height: none !important;
  padding: clamp(25px, 2.3vw, 38px) !important;
  box-sizing: border-box !important;
}
.branches-section.ad-branches-exact .ad-branch-exact .branch-copy {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  justify-content: flex-start !important;
  display: flex !important;
  flex-direction: column !important;
}
.branches-section.ad-branches-exact .ad-branch-exact .branch-copy .checklist {
  margin-bottom: 0 !important;
}
.branches-section.ad-branches-exact .ad-branch-exact .branch-copy a.btn,
.branches-section.ad-branches-exact .ad-branch-exact .branch-copy a.ad-parts-cta {
  margin-top: clamp(16px, 1.5vw, 22px) !important;
  margin-bottom: 0 !important;
  flex: 0 0 auto !important;
}
/* Format tablette : deux cartes empilées, avec une hauteur adaptée au texte. */
@media (min-width: 651px) and (max-width: 1120px) {
  .branches-section.ad-branches-exact .branch-grid > .ad-branch-exact {
    min-height: 440px !important;
    padding: 28px !important;
  }
}
/* Sur téléphone, éviter le vide imposé par les anciennes hauteurs fixes. */
@media (max-width: 650px) {
  .branches-section.ad-branches-exact .branch-grid > .ad-branch-exact {
    min-height: 0 !important;
    height: auto !important;
    padding: 27px 21px !important;
  }
  .branches-section.ad-branches-exact .ad-branch-exact .branch-copy {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    align-self: stretch !important;
  }
  .branches-section.ad-branches-exact .ad-branch-exact .branch-copy a.btn,
  .branches-section.ad-branches-exact .ad-branch-exact .branch-copy a.ad-parts-cta {
    margin-top: 18px !important;
  }
}

