* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --layout-max-width: 1200px;
  --layout-side-padding: min(4vw, 24px);
  --h1-clamp: clamp(2.2rem, 2vw + 1.2rem, 3.5rem);
  --h2-clamp: clamp(1.6rem, 1.6vw + 1rem, 2.6rem);
  --p-clamp: clamp(1rem, 1vw + 0.8rem, 1.4rem);
}

html {
  overflow-y: scroll;
  font-family: var(--font-stack-system, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif);
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
}

body {
  background-color: #0d0d0d;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  min-height: 100vh;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

img { max-width: 100%; height: auto; }


header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1b1b1b;
  padding: 10px 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 100;
  box-shadow: 0 0 10px #a58eff;
}

header h1 {
  --glow-color: rgb(59, 46, 179);
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 0 0 .5em var(--glow-color);
}

header img {
  height: 40px;
}

.top-bar {
  --glow-color: rgb(217, 176, 255);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(50px, 8vw, 80px);
  background-color: #222;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(12px, 2vw, 20px);
  font-size: clamp(18px, 4vw, 30px);
  font-weight: bold;
  z-index: 1000;
  text-shadow: 0 0 .5em var(--glow-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.top-bar-title {
  flex: 1;
  text-align: center;
}

#profile-container {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 15px);
}

.top-bar-user {
  display: none;
}

.profile-avatar {
  width: clamp(36px, 6vw, 48px);
  height: clamp(36px, 6vw, 48px);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #a58eff;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(165, 142, 255, 0.5);
}

.profile-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(165, 142, 255, 0.8);
}

.wishlist-btn {
  --glow-color: rgb(167, 173, 255);
  --glow-spread-color: rgba(71, 58, 255, 0.1);
  --btn-color: rgb(21, 0, 127);

  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: bold;
  padding: clamp(6px, 1vw, 12px) clamp(10px, 2vw, 16px);
  color: var(--glow-color);
  background-color: var(--btn-color);
  border: .25em solid var(--glow-color);
  border-radius: 1em;
  text-shadow: 0 0 .5em var(--glow-color);
  box-shadow:
    0 0 1em .25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 .75em .25em var(--glow-color);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  top: 0;
}

.discord-login-btn {
  --glow-color: rgb(167, 173, 255);
  --glow-spread-color: rgba(71, 58, 255, 0.1);
  --btn-color: rgb(21, 0, 127);

  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: bold;
  padding: clamp(6px, 1vw, 12px) clamp(10px, 2vw, 16px);
  color: var(--glow-color);
  background-color: var(--btn-color);
  border: .25em solid var(--glow-color);
  border-radius: 1em;
  text-shadow: 0 0 .5em var(--glow-color);
  box-shadow:
    0 0 1em .25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 .75em .25em var(--glow-color);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  top: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.discord-login-btn:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow:
    0 0 1em .25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 .75em .25em var(--glow-color);
}

.discord-login-btn:active {
  -webkit-transform: scale(0.98);
  transform: scale(0.98);
}

.wishlist-btn:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow:
    0 0 1em .25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 .75em .25em var(--glow-color);
}

.wishlist-btn:active {
  -webkit-transform: scale(0.98);
  transform: scale(0.98);
}

