* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #0d0d0d;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.top-bar {
  --glow-color: rgb(217, 176, 255);
  text-shadow: 0 0 .5em var(--glow-color);
  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: center;
  font-size: clamp(18px, 4vw, 30px);
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.wishlist-btn {
  --glow-color: rgb(167, 173, 255);
  --glow-spread-color: rgba(71, 58, 255, 0.1);
  --btn-color: rgb(21, 0, 127);

  position: fixed;
  top: clamp(8px, 1.5vw, 15px);     
  right: clamp(12px, 2vw, 20px);   
  z-index: 2000; 

  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: bold;
  padding: clamp(6px, 1vw, 12px) clamp(10px, 1.5vw, 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;
}

.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);
}

.sidebar {
  --glow-color: rgb(217, 176, 255);
  text-shadow: 0 0 .5em var(--glow-color);
  text-align: center;
  margin-top: clamp(50px, 8vw, 80px);
  width: clamp(200px, 20vw, 280px);
  min-height: 100vh;
  padding: clamp(8px, 1.5vw, 15px);
  background-color: #111;
  color: white;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar h2,
.sidebar h3,
.sidebar h4 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(12px, 2vw, 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: clamp(12px, 2vw, 20px);
  margin-left: clamp(30px, 5vw, 50px);
  padding: clamp(10px, 1.5vw, 15px);
  left: clamp(-22px, -3vw, -30px);
  font-size: clamp(14px, 1.8vw, 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: #e7ceff;
}

main {
  flex: 1;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 60px) clamp(80px, 12vw, 100px);
  margin-left: clamp(200px, 22vw, 300px);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(40px, 6vw, 52px);
  background-color: #1b1b1b;
  color: #a58eff;
  font-size: clamp(12px, 1.5vw, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px #fff48e;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.4);
  z-index: 300;
}

section {
  margin-bottom: clamp(60px, 10vw, 120px);
}

section h2 {
  --glow-color: rgb(217, 176, 255);
  --glow-spread-color: rgba(191, 123, 255, 0.1);
  --btn-color: rgb(100, 61, 136);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  margin-bottom: clamp(12px, 2vw, 20px);
  padding-right: 0;
  text-align: center;
    color: var(--glow-color);
  text-shadow: 0 0 .5em var(--glow-color);
  text-decoration: underline;
  transition: all 0.3s;
}

section h3 {
  font-size: clamp(1.2em, 2.5vw, 2em);
  margin: clamp(8px, 1.5vw, 12px) 0;
  color: #fff;
  text-shadow: 0 0 .5em var(--glow-color);
  text-decoration: none;
  transition: all 0.3s;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-right: 0;
  gap: clamp(15px, 3vw, 30px);
  max-width: 100%;
  margin: clamp(15px, 2vw, 25px) auto 0 auto; 
}

.card {
  --glow-color: rgb(217, 176, 255);
  text-shadow: 0 0 .5em var(--glow-color);
  width: clamp(350px, 50vw, 700px);
  height: auto;
  max-width: 100%;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 10px #a58eff;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: clamp(200px, 25vw, 400px);
  object-fit: cover;
  border-radius: 15px;
}

.card h2 {
  font-size: clamp(1.2em, 2vw, 1.6em);
  margin: 12px 0;
  color: #fff;
}

.card button {
  font-size: 1em;
  padding: 10px 40px;
  background-color: #b57fff;
  border: none;
  border-radius: 15px;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 10px #b57fff;
}

.card button:hover {
  background-color: #a366ff;
}

/* Badge promo diagonal */
.promo-ribbon {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  right: clamp(-35px, -5vw, -40px);
  background: linear-gradient(135deg, #ff6b6b 0%, #ff3838 100%);
  color: white;
  padding: clamp(6px, 1vw, 10px) clamp(30px, 5vw, 50px);
  font-size: clamp(0.9em, 1.5vw, 1.2em);
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

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: clamp(0.3rem, 1vw, 0.5rem) clamp(0.5rem, 1.2vw, 0.8rem);
  font-size: clamp(13px, 1.5vw, 16px);
  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;
}

#stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.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;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  margin-top: clamp(10px, 1.5vw, 15px);
  flex-wrap: wrap;
  margin-bottom: clamp(12px, 2vw, 20px);
}

.actions a button {
  padding: clamp(6px, 1vw, 10px) clamp(12px, 1.5vw, 18px);
  border: none;
  border-radius: 10px;
  background-color: rgb(100, 61, 136);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.actions a button:hover {
  background-color: rgb(217, 176, 255);
}

.wishlist-star {
  align-items: center;
  position: relative;
  font-size: clamp(24px, 4vw, 40px);
  cursor: pointer;
  color: gold;
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.wishlist-star.active {
  color: gold;
  text-shadow: 0 0 15px gold;
}

.wishlist-star:hover {
  transform: scale(1.2);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}


/* Mobile-specific adjustments */
@media (max-width: 599px) {
  .wishlist-btn { display: none; }
  .sidebar { display: none; }
  main { margin-left: 0; padding: clamp(60px, 10vw, 100px) clamp(12px, 2vw, 20px); }
  .card { margin: 0 clamp(6px, 1.5vw, 10px); }
  .card img { height: clamp(150px, 30vw, 200px); object-fit: cover; }
}

/* ——— Bannière / Section Promotions (parité avec page_base.css) ——— */
.promo-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  text-align: center;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  margin: clamp(40px, 6vw, 60px) 0 clamp(25px, 4vw, 40px) 0;
  text-decoration: underline;
  text-underline-offset: 10px;
}

.promo-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(15px, 3vw, 30px);
  margin-top: 0;
  margin-bottom: clamp(50px, 8vw, 80px);
  padding: 0 clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
}

.promo-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: clamp(12px, 1.5vw, 15px);
  padding: clamp(20px, 3vw, 30px) clamp(15px, 2vw, 20px);
  width: clamp(200px, 20vw, 280px);
  min-height: clamp(240px, 28vw, 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: clamp(12px, 1.5vw, 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: clamp(3em, 4.5vw, 4.5em);
  margin-bottom: clamp(10px, 1.5vw, 15px);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.promo-card h3 {
  font-size: clamp(1.3em, 2vw, 1.8em);
  margin-bottom: clamp(10px, 1.5vw, 15px);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.promo-card p {
  font-size: clamp(0.9em, 1.2vw, 1em);
  line-height: 1.5;
  color: #d0d0d0;
  margin-bottom: clamp(12px, 2vw, 20px);
  text-shadow: none;
}

.promo-badge {
  position: absolute;
  top: clamp(10px, 1.5vw, 15px);
  right: clamp(10px, 1.5vw, 15px);
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #000;
  font-size: clamp(1em, 1.5vw, 1.3em);
  font-weight: bold;
  padding: clamp(6px, 1vw, 10px) clamp(12px, 1.5vw, 18px);
  border-radius: clamp(12px, 2vw, 20px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Responsive pour la section promo */
@media (max-width: 599px) {
  .promo-section { flex-direction: column; }
  .promo-card { width: 100%; max-width: 90%; margin: 0 auto; }
}

button:active, .wishlist-btn:active {
  -webkit-transform: scale(0.98);
  transform: scale(0.98);
}

/* Safe Area pour iOS */
@media (max-width: 430px) and (orientation: portrait) {
  main {
    padding-top: calc(clamp(80px, 12vw, 140px) + env(safe-area-inset-top, 0));
    padding-bottom: calc(clamp(80px, 12vw, 100px) + env(safe-area-inset-bottom, 0));
  }
}