/* === AUTH AREA === */

#auth-area,
#auth-area * {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* User Badge */
#auth-area {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 9999;
  width: fit-content;
}

/* Boutons inscription & connexion */
#guest-buttons {
  display: flex;
  flex-direction: column; /* ← empilement vertical */
  gap: 10px;
  align-items: flex-end; /* ← alignés à droite */
  margin-right: -3px;
}

.page-accordium #guest-buttons {
  margin-top: 0px;
}

/* Badge utilisateur */
#user-badge-btn {
  margin-top: -93px; /* ← valeur home */
  margin-right: 5px;
}

#user-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* === BOUTONS AUTH === */
.auth-btn {
  padding: 9px 19px;
  border-radius: 20px;
  border: 1.9px solid rgba(255,255,255,0.5);
  background: #828a84;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 0px 6px rgba(0,0,0,0.1);
  transition: background 0.2s ease, transform 0.15s ease;
  font-family: "Inter", system-ui, sans-serif;
}

.auth-btn:hover {
  background: #98a19a;
  color: white;
  border: 1.9px solid rgba(255,255,255,0.9);
  transform: scale(1.1);
}

.auth-btn:active {
  transform: scale(1);
}

/* === BADGE UTILISATEUR === */
#user-badge-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7.5px 8.8px;
  padding-left: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1.9px solid rgba(255,255,255,0.5);
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0px 6px rgba(0,0,0,0.1);
  transition: background 0.2s ease, transform 0.15s ease, border 0.2s ease;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

#user-badge-btn:hover {
  background: rgba(255,255,255,0.25);
  border: 1.9px solid rgba(255,255,255,0.9);
  transform: scale(1.07);
}

#user-badge-btn:active {
  transform: scale(1);
}

.points-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffd581;
  color: black;
  border-radius: 20px;
  padding: 4px 10px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.separator {
  opacity: 0.6;
}

/* === MENU DÉROULANT === */
#user-menu {
  position: absolute;
  top: calc(100% + -37px);
  margin-right: 1px;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  width: fit-content;
  min-width: 0;
  z-index: 100;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: "Inter", system-ui, sans-serif;
  white-space: nowrap;
  line-height: 1;
}
.user-menu-item:first-child {
  transform: translateY(3.5px);
}

.user-menu-item:last-child {
  transform: translateY(-3.5px);
}

#user-menu.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.user-menu-item:hover {
  color: #dcff8f;
}

/* === AUTH MODAL === */
#auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.33s ease;
  backdrop-filter: blur(0px);
  pointer-events: none;
}

#auth-modal:not(.hidden) {
  opacity: 1;
  backdrop-filter: blur(3.3px);
  pointer-events: all;
}

#auth-modal:not(.hidden) .auth-modal-content {
  transform: scale(1);
  opacity: 1;
}

#auth-modal:not(.hidden) #auth-modal-body {
  transform: translateY(0);
}

.auth-modal-content {
  background: #1e1e1e;
  color: white;
  padding: 40px;
  border-radius: 18px;
  width: 420px;
  max-width: 90%;
  position: relative;
  text-align: center;
  transform: scale(0.93);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-family: "Inter", system-ui, sans-serif;
}

#auth-modal-body {
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.auth-close-modal {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
}

.auth-close-modal:hover {
  opacity: 1;
}

.auth-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.auth-modal-title {
  margin-bottom: 24px;
}
.auth-input {
  display: block;
  box-sizing: border-box !important;
width: 100%;
padding: 10px 14px;
margin-bottom: 14px;
background: rgba(255,255,255,0.07);
border: 1.4px solid rgba(255,255,255,0.2);
border-radius: 10px;
color: #fff;
font-family: "Inter", system-ui, sans-serif;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
}
.auth-input:focus {
  border-color: rgba(255,255,255,0.5);
}

.auth-form-error {
  color: #ff6b6b;
  font-size: 14px;
  margin: 4px 0 4px 0;
  min-height: 0;
}

.auth-signup-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
}
.auth-signup-link {
  color: #dcff8f;
  font-weight: 600;
  text-decoration: none;
}
.auth-signup-link:hover {
  text-decoration: underline;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}


/* === NOTIFICATIONS TOAST === */
#toast-container {
  position: fixed;
  top: 73.7px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 999999;
  pointer-events: none;
}
.toast {
  background: #2a2e2a;
  color: #e4ff9e;
  padding: 14px 20px;
  border-radius: 1000px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border: 1.9px solid rgba(220,255,143,1);
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", system-ui, sans-serif;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.toast.toast-points {
  color: #ffec8c;
  border-color: rgb(255, 240, 143);
}

/* === RS === */

/* Social links — masqué par défaut */
.social-links {
  display: none;
  flex-direction: column;
  gap: 18px;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

/* Visible uniquement sur l'accordium */
.page-accordium .social-links {
  display: flex;
}

.page-inscription .social-links {
  display: flex;
}

.social-icon {
  width: 40px;
  height: 40px;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: block;
}

.social-icon:hover {
  opacity: 0.9;
  transform: scale(1.15);
}

.auth-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}



.legal-footer {
  width: 100%;
  text-align: center;
  padding: 24px 0 20px;
  font-family: "Inter", system-ui, sans-serif;
}
.legal-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 8px;
}
.legal-links-row a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.legal-links-row a:hover { color: #dcff8f; }
.legal-links-row span {
  color: rgba(220,255,143,0.5);
  font-size: 10px;
}
.copyright-footer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}


/* Échelle de l'interface auth sur petits écrans (utilisée par le CSS de chaque page) */
:root { --ui-scale: 0.7; }