/* Page /notifications — module Notifications (préfixe md-notifications-, s'appuie sur pages.css).
 * Pas de capture d'écran disponible : téléphone dessiné en CSS, notification qui arrive puis fenêtre « Alerte KiloDelta ».
 * Une seule animation CSS (cycle de 9 s), coupée par prefers-reduced-motion (pages.css).
 */
.md-notifications-phone { position: relative; justify-self: center; width: min(270px, 74%); aspect-ratio: 9 / 19; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2a3446, #0d1320); box-shadow: 0 40px 70px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: perspective(1200px) rotateY(-10deg) rotateX(3deg); }
.md-notifications-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, rgba(242,76,192,.35), transparent 60%), radial-gradient(90% 60% at 20% 100%, rgba(255,107,53,.3), transparent 60%), #0a1426; }
.md-notifications-island { position: absolute; left: 50%; top: 9px; width: 34%; height: 22px; margin-left: -17%; border-radius: 999px; background: #000; z-index: 3; }
.md-notifications-clock { position: absolute; left: 0; right: 0; top: 16%; text-align: center; color: #fff; }
.md-notifications-clock b { display: block; font: 700 54px/1 Inter, sans-serif; letter-spacing: -.02em; }
.md-notifications-clock span { font-size: 12.5px; color: rgba(255,255,255,.75); }
.md-notifications-banner { position: absolute; left: 8px; right: 8px; top: 44%; padding: 10px 11px; border-radius: 16px; display: grid;
  grid-template-columns: 30px 1fr; gap: 9px; background: rgba(40,48,66,.82); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: md-notifications-in 9s ease-in-out infinite; }
.md-notifications-banner .app { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #ff5a3c, #f24cc0); color: #fff;
  font: 800 11px/30px Inter, sans-serif; text-align: center; }
.md-notifications-banner .h { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.6); }
.md-notifications-banner b { display: block; font-size: 12.5px; color: #fff; margin: 1px 0; }
.md-notifications-banner p { margin: 0; font-size: 11.5px; line-height: 1.35; color: rgba(255,255,255,.8); }
.md-notifications-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 20px; border-radius: 22px 22px 0 0;
  background: #101c30; border-top: 1px solid rgba(242,76,192,.35); animation: md-notifications-sheet 9s ease-in-out infinite; }
.md-notifications-sheet i { display: block; width: 36px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 0 auto 12px; }
.md-notifications-sheet .k { font: 700 10px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ff8fd9; }
.md-notifications-sheet b { display: block; color: #fff; font-size: 14.5px; margin: 6px 0 4px; }
.md-notifications-sheet p { margin: 0 0 12px; font-size: 12px; line-height: 1.45; color: #b9c6d8; }
.md-notifications-sheet span.btn { display: block; text-align: center; padding: 9px; border-radius: 10px; font: 700 12px Inter, sans-serif; color: #fff;
  background: linear-gradient(120deg, #ff5a3c, #f24cc0); }
@keyframes md-notifications-in {
  0%, 6% { transform: translateY(-160%); opacity: 0; }
  12%, 44% { transform: none; opacity: 1; }
  52%, 100% { transform: translateY(-20%) scale(.96); opacity: 0; }
}
@keyframes md-notifications-sheet {
  0%, 48% { transform: translateY(105%); }
  56%, 90% { transform: none; }
  98%, 100% { transform: translateY(105%); }
}

/* Ciblage */
.md-notifications-target { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.md-notifications-target .pg-card { text-align: left; }
.md-notifications-target .dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-bottom: 14px; }
.md-notifications-target .dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.1); }
.md-notifications-target .dots i.on { background: var(--c2); box-shadow: 0 0 8px color-mix(in srgb, var(--c2) 60%, transparent); }

/* Ce qui est stocké */
.md-notifications-kept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.md-notifications-kept ul { list-style: none; padding: 0 !important; margin: 10px 0 0; display: grid; gap: 7px; }
.md-notifications-kept li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.45; }
.md-notifications-kept li::before { content: "+"; font: 800 14px 'JetBrains Mono', monospace; color: var(--g); }
.md-notifications-kept .no li::before { content: "×"; color: #ff8a73; }

@media (max-width: 1000px) {
  .md-notifications-target { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .md-notifications-phone { width: min(230px, 66%); }
  .md-notifications-clock b { font-size: 44px; }
  .md-notifications-target, .md-notifications-kept { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .md-notifications-banner { transform: none; opacity: 1; }
  .md-notifications-sheet { transform: none; }
}
/* La colonne de contenu ne doit pas s'élargir à la largeur d'un tableau ou d'un bloc préformaté */
.md-notifications .pg-layout > div { min-width: 0; }

/* H1 orienté requête ; la phrase narrative passe en sous-titre juste dessous (oct. 2026). */
.kd-h1s { font-size: clamp(21px, 2.7vw, 30px); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; color: #e6edf6;
  margin: -4px 0 18px; max-width: 680px; text-wrap: balance; }

/* Maillage interne en pied de page : termes du glossaire et autres modules (modules/_liens.php). */
.kd-rel { display: grid; gap: 10px; margin-top: 22px; }
.kd-rel-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.kd-rel-row > b { font: 700 12px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim, #6f809b); }
.kd-rel-row .pg-meta { margin-top: 0; gap: 6px; }
.kd-rel-row .pg-meta a { padding: 5px 10px; font-size: 12.5px; }
