/* ==========================================================================
   SAAS — ce qui est propre à la version multi-organisme (Edzou).
   • --org : couleur de l'organisme connecté (posée par SC.marque, js/auth.js)
   • raccourcis de connexion de la démo (dev/fake-firebase.js)
   ========================================================================== */
html[data-org] .sidebar__brand .wm__mark { background: var(--org) !important; color: #fff !important; }
html[data-org] .sidebar__brand .wm__txt { color: inherit; }
html[data-org] .sidebar__brand .wm__sous { opacity: .7; }
html[data-org] .topbar { box-shadow: inset 0 3px 0 var(--org); }

.lg-produit { margin-bottom: 18px; color: #fff; }
.lg-produit .wm__txt { color: #fff; }

.demo-comptes { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(120, 130, 150, .45); display: grid; gap: 8px; }
.demo-comptes p { margin: 0 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.demo-comptes button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 9px 12px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid rgba(120, 130, 150, .35); border-left: 5px solid var(--c); background: rgba(255, 255, 255, .55); color: inherit; font: inherit; }
.demo-comptes button:hover { background: rgba(255, 255, 255, .9); }
.demo-comptes small { opacity: .7; font-size: 12px; }
html[data-theme="dark"] .demo-comptes button { background: rgba(255, 255, 255, .06); }

/* Nom de l'organisme dans le menu : peut tenir sur deux lignes */
html[data-org] .sidebar__brand .wm__txt { font-size: 15px; line-height: 1.15; white-space: normal; }
html[data-org] .sidebar__brand .wm__mark { display: grid; place-items: center; font-size: 16px; }

/* Guide intégré : masqué tant qu'il n'est pas réécrit pour tous les organismes */
#btn-aide { display: none !important; }

/* Écran Organismes (éditeur du logiciel) */
.org-nom { display: inline-flex; align-items: center; gap: 10px; }
.org-nom i { width: 12px; height: 34px; border-radius: 6px; flex: none; }
.org-nom span { display: flex; flex-direction: column; }
.org-nom small { opacity: .65; font-size: 12px; }
.org-opt { display: inline-block; margin: 1px 4px 1px 0; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; background: rgba(120, 130, 150, .16); white-space: nowrap; }

/* Bandeau « mode support » */
.bandeau-support { position: fixed; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  padding: 10px 16px; border-radius: 14px; background: #7c2d12; color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: calc(100vw - 24px); }
.bandeau-support button { border: 0; border-radius: 10px; padding: 7px 12px; background: #fff; color: #7c2d12; font: inherit; font-weight: 700; cursor: pointer; }

/* Émargement numérique */
.em-grille { overflow-x: auto; }
.em { width: 100%; border-collapse: collapse; font-size: 13px; }
.em th, .em td { border: 1px solid rgba(120, 130, 150, .28); padding: 6px; text-align: center; min-width: 96px; height: 52px; }
.em thead th { font-weight: 700; background: rgba(120, 130, 150, .08); }
.em tbody th { text-align: left; min-width: 170px; padding-left: 12px; position: sticky; left: 0; background: var(--surface, #fff); z-index: 1; }
.em .em-auj { background: rgba(34, 197, 94, .14); }
.em-titre { text-align: left !important; font-weight: 700; background: rgba(120, 130, 150, .08); height: auto !important; }
.em-signer, .em-tous { border: 1px solid rgba(120, 130, 150, .45); background: transparent; color: inherit; border-radius: 9px; padding: 5px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.em-tous { margin-top: 4px; background: var(--org, #2563eb); border-color: transparent; color: #fff; }
.em-ok { cursor: pointer; background: rgba(34, 197, 94, .09); }
.em-ok img { max-height: 38px; max-width: 110px; display: block; margin: 0 auto; background: #fff; border-radius: 6px; }
.em-abs { font-weight: 700; color: #b45309; }

/* Bilan pédagogique et financier */
.bpf { width: 100%; border-collapse: collapse; font-size: 14px; }
.bpf th, .bpf td { padding: 8px 10px; border-bottom: 1px solid rgba(120, 130, 150, .22); text-align: left; }
.bpf th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; opacity: .7; }
.bpf .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bpf .k { width: 54px; font-weight: 700; opacity: .7; }
.bpf .t td { font-weight: 800; border-bottom: 0; }
