/* Correctif mobile du widget chat "Alexis" (Insert Headers and Footers).
   Fichier séparé, le script du plugin n'est pas modifié. */
@media (max-width: 960px) {
  #sc-chat-input {
    font-size: 16px !important; /* <16px déclenche le zoom auto iOS au focus */
  }
  #sc-chat-window {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    transform: none !important;
  }
  #sc-chat-window.sc-open { transform: none !important; }
  #sc-chat-header { flex-shrink: 0; border-radius: 0 !important; }
  #sc-chat-messages { flex: 1 1 auto; max-height: none !important; }
  #sc-chat-input-area {
    flex-shrink: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }
  #sc-chat-close {
    width: 44px !important;
    height: 44px !important;
  }
  #sc-chat-bubble {
    bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }
}
