* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-y: scroll;
}

body {
  background-color: #0d0d0d;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  height: 100vh;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}


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: 60px;
  background-color: #222;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 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: 12px;
}

.top-bar-user {
  display: none;
}

.profile-avatar {
  width: 48px;
  height: 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: 8px;
  font-size: 15px;
  font-weight: bold;
  padding: 8px 14px;
  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: 8px;
  font-size: 15px;
  font-weight: bold;
  padding: 8px 14px;
  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;
  height: 100vh;
  padding:  10px;
  background-color: #111;
  color: white;
  box-sizing: border-box;
}

.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;
  height: 100%;
  width: 100%;
  padding-top: 100px;
}


.main-content h1 {
  font-size: 6.5em;
  margin-bottom: 50px;
  margin-top: 0;
  color: #a58eff;
  text-shadow: 0 0 10px #a58eff;
}

.main-content p {
  font-size: 3.2em;
  line-height: 1.6;
  color: #e0d9ff;
  max-width: 1200px;
  margin: 0 auto 20px 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: 30px;
  margin-top: 0;
  margin-bottom: 80px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.promo-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  padding: 30px 20px;
  width: 280px;
  min-height: 280px;
  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: 1.8em;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 0 10px rgba(165, 142, 255, 0.5);
}

.promo-card p {
  font-size: 1em;
  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: 1.3em;
  font-weight: bold;
  padding: 8px 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;
  text-shadow: 0 0 10px rgba(165, 142, 255, 0.6);
}

.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;
}

@media (max-width: 1024px) {
  .card {
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .card {
    max-width: 90%;
  }
} 

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    overflow-x: hidden;
  }

  .top-bar { height: 50px; font-size: 18px; padding: 0 8px; }
  .top-bar-user { right: 10px; font-size: 12px; }

  .wishlist-btn {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .content {
    margin-top: 50px;
    padding: 16px 16px 70px 16px;
  }

  .back-btn {
    display: none;
  }

  .discord-login-btn {
    display: none; /* hidden on mobile; use mobile menu instead */
  }

  .main-content {
    width: 100%;
    height: auto;
    padding: 60px 12px 50px 12px;
    margin-top: 0;
    text-align: center;
  }

  .main-content h1 {
    font-size: 1.8em;
    margin-bottom: 16px;
    line-height: 1.3;
  }

  .main-content p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .footer {
    height: 50px;
    font-size: 12px;
  }

  button {
    top: 0;
    font-size: 14px;
    padding: 0.5rem 0.8rem;
  }

  .promo-section {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 60px;
    padding: 0 10px;
  }

  .promo-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    min-height: 240px;
    padding: 25px 15px;
  }

  .promo-icon {
    font-size: 3em;
    margin-bottom: 10px;
  }

  .promo-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .promo-card p {
    font-size: 0.9em;
    margin-bottom: 15px;
  }

  .promo-badge {
    font-size: 1.1em;
    padding: 6px 12px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .main-content h1 { font-size: 2em; }
  .main-content p { font-size: 1.05em; }
  .wishlist-btn { font-size: 13px; padding: 6px 10px; }
  .discord-login-btn { font-size: 13px; padding: 6px 10px; }
}

/* Tablet layout */
@media (min-width: 600px) and (max-width: 1024px) {
  .top-bar { height: 56px; font-size: 24px; }
  .wishlist-btn { top: 10px; right: 16px; font-size: 14px; padding: 7px 12px; }
  .content { padding: 18px; }
  .main-content { width: 100%; padding: 0 16px; }
  .main-content h1 { font-size: 3.2em; }
  .main-content p { font-size: 1.4em; }
  .footer { height: 52px; font-size: 13px; }

  .promo-section {
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 70px;
  }

  .promo-card {
    width: 260px;
    min-height: 260px;
    padding: 28px 18px;
  }

  .promo-icon {
    font-size: 3.5em;
  }

  .promo-card h3 {
    font-size: 1.6em;
  }

  .promo-card p {
    font-size: 0.95em;
  }

  .promo-badge {
    font-size: 1.2em;
  }

  .creators-title {
    font-size: 1.8em;
    margin: 50px 0 30px 0;
  }

  .creators-section {
    gap: 30px;
    margin-bottom: 80px;
  }

  .creator-card {
    width: 240px;
    padding: 28px 22px;
  }

  .creator-avatar {
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
  }

  .creator-card h3 {
    font-size: 1.3em;
  }

  .creator-role {
    font-size: 0.75em;
    margin-bottom: 15px;
  }

  .creator-contact {
    font-size: 0.8em;
    padding: 8px 16px;
  }
}

/* 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;
  -moz-appearance: none;
  appearance: none;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000px;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 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;
  }

  .sidebar a, .sidebar h2, .sidebar h3 {
    font-size: 0.95em;
  }
}