.sidebar {
  --glow-color: rgb(217, 176, 255);
  text-shadow: 0 0 .5em var(--glow-color);
  text-align: center;
  margin-top: 60px;
  width: 300px;
  min-height: 100vh;
  padding:  10px;
  background-color: #111;
  color: white;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar h2,
.sidebar h3,
.sidebar h4 {
  font-size: 28px;
  margin-bottom: 20px;
}

.sidebar a {
  --glow-color: rgb(217, 176, 255);
  --glow-spread-color: rgba(191, 123, 255, 0.1);
  --enhanced-glow-color: rgb(231, 206, 255);
  --btn-color: rgb(100, 61, 136);

  display: block;
  margin-bottom: 20px;
  margin-left: 50px;
  padding: 15px;
  left: -30px;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  color: var(--glow-color);
  background-color: var(--btn-color);
  border: .25em solid var(--glow-color);
  border-radius: 1em;
  outline: none;
  text-shadow: 0 0 .5em var(--glow-color);
  box-shadow:
    0 0 1em .25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 .75em .25em var(--glow-color);
  position: relative;
  transition: all 0.3s;
}

.sidebar a:hover {
  background-color: rgb(231, 206, 255);
}

.content {
  margin-top: 60px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.main-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 80px auto 40px;
  padding: 0 var(--layout-side-padding);
  box-sizing: border-box;
}


.main-content h1 {
  font-size: var(--h1-clamp);
  margin-bottom: 24px;
  margin-top: 0;
  color: #a58eff;
  text-shadow: 0 0 10px #a58eff;
}

.main-content p {
  font-size: var(--p-clamp);
  line-height: 1.6;
  color: #e0d9ff;
  max-width: 900px;
  margin: 0 auto 16px auto;
  text-shadow: 0 0 10px #a58eff;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #1b1b1b;
  color: #a58eff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px #a58eff;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

button {
  --glow-color: rgb(217, 176, 255);
  --glow-spread-color: rgba(191, 123, 255, 0.1);
  --enhanced-glow-color: rgb(231, 206, 255);
  --btn-color: rgb(100, 61, 136);

  position: relative;
  top: 4%;
  padding: 0.4rem 0.6rem;
  font-size: 15px;
  font-weight: bold;
  color: var(--glow-color);
  background-color: var(--btn-color);
  border: .25em solid var(--glow-color);
  border-radius: 1em;
  outline: none;
  text-shadow: 0 0 .5em var(--glow-color);
  box-shadow:
    0 0 1em .25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 .75em .25em var(--glow-color);
  transition: all 0.3s;
}

button::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--glow-spread-color);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

button:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow:
    0 0 1em .25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 .75em .25em var(--glow-color);
}

button:active {
  box-shadow:
    0 0 0.6em .25em var(--glow-color),
    0 0 2.5em 2em var(--glow-spread-color),
    inset 0 0 .5em .25em var(--glow-color);
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgb(100, 61, 136);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(191, 123, 255, 0.1);
  opacity: 0;
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

#stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Promo Section */
.promo-title {
  font-size: 2em;
  text-align: center;
  color: #a58eff;
  text-shadow: 0 0 15px rgba(165, 142, 255, 0.8);
  margin: 60px 0 40px 0;
  text-decoration: underline;
  text-underline-offset: 10px;
}

.promo-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 3vw, 30px);
  margin-top: 0;
  margin-bottom: 80px;
  padding: 0 clamp(12px, 3vw, 32px);
  flex-wrap: wrap;
}

.promo-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  padding: clamp(20px, 2vw, 30px) clamp(16px, 2vw, 24px);
  width: min(320px, 100% - 12px);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: all 0.4s ease;
}

.promo-winter {
  border: 2px solid #4da8ff;
  box-shadow: 0 0 20px rgba(77, 168, 255, 0.3);
}

.promo-winter:hover {
  box-shadow: 0 0 40px rgba(77, 168, 255, 0.6);
  transform: translateY(-10px);
}

.promo-summer {
  border: 2px solid #ffcc00;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.promo-summer:hover {
  box-shadow: 0 0 40px rgba(255, 204, 0, 0.6);
  transform: translateY(-10px);
}

.promo-halloween {
  border: 2px solid #ff6600;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.promo-halloween:hover {
  box-shadow: 0 0 40px rgba(255, 102, 0, 0.6);
  transform: translateY(-10px);
}

