/* Bandeau d'invitation a installer l'application — Lot 1, 11/09/2026.
 *
 * Fichier NEUF a dessein. assets/css/output.css est l'artefact compile de
 * Tailwind : il ne peut pas etre regenere ici (aucun Node sur le poste), et
 * deux branches qui le reconstruisent se perdent des classes. Le cadrage du
 * 11/09 (§8) le classe parmi les quatre fichiers chauds a proprietaire unique.
 *
 * Tout est prefixe .btb-pwa- : aucune collision possible avec les classes
 * Tailwind ni avec les feuilles existantes.
 */

.btb-pwa-bandeau{
  position:fixed;
  left:12px;right:12px;
  bottom:calc(12px + env(safe-area-inset-bottom,0px));
  z-index:2147483000;                 /* au-dessus de la barre basse mobile */
  display:flex;align-items:flex-start;gap:12px;
  padding:14px 14px 14px 12px;
  background:#fff;color:#141416;
  border:1px solid #e4e4e8;border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.16);
  font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  /* Ni transition ni animation a l'etat ferme : un bandeau qui glisse par
     dessus un formulaire coute plus qu'il ne rapporte. */
}
.btb-pwa-bandeau[hidden]{display:none!important}

@media (min-width:720px){
  .btb-pwa-bandeau{left:auto;right:20px;bottom:20px;max-width:23rem}
}

.btb-pwa-icone{
  flex:0 0 auto;width:44px;height:44px;border-radius:10px;
  border:1px solid #ececf0;object-fit:contain;background:#fff;
}
.btb-pwa-corps{flex:1 1 auto;min-width:0}
.btb-pwa-titre{margin:0 0 2px;font-size:15px;font-weight:700}
.btb-pwa-texte{margin:0;color:#55555e}

.btb-pwa-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.btb-pwa-bouton{
  appearance:none;border:0;border-radius:8px;cursor:pointer;
  background:#72BE63;color:#fff;font-size:15px;font-weight:600;
  padding:11px 18px;min-height:44px;          /* cible tactile */
}
.btb-pwa-bouton:active{background:#5da44f}
.btb-pwa-plus-tard{
  appearance:none;border:0;background:transparent;cursor:pointer;
  color:#6a6a74;font-size:14px;padding:11px 8px;min-height:44px;
}

.btb-pwa-fermer{
  flex:0 0 auto;appearance:none;border:0;background:transparent;cursor:pointer;
  color:#9a9aa4;font-size:22px;line-height:1;padding:2px 4px;
  min-width:32px;min-height:32px;
}

/* Les etapes iPhone. Sur iOS il n'existe AUCUN bouton qui installe : le
   navigateur ne l'expose pas. On ne peut que montrer le chemin. */
.btb-pwa-etapes{margin:10px 0 0;padding:0 0 0 20px;color:#55555e;
  /* Le reset de Tailwind pose list-style:none sur ol : sans ces deux lignes,
     les trois etapes s'affichent sans leur numero — mesure du 11/09. */
  list-style:decimal outside}
.btb-pwa-etapes li{margin:4px 0;display:list-item}
.btb-pwa-etapes li::marker{color:#8a8a94;font-variant-numeric:tabular-nums}
.btb-pwa-partage{
  display:inline-block;vertical-align:-3px;width:15px;height:17px;
  margin:0 2px;fill:none;stroke:#0a7cff;stroke-width:1.7;
}

@media (prefers-color-scheme:dark){
  .btb-pwa-bandeau{background:#1e1e20;color:#f2f2f4;border-color:#34343a;
                   box-shadow:0 10px 30px rgba(0,0,0,.5)}
  .btb-pwa-texte,.btb-pwa-etapes{color:#b4b4bc}
  .btb-pwa-icone{background:#fff;border-color:#34343a}
  .btb-pwa-plus-tard{color:#9a9aa4}
}

/* Une fois l'application installee, plus rien ne s'affiche : ni le bandeau,
   ni le lien de telechargement du menu — proposer d'installer ce qui est deja
   installe n'aiderait personne. */
@media (display-mode:standalone){
  .btb-pwa-bandeau{display:none!important}
  .btb-app-lien{display:none!important}
}

/* L'entree de reglage du menu du compte : un SOUS-element de « Notifications »,
   pas une seconde entree qui lui ressemble (btob, 11/09). En retrait, plus
   petite, plus discrete — la hierarchie se voit avant meme de lire. */
.btb-mi-sous{font-size:13px;opacity:.85;position:relative}
.btb-mi-sous::before{content:"";position:absolute;left:26px;top:50%;
  width:8px;height:1px;background:currentColor;opacity:.45}
.btb-mi-sous-ico{width:14px;font-size:12px;opacity:.75}
.btb-mi-sous[data-etat="actif"]{opacity:1;font-weight:600}
.btb-mi-sous[data-etat="actif"] .btb-mi-sous-ico{color:#72BE63;opacity:1}

/* La feuille de partage de repli (ordinateurs, ou le partage natif n'existe
   pas). Volontairement petite et posee en bas : elle ne masque pas la page. */
.btb-pwa-partage-feuille{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(16px + env(safe-area-inset-bottom,0px));
  z-index:2147483001;display:flex;flex-direction:column;gap:2px;min-width:14rem;
  background:#fff;border:1px solid #e4e4e8;border-radius:14px;padding:8px;
  box-shadow:0 12px 32px rgba(0,0,0,.18);
  font:15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.btb-pwa-partage-feuille a,
.btb-pwa-partage-feuille button{
  display:flex;align-items:center;gap:10px;padding:11px 14px;min-height:44px;
  border:0;border-radius:9px;background:transparent;color:#141416;
  text-decoration:none;cursor:pointer;font:inherit;text-align:left;width:100%}
.btb-pwa-partage-feuille a:hover,
.btb-pwa-partage-feuille button:hover{background:#f4f4f7}
.btb-pwa-partage-feuille i{width:18px;text-align:center;color:#6a6a74}
@media (prefers-color-scheme:dark){
  .btb-pwa-partage-feuille{background:#1e1e20;border-color:#34343a;box-shadow:0 12px 32px rgba(0,0,0,.5)}
  .btb-pwa-partage-feuille a,.btb-pwa-partage-feuille button{color:#f2f2f4}
  .btb-pwa-partage-feuille a:hover,.btb-pwa-partage-feuille button:hover{background:#2a2a2e}
}
