/* AdminMind 6.9.89 — passe stabilité / fluidité / navigation.
   Aucun changement de données, Supabase ou logique métier. */

html{
  -webkit-text-size-adjust:100%;
  text-rendering:optimizeLegibility;
}
html,body{
  overscroll-behavior-x:none;
}
body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Les interactions doivent répondre immédiatement au doigt. */
button,
a,
[role="button"],
[onclick],
.setting,
.amProfileHubCardV678{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

/* Le rendu de changement de page reste très léger : opacity uniquement.
   On évite le translate de l'animation historique, plus coûteux sur mobile. */
.view{
  animation:none!important;
}
.view.active{
  animation:amViewInV681 .115s ease-out both!important;
}
@keyframes amViewInV681{
  from{opacity:.72}
  to{opacity:1}
}

/* La barre globale reste stable pendant scroll/clavier/orientation. */
.nav.amGlobalNavV656{
  will-change:transform;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  isolation:isolate;
}
.nav.amGlobalNavV656 button:active,
.amProfileHubCardV678:active,
.setting[onclick]:active{
  transform:scale(.985);
}

/* Les sheets scrollent indépendamment au lieu de faire bouger le fond. */
.sheetWrap .sheet,
.familyNotesPanelV1,
#familySheet .sheet{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

/* Focus clavier/iPad propre sans ajouter de bruit visuel au tactile. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:2px solid rgba(103,81,210,.55);
  outline-offset:2px;
}

/* Évite une transition permanente sur les éléments non visibles. */
.view:not(.active){
  pointer-events:none!important;
}

/* Accessibilité + stabilité pour utilisateurs qui réduisent les animations. */
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}