.promo-icon {
  font-size: 4em;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.promo-card h3 {
  font-size: clamp(1.2em, 1vw + 1em, 1.8em);
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 0 10px rgba(165, 142, 255, 0.5);
}

.promo-card p {
  font-size: clamp(0.95em, 0.6vw + 0.8em, 1.05em);
  line-height: 1.5;
  color: #d0d0d0;
  margin-bottom: 20px;
  text-shadow: none;
}

.promo-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #a58eff 0%, #7b5fd6 100%);
  color: #fff;
  font-size: clamp(1em, 0.6vw + 0.9em, 1.2em);
  font-weight: bold;
  padding: clamp(6px, 1vw, 9px) clamp(10px, 1.2vw, 16px);
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(165, 142, 255, 0.6);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* (section cartes originales supprimée à la demande) */

/* Creators Section */
.creators-title {
  font-size: 2.5em;
  text-align: center;
  color: #a58eff;
  text-shadow: 0 0 15px rgba(165, 142, 255, 0.8);
  margin: 120px 0 40px 0;
  text-decoration: underline;
  text-underline-offset: 10px;
}

.creators-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 35px;
  margin-bottom: 150px;
  padding: 0 20px 60px 20px;
  flex-wrap: wrap;
}

.creator-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #a58eff;
  border-radius: 20px;
  padding: 30px 25px;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(165, 142, 255, 0.4);
}

.creator-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 40px rgba(165, 142, 255, 0.7);
  border-color: #d0b3ff;
}

.creator-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #a58eff;
  box-shadow: 0 0 20px rgba(165, 142, 255, 0.6);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.creator-card:hover .creator-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(165, 142, 255, 0.9);
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-card h3 {
  font-size: 1.4em;
  color: #fff;
  margin-bottom: 8px;
  width: min(280px, 100% - 12px);
}

.creator-role {
  font-size: 0.9em !important;
  color: #ffffff !important;
  margin-bottom: 18px;
  font-style: italic;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  font-weight: 600;
  line-height: 1.3;
}

.creator-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #a58eff 0%, #7b5fd6 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.95em;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(165, 142, 255, 0.5);
}

.creator-contact:hover {
  background: linear-gradient(135deg, #d0b3ff 0%, #a58eff 100%);
  box-shadow: 0 0 25px rgba(165, 142, 255, 0.8);
  transform: scale(1.05);
}

.creator-contact span {
  font-size: 1.2em;
}

.discord-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ========== BREAKPOINTS RESPONSIVE ========== */

/* DESKTOP - 1200px et plus */
@media (max-width: 599px) {
  .sidebar {
    display: none;
  }

  main {
    margin-left: 0;
  }
}

/* Laptop/Tablet layout (600-1199px) */
@media (min-width: 600px) and (max-width: 1199px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    width: 240px !important;
  }

  main {
    margin-left: 260px !important;
  }
}

