/**
 * Patch 015 — Indépendants visual QA
 * Batch 07C.1
 *
 * Scope: responsive-only repair for the hand-built final CTA card used by
 * Indépendants service/guide pages. The source markup contains inline desktop
 * grid/min-width values; on narrow screens that action column can protrude
 * outside the card/viewport. This patch changes no content or conversion logic.
 */

@media (max-width: 820px) {
  .section-start .section-inner > div[style*="grid-template-columns:1fr auto"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    padding: 28px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .section-start .section-inner > div[style*="grid-template-columns:1fr auto"] > div {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .section-start .section-inner > div[style*="grid-template-columns:1fr auto"] > div:last-child {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
  }

  .section-start .section-inner > div[style*="grid-template-columns:1fr auto"] .btn-primary,
  .section-start .section-inner > div[style*="grid-template-columns:1fr auto"] .btn-phone {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 480px) {
  .section-start .section-inner > div[style*="grid-template-columns:1fr auto"] {
    gap: 18px !important;
    padding: 24px 16px !important;
  }
}
