html,body{margin:0;padding:0;height:100%;background:#F3F6F5;overflow:hidden;touch-action:manipulation}   /* pas de zoom au double appui */
body{background:#10283A}
/* L'application occupe tout l'écran sous la barre de l'heure, jusqu'en bas (plus de bande sombre). */
#cadre{position:fixed;top:0;left:0;right:0;bottom:0;box-sizing:border-box;padding-top:env(safe-area-inset-top);display:flex;flex-direction:column;background:#10283A}
#app{flex:1 1 auto;width:100%;min-height:0;border:0;display:block;background:#F3F6F5}
#mesure{position:fixed;left:8px;bottom:calc(8px + env(safe-area-inset-bottom));max-width:80vw;padding:6px 9px;border-radius:8px;
  background:rgba(16,40,58,.85);color:#fff;font:12px/1.35 -apple-system,Roboto,Arial,sans-serif;pointer-events:none;z-index:6}
#mesure[hidden]{display:none}
#voile{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#10283A;
  font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#fff;transition:opacity .3s}
#voile.cache{opacity:0;pointer-events:none}
.boite{width:min(320px,86vw);text-align:center}
.logo{width:84px;height:84px;border-radius:22px;display:block;margin:0 auto 18px}
#message{font-size:16px;line-height:1.4;color:#DCE4E3;min-height:22px}
.vague{height:4px;margin:18px auto 0;width:120px;border-radius:4px;background:linear-gradient(90deg,#1F6F6B 0%,#9FC3C0 50%,#1F6F6B 100%);
  background-size:200% 100%;animation:vague 1.2s linear infinite}
.vague.stop{display:none}
@keyframes vague{from{background-position:200% 0}to{background-position:0 0}}
#recharger{margin-top:22px;width:100%;box-sizing:border-box;padding:14px 16px;border:0;border-radius:12px;background:#1F6F6B;color:#fff;
  font-size:16px;font-weight:600;font-family:inherit;cursor:pointer}
#recharger[hidden]{display:none}
#maj{position:fixed;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));padding:12px 14px;border:0;border-radius:12px;
  background:#1F6F6B;color:#fff;font:600 15px -apple-system,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:0 4px 16px rgba(0,0,0,.25);z-index:5}
#maj[hidden]{display:none}
/* 25/11 : barre d'onglets en bas, dans la zone du bas de l'écran (au lieu d'une bande vide) */
#barre{flex:0 0 auto;display:flex;background:#ffffff;border-top:1px solid #dde3e6;padding:4px 2px max(4px, calc(env(safe-area-inset-bottom) - 12px))}
#barre[hidden]{display:none}
#barre button{flex:1 1 0;min-width:0;border:0;background:none;padding:4px 0 2px;display:flex;flex-direction:column;align-items:center;gap:2px;
  font:500 11px -apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#6b7780;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent}
#barre button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#barre button.on{color:#1F6F6B;font-weight:700}
#barre button .pt{position:absolute;top:0;left:calc(50% + 6px);min-width:16px;height:16px;border-radius:8px;background:#c0392b;color:#fff;font-size:10px;line-height:16px;padding:0 4px;box-sizing:border-box}
#notifs{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#e3f0ee;padding:10px 12px;font:14px -apple-system,Roboto,Arial,sans-serif;color:#10283A}
#notifs[hidden]{display:none}
#notifs span{flex:1 1 100%}
#notifs button{flex:1 1 0;padding:10px;border:0;border-radius:10px;background:#1F6F6B;color:#fff;font:600 14px -apple-system,Roboto,Arial,sans-serif}
#notifs button.non{background:#fff;color:#1F6F6B;border:1px solid #1F6F6B}
#info{flex:0 0 auto;background:#10283A;color:#fff;padding:10px 12px;font:14px -apple-system,Roboto,Arial,sans-serif}
#info[hidden]{display:none}