/* Desktop layout (≥1200px) */
@media (min-width: 1200px) {
  :root {
    --layout-max-width: 1200px;
    --layout-side-padding: 40px;
  }

  body {
    flex-direction: row;
    min-height: 100vh;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    width: 280px;
    min-height: 100vh;
    overflow-y: auto;
  }

  .main-content {
    width: calc(100% - 280px);
    min-height: 100vh;
    padding: 80px 40px 60px 40px;
    overflow-y: visible;
  }

  .top-bar {
    height: 70px;
    font-size: 28px;
    padding: 0 30px;
  }

  .main-content h1 {
    font-size: clamp(2.5em, 3vw, 4em);
    margin-bottom: 40px;
  }

  .main-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .promo-section {
    gap: clamp(25px, 3.5vw, 45px);
    margin-top: 60px;
    margin-bottom: 100px;
    padding: 0 20px;
  }

  .promo-card {
    width: 300px;
    min-height: 300px;
    padding: 35px 25px;
    transition: all 0.4s ease;
  }

  .promo-card:hover {
    transform: translateY(-15px);
  }

  .promo-icon {
    font-size: 4.5em;
    margin-bottom: 20px;
  }

  .promo-card h3 {
    font-size: 1.7em;
    margin-bottom: 15px;
  }

  .promo-card p {
    font-size: 1.05em;
    margin-bottom: 20px;
  }

  .promo-badge {
    font-size: 1.3em;
    padding: 10px 18px;
  }

  .creators-title {
    font-size: 2.8em;
    margin: 120px 0 50px 0;
  }

  .creators-section {
    gap: 40px;
    margin-bottom: 150px;
    padding: 0 20px;
  }

  .creator-card {
    width: 280px;
    padding: 35px 28px;
    min-height: 380px;
  }

  .creator-avatar {
    width: 140px;
    height: 140px;
    margin-bottom: 25px;
  }

  .creator-card h3 {
    font-size: 1.6em;
    margin-bottom: 12px;
  }

  .creator-role {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .creator-contact {
    font-size: 1em;
    padding: 12px 24px;
  }

  .footer {
    height: 60px;
    font-size: 14px;
  }
}

/* MOBILE - moins de 600px */
@media (max-width: 599px) {
  :root {
    --layout-max-width: 100%;
    --layout-side-padding: 12px;
  }

  body {
    flex-direction: column;
    height: auto;
    overflow-x: hidden;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    width: 100%;
    height: auto;
    padding: 60px 14px 70px 14px;
    margin-top: 0;
    text-align: center;
  }

  .top-bar {
    height: 50px;
    font-size: 16px;
    padding: 0 10px;
  }

  .top-bar-title {
    font-size: 14px;
  }

  .wishlist-btn {
    display: none;
  }

  .discord-login-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .main-content h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .main-content p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .footer {
    height: 50px;
    font-size: 12px;
  }

  button {
    font-size: 13px;
    padding: 0.5rem 0.8rem;
  }

  /* Promo Cards - Mobile */
  .promo-section {
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
    margin-bottom: 60px;
    padding: 0 10px;
  }

  .promo-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    min-height: 240px;
    padding: 24px 16px;
  }

  .promo-icon {
    font-size: 3.2em;
    margin-bottom: 10px;
  }

  .promo-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
  }

  .promo-card p {
    font-size: 0.9em;
    margin-bottom: 15px;
  }

  .promo-badge {
    font-size: 1em;
    padding: 5px 10px;
    top: 8px;
    right: 8px;
  }

  /* Creator Cards - Mobile */
  .creators-title {
    font-size: 1.8em;
    margin: 60px 0 28px 0;
  }

  .creators-section {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 70px;
    padding: 0 10px;
  }

  .creator-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 24px 18px;
    min-height: auto;
  }

  .creator-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .creator-card h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
  }

  .creator-role {
    font-size: 0.85em;
    margin-bottom: 14px;
  }

  .creator-contact {
    font-size: 0.85em;
    padding: 8px 14px;
  }
}

/* TABLETTE/LAPTOP - 600px à 1199px */
@media (min-width: 600px) and (max-width: 1199px) {
  body {
    flex-direction: row;
    min-height: 100vh;
  }

  .sidebar {
    display: flex !important;
    flex-direction: column;
    width: 240px;
    min-height: 100vh;
    overflow-y: auto;
  }

  .main-content {
    width: calc(100% - 240px);
    min-height: 100vh;
    padding: 70px 30px 60px 30px;
    overflow-y: visible;
  }

  main {
    margin-left: 260px !important;
  }
}

/* DESKTOP - 1200px et plus */
@media (min-width: 1200px) {
  body {
    flex-direction: row;
    min-height: 100vh;
  }

  .sidebar {
    display: flex !important;
    flex-direction: column;
    width: 280px;
    min-height: 100vh;
    overflow-y: auto;
  }

  .main-content {
    width: calc(100% - 280px);
    min-height: 100vh;
    padding: 70px 40px 60px 40px;
    overflow-y: visible;
  }

  main {
    margin-left: 300px !important;
  }
}

