/* ========== GLOBAL STYLES (tous écrans) ========== */
.mobile-dock { display: none !important; }
.mobile-only { display: none !important; }

/* ========== CURSEUR ========== */
body, html {
  cursor: url('/assets/cursor.png') 0 0, auto; /* Ajuste 16 16 selon ton point chaud (hotspot) */
}

/* 2. Curseur hover/interactif (liens, boutons, éléments interactifs) */
a, a.btn, button, .btn, .btn-twitch, .replay-button, .start-btn, .pagination-link, .btn-profile, [role="button"], input[type="button"], input[type="submit"], label, select, textarea, summary, .clickable, [tabindex]:not([tabindex="-1"]) {
  cursor: url('/assets/cursor-hover.png') 0 0, pointer;
}

/* 3. Curseur clic actif (quand on clique sur un élément interactif) */
a:active, button:active, a.btn:active, [role="button"]:active, input[type="button"]:active, input[type="submit"]:active, label:active, select:active, textarea:active, summary:active, .clickable:active, [tabindex]:active {
  cursor: url('/assets/cursor-click.png') 0 0, pointer;
}

/* 4. (Optionnel) Curseur sur champs texte pour bien garder le I-beam */
input[type="text"], input[type="password"], input[type="email"], input[type="search"], textarea {
  cursor: text;
}

/* ========== FOND & BODY ========== */
html, body {
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
  color: #fff4e0;
  background: #181928;
  box-sizing: border-box;
  overflow-x: hidden !important;
  background-image:
    linear-gradient(120deg, #25213c 0%, #181928 90%),
    radial-gradient(circle at 60% 40%, #302a50a8 0%, transparent 80%),
    radial-gradient(circle at 10% 80%, #4a1e34b5 0%, transparent 75%);
  background-size: 170% 170%, 120% 120%, 200% 200%;
  background-repeat: no-repeat;
  animation:
    bg-move1 11s ease-in-out infinite alternate,
    bg-move2 14s ease-in-out infinite alternate;
}
@keyframes bg-move1 {
  0%   { background-position: 0% 80%, 60% 40%, 10% 80%; }
  100% { background-position: 100% 30%, 80% 60%, 60% 30%; }
}
@keyframes bg-move2 {
  0%,100% { background-size: 170% 170%, 120% 120%, 200% 200%; }
  50%     { background-size: 140% 140%, 160% 160%, 220% 220%; }
}

/* ========== SAFE CONTAINERS ========== */
.section-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2vw 6vh 2vw;
  width: 100%;
}

/* ========== HEADER, FOOTER, LOGO & MENU ========== */
header, .header {
  position: sticky;
  top: 10px;
  z-index: 99;
  margin-top: 3rem;
}

footer {
    text-align: center;
    font-size: 0.7rem;
    font-style: italic;
    padding-top: 2rem;
    padding-bottom: 2rem;
    opacity: 0.8;
}

.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2em;
  min-height: 52px;
  position: relative;
}
.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
      padding-top: 6px;
    padding-bottom: 8px;
}
.logo-wrapper img {
  max-height: 4rem;
  min-height: 2rem;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 2px 12px #00000075);
  animation: logo-balance 3.2s cubic-bezier(.52,1.8,.38,1.05) infinite alternate;
}
@keyframes logo-balance {
  0%   { transform: rotate(-3deg) scale(1);}
  50%  { transform: rotate(4deg) scale(1.04);}
  100% { transform: rotate(-3deg) scale(1);}
}
/* Boutons flottants */
.floating-btn {
  position: absolute;
  top: 11px;
  background: rgba(20,20,20,0.65);
  border: none;
  color: #fff;
  font-size: 1.35em;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  transition: background 0.17s, color 0.13s, transform 0.15s;
  outline: none;
  user-select: none;
}
.floating-btn.left { left: 16px; }
.floating-btn.right { right: 16px; }
.floating-btn:active,
.floating-btn:focus {
  background: rgba(30,30,30,0.85);
  color: #fff;
  transform: scale(1.06);
}
.floating-btn i {
  font-size: 1.16em;
}

