
.auth-nav {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-1);
  border: 1px solid var(--line-forte);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
}

.auth-pseudo {
  color: var(--texte);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-pseudo:hover {
  color: #e9d5ff;
}


.auth-points {
  color: #d2973a;
  font-weight: 700;
  font-size: 0.82em;
  text-decoration: none;
  white-space: nowrap;
  padding: 1px 7px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid rgba(251, 191, 36, 0.25);
  transition: background 0.2s, color 0.2s;
}

.auth-points:hover {
  background: var(--surface-2);
  color: #d2973a;
}


.accroche-recompenses {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid rgba(251, 191, 36, 0.28);
  transition: border-color 0.2s;
}

.accroche-recompenses:hover {
  border-color: rgba(251, 191, 36, 0.5);
}

.accroche-recompenses-icone {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.accroche-recompenses-texte {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--texte-doux);
}

.accroche-recompenses-texte strong {
  color: #d2973a;
  display: block;
  margin-bottom: 2px;
}

.accroche-recompenses-fleche {
  flex-shrink: 0;
  font-size: 1.6rem;
  color: #d2973a;
  line-height: 1;
}

@media (max-width: 560px) {

  .accroche-recompenses {
    gap: 11px;
    padding: 13px 15px;
  }

  .accroche-recompenses-texte {
    font-size: 0.8rem;
  }

  .accroche-recompenses-icone {
    font-size: 1.35rem;
  }
}


.recomp-toasts {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 24px);
}


.recomp-toast {
  --recomp-aura: rgba(239, 68, 68, 0.55);
  
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px 18px 12px 14px;
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--line-forte);
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  animation: recomp-entree 0.5s cubic-bezier(0.22, 1.2, 0.4, 1) forwards;
}

.recomp-toast.recomp-sortie {
  animation: recomp-sortie 0.35s ease forwards;
}



@keyframes recomp-entree {

  from {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes recomp-sortie {

  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
  }
}

.recomp-toast-icone {
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
  animation: recomp-pop 0.6s 0.15s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

@keyframes recomp-pop {

  0% {
    transform: scale(0.4) rotate(-14deg);
  }

  60% {
    rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.recomp-toast-texte {
  text-align: left;
  min-width: 0;
}

.recomp-toast-sur {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #d2973a;
}

.recomp-toast-titre {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
  margin-top: 2px;
}

.recomp-toast-desc {
  font-size: 0.72rem;
  color: var(--texte-doux);
  line-height: 1.35;
  margin-top: 3px;
}

.recomp-toast.niveau-argent {
  border-color: rgba(190, 200, 215, 0.45);
}

.recomp-toast.niveau-or {
  border-color: rgba(251, 191, 36, 0.5);
}

.recomp-toast.niveau-platine {
  border-color: rgba(125, 211, 252, 0.55);
}


.recomp-toast.recomp-points {
  --recomp-aura: rgba(251, 191, 36, 0.6);
  border-color: rgba(251, 191, 36, 0.45);
  padding-right: 14px;
}

.recomp-toast.recomp-points .recomp-toast-sur {
  color: #fde68a;
}

.recomp-toast-gain {
  flex-shrink: 0;
  margin-left: auto;
  
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #d2973a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  animation: recomp-pop 0.6s 0.25s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

@media (max-width: 520px) {

  .recomp-toast {
    padding: 10px 14px 10px 12px;
    gap: 10px;
  }

  .recomp-toast-titre {
    font-family: var(--font-display);
    font-size: 0.84rem;
  }

  .recomp-toast-desc {
    font-size: 0.68rem;
  }

  .recomp-toast-gain {
    font-size: 0.9rem;
    padding: 4px 9px;
  }
}



@media (prefers-reduced-motion: reduce) {

  .recomp-toast, .recomp-toast-icone, .recomp-toast-gain {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .recomp-toast {
    opacity: 1;
    transform: none;
  }
}


.auth-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--texte-doux);
  cursor: pointer;
  padding: 2px 4px;
  line-height: 0;
  transition: color 0.2s;
}

.auth-nav-toggle:hover {
  color: var(--accent-reseau);
}


.auth-nav-toggle .auth-nav-toggle-collapsed {
  display: none;
}

.auth-nav.collapsed .auth-nav-toggle .auth-nav-toggle-collapsed {
  display: inline-block;
}

.auth-nav.collapsed .auth-nav-toggle .auth-nav-toggle-expanded {
  display: none;
}

.auth-link {
  color: var(--texte-doux);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--accent-reseau);
}


.auth-results-icon {
  display: inline-flex;
  align-items: center;
  color: var(--texte-faible);
}

.auth-results-icon:hover {
  color: var(--accent-reseau);
}


.auth-classement-icon {
  display: inline-flex;
  align-items: center;
  color: #c9a554;
}

.auth-classement-icon:hover {
  color: #e0c178;
}

.auth-classement-icon[aria-current="page"] {
  color: #e0c178;
}

.auth-msg-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--texte-faible);
  transition: color 0.2s;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.auth-msg-icon:hover {
  color: var(--accent-reseau);
}

.auth-msg-icon.has-unread {
  color: var(--accent-reseau);
}

.auth-msg-icon.has-admin-unread {
  color: #d2973a;
  animation: msg-pulse 1.4s ease-in-out infinite;
}

@keyframes msg-pulse {

  0%, 100% {
    transform: scale(1);
  }
}


.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 var(--line-forte);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.mp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-forte);
  background: var(--surface-2);
  flex-shrink: 0;
}

