/* Toutes les adaptations visuelles sont limitées aux petits écrans. */
.gs-menu-toggle,.gs-bottom-nav,.gs-install-help { display:none; }
@media screen and (max-width:768px) {
  html { -webkit-text-size-adjust:100%; }
  body { padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
  body.gs-has-nav { padding-bottom:calc(80px + env(safe-area-inset-bottom)); }
  body.p-4 { padding:12px !important; }
  .container,.container-fluid { width:100%; min-width:0; padding:12px; }
  .card { padding:16px; overflow-wrap:anywhere; }
  .card-title,h1 { overflow-wrap:anywhere; }
  .login-container { min-height:100svh; padding:16px; }
  .login-card { padding:24px 18px; }
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea { font-size:16px !important; max-width:100%; }
  button,.btn,.pagination a,.nav a { min-height:44px; }
  .btn { white-space:normal; }
  .actions,.pagination { flex-wrap:wrap; }
  .actions { justify-content:flex-start; }
  .stats-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .modal-content { max-height:85svh; padding:18px; }
  img { max-width:100%; }
  .gs-table-scroll { overflow-x:auto; max-width:100%; -webkit-overflow-scrolling:touch; }
  .gs-table-scroll:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
  .gs-table-scroll table { min-width:560px; }
  .gs-table-scroll td { overflow-wrap:anywhere; }
  .gs-stack { grid-template-columns:minmax(0,1fr) !important; }
  .gs-wrap { flex-wrap:wrap !important; gap:8px; }
  .header { margin-bottom:8px; }
  .gs-header .header-content { flex-direction:row; flex-wrap:wrap; gap:8px; padding:12px; }
  .gs-header .logo { font-size:18px; flex:1; min-width:0; overflow-wrap:anywhere; }
  .gs-menu-toggle { display:block; border:1px solid #cbd5e1; border-radius:8px; background:white; color:#1e293b; padding:8px 12px; font:inherit; }
  .gs-header .nav { display:none; flex-basis:100%; gap:4px; }
  .gs-header.gs-menu-open .nav { display:flex; }
  .gs-header .header-content > .nav-item { display:none; }
  .gs-header.gs-menu-open .header-content > .nav-item { display:block; width:100%; list-style:none; }
  .gs-bottom-nav { display:flex; position:fixed; bottom:0; left:0; right:0; z-index:900; background:#fff; border-top:1px solid #cbd5e1; padding:6px env(safe-area-inset-right) calc(6px + env(safe-area-inset-bottom)) env(safe-area-inset-left); justify-content:space-around; box-shadow:0 -2px 10px #0001; }
  .gs-bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:52px; flex:1; color:#475569; font-size:12px; text-decoration:none; border-radius:8px; }
  .gs-bottom-nav a[aria-current=page] { color:#1d4ed8; background:#eff6ff; font-weight:700; }
  .gs-bottom-nav span:first-child { font-size:20px; }
  .gs-install-help { display:block; margin:12px 0; padding:12px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#334155; font-size:14px; }
  .gs-install-help summary { cursor:pointer; min-height:32px; }
}
@media print { .gs-bottom-nav,.gs-menu-toggle,.gs-install-help { display:none !important; } }
