/* Force standalone display on PWA */
@media all and (display-mode: standalone) {
  body {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* Désactiver le zoom via touch-action */
:root {
  touch-action: pan-x pan-y;
  background-color: #ffffff;
}

/* Hide address bar on scroll */
html,
body {
  height: 100%;
  touch-action: pan-y;
  overflow: hidden;
  background-color: #ffffff;
  -webkit-overflow-scrolling: touch;
}

/* Prevent auto-zoom on input focus for iOS */
input,
select,
textarea {
  font-size: 16px !important;
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
  body {
    /* Prevent pull-to-refresh */
    overscroll-behavior-y: contain;
    min-height: -webkit-fill-available;
  }
}