/* Jarvis Card, maquette : centre de notifications (cloche + panneau) et alertes. */
.btn-notifs.sonne .ic { animation: nt-sonne .7s var(--ease) 2; transform-origin: 50% 10%; }
@keyframes nt-sonne { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.dapp-top .btn-notifs, .pf-head .btn-notifs { flex: none; color: var(--ink-2); }
.dapp-top .pastille-notif[data-n]::after, .pf-head .pastille-notif[data-n]::after { top: 2px; right: 2px; }
.pf-head .btn-notifs { margin-left: auto; }
.pf-head .btn-notifs ~ .pf-compte { margin-left: 0; }

.nt-fond { position: fixed; inset: 0; z-index: var(--z-sheet, 60); background: rgb(10 14 24 / .42); display: flex; align-items: flex-end; justify-content: center; animation: nt-fondu var(--t, .2s) var(--ease); }
@keyframes nt-fondu { from { opacity: 0; } }
.nt-panneau { width: 100%; max-height: 88dvh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-2); padding-bottom: env(safe-area-inset-bottom); animation: nt-monte .28s var(--ease); }
@keyframes nt-monte { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 760px) {
  .nt-fond { background: transparent; align-items: flex-start; justify-content: flex-end; padding: 64px 16px 16px; }
  .nt-panneau { width: 420px; max-height: min(640px, calc(100dvh - 84px)); border-radius: 18px; border: 1px solid var(--line); }
}
.nt-tete { display: flex; align-items: center; gap: 8px; padding: 16px 12px 8px 18px; }
.nt-tete > div { flex: 1; min-width: 0; }
.nt-tete h2 { font-size: 19px; }
.nt-sous { font-size: 13px; color: var(--muted); }
.nt-tete .btn-ecouter { min-height: 40px; padding: 0 12px; font-size: 14px; }
.nt-barre { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 4px 16px 8px; }
.nt-barre .seg button { min-height: 38px; font-size: 13.5px; }
.nt-defile { overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 8px; flex: 1; }
.nt-groupe { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); padding: 12px 10px 6px; }
.nt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nt-item { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px 10px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.nt-item:hover { background: var(--surface-2); }
.nt-item.nonlu { background: color-mix(in srgb, var(--ecole) 6%, transparent); }
.nt-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ecole-soft); color: var(--ecole-lite); }
.nt-ic .ic { width: 22px; height: 22px; }
.nt-ok .nt-ic { background: var(--ok-soft); color: var(--ok); }
.nt-warn .nt-ic { background: var(--warn-soft); color: var(--warn); }
.nt-danger .nt-ic { background: var(--danger-soft); color: var(--danger); }
.nt-corps { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nt-corps strong { font-size: 15px; line-height: 1.3; }
.nt-item:not(.nonlu) .nt-corps strong { font-weight: 600; }
.nt-corps > span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.nt-corps .nt-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nt-point { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--ecole-2); box-shadow: 0 0 0 2px var(--surface); }
.nt-vide { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 36px 16px; color: var(--muted); }
.nt-vide .ic { width: 34px; height: 34px; color: var(--ok); }
.nt-vide strong { color: var(--ink); }
.nt-pied { padding: 10px 16px 14px; border-top: 1px solid var(--line); }

.nt-reglages { display: grid; }
.nt-reglage { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 2px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nt-reglage + .nt-reglage { border-top: 1px solid var(--line); }
.nt-reglage[disabled] { cursor: default; opacity: .75; }
.nt-reglage .nt-corps strong { font-size: 15px; font-weight: 600; }
.nt-switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: var(--r-pill); background: var(--line-2); transition: background var(--t-fast) var(--ease); }
.nt-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease); }
.nt-reglage[aria-checked="true"] .nt-switch { background: var(--ecole-lite); }
.nt-reglage[aria-checked="true"] .nt-switch::after { transform: translateX(20px); }
.nt-reglage:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  .nt-fond, .nt-panneau, .btn-notifs.sonne .ic { animation: none; }
}

/* ---------- Alertes de la comptabilité ---------- */
.bandeau-alerte { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); text-decoration: none; font-weight: 700; }
.bandeau-alerte .ic { width: 24px; height: 24px; flex: none; }
.bandeau-alerte span { flex: 1; min-width: 0; }
.bandeau-alerte small { display: block; font-weight: 500; color: var(--ink-2); font-size: 13.5px; }
.bandeau-alerte .fin { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.al-liste { display: grid; }
.al-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px; border-left: 4px solid var(--line-2); }
.al-item + .al-item { border-top: 1px solid var(--line); }
.al-item.urgent { border-left-color: var(--danger); }
.al-item.surveiller { border-left-color: var(--warn); }
.al-item.info { border-left-color: var(--ecole-lite); }
.al-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ecole-soft); color: var(--ecole-lite); }
.al-item.urgent .al-ic { background: var(--danger-soft); color: var(--danger); }
.al-item.surveiller .al-ic { background: var(--warn-soft); color: var(--warn); }
.al-corps { display: grid; gap: 6px; min-width: 0; }
.al-ligne1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.al-ligne1 strong { font-size: 16px; }
.al-corps p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.al-quand { font-size: 12.5px; color: var(--muted); }
.al-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.al-item.traitee { opacity: .78; }
.al-item.traitee .al-ic { background: var(--ok-soft); color: var(--ok); }
.al-champ { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.al-champ + .al-champ { border-top: 1px solid var(--line); }
.al-champ label { font-weight: 600; font-size: 15px; }
.al-champ label span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.al-champ .input { width: 110px; text-align: right; }
.dapp-side a.nav .compte-alerte { background: var(--danger); color: #fff; font-weight: 700; }
