/* Les notifications (22/11/2026) : la cloche de la barre du haut, son panneau, la page #/notifications et ses réglages. */
.cloche { position: relative; display: grid; place-items: center; width: 36px; height: 34px; margin: 0 -16px 0 auto; flex: none;
  border: 0; border-radius: 999px; background: transparent; color: var(--texte); cursor: pointer; }
.cloche:hover, .cloche[aria-expanded="true"] { background: rgba(236,236,234,.08); }
.cloche svg { width: 20px; height: 20px; fill: currentColor; }
.points-barre + .cloche, .cloche + .points-barre, .cloche + .avatar { margin-left: 0; }
.cloche-nb { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: #e0795a; color: #170b06; font: 700 10.5px/17px var(--corps); text-align: center; box-shadow: 0 0 0 2px var(--fond); }

.cloche-panneau { position: fixed; z-index: 60; top: calc(var(--haut) - 4px); right: 12px; width: min(400px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - var(--haut) - 24px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px; background: var(--fond-2); box-shadow: 0 0 0 1px var(--trait) inset, 0 24px 60px rgba(0,0,0,.55); }
.cloche-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.cloche-tete h2 { margin: 0; font-size: 20px; }
.cloche-tete .liens { display: flex; gap: 14px; font-size: 13px; }
.cloche-tete button, .cloche-tete a { border: 0; background: none; padding: 0; color: var(--doux); font: 500 13px var(--corps); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cloche-tete button:hover, .cloche-tete a:hover { color: var(--texte); }
.cloche-liste { list-style: none; margin: 0; padding: 0 6px 8px; overflow-y: auto; }
.cloche-vide { padding: 28px 16px 34px; text-align: center; color: var(--doux); font-size: 14px; }

.notif { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; width: 100%; padding: 10px; border: 0; border-radius: 10px;
  background: none; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.notif:hover { background: var(--carte); }
.notif .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--carte); }
.notif:hover .ic { background: var(--carte-2); }
.notif .ic svg { width: 17px; height: 17px; fill: var(--doux); }
.notif .t { display: block; font-size: 14.5px; line-height: 1.35; }
.notif .x { display: block; margin-top: 2px; color: var(--doux); font-size: 13px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif .q { color: var(--sourd); font-size: 12px; white-space: nowrap; padding-top: 2px; }
.notif.non-lue .t { font-weight: 600; }
.notif.non-lue .q::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #e0795a; vertical-align: 1px; }
.notif-contenu .ic svg { fill: #9fd3ad; } .notif-seance .ic svg { fill: #e0795a; } .notif-groupe .ic svg, .notif-annonce .ic svg { fill: #3987e5; }
.notif-points .ic svg, .notif-jaime .ic svg { fill: #5fd59a; }

/* La page #/notifications */
.page-notifs { max-width: 760px; }
.page-notifs .bloc { margin-top: 26px; border-radius: 14px; background: var(--fond-2); box-shadow: 0 0 0 1px var(--trait) inset; padding: 8px 8px 10px; }
.page-notifs .bloc > h2 { margin: 8px 10px 6px; font-size: 22px; }
.page-notifs .bloc .cloche-liste { padding: 0; }
.reglages { width: 100%; border-collapse: collapse; }
.reglages th { padding: 8px 10px; font: 600 12px var(--corps); letter-spacing: .08em; text-transform: uppercase; color: var(--sourd); text-align: center; }
.reglages th:first-child { text-align: left; }
.reglages td { padding: 12px 10px; border-top: 1px solid var(--trait); vertical-align: middle; }
.reglages td:not(:first-child) { text-align: center; width: 104px; }
.reglages b { display: block; font-weight: 600; font-size: 15px; }
.reglages small { display: block; margin-top: 2px; color: var(--doux); font-size: 13px; line-height: 1.4; }
.reglages .sans { color: var(--sourd); font-size: 13px; }
.interrupteur { position: relative; display: inline-block; width: 42px; height: 24px; }
.interrupteur input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.interrupteur i { position: absolute; inset: 0; border-radius: 999px; background: var(--carte-2); box-shadow: 0 0 0 1px var(--trait) inset; transition: background .2s; pointer-events: none; }
.interrupteur i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--doux); transition: transform .2s, background .2s; }
.interrupteur input:checked + i { background: #2f6b47; }
.interrupteur input:checked + i::after { transform: translateX(18px); background: var(--papier); }
.interrupteur input:focus-visible + i { outline: 2px solid var(--papier); outline-offset: 2px; }
@media (max-width: 560px) { .reglages td:not(:first-child) { width: 70px; } }
/* le message ouvert depuis une notification, dans le groupe */
.comm-cible { box-shadow: 0 0 0 2px #e0795a inset; border-radius: 12px; transition: box-shadow .6s; }
