  .auth-nav {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
  }
  .auth-pseudo { color: #c4b5fd; font-weight: 700; text-decoration: none; transition: color 0.2s; }
  .auth-pseudo:hover { color: #e9d5ff; }
  .auth-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }
  .auth-link:hover { color: #a78bfa; }
  .auth-msg-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #64748b;
    transition: color 0.2s;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
  }
  .auth-msg-icon:hover { color: #a78bfa; }
  .auth-msg-icon.has-unread { color: #a78bfa; }
  .auth-msg-icon.has-admin-unread { color: #fbbf24; animation: msg-pulse 1.4s ease-in-out infinite; }
  @keyframes msg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
  /* Popup messagerie */
  .mp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; justify-content: flex-end; align-items: flex-start; padding: 56px 16px 16px; }
  .mp-popup { width: 380px; max-width: 100%; height: min(550px, calc(100vh - 72px)); background: #1a1a2e; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.5); font-family: 'Inter', sans-serif; }
  .mp-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(139,92,246,0.1); flex-shrink: 0; }
  .mp-title { font-size: 0.95rem; font-weight: 700; color: #c4b5fd; flex: 1; }
  .mp-expand { color: #94a3b8; text-decoration: none; font-size: 1.1rem; transition: color 0.2s; }
  .mp-expand:hover { color: #a78bfa; }
  .mp-close { background: none; border: none; color: #94a3b8; font-size: 1.3rem; cursor: pointer; padding: 0 2px; transition: color 0.2s; }
  .mp-close:hover { color: #f87171; }
  .mp-add { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; flex-wrap: wrap; }
  .mp-add-input { flex: 1; min-width: 100px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 6px 10px; color: #e0e0e0; font-size: 0.78rem; font-family: inherit; outline: none; }
  .mp-add-input:focus { border-color: #8b5cf6; }
  .mp-add-input::placeholder { color: #64748b; }
  .mp-add-btn { background: #7c3aed; border: none; color: #fff; border-radius: 8px; width: 28px; height: 28px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .mp-add-btn:hover { opacity: 0.85; }
  .mp-add-msg { font-size: 0.7rem; width: 100%; min-height: 0; }
  .mp-contacts { flex: 1; overflow-y: auto; min-height: 0; }
  .mp-contact-item { display: flex; align-items: center; padding: 10px 16px; cursor: pointer; transition: background 0.15s; gap: 8px; }
  .mp-contact-item:hover { background: rgba(255,255,255,0.06); }
  .mp-contact-item.active { background: rgba(139,92,246,0.15); }
  .mp-contact-item.admin .mp-contact-name { color: #fbbf24; }
  .mp-contact-name { flex: 1; font-size: 0.84rem; font-weight: 500; color: #cbd5e1; }
  .mp-contact-badge { background: #8b5cf6; color: #fff; font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 8px; min-width: 16px; text-align: center; }
  .mp-contact-dot-lu { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 4px rgba(34,197,94,0.5); flex-shrink: 0; }
  .mp-empty { padding: 20px; text-align: center; color: #64748b; font-size: 0.82rem; }
  .mp-bloques-toggle { background: none; border: none; color: #64748b; font-size: 0.68rem; cursor: pointer; font-family: inherit; text-decoration: underline; padding: 0; transition: color 0.2s; }
  .mp-bloques-toggle:hover { color: #f87171; }
  .mp-bloques { flex: 1; overflow-y: auto; min-height: 0; }
  .mp-bloque-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font-size: 0.82rem; color: #94a3b8; }
  .mp-bloque-item:hover { background: rgba(255,255,255,0.04); }
  .mp-unblock-btn { background: none; border: 1px solid rgba(139,92,246,0.3); color: #a78bfa; font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
  .mp-unblock-btn:hover { background: rgba(139,92,246,0.15); }
  .mp-conv { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .mp-conv-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
  .mp-back { background: none; border: none; color: #a78bfa; font-size: 1.1rem; cursor: pointer; padding: 0 4px; }
  .mp-conv-name { font-size: 0.88rem; font-weight: 600; color: #c4b5fd; flex: 1; }
  .mp-action-btn { background: none; border: none; font-size: 1rem; cursor: pointer; padding: 2px 4px; opacity: 0.5; transition: opacity 0.2s; }
  .mp-action-btn:hover { opacity: 1; }
  .mp-conv-name.admin { color: #fbbf24; }
  .mp-messages { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
  .mp-messages::-webkit-scrollbar { width: 4px; }
  .mp-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
  .mp-bulle { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 0.82rem; line-height: 1.4; word-break: break-word; }
  .mp-bulle.moi { align-self: flex-end; background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #f5f3ff; border-bottom-right-radius: 3px; }
  .mp-bulle.autre { align-self: flex-start; background: rgba(255,255,255,0.08); color: #e2e8f0; border-bottom-left-radius: 3px; }
  .mp-flag { background: none; border: none; cursor: pointer; font-size: 0.7rem; margin-left: 6px; opacity: 0; transition: opacity 0.2s; vertical-align: middle; padding: 0; }
  .mp-bulle.autre:hover .mp-flag { opacity: 0.6; }
  .mp-flag:hover { opacity: 1 !important; }
  .mp-bulle.autre.admin { background: linear-gradient(135deg,rgba(251,191,36,0.15),rgba(245,158,11,0.1)); border: 1px solid rgba(251,191,36,0.25); }
  .mp-admin-tag { font-size: 0.55rem; font-weight: 700; color: #fbbf24; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
  .mp-heure { font-size: 0.55rem; color: rgba(255,255,255,0.3); margin-top: 2px; }
  .mp-bulle.moi .mp-heure { text-align: right; }
  .mp-date-sep { text-align: center; font-size: 0.65rem; color: #64748b; padding: 5px 0; }
  .mp-input-zone { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
  .mp-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 8px 12px; color: #e2e8f0; font-size: 0.82rem; font-family: inherit; resize: none; outline: none; max-height: 80px; min-height: 34px; }
  .mp-input:focus { border-color: rgba(139,92,246,0.5); }
  .mp-input::placeholder { color: #64748b; }
  .mp-send { background: #7c3aed; border: none; color: #fff; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; align-self: flex-end; }
  .mp-send:hover { opacity: 0.85; }
  .mp-send:disabled { opacity: 0.4; }
  .mp-emoji-wrap { position: relative; align-self: flex-end; }
  .mp-emoji-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 0; line-height: 34px; opacity: 0.6; transition: opacity 0.2s; }
  .mp-emoji-btn:hover { opacity: 1; }
  .mp-emoji-picker { position: absolute; bottom: 40px; left: 0; width: 250px; max-height: 160px; overflow-y: auto; background: #1e1b4b; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 8px; display: flex; flex-wrap: wrap; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 10; }
  .mp-emoji-item { font-size: 1.3rem; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 6px; transition: background 0.15s; }
  .mp-emoji-item:hover { background: rgba(255,255,255,0.1); }
  @media(max-width:500px) { .mp-overlay { padding: 50px 8px 8px; } .mp-popup { width: 100%; max-height: calc(100vh - 58px); } }
  .auth-msg-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 7px;
    padding: 0 3px;
  }
  .auth-logout { color: #f87171; }
  .auth-logout:hover { color: #fca5a5; }
  .auth-inscription { animation: pulse-inscription 2s ease-in-out infinite; }
  @keyframes pulse-inscription { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  /* Network nav dropdown */
  .net-nav { position: relative; }
  .net-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #c4b5fd;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .net-btn:hover { background: rgba(255, 255, 255, 0.1); color: #a78bfa; }
  .net-dd {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 6px;
    list-style: none;
    margin: 0;
    background: rgba(30, 27, 60, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    grid-template-columns: 1fr 1fr;
  }
  .net-nav:hover .net-dd { display: grid; }
  .net-dd.net-dd-open { display: grid; }
  .net-dd.net-dd-closed { display: none !important; }
  .net-dd li a {
    display: block;
    padding: 7px 14px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }
  .net-dd li a:hover { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; }
  .net-dd li a[aria-current="page"] { color: #a78bfa; font-weight: 700; }
  .logout-icon { display: none; vertical-align: middle; }
  @media (max-width: 768px) {
    .auth-nav {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      background: transparent;
      border-color: transparent;
    }
    .auth-nav::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      z-index: -1;
    }
    .net-dd { position: fixed; top: 42px; left: 50% !important; right: auto !important; transform: translateX(-50%); width: 90vw; max-width: 360px; grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 480px) {
    .auth-nav {
      top: 6px;
      right: 6px;
      gap: 6px;
      padding: 5px 10px;
      font-size: 0.7rem;
    }
    .net-btn { font-size: 0.7rem; }
    .net-dd li a { font-size: 0.72rem; padding: 7px 10px; }
    .logout-text { display: none; }
    .logout-icon { display: inline-block; }
    .footer-author { display: block; margin-top: 4px; }
  }
  /* Bandeau vérification email */
  .email-verify-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(135deg, #92400e, #b45309);
    color: #fef3c7;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
  }
  .email-verify-btn {
    display: inline-block;
    background: #fff;
    color: #92400e;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
  }
  .email-verify-btn:hover { background: #fde68a; }
/* CTA inscription fin de partie */
  .cta-score-msg { color: #fbbf24; font-size: 0.88rem; margin-top: 16px; font-weight: 600; }
  .cta-auth-btns { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
  .cta-auth-btns a { font-size: 0.82rem; }
  /* Toast pending score */
  .pending-score-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: toast-in 0.3s ease-out;
  }
  .pending-score-toast.toast-out { animation: toast-out 0.4s ease-in forwards; }
  @keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
  @keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateX(-50%) translateY(20px); } }
  /* Push notification popup */
  .push-popup-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
  }
  .push-popup-overlay.push-popup-visible { opacity: 1; pointer-events: auto; }
  .push-popup {
    background: linear-gradient(135deg, #1e1b3c, #2d2654);
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 16px; padding: 28px 32px;
    max-width: 360px; width: 90%; text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    transform: translateY(20px); transition: transform 0.3s;
  }
  .push-popup-visible .push-popup { transform: translateY(0); }
  .push-popup-icon { font-size: 2.2rem; margin-bottom: 8px; }
  .push-popup-title { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; color: #e2e8f0; margin-bottom: 8px; }
  .push-popup-text { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: #94a3b8; line-height: 1.5; margin-bottom: 20px; }
  .push-popup-btns { display: flex; gap: 10px; justify-content: center; }
  .push-popup-btn {
    font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
    padding: 9px 22px; border-radius: 10px; border: none; cursor: pointer;
    transition: background 0.2s, transform 0.1s;
  }
  .push-popup-btn:active { transform: scale(0.97); }
  .push-popup-accept { background: #7c3aed; color: #fff; }
  .push-popup-accept:hover { background: #6d28d9; }
  .push-popup-decline { background: rgba(255,255,255,0.08); color: #94a3b8; }
  .push-popup-decline:hover { background: rgba(255,255,255,0.14); color: #e2e8f0; }

  /* Footer centré sur toutes les pages */
  body footer { text-align: center; margin-top: 24px; font-size: 0.78rem; color: #64748b; }
  body footer a { color: #818cf8; text-decoration: none; transition: color 0.2s; }
  body footer a:hover { color: #a78bfa; }