/* ========== MENU PC & MOBILE DOCK ========== */
.desktop-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  padding-top: 2rem;
  font-size: 1.13em;
  width: 100%;
}
.desktop-menu a {
  color: #ffffff;
  text-decoration: none !important;
  padding: 0.19em 1.1em;
  border-radius: 9px;
  transition: background 0.18s, color 0.16s, transform 0.15s;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.33em;
  box-shadow: none;
  border: none;
  background: none;
}
.desktop-menu a:hover,
.desktop-menu a:focus {
  background: #3e37a933;
  color: #facc15;
  text-decoration: none;
  transform: scale(1.09);
}

/* Menu dock mobile */
.mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: rgb(24 25 40 / 88%);
    box-shadow: 0 -3px 18px #181928ba;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    border-top: 2px solid #232239;
    height: 60px;
    font-size: 0.9rem;
    padding-bottom: 5rem;
    padding-top: 2.5rem;
    user-select: none;
    backdrop-filter: blur(2px);
}
.mobile-dock a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #b6baff;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 1.14em;
  transition: color 0.15s, background 0.13s, transform 0.14s;
  padding: 0.24em 0 0.09em 0;
  border-radius: 8px;
  outline: none;
  border: none;
  background: none;
  box-shadow: none;
  gap: 0.08em;
}
.mobile-dock a span {
  font-size: 0.81em;
  margin-top: 0.09em;
  letter-spacing: 0.01em;
  line-height: 1.11em;
  font-weight: 500;
}
.mobile-dock a:active,
.mobile-dock a:focus,
.mobile-dock a:hover {
  color: #facc15 !important;
  background: #3e37a91c;
  transform: scale(1.07);
}
.mobile-dock i {
  font-size: 1.55em;
  margin-bottom: 0.01em;
}