.mp-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--texte);
  flex: 1;
}

.mp-expand {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.mp-expand:hover {
  color: var(--accent-reseau);
}

.mp-close {
  background: none;
  border: none;
  color: var(--texte-doux);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s;
}

.mp-close:hover {
  color: #d07070;
}

.mp-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-forte);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.mp-add-input {
  flex: 1;
  min-width: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--texte);
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
}

.mp-add-input:focus {
  border-color: var(--accent-reseau);
}

.mp-add-input::placeholder {
  color: var(--texte-faible);
}

.mp-add-btn {
  background: var(--accent-reseau);
  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: var(--surface-2);
}


.mp-contact-item.active {
  background: color-mix(in srgb, var(--accent-reseau) 16%, var(--surface-2));
  box-shadow: inset 3px 0 0 var(--accent-reseau);
}

.mp-contact-item.admin .mp-contact-name {
  color: #d2973a;
}

.mp-contact-name {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--texte-doux);
}

.mp-contact-badge {
  background: var(--accent-reseau);
  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: #64ab7c;
  box-shadow: 0 0 4px rgba(34,197,94,0.5);
  flex-shrink: 0;
}

.mp-empty {
  padding: 20px;
  text-align: center;
  color: var(--texte-faible);
  font-size: 0.82rem;
}

.mp-bloques-toggle {
  background: none;
  border: none;
  color: var(--texte-faible);
  font-size: 0.68rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.mp-bloques-toggle:hover {
  color: #d07070;
}

.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: var(--texte-doux);
}

.mp-bloque-item:hover {
  background: var(--surface-2);
}

.mp-unblock-btn {
  background: none;
  border: 1px solid var(--line-forte);
  color: var(--accent-reseau);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.mp-unblock-btn:hover {
  background: var(--surface-2);
}

.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 var(--line-forte);
  flex-shrink: 0;
}

.mp-back {
  background: none;
  border: none;
  color: var(--accent-reseau);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
}

.mp-conv-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texte);
  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: #d2973a;
}

.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: var(--surface-2);
  border-radius: 2px;
}

.mp-bulle {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: break-word;
}

.mp-bulle.moi {
  align-self: flex-end;
  background: var(--accent-reseau);
  color: #f5f3ff;
  border-bottom-right-radius: 3px;
}

.mp-bulle.autre {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--texte);
  border-bottom-left-radius: 3px;
}

.mp-bulle a {
  color: #ddd6fe;
  text-decoration: underline;
  font-weight: 600;
  word-break: break-all;
}

.mp-bulle a:hover {
  color: #fff;
}

.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: #d2973a;
  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: var(--texte-faible);
  padding: 5px 0;
}

.mp-input-zone {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-forte);
  flex-shrink: 0;
}

.mp-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--texte);
  font-size: 0.82rem;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 80px;
  min-height: 34px;
}

.mp-input:focus {
  border-color: var(--line-forte);
}

.mp-input::placeholder {
  color: var(--texte-faible);
}

.mp-send {
  background: var(--accent-reseau);
  border: none;
  color: #fff;
  border-radius: 6px;
  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 var(--line-forte);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  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: var(--surface-2);
}

@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: #c04a4a;
  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: #d07070;
}

.auth-logout:hover {
  color: #d07070;
}

.auth-inscription {
  animation: pulse-inscription 2s ease-in-out infinite;
}

@keyframes pulse-inscription {

  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}


.net-nav {
  position: relative;
}

.net-btn {
  background: none;
  border: 1px solid var(--line-forte);
  color: var(--texte);
  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: var(--surface-2);
  color: var(--accent-reseau);
}

