/* Interface téléphone (03/11/2026) : accueil « à faire », liste de tickets,
   barre de navigation en bas, écran de lecture. S'ajoute à app.css. */
:root { --nav-h: 64px; --ok: #157a5f; --ok-soft: #dcf3e9; --warn: #92400e; --warn-soft: #fdf0d2; --err: #b7261f; --err-soft: #fbe8e6; }
body.avec-nav { padding-bottom: calc(var(--nav-h) + 18px); }
.ecran { max-width: 560px; margin: 0 auto; padding: 16px 16px 8px; }
.salut { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 4px 0 14px; letter-spacing: -0.3px; }
.rubrique { font-size: 12px; font-weight: 700; letter-spacing: 0.6px; color: var(--ink-45); text-transform: uppercase; margin: 18px 0 8px; }
.tuile { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--ink-10); border-radius: 16px; padding: 13px 14px; margin-bottom: 10px; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
a.tuile:active { transform: scale(0.99); }
.tuile__num { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.tuile__num--warn { background: var(--warn-soft); color: var(--warn); }
.tuile__num--ok { background: var(--ok-soft); color: var(--ok); }
.tuile__num--err { background: var(--err-soft); color: var(--err); }
.tuile__titre { font-weight: 650; font-size: 15px; }
.tuile__sous { font-size: 12.5px; color: var(--ink-45); margin-top: 1px; }
.tuile__fin { margin-left: auto; text-align: right; font-size: 13px; color: var(--accent); font-weight: 650; }
.tuile__fleche { margin-left: auto; color: var(--ink-20); font-size: 22px; }
.chiffres { background: var(--surface); border: 1px solid var(--ink-10); border-radius: 16px; padding: 14px 16px; }
.chiffres__ligne { display: flex; justify-content: space-between; align-items: flex-end; }
.chiffres__petit { font-size: 12.5px; color: var(--ink-45); }
.chiffres__gros { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.chiffres__moyen { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.jauge { height: 8px; background: var(--paper-deep); border-radius: 6px; margin-top: 12px; overflow: hidden; }
.jauge > div { height: 100%; background: var(--accent); border-radius: 6px; }
.jauge--pleine > div { background: var(--err); }
.photo-geante { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 20px 0 6px; cursor: pointer; }
.photo-geante__rond { width: 112px; height: 112px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(35,84,214,.35); }
.photo-geante__rond > span { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #fff; display: flex; align-items: center; justify-content: center; }
.photo-geante__texte { font-weight: 700; font-size: 16px; }
.lien-fichier { text-align: center; font-size: 13.5px; color: var(--ink-45); margin-bottom: 4px; }
.lien-fichier label { color: var(--accent); text-decoration: underline; cursor: pointer; }
.cache { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Liste de tickets */
.pastilles { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; }
.pastilles a { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--ink-10); color: var(--ink-70); text-decoration: none; }
.pastilles a.actif { background: var(--ink); color: #fff; border-color: var(--ink); }
.liste { background: var(--surface); border: 1px solid var(--ink-10); border-radius: 16px; padding: 0 14px; }
.ticket { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ink-10); color: inherit; text-decoration: none; }
.ticket:last-child { border-bottom: 0; }
.ticket__ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 15px; flex: none; }
.ticket__nom { font-weight: 650; font-size: 15px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket__sous { font-size: 12.5px; color: var(--ink-45); }
.ticket__fin { margin-left: auto; text-align: right; }
.ticket__mt { font-weight: 750; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.etat { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; margin-top: 3px; }
.etat--ok { background: var(--ok-soft); color: var(--ok); }
.etat--verifier { background: var(--warn-soft); color: var(--warn); }
.etat--erreur { background: var(--err-soft); color: var(--err); }
.vide { text-align: center; padding: 34px 10px; color: var(--ink-45); }
.vide__ico { font-size: 34px; }
.fab { position: fixed; right: max(18px, calc(50vw - 262px)); bottom: calc(var(--nav-h) + 18px); width: 62px; height: 62px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(35,84,214,.42); cursor: pointer; z-index: 20; }
/* Barre du bas */
.barre-nav { position: fixed; left: 0; right: 0; bottom: 0; height: var(--nav-h); background: var(--surface); border-top: 1px solid var(--ink-10); display: flex; justify-content: center; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.barre-nav__in { display: flex; width: 100%; max-width: 560px; justify-content: space-around; }
.barre-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-45); text-decoration: none; }
.barre-nav a.actif { color: var(--accent); }
.barre-nav svg { width: 22px; height: 22px; }
/* Écran de lecture en cours */
.lecture { position: fixed; inset: 0; background: rgba(15,23,42,.72); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lecture[hidden] { display: none; }
.lecture__carte { background: var(--surface); border-radius: 20px; padding: 26px 22px; width: 100%; max-width: 340px; text-align: center; }
.lecture__rond { width: 54px; height: 54px; border-radius: 50%; border: 5px solid var(--accent-soft); border-top-color: var(--accent); margin: 0 auto 14px; animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.lecture__titre { font-weight: 750; font-size: 17px; }
.lecture__sous { font-size: 13.5px; color: var(--ink-45); margin-top: 4px; }
.lecture .jauge > div { width: 0; transition: width 0.5s linear; }
.btn-secondaire { display: block; width: 100%; text-align: center; border: 1.5px solid var(--ink-20); background: var(--surface); color: var(--ink); font-weight: 650; border-radius: 14px; padding: 12px; font-size: 14.5px; cursor: pointer; text-decoration: none; }
.btn-large { display: block; width: 100%; text-align: center; background: var(--accent); color: #fff; font-weight: 700; border-radius: 14px; padding: 15px; font-size: 15.5px; border: 0; cursor: pointer; text-decoration: none; }
.pied-legal { text-align: center; font-size: 12.5px; color: var(--ink-45); margin: 22px 0 6px; }
.pied-legal a { color: inherit; }
