@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@600;700&family=Poppins:wght@300;400;600;700&display=swap');

/* masquer le mini‐panel de connexion/notif mobile en desktop */
.nav-user-mobile {
  display: none;
}

/* ========== MAIN HEADER ========== */
.main-header {
  /*width: 100vw;*/
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(20,20,40,0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* ========== DESKTOP HEADER CONTENT ========== */
.header-content {
  margin: 0 auto;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* LOGO */
.logo {
  justify-self: start;
  display: flex;
  align-items: center;
}
.logo-image {
  height: 90px;
  object-fit: contain;
}

/* NAV MENU */
.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 40px;
}
.nav-links ul {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links ul li a {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links ul li a:hover {
  color: #9146ff;
}

/* USER AREA */
.user-area {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 15px;
}
.profile-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #9146ff;
  object-fit: cover;
}
.login-btn {
  background-color: #9146ff;
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s;
  justify-content: center;
}
.login-btn:hover {
  background-color: #772ce8;
}

/* BURGER BUTTON */
.burger-btn {
  width: 30px;
  height: 27px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.burger-btn span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger-btn.open span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.burger-btn.open span:nth-child(2) {
  opacity: 0;
}
.burger-btn.open span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* GUIDE BUTTON */
.guide-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #9146ff;
  color: #fff;
  font-weight: bold;
  padding: 14px 22px;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.2s;
}
.guide-button:hover {
  transform: scale(1.05);
}

/* OVERLAY */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1050;
}
.overlay.active {
  display: block;
}

/* MODAL (GUIDE) */
.guide-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e2e;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1100;
  max-width: 600px;
  width: 90%;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.guide-modal.open {
  display: block;
}

/* TITRE & TEXTE */
.guide-modal h2 {
  color: #ffd700;
  font-family: 'Antonio', sans-serif;
  margin-bottom: 15px;
}

/* SLIDES */
.slides-container {
  position: relative;
}
.slide {
  display: none;
  text-align: center;
}
.slide.active {
  display: block;
}
.slide-image {
  max-width: 100%;
  margin: 15px 0;
}

/* CONTROLS */
.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.prev-btn,
.next-btn {
  background-color: #9146ff;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.prev-btn:hover,
.next-btn:hover {
  background-color: #772ce8;
}
.prev-btn:disabled,
.next-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.slide-counter {
  font-weight: 600;
}

/* CLOSE BUTTON */
.close-btn {
  display: block;
  margin: 20px auto 0;
  background-color: #9146ff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.close-btn:hover {
  background-color: #772ce8;
}

/* OPTIONNEL : bloquer le scroll du body quand modal ouverte */
.modal-open {
  overflow: hidden;
}


/* NOTIFICATIONS DROPDOWN */
.notif-container {
  position: relative;
  margin-right: 1rem;
}
.notif-bell {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  position: relative;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  background: #e3342f;
  color: #fff;
  font-size: 0.7rem;
  border-radius: 50%;
  padding: 3px 7px;
}
.notif-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  width: 300px;
  max-height: 400px;
  background: #141429;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 1000;
  animation: fadeIn 0.25s ease-out both;
}
.notif-container.open .notif-dropdown {
  display: block;
}
.notif-header {
  padding: 0.75rem 1rem;
  font-family: 'Antonio', sans-serif;
  color: #69b3ff;
  text-transform: uppercase;
  border-bottom: 1px solid #2c2c4a;
}
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}
.notif-item {
  border-bottom: 1px solid #2c2c4a;
}
.notif-item.unread {
  background: rgba(145,70,255,0.1);
}
.notif-link {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  color: #fff;
  text-decoration: none;
}
.notif-message {
  font-size: 0.9rem;
}
.notif-time {
  font-size: 0.75rem;
  color: #aaa;
}
.notif-see-all {
  display: block;
  padding: 0.6rem;
  text-align: center;
  background: #1a1a3a;
  color: #69b3ff;
  text-decoration: none;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1164px) {
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .burger-btn {
    display: flex;
    border: none;
    background-color: transparent;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: rgba(20,20,40,0.95);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    justify-content: center;
    text-align: center;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links ul {
    flex-direction: column;
    gap: 15px;
    margin: 0;
    align-items: center;
  }

  .user-area {
    display: none;
  }

  .nav-user-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    width: 100%;
  }
  .login-btn-mobile {
    width: 80%;
    max-width: 300px;
  }
  .user-avatar-mobile {
    display: block;
  }

  .nav-user-mobile .notif-container {
    margin: 20px 0;
    width: 100%;
  }

  .nav-user-mobile .notif-dropdown {
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    max-height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: auto;
    margin-top: 8px;
  }

  .nav-user-mobile .notif-list {
    max-height: 200px;
    overflow-y: auto;
  }
}



/* ====== Patch Note Modal ====== */
.modal-patch-note {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999; 
}

.modal-patch-note.hidden {
  display: none;
}

.modal-patch-note__content {
  background: #1a1a2e; 
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.modal-patch-note__title {
  margin-top: 0;
  font-size: 1.5rem;
  color: #fff;
}

.modal-patch-note__body {
  margin: 1rem 0;
  color: #ddd;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-patch-note__body li {
    padding-bottom: 20px;
}

.modal-patch-note__close {
  padding: 0.5rem 1rem;
  background: #9146FF; 
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.modal-patch-note__close:hover {
  background: #772ce8;
}


.support-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 3.5rem;           /* cercle de 3.5rem */
  height: 3.5rem;
  background: #ff6f61;
  border-radius: 50%;
  display: flex;
  align-items: center;     /* centre vertical */
  justify-content: center; /* centre horizontal */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform .2s;
  z-index: 999;
}

.support-btn:hover {
  transform: scale(1.1);
}

.support-icon {
  width: 1.75rem;  
  height: auto;    /* conserve les proportions */
  display: block;
}


.lang-switcher,
.lang-switcher-mobile {
  margin-left: 1rem;
}
.lang-switcher a,
.lang-switcher-mobile a {
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  background-color: #2f2f3f;
  transition: background 0.2s;
}
.lang-switcher a:hover,
.lang-switcher-mobile a:hover {
  background-color: #44445a;
}

.lang-toggle-form {
  display: flex;
  align-items: center;
}

.lang-toggle {
  background: none;
  border: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.2s;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
}

.lang-toggle:hover {
  opacity: 0.8;
  background-color: rgba(255, 255, 255, 0.05);
}

.lang-flag {
  font-size: 1.1rem;
}

.lang-label {
  font-weight: 500;
}

/* ====== User Search (Header) ====== */
.nm-user-search {
  position: relative;
  width: 260px;
  max-width: 42vw;
  margin-left: 1rem;
  flex: 0 0 auto;
}
.nm-user-search input[type="search"] {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 0 12px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.nm-user-search input[type="search"]::placeholder { color: rgba(255,255,255,.55); }
.nm-user-search input[type="search"]:focus {
  background: rgba(255,255,255,.1);
  border-color: rgba(145,70,255,.6);
  box-shadow: 0 0 0 3px rgba(145,70,255,.18);
}

.nm-user-search__results {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 40;
  background: #121422;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  overflow: hidden;
  max-height: 60vh;
  overflow-y: auto;
}
.nm-user-search__results[hidden] { display: none; }

.nm-user-search__item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  color: #fff;
  transition: background .15s ease-in-out;
}
.nm-user-search__item:hover { background: rgba(255,255,255,.05); }
.nm-user-search__item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nm-user-search__name { font-weight: 600; }
.nm-user-search__handle { opacity: .7; font-size: .9em; }

/* ������ Visibilit�� desktop vs mobile ������ */
.nm-user-search--mobile { display: none; }         /* cach�� par d��faut */
@media (max-width: 1164px) {
  .user-area .nm-user-search { display: none; }    /* cache le champ desktop */
  .nm-user-search--mobile { display: block; }      /* montre le champ mobile dans le burger */
  .nav-user-mobile .nm-user-search { width: 100%; max-width: none; margin: 12px 0; }
  .nav-user-mobile .nm-user-search__results {      /* dropdown int��gr�� dans le panneau mobile */
    position: static;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: none;
  }
  .nm-user-search input[type="search"] {
  width: 50%;

}
}


/* Suggestions: ��tat actif, vide & chargement */
.nm-user-search__item.nm-user-search__item--active { background: rgba(145,70,255,.18); }
.nm-user-search__empty,
.nm-user-search__spinner {
  padding: 10px 12px;
  font-size: .95em;
  opacity: .75;
}

.nm-user-search__results{
  z-index: 1200; /* au-dessus du header fix�� */
}



.onboarding-floating-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #9146ff;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform .2s;
}
.onboarding-floating-btn:hover {
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .onboarding-floating-btn {
    bottom: 14px;
    right: 14px;
  }
}

/* ============================
   Onboarding overlay global
   ============================ */
#nm-onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* sombre mais pas flou */
  z-index: 9999;                   /* au-dessus du header */
  display: none;
}

