
.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 4;
}


@keyframes msg-pulse {

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

  50% {
    transform: scale(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-msg-icon.has-admin-unread,
  .auth-nav.collapsed.has-unread .auth-nav-toggle { animation: none; }
}


.auth-nav.collapsed .auth-nav-toggle[data-non-lus] {
  position: relative;
}

.auth-nav.collapsed .auth-nav-toggle[data-non-lus]::after {
  content: attr(data-non-lus);
  position: absolute;
  top: -11px;
  right: -15px;
  background: #c04a4a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
  box-sizing: border-box;
}




.recomp-fete-carte {
  --recomp-aura: rgba(74, 222, 128, 0.65);
  position: relative;
}

.recomp-fete {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.recomp-fete i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fbbf24;
  opacity: 0;
  transform: rotate(var(--angle)) translateX(0);
  animation: recomp-etincelle 900ms ease-out var(--retard) 1 both;
}

.recomp-fete i:nth-child(3n)   { background: #4ade80; }
.recomp-fete i:nth-child(3n+1) { background: #60a5fa; }

@keyframes recomp-etincelle {
  0%   { opacity: 0; transform: rotate(var(--angle)) translateX(4px) scale(0.4); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--angle)) translateX(74px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .recomp-fete { display: none; }
}



.auth-avatar {
  display: inline-flex;
  flex: none;
  line-height: 0;
}
.auth-avatar img {
  width: 26px;
  height: 26px;
  border-radius: 22%;
  object-fit: cover;
  background: var(--surface-2);
  transition: box-shadow 0.15s;
}
.auth-avatar:hover img { box-shadow: 0 0 0 2px var(--accent-reseau); }


.auth-missions-icon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--texte-faible);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}


.auth-missions-icon svg { width: 14px; height: 14px; }

.auth-missions-icon:hover { color: var(--accent-reseau); }
.auth-missions-icon.missions-completes { color: #4ade80; }


.auth-missions-icon.mj-attire {
  animation: mj-clignote 1.6s linear 1;
}
@keyframes mj-clignote {
  0%,  24%  { color: #fbbf24; }
  25%, 49%  { color: #ffffff; }
  50%, 74%  { color: #fbbf24; }
  75%, 100% { color: #ffffff; }
}

.auth-missions-badge {
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 700;
  color: inherit;
}



.annonce-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 10050;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.annonce-popup {
  position: relative;
  width: 420px;
  max-width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--line-forte);
  border-radius: 16px;
  padding: 28px 26px 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  animation: annonce-entree 0.35s ease-out;
}


.annonce-overlay,
.mj-overlay { --mj-vol-duree: 550ms; }


.annonce-overlay.annonce-part,
.mj-overlay.mj-part {
  transition: background var(--mj-vol-duree) ease-in;
  background: rgba(0,0,0,0);
  pointer-events: none;
}


.annonce-overlay.annonce-part .annonce-popup,
.mj-overlay.mj-part .mj-popup {
  animation: none;
  transition: transform var(--mj-vol-duree) cubic-bezier(0.3, 0.6, 0.4, 1),
              opacity 0.1s ease-in calc(var(--mj-vol-duree) - 0.1s);
  transform: translate(var(--mj-vol-x, 0px), var(--mj-vol-y, 0px)) scale(0.06);
  opacity: 0;
}

@keyframes annonce-entree {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}


@media (prefers-reduced-motion: reduce) {
  .annonce-popup { animation: none; }
  .annonce-overlay.annonce-part .annonce-popup,
  .mj-overlay.mj-part .mj-popup { transition: opacity 0.2s linear; transform: none; }
  .auth-missions-icon.mj-attire { animation: none; }
}

.annonce-close {
  position: absolute;
  top: 8px; right: 12px;
  background: none; border: none;
  color: var(--texte-faible);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer; padding: 4px 8px;
}
.annonce-close:hover { color: var(--texte); }

.annonce-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }

.annonce-titre {
  font-size: 1.32rem;
  margin: 0 0 10px;
  color: var(--texte);
}

.annonce-corps,
.annonce-suite {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--texte-doux);
  margin: 0 0 10px;
}

.annonce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.annonce-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--color-btn1);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.annonce-cta:hover { background: var(--color-btn2); }

.annonce-plus-tard {
  padding: 10px 18px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--line-forte);
  color: var(--texte-doux);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.annonce-plus-tard:hover { color: var(--texte); border-color: var(--texte-faible); }

@media (max-width: 480px) {
  .annonce-popup { padding: 24px 18px 18px; }
  .annonce-titre { font-size: 1.15rem; }
  .annonce-actions { flex-direction: column; }
  .annonce-cta, .annonce-plus-tard { width: 100%; }
}

.mj-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}


.mj-popup {
  position: relative;
  width: 460px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  background: #3a2216;
  border: 0;
  padding: 3px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}


.mj-popup::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  padding-bottom: 200%;
  margin: -100% 0 0 -100%;
  
  background: conic-gradient(from 0deg,
    transparent 0 62%,
    #6e1a0c 72%,
    #c62d12 82%,
    #f2611b 90%,
    #ffa62b 95%,
    #ffe066 98.5%,
    #fffbe6 100%);
  animation: mj-meche-tour 6s linear infinite, mj-meche-crepite 0.45s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.mj-popup::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 11px;
  background: #1a1a2e;
}

.mj-popup > * {
  position: relative;
  z-index: 1;
}


.mj-popup > :first-child { border-radius: 11px 11px 0 0; }
.mj-popup > :last-child { border-radius: 0 0 11px 11px; }

@keyframes mj-meche-tour {
  to { transform: rotate(360deg); }
}


@keyframes mj-meche-crepite {
  0%   { opacity: 1; }
  40%  { opacity: 0.78; }
  65%  { opacity: 0.95; }
  100% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .mj-popup { background: #f2611b; }
  .mj-popup::before { display: none; }
}

.mj-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-forte);
  background: var(--surface-2);
}

.mj-titre { font-size: 1rem; font-weight: 700; color: var(--texte); flex: 1; }

.mj-close {
  background: none; border: none; color: var(--texte-faible);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.mj-close:hover { color: var(--texte); }


.mj-invite {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-forte);
  background: rgba(124, 58, 237, 0.10);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--texte-doux);
}
.mj-invite strong { color: var(--texte); }