.net-dd {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 435px !important;
  padding: 6px;
  margin: 0;
  background: var(--surface-1);
  border: 1px solid var(--line-forte);
  border-radius: 6px;
  z-index: 1001;
  max-height: 80vh;
  overflow-y: auto;
}

.net-nav:hover .net-dd {
  display: block;
}

.net-dd.net-dd-open {
  display: block;
}

.net-dd.net-dd-closed {
  display: none !important;
}


.net-dd-cats {
  column-count: 2;
  column-gap: 12px;
  width: 400px;
  max-width: 92vw;
}

.net-cat, .net-cat-direct {
  break-inside: avoid;
}


.net-cat {
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  border-radius: 6px;
  padding: 4px 6px 8px;
  margin-bottom: 10px;
}

.net-cat-direct {
  display: block;
  padding: 7px 12px;
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 7px;
}

.net-cat-direct.is-current {
  color: var(--accent-reseau);
  font-weight: 700;
}

.net-cat-direct:hover {
  background: var(--surface-2);
  color: var(--texte);
}

.net-cat-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px 12px 2px;
  background: none;
  border: none;
  color: var(--accent-reseau);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: default;
  pointer-events: none;
  border-radius: 7px;
}

.net-cat-chevron {
  display: none;
}

.net-cat-games {
  display: block;
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.net-dd li a {
  display: block;
  padding: 7px 14px;
  color: var(--texte-doux);
  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: var(--surface-2);
  color: var(--texte);
}

.net-dd li a[aria-current="page"] {
  color: var(--accent-reseau);
  font-weight: 700;
}


.net-cat-games li a {
  white-space: normal;
  line-height: 1.25;
}

.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: var(--surface-1);
    border: 1px solid var(--line-forte);
    border-radius: 6px;
    z-index: -1;
  }

  .net-dd {
    position: fixed;
    top: 42px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 90vw;
    min-width: 0 !important;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
  }

  
  .net-dd-cats {
    display: block;
    column-count: 1;
    width: auto;
  }

  .net-cat {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
  }

  
  .net-cat-direct {
    display: block;
    padding: 9px 12px;
    color: var(--texte-doux);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
  }

  .net-cat-direct.is-current {
    color: var(--accent-reseau);
    font-weight: 700;
  }

  .net-cat-direct:hover {
    background: var(--surface-2);
    color: var(--texte);
  }

  
  .net-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    color: var(--texte);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
  }

  .net-cat-btn:hover {
    background: var(--surface-2);
    color: var(--texte);
  }

  .net-cat-chevron {
    display: inline;
    transition: transform 0.2s ease;
    color: var(--accent-reseau);
    font-size: 0.7rem;
  }

  .net-cat.net-cat-open .net-cat-chevron {
    transform: rotate(90deg);
  }

  
  .net-cat-games {
    display: none;
    list-style: none;
    margin: 0 0 2px;
    padding: 0 0 4px 8px;
  }

  .net-cat.net-cat-open .net-cat-games {
    display: block;
  }

  .net-cat-games li a {
    font-size: 0.78rem;
    padding: 7px 12px;
    border-radius: 6px;
  }

  
  .auth-nav-toggle {
    display: inline-flex;
  }

  
  .auth-nav.no-collapse .auth-nav-toggle {
    display: none;
  }

  
  .auth-nav.collapsed > *:not(.auth-nav-toggle) {
    display: none;
  }

  
  .auth-nav.collapsed {
    padding: 6px 10px;
    gap: 0;
    background: var(--surface-2);
    border-color: var(--line-forte);
    box-shadow: 0 2px 10px rgba(167, 139, 250, 0.28);
  }

  .auth-nav.collapsed .auth-nav-toggle {
    color: var(--texte);
  }

  .auth-nav.collapsed .auth-nav-toggle:hover {
    color: #ede9fe;
  }

  .auth-nav.collapsed::before {
    display: none;
  }

  
  .auth-nav.collapsed.has-unread .auth-nav-toggle {
    color: var(--accent-reseau);
    animation: msg-pulse 1.4s ease-in-out infinite;
  }

  .auth-nav.collapsed.has-admin-unread .auth-nav-toggle {
    color: #d2973a;
  }
}

@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;
  }
}


.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-score-msg {
  color: #d2973a;
  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;
}


.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: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  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-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  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 var(--line-forte);
  border-radius: 8px;
  padding: 28px 32px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  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: var(--texte);
  margin-bottom: 8px;
}

.push-popup-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--texte-doux);
  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: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.push-popup-btn:active {
  transform: scale(0.97);
}

.push-popup-accept {
  background: var(--accent-reseau);
  color: #fff;
}