/* ULTRA MOBILE - moins de 480px */
@media (max-width: 479px) {
  .main-content h1 {
    font-size: 1.6em;
  }

  .main-content p {
    font-size: 0.9em;
  }

  .top-bar {
    height: 48px;
    font-size: 14px;
  }

  .promo-card {
    max-width: 100%;
    padding: 20px 14px;
    min-height: 220px;
  }

  .promo-icon {
    font-size: 2.8em;
  }

  .creator-card {
    max-width: 100%;
    padding: 20px 14px;
  }

  .creator-avatar {
    width: 90px;
    height: 90px;
  }
}

/* Nouveautés: éléments d'action et wishlist */
.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.wishlist-star {
  font-size: 28px;
  cursor: pointer;
  color: gold;
  line-height: 1;
}

.wishlist-star.active {
  color: gold;
  text-shadow: 0 0 12px gold;
}

/* Badge promo (utilisé par promo_products.js) */
.promo-ribbon {
  position: absolute;
  top: 15px;
  right: -40px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff3838 100%);
  color: #fff;
  padding: 6px 46px;
  font-size: 1.05em;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 10;
  white-space: nowrap;
}
/* Modal pour les rôles Discord */
.roles-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.roles-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #a58eff;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 8px 32px rgba(165, 142, 255, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.roles-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(165, 142, 255, 0.3);
}

.roles-modal-header h3 {
  color: #a58eff;
  font-size: 1.3em;
  margin: 0;
}

.roles-modal-close {
  background: none;
  border: none;
  color: #a58eff;
  font-size: 2em;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.roles-modal-close:hover {
  background-color: rgba(165, 142, 255, 0.2);
  color: #d0b3ff;
}

.roles-modal-body {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.role-item {
  background-color: rgba(165, 142, 255, 0.1);
  padding: 12px 16px;
  margin-bottom: 10px;
  border-left: 4px solid #a58eff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.role-item:hover {
  background-color: rgba(165, 142, 255, 0.15);
  transform: translateX(4px);
}

.role-item:last-child {
  margin-bottom: 0;
}

.role-name {
  color: #fff;
  font-weight: 500;
  font-size: 1em;
}

/* Scrollbar styling pour la modale */
.roles-modal-body::-webkit-scrollbar {
  width: 8px;
}

.roles-modal-body::-webkit-scrollbar-track {
  background: rgba(165, 142, 255, 0.1);
  border-radius: 4px;
}

.roles-modal-body::-webkit-scrollbar-thumb {
  background: #a58eff;
  border-radius: 4px;
}

.roles-modal-body::-webkit-scrollbar-thumb:hover {
  background: #d0b3ff;
}

/* ========== Optimisations macOS / Safari ========== */

/* Déactivation des contrôles par défaut sur Safari */
input, textarea, button, select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 16px;
}

/* Meilleure gestion du scrolling sur macOS */
html {
  -webkit-scroll-behavior: smooth;
  scroll-behavior: smooth;
}

/* Scrollbar personnalisée pour tous les éléments */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(165, 142, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(165, 142, 255, 0.4);
  border-radius: 5px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(165, 142, 255, 0.7);
}

/* Optimisation des inputs pour Safari */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  border-radius: 6px;
  border: 1px solid rgba(165, 142, 255, 0.3);
  background-color: rgba(20, 20, 30, 0.8);
  color: #fff;
  padding: 8px 12px;
  transition: all 0.3s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #a58eff;
  box-shadow: 0 0 8px rgba(165, 142, 255, 0.3);
  background-color: rgba(20, 20, 30, 0.95);
}

/* Amélioration des boutons pour Safari */
button, .btn, .wishlist-btn, .discord-login-btn {
  -webkit-appearance: none;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  backface-visibility: hidden;
  perspective: 1000;
}

