/* =====================================================================
 * Mode hors ligne : pastille d'etat, bandeaux, saisies en attente,
 * pages hors ligne (connexion, verrou, document provisoire).
 * ===================================================================== */

.hl-pastille {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .7rem; margin-right: .6rem; border-radius: 999px;
    font-size: .85rem; font-weight: 600; text-decoration: none;
    border: 1px solid transparent; white-space: nowrap;
}
.hl-pastille.hl-en-ligne   { background: #e7f6ec; color: #1b7a3d; border-color: #bfe5cb; }
.hl-pastille.hl-hors-ligne { background: #eceff3; color: #44505e; border-color: #d3d9e0; }
.hl-pastille.hl-rejets     { background: #fdecee; color: #b00020; border-color: #f5c2c9; }
.hl-pastille-flottante { position: fixed; right: 1rem; bottom: 1rem; z-index: 900; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hl-badge {
    min-width: 1.4em; padding: 0 .35em; border-radius: 999px; text-align: center;
    background: #d90429; color: #fff; font-size: .75rem; line-height: 1.4em;
}
@media (max-width: 640px) { .hl-pastille-texte { display: none; } }

.hl-bandeau {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 8px;
    background: #fff4e5; color: #7a4b00; border: 1px solid #f3d19c;
}
.hl-bandeau-info { background: #e8f1fd; color: #0b4a8b; border-color: #b8d3f5; position: sticky; top: 0; z-index: 950; margin: 0; border-radius: 0; justify-content: center; }

.hl-attente {
    margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: 8px;
    background: #f6f8fb; border: 1px dashed #b9c3cf;
}
.hl-attente h3 { margin: 0 0 .5rem; font-size: 1rem; }
.hl-attente ul { list-style: none; margin: 0; padding: 0; }
.hl-op { padding: .35rem 0; border-top: 1px solid #e3e8ee; }
.hl-op:first-child { border-top: 0; }
.hl-op small { color: #66717d; margin-left: .3rem; }
.hl-statut {
    display: inline-block; min-width: 5.5em; padding: .05rem .45rem; margin-right: .3rem;
    border-radius: 4px; font-size: .75rem; font-weight: 700; text-align: center;
    background: #e0e6ed; color: #354150;
}
.hl-op-rejete .hl-statut, .hl-op-bloque .hl-statut { background: #fdecee; color: #b00020; }
.hl-numero { font-family: "IBM Plex Mono", monospace; font-size: .85em; color: #44505e; }
.hl-erreur { color: #b00020; font-size: .85rem; margin-top: .15rem; }
.hl-lien-sync { display: inline-block; margin-top: .4rem; font-size: .85rem; }

.hl-toast {
    position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 1000;
    display: flex; align-items: center; gap: .8rem; max-width: 92vw;
    padding: .75rem 1rem; border-radius: 8px; background: #1f2933; color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: opacity .5s;
}
.hl-toast button { background: #fff; color: #1f2933; border: 0; border-radius: 6px; padding: .35rem .7rem; font-weight: 600; cursor: pointer; }
.hl-toast-fin { opacity: 0; }

/* ---- Pages statiques (hors_ligne.html, hors_ligne_document.html) ---- */
.hl-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f3f5f8; margin: 0; padding: 1rem; }
.hl-carte { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 1.8rem; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.hl-carte h1 { margin: 0 0 .3rem; color: #d90429; }
.hl-carte label { display: block; margin: .8rem 0 .3rem; font-weight: 600; }
.hl-carte select, .hl-carte input { width: 100%; padding: .6rem; border: 1px solid #c8d0da; border-radius: 6px; font-size: 1rem; box-sizing: border-box; }
.hl-carte button { width: 100%; margin-top: 1rem; }
.hl-message-erreur { color: #b00020; margin-top: .6rem; }

/* ---- Page Synchronisation ---- */
.hl-sync-etat { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.2rem; color: #44505e; }
.hl-sync-bloc { margin: 0 0 1.4rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid #e3e8ee; border-radius: 10px; }
.hl-sync-bloc h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.hl-sync-aide { margin: 0 0 .6rem; color: #66717d; font-size: .9rem; }
.hl-sync-liste { list-style: none; margin: 0; padding: 0; }
.hl-vide { color: #66717d; font-style: italic; padding: .35rem 0; }
.hl-sync-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.hl-sync-actions .hl-danger { color: #b00020; border-color: #f5c2c9; }
.hl-sync-danger { border-color: #f5c2c9; }
.hl-sync-message { margin: .6rem 0 0; font-weight: 600; color: #44505e; }