.push-popup-accept:hover {
  background: #6d28d9;
}

.push-popup-decline {
  background: var(--surface-2);
  color: var(--texte-doux);
}

.push-popup-decline:hover {
  background: var(--surface-2);
  color: var(--texte);
}


body footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--texte-faible);
}

body footer a {
  color: var(--texte-doux);
  text-decoration: none;
  transition: color 0.2s;
}

body footer a:hover {
  color: var(--accent-reseau);
}




.partage-score {
  display: none;
  margin-top: 16px;
  margin-bottom: 12px;
}

.partage-score.visible {
  display: block;
}

.partage-box {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 16px 16px;
  text-align: center;
}

.partage-titre {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--texte);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.partage-titre:hover {
  color: var(--color-light);
}

.partage-titre-icon {
  font-size: 1.15rem;
}

.partage-titre-chevron {
  font-size: 0.7rem;
  transition: transform 0.2s;
  display: inline-block;
}

.partage-titre-chevron.ouvert {
  transform: rotate(90deg);
}

.partage-contenu {
  display: none;
  overflow: hidden;
}

.partage-contenu.visible {
  display: block;
}

.partage-texte {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--texte-doux);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 16px;
  word-break: break-word;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
}

.partage-texte:hover {
  border-color: var(--line-forte);
}

.partage-texte-hint {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.65rem;
  color: var(--texte-faible);
  opacity: 0;
  transition: opacity 0.15s;
}

.partage-texte:hover .partage-texte-hint {
  opacity: 1;
}

.partage-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}


.partage-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s;
  min-width: 0;
}

.partage-btn-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.partage-btn-copier {
  background: var(--surface-2);
  color: var(--texte);
  border-color: var(--line-forte);
}

.partage-btn-copier:hover {
  background: var(--surface-1);
  border-color: var(--color-light);
}

.partage-btn-copier.copie {
  background: #14432a;
  border-color: #2f7f52;
  color: #7ee29b;
}


.partage-btn-wa {
  background: #25d366;
  color: #08130c;
}

.partage-btn-wa svg {
  fill: #08130c;
}

.partage-btn-tg {
  background: #2aabee;
  color: #061922;
}

.partage-btn-tg svg {
  fill: #061922;
}

.partage-btn-fb {
  background: #1877f2;
  color: #fff;
}

.partage-btn-fb svg {
  fill: #fff;
}

.partage-btn-wa:hover,
.partage-btn-tg:hover,
.partage-btn-fb:hover {
  filter: brightness(1.12);
}

.partage-btn-natif {
  background: transparent;
  color: var(--color-light);
  border-color: var(--line-forte);
}

.partage-btn-natif:hover {
  border-color: var(--color-light);
}

.partage-btn-x {
  background: var(--surface-2);
  color: var(--texte);
  border-color: var(--line-forte);
}

.partage-btn-x:hover {
  background: var(--surface-1);
  border-color: var(--color-light);
}

.partage-btn-x svg {
  fill: currentColor;
}


.partage-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.partage-popup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.partage-popup {
  background: var(--surface-1);
  border: 1px solid var(--line-forte);
  border-radius: 10px;
  padding: 24px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  position: relative;
}

.partage-popup-fermer {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--texte-faible);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}

.partage-popup-fermer:hover {
  color: var(--texte);
}

.partage-popup-titre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--texte);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.partage-popup-titre svg {
  width: 20px;
  height: 20px;
  fill: #1877f2;
}

.partage-popup-texte {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--texte-doux);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 14px;
  word-break: break-word;
  text-align: left;
}

.partage-popup-notice {
  font-size: 0.72rem;
  color: var(--texte-faible);
  margin-bottom: 16px;
  line-height: 1.4;
}

.partage-popup-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.partage-popup-btn {
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.partage-popup-btn-copier {
  background: var(--surface-2);
  color: var(--texte);
  border-color: var(--line-forte);
}

.partage-popup-btn-copier:hover {
  background: var(--surface-0);
  border-color: var(--color-light);
}

.partage-popup-btn-copier.copie {
  background: #14432a;
  border-color: #2f7f52;
  color: #7ee29b;
}

.partage-popup-btn-fb {
  background: #1877f2;
  color: #fff;
}

.partage-popup-btn-fb:hover {
  filter: brightness(1.12);
}

.partage-popup-btn-fb svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

@media (max-width: 480px) {

  .partage-btns {
    gap: 8px;
  }

  .partage-btn-action {
    padding: 9px 14px;
    font-size: 0.78rem;
  }

  .partage-box {
    padding: 16px 14px 14px;
  }
}