/* Amélioration mobile — à charger après les styles existants */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.container, header, section, .columns { min-width: 0; }
#result-ip, #ipv6-status, .status, dd, td { overflow-wrap: anywhere; }
button, input { font: inherit; }
button { min-height: 44px; touch-action: manipulation; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
.table-wrap table { width: max-content; min-width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { min-width: 92px; padding: 10px; vertical-align: top; }
.table-wrap th:first-child, .table-wrap td:first-child { min-width: 115px; }
.table-wrap td[id^="ip"], .table-wrap td[id^="v6-"] { overflow-wrap: anywhere; }
#ip-flag { font-size: 14px; margin-left: 6px; vertical-align: text-top; }
@media (max-width: 850px) {
  .columns { grid-template-columns: minmax(0,1fr) !important; }
  .connection-info dl, .diagnostic dl { grid-template-columns: minmax(0,1fr) !important; gap: 5px; }
  .connection-info dd, .diagnostic dd { margin: 0 0 12px; }
}
@media (max-width: 600px) {
  .container { margin: 0 auto !important; padding: 10px !important; width: 100%; }
  header, section { padding: 14px !important; border-radius: 10px; }
  header { margin-bottom: 10px; }
  .columns { gap: 10px; }
  h1 { font-size: 1.45rem; line-height: 1.2; }
  h2 { font-size: 1.1rem; }
  .section-title { font-size: 1rem; margin-top: 16px; }
  #map { height: min(55vh, 320px) !important; min-height: 230px; margin: 12px 0; }
  form#localisa { display: flex; flex-direction: column; gap: 8px; }
  form#localisa input, form#localisa button { width: 100%; min-height: 46px; }
  form#localisa input { font-size: 16px; }
  .table-wrap { margin-inline: -6px; padding-inline: 6px; }
  .table-wrap table { font-size: .84rem; }
  .table-wrap th, .table-wrap td { padding: 8px; }
  .connection-info button, .diagnostic button { max-width: 100%; white-space: normal; }
  .small { font-size: .86rem; }
  footer { margin: 16px 0; }
}
