/* ---------- T1 : notifications (cloche de l'en-tête, liste, préférences du profil) ---------- */
.zone-cloche { position: relative; display: flex; }
.cloche {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--trait); border-radius: 50%; background: var(--plaque-2); color: var(--texte); cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.cloche:hover, .cloche[aria-expanded="true"] { border-color: var(--rouge); box-shadow: 0 0 16px rgba(227, 6, 19, .35); }
.cloche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-notif {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center; background: var(--rouge-vif); color: #fff; font: 700 11px/1 var(--f-chiffre);
  box-shadow: 0 0 0 2px var(--sol);
}

.liste-notifs {
  position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(380px, calc(100vw - 32px));
  max-height: min(70vh, 560px); overflow-y: auto; display: grid; gap: 8px; padding: 14px;
  background: var(--plaque); border: 1px solid var(--trait); border-top: 3px solid var(--rouge); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.liste-notifs header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 10px; }
.liste-notifs h2 { font: 700 16px/1 var(--f-titre); text-transform: uppercase; letter-spacing: .08em; }
.liste-notifs ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.liste-notifs li a {
  display: grid; gap: 4px; min-height: 44px; padding: 10px 12px; border-left: 3px solid var(--rouge);
  background: var(--plaque-2); color: var(--texte); text-decoration: none;
}
.liste-notifs li.lue a { border-left-color: var(--trait); opacity: .7; }
.liste-notifs li a:hover, .liste-notifs li a:focus-visible { background: var(--trait); }
.liste-notifs b { font: 700 14px/1.2 var(--f-titre); }
.liste-notifs span { font-size: 14px; color: var(--gris); }
.liste-notifs small { font: 500 11px/1 var(--f-chiffre); color: var(--gris); }
.lien-notifs { min-height: 44px; padding: 0; background: none; border: 0; color: var(--rouge-vif); font: 700 13px/1 var(--f-texte); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.lien-notifs:hover { text-decoration: underline; }
.vide-notifs { color: var(--gris); font-size: 14px; }

/* Section « Notifications » du profil */
.prefs-notifs { display: grid; gap: 14px; padding: 20px; background: var(--plaque); border: 1px solid var(--trait); border-top: 3px solid var(--rouge); }
.prefs-notifs h2 { font-size: 24px; }
.prefs-notifs p { color: var(--gris); max-width: 70ch; }
.prefs-notifs .ok-notifs { color: var(--ok); }
.avertissement-notifs { padding: 10px 14px; border-left: 3px solid var(--or); background: rgba(241, 196, 15, .08); color: var(--texte) !important; }
.interrupteur-notif { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.prefs-notifs input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--rouge); cursor: pointer; }
.table-prefs { min-width: 0; }
.table-prefs thead th { font-size: 11px; white-space: normal; }
.table-prefs th[scope="row"] { text-align: left; font: 600 14px/1.3 var(--f-texte); color: var(--texte); }
.table-prefs td { text-align: center; }
.table-prefs td, .table-prefs th { padding: 8px 10px; }

/* F5 : sur téléphone, la liste s'ouvre en pleine largeur sous l'en-tête. */
@media (max-width: 767px) {
  .liste-notifs { position: fixed; top: 64px; left: 16px; right: 16px; width: auto; }
}