/* ============================
   Spotlight (cadre autour de l'élément)
   ============================ */
#nm-onboarding-spotlight {
  position: fixed;
  border: 2px solid #ffffff;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55); /* assombrit le reste */
  pointer-events: none;
  z-index: 10001; /* au-dessus de l'overlay */
  display: none;
  transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}

/* ============================
   Tooltip (la carte de texte)
   ============================ */
#nm-onboarding-tooltip {
  position: fixed;
  background: #14142a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 18px 56px;
  color: #fff;
  max-width: 340px;
  width: min(340px, calc(100vw - 32px)); /* évite le crop à droite */
  z-index: 10002;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: visible; /* évite que les boutons soient coupés */
}

/* Titre de la tooltip */
#nm-onboarding-tooltip h3,
#nm-onboarding-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Texte */
#nm-onboarding-tooltip p,
#nm-onboarding-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

/* Zone des boutons dans la tooltip */
#nm-onboarding-tooltip > div:last-child,
#nm-onboarding-tooltip .controls {
  position: absolute;
  bottom: 12px;
  right: 14px;
}

/* Boutons de navigation */
#nm-onboarding-prev,
#nm-onboarding-next {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  transition: background .15s ease;
}

#nm-onboarding-prev:hover {
  background: rgba(255, 255, 255, 0.12);
}

