/* SerYOS · mode hors ligne (étape 5) : bandeau, lecture seule, boutons « disponible hors ligne », page de secours.
   Jetons de couleur de composants.css (--syc-*), valeurs de repli si la feuille n'est pas chargée. */
.sy-hl-bandeau{position:sticky;top:0;left:0;right:0;z-index:2147483100;display:block;box-sizing:border-box;width:100%;
  padding:8px max(16px,env(safe-area-inset-left)) 8px max(16px,env(safe-area-inset-right));
  background:var(--syc-alerte,#92400e);color:#fff;font:600 .88rem/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:center;
  overflow-wrap:anywhere}
.sy-hl-bandeau[hidden]{display:none}
.sy-hl-bandeau--refus{background:var(--syc-erreur,#b91c1c)}
@media (prefers-color-scheme:dark){.sy-hl-bandeau{color:#1a1206}.sy-hl-bandeau--refus{color:#2a0707}}
:root[data-mode="dark"] .sy-hl-bandeau{color:#1a1206}
:root[data-mode="light"] .sy-hl-bandeau{background:#92400e;color:#fff}
:root[data-mode="light"] .sy-hl-bandeau--refus{background:#b91c1c;color:#fff}

/* lecture seule : contrôles d'envoi désactivés par horsligne.js (infobulle « Indisponible hors ligne ») */
.sy-lecture-seule [data-sy-hl],.sy-lecture-seule [data-sy-ecrit]{opacity:.5;cursor:not-allowed}
.sy-lecture-seule [data-sy-hl-ro]{cursor:not-allowed}

/* bouton « Rendre disponible hors ligne » ajouté à côté des liens de fichiers */
.sy-hl-garder{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;margin:0 0 0 6px;padding:0;vertical-align:middle;
  border:1px solid var(--syc-ligne,#cbd5e1);border-radius:8px;background:transparent;color:var(--syc-texte-doux,#475569);cursor:pointer;position:relative}
.sy-hl-garder::before{content:"";width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6zM4 19h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6zM4 19h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat}
.sy-hl-garder::after{content:"";position:absolute;inset:-6px}                 /* zone tactile de 44 px */
.sy-hl-garder--on{background:var(--syc-vert-fond,#e3f8ef);border-color:var(--syc-vert,#047857);color:var(--syc-vert,#047857)}
.sy-hl-garder:focus-visible,.sy-hl-dossier:focus-visible{outline:2px solid var(--syc-bleu,#2b63ff);outline-offset:2px}
.sy-hl-dossier{display:inline-flex;align-items:center;min-height:44px;margin:8px 0 12px;padding:0 14px;border-radius:10px;border:1px solid var(--syc-ligne,#cbd5e1);
  background:var(--syc-surface,#f1f5f9);color:var(--syc-texte,#0f172a);font:600 .88rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
[dir="rtl"] .sy-hl-garder{margin:0 6px 0 0}

/* page de secours servie par le service worker */
.sy-hl-secours{margin:0;min-height:100vh;background:var(--bg,var(--syc-fond,#fff));color:var(--text,var(--syc-texte,#0f172a));
  font:1rem/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.sy-hl-secours__boite{max-width:640px;margin:0 auto;padding:40px 16px}
.sy-hl-secours__boite h1{font-size:1.6rem;margin:0 0 8px}
.sy-hl-secours__boite h2{font-size:1.05rem;margin:28px 0 8px}
.sy-hl-secours__btn{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:10px;background:var(--syc-bleu,#2b63ff);color:#fff;text-decoration:none;font-weight:600}
.sy-hl-secours__liste{padding-left:1.2em}
.sy-hl-secours__liste a{display:inline-block;padding:8px 0;color:var(--syc-bleu-txt,#1d4ed8);overflow-wrap:anywhere}
@media (prefers-color-scheme:dark){.sy-hl-secours{background:#0b1220;color:#e8eefc}.sy-hl-secours__btn{color:#0b1220;background:#7aa2ff}.sy-hl-secours__liste a{color:#a9c1ff}}