/* ========== MAIN CONTENT LAYOUT ========== */
.main-content {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

/* ========== BOXES ========== */
.box {
    min-width: 20%;
    margin: 1rem;
    background: rgba(34, 32, 54, 0.55);
    box-shadow: 0 4px 10px #00000030;
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 1rem 1rem 2rem 1rem;
    overflow: hidden;
    animation: appear-center 0.8s cubic-bezier(.22,1.2,.3,1.1);
    transition: box-shadow 0.21s, background 0.19s, transform 0.15s;
    border: 1.8px solid #28294077;
    margin-bottom: 1.5em;
}
@keyframes appear-center {
  from { opacity: 0; transform: translateY(60px) scale(0.97);}
  to   { opacity: 1; transform: none;}
}
.cat {
  width: 100%;
  max-width: 550px;
  margin: 0 auto 1.3em auto;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 40px;
  font-size: 0.8rem;
  padding: 1rem;
  overflow: hidden;
  animation: appear-center 0.8s cubic-bezier(.22,1.2,.3,1.1);
  transition: box-shadow 0.21s, background 0.19s, transform 0.15s;
  border: none;
  margin-bottom: 1.5em;
  text-align: left;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: center;
        align-items: flex-start;
}
/* ========== TITRES & SOUS-TITRES ========== */
.box h2, .cat h2 {
  margin-bottom: 0.55em;
  color: #facc15;
  font-weight: 800;
  font-size: 1.15em;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px #29293c2c;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========== LIENS & BOUTONS UNIFORMES ========== */
a, a:active, a:hover {
  color: #ffd97a;
  text-decoration: none !important;
  border: none;
  background: none;
  outline: none;
  font-weight: 500;
  transition: color 0.14s, background 0.13s, box-shadow 0.15s;
  box-shadow: none;
}
a:visited { color: #ffffff; }
a:focus, a:active { color: #facc15; }
.btn, .btn-twitch, .replay-button, .start-btn, .pagination-link, .btn-profile a, .btn-profile button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
  font-size: 1em;
  padding: 0.63em 1.2em;
  margin: 0.1em 0.5em 0.1em 0;
  border: none;
  border-radius: 17px;
  background: linear-gradient(90deg, #3e37a9 65%, #70d1c2 140%);
  color: #fff4e0;
  font-weight: 700;
  transition: background 0.18s, color 0.14s, transform 0.13s, box-shadow 0.15s;
  box-shadow: 0 2.5px 11px #23223933;
  outline: none;
  text-decoration: none !important;
  user-select: none;
  touch-action: manipulation;
}
.btn-twitch {
  background: linear-gradient(90deg, #9146ff 65%, #6441a5 140%);
  color: #fff4e0 !important;
}
.btn:active,
.btn-twitch:active,
.replay-button:active,
.start-btn:active,
.pagination-link:active {
  background: linear-gradient(90deg, #70d1c2 30%, #3e37a9 180%);
  color: #222;
  transform: scale(0.98);
}
.btn:hover,
.btn-twitch:hover,
.replay-button:hover,
.start-btn:hover,
.pagination-link:hover {
  background: linear-gradient(90deg, #70d1c2 60%, #3e37a9 120%);
  color: #fffbe0;
  box-shadow: 0 5px 16px #23223942;
  transform: scale(1.05);
}
.btn:focus-visible { outline: 2.5px solid #facc15; }
.pseudo-link, .pseudo-link:visited, .pseudo-link:active, .pseudo-link:hover {
  color: #facc15;
  text-decoration: none !important;
  font-size: 1.08em;
  font-weight: 600;
}
button:hover {
  color: #facc15;
  transform: scale(1.2) ;
}

/* ========== AVATARS, IMAGES, GRIDS ========== */
.profile-avatar, #avatar-img {
    width: 80px;
    height: 80px;
  border-radius: 100%;
  object-fit: cover;
  box-shadow: 0 1.5px 7px #2e224a60;
  border: 2.5px solid #2322399a;
  background: #23223933;
  transition: opacity 0.19s, transform 0.16s, box-shadow 0.13s;
}
.profile-avatar:hover,
#avatar-img:hover {
  opacity: 0.55;
  transform: scale(1.12);
  box-shadow: 0 4px 16px #70d1c277;
}
.profile-info {
    gap: 1rem;
    display: flex;
    flex-direction: row;
    padding-left: 1rem;
    padding-top: 1rem;
}
.profile-right {
    padding-top: 18px;
    line-height: 0px;
    transform: scale(1.2);
}
.xp-bar-container {
  padding-bottom: 2rem;
}
.btn-profile {
  text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: stretch;
}
form {
  font-family: 'Lexend', sans-serif;
}
.allmodes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
/* Grille de trophées, responsive */
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  gap: 0.89em;
  margin: 0 auto;
  max-width: 450px;
  width: 100%;
}
.trophy-item {
  text-align: center;
  background: none;
  border: none;
  padding: 0;
  opacity: 0.28;
  transition: opacity 0.15s, transform 0.13s;
  position: relative;
  border-radius: 12px;
}
.trophy-item.unlocked {
  opacity: 1;
  transform: scale(1.07);
  box-shadow: 0 0 8px #facc1532;
  animation: unlockPop 0.33s;
}
@keyframes unlockPop {
  0% { transform: scale(0.85);}
  60% { transform: scale(1.11);}
  100% { transform: scale(1);}
}
.trophy-item img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 8px #18192860;
  margin-bottom: 0.15em;
  background: #232239;
  transition: transform 0.13s;
}
.trophy-item:focus { outline: 2px solid #4571b3; }

/* ========== TABLES & STATS ========== */
.stats-box table th,
.stats-box table td {
  padding: 0.15em 0.5em;
  font-size: 0.97em;
  color: #ffd97a;
}
.stats-box table th { font-weight: 600; color: #fffbe0;}
.stats-box table { width: 100%; border-collapse: collapse; }

/* ========== FEEDBACK, ANIMATIONS & DIVERS ========== */
.box .feedback, .feedback, .cat {
  font-size: 1.17em;
  margin: 1.1em 0 0.5em 0;
  font-weight: bold;
  color: #fa74a2;
  text-shadow: 0 2px 7px #29293c77;
  animation: pop-in 0.32s;
  text-align: center;
  min-height: 1.5em;
}
@keyframes pop-in {
  from { transform: scale(0.6); opacity: 0;}
  to   { transform: scale(1); opacity: 1;}
}

/* ================= PASS DE SAISON / FRIZE / PALIERS ================== */

/* Conteneur général du pass */
.main-pass {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem 2.5rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  box-sizing: border-box;
}

/* 1. XP BAR */
.xp-bar-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.2em 0 0.7em 0;
  padding-bottom: 0.7em;
}
.xp-bar-bg {
  width: 340px;
  max-width: 95vw;
  background: rgba(255,255,255,0.15);
  border-radius: 17px;
  height: 28px;
  position: relative;
  overflow: hidden;
  border: 2.2px solid #e1e2ff22;
  box-shadow: 0 3px 18px #23223929, 0 1.5px 7px #6fa4e820;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.xp-bar-fill {
  height: 100%;
  border-radius: 17px 0 0 17px;
  transition: width 0.6s cubic-bezier(.42,1.8,.22,1.1), background 0.23s;
  background: linear-gradient(90deg, #ffe97c 60%, #ffd34b 80%, #ffa217 120%);
  box-shadow: 0 2px 10px #facc1539;
}
.xp-bar-label {
  position: absolute;
  width: 100%;
  left: 0; top: 0;
  text-align: center;
  color: #fff4e0;
  font-size: 1.03em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px #29293c2a;
  line-height: 28px;
  pointer-events: none;
  user-select: none;
}

/* 2. FRIZE (carousel paliers) */
.pass-frise {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding: 0 52px 0 52px;
  overflow-x: auto;
  scroll-behavior: smooth;
  min-height: 172px;
  background: none;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

/* 2.1. Palier individuel */
.palier {
  background: linear-gradient(140deg, #292946 77%, #16182a 120%);
  border-radius: 16px;
  min-width: 120px;
  max-width: 132px;
  min-height: 118px;
  box-shadow: 0 2.5px 15px #6467b93a, 0 1.5px 8px #3e37a935;
  padding: 1.1em 1.05em 0.6em 1.05em;
  text-align: center;
  color: #ffe7ae;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.37em;
  font-size: 1.08em;
  position: relative;
  border: 2px solid #28294055;
  transition: background 0.18s, transform 0.14s, box-shadow 0.17s;
  opacity: 0.75;
  transform: scale(1);
}
.palier.unlocked {
  background: linear-gradient(135deg, #a7bb3e 5%, #70d1c2 120%);
  color: #232239;
  border: 2.2px solid #ffe97c;
  opacity: 1;
  box-shadow: 0 4px 19px #a7bb3e55, 0 2.5px 10px #ffd34b55;
  animation: palier-pop 0.4s cubic-bezier(.22,1.1,.36,1.3);
  transform: scale(1.045);
}
@keyframes palier-pop {
  0%   { transform: scale(0.88);}
  60%  { transform: scale(1.09);}
  100% { transform: scale(1.045);}
}
.palier .palier-reward {
  font-size: 0.96em;
  margin: 0.42em 0 0.18em 0;
}
.palier .palier-xp {
  color: #ffd97a;
  font-weight: 600;
  font-size: 0.9em;
  opacity: 0.85;
}

/* Barre de progression entre paliers */
.pass-frise-bar {
  width: 30px;
  min-width: 30px;
  height: 7px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffe97c, #ffd34b 80%, #ffa217 120%);
  box-shadow: 0 2px 10px #facc1536;
  margin-bottom: 36px;
  opacity: 0.55;
  transition: background 0.22s, opacity 0.18s;
}

/* Flèches du carousel */
#leftScroll, #rightScroll {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #ffd97a;
  color: #232239;
  font-size: 1.65rem;
  border: none;
  opacity: 0.5;
  border-radius: 20px;
  box-shadow: 0 1px 8px #0003;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s, background 0.16s, transform 0.13s;
  outline: none;
}
#leftScroll { left: 4px;}
#rightScroll { right: 4px;}
#leftScroll:disabled, #rightScroll:disabled {
  opacity: 0.18 !important;
  cursor: not-allowed;
}
#leftScroll:hover:not(:disabled),
#rightScroll:hover:not(:disabled) {
  opacity: 0.92;
  background: #ffe97c;
  transform: scale(1.13);
}

/* 3. POPUP GAINS NIVEAU */
#reward-popup {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,32,52,0.79);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}
#reward-popup > div {
  background: #fff4e0;
  color: #292946;
  border-radius: 22px;
  max-width: 94vw;
  min-width: 260px;
  box-shadow: 0 8px 32px #0006, 0 2.5px 11px #23223955;
  padding: 2.3em 2em 1.7em 2em;
  animation: fadeInUp 0.33s cubic-bezier(.22,1.2,.3,1.1);
}
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(70px) scale(0.94);}
  to { opacity:1; transform: none;}
}
#reward-popup h2 {
  color: #6fa4e8;
  font-size: 1.43em;
  margin-bottom: 0.9em;
  text-align: center;
}
#reward-popup ul {
  margin: 0.5em 0 0 0;
  padding: 0;
}
#reward-popup li {
  margin: 0.7em 0;
  padding: 0.8em 1.1em;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2.5px 8px #2322390d;
  color: #292946;
  font-size: 1.09em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
#reward-popup button {
  background: #6fa4e8;
  color: #fff;
  font-weight: 700;
  border-radius: 11px;
  border: none;
  font-size: 1.18em;
  box-shadow: 0 2px 8px #23223923;
  margin: 1.15em auto 0 auto;
  padding: 0.7em 2.2em;
  display: block;
  transition: background 0.17s, color 0.13s, transform 0.13s;
}
#reward-popup button:hover {
  background: #70d1c2;
  color: #232239;
  transform: scale(1.06);
}

