/* ══════════════════════════════════════════════════════════════════════
   LA CLOCHE ET SON PANNEAU

   Un seul fichier pour les deux surfaces : le panneau qui tombe de la barre
   sur grand écran, et la page /notifications qui le remplace sur téléphone.
   Elles montrent la même chose avec le même vocabulaire ; les séparer aurait
   donné deux listes à corriger le jour où une ligne change.

   Mesures relevées sur la maquette « Frenchy Site - Notifications » :
   panneau 432 px, rayon 18, fond #0C0C24, ombre 0 28px 70px rgba(0,0,0,.62).
   ══════════════════════════════════════════════════════════════════════ */

/* ── LA CLOCHE ──────────────────────────────────────────────────────────
   La maquette dessine un carré de 40 px avec un filet. Le plancher tactile
   de 44 px reste la règle : on ne descend à 40 que là où l'on vise à la
   souris, jamais au doigt. */
.nt-cloche {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  color: var(--fy-gris, #a5a3bc);
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
@media (pointer: fine) {
  .nt-cloche { width: 40px; height: 40px; }
}
.nt-cloche:hover { color: var(--fy-encre, #f2f1f7); background: rgba(255, 255, 255, .1); }
.nt-cloche[aria-expanded="true"] {
  background: rgba(139, 123, 255, .16);
  border-color: rgba(139, 123, 255, .5);
  color: #bfb4ff;
}

/* La pastille porte un chiffre, contrairement aux autres outils de la barre :
   « trois choses à traiter » et « une seule » ne se décident pas pareil. */
.nt-pastille {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; box-sizing: border-box; padding: 0 5px;
  border-radius: 100px;
  background: var(--fy-rouge, #ff6b6b);
  border: 2px solid var(--fy-nuit, #07071a);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px; font-weight: 500;
  color: var(--fy-nuit, #07071a);
}
.nt-pastille[hidden] { display: none; }

/* ── LE PANNEAU ────────────────────────────────────────────────────── */
.nt-panneau {
  position: absolute; top: 52px; right: 0; z-index: 60;
  width: 432px; max-width: calc(100vw - 32px);
  background: var(--fy-carte, #0c0c24);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .62);
  overflow: hidden;
}
.nt-panneau[hidden] { display: none; }

.nt-tete { padding: 20px 22px 0; }
.nt-tete-ligne {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.nt-titre {
  margin: 0;
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-weight: 400; font-size: 27px; line-height: 1;
  color: var(--fy-encre, #f2f1f7);
}
.nt-tout-lu {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: #9c8cff; white-space: nowrap;
}
.nt-tout-lu[disabled] { color: #7e7c99; cursor: default; }

/* Les filtres. La chip active passe en clair — c'est l'écart de la maquette
   avec le reste de l'interface, et il tient : sur fond nuit, un fond clair se
   repère sans avoir à lire. */
.nt-filtres { display: flex; gap: 6px; padding-bottom: 16px; flex-wrap: wrap; }
.nt-filtre {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: transparent; color: #d6d4e4;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 100px;
  white-space: nowrap; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nt-filtre:hover { background: rgba(255, 255, 255, .06); }
.nt-filtre[aria-pressed="true"] {
  background: #f4f2ee; border-color: #f4f2ee; color: var(--fy-nuit, #07071a);
}
.nt-filtre-n {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px; color: var(--fy-violet, #8b7bff);
}
.nt-filtre[aria-pressed="true"] .nt-filtre-n { color: var(--fy-nuit, #07071a); }
.nt-filtre-n:empty { display: none; }

/* ── LA LISTE ──────────────────────────────────────────────────────── */
.nt-liste {
  max-height: 498px; overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, .08);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.nt-liste::-webkit-scrollbar { width: 6px; }
.nt-liste::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 3px; }

.nt-groupe {
  position: sticky; top: 0; z-index: 2;
  background: #0a0a1e;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px; letter-spacing: .12em; color: #7e7c99;
}

.nt-ligne {
  display: flex; gap: 13px;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nt-ligne.nt-non-lu { background: rgba(139, 123, 255, .05); }

/* L'icône est une forme géométrique, pas un emoji : la maquette n'en emploie
   aucun, et un emoji change de dessin d'un système à l'autre. La forme dit la
   famille, la couleur la répète. */
.nt-icone {
  width: 36px; height: 36px; flex: none;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.nt-forme { display: block; }
.nt-forme-commerce { width: 15px; height: 15px; border-radius: 3px; }
.nt-forme-direct { width: 15px; height: 15px; border-radius: 50%; }
.nt-forme-communaute { width: 16px; height: 6px; border-radius: 3px; }
.nt-forme-systeme { width: 13px; height: 13px; border-radius: 2px; transform: rotate(45deg); }

.nt-corps { flex: 1; min-width: 0; }
.nt-meta {
  display: flex; align-items: baseline; gap: 9px; margin-bottom: 5px;
}
.nt-genre {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px; font-weight: 500; letter-spacing: .09em;
}
.nt-quand {
  margin-left: auto; flex: none;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px; color: #7e7c99; white-space: nowrap;
}
.nt-h { font-size: 14.5px; line-height: 1.45; font-weight: 500; color: #d6d4e4; }
.nt-non-lu .nt-h { font-weight: 600; color: var(--fy-encre, #f2f1f7); }
.nt-texte { font-size: 13px; line-height: 1.5; color: var(--fy-gris, #a5a3bc); margin-top: 5px; }

.nt-action {
  display: inline-flex; align-items: center;
  margin-top: 12px;
  border: 0; border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  color: var(--fy-encre, #f2f1f7);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 9px 14px; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease;
}
.nt-action:hover { background: rgba(255, 255, 255, .16); color: var(--fy-encre, #f2f1f7); }

.nt-point {
  width: 7px; height: 7px; flex: none; margin-top: 6px;
  border-radius: 50%; background: var(--fy-violet, #8b7bff);
}

/* ── LE VIDE ───────────────────────────────────────────────────────── */
.nt-vide { padding: 52px 34px; text-align: center; }
.nt-vide-rond {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border-radius: 14px; background: rgba(255, 255, 255, .05);
  display: flex; align-items: center; justify-content: center;
  color: #7e7c99;
}
.nt-vide-h { font-size: 15.5px; font-weight: 600; color: var(--fy-encre, #f2f1f7); }
.nt-vide-p {
  margin: 9px auto 0; max-width: 34ch;
  font-size: 13.5px; line-height: 1.6; color: var(--fy-gris, #a5a3bc);
}

/* ── LE PIED ET LES RÉGLAGES ───────────────────────────────────────── */
.nt-pied {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #0a0a1e;
}
.nt-pied a { font-size: 13px; font-weight: 600; }
.nt-reglages-btn {
  margin-left: auto;
  border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; color: var(--fy-gris, #a5a3bc);
}
.nt-reglages-btn:hover { color: var(--fy-encre, #f2f1f7); }

.nt-reglages {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #0a0a1e;
  padding: 18px 22px 20px;
}
.nt-reglages[hidden] { display: none; }
.nt-reglages-kicker {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px; letter-spacing: .12em; color: #7e7c99; margin-bottom: 16px;
}
.nt-bascules { display: flex; flex-direction: column; gap: 14px; }
.nt-bascule {
  width: 100%; text-align: left;
  border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  font-family: inherit;
}
.nt-bascule-nom { display: block; font-size: 13.5px; color: var(--fy-encre, #f2f1f7); }
.nt-bascule-note {
  display: block; font-size: 12px; line-height: 1.45; color: #7e7c99; margin-top: 3px;
}
.nt-rail {
  flex: none; position: relative;
  width: 40px; height: 24px; border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  transition: background .18s ease;
}
.nt-rail::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #7e7c99;
  transition: transform .18s ease, background .18s ease;
}
.nt-bascule[aria-pressed="true"] .nt-rail { background: var(--fy-cyan, #5cd6e8); }
.nt-bascule[aria-pressed="true"] .nt-rail::after {
  transform: translateX(16px); background: var(--fy-nuit, #07071a);
}
.nt-reglages-note {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px; line-height: 1.55; color: #7e7c99;
}

/* ══ LA PAGE /notifications ═════════════════════════════════════════════
   Le même contenu, à plat. Elle sert le téléphone, où un panneau de 432 px
   flottant sous la barre n'a aucun sens, et elle sert de destination quand on
   ouvre le lien directement. */
.nt-page {
  max-width: 780px; margin: 0 auto;
  padding: 52px 20px 90px;
}
.nt-page-kicker {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px; font-weight: 500; letter-spacing: .14em;
  color: #7e7c99; margin-bottom: 18px;
}
.nt-page-h1 {
  margin: 0;
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-weight: 400; font-size: 44px; line-height: 1.04; letter-spacing: -.02em;
  color: var(--fy-encre, #f2f1f7);
}
.nt-page-p {
  margin: 18px 0 0; max-width: 62ch;
  font-size: 16.5px; line-height: 1.6; color: var(--fy-gris, #a5a3bc);
}
.nt-page-boite {
  margin-top: 34px;
  background: var(--fy-carte, #0c0c24);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  overflow: hidden;
}
.nt-page .nt-tete { padding: 22px 22px 0; }
.nt-page .nt-liste { max-height: none; }
.nt-page .nt-panneau {
  position: static; width: auto; max-width: none;
  border: 0; border-radius: 0; box-shadow: none; background: none;
}

/* ── LE DOIGT ──────────────────────────────────────────────────────────
   La maquette dessine des commandes fines : chips de 31 px, boutons d'action
   de 33 px. Ces tailles valent à la souris ; au doigt elles font viser à
   côté. Le plancher de 44 px est donc rétabli là où l'on touche, et là
   seulement — la maquette garde ses mesures sur écran pointé. */
@media (pointer: coarse) {
  .nt-filtre, .nt-action, .nt-tout-lu, .nt-reglages-btn, .nt-bascule {
    min-height: 44px;
  }
  .nt-tout-lu, .nt-reglages-btn { display: inline-flex; align-items: center; }
  .nt-filtre { padding-top: 0; padding-bottom: 0; }
}

@media (max-width: 620px) {
  .nt-page { padding: 34px 16px 72px; }
  .nt-page-h1 { font-size: 34px; }
  .nt-ligne { padding: 14px 16px; }
  .nt-groupe, .nt-pied, .nt-reglages { padding-left: 16px; padding-right: 16px; }
  .nt-page .nt-tete { padding: 18px 16px 0; }
}
