/* =========================================================================
   BIOPOINT AI CORE - L'APPLICATION DU SALARIE (application.css)
   =========================================================================
   Le bandeau « hors ligne », l'annonce de la file, la page hors ligne, l'aide
   a l'installation, le compte a rebours de la tablette partagee, le bouton
   « Ajouter à mon agenda » (agenda.js), et le MODE
   GROS CARACTERES : toute la feuille est en rem, agrandir la
   racine agrandit tout - textes, boutons, cibles tactiles.
   ========================================================================= */

/* --- Gros caracteres : choisi par le salarie, retenu pour son compte ------- */
html.gros-caracteres { font-size: 125%; }
html.gros-caracteres .small, html.gros-caracteres small { font-size: 0.92rem; }
html.gros-caracteres .btn, html.gros-caracteres .nav-link-custom { min-height: 48px; }
html.gros-caracteres .bp-tabbar a span { font-size: 0.8rem; }

/* --- Le reseau manque ------------------------------------------------------- */
.bp-hors-ligne {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 12px;
    background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .45);
    color: #fde68a; font-size: .9rem;
}
.bp-hors-ligne a { color: #fff; font-weight: 700; text-decoration: underline; }
.bp-hors-ligne[hidden] { display: none; }

.pwa-annonce {
    position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%);
    z-index: 2000; max-width: min(92vw, 560px); padding: .75rem 1rem; border-radius: 12px;
    background: #18181c; border: 1px solid #3f3f46; color: #f8fafc; font-size: .9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.pwa-annonce[hidden] { display: none; }
.pwa-annonce--ok { border-color: rgba(16, 185, 129, .6); }
.pwa-annonce--attente { border-color: rgba(245, 158, 11, .6); }
.pwa-annonce--erreur { border-color: rgba(239, 68, 68, .6); }

.pwa-file { color: #fde68a; font-weight: 700; }
.pwa-file[hidden] { display: none; }

/* --- La page hors ligne ------------------------------------------------------ */
.hl-liste { display: flex; flex-direction: column; gap: .5rem; }
.hl-creneau, .hl-message {
    display: flex; flex-direction: column; gap: .15rem;
    padding: .65rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .04);
    border: 1px solid #27272a;
    /* Un lien colle ou un mot sans espace ne pousse pas la page hors de
       l'ecran du telephone. */
    min-width: 0; overflow-wrap: anywhere;
}
.hl-heures { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; color: #fff; }
.hl-message--moi { border-color: rgba(99, 102, 241, .45); }
.hl-compteurs { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.hl-compteurs dt { color: #c7cad1; font-weight: 600; }
.hl-compteurs dd { margin: 0; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* --- L'aide a l'installation (iOS en trois images) --------------------------- */
.pwa-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.pwa-etape { margin: 0; padding: .8rem; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid #27272a; }
.pwa-etape img { display: block; width: 100%; height: auto; border-radius: 10px; background: #0f172a; }
.pwa-etape figcaption { margin-top: .6rem; font-size: .9rem; color: #e5e7eb; }
.pwa-code { display: inline-block; max-width: 220px; padding: .6rem; border-radius: 12px; background: #fff; }
.pwa-code svg { display: block; width: 100%; height: auto; }

/* --- « Ajouter à mon agenda » en un appui (agenda.js, _agenda_bouton.html) ------ */
/* « Mon agenda » : une carte centree, une phrase, un gros bouton ; en bas, discret,
   « Ne plus synchroniser ». Le bouton tient sur 375 px, cible tactile de 56 px. */
.agenda-carte {
    display: flex; flex-direction: column; align-items: center; gap: .85rem;
    max-width: 560px; margin: 0 auto 1rem; padding: 2rem 1.25rem; text-align: center;
}
.agenda-icone {
    display: inline-flex; align-items: center; justify-content: center;
    width: 4rem; height: 4rem; border-radius: 1.25rem; font-size: 1.75rem;
    background: rgba(16, 185, 129, .14); color: #34d399; border: 1px solid rgba(16, 185, 129, .45);
}
.agenda-titre { margin: 0; font-size: 1.35rem; font-weight: 800; color: #fff; }
.agenda-phrase { margin: 0; max-width: 34rem; color: #c7cad1; font-size: 1rem; line-height: 1.5; }
.agenda-relie { margin: 0; color: #6ee7b7; font-weight: 700; overflow-wrap: anywhere; }
.agenda-relie i { margin-inline-end: .4rem; vertical-align: -.125em; }
.agenda-form { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 100%; margin: 0; }
.agenda-bouton {
    width: 100%; max-width: 22rem; min-height: 56px; gap: .6rem;
    font-size: 1.1rem; font-weight: 800; border-radius: 14px;
}
.agenda-etat { margin: 0; color: #c7cad1; font-size: .9rem; }
.agenda-etat[hidden] { display: none; }
.agenda-etat--erreur { color: #fca5a5; }
/* Sur « Mon application » : le bouton a gauche, dans sa carte. */
.agenda-form--section { align-items: flex-start; }
/* Sur le planning : le raccourci de l'en-tete, en pastille. */
.agenda-form--raccourci { width: auto; align-items: flex-end; gap: .25rem; }
.agenda-form--raccourci .agenda-etat { font-size: .8rem; text-align: end; }
.agenda-couper { display: flex; justify-content: center; margin: 0 0 1.5rem; }
.agenda-lien-discret {
    min-height: 44px; padding: .5rem .75rem; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: .875rem; color: #a1a1aa; text-decoration: underline;
}
.agenda-lien-discret:hover, .agenda-lien-discret:focus-visible { color: #fca5a5; }

/* --- La tablette partagee ------------------------------------------------------ */
.poste-partage-veille {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap;
    padding: .6rem 1rem; background: #1e1b4b; color: #e0e7ff; font-size: .95rem;
    border-top: 1px solid #4f46e5;
}
.poste-partage-veille--bientot { background: #7c2d12; color: #fff7ed; border-top-color: #f97316; }
.poste-partage-sortie {
    display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem;
    border-radius: 10px; background: #fff; color: #111827; font-weight: 700; text-decoration: none;
}
