/* ============================================================================
   REFONTE APP — Notifications fidèle maquette 21. Scopé html.apprefonte
   + ≤768px + body.page-notifications. Additif/réversible.
   ============================================================================ */
html.apprefonte .ar-notifs { display: none; }

@media (max-width: 768px), (pointer: coarse) and (max-width: 1366px), (display-mode: standalone) and (max-width: 1366px) {
  /* AUDIT MASQUE 15/08 : bloc « À répondre » (.arep-head + .arep-card = pending_decisions_for :
     Accepter/Refuser invitations voyage/sortie privées, compagnons, « qui ramène quoi »)
     EXEMPTÉ du masque — sinon ces décisions actionnables disparaissaient en mode app (elles
     sont RETIRÉES de la liste des notifs par déduplication). Affichage seul, réversible. */
  html.apprefonte:has(.ar-notifs) .pub-content > *:not(.ar-notifs):not(.arep-head):not(.arep-card):not(.ann-banner-wrap):not(.flash) { display: none !important; }
  html.apprefonte body.page-notifications .pub-topbar { display: none !important; }
  /* Remonter « À répondre » tout en haut (le plus urgent d'abord). */
  html.apprefonte body.page-notifications main.pub-content { display: flex; flex-direction: column; }
  html.apprefonte body.page-notifications .ar-notifs { order: 1; }
  html.apprefonte body.page-notifications .arep-head,
  html.apprefonte body.page-notifications .arep-card { order: 0; }
  html.apprefonte body.page-notifications .arep-head { margin: 8px 0 10px; }
  html.apprefonte body.page-notifications .arep-card { border-radius: 16px; }
  html.apprefonte body.page-notifications .arep-btn { background-image: none !important; }
  html.apprefonte .ar-notifs { display: block; padding: 8px 14px calc(var(--ar-navh,64px) + var(--ar-safe-b,0px) + 84px); color: var(--ar-ink); }

  /* En-tête (titre serif Cormorant) */
  html.apprefonte .ar-nt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 12px; }
  html.apprefonte .ar-nt-head h1 { margin: 0; font: 700 30px/1.05 'Cormorant Garamond',Georgia,serif; color: var(--ar-ink); }
  html.apprefonte .ar-nt-head .ar-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ar-surface); border: 1px solid var(--ar-hairline); font-size: 18px; text-decoration: none; }

  /* Onglets segmentés */
  html.apprefonte .ar-nt-tabs { display: flex; gap: 6px; background: var(--ar-surface); border: 1px solid var(--ar-hairline); border-radius: 12px; padding: 5px; margin-bottom: 16px; }
  html.apprefonte .ar-nt-tab { flex: 1; padding: 9px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--ar-ink-soft); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; white-space: nowrap; }
  html.apprefonte .ar-nt-tab.is-active { background: var(--ar-cyan); color: var(--ar-on-accent); }

  /* Cartes */
  html.apprefonte .ar-nt-list { display: flex; flex-direction: column; gap: 10px; }
  html.apprefonte .ar-nt-card { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 14px; border-radius: 16px; background: var(--ar-surface); border: 1px solid var(--ar-hairline); text-decoration: none; color: var(--ar-ink); }
  html.apprefonte .ar-nt-card.is-unread { background: color-mix(in srgb, var(--ar-cyan) 6%, var(--ar-surface)); border-color: color-mix(in srgb, var(--ar-cyan) 22%, var(--ar-hairline)); }
  html.apprefonte .ar-nt-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
  html.apprefonte .ar-nt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  html.apprefonte .ar-nt-cat { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--c); }
  html.apprefonte .ar-nt-title { font-weight: 700; font-size: 15px; color: var(--ar-ink); }
  html.apprefonte .ar-nt-body { font-size: 13px; color: var(--ar-ink-soft); line-height: 1.4; }
  html.apprefonte .ar-nt-time { font-size: 11.5px; color: var(--ar-ink-soft); margin-top: 2px; }
  html.apprefonte .ar-nt-dot { position: absolute; top: 16px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--ar-cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ar-cyan) 22%, transparent); }
  html.apprefonte .ar-nt-empty { padding: 40px 14px; text-align: center; color: var(--ar-ink-soft); font-size: 14.5px; }
}