#nm-onboarding-next {
  background: #9146ff;
  margin-left: 6px;
}

#nm-onboarding-next:hover {
  background: #7f33f6;
}

/* Petite flèche décorative (optionnel) */
#nm-onboarding-tooltip::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: #14142a;
  top: -16px;
  left: 24px;
  filter: drop-shadow(0 -2px 3px rgba(0,0,0,0.25));
}

/* ============================
   Bouton flottant "guide"
   ============================ */
.onboarding-floating-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: auto;
  min-width: 140px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: #9146ff;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 5000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  padding: 0 16px;
}

.onboarding-floating-btn:hover {
  background: #7b34db;
}

.onboarding-floating-btn::after {
  content: "❔";
  font-size: 1rem;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 640px) {
  #nm-onboarding-tooltip {
    left: 50% !important;
    transform: translateX(-50%);
    bottom: 16px !important;
    top: auto !important;
  }
  #nm-onboarding-tooltip::after {
    display: none;
  }
  .onboarding-floating-btn {
    right: 14px;
    bottom: 14px;
    min-width: 120px;
  }
}


/* Canvas neige */
#snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50; 
}

/* Bouton toggle neige */
.toggle-snow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 30, 0.6);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.toggle-snow-btn:hover {
  background: rgba(40, 40, 90, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(200, 230, 255, 0.3);
}

.toggle-snow-btn.is-active {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(180, 220, 255, 0.6);
}

.toggle-snow-label {
  white-space: nowrap;
}


@media (max-width: 480px) {
  .toggle-snow-label {
    display: none;
  }
}


.main-header {
  position: relative;
  z-index: 20;
}

/* Neige en bas du header uniquement quand la neige est active */
.snow-active .main-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;      
  height: 60px;     
  pointer-events: none;
  z-index: 1;

  background-image: url("/uploads/snow-header.png");
  background-repeat: repeat-x;
  background-size: auto 60px; 
}

body.snow-active .main-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;         
  height: 55px;     
  pointer-events: none;
  z-index: 1;

  background-image: url("/uploads/guirlande.png");
  background-repeat: repeat-x;
  background-size: auto 55px;  
}

.destiny-well-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 9.5rem;
  z-index: 900;

  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;

  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;

  background: radial-gradient(circle at 20% 0%, #ff9bff 0, #8b5cf6 45%, #1f114b 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 10px 25px rgba(0, 0, 0, 0.45);

  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.25s ease;
}


.destiny-well-btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.22), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}


.destiny-well-btn::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 180deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.45) 80deg,
    transparent 160deg
  );
  opacity: 0;
  transform: rotate(0deg);
  pointer-events: none;
  animation: destiny-glow 3.6s linear infinite;
}


.destiny-orb {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #ffe082, #f97316);
  box-shadow:
    0 0 10px rgba(255, 193, 7, 0.9),
    0 0 22px rgba(255, 214, 0, 0.6);
}

.destiny-orb::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: inherit;
  background: radial-gradient(circle, #0b0618 0, #000 70%);
}

.destiny-label {
  position: relative;
  white-space: nowrap;
}


.destiny-well-btn:hover,
.destiny-well-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.6);
}

.destiny-well-btn:hover::after,
.destiny-well-btn:focus-visible::after {
  opacity: 0.7;
}


.destiny-well-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 7px 18px rgba(0, 0, 0, 0.55);
}

/* animation halo */
@keyframes destiny-glow {
  0% {
    transform: rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  40% {
    opacity: 0;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0;
  }
}


@media (max-width: 600px) {
  .destiny-well-btn {
    right: 1rem;
    bottom: 8.5rem;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    gap: 0.45rem;
  }

  .destiny-orb {
    width: 1.2rem;
    height: 1.2rem;
  }
}