/* Prévention du zoom sur les inputs mobiles */
@supports (padding: max(0px)) {
  input, textarea, select {
    padding: 8px 12px;
  }
}

/* Optimisation pour la résolution des MacBook */
@media (min-width: 1440px) {
  .main-content {
    padding: 120px 40px 60px 40px;
  }

  .main-content h1 {
    font-size: 7rem;
    margin-bottom: 60px;
  }

  .main-content p {
    font-size: 1.4em;
    max-width: 1400px;
  }

  .promo-section {
    gap: 40px;
    margin-bottom: 80px;
  }

  .promo-card {
    min-height: 320px;
    padding: 35px 25px;
  }

  .creators-section {
    gap: 40px;
    padding: 0 40px;
  }

  .creator-card {
    max-width: 320px;
  }
}

/* Amélioration pour écran 1366px (MacBook Air 13") */
@media (min-width: 1024px) and (max-width: 1440px) {
  .main-content {
    padding: 100px 30px 50px 30px;
  }

  .main-content h1 {
    font-size: 5.5em;
    margin-bottom: 50px;
  }

  .main-content p {
    font-size: 1.2em;
    max-width: 1200px;
  }

  .sidebar {
    width: 280px;
  }
}

/* ========== Compatibilité macOS/Safari ========== */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari */
  html {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
  
  input, textarea, select {
    font-size: 16px; /* Empêche le zoom iOS */
  }
}

/* ========== Optimisation pour écrans Retina ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Polices plus lisses sur Retina */
  body {
    -webkit-font-smoothing: subpixel-antialiased;
  }
}

/* ========== Compatibilité Android ========== */
@-webkit-keyframes slideInAndroid {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInAndroid {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Amélioration du UX Android */
@media (pointer: coarse) {
  /* Interfaces tactiles */
  button, a, input[type="checkbox"], input[type="radio"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
  }
  
  /* Meilleur contraste pour tactile */
  a {
    padding: 8px;
  }
}

/* ========== Support des notches/encoche ========== */
@supports (padding: max(0px)) {
  body {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  
  .top-bar {
    padding-top: env(safe-area-inset-top);
  }
}

/* ========== Optimisations pour écrans petits ========== */
@media (max-width: 480px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  html {
    font-size: 14px;
  }
  
  button, a {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
}

/* ========== Support du contraste élevé ========== */
@media (prefers-contrast: more) {
  * {
    border-width: 1px;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ========== Support du mode sombre du système ========== */
/* Mode clair désactivé - le site utilise toujours le thème sombre */

/* ========== Réduction des animations pour préférence utilisateur ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== Support du clavier ========== */
:focus-visible {
  outline: 2px solid #7289da;
  outline-offset: 2px;
}

/* Suppression du outline bleu par défaut sur certains navigateurs */
::-moz-focus-inner {
  border: 0;
  outline: 0;
}

/* ========== Compatibilité des inputs sur tous les OS ========== */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border-radius: 6px;
  border: 1px solid #666;
  background-color: #1a1a1a;
  color: white;
  padding: 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: #7289da;
  box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.1);
  outline: none;
}

/* Firefox: Supprimer la bordure par défaut */
input::-moz-focus-inner {
  border: none;
}

/* Safari: Amélioration du design */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* iOS: Désactiver le style par défaut */
input {
  -webkit-appearance: none;
  border-radius: 6px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  padding-right: 36px;
}

/* ========== Boutons uniformes sur tous les OS ========== */
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
  border-radius: 6px;
  transition: all 0.2s ease;
}

button:active {
  -webkit-transform: scale(0.98);
  transform: scale(0.98);
}

/* ========== Support des gestes iOS/Android ========== */
@supports (touch-action: manipulation) {
  button, a {
    touch-action: manipulation;
  }
}

/* ========== Better text selection ========== */
::selection {
  background-color: #7289da;
  color: white;
}

::-moz-selection {
  background-color: #7289da;
  color: white;
}