/* Atelia · installer l'app sur le téléphone (mobile.html seulement). Aucune couleur nouvelle.
   1. Page « Atelia s'utilise sur votre téléphone » (js/sur-ordinateur.js) : navigateur de bureau seulement.
      Elle couvre l'app et la porte de connexion (z-index au-dessus de .porte), jamais le choix du mot de
      passe (classe porte-mdp posée par js/session.js).
   2. Feuille « Installer Atelia sur votre téléphone » (#installer, script de mobile.html) : téléphone ouvert
      par le QR code (?installer=1), par-dessus la porte, avec la flèche vers le bouton Partager de Safari. */
.sur-ordi {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto;
  background: var(--cream); display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 24px;
}
.sur-ordi-active .a2hs { display: none !important; }
.sur-ordi .so-carte {
  width: 100%; max-width: 760px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 36px 40px 28px; box-shadow: var(--shadow-2); text-align: center;
}
.sur-ordi .so-logo { width: 48px; height: 48px; border-radius: 12px; }
.sur-ordi h1 { margin: 14px 0 8px; font-size: 24px; font-weight: 800; color: var(--navy); }
.sur-ordi .so-intro { margin: 0 auto 20px; max-width: 520px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.sur-ordi .so-qr { width: 196px; height: 196px; margin: 0 auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.sur-ordi .so-qr svg { display: block; width: 100%; height: 100%; }
.sur-ordi .so-adresse { margin: 12px 0 26px; font-size: 15px; font-weight: 700; color: var(--navy); word-break: break-all; user-select: all; }
.sur-ordi .so-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.sur-ordi section { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.sur-ordi h2 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--navy); }
.sur-ordi ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.sur-ordi .so-continuer {
  margin-top: 24px; border: 0; background: transparent; color: var(--muted);
  font-size: 13.5px; text-decoration: underline; cursor: pointer; padding: 6px 8px;
}
.sur-ordi .so-continuer:hover { color: var(--navy); }

/* 2. Feuille « Installer Atelia sur votre téléphone » */
.inst { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(22,36,63,.42); }
.inst.show { display: flex; }
.inst .sheet { background: var(--surface); width: 100%; max-width: 440px; border-radius: 20px; padding: 22px 20px 18px;
  box-shadow: var(--shadow-2); animation: a2hs-in .3s ease both; max-height: calc(100dvh - 120px); overflow-y: auto; }
.inst .ic { width: 52px; height: 52px; border-radius: 13px; display: block; margin-bottom: 10px; }
.inst h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--navy); }
.inst p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.inst ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.inst [hidden] { display: none !important; }
.inst .inst-btn { margin-top: 14px; width: 100%; border: 0; background: var(--accent); color: #fff; font-weight: 800;
  padding: 15px; border-radius: 12px; cursor: pointer; font-size: 16.5px; }
.inst .inst-copie { margin-top: 8px; font-size: 13px; color: var(--accent); font-weight: 700; text-align: center; }
.inst .inst-fermer { margin-top: 8px; width: 100%; border: 0; background: transparent; color: var(--muted);
  font-size: 14px; padding: 10px; cursor: pointer; }
/* Flèche vers le bouton Partager de Safari : en bas au centre sur iPhone, en haut à droite sur iPad. */
.inst-fleche { position: fixed; z-index: 151; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
  margin-left: -22px; width: 44px; height: 44px; color: #fff; display: none; pointer-events: none;
  animation: inst-rebond 1.1s ease-in-out infinite; }
.inst.show ~ .inst-fleche.on { display: block; }
.inst-fleche svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.inst-fleche.ipad { left: auto; right: 96px; bottom: auto; top: 6px; margin-left: 0; transform: rotate(180deg);
  animation-name: inst-rebond-haut; }
@keyframes inst-rebond { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }
@keyframes inst-rebond-haut { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .inst-fleche { animation: none; } }
