/* Mobile polish — loaded last. Rules every page must keep on phones (checked by uploads/zz-mobile-audit.js at 375px):
   no horizontal overflow, no collapsed container letting content spill onto the next section,
   no visible text under 12px, tap targets at least ~32px tall. */

@media (max-width: 767px) {
  /* readable small labels (were 9–10.9px) */
  body .mh .mh-stat .elementor-counter-title { font-size: 12px !important; line-height: 1.3; }
  body .mh .mp-badge__label .elementor-heading-title { font-size: 12px !important; }
  body .mh .mx-badge__label { font-size: 12px !important; line-height: 16px !important; letter-spacing: .08em !important; max-width: 8.5em; }
  /* stacked text + map: tighter gap */
  body .mh.mh-coverage .mh-split { gap: 32px !important; }

}

/* touch devices (phones + tablets): tap targets */
@media (max-width: 1024px) {
  /* footer links: 17px-high text links → 33px tap rows (same visual rhythm: padding replaces the old margins) */
  .mf .mf-links .elementor-icon-list-item,
  .mf .mf-col:nth-child(3) .mf-links .elementor-icon-list-item { margin-bottom: 0 !important; }
  .mf .mf-links .elementor-icon-list-item > a { display: inline-block; padding: 8px 0; }

  /* article sidebar categories and tag cloud */
  body .mh .mt-cats a { display: inline-block; padding: 6px 0; }
  body .mh .mt-tagcloud a { min-height: 32px; display: inline-flex; align-items: center; }
  /* text-style buttons (« Lire les avis », « Choisir mon abonnement » arrow links) */
  body .mh a.elementor-button.mlink, body .mh .mlink .elementor-button, body .mh .elementor-widget-button.mlink a.elementor-button { padding-top: 6px !important; padding-bottom: 6px !important; }
}

@media (max-width: 640px) {
  /* France map: bigger touch area around each region dot (24px → 32px) */
  .mh-cmap { --cmap-hit: 32px; }

  /* Key figures: 5 columns of ~65px squeezed the labels (« D’expérience » ran into the next column).
     Phones: two centred rows — 3 figures, then 2 — each cell wide enough for its label. */
  body .mh .mh-stats__grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; row-gap: 22px; }
  body .mh .mh-stat { grid-column: span 2; padding: 0 6px !important; border-right: 0 !important; text-align: center; }
  body .mh .mh-stat:nth-child(4) { grid-column: 2 / span 2; }
  body .mh .mh-stat:nth-child(5) { grid-column: 4 / span 2; }
  body .mh .mh-stat:nth-child(-n+3) { border-right: 1px solid var(--mode-line) !important; }
  body .mh .mh-stat:nth-child(3) { border-right: 0 !important; }
  body .mh .mh-stat:nth-child(4) { border-right: 1px solid var(--mode-line) !important; }
  body .mh .mh-stat .elementor-counter { align-items: center !important; gap: 6px; }
  body .mh .mh-stat .elementor-counter-number-wrapper { font-size: 28px !important; justify-content: center; }
  body .mh .mh-stat .elementor-counter-title { font-size: 13px !important; line-height: 1.3; text-align: center !important; overflow-wrap: normal; hyphens: none; }
}