.mj-invite-liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mj-invite-liens a {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--color-btn1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.mj-invite-liens a:last-child {
  background: transparent;
  border: 1px solid var(--line-forte);
  color: var(--texte-doux);
}
.mj-invite-liens a:hover { filter: brightness(1.1); }

.mj-liste { padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

.mj-carte {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(148,163,184,0.08);
  border: 1px solid var(--line-forte);
  border-radius: 12px;
  color: var(--texte);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.mj-carte:hover { background: rgba(148,163,184,0.16); border-color: var(--accent-reseau); }

.mj-carte.mj-faite {
  background: rgba(74,222,128,0.10);
  border-color: rgba(74,222,128,0.45);
}

.mj-carte-icone { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.mj-carte-texte { flex: 1; min-width: 0; }

.mj-carte-libelle { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.mj-carte-detail { display: block; font-size: 0.78rem; color: var(--texte-doux); margin-top: 3px; }

.mj-carte-etat { flex-shrink: 0; text-align: right; font-size: 0.78rem; }
.mj-carte-points { display: block; font-weight: 700; color: #fbbf24; }
.mj-carte-faite-marque { display: block; color: #4ade80; font-weight: 700; }

.mj-jauge { height: 4px; border-radius: 2px; background: rgba(148,163,184,0.25); margin-top: 6px; overflow: hidden; }
.mj-jauge-remplie { height: 100%; background: var(--accent-reseau); border-radius: 2px; }

.mj-pied {
  padding: 12px 18px;
  border-top: 1px solid var(--line-forte);
  background: var(--surface-2);
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--texte-doux);
}
.mj-pied strong { color: #fbbf24; }


.mj-lien-page {
  flex-basis: 100%;
  text-align: center;
  color: var(--texte-doux);
  text-decoration: underline;
}
.mj-lien-page:hover { color: var(--texte); }

@media (max-width: 520px) {
  .mj-popup { border-radius: 12px; }
  .mj-popup::after { border-radius: 9px; }
  .mj-popup > :first-child { border-radius: 9px 9px 0 0; }
  .mj-popup > :last-child { border-radius: 0 0 9px 9px; }
  .mj-carte-libelle { font-size: 0.86rem; }
}

.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,
.mp-contact-dot-attente {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64ab7c;
  box-shadow: 0 0 4px rgba(34,197,94,0.5);
  flex-shrink: 0;
}


.mp-contact-dot-attente {
  background: #e5534b;
  box-shadow: 0 0 4px rgba(229,83,75,0.6);
}

.mp-contact-traiter {
  background: none;
  border: 1px solid var(--line-forte);
  border-radius: 6px;
  color: var(--texte-doux);
  font-size: 0.72rem;
  line-height: 1;
  padding: 3px 7px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.mp-contact-traiter:hover {
  border-color: #64ab7c;
  color: #64ab7c;
}

.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-charte {
  align-self: center;
  max-width: 90%;
  margin: 2px 0 8px;
  padding: 8px 12px;
  border: 1px dashed var(--line-forte);
  border-radius: 6px;
  color: var(--texte-doux);
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}

.mp-charte-tag {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--texte-faible);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.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-amis-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--texte-faible);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.auth-amis-icon:hover,
.auth-amis-icon.has-demandes {
  color: var(--accent-reseau);
}


.auth-amis-nb {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #2f9e5a;
  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-amis-icon #auth-amis-badge {
  top: auto;
  bottom: -7px;
}

.auth-amis-icon [hidden] {
  display: none;
}

.mp-add-info {
  flex: 1;
  font-size: 0.74rem;
  color: var(--texte-faible);
}

.mp-amis-lien {
  background: none;
  border: none;
  color: var(--accent-reseau);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.mp-amis-lien:hover {
  text-decoration: underline;
}

.amis-add-btn {
  background: var(--accent-reseau);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.amis-add-btn:hover {
  opacity: 0.85;
}

.amis-add-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.amis-liste {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 8px;
}

.amis-section-titre {
  padding: 12px 16px 4px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--texte-faible);
}

.amis-item,
.amis-demande {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}

.amis-item {
  cursor: pointer;
  transition: background 0.15s;
}

.amis-item:hover,
.amis-item:focus-visible,
.amis-item.ouvert {
  background: var(--surface-2);
  outline: none;
}

.amis-point {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.amis-point.en-ligne {
  background: #22c55e;
  box-shadow: 0 0 5px rgba(34, 197, 94, 0.6);
}

.amis-point.hors-ligne {
  background: #c04a4a;
}

.amis-nom {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--texte-doux);
}

.amis-item.en-ligne .amis-nom {
  color: var(--texte);
  font-weight: 600;
}

.amis-item.admin .amis-nom {
  color: #d2973a;
}

.amis-jeu {
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #6ee7b7;
}

.amis-etat {
  font-size: 0.68rem;
  color: var(--texte-faible);
  flex-shrink: 0;
}

.amis-menu {
  display: flex;
  gap: 6px;
  padding: 2px 16px 10px 35px;
  background: var(--surface-2);
}

.amis-action {
  background: var(--surface-1);
  border: 1px solid var(--line-forte);
  color: var(--texte);
  font-size: 0.74rem;
  font-weight: 600;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.amis-action:hover {
  opacity: 0.85;
}

.amis-action:disabled {
  opacity: 0.5;
  cursor: default;
}

.amis-action.principale {
  background: var(--accent-reseau);
  border-color: transparent;
  color: #fff;
}

.amis-action.danger {
  color: #d07070;
}


.amis-menu-groupe {
  padding: 8px 16px 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--texte-doux);
}

.amis-menu-choix {
  display: block;
  width: calc(100% - 32px);
  margin: 6px 16px 0;
  padding: 9px 12px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  color: var(--texte);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}

.amis-menu-choix:hover:not(:disabled) {
  border-color: var(--accent-reseau);
}

.amis-menu-choix:disabled {
  opacity: 0.55;
  cursor: default;
}

.amis-menu-pied {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 6px;
}

.amis-vide {
  padding: 6px 16px 8px;
  font-size: 0.78rem;
  color: var(--texte-faible);
}


.amis-sugg {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

.amis-sugg-carte {
  pointer-events: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: var(--surface-1);
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--texte-doux);
  animation: amis-sugg-entree 0.25s ease-out;
}

.amis-sugg-texte strong {
  color: var(--texte);
}

.amis-sugg-ajouter {
  background: var(--accent-reseau);
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.amis-sugg-ajouter:disabled {
  opacity: 0.5;
}

.amis-sugg-fermer {
  background: none;
  border: none;
  color: var(--texte-faible);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.amis-sugg-fermer:hover {
  color: var(--texte);
}


.amis-inv-popup {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9600;
  width: min(420px, calc(100vw - 32px));
  background: var(--surface-1);
  border: 1px solid var(--accent-reseau);
  border-radius: 10px;
  padding: 14px 40px 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-family: 'Inter', sans-serif;
  color: var(--texte-doux);
  font-size: 0.88rem;
  animation: amis-inv-entree 0.25s ease-out;
}


@keyframes amis-inv-entree {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.amis-inv-texte strong {
  color: var(--texte);
}

.amis-inv-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.amis-inv-fermer {
  position: absolute;
  top: 8px;
  right: 10px;
}


.amis-inv-popup.mp-annonce-admin {
  
  z-index: 10100;
  
  border: 0;
  padding: 15px 41px 15px 17px;
  background: #6b5225;
  overflow: hidden;
  
  top: 40%;
  transform: translate(-50%, -50%);
  animation-name: mp-annonce-entree;
}


.amis-inv-popup.mp-annonce-admin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  padding-bottom: 150%;
  margin: -75% 0 0 -75%;
  background: conic-gradient(from 0deg, transparent 0 58%, #d2973a 78%, #ffe9b0 92%, #d2973a 100%);
  animation: mp-annonce-tour 3s linear infinite;
  will-change: transform;
}

.amis-inv-popup.mp-annonce-admin::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background: var(--surface-1);
}

.amis-inv-popup.mp-annonce-admin > * {
  z-index: 1;
}

.mp-annonce-admin .amis-inv-texte,
.mp-annonce-admin .amis-inv-actions {
  position: relative;
}

@keyframes mp-annonce-tour {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .amis-inv-popup.mp-annonce-admin { background: #d2973a; }
  .amis-inv-popup.mp-annonce-admin::before { display: none; }
}


.mp-overlay.mp-devant {
  z-index: 10060;
}


@keyframes mp-annonce-entree {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 8px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.mp-invitation .amis-nom {
  white-space: normal;
  font-size: 0.8rem;
}

.mp-invitation .amis-nom strong {
  color: var(--texte);
}

@keyframes amis-sugg-entree {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .amis-sugg-carte, .amis-inv-popup, .amis-inv-popup.mp-annonce-admin { animation: none; }
}

@media (max-width: 480px) {
  .amis-sugg { left: 8px; bottom: 8px; max-width: calc(100vw - 16px); }
}

.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 4;
  }

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


.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;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.push-popup-overlay.push-popup-visible {
  opacity: 1;
}

.push-popup {
  background: var(--surface-1, #1b1e25);
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  padding: 16px 20px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.push-popup-visible .push-popup {
  pointer-events: auto;
}

.push-popup-visible .push-popup {
  transform: translateY(0);
}

.push-popup-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.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: 12px;
}

.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-doux);
}

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