/* 4. DÉFIS BOX */
.box .defi-encours {
  background: linear-gradient(98deg, #c4fff3 40%, #fffbe0 150%);
  color: #232239;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1em;
  box-shadow: 0 2.5px 7px #6fa4e842;
  padding: 0.88em 1em;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 1.1em;
}
.box .defi-encours span {
  font-size: 1.23em;
  font-weight: 600;
}
.box .defi-ok {
  background: linear-gradient(97deg, #dbfbe8 50%, #d4ebc4 150%);
  color: #222;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1em;
  box-shadow: 0 2.5px 7px #48b47c40;
  padding: 0.88em 1em;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 1.1em;
}

/* 5. Résumé du pass (infos) */
.box .pass-infos {
  color: #a7bb3e;
  font-weight: 700;
  font-size: 1.09em;
  padding-bottom: 0.5em;
  margin-bottom: 0.2em;
}

/* Responsive paliers/frise */
@media (max-width: 1000px) {
  .main-pass { flex-direction: column; gap: 1.8em;}
  .pass-frise { padding: 0 16px; gap: 9px;}
  .xp-bar-bg { width: 94vw; min-width: 140px;}
  .palier, .palier.unlocked { min-width: 96px; max-width: 108px; font-size: 1em;}
}
@media (max-width: 600px) {
  .main-pass { gap: 0.7em;}
  .pass-frise { padding: 0 0.5em; gap: 7px; min-height: 120px;}
  #leftScroll, #rightScroll { width: 36px; height: 36px; font-size: 1.13em;}
  .xp-bar-bg { height: 22px; min-width: 80px; }
  .xp-bar-label { font-size: 0.96em; line-height: 22px;}
}
/* Liste de défis */
.defibox-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

/* Carte défi principale */
.defibox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1em;
  background: linear-gradient(95deg, #25213c 70%, #232239 130%);
  border-radius: 15px;
  box-shadow: 0 2.5px 14px #29294628;
  border: 1.6px solid #28294077;
  padding: 1em 1.15em 0.95em 1.15em;
  font-size: 1.02em;
  color: #ffe7ae;
  position: relative;
  transition: background 0.19s, box-shadow 0.18s, border 0.14s;
}

.defibox.done {
  background: linear-gradient(97deg, #dbfbe8 75%, #d4ebc4 140%);
  color: #232239;
  border: 2px solid #a7bb3e;
  box-shadow: 0 4px 19px #a7bb3e33;
}

.defibox-main {
  display: flex;
  flex-direction: column;
  gap: 0.23em;
  flex: 1 1 0;
}

.defibox-title {
  font-weight: 700;
  font-size: 1em;
  color: #6fa4e8;
  margin-bottom: 0.08em;
}

.defibox.done .defibox-title {
  color: #45713a;
}

.defibox-desc {
  font-size: 0.96em;
  color: #ffe7ae;
  margin-bottom: 0.16em;
}

.defibox.done .defibox-desc {
  color: #232239;
}

.defibox-status {
  font-size: 0.92em;
  color: #6fa4e8;
  margin-top: 0.11em;
  font-weight: 500;
}
.defibox-xp {
  color: #46b556;
  font-weight: 700;
  margin-left: 0.5em;
}
.defibox.done .defibox-status {
  color: #45713a;
}
.defibox.done .defibox-xp {
  color: #a7bb3e;
}

/* Icône à droite */
.defibox-icon {
  font-size: 1.45em;
  margin-left: 0.8em;
  display: flex;
  align-items: center;
  color: #e789af;
  transition: color 0.2s;
}
.defibox.done .defibox-icon {
  color: #48b47c;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
  .defibox-list {
    gap: 0.6em;
  }
  .defibox {
    padding: 0.7em 0.7em 0.7em 0.7em;
    font-size: 0.98em;
    border-radius: 10px;
  }
  .defibox-title { font-size: 0.98em; }
  .defibox-icon { font-size: 1.12em; }
}
/* ================= FIN PASS DE SAISON ================== */


/* ========== AUTRES ELEMENTS UTILES ========== */
hr { border: none; border-top: 1.7px solid #2322397a; margin: 1.1em 0;}
::-webkit-scrollbar { width: 7px; background: #181928;}
::-webkit-scrollbar-thumb { background: #292946; border-radius: 8px;}

/* ========== INPUTS, TEXTAREAS, SELECT ========== */
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="search"], input[type="url"], input[type="tel"],
textarea, select {
  font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
  font-size: 1em;
  width: 100%;
  max-width: 100%;
  color: #fffbe0;
  background: #232239ec;
  border: 2px solid #282940a5;
  border-radius: 13px;
  padding: 0.85em 1em;
  margin: 0.45em 0 1.1em 0;
  outline: none;
  box-shadow: 0 1.5px 7px #18192855;
  transition: border 0.18s, box-shadow 0.18s, background 0.19s, color 0.18s;
  resize: vertical;
  min-height: 44px;
}
input:focus, textarea:focus, select:focus {
  border-color: #70d1c2;
  background: #25213c;
  color: #fffbe0;
  box-shadow: 0 0 0 2px #70d1c277, 0 1.5px 9px #3e37a966;
}
input:active, textarea:active, select:active {
  border-color: #facc15;
}
input:disabled, textarea:disabled, select:disabled {
  background: #353554;
  color: #c0c0c0;
  border-color: #23223950;
  opacity: 0.75;
  cursor: not-allowed;
}
textarea {
  min-height: 75px;
  max-width: 100%;
  resize: vertical;
}
input[type="search"]::-webkit-search-cancel-button {
  filter: invert(0.8);
}
input::placeholder, textarea::placeholder {
  color: #8e8bba;
  opacity: 0.84;
  font-style: italic;
  font-size: 1em;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background: #232239ec url("data:image/svg+xml,%3Csvg fill='facc15' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 10.84l3.71-3.61a.75.75 0 111.04 1.08l-4.22 4.12a.75.75 0 01-1.04 0L5.23 8.31a.75.75 0 01.02-1.1z'/%3E%3C/svg%3E") no-repeat right 0.9em center/1.2em auto;
  padding-right: 2.5em;
}
select:focus {
  background-color: #23213a;
}
.form-group {
  margin-bottom: 1.35em;
  width: 100%;
  display: flex;
  flex-direction: column;
}
input[type="checkbox"], input[type="radio"] {
  accent-color: #facc15;
  width: 1.18em;
  height: 1.18em;
  margin-right: 0.55em;
  vertical-align: middle;
  border-radius: 4px;
  border: 2px solid #70d1c2;
  box-shadow: 0 1.5px 7px #18192833;
  transition: border 0.15s, box-shadow 0.15s;
  outline: none;
}
input[type="checkbox"]:focus, input[type="radio"]:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 2px #facc1577;
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled {
  opacity: 0.5;
}
label, .label {
  font-size: 1em;
  color: #ffe7ae;
  font-weight: 600;
  margin-bottom: 0.32em;
  user-select: none;
  display: block;
}
input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline-block;
  margin-left: 0.1em;
  margin-bottom: 0;
  font-size: 0.99em;
  font-weight: 500;
  color: #facc15;
}
fieldset {
  border: 1.8px solid #282940bb;
  border-radius: 12px;
  padding: 1.1em 1.1em 0.4em 1.1em;
  margin-bottom: 1.2em;
  background: #2322393c;
}
legend {
  font-size: 1.03em;
  font-weight: bold;
  color: #70d1c2;
  margin-left: 0.6em;
}
ul, ol {
  margin: 0.55em 0 1em 1.5em;
  padding: 0;
  color: #ffe7ae;
  font-size: 1em;
  line-height: 1.45;
  list-style-position: outside;
}
ul li, ol li {
  margin-bottom: 0.37em;
  padding-left: 0.2em;
  transition: color 0.17s, background 0.13s;
}
ul li::marker, ol li::marker {
  color: #facc15;
  font-size: 1.08em;
  font-weight: bold;
}
ul li:hover, ol li:hover {
  color: #70d1c2;
  background: #1819281c;
  border-radius: 8px;
  padding-left: 0.7em;
  transition: background 0.19s, color 0.16s;
}
input, textarea, select {
  scrollbar-width: thin;
  scrollbar-color: #3e37a9 #181928;
}
input::-webkit-scrollbar, textarea::-webkit-scrollbar, select::-webkit-scrollbar {
  width: 7px;
  background: #181928;
}
input::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb, select::-webkit-scrollbar-thumb {
  background: #3e37a9;
  border-radius: 7px;
}

.pop-up {
    display: flex;
    position: fixed;
    text-align: center;
    top: 40%;
    left: 40%;
    max-width: 20%;
    max-width: 20%;
    background: #0e0e1857;
    padding: 1rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: bg-move1 11s ease-in-out infinite alternate, bg-move2 14s ease-in-out infinite alternate;
    box-shadow: 0 2px 20px #0000004b;
}

.close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(90deg, #a93761 65%, #e37aa9 140%);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: 'Lexend', 'Segoe UI', Arial, sans-serif;
    font-size: 1em;
    padding: 0.63em 1.2em;
    margin: 0.1em 0.5em 0.1em 0;
    border: none;
    border-radius: 20px;
    color: #fff4e0;
    font-weight: 700;
    transition: background 0.18s, color 0.14s, transform 0.13s, box-shadow 0.15s;
    box-shadow: 0 2.5px 11px #23223933;
    outline: none;
    text-decoration: none !important;
    user-select: none;
    touch-action: manipulation;
}


/* ========== RESPONSIVE / BREAKPOINTS ========== */

/* ========== GLOBAL STYLES (tous écrans) ========== */
html, body {
  overflow-x: hidden !important;
  box-sizing: border-box;
}
* { box-sizing: border-box; }

/* Grille des avatars */
.avatar-shop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  justify-items: center;
  padding-top: 2rem;
}
.avatar-item {
  text-align: center;
  transition: transform 0.3s;
}
.avatar-item:hover {
  transform: scale(1.05);
}
.avatar-item.unavailable img {
  filter: grayscale(100%);
  opacity: 0.4;
}

/* Modal générique */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none; }
.modal-content {
  background: #181928;
  color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 300px; width: 90%;
  text-align: center;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Boutons, textes et images par défaut */
.level-required {
  font-size: 0.8rem;
  color: #ff5555;
  margin: 0.5rem 0;
}
.price {
  color: #dc7ea3;
}
.buy-btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* ========== MOBILE STYLES (< 600px) ========== */
@media (max-width: 600px) {
  /* Grille réduite */
  .avatar-shop {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    padding-top: 1rem;
  }
  /* Images plus petites */
  .avatar-item img {
    width: 50px !important;
    height: 50px !important;
  }
  /* Textes et boutons plus compacts */
  .price, .level-required {
    font-size: 0.7rem;
  }
  .buy-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  /* Désactivation du hover pour éviter le zoom mobile */
  .avatar-item:hover {
    transform: none;
  }
  /* Conteneurs et typographie mobile */
  html, body {
    font-size: 15px !important;
  }
  .section-wrapper {
    padding: 1rem !important;
    max-width: 100vw;
  }
  .box, .cat {
    max-width: 98vw;
    padding: 1rem;
    font-size: 1em;
  }
  .desktop-menu { display: none !important; }
  .mobile-dock { display: flex !important; }
  /* Boutons mobile-only */
  .mobile-only { display: flex !important; }
}