/* Bande « Télécharger l'application » et guides en images (js/app.js, bandeInstallation, 25/10/2026),
   partagés par le site, l'Administration et l'application MA2M Mannequin. Rouge comme tous les
   boutons (règle du 18/10/2026). Au-dessus des menus du bas : --ma2m-installer-bas (défini par
   css/admin-vivante.css et css/mannequin-app.css) et du bouton WhatsApp du site (css/style.css). */
.ma2m-installer {
  position: fixed; z-index: 900; display: flex; align-items: stretch; gap: 6px;
  left: 12px; right: 12px; bottom: calc(12px + var(--ma2m-installer-bas, 0px) + env(safe-area-inset-bottom, 0px));
  max-width: 460px; margin: 0 auto; animation: ma2m-installer-arrivee .45s cubic-bezier(.2, .8, .2, 1);
}
.ma2m-installer button {
  font: 600 15px/1.2 'Work Sans', 'Montserrat', system-ui, sans-serif; color: var(--blanc-pur); -webkit-text-fill-color: var(--blanc-pur);
  /* la « grande barre rouge » de la vidéo d'installation : rouge profond cerné de blanc, pour ressortir sur le fond rouge mat (28/10/2026) */
  background: var(--rouge-profond); border: 2px solid var(--blanc-a55); border-radius: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 12px 28px -10px var(--rouge-profond-a60), 0 2px 6px var(--rouge-profond-a18);
}
.ma2m-installer button:active { transform: scale(.97); background: var(--rouge-mat); }  /* appui visible (hors règle commune des boutons) */
.ma2m-installer-ouvrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; text-align: left; }
.ma2m-installer-ouvrir img { width: 44px; height: 44px; border-radius: 11px; flex: none; background: var(--blanc-pur); }
.ma2m-installer-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ma2m-installer-texte b { font-size: 16px; white-space: nowrap; }
.ma2m-installer-texte small { font-size: 12.5px; font-weight: 500; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma2m-installer-fleche { font-size: 20px; animation: ma2m-installer-saut 1.4s ease-in-out infinite; }
.ma2m-installer-fermer { flex: none; width: 44px; font-size: 16px !important; padding: 0; }
/* Site public (08/11/2026, phase 3 V1) : bande compacte à droite, à côté de la bulle WhatsApp (à gauche) ; elle ne
   cache plus le nom de la mannequin ni les champs ; effacée le temps d'écrire dans un champ (clavier ouvert) */
.ma2m-installer--site { left: auto; right: 12px; max-width: min(250px, calc(100vw - 96px)); margin: 0; gap: 4px; }
.ma2m-installer--site button { border-radius: 14px; border-width: 1.5px; }
.ma2m-installer--site .ma2m-installer-ouvrir { gap: 8px; padding: 6px 10px 6px 6px; }
.ma2m-installer--site .ma2m-installer-ouvrir img { width: 32px; height: 32px; border-radius: 8px; }
.ma2m-installer--site .ma2m-installer-texte b { font-size: 13.5px; }
.ma2m-installer--site .ma2m-installer-texte small { font-size: 11px; }
.ma2m-installer--site .ma2m-installer-fleche { font-size: 15px; }
.ma2m-installer--site .ma2m-installer-fermer { width: 34px; font-size: 13px !important; }
body.ma2m-saisie .ma2m-installer--site { opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .2s, transform .2s, visibility .2s; }
body.ma2m-installer-visible:has(.ma2m-installer--site)::after { height: 64px; }
/* (16/11/2026, audit R-04 / L-5) pages de formulaire (candidature, Intégrer l'agence, cours de talons, contact) : pas de
   bande du tout. Elle revenait dès qu'on quittait un champ et cachait la moitié droite de « Envoyer ma candidature ». */
body:has(#form-casting, #form-talons, #form-contact) .ma2m-installer--site { display: none; }
body.ma2m-installer-visible:has(#form-casting, #form-talons, #form-contact)::after { height: 0; }
/* une place gardée en bas de la page : le bas du contenu n'est pas caché sous la bande */
body.ma2m-installer-visible::after { content: ""; display: block; height: 96px; }
@keyframes ma2m-installer-arrivee { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ma2m-installer-saut { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* guide en images (iPhone : flèche vers le bas ; Chrome Android : flèche vers le menu ⋮ en haut à droite) */
.ma2m-guide { position: fixed; inset: 0; z-index: 1000; background: var(--rouge-profond-a62); display: flex; justify-content: center; padding: 16px; }
.ma2m-guide--bas { align-items: flex-end; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.ma2m-guide--haut { align-items: flex-start; padding-top: min(88px, 10vh); }
/* jamais plus haute que l'écran (petit iPhone SE : le haut et le ✕ étaient coupés) : elle défile */
.ma2m-guide-carte {
  position: relative; width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--blanc-pur); color: var(--rouge-profond); border-radius: 22px; padding: 22px 20px 20px;
  font: 400 15px/1.45 'Work Sans', system-ui, sans-serif; text-align: center; box-shadow: 0 20px 50px var(--rouge-profond-a35); animation: ma2m-installer-arrivee .35s ease;
}
.ma2m-guide-carte img { border-radius: 14px; }
.ma2m-guide-carte h2 { margin: 8px 0 14px; font: 800 24px/1.15 var(--police-titre); color: var(--rouge-profond); }
.ma2m-guide-carte ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ma2m-guide-carte li { display: flex; gap: 12px; align-items: flex-start; background: var(--blanc-pur); border-radius: 14px; padding: 12px; }
.ma2m-guide-carte li > b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--rouge-mat); color: var(--blanc-pur); display: grid; place-items: center; font-size: 14px; }
.ma2m-guide-carte li small { display: block; color: #655D56; margin-top: 2px; }
.ma2m-pictogramme { width: 22px; height: 22px; vertical-align: -5px; color: #0A66D8; }
.ma2m-guide-fermer {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--rouge-mat); color: var(--blanc-pur); -webkit-text-fill-color: var(--blanc-pur); font-size: 16px;
}
/* pendant l'aide, la barre rouge « Télécharger l'application » est cachée (elle gênait la lecture) */
body.ma2m-guide-ouvert .ma2m-installer { display: none; }
@media (prefers-reduced-motion: reduce) { .ma2m-installer, .ma2m-installer-fleche, .ma2m-guide-carte { animation: none; } }
@media print { .ma2m-installer, .ma2m-guide { display: none !important; } }
