/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:   #F66C31;
  --orange2:  #F77D49;
  --orange-l: #FCA98A;
  --orange-bg:#FDE5D9;
  --text:     #111;
  --muted:    #666;
  --border:   #eee;
  --white:    #fff;
  --r:        12px;
  --bg:       #f9f7f5;
  --orange-text: #B85423;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .footer { margin-top: auto; flex-shrink: 0; }
.section--fill { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-start; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Skip link (accessibilité) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--orange);
  color: #111;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 10000;
  text-decoration: none;
  transition: top .15s;
  outline-offset: 2px;
}
.skip-link:focus { top: 0; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img { height: 36px; width: auto; object-fit: contain; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-link { color: var(--muted); transition: color .2s; }
.nav-link:hover { color: var(--text); }
.nav-link--active { color: var(--orange) !important; font-weight: 600; }

.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #5865F2;
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity .2s;
}
.nav-discord:hover { opacity: .85; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 4px; }

.mobile-menu { display: none; flex-direction: column; padding: 14px 28px 18px; gap: 14px; border-top: 1px solid var(--border); background: var(--white); }
.mobile-menu a { font-size: .9rem; font-weight: 500; color: var(--muted); }
.mobile-menu.open { display: flex; }

/* ── Hero ── */
.hero {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 28px 40px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero-left { display: flex; flex-direction: column; gap: 20px; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 5px #22c55e;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100%{ opacity:1; } 50%{ opacity:.5; }
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--orange); }

.hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 440px;
}

.hero-ctas { display: flex; flex-direction: column; gap: 10px; }
.hero-ctas-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }


.cta-grades {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.cta-grades:hover { background: var(--orange2); transform: translateY(-1px); }

.cta-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .2s, transform .15s;
}
.cta-discord:hover { background: #4752c4; transform: translateY(-1px); }

.hero-ip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border-color .2s, box-shadow .2s;
}
.hero-ip:hover { border-color: var(--orange); box-shadow: 0 2px 12px rgba(246,108,49,0.15); }
.hero-ip-label {
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.hero-ip-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  text-align: left;
}
.hero-ip svg { color: var(--muted); }
.hero-ips { display: flex; flex-direction: column; gap: 6px; }
.hero-ip-label--bedrock { background: #43a047; }
.hero-ip-port { font-size: 0.78em; font-weight: 500; color: var(--muted); }

.hero-right { display: flex; align-items: center; justify-content: center; }

.hero-logo-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(246,108,49,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-logo { width: 100%; height: auto; filter: drop-shadow(0 16px 40px rgba(246,108,49,0.25)); }

/* ── Goal Gauge ── */
.goal-strip {
  background: linear-gradient(135deg, #fff4ed 0%, #fde5d9 100%);
  border-top: 1px solid #fdd7c4;
  border-bottom: 1px solid #fdd7c4;
  padding: 18px 0;
}
.goal-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.goal-left { flex-shrink: 0; }
.goal-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--orange-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.goal-desc {
  font-size: 0.78rem;
  color: var(--muted);
}
.goal-right {
  flex: 1;
  min-width: 0;
}
.goal-bar-wrap {
  background: #fdd7c4;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  border-radius: 999px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.goal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}
.goal-pct { font-weight: 800; color: var(--orange); font-size: 0.95rem; }
.goal-meta { align-items: center; gap: 12px; }
.goal-reward { color: var(--muted); font-size: 0.78rem; text-align: right; }
.goal-reward strong { color: var(--orange-text); font-weight: 800; }
.goal-strip--done .goal-bar-fill { background: linear-gradient(90deg, #43a047, #66bb6a); }
.goal-strip--done .goal-pct, .goal-strip--done .goal-reward strong { color: #2e7d32; }
@media (max-width: 600px) {
  .goal-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .goal-right { width: 100%; }
}

/* ── Sections ── */
.section {
  width: 100%;
  padding: 40px 28px;
  max-width: 1140px;
  margin: 0 auto;
  min-width: 0;
}
.section--alt {
  background: var(--white);
  width: 100%;
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 32px;
  min-width: 0;
}
.section--alt > * { width: 100%; max-width: 1500px; margin-left: auto; margin-right: auto; }

.section-tag {
  display: block;
  text-align: center;
  background: var(--orange);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 14px 20px;
  border-radius: var(--r);
  margin: 0 auto 40px;
  max-width: 320px;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 44px;
}
.section-desc strong { color: var(--text); }

/* ── Grades ── */
.grades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.grade-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
  position: relative;
}
.grade-card:hover {
  box-shadow: 0 12px 36px rgba(246,108,49,0.12);
  transform: translateY(-3px);
}

.grade-card--featured {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(246,108,49,0.12);
}

.grade-badge {
  position: absolute;
  z-index: 2;
  top: 14px; right: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
}
.grade-badge--rainbow {
  background: none;
  background-image: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a);
}

.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 100%;
  margin: 0 auto;
}
.upgrade-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transition: all .2s;
}
.upgrade-card:hover {
  border-color: rgba(246,108,49,0.4);
  box-shadow: 0 6px 20px rgba(246,108,49,0.1);
  transform: translateY(-2px);
}
.upgrade-path {
  display: flex;
  align-items: center;
  gap: 14px;
}
.upgrade-img { height: 52px; width: auto; max-width: none; }
.upgrade-glyph-stack { position: relative; display: inline-flex; }
.upgrade-glyph-stack .upgrade-img { position: relative; z-index: 1; }
.upgrade-glyph-fill {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a, #ff5fa2);
  background-size: 300% 100%;
  animation: rainbow-shift 6s linear infinite;
  -webkit-mask-image: url('img/aot-plus-plus-plus-fillmask-lit.png');
  mask-image: url('img/aot-plus-plus-plus-fillmask-lit.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.upgrade-glyph-fill--shadow {
  background-image: linear-gradient(120deg, #541f35, #543409, #544a09, #541f35);
  -webkit-mask-image: url('img/aot-plus-plus-plus-fillmask-shadow.png');
  mask-image: url('img/aot-plus-plus-plus-fillmask-shadow.png');
}
.upgrade-arrow { color: var(--orange); flex-shrink: 0; }
.upgrade-footer { display: flex; align-items: center; gap: 16px; }
.upgrade-price { font-size: 1.4rem; font-weight: 900; }
.upgrade-price span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }

.tag-preview {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 6px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.35);
  letter-spacing: 0.3px;
}
.tag-preview--silver {
  background: linear-gradient(135deg, #b8bec7, #dfe2e6);
  color: #2a2e33;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.4);
}
.tag-preview--gold {
  background: linear-gradient(135deg, #d4941f, #f5c542);
  color: #402a00;
}
.tag-preview--rainbow {
  background-image: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a, #ff5fa2);
  background-size: 220% 100%;
  animation: rainbow-shift 6s linear infinite;
  color: #fff;
}

.grade-header {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.grade-header--silver { background: #f0f2f5; }
.grade-header--gold   { background: #f5e6c0; }
.grade-header--rainbow {
  background: #3a0f26;
  background-image: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a, #ff5fa2);
  background-size: 220% 100%;
  animation: rainbow-shift 6s linear infinite;
}
@keyframes rainbow-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.grade-img { height: 80px; width: auto; object-fit: contain; }

.grade-info { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.grade-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0;
}
.grade-card--featured .grade-name { color: #b8860b; }

.grade-perks-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.grade-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.grade-perks li {
  font-size: 0.81rem;
  color: #444;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.5;
}
.grade-perks li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 800;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.grade-card[data-product="aot-plus"] .grade-perks li::before { color: #8a8f98; }
.grade-card[data-product="aot-plus-plus"] .grade-perks li::before { color: #b8860b; }

.grade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.grade-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
}
.grade-price span { font-size: 0.78rem; font-weight: 500; color: var(--muted); }

.btn-grade {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background .2s;
}
.btn-grade:hover { background: var(--orange2); }
.btn-grade--owned, .btn-grade--owned:hover {
  background: #d1d5db;
  color: #6b7280;
  cursor: default;
}
[data-theme="dark"] .btn-grade--owned, [data-theme="dark"] .btn-grade--owned:hover { background: #3a3a3a; color: #999; }

/* ── Keys ── */
.keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.key-card {
  background: #f9f7f5;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: all .2s;
}
.key-card:hover {
  background: var(--white);
  border-color: rgba(246,108,49,0.4);
  box-shadow: 0 6px 20px rgba(246,108,49,0.1);
  transform: translateY(-2px);
}

.key-card--featured {
  background: var(--orange-bg);
  border-color: var(--orange);
}

.key-dot {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
}
.key-dot img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }

.key-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text);
}

.key-perks {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.key-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.key-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--orange);
}

.btn-key {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 0;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background .2s;
  text-align: center;
}
.btn-key:hover { background: var(--orange2); }
.bundle-card--starter .btn-key { background: #22c55e; }
.bundle-card--starter .btn-key:hover { background: #16a34a; }
.bundle-card--legend .btn-key { background: #8b5cf6; }
.bundle-card--legend .btn-key:hover { background: #7c3aed; }
.cmp-col[data-product="bundle-aventurier"] .btn-key { background: #22c55e; }
.cmp-col[data-product="bundle-aventurier"] .btn-key:hover { background: #16a34a; }
.cmp-col[data-product="bundle-legende"] .btn-key { background: #8b5cf6; }
.cmp-col[data-product="bundle-legende"] .btn-key:hover { background: #7c3aed; }

/* ── Footer ── */
.footer {
  background: #0d0d0d;
  border-top: 1px solid #1e1e1e;
  padding: 28px 28px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo-img { height: 34px; width: auto; object-fit: contain; flex-shrink: 0; }

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-ip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  padding: 0;
  transition: opacity .2s;
}
.footer-ip:hover { opacity: .75; }

.footer-dot { color: #555; font-size: 0.9rem; }

.footer-info {
  font-size: 0.8rem;
  font-weight: 500;
  color: #bbb;
}
.footer-discord-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-live-dot {
  width: 7px; height: 7px;
  background: #5865F2;
  border-radius: 50%;
  box-shadow: 0 0 5px #5865F2;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.footer-copy {
  font-size: 0.7rem;
  color: #555;
  font-weight: 500;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.7rem;
}
.footer-legal-links a {
  color: #888;
  text-decoration: none;
  transition: color .15s;
}
.footer-legal-links a:hover { color: var(--orange); }
.footer-legal-links span { color: #555; }

/* ── Legal Pages ── */
.legal-page {
  width: 100%;
  max-width: 720px;
  margin: 60px auto 80px;
  padding: 0 24px;
}
.legal-page h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text);
}
.legal-page .legal-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 28px 0 8px;
  color: var(--text);
}
.legal-page p, .legal-page li {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
}
.legal-page ul { padding-left: 20px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 32px;
  text-decoration: none;
  transition: opacity .15s;
}
.legal-back:hover { opacity: 0.75; }

.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-discord:hover { background: #4752c4; }

@media (max-width: 700px) {
  .footer-inner { justify-content: center; text-align: center; }
  .footer-meta { justify-content: center; }
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #111; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(60px); opacity: 0;
  transition: all .3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9999; pointer-events: none;
}
.toast svg { color: #22c55e; }
.toast .toast-icon-error { display: none; }
.toast.toast--error .toast-icon-success { display: none; }
.toast.toast--error .toast-icon-error { display: inline-flex; color: #ef4444; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 32px; padding: 40px 24px; }
  .hero-left { align-items: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-ctas { align-items: center; }
  .hero-ctas-row { justify-content: center; }
  .hero-ips { align-items: center; }
  .hero-logo-wrap { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .grades-grid { grid-template-columns: 1fr 1fr; max-width: 760px; }
}
@media (max-width: 768px) {
  .grades-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .grade-card--featured .grade-badge { top: -10px; }
  .hero-logo-wrap { display: none; }
}


@media (max-width: 700px) {
  .cmp-wrap { overflow-x: auto; border-radius: 12px; -webkit-overflow-scrolling: touch; min-width: 0; position: relative; }
  .cmp-scroll-hint { display: block; }
  .cmp-table { min-width: 620px; width: 100%; font-size: 0.875rem; table-layout: fixed; }
  .cmp-table thead tr th { padding: 14px 6px 12px; }
  .cmp-table thead tr th:first-child { width: 34%; }
  .cmp-table thead tr th:nth-child(2) { width: 22%; }
  .cmp-table thead tr th:nth-child(3) { width: 22%; }
  .cmp-table thead tr th:nth-child(4) { width: 22%; }
  .cmp-feature td:first-child { word-break: break-word; }
  .cmp-col td, .cmp-table td.cmp-col { padding: 10px 4px; }
  .cmp-feature td { padding: 10px 8px; }
  .cmp-cta-row td { padding: 12px 6px; }
  .cmp-btn { font-size: 0.85rem; padding: 10px 6px; }
  .cmp-badge { font-size: 0.62rem !important; padding: 3px 7px !important; letter-spacing: 0 !important; white-space: nowrap; }
  .cmp-col--featured { text-align: center !important; }
  .cmp-table thead tr th { vertical-align: bottom; }
  .cmp-grade-name { font-size: 0.65rem; }
  .cmp-grade-price { font-size: 1rem; }
  .cmp-grade-price span { font-size: 0.72rem; }
  .nav-right { display: none; }
  .burger { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 52px 20px 64px; gap: 40px; }
  .hero-right { order: -1; }
  .hero-logo-wrap { max-width: 220px; margin: 0 auto; }
  .grades-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}


/* ── Comparison table ── */
.cmp-wrap {
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.cmp-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.cmp-table thead tr th {
  padding: 36px 28px 30px;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 1px solid var(--border);
}
.cmp-feature-col { width: 40%; text-align: left !important; background: transparent; border-bottom: none; }
.cmp-col { width: 20%; text-align: center; }
.cmp-col--featured {
  background: #fdf3ed;
  position: relative;
}
.cmp-col--rainbow {
  background: rgba(255,95,162,0.07);
  position: relative;
}
.cmp-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.cmp-badge--rainbow {
  background-image: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a);
}
.cmp-head { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cmp-grade-img-wrap {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  margin-bottom: 6px;
  border-radius: 12px;
}
.cmp-grade-img { height: 64px; width: auto; max-width: none; }
.cmp-glyph-stack { position: relative; display: inline-flex; }
.cmp-glyph-stack .cmp-grade-img { position: relative; z-index: 1; }
.cmp-glyph-fill {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a, #ff5fa2);
  background-size: 300% 100%;
  animation: rainbow-shift 6s linear infinite;
  -webkit-mask-image: url('img/aot-plus-plus-plus-fillmask-lit.png');
  mask-image: url('img/aot-plus-plus-plus-fillmask-lit.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.cmp-glyph-fill--shadow {
  background-image: linear-gradient(120deg, #541f35, #543409, #544a09, #541f35);
  -webkit-mask-image: url('img/aot-plus-plus-plus-fillmask-shadow.png');
  mask-image: url('img/aot-plus-plus-plus-fillmask-shadow.png');
}
.cmp-grade-name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 400; }
.cmp-grade-price { font-size: 1.7rem; font-weight: 900; color: var(--text); }
.cmp-grade-price span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }

.cmp-table tbody tr { border-top: 1px solid var(--border); }
.cmp-table tbody tr:hover:not(.cmp-category):not(.cmp-cta-row) { background: #fafaf9; }
.cmp-table tbody tr:hover:not(.cmp-category):not(.cmp-cta-row) td.cmp-col--featured { background: #fbe8dd; }
.cmp-table tbody tr:hover:not(.cmp-category):not(.cmp-cta-row) td.cmp-col--rainbow { background: rgba(255,95,162,0.12); }

.cmp-category td {
  padding: 18px 28px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  background: #f9f7f5;
  border-top: 2px solid var(--border) !important;
}
.cmp-category td.cmp-col--featured { background: #f7e3d5; }
.cmp-category td.cmp-col--rainbow { background: rgba(255,95,162,0.12); }
.cmp-intro td.cmp-col { background: transparent !important; border-top: 2px solid var(--border) !important; }

.cmp-label {
  padding: 20px 28px;
  color: var(--text);
  font-size: 1rem;
}
.cmp-label code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
}
.cmp-col td, .cmp-table td.cmp-col { padding: 20px 16px; text-align: center; }

.cmp-check, .cmp-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}
.cmp-check { background: #16a34a; color: #fff; }
.cmp-no { background: #ef4444; color: #fff; }
.cmp-yes { color: #6b7280; font-weight: 700; font-size: 0.9rem; }
.cmp-price-old { color: #9ca3af; font-weight: 600; font-size: 0.9rem; text-decoration: line-through; }
.cmp-col--featured .cmp-yes { color: #b8860b; }
.cmp-col--rainbow .cmp-yes { color: #e8447a; }

.cmp-cta-row td { padding: 30px 24px; }
.cmp-btn { width: 100%; font-size: 1rem; padding: 16px 0; }

/* ── Key perks sub-label ── */
.key-perks small {
  display: block;
  font-size: 0.68rem;
  color: #aaa;
  margin-top: 3px;
  line-height: 1.3;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item.open {
  box-shadow: 0 4px 16px rgba(246,108,49,0.1);
  border-color: rgba(246,108,49,0.35);
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.faq-btn:hover { color: var(--orange); }
.faq-btn h3, .faq-question {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  display: inline;
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--orange); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 20px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}
.faq-body p strong { color: var(--text); }
.faq-item.open .faq-body {
  max-height: 600px;
  opacity: 1;
  padding: 0 20px 16px;
}

@keyframes shimmer {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}
.loading-pulse { animation: shimmer 1.2s ease-in-out infinite; }

/* ── Scroll animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Countdown bar ── */
/* ── Prix promo (partout sur le site) ── */
.promo-price-old,
.cart-price-old,
.modal-price-old {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: #888;
  font-weight: 500;
  font-size: 0.85em;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.promo-price-new,
.cart-price-new,
.modal-price-new {
  color: var(--orange) !important;
  font-weight: 800;
}
#modal[data-product="aot-plus"] .modal-price-new { color: #6b7280 !important; }
#modal[data-product="aot-plus-plus"] .modal-price-new { color: #b8860b !important; }
#modal[data-product="aot-plus-plus-plus"] .modal-price-new { color: #e8447a !important; }
/* Badge -X% coin de carte */
.promo-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}
/* Sur les cartes avec déjà un badge "populaire", descendre le badge promo en bas */
.grade-card:has(.grade-badge) .promo-card-badge {
  top: auto;
  bottom: 14px;
}
.promo-card-badge {
  background: linear-gradient(135deg, #b5459c, #f4a261);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(181,69,156,.35);
}
.grade-card, .key-card { position: relative; } /* nécessaire pour le badge absolu */

/* ── Barre promo ── */
.promo-bar {
  display: none;
  background: linear-gradient(90deg, #b5459c 0%, #e0729a 40%, #f4a261 100%);
  color: #fff;
  padding: 9px 20px;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 60px;
  z-index: 91;
  font-size: 0.83rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.promo-bar.active { display: flex; }
.promo-label {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 800;
}
.promo-msg { opacity: .95; }
.promo-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 1.5px dashed rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.promo-code-pill:hover  { background: rgba(255,255,255,0.32); border-color: #fff; }
.promo-code-pill.copied { background: rgba(255,255,255,0.4); }
.promo-timer {
  font-size: 0.78rem;
  opacity: .85;
  font-variant-numeric: tabular-nums;
  font-family: 'DM Mono', monospace;
}
.promo-timer:empty { display: none; }
@media (max-width: 480px) {
  .promo-msg  { display: none; }
  .promo-bar  { top: 56px; }
}

/* ── Coupon cart ── */
.cart-coupon {
  margin: 0 16px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.cart-coupon-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.cart-coupon-header svg { opacity: .6; flex-shrink: 0; }
.cart-coupon-hint {
  margin-left: auto;
  background: rgba(246,108,49,.12);
  border: 1px dashed var(--orange);
  color: var(--orange);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s;
}
.cart-coupon-hint:hover { background: rgba(246,108,49,.22); }
.cart-coupon-row { display: flex; gap: 7px; }
.cart-coupon-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.83rem;
  font-family: 'DM Mono', monospace;
  padding: 7px 11px;
  outline: none;
  transition: border-color .2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-coupon-input::placeholder { text-transform: none; letter-spacing: 0; font-family: inherit; color: var(--muted); font-size: 0.78rem; }
.cart-coupon-input:focus { border-color: var(--orange); }
.cart-coupon-input:disabled { opacity: .8; }
.cart-coupon-input.input-error { border-color: #ef4444; }
.cart-coupon-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  cursor: pointer;
  transition: opacity .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
}
.cart-coupon-btn:hover:not(:disabled) { opacity: .85; }
.cart-coupon-btn:disabled { background: #4ade80; opacity: 1; cursor: default; }
.cart-coupon-status { font-size: 0.73rem; margin-top: 6px; min-height: 0; line-height: 1.4; }
.cart-coupon-status.success { color: #4ade80; }
.cart-coupon-status.error   { color: #f87171; }

.countdown-bar {
  display: none;
  background: linear-gradient(90deg, #e65100 0%, var(--orange) 100%);
  color: #fff;
  padding: 10px 20px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 64px;
  z-index: 90;
  font-size: 0.83rem;
  font-weight: 600;
}
.countdown-bar.active { display: flex; }
.countdown-label {
  background: rgba(255,255,255,0.22);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 800;
}
.countdown-timer {
  display: flex;
  gap: 4px;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 30px;
}
.countdown-unit b { font-size: 1.05rem; font-weight: 900; line-height: 1.1; }
.countdown-unit small { font-size: 0.58rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.3px; }
.countdown-sep { font-weight: 900; opacity: 0.6; margin: 0 1px; padding-bottom: 6px; }
@media (max-width: 480px) {
  .countdown-msg { display: none; }
  .countdown-bar { top: 56px; }
}

/* ── Maintenance overlay ── */
/* ── Maintenance overlay ── */
.maintenance-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.maintenance-overlay.active { display: flex; }

/* Fond animé — particules flottantes */
.maint-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.maint-bg span {
  position: absolute;
  display: block;
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.15;
  animation: maintFloat 8s ease-in-out infinite;
}
.maint-bg span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s;   animation-duration: 7s; }
.maint-bg span:nth-child(2) { left: 80%; top: 15%; animation-delay: 1.5s; animation-duration: 9s; width: 4px; height: 4px; }
.maint-bg span:nth-child(3) { left: 60%; top: 70%; animation-delay: 3s;   animation-duration: 6s; width: 8px; height: 8px; }
.maint-bg span:nth-child(4) { left: 25%; top: 80%; animation-delay: 0.8s; animation-duration: 10s; }
.maint-bg span:nth-child(5) { left: 90%; top: 55%; animation-delay: 2s;   animation-duration: 8s; width: 5px; height: 5px; }
@keyframes maintFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
  50%       { transform: translateY(-30px) scale(1.3); opacity: 0.3; }
}

/* Card centrale */
.maint-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  width: 100%;
  gap: 0;
}

/* Logo + anneaux */
.maint-logo-wrap {
  position: relative;
  width: 90px; height: 90px;
  margin-bottom: 32px;
}
.maintenance-logo {
  width: 90px; height: 90px;
  object-fit: contain;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  animation: maintPulse 3s ease-in-out infinite;
}
@keyframes maintPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}
.maint-rings {
  position: absolute;
  inset: -8px;
}
.maint-rings span {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 2px solid var(--orange);
  animation: maintRing 3s ease-out infinite;
}
.maint-rings span:nth-child(2) { animation-delay: 1.5s; }
@keyframes maintRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Textes */
.maintenance-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.maintenance-msg {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 10px;
}
.maintenance-return {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0;
  min-height: 1.2em;
}

/* Cartes IP serveur */
.maint-servers {
  display: flex;
  gap: 12px;
  margin: 28px 0 32px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.maint-server-card {
  flex: 1;
  min-width: 180px;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: border-color .2s, transform .2s;
}
.maint-server-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.maint-server-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.maint-server-badge.java    { background: rgba(34,197,94,.15);  color: #4ade80; }
.maint-server-badge.bedrock { background: rgba(168,85,247,.15); color: #c084fc; }
.maint-server-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.maint-server-ip {
  font-size: 0.82rem;
  font-weight: 700;
  word-break: break-all;
  color: #fff;
  font-family: 'DM Mono', 'Courier New', monospace;
}
.maint-server-port {
  font-size: 0.8rem;
  color: #666;
  font-family: 'DM Mono', 'Courier New', monospace;
}
.maint-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #222;
  border: 1px solid #333;
  color: #aaa;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.maint-copy-btn:hover { background: #2a2a2a; color: #fff; border-color: #444; }
.maint-copy-btn.copied { background: rgba(34,197,94,.15); color: #4ade80; border-color: #4ade80; }

/* Champ mot de passe bypass */
.maint-password-wrap {
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}
.maint-password-input {
  width: 100%;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  padding: 11px 16px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.1em;
}
.maint-password-input::placeholder { color: #444; letter-spacing: 0; font-family: inherit; }
.maint-password-input:focus { border-color: #444; }
.maint-password-input.maint-input-error { border-color: #ef4444; animation: maintShake .3s ease; }
.maint-password-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 6px;
  min-height: 1em;
  text-align: center;
}
@keyframes maintShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

/* Bouton Discord */
.maintenance-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865f2;
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(88,101,242,.35);
}
.maintenance-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(88,101,242,.5);
}

/* Light mode override (maintenance toujours sombre) */
[data-theme="light"] .maintenance-overlay { background: #0a0a0a; }

/* ── Cards clickable ── */
[data-product] { cursor: pointer; }

/* ── Nav Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.nav-cart-btn {
  position: relative;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.nav-cart-btn:hover { border-color: var(--orange); background: var(--orange-bg); }

.cart-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  border: 2px solid var(--white);
}

.nav-auth { position: relative; display: flex; align-items: center; }

.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-login-btn:hover { opacity: .82; }

.nav-user { display: none; align-items: center; position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s;
  white-space: nowrap;
}
.nav-user-btn:hover { border-color: var(--orange); }

.nav-avatar {
  width: 28px; height: 28px;
  border-radius: 6px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.nav-username { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.nav-caret { color: var(--muted); flex-shrink: 0; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  min-width: 190px;
  overflow: hidden;
  display: none;
  z-index: 200;
}
.nav-dropdown.open { display: block; }

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: #e53935;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.dropdown-item:hover { background: #fff5f5; }

/* ── Cart Player Head ── */
.cart-player-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cart-player-head img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  image-rendering: pixelated;
  border: 2px solid var(--orange);
  box-shadow: 0 0 0 3px rgba(246,108,49,0.15);
}
.cart-player-head span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 400px;
  background: var(--white);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.cart-close {
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background .15s;
}
.cart-close:hover { background: #ebebeb; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 220px;
  color: #bbb;
  font-size: 0.88rem;
  font-weight: 500;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-left { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.cart-item-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 3px;
}
.qty-btn {
  background: none;
  border: none;
  min-width: 44px; min-height: 44px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: background .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.qty-btn:hover { background: var(--border); }
.qty-val {
  font-size: 0.84rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.cart-item-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
}
.cart-item-price span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  display: flex; align-items: center; justify-content: center;
  padding: 2px;
  min-width: 44px; min-height: 44px;
  transition: color .15s;
}
.cart-remove:hover { color: #e53935; }

/* ── Cart Upsell ── */
.cart-upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff4ed;
  border: 1.5px dashed #f9b598;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 16px 0;
}
.upsell-text { flex: 1; min-width: 0; }
.upsell-title { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.upsell-sub { font-size: 0.7rem; color: var(--muted); margin-top: 1px; }
.upsell-btn {
  flex-shrink: 0;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.upsell-btn:hover { background: var(--orange2); }

.cart-footer {
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.creator-code-box { margin-bottom: 12px; }
.creator-code-form { display: flex; gap: 6px; }
.creator-code-form input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}
.creator-code-form button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.creator-code-form button:hover { background: var(--orange2); }
.creator-code-form button:disabled { opacity: 0.6; cursor: default; }
.creator-code-err { color: #e0454f; font-size: 0.72rem; margin: 4px 0 0; }
.creator-code-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--orange-bg);
  border: 1px solid rgba(246,108,49,0.3);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--text);
}
.creator-code-applied button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.creator-code-applied button:hover { color: var(--text); }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cart-total-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.cart-total-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
}
.cart-checkout-btn {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.cart-checkout-btn:hover { background: var(--orange2); transform: translateY(-1px); }

.cart-continue-btn {
  display: block;
  width: 100%;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  margin-top: 8px;
  transition: border-color .2s, color .2s;
}
.cart-continue-btn:hover { border-color: var(--orange); color: var(--orange); }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}

.cart-trust {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}
.cart-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}
.cart-trust-item svg { flex-shrink: 0; color: #4caf50; }

/* ── Login Modal ── */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.login-overlay.open { opacity: 1; pointer-events: all; }

.login-modal {
  background: var(--white);
  border-radius: 22px;
  max-width: 340px;
  width: 100%;
  padding: 40px 32px 32px;
  position: relative;
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform .22s cubic-bezier(0.34,1.4,0.64,1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.login-overlay.open .login-modal { transform: translateY(0) scale(1); }

.login-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.07);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background .15s;
}
.login-close:hover { background: rgba(0,0,0,0.13); }

.login-avatar-wrap {
  width: 110px;
  height: 0;
  border-radius: 18px;
  background: #f2f2f2;
  margin: 0 auto;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  visibility: hidden;
  opacity: 0;
  transition: background .2s, opacity .3s, height .3s ease, margin-bottom .3s ease;
}
.login-avatar-wrap.has-avatar {
  background: transparent;
  visibility: visible;
  opacity: 1;
  height: 160px;
  margin-bottom: 22px;
}
.login-avatar-placeholder {
  position: absolute;
  transition: opacity .2s;
}
.login-avatar-wrap.has-avatar .login-avatar-placeholder { opacity: 0; }
.login-avatar-img {
  width: 110px; height: 160px;
  image-rendering: pixelated;
  object-fit: contain;
  display: block;
  opacity: 0;
  position: absolute;
  transition: opacity .3s;
}
.login-avatar-wrap.has-avatar .login-avatar-img { opacity: 1; }

.login-title {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.login-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}
.login-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
  text-align: center;
  background: var(--white);
}
.login-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(246,108,49,0.1); }
.login-submit-btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.login-submit-btn:hover { background: var(--orange2); transform: translateY(-1px); }

/* ── Responsive nav-actions ── */
@media (max-width: 480px) {
  .login-label { display: none; }
  .nav-login-btn { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .nav-username { display: none; }
  .nav-caret { display: none; }
  .nav-user-btn { padding: 5px; }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform .22s cubic-bezier(0.34,1.4,0.64,1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.07);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background .15s;
  z-index: 10;
}
.modal-close:hover { background: rgba(0,0,0,0.13); }

.modal-img {
  display: block;
  height: 56px;
  width: auto;
  margin: 20px auto 0;
  object-fit: contain;
}
.modal-img--key {
  height: auto;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  margin: 0;
  border-radius: 0;
}
.modal-content { padding: 22px 24px 28px; }

.modal-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.modal-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}
.modal-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--orange);
  white-space: nowrap;
}
.modal-price span { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
#modal[data-product="aot-plus"] .modal-price { color: #6b7280; }
#modal[data-product="aot-plus-plus"] .modal-price { color: #b8860b; }
#modal[data-product="aot-plus-plus-plus"] .modal-price { color: #e8447a; }

.modal-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.modal-section { margin-bottom: 16px; }
.modal-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.modal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.modal-section li {
  font-size: 0.84rem;
  color: #444;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.modal-section li::before {
  content: '—';
  color: var(--orange);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}
#modal[data-product="aot-plus"] .modal-section li::before { color: #8a8f98; }
#modal[data-product="aot-plus-plus"] .modal-section li::before { color: #b8860b; }
#modal[data-product="aot-plus-plus-plus"] .modal-section li::before { color: #e8447a; }
.modal-section li code {
  background: #f3f3f3;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.82em;
  font-family: monospace;
}

.modal-items { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.modal-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.modal-item:last-child { border-bottom: none; }
.modal-item-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.modal-item-sub {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}
.modal-item-warn {
  font-size: 0.68rem;
  font-weight: 700;
  color: #d32f2f;
  margin-top: 2px;
}
.modal-item-info {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange2);
  margin-top: 2px;
}

.modal-choose {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
  font-style: italic;
}

/* ── Quantity selector (modal keys) ─────────────────────────── */
.qty-selector {
  margin: 16px 0 4px;
}
.qty-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 8px;
}
.qty-btns, .modal-qty-btns {
  display: flex;
  gap: 8px;
}
.modal-qty-btn {
  flex: 1;
  padding: 10px 4px 8px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color .15s, background .15s, color .15s;
}
.modal-qty-btn:hover { border-color: var(--orange); }
.modal-qty-btn.active {
  border-color: var(--orange);
  background: var(--orange);
}
.qty-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  transition: color .15s;
}
.modal-qty-btn.active .qty-num { color: #fff; }
.qty-save {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--orange);
  background: var(--orange-bg);
  padding: 1px 5px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.modal-qty-btn.active .qty-save {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.qty-total {
  margin-top: 10px;
  min-height: 36px;
}
.qty-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.qty-bulk-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--orange-bg);
  color: var(--orange2);
  padding: 2px 7px;
  border-radius: 20px;
}
.qty-promo-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 7px;
  border-radius: 20px;
}
.qty-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qty-unit {
  font-size: 0.78rem;
  color: var(--muted);
}
.qty-total-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange);
}
/* Cart bulk discount badges */
.cart-bulk-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--orange-bg);
  color: var(--orange2);
  padding: 1px 5px;
  border-radius: 10px;
  margin-right: 3px;
}
.cart-promo-mini {
  font-size: 0.65rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1px 5px;
  border-radius: 10px;
  margin-right: 3px;
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.modal-btn {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px;
  border: none;
  border-radius: 999px;
  text-align: center;
  transition: background .2s, transform .15s;
}
.modal-btn:hover { background: var(--orange2); transform: translateY(-1px); }
.modal-btn--gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.modal-btn--rainbow {
  background: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a);
  box-shadow: 0 4px 16px rgba(255,95,162,0.35);
}
.modal-btn--green {
  background: #22c55e;
  box-shadow: 0 4px 16px rgba(34,197,94,0.35);
}
.modal-btn--purple {
  background: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139,92,246,0.35);
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Focus indicators globaux (accessibilité clavier) ── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ── Dark mode toggle ── */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.dark-toggle:hover { border-color: var(--orange); color: var(--orange); }
.dark-toggle .icon-sun { display: none; }
.dark-toggle .icon-moon,
.dark-toggle .icon-sun { transition: opacity .2s, transform .2s; }
[data-theme="dark"] .dark-toggle .icon-moon { display: none; }
[data-theme="dark"] .dark-toggle .icon-sun { display: block; }

/* ── Login validation ── */
.login-error {
  font-size: 0.78rem;
  color: #e53935;
  min-height: 1.1em;
  text-align: center;
  margin-top: -4px;
}
.login-input.input-error { border-color: #e53935 !important; }

/* ── Gift option ── */
.modal-gift {
  margin: 14px 0 0;
  padding: 14px;
  background: var(--orange-bg);
  border-radius: var(--r);
  border: 1px solid rgba(246,108,49,0.2);
}
.gift-toggle-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.gift-checkbox { display: none; }
.gift-toggle-ui {
  width: 36px; height: 20px;
  background: #ddd;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.gift-toggle-ui::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left .2s;
}
.gift-checkbox:checked + .gift-toggle-ui { background: var(--orange); }
.gift-checkbox:checked + .gift-toggle-ui::after { left: 19px; }
.gift-fields {
  display: none;
  margin-top: 12px;
}
.gift-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.87rem;
  outline: none;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
}
.gift-input:focus { border-color: var(--orange); }
.gift-error {
  font-size: 0.76rem;
  color: #e53935;
  margin-top: 5px;
  min-height: 1em;
}

/* ── Purchase history (nav dropdown) ── */
.history-section {
  padding: 10px 16px 6px;
  border-bottom: 1px solid var(--border);
}
.history-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.history-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}
.history-names {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-gift {
  font-weight: 400;
  color: var(--orange);
}
.history-date {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --text:     #e2e2e2;
  --muted:    #9a9a9a;
  --border:   #2a2a2a;
  --white:    #1a1a1a;
  --orange-bg:#1e1507;
  --bg:       #111;
}
[data-theme="dark"] body { background: #111; }
[data-theme="dark"] .nav { background: rgba(17,17,17,0.92); border-color: #2a2a2a; }
[data-theme="dark"] .mobile-menu { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .hero-pill { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .grade-card { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .grade-card--featured { border-color: var(--orange); }
[data-theme="dark"] .grade-footer { border-color: #2a2a2a; }
[data-theme="dark"] .grade-header--silver { background: #222; }
[data-theme="dark"] .grade-header--gold { background: #2a2210; }
[data-theme="dark"] .grade-perks li { color: #ccc; }
[data-theme="dark"] .key-card { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .key-card--featured { background: var(--orange-bg); border-color: var(--orange); }
[data-theme="dark"] .section--alt { background: #161616; }
[data-theme="dark"] .cmp-wrap { background: #1a1a1a; }
[data-theme="dark"] .cmp-table th { background: #222; }
[data-theme="dark"] .cmp-feature-col { background: transparent !important; }
[data-theme="dark"] .cmp-col--featured { background: #1e1507 !important; }
[data-theme="dark"] .cmp-col--rainbow { background: rgba(255,95,162,0.1) !important; }
[data-theme="dark"] .cmp-category td { background: #222; color: #888; }
[data-theme="dark"] .cmp-label { color: #ccc; }
[data-theme="dark"] .cmp-label code { background: #2a2a2a; color: #fca98a; }
[data-theme="dark"] .goal-strip { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .goal-bar-bg { background: #2a2a2a; }
[data-theme="dark"] .goal-label { color: var(--orange2); }
[data-theme="dark"] .faq-item { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .faq-btn { color: #e2e2e2; }
[data-theme="dark"] .faq-body p { color: #999; }
[data-theme="dark"] .modal { background: #1a1a1a; }
[data-theme="dark"] .modal-name { color: #e2e2e2; }
[data-theme="dark"] .login-modal { background: #1a1a1a; }
[data-theme="dark"] .login-title { color: #e2e2e2; }
[data-theme="dark"] .login-sub { color: #888; }
[data-theme="dark"] .login-input { background: #242424; border-color: #3a3a3a; color: #e2e2e2; }
[data-theme="dark"] .login-input::placeholder { color: #555; }
[data-theme="dark"] .gift-input { background: #242424; border-color: #3a3a3a; color: #e2e2e2; }
[data-theme="dark"] .gift-input::placeholder { color: #555; }
[data-theme="dark"] .cart-drawer { background: #1a1a1a; }
[data-theme="dark"] .cart-header { border-color: #2a2a2a; }
[data-theme="dark"] .cart-close { background: #2a2a2a; }
[data-theme="dark"] .cart-trust { border-color: #2a2a2a; background: #1a1a1a; }
[data-theme="dark"] .cart-item { border-color: #2a2a2a; }
[data-theme="dark"] .cart-remove { background: #2a2a2a; }
[data-theme="dark"] .nav-dropdown { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .history-section { border-color: #2a2a2a; }
[data-theme="dark"] .history-item { border-color: #2a2a2a; }
[data-theme="dark"] .footer { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .footer-copy { color: #999; }
[data-theme="dark"] .footer-info { color: #999; }
[data-theme="dark"] .footer-dot { color: #666; }
[data-theme="dark"] .footer-legal-links a { color: #999; }
[data-theme="dark"] .footer-legal-links span { color: #666; }
[data-theme="dark"] .dark-toggle .icon-moon { display: none; }
[data-theme="dark"] .dark-toggle .icon-sun { display: block; }
[data-theme="dark"] .nav-login-btn { background: rgba(255,255,255,0.1); color: #e2e2e2; }
[data-theme="dark"] .modal-section li code { background: #2a2a2a; color: #fca98a; }
[data-theme="dark"] .modal-section li { color: #c8c8c8; }
[data-theme="dark"] .modal-section-title { color: #e2e2e2; }
[data-theme="dark"] .modal-type { color: #888; }
[data-theme="dark"] .modal-divider { border-color: #2a2a2a; }
[data-theme="dark"] .modal-item { border-color: #2a2a2a; }
[data-theme="dark"] .modal-item-name { color: #e2e2e2; }
[data-theme="dark"] .modal-item-sub { color: #888; }
[data-theme="dark"] .modal-choose { color: #aaa; }
/* Gift toggle dark mode */
[data-theme="dark"] .modal-gift { background: rgba(246,108,49,0.07); border-color: rgba(246,108,49,0.18); }
[data-theme="dark"] .gift-toggle-label { color: #e2e2e2; }
[data-theme="dark"] .gift-toggle-ui { background: #3a3a3a; }
[data-theme="dark"] .gift-toggle-ui::after { background: #ccc; }
[data-theme="dark"] .cmp-table tbody tr:hover:not(.cmp-category):not(.cmp-cta-row) { background: #222; }
[data-theme="dark"] .cmp-table tbody tr:hover:not(.cmp-category):not(.cmp-cta-row) td.cmp-col--featured { background: #241a07 !important; }

/* ── Dark mode : textes et contrastes manquants ── */
[data-theme="dark"] .faq-body { color: #d0d0d0; }
[data-theme="dark"] .faq-body p strong { color: #e2e2e2; }
[data-theme="dark"] .grade-card .grade-price { color: var(--orange); }
[data-theme="dark"] .grade-card .grade-price span { color: #9a9a9a; }
[data-theme="dark"] .grade-card .grade-type { color: #9a9a9a; }
[data-theme="dark"] .key-price { color: var(--orange); }
[data-theme="dark"] .key-footer { border-color: #2a2a2a; }
[data-theme="dark"] .cmp-table td, [data-theme="dark"] .cmp-table th { color: #e2e2e2; }
[data-theme="dark"] .cmp-no { color: #555; }
[data-theme="dark"] .hero p { color: #9a9a9a; }
[data-theme="dark"] .section-desc { color: #9a9a9a; }
[data-theme="dark"] .section-desc strong { color: #e2e2e2; }
[data-theme="dark"] .nav-link { color: #9a9a9a; }
[data-theme="dark"] .nav-link:hover { color: #e2e2e2; }
[data-theme="dark"] .hero-ip { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .hero-ip-text { color: #e2e2e2; }

/* ── Dark mode : panier ── */
[data-theme="dark"] .cart-drawer { color: #e2e2e2; }
[data-theme="dark"] .cart-item-name { color: #e2e2e2; }
[data-theme="dark"] .cart-item-meta { color: #888; }
[data-theme="dark"] .cart-item-price { color: var(--orange); }
[data-theme="dark"] .cart-item-price span { color: #888; }
[data-theme="dark"] .cart-remove { color: #888; }
[data-theme="dark"] .cart-remove:hover { background: #3a1a1a; color: #ff6b6b; }
[data-theme="dark"] .cart-footer { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .creator-code-form input { background: #111; border-color: #333; color: #eee; }
[data-theme="dark"] .creator-code-applied { background: #1e1507; border-color: #3a2a10; }
[data-theme="dark"] .cart-total-label { color: #9a9a9a; }
[data-theme="dark"] .cart-total-val { color: #e2e2e2; }
[data-theme="dark"] .cart-empty { color: #888; }
[data-theme="dark"] .cart-upsell { background: #1e1507; border-color: #3a2a10; }
[data-theme="dark"] .upsell-title { color: #e2e2e2; }
[data-theme="dark"] .upsell-sub { color: #888; }
[data-theme="dark"] .cart-qty { background: #2a2a2a; }
[data-theme="dark"] .qty-btn { color: #e2e2e2; }
[data-theme="dark"] .qty-btn:hover { background: #333; }
[data-theme="dark"] .qty-val { color: #e2e2e2; }
[data-theme="dark"] .cart-continue-btn { color: #888; border-color: #333; }
[data-theme="dark"] .cart-continue-btn:hover { color: #e2e2e2; border-color: var(--orange); }
[data-theme="dark"] .cart-title { color: #e2e2e2; }
[data-theme="dark"] .cart-trust-item { color: #888; }

/* ── Dark mode : tête joueur panier ── */
[data-theme="dark"] .cart-player-head span { color: #e2e2e2; }

/* ── Dark mode : login modal wrapper avatar ── */
[data-theme="dark"] .login-avatar-wrap { background: #2a2a2a; }
[data-theme="dark"] .login-avatar-wrap.has-avatar { background: transparent; }
[data-theme="dark"] .login-close { color: #e2e2e2; }

.modal-btn--gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 20px rgba(245,158,11,0.45);
  transform: translateY(-1px);
}
.modal-btn--rainbow:hover {
  background-position: 100% 50%;
  box-shadow: 0 4px 20px rgba(176,75,255,0.5);
  transform: translateY(-1px);
}
.modal-btn--green:hover {
  background: #16a34a;
  box-shadow: 0 4px 20px rgba(34,197,94,0.45);
  transform: translateY(-1px);
}
.modal-btn--purple:hover {
  background: #7c3aed;
  box-shadow: 0 4px 20px rgba(139,92,246,0.45);
  transform: translateY(-1px);
}

/* ── Respect dark mode OS preference si aucune préférence sauvegardée ── */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --white: #111;
    --bg: #161616;
    --text: #e2e2e2;
    --muted: #888;
    --border: #2a2a2a;
    --orange-bg: #1e1507;
  }
  html:not([data-theme="light"]) .feature-card { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .section--alt { background: #161616; }
  html:not([data-theme="light"]) .cmp-wrap { background: #1a1a1a; }
  html:not([data-theme="light"]) .cmp-table th { background: #222; }
  html:not([data-theme="light"]) .cmp-feature-col { background: transparent !important; }
  html:not([data-theme="light"]) .cmp-col--featured { background: #1e1507 !important; }
  html:not([data-theme="light"]) .cmp-col--rainbow { background: rgba(255,95,162,0.1) !important; }
  html:not([data-theme="light"]) .cmp-category td { background: #222; color: #888; }
  html:not([data-theme="light"]) .cmp-label { color: #ccc; }
  html:not([data-theme="light"]) .cmp-label code { background: #2a2a2a; color: #fca98a; }
  html:not([data-theme="light"]) .goal-strip { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .goal-bar-bg { background: #2a2a2a; }
  html:not([data-theme="light"]) .goal-label { color: var(--orange2); }
  html:not([data-theme="light"]) .faq-item { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .faq-btn { color: #e2e2e2; }
  html:not([data-theme="light"]) .nav { background: #111; border-color: #222; }
  html:not([data-theme="light"]) .grade-card { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .grade-header--silver { background: #222; }
  html:not([data-theme="light"]) .grade-header--gold { background: #2a2210; }
  html:not([data-theme="light"]) .rainbow-price { color: #ff8fb3; }
  html:not([data-theme="light"]) .grade-footer { border-color: #2a2a2a; }
  html:not([data-theme="light"]) .grade-perks li { color: #ccc; }
  html:not([data-theme="light"]) .key-card { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .modal-section li code { background: #2a2a2a; color: #fca98a; }
  html:not([data-theme="light"]) .nav-login-btn { background: rgba(255,255,255,0.1); color: #e2e2e2; }
  html:not([data-theme="light"]) .maintenance-overlay { background: #111; }
  html:not([data-theme="light"]) .dark-toggle .icon-moon { display: none; }
  html:not([data-theme="light"]) .dark-toggle .icon-sun { display: block; }
}

/* ── Tebex Payment iframe modal ─────────────────────────────────────── */
.tebex-pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.tebex-pay-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.tebex-pay-modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  height: min(780px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  transform: translateY(8px);
  transition: transform .2s;
}
.tebex-pay-overlay.open .tebex-pay-modal {
  transform: translateY(0);
}
.tebex-pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tebex-pay-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.tebex-pay-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.tebex-pay-close:hover { background: var(--border); color: var(--text); }
.tebex-pay-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.tebex-pay-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.tebex-pay-loading .btn-spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
}
.tebex-pay-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity .3s;
}
.tebex-pay-frame.loaded {
  opacity: 1;
}
.tebex-pay-error {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.tebex-pay-error.show {
  display: flex;
}
.tebex-pay-error svg {
  color: var(--orange);
}
@media (max-width: 560px) {
  .tebex-pay-modal {
    max-width: 100%;
    height: calc(100vh - 40px);
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.fx-force) *, html:not(.fx-force) *::before, html:not(.fx-force) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Wishlist (heart button sur cards) ── */
.grade-card, .key-card { position: relative; }
.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, transform .15s, background .15s, border-color .15s;
  z-index: 2;
  padding: 0;
  backdrop-filter: blur(4px);
}
.wish-btn:hover { color: #e53935; transform: scale(1.08); border-color: #ffb3b0; }
.wish-btn.active { color: #e53935; border-color: #ffb3b0; background: #fff5f5; }
.wish-btn.active svg { fill: #e53935; }
[data-theme="dark"] .wish-btn { background: rgba(30,30,35,0.92); border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .wish-btn.active { background: rgba(229,57,53,0.18); border-color: rgba(229,57,53,0.6); }

/* ── Promo code input dans panier ── */
.promo-input-box {
  margin: 0 0 14px;
  padding: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
}
.promo-input-row { display: flex; gap: 8px; }
.promo-code-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: 'DM Mono', 'Plus Jakarta Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .15s;
}
.promo-code-input::placeholder { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.promo-code-input:focus { outline: none; border-color: var(--orange); }
.promo-apply-btn {
  padding: 9px 16px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.promo-apply-btn:hover { opacity: .85; }
.promo-apply-btn:active { transform: scale(.96); }
.promo-status {
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 600;
  min-height: 16px;
  line-height: 1.3;
}
.promo-status[data-state="ok"]  { color: #2e7d32; }
.promo-status[data-state="err"] { color: #c62828; }
[data-theme="dark"] .promo-status[data-state="ok"]  { color: #66bb6a; }
[data-theme="dark"] .promo-status[data-state="err"] { color: #ef5350; }

/* ── Hero dot offline state ── */
.hero-dot.offline {
  background: #e53935 !important;
  box-shadow: 0 0 5px #e53935 !important;
}
.hero-dot.offline { animation: none; }

/* ── Category Cards (landing page) ── */
.shop-categories {
  width: 100%;
  padding: 48px 28px 56px;
  max-width: 1140px;
  margin: 0 auto;
}
.categories-heading {
  text-align: center;
  margin-bottom: 40px;
}
.categories-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text);
}
.categories-heading p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.category-card:hover { transform: translateY(-4px); }
.category-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.category-card:hover::after { opacity: 0.1; transform: scale(1.1); }
.category-card--grades { border-color: rgba(246,108,49,0.25); }
.category-card--grades:hover { border-color: var(--orange); box-shadow: 0 16px 48px rgba(246,108,49,0.14); }
.category-card--grades::after { background: var(--orange); }
.category-card--coins { border-color: rgba(234,179,8,0.25); }
.category-card--coins:hover { border-color: #d97706; box-shadow: 0 16px 48px rgba(234,179,8,0.14); }
.category-card--coins::after { background: #eab308; }
.category-card--crates { border-color: rgba(139,92,246,0.25); }
.category-card--crates:hover { border-color: #8b5cf6; box-shadow: 0 16px 48px rgba(139,92,246,0.14); }
.category-card--crates::after { background: #8b5cf6; }
.category-card--bundles { border-color: rgba(34,197,94,0.25); }
.category-card--bundles:hover { border-color: #22c55e; box-shadow: 0 16px 48px rgba(34,197,94,0.14); }
.category-card--bundles::after { background: #22c55e; }
.category-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.category-icon img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.category-card--grades .category-icon { background: rgba(246,108,49,0.1); color: var(--orange-text); }
.category-card--coins .category-icon { background: rgba(234,179,8,0.1); color: #d97706; }
.category-card--crates .category-icon { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.category-card--bundles .category-icon { background: rgba(34,197,94,0.1); color: #16a34a; }
.category-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--text);
}
.category-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.category-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 999px;
  width: fit-content;
  color: #fff;
  transition: transform .15s, opacity .15s;
  text-decoration: none;
}
.category-cta:hover { transform: translateX(3px); opacity: .9; }
.category-card--grades .category-cta { background: var(--orange); }
.category-card--coins .category-cta { background: #d97706; }
.category-card--crates .category-cta { background: #8b5cf6; }
.category-card--bundles .category-cta { background: #16a34a; }
.category-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
}
.category-badge--soon { background: #f3f4f6; color: #9ca3af; }

/* ── Sub-page header ── */
.page-hero {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 28px 36px;
}
.page-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
  margin-bottom: 16px;
}
.page-hero-back:hover { color: var(--orange); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
}

/* ── Coming soon ── */
.coming-soon {
  max-width: 560px;
  margin: 60px auto 80px;
  padding: 0 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.coming-soon-icon {
  width: 80px; height: 80px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.coming-soon h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}
.coming-soon p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.coming-soon .back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 8px;
  transition: background .2s;
}
.coming-soon .back-home:hover { background: var(--orange2); }

/* ── btn-grade--silver ── */
.btn-grade--silver {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  box-shadow: 0 4px 14px rgba(107,114,128,0.3);
}
.btn-grade--silver:hover {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

/* ── btn-grade--gold ── */
.btn-grade--gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.btn-grade--gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

/* ── btn-grade--rainbow ── */
.btn-grade--rainbow {
  background: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a);
  background-size: 180% 100%;
  box-shadow: 0 4px 14px rgba(255,95,162,0.35);
  transition: background-position .4s;
}
.btn-grade--rainbow:hover {
  background-position: 100% 50%;
}
.silver-price { color: #6b7280; }
.gold-price { color: #b8860b; }
.rainbow-price { color: #e8447a; }
[data-theme="dark"] .rainbow-price { color: #ff8fb3; }
[data-theme="dark"] .grade-card--rainbow { border-color: #e8447a; }
[data-theme="dark"] .grade-header--rainbow { background: #120a1c; }

@media (max-width: 700px) {
  .categories-grid { grid-template-columns: 1fr; }
  .category-title { font-size: 1.6rem; }
}

[data-theme="dark"] .category-card { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .category-card--grades { border-color: rgba(246,108,49,0.2); }
[data-theme="dark"] .category-card--grades:hover { border-color: var(--orange); }
[data-theme="dark"] .category-card--coins { border-color: rgba(234,179,8,0.2); }
[data-theme="dark"] .category-card--coins:hover { border-color: #d97706; }
[data-theme="dark"] .category-card--crates { border-color: rgba(139,92,246,0.2); }
[data-theme="dark"] .category-card--crates:hover { border-color: #8b5cf6; }
[data-theme="dark"] .category-card--bundles { border-color: rgba(34,197,94,0.2); }
[data-theme="dark"] .category-card--bundles:hover { border-color: #22c55e; }
[data-theme="dark"] .category-badge--soon { background: #2a2a2a; color: #666; }
[data-theme="dark"] .category-card--grades .category-icon { background: rgba(246,108,49,0.08); color: var(--orange); }
[data-theme="dark"] .category-card--coins .category-icon { background: rgba(234,179,8,0.08); }
[data-theme="dark"] .category-card--crates .category-icon { background: rgba(139,92,246,0.08); }
[data-theme="dark"] .category-card--bundles .category-icon { background: rgba(34,197,94,0.08); }
[data-theme="dark"] .coming-soon h2 { color: #e2e2e2; }
[data-theme="dark"] .page-hero h1 { color: #e2e2e2; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .category-card { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .category-card--grades { border-color: rgba(246,108,49,0.2); }
  html:not([data-theme="light"]) .category-card--grades .category-icon { background: rgba(246,108,49,0.08); color: var(--orange); }
  html:not([data-theme="light"]) .category-card--coins { border-color: rgba(234,179,8,0.2); }
  html:not([data-theme="light"]) .category-card--crates { border-color: rgba(139,92,246,0.2); }
  html:not([data-theme="light"]) .category-card--bundles { border-color: rgba(34,197,94,0.2); }
  html:not([data-theme="light"]) .category-badge--soon { background: #2a2a2a; color: #666; }
}

/* ════════════════════════════════════════════════
   HERO IMPROVEMENTS — particles, parallax, CTA
   ════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-left, .hero-right { position: relative; z-index: 1; }
.hero-block {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, rgba(246,108,49,0.18) 0%, rgba(247,125,73,0.08) 100%);
  border-radius: 8px;
  filter: blur(1px);
  opacity: 0.5;
  transform: rotate(15deg);
  box-shadow: inset 0 0 0 1px rgba(246,108,49,0.15);
}
.hero-block--1 { width: 60px; height: 60px; top: 8%; left: 6%; animation: floatBlock 18s ease-in-out infinite; }
.hero-block--2 { width: 38px; height: 38px; top: 60%; left: 12%; animation: floatBlock 22s ease-in-out infinite reverse; animation-delay: -3s; }
.hero-block--3 { width: 80px; height: 80px; top: 16%; right: 8%; animation: floatBlock 26s ease-in-out infinite; animation-delay: -7s; opacity: 0.35; }
.hero-block--4 { width: 28px; height: 28px; top: 75%; right: 22%; animation: floatBlock 20s ease-in-out infinite reverse; animation-delay: -5s; }
.hero-block--5 { width: 50px; height: 50px; bottom: 12%; left: 38%; animation: floatBlock 24s ease-in-out infinite; animation-delay: -9s; opacity: 0.3; }
.hero-block--6 { width: 22px; height: 22px; top: 30%; left: 48%; animation: floatBlock 16s ease-in-out infinite reverse; opacity: 0.45; }
@keyframes floatBlock {
  0%,100% { transform: rotate(15deg) translate3d(0,0,0); }
  50% { transform: rotate(25deg) translate3d(8px,-14px,0); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.fx-force) .hero-block { animation: none !important; }
}

.hero-logo-wrap {
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}

.cta-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--orange);
  border: 2px solid var(--orange);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.cta-shop:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}
.cta-shop svg { flex-shrink: 0; }
[data-theme="dark"] .cta-shop { background: transparent; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .cta-shop { background: transparent; }
}
.cta-join {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(246,108,49,0.35), 0 2px 4px rgba(246,108,49,0.2);
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  position: relative;
  white-space: nowrap;
  font-family: inherit;
  animation: ctaPulse 2.4s ease-in-out infinite;
}
.cta-join:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(246,108,49,0.5), 0 2px 6px rgba(246,108,49,0.3);
  animation-play-state: paused;
}
.cta-join:active { transform: translateY(0) scale(0.98); }
.cta-join:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta-join svg { flex-shrink: 0; }
.cta-join.copied {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 8px 20px rgba(34,197,94,0.4);
  animation: copiedBump .4s ease;
}
.cta-join.copied .cta-join-copy { display: none; }
.cta-join.copied .cta-join-check { display: inline !important; }
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 8px 20px rgba(246,108,49,0.35), 0 0 0 0 rgba(246,108,49,0.4); }
  50% { box-shadow: 0 8px 20px rgba(246,108,49,0.35), 0 0 0 12px rgba(246,108,49,0); }
}
@keyframes copiedBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.fx-force) .cta-join { animation: none; }
  html:not(.fx-force) .hero-logo-wrap { transition: none; }
}

/* ════════════════════════════════════════════════
   POURQUOI AOTSMP
   ════════════════════════════════════════════════ */
.why-aot {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 28px 16px;
}
.why-aot-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text);
  text-align: center;
  margin-bottom: 36px;
}
.why-aot-title em { font-style: normal; color: var(--orange); }
.why-aot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246,108,49,0.35);
  box-shadow: 0 16px 32px rgba(246,108,49,0.12);
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(246,108,49,0.1);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.why-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
[data-theme="dark"] .why-card { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .why-card h3 { color: #e2e2e2; }
[data-theme="dark"] .why-card:hover { border-color: rgba(246,108,49,0.4); }
[data-theme="dark"] .why-icon { background: rgba(246,108,49,0.12); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .why-card { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .why-card h3 { color: #e2e2e2; }
}
@media (max-width: 900px) {
  .why-aot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════
   CATEGORY CARDS — perks preview + enhanced hover
   ════════════════════════════════════════════════ */
.category-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.category-perks li svg {
  flex-shrink: 0;
  color: var(--orange);
  background: rgba(246,108,49,0.12);
  border-radius: 999px;
  padding: 3px;
  width: 18px; height: 18px;
}
.category-card--crates .category-perks li svg { color: #8b5cf6; background: rgba(139,92,246,0.12); }
[data-theme="dark"] .category-perks li { color: #d2d2d2; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .category-perks li { color: #d2d2d2; }
}

.category-card { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .25s; }
.category-card--grades:hover { box-shadow: 0 20px 60px rgba(246,108,49,0.22), 0 0 0 1px rgba(246,108,49,0.4) inset; }
.category-card--coins:hover { box-shadow: 0 20px 60px rgba(234,179,8,0.22); }
.category-card--crates:hover { box-shadow: 0 20px 60px rgba(139,92,246,0.22), 0 0 0 1px rgba(139,92,246,0.4) inset; }
.category-card--bundles:hover { box-shadow: 0 20px 60px rgba(34,197,94,0.22); }
.category-card:hover { transform: translateY(-6px); }

/* ════════════════════════════════════════════════
   SAISON 2 TEASER
   ════════════════════════════════════════════════ */
.season-teaser {
  max-width: 1140px;
  margin: 24px auto;
  padding: 0 28px;
}
.season-teaser-inner {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1810 100%);
  border-radius: 24px;
  padding: 56px 48px;
  overflow: hidden;
  border: 1px solid rgba(246,108,49,0.25);
}
.season-teaser-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.season-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.season-shape--1 {
  width: 320px; height: 320px;
  background: var(--orange);
  top: -80px; right: -60px;
}
.season-shape--2 {
  width: 240px; height: 240px;
  background: #f59e0b;
  bottom: -80px; left: -40px;
  opacity: 0.22;
}
.season-teaser-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}
.season-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(246,108,49,0.18);
  color: var(--orange);
  border: 1px solid rgba(246,108,49,0.4);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.season-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #fff;
}
.season-desc {
  font-size: 1rem;
  color: #c5c5c5;
  line-height: 1.65;
  max-width: 540px;
}
.season-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.season-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.season-cta-primary:hover { background: #4752c4; transform: translateY(-1px); }
.season-meta {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
}

/* ════════════════════════════════════════════════
   FOOTER ENRICHED — social + made with love
   ════════════════════════════════════════════════ */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #bbb;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.footer-social-link:hover { transform: translateY(-1px); }
.footer-social--twitch:hover { background: #9146FF; color: #fff; border-color: #9146FF; }
.footer-social--youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; }
.footer-social--tiktok:hover { background: #fff; color: #000; border-color: #fff; }
.footer-social-link svg { flex-shrink: 0; }

.footer-love {
  font-size: 0.72rem;
  color: #777;
  font-weight: 500;
  margin-top: 4px;
}
.footer-heart {
  display: inline-block;
  color: #ef4444;
  animation: heartBeat 1.8s ease-in-out infinite;
}
@keyframes heartBeat {
  0%,100% { transform: scale(1); }
  20% { transform: scale(1.25); }
  40% { transform: scale(1); }
  60% { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.fx-force) .footer-heart { animation: none; }
}

/* ════════════════════════════════════════════════
   MOBILE <380 + A11Y
   ════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .why-aot { padding-top: 36px; }
  .season-teaser-inner { padding: 36px 24px; }
  .season-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .hero { padding: 32px 18px 28px; }
  .cta-join { font-size: 0.92rem; padding: 13px 22px; width: 100%; justify-content: center; }
  .hero-ctas-row .cta-discord { width: 100%; justify-content: center; }
  .why-aot-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 20px 18px; }
  .season-teaser-inner { padding: 32px 20px; border-radius: 18px; }
  .season-ctas { flex-direction: column; align-items: stretch; }
  .season-cta-primary { justify-content: center; }
  .footer-social { gap: 6px; }
  .footer-social-link { font-size: 0.7rem; padding: 5px 10px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.8rem; letter-spacing: -0.8px; }
  .hero p { font-size: 0.92rem; }
  .hero-pill { font-size: 0.74rem; padding: 5px 12px; }
  .hero-ip { padding: 8px 12px; }
  .hero-ip-text { font-size: 0.84rem; }
  .category-title { font-size: 1.4rem; }
  .category-card { padding: 24px 20px; }
  .why-aot-title { font-size: 1.4rem; margin-bottom: 24px; }
  .season-title { font-size: 1.3rem; }
  .season-desc { font-size: 0.9rem; }
  .footer-meta { gap: 6px; font-size: 0.74rem; }
  .footer-info { font-size: 0.72rem; }
}

/* a11y — focus visible global pour boutons custom */
.cta-join:focus-visible,
.season-cta-primary:focus-visible,
.footer-social-link:focus-visible,
.why-card:focus-visible,
.category-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: inherit; }

/* ════════════════════════════════════════════════
   MAINTENANCE — Saison 2 teaser insert
   ════════════════════════════════════════════════ */
.maint-season {
  margin: 8px auto 4px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(246,108,49,0.12) 0%, rgba(247,125,73,0.06) 100%);
  border: 1px solid rgba(246,108,49,0.3);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.maint-season-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  background: rgba(246,108,49,0.22);
  color: var(--orange);
  border: 1px solid rgba(246,108,49,0.45);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 11px;
  border-radius: 999px;
  width: fit-content;
}
.maint-season-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #fff;
  margin: 4px 0 0;
}
.maint-season-desc {
  font-size: 0.84rem;
  color: #c5c5c5;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .maint-season { padding: 14px 16px; }
  .maint-season-title { font-size: 1rem; }
  .maint-season-desc { font-size: 0.78rem; }
}

/* ════════════════════════════════════════════════
   KEY-CARD VARIANTS — NOOB/PRO/HACKER/AMETHYST + coins/bundle
   ════════════════════════════════════════════════ */
.key-card--noob { border-color: rgba(234,179,8,0.25); }
.key-card--noob:hover { border-color: #eab308; box-shadow: 0 14px 32px rgba(234,179,8,0.18); }
.key-card--pro { border-color: rgba(246,108,49,0.28); }
.key-card--pro:hover { border-color: var(--orange); box-shadow: 0 14px 32px rgba(246,108,49,0.2); }
.key-card--hacker { border-color: rgba(239,68,68,0.25); }
.key-card--hacker:hover { border-color: #ef4444; box-shadow: 0 14px 32px rgba(239,68,68,0.2); }
.key-card--amethyst { border-color: rgba(139,92,246,0.28); }
.key-card--amethyst:hover { border-color: #8b5cf6; box-shadow: 0 14px 32px rgba(139,92,246,0.2); }
/* .key-card--coins : bordure/survol gérés par palier plus bas (tokens --tier). */
.key-card--bundle { border-color: rgba(34,197,94,0.25); }
.key-card--bundle:hover { border-color: #22c55e; box-shadow: 0 14px 32px rgba(34,197,94,0.18); }

[data-theme="dark"] .key-card--noob { border-color: rgba(234,179,8,0.22); }
[data-theme="dark"] .key-card--pro { border-color: rgba(246,108,49,0.24); }
[data-theme="dark"] .key-card--hacker { border-color: rgba(239,68,68,0.22); }
[data-theme="dark"] .key-card--amethyst { border-color: rgba(139,92,246,0.24); }
[data-theme="dark"] .key-card--bundle { border-color: rgba(34,197,94,0.22); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .key-card--noob { border-color: rgba(234,179,8,0.22); }
  html:not([data-theme="light"]) .key-card--pro { border-color: rgba(246,108,49,0.24); }
  html:not([data-theme="light"]) .key-card--hacker { border-color: rgba(239,68,68,0.22); }
  html:not([data-theme="light"]) .key-card--amethyst { border-color: rgba(139,92,246,0.24); }
  html:not([data-theme="light"]) .key-card--bundle { border-color: rgba(34,197,94,0.22); }
}


/* ════════════════════════════════════════════════
   COIN DYE ICONS — real Minecraft orange dye texture pile
   ════════════════════════════════════════════════ */
/* Carré fixe identique sur les 4 packs : avec `width:auto` la boîte épousait la
   pile (78px pour Starter vs 174px pour Mega) et les cartes paraissaient
   disproportionnées. Taille calée sur la plus grande pile (Mega = 136x104). */
.key-dot--dye {
  background: rgba(246,108,49,0.12);
  border: 1px solid rgba(246,108,49,0.25);
  width: 150px;
  min-width: 150px;
  height: 150px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}
.coin-pile {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
/* Le carré fait 150px pour loger la pile Mega ; brute, la pile Starter (40px)
   n'en remplissait que 27% et la boîte paraissait démesurée. On agrandit les
   petites piles pour resserrer le vide, en gardant la progression de taille
   entre les packs. transform-origin = centre, donc le centrage reste exact. */
[data-product="coins-500"]   .coin-pile { transform: scale(1.8); }
[data-product="coins-2200"]  .coin-pile { transform: scale(1.5); }
[data-product="coins-6250"]  .coin-pile { transform: scale(1.3); }
[data-product="coins-14000"] .coin-pile { transform: scale(1); }
/* sprites 40px sur grille 24px = chevauchement voulu (effet "tas" empilé).
   Sélecteur `.key-dot .dye-px` pour battre `.key-dot img` — taille explicite,
   pas héritée par accident. Les dimensions de `.coin-pile` (inline dans le HTML)
   doivent valoir max(left)+40 x max(top)+40, sinon la pyramide déborde du carré. */
.key-dot .dye-px {
  position: absolute;
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
  object-fit: fill;
}
.key-dot .dye-px--solo {
  position: static;
  width: 40px;
  height: 40px;
}
/* orange_dye.png est une texture MC 16x16 : partout où elle est agrandie
   (modale produit 56px, panier, etc.) le lissage par défaut la rend floue.
   Ciblé sur la source et pas sur `.modal-img` : les autres visuels produits
   sont en 400–2048px et seraient crénelés par `pixelated`. */
img[src$="orange_dye.png"] {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated; /* en dernier : valeur la mieux supportée, elle gagne */
}

[data-theme="dark"] .key-dot--dye { background: rgba(246,108,49,0.14); border-color: rgba(246,108,49,0.3); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .key-dot--dye { background: rgba(246,108,49,0.14); border-color: rgba(246,108,49,0.3); }
}

/* ════════════════════════════════════════════════
   COIN PACKS — bonus badge + amount display
   ════════════════════════════════════════════════ */
/* min-height : le pack Starter n'a pas de ligne bonus, sans ça son bloc fait
   48px contre 67px et les filets pointillés ne s'alignent plus d'une carte
   à l'autre (les footers, eux, sont déjà calés par `margin-top:auto`). */
.coin-amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 4.2rem;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin: 4px 0;
  width: 100%;
  box-sizing: border-box;
}
.coin-base {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
}
/* `inline-flex` est blockifié en flex-item de `.coin-amount` (colonne, stretch) :
   la boîte prend toute la largeur et `justify-content` retombe sur flex-start,
   donc emoji + texte se collaient à gauche pendant que `.coin-no-bonus`
   (simple bloc, text-align hérité) restait centré. */
.coin-bonus-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.coin-bonus-note::before {
  content: '🎁';
  font-size: 0.85em;
}
[data-theme="dark"] .coin-bonus-note { color: #4ade80; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .coin-bonus-note { color: #4ade80; }
}

/* ════════════════════════════════════════════════
   COIN PACKS — accent de palier
   Palette alignée sur les bundles (vert / orange / violet) ; le Starter n'a pas
   d'équivalent bundle, il reprend le jaune déjà utilisé par `.key-card--coins`.
   Un jeu de tokens par carte, appliqué ensuite en un seul endroit à la boîte
   du dye, la pastille, la note, le prix, le bouton et la bordure.
     --tier      teinte pleine (bouton, bordure au survol)
     --tier-deep teinte foncée (survol bouton, dégradé pastille)
     --tier-ink  texte sur fond clair — contraste suffisant, ≠ --tier
     --tier-rgb  composantes pour les fonds/ombres en alpha
     --tier-dim  texte en dark mode (--tier-ink y serait trop sombre)
   ════════════════════════════════════════════════ */
/* Repli : sans ces valeurs, une carte coins sans data-product connu rendrait
   `rgba(var(--tier-rgb),…)` invalide et perdrait bordure/fond. */
.key-card--coins {
  --tier: var(--orange); --tier-deep: #d9541c; --tier-ink: var(--orange);
  --tier-rgb: 246,108,49; --tier-dim: var(--orange);
}
.key-card--coins[data-product="coins-500"] {
  --tier: #eab308; --tier-deep: #ca8a04; --tier-ink: #a16207;
  --tier-rgb: 234,179,8; --tier-dim: #facc15;
}
.key-card--coins[data-product="coins-2200"] {
  --tier: #22c55e; --tier-deep: #16a34a; --tier-ink: #16a34a;
  --tier-rgb: 34,197,94; --tier-dim: #4ade80;
}
.key-card--coins[data-product="coins-6250"] {
  --tier: #F66C31; --tier-deep: #d9541c; --tier-ink: #F66C31;
  --tier-rgb: 246,108,49; --tier-dim: #F66C31;
}
.key-card--coins[data-product="coins-14000"] {
  --tier: #8b5cf6; --tier-deep: #7c3aed; --tier-ink: #7c3aed;
  --tier-rgb: 139,92,246; --tier-dim: #a855f7;
}

.key-card--coins { border-color: rgba(var(--tier-rgb), 0.28); }
.key-card--coins:hover {
  border-color: var(--tier);
  box-shadow: 0 14px 32px rgba(var(--tier-rgb), 0.2);
}
.key-card--coins .key-dot--dye {
  background: rgba(var(--tier-rgb), 0.12);
  border-color: rgba(var(--tier-rgb), 0.28);
}
.key-card--coins .coin-bonus-note { color: var(--tier-ink); }
.key-card--coins .key-price { color: var(--tier-ink); }
.key-card--coins .btn-key { background: var(--tier); }
.key-card--coins .btn-key:hover { background: var(--tier-deep); }
.key-card--coins .key-bonus-badge {
  background: linear-gradient(135deg, var(--tier-deep) 0%, var(--tier) 100%);
  box-shadow: 0 4px 12px rgba(var(--tier-rgb), 0.35);
}

[data-theme="dark"] .key-card--coins .coin-bonus-note,
[data-theme="dark"] .key-card--coins .key-price { color: var(--tier-dim); }
[data-theme="dark"] .key-card--coins { border-color: rgba(var(--tier-rgb), 0.24); }
[data-theme="dark"] .key-card--coins .key-dot--dye {
  background: rgba(var(--tier-rgb), 0.14);
  border-color: rgba(var(--tier-rgb), 0.3);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .key-card--coins .coin-bonus-note,
  html:not([data-theme="light"]) .key-card--coins .key-price { color: var(--tier-dim); }
  html:not([data-theme="light"]) .key-card--coins { border-color: rgba(var(--tier-rgb), 0.24); }
  html:not([data-theme="light"]) .key-card--coins .key-dot--dye {
    background: rgba(var(--tier-rgb), 0.14);
    border-color: rgba(var(--tier-rgb), 0.3);
  }
}
.key-bonus-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(34,197,94,0.3);
  z-index: 2;
}
.key-card { position: relative; }
.key-card .key-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.key-card--coins .key-footer { margin-top: auto; }

[data-theme="dark"] .coin-amount { border-color: #2a2a2a; }
[data-theme="dark"] .coin-base { color: #e2e2e2; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .coin-amount { border-color: #2a2a2a; }
  html:not([data-theme="light"]) .coin-base { color: #e2e2e2; }
}
@media (max-width: 480px) {
  .coin-base { font-size: 1.25rem; }
  .key-bonus-badge { font-size: 0.66rem; padding: 3px 8px; top: 12px; right: 12px; }
}

/* ════════════════════════════════════════════════
   BUNDLES — 3 tier cards with discount
   ════════════════════════════════════════════════ */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  align-items: stretch;
}
.bundle-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: visible;
}
.bundle-card:hover { transform: translateY(-4px); }
.bundle-card--starter { border-color: rgba(34,197,94,0.3); }
.bundle-card--starter:hover { border-color: #22c55e; box-shadow: 0 16px 40px rgba(34,197,94,0.18); }
.bundle-card--conqueror { border-color: rgba(246,108,49,0.35); }
.bundle-card--conqueror:hover { border-color: var(--orange); box-shadow: 0 18px 44px rgba(246,108,49,0.22); }
.bundle-card--legend { border-color: rgba(139,92,246,0.35); }
.bundle-card--legend:hover { border-color: #8b5cf6; box-shadow: 0 18px 44px rgba(139,92,246,0.22); }
.bundle-card--featured {
  border-width: 2px;
  background: linear-gradient(180deg, #fff 0%, #fff7f2 100%);
  transform: translateY(-4px);
}
.bundle-card--featured:hover { transform: translateY(-8px); }

.bundle-discount {
  position: absolute;
  top: -12px;
  right: 16px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(34,197,94,0.35);
  letter-spacing: 0.3px;
}
.bundle-discount--mid {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 100%);
  box-shadow: 0 6px 18px rgba(246,108,49,0.4);
}
.bundle-discount--max {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 6px 18px rgba(139,92,246,0.4);
}

.bundle-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.bundle-tier-icon {
  width: auto;
  min-width: 140px;
  height: 76px;
  padding: 10px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bundle-tier-icon img { height: 100%; width: auto; object-fit: contain; }
.bundle-card--starter .bundle-tier-icon { background: rgba(34,197,94,0.12); color: #16a34a; }
.bundle-card--conqueror .bundle-tier-icon { background: rgba(246,108,49,0.12); color: var(--orange); }
.bundle-card--legend .bundle-tier-icon {
  background: #3a0f26;
  background-image: linear-gradient(120deg, #ff5fa2, #ff9f1c, #ffe11a, #ff5fa2);
  background-size: 220% 100%;
  animation: rainbow-shift 6s linear infinite;
  color: #7c3aed;
}

.bundle-tier {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-top: 4px;
}
.bundle-tier-img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-top: 4px;
}
.bundle-sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.bundle-contents {
  list-style: none;
  padding: 16px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  flex: 1;
}
.bundle-contents li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}
.bundle-contents li b { font-weight: 800; }
.bundle-li-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  width: 22px;
  flex-shrink: 0;
}

.bundle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.bundle-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bundle-old {
  font-size: 0.95rem;
  color: #888;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums;
}
.bundle-new {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.5px;
  line-height: 1;
}
.bundle-card--legend .bundle-new { color: #7c3aed; }
.bundle-card--starter .bundle-new { color: #16a34a; }
.bundle-save {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(34,197,94,0.1);
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
}
[data-theme="dark"] .bundle-save { background: rgba(34,197,94,0.16); color: #4ade80; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .bundle-save { background: rgba(34,197,94,0.16); color: #4ade80; }
}

[data-theme="dark"] .bundle-card { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .bundle-card--featured { background: linear-gradient(180deg, #1a1a1a 0%, #2a1810 100%); }
[data-theme="dark"] .bundle-tier { color: #e2e2e2; }
[data-theme="dark"] .bundle-contents li { color: #d2d2d2; }
[data-theme="dark"] .bundle-contents { border-color: #2a2a2a; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .bundle-card { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .bundle-card--featured { background: linear-gradient(180deg, #1a1a1a 0%, #2a1810 100%); }
  html:not([data-theme="light"]) .bundle-tier { color: #e2e2e2; }
  html:not([data-theme="light"]) .bundle-contents li { color: #d2d2d2; }
  html:not([data-theme="light"]) .bundle-contents { border-color: #2a2a2a; }
}

@media (max-width: 700px) {
  .bundle-card--featured { transform: none; }
  .bundle-card--featured:hover { transform: translateY(-4px); }
}

/* Info note bas de page */
.page-info-note {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(246,108,49,0.08);
  border: 1px solid rgba(246,108,49,0.22);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.page-info-note svg { flex-shrink: 0; color: var(--orange); }
[data-theme="dark"] .page-info-note { background: rgba(246,108,49,0.1); border-color: rgba(246,108,49,0.25); color: #c5c5c5; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .page-info-note { background: rgba(246,108,49,0.1); border-color: rgba(246,108,49,0.25); color: #c5c5c5; }
}

/* ════════════════════════════════════════════════
   TYPO 2026-10 — Plus Jakarta Sans (texte), Outfit (titres), DM Mono (code)
   ════════════════════════════════════════════════ */
h1, h2, .category-title, .section-title, .hero h1 { font-family: var(--font-display); letter-spacing: -0.02em; }
.grade-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.key-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.cmp-grade-name { font-size: 1.05rem; font-weight: 700; }
.page-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

/* ── Pilule joueurs : texte = un seul item flex (plus d'espaces fantômes) ── */
.hero-pill-text { white-space: nowrap; }
#playerCount { font-variant-numeric: tabular-nums; display: inline-block; }
#playerCount.count-bump { animation: countBump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes countBump { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-3px) scale(1.25); color: var(--orange); } 100% { transform: none; } }

/* ════════════════════════════════════════════════
   ANIMATIONS 2026-10
   ════════════════════════════════════════════════ */

/* 1. Entrée du hero, en cascade */
.hero-left > *, .hero-right { animation: heroIn .9s cubic-bezier(.16,1,.3,1) both; }
.hero-left > *:nth-child(1) { animation-delay: .05s; }
.hero-left > *:nth-child(2) { animation-delay: .15s; }
.hero-left > *:nth-child(3) { animation-delay: .27s; }
.hero-left > *:nth-child(4) { animation-delay: .39s; }
.hero-right { animation-name: heroLogoIn; animation-duration: 1.2s; animation-delay: .2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes heroLogoIn { from { opacity: 0; transform: scale(.7) rotate(-8deg); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.hero h1 em { display: inline-block; background: linear-gradient(90deg, var(--orange), #ffb347, var(--orange)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradSlide 5s ease-in-out infinite; }
@keyframes gradSlide { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* 2. Logo qui flotte (l'img ; le wrap garde le parallax souris) */
.hero-logo { animation: logoFloat 6s ease-in-out infinite; }
@keyframes logoFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

/* 3. Reveal au scroll : flou + montée + zoom */
.reveal { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(6px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1), filter .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; filter: none; }

/* 4. Cartes : tilt 3D + reflet qui suit la souris */
.fx-tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform-style: preserve-3d; }
.fx-tilt.visible:hover, .fx-tilt:not(.reveal):hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px) scale(1.02); }
.fx-tilt.fx-moving { transition: transform .12s ease-out, box-shadow .3s, border-color .25s !important; transition-delay: 0s !important; }
.fx-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 45%); mix-blend-mode: soft-light; }
.fx-shine::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(246,108,49,.16), transparent 50%); }
.fx-tilt:hover .fx-shine { opacity: 1; }
.category-card:hover .category-icon, .category-card:hover img:first-of-type { animation: iconWiggle .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes iconWiggle { 0% { transform: none; } 30% { transform: rotate(-10deg) scale(1.15); } 60% { transform: rotate(6deg) scale(1.08); } 100% { transform: none; } }
.category-card .category-cta svg, .category-cta svg { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.category-card:hover .category-cta svg { transform: translateX(6px); }

/* 5. Boutons : aimant + reflet qui balaie + onde au clic */
.fx-btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .3s, background .2s, color .2s; }
.fx-btn::before { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); pointer-events: none; z-index: 1; }
.fx-btn:hover::before { animation: btnSweep .75s ease; }
@keyframes btnSweep { to { left: 130%; } }
.fx-btn:hover { box-shadow: 0 10px 28px rgba(246,108,49,.32); }
.fx-btn:active { transform: scale(.95) !important; }
.fx-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.5); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; z-index: 1; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* 6. FAQ : ouverture qui glisse + accent qui pousse */
.faq-item { transition: box-shadow .3s, border-color .3s, transform .3s cubic-bezier(.3,1.4,.5,1); }
.faq-item:hover { transform: translateX(4px); }
.faq-item.open { transform: none; }
.faq-item.open .faq-body p { animation: faqText .45s cubic-bezier(.16,1,.3,1) both .05s; }
@keyframes faqText { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.faq-chevron { transition: transform .45s cubic-bezier(.3,1.6,.5,1), color .2s; }

/* 7. Barre d'objectif : remplissage élastique + brillance */
#goalFill { transition: width 1.6s cubic-bezier(.16,1,.3,1) !important; position: relative; overflow: hidden; }
#goalFill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-100%); animation: goalShine 2.8s ease-in-out infinite 1.6s; }
@keyframes goalShine { to { transform: translateX(100%); } }

/* 8. IP copiables : léger rebond */
.hero-ip { transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s, border-color .2s; }
.hero-ip:hover { transform: translateY(-3px); }

@media (hover: none) {
  .fx-tilt:hover, .fx-tilt.visible:hover { transform: none; }
  .fx-shine { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.fx-force) .hero-left > *, html:not(.fx-force) .hero-right, html:not(.fx-force) .hero-logo, html:not(.fx-force) .hero h1 em, html:not(.fx-force) #goalFill::after { animation: none !important; }
  html:not(.fx-force) .reveal { filter: none; transform: none; }
  html:not(.fx-force) .fx-tilt:hover, html:not(.fx-force) .fx-tilt.visible:hover { transform: none !important; }
  html:not(.fx-force) .fx-shine, html:not(.fx-force) .fx-btn::before, html:not(.fx-force) .fx-ripple { display: none; }
}

/* ════════════════════════════════════════════════
   WOW 3D 2026-10 — voxels canvas, titre 3D, halo logo, reveals 3D
   (?fx=1 = html.fx-force : ignore « réduire les animations » de l'OS)
   ════════════════════════════════════════════════ */

/* IP : police plus propre (Outfit) */
.hero-ip-text { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; font-size: 0.98rem; }
.hero-ip-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 0.66rem; }
.hero-ip-port { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
.hero-ip { --ix: 0deg; --iy: 0deg; }
.hero-ip:hover { transform: perspective(600px) rotateY(var(--ix)) rotateX(var(--iy)) translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(246,108,49,.22); }

/* Vrais blocs Minecraft en CSS 3D, fond fixe de toutes les pages (fx3d.js), derrière le contenu. */
.fx-voxels { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; perspective: 650px; opacity: 0; animation: fxFade 1.6s ease .2s forwards; }
.fx-stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.fx-cube { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }
.fx-cube i { position: absolute; inset: 0; opacity: var(--o, 1); backface-visibility: hidden; background: #6b4a2f center / 100% 100% no-repeat; image-rendering: pixelated; outline: 1px solid transparent; }
.fx-cube i::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--d, 0); }
.fx-cube i.fx-tint { background-color: #79c05a; background-blend-mode: multiply; }
.fx-3d .hero-block { display: none; }
@keyframes fxFade { to { opacity: .55; } }

/* Titre : chaque lettre bascule en 3D */
.hero-left > h1.fx-split { animation: none; }
.fx-word { display: inline-block; white-space: nowrap; perspective: 600px; }
.fx-char { display: inline-block; transform-origin: 50% 100%; animation: charIn .9s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(.15s + var(--i) * 35ms); }
.hero h1.fx-split em { background: none; -webkit-text-fill-color: currentColor; animation: none; color: var(--orange); }
.hero h1.fx-split em .fx-char { animation: charIn .9s cubic-bezier(.16,1,.3,1) both, charWave 3.2s ease-in-out infinite; animation-delay: calc(.15s + var(--i) * 35ms), calc(1.4s + var(--i) * 90ms); }
@keyframes charIn { from { opacity: 0; transform: translateY(.45em) rotateX(-95deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes charWave {
  0%, 60%, 100% { transform: none; color: var(--orange); text-shadow: none; }
  20% { transform: translateY(-.12em) rotateX(18deg); color: #ffb347; text-shadow: 0 6px 18px rgba(246,108,49,.45); }
}

/* Logo : halo conique */
.hero-logo-wrap { isolation: isolate; }
.fx-halo { position: absolute; inset: 8%; z-index: -1; border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, #f66c31, #ffb347, #43a047, #f66c31, #ffd29a, #f66c31); filter: blur(34px); opacity: .45; animation: haloSpin 9s linear infinite; }
@keyframes haloSpin { to { transform: rotate(360deg); } }

/* Reveals : la section bascule en 3D depuis le bas */
.reveal { transform: perspective(1000px) translateY(60px) rotateX(-18deg) scale(.94); transform-origin: 50% 100%; }
.reveal.visible { transform: none; }

/* Cartes : bordure conique qui tourne au survol */
@property --fx-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.fx-border { position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .35s; background: conic-gradient(from var(--fx-angle), transparent 0 55%, #f66c31 70%, #ffb347 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: borderSpin 2.4s linear infinite paused; }
.fx-tilt:hover .fx-border { opacity: 1; animation-play-state: running; }
@keyframes borderSpin { to { --fx-angle: 360deg; } }

/* Éclats au clic (copie IP / Rejoindre) */
.fx-bit { position: fixed; z-index: 10001; pointer-events: none; background: var(--c) center / 100% 100%; image-rendering: pixelated; box-shadow: inset -2px -2px 0 rgba(0,0,0,.2); transform: translate(-50%, -50%); animation: bitFly .9s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes bitFly { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 60px)) rotate(var(--rot)) scale(.3); opacity: 0; } }

@media (hover: none) {
  .hero-ip:hover { transform: none; }
  .fx-border { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.fx-force) .fx-char, html:not(.fx-force) .fx-halo { animation: none !important; }
  html:not(.fx-force) .fx-voxels, html:not(.fx-force) .fx-bit, html:not(.fx-force) .fx-item { display: none; }
  html:not(.fx-force) .reveal { transform: none; }
  html:not(.fx-force) .hero-ip:hover { transform: none; }
}

/* ── FAQ v2 : intro à gauche, questions numérotées, réponse alignée ── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1040px; margin: 0 auto; }
.faq-intro { position: sticky; top: 96px; padding: 26px 24px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--orange) 14%, var(--white)) 0%, var(--white) 70%); }
.faq-kicker { display: inline-block; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); font-size: 0.7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.faq-title { margin: 14px 0 8px; font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; font-size: 1.45rem; font-weight: 800; line-height: 1.2; color: var(--text); }
.faq-lead { margin: 0 0 20px; font-size: 0.86rem; line-height: 1.6; color: var(--muted); }
.faq-discord { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #5865F2; color: #fff; font-size: 0.82rem; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.faq-discord:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(88,101,242,.7); }
.faq-discord svg { flex-shrink: 0; }

.faq-wrap .faq-list { max-width: none; margin: 0; counter-reset: faq; }
#faq .faq-item { position: relative; border-radius: 14px; overflow: hidden; }
#faq .faq-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.16,1,.3,1); }
#faq .faq-item.open { background: color-mix(in srgb, var(--orange) 6%, var(--white)); border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
#faq .faq-item.open::before { transform: scaleY(1); }
.faq-wrap .faq-btn { padding: 18px 18px 18px 20px; gap: 14px; font-size: 0.95rem; }
.faq-wrap .faq-btn::before { counter-increment: faq; content: counter(faq, decimal-leading-zero); flex-shrink: 0; width: 30px; font-family: 'DM Mono', monospace; font-size: 0.78rem; font-weight: 600; color: var(--orange); opacity: .55; transition: opacity .25s; }
.faq-wrap .faq-item.open .faq-btn::before, .faq-wrap .faq-btn:hover::before { opacity: 1; }
.faq-wrap .faq-btn .faq-question { flex: 1; display: block; }
.faq-wrap .faq-chevron { box-sizing: content-box; padding: 7px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 12%, transparent); transition: transform .3s cubic-bezier(.16,1,.3,1), background .25s, color .25s; }
.faq-wrap .faq-btn:hover .faq-chevron { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.faq-wrap .faq-item.open .faq-chevron { background: var(--orange); color: #fff; }
.faq-wrap .faq-body { padding: 0 20px 0 64px; }
.faq-wrap .faq-item.open .faq-body { padding: 0 20px 18px 64px; }
.faq-wrap .faq-body p { margin: 0; }

@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 18px; }
  .faq-intro { position: static; }
}
@media (max-width: 520px) {
  .faq-wrap .faq-btn { padding: 15px 14px; gap: 10px; font-size: 0.88rem; }
  .faq-wrap .faq-btn::before { width: 22px; }
  .faq-wrap .faq-body, .faq-wrap .faq-item.open .faq-body { padding-left: 46px; padding-right: 14px; }
}

/* ── Items Minecraft flottants (bundles) : sprite plat qui tourne, reflet d'enchantement ── */
.fx-item { position: absolute; left: 0; top: 0; will-change: transform; background: center / 100% 100% no-repeat; image-rendering: pixelated; opacity: var(--o, 1); filter: brightness(var(--b, 1)) drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.fx-item.fx-glint::after { content: ''; position: absolute; inset: 0; -webkit-mask: var(--img) center / 100% 100% no-repeat; mask: var(--img) center / 100% 100% no-repeat; background: linear-gradient(115deg, transparent 25%, rgba(168,96,255,.75) 42%, rgba(240,190,255,.9) 50%, rgba(140,80,255,.7) 58%, transparent 75%) 0 0 / 300% 100%; mix-blend-mode: screen; animation: fxGlint 2.6s linear var(--gd, 0s) infinite; }
@keyframes fxGlint { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* Sections translucides pour voir passer blocs et items derrière. */
html.fx-3d .section--alt { background: rgba(255,255,255,.2); }
html.fx-3d[data-theme="dark"] .section--alt { background: rgba(22,22,22,.3); }
@media (prefers-color-scheme: dark) { html.fx-3d:not([data-theme="light"]) .section--alt { background: rgba(22,22,22,.3); } }

/* ════════════════════════════════════════════════
   REVIEW 10/2026 — harmonisation
   Palette : orange #F66C31 (principal) + violet #8b5cf6 (palier haut).
   Palier 1 = neutre, palier 2 = orange, palier 3 = violet, partout.
   Les tags arc-en-ciel AOT+++ (aperçu du tag en jeu) restent.
   ════════════════════════════════════════════════ */
:root { --violet: #8b5cf6; --violet-deep: #7c3aed; --violet-ink: #7c3aed; --violet-dim: #a78bfa; }

/* ── Boutons : un seul style plein orange ── */
.btn-grade, .btn-grade--silver, .btn-grade--gold, .btn-grade--rainbow,
.btn-key, .bundle-card--starter .btn-key, .bundle-card--legend .btn-key,
.cmp-col[data-product] .btn-key, .key-card--coins .btn-key,
.modal-btn--gold, .modal-btn--rainbow {
  background: var(--orange); background-image: none; box-shadow: 0 4px 14px rgba(246,108,49,.28);
}
.btn-grade:hover, .btn-grade--silver:hover, .btn-grade--gold:hover, .btn-grade--rainbow:hover,
.btn-key:hover, .bundle-card--starter .btn-key:hover, .bundle-card--legend .btn-key:hover,
.cmp-col[data-product] .btn-key:hover, .key-card--coins .btn-key:hover,
.modal-btn--gold:hover, .modal-btn--rainbow:hover {
  background: var(--orange2) !important; background-image: none !important;
}
.btn-grade--owned, .btn-grade--owned:hover { background: #d1d5db !important; color: #6b7280; box-shadow: none; }

/* ── Index : boutons hero même gabarit ── */
.hero .cta-discord, .cta-discord {
  padding: 15px 28px; font-size: 1rem; font-weight: 800; gap: 10px;
  box-shadow: 0 8px 20px rgba(88,101,242,.3);
}

/* ── Badges ── */
.cmp-badge--rainbow, .grade-badge--rainbow { background: var(--violet); background-image: none; }

/* ── Tableaux comparatifs : palier 2 orange, palier 3 violet ── */
.cmp-col--featured .cmp-yes { color: var(--orange-text, #d9541c); }
.cmp-col--rainbow { background: rgba(139,92,246,.07); }
.cmp-col--rainbow .cmp-yes { color: var(--violet-ink); }
.cmp-table tbody tr:hover:not(.cmp-category):not(.cmp-cta-row) td.cmp-col--rainbow,
.cmp-category td.cmp-col--rainbow { background: rgba(139,92,246,.12); }
[data-theme="dark"] .cmp-col--rainbow { background: rgba(139,92,246,.1) !important; }
[data-theme="dark"] .cmp-col--rainbow .cmp-yes { color: var(--violet-dim); }
[data-theme="dark"] .cmp-col--featured .cmp-yes { color: var(--orange); }

/* ── Grades : mêmes couleurs carte / tableau / modal ── */
.grade-card--featured .grade-name,
.grade-card[data-product="aot-plus-plus"] .grade-perks li::before { color: var(--orange); }
.gold-price { color: var(--orange) !important; }
.rainbow-price { color: var(--violet-ink); }
[data-theme="dark"] .rainbow-price { color: var(--violet-dim); }
[data-theme="dark"] .grade-card--rainbow { border-color: var(--violet); }
#modal[data-product="aot-plus"] .modal-price-new, #modal[data-product="aot-plus"] .modal-price { color: var(--text) !important; }
#modal[data-product="aot-plus-plus"] .modal-price-new, #modal[data-product="aot-plus-plus"] .modal-price { color: var(--orange) !important; }
#modal[data-product="aot-plus-plus-plus"] .modal-price-new, #modal[data-product="aot-plus-plus-plus"] .modal-price { color: var(--violet-ink) !important; }
#modal[data-product="aot-plus-plus-plus"] .modal-section li::before { color: var(--violet); }

/* ── Crates : NOOB/PRO neutres-orange, HACKER/AMETHYST violet ── */
.key-card--noob, .key-card--hacker { border-color: var(--border); }
.key-card--noob:hover, .key-card--hacker:hover { border-color: var(--orange); box-shadow: 0 14px 32px rgba(246,108,49,.18); }
.key-card--amethyst { border-color: rgba(139,92,246,.28); }

/* ── Coins : neutre / orange / orange / violet ── */
.key-card--coins[data-product="coins-500"] {
  --tier: var(--orange); --tier-deep: #d9541c; --tier-ink: #d9541c; --tier-rgb: 246,108,49; --tier-dim: #ff8a57;
}
.key-card--coins[data-product="coins-2200"] {
  --tier: var(--orange); --tier-deep: #d9541c; --tier-ink: #d9541c; --tier-rgb: 246,108,49; --tier-dim: #ff8a57;
}
.key-card--coins[data-product="coins-14000"] {
  --tier: var(--violet); --tier-deep: var(--violet-deep); --tier-ink: var(--violet-ink); --tier-rgb: 139,92,246; --tier-dim: var(--violet-dim);
}
.key-card--coins .btn-key { background: var(--orange); }

/* ── Bundles : Aventurier neutre, Conquérant orange, Suprême violet ── */
.bundle-card--starter { border-color: var(--border); }
.bundle-card--starter:hover { border-color: var(--orange); box-shadow: 0 16px 40px rgba(246,108,49,.16); }
.bundle-card--starter .bundle-tier-icon { background: rgba(246,108,49,.1); color: var(--orange); }
.bundle-card--starter .bundle-new { color: var(--text); }
.bundle-card--legend .bundle-tier-icon { background: var(--violet); background-image: none; animation: none; }
.bundle-save { color: #d9541c; background: rgba(246,108,49,.1); }
[data-theme="dark"] .bundle-save { color: #ff8a57; background: rgba(246,108,49,.16); }
[data-theme="dark"] .bundle-card--legend .bundle-new { color: var(--violet-dim); }

/* ── Bandeaux d'info neutres ── */
.page-info-note { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .page-info-note { background: #1a1a1a; border-color: #2a2a2a; }

/* ── Index : cartes catégories toutes orange ── */
.category-card--coins, .category-card--crates, .category-card--bundles { border-color: rgba(246,108,49,.25); }
.category-card--coins:hover, .category-card--crates:hover, .category-card--bundles:hover {
  border-color: var(--orange); box-shadow: 0 20px 60px rgba(246,108,49,.22), 0 0 0 1px rgba(246,108,49,.4) inset;
}
.category-card--coins::after, .category-card--crates::after, .category-card--bundles::after { background: var(--orange); }
.category-card--coins .category-icon, .category-card--crates .category-icon, .category-card--bundles .category-icon {
  background: rgba(246,108,49,.1); color: var(--orange-text, #d9541c);
}
.category-card--coins .category-cta, .category-card--crates .category-cta, .category-card--bundles .category-cta { background: var(--orange); }
.category-card--crates .category-perks li svg { color: var(--orange); background: rgba(246,108,49,.12); }
.category-icon { width: 64px; height: 64px; }
.category-icon img { width: 44px; height: 44px; }
[data-theme="dark"] .category-card--coins, [data-theme="dark"] .category-card--crates, [data-theme="dark"] .category-card--bundles { border-color: rgba(246,108,49,.2); }
[data-theme="dark"] .category-card--coins:hover, [data-theme="dark"] .category-card--crates:hover, [data-theme="dark"] .category-card--bundles:hover { border-color: var(--orange); }
[data-theme="dark"] .category-card--coins .category-icon, [data-theme="dark"] .category-card--crates .category-icon, [data-theme="dark"] .category-card--bundles .category-icon { background: rgba(246,108,49,.08); color: var(--orange); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .cmp-col--rainbow { background: rgba(139,92,246,.1) !important; }
  html:not([data-theme="light"]) .cmp-col--rainbow .cmp-yes, html:not([data-theme="light"]) .rainbow-price { color: var(--violet-dim); }
  html:not([data-theme="light"]) .cmp-col--featured .cmp-yes { color: var(--orange); }
  html:not([data-theme="light"]) .grade-card--rainbow { border-color: var(--violet); }
  html:not([data-theme="light"]) .bundle-save { color: #ff8a57; background: rgba(246,108,49,.16); }
  html:not([data-theme="light"]) .bundle-card--legend .bundle-new { color: var(--violet-dim); }
  html:not([data-theme="light"]) .page-info-note { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .key-card--noob, html:not([data-theme="light"]) .key-card--hacker { border-color: #2a2a2a; }
  html:not([data-theme="light"]) .category-card--coins, html:not([data-theme="light"]) .category-card--crates, html:not([data-theme="light"]) .category-card--bundles { border-color: rgba(246,108,49,.2); }
  html:not([data-theme="light"]) .category-card--coins .category-icon, html:not([data-theme="light"]) .category-card--crates .category-icon, html:not([data-theme="light"]) .category-card--bundles .category-icon { background: rgba(246,108,49,.08); color: var(--orange); }
}
[data-theme="dark"] .key-card--noob, [data-theme="dark"] .key-card--hacker { border-color: #2a2a2a; }

/* ── Titres de section : texte simple, plus de pastille ── */
.section-tag {
  background: none; color: var(--text); padding: 0; border-radius: 0; max-width: none;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900; letter-spacing: -.3px; text-transform: none;
}
.section-tag::after { content: ''; display: block; width: 44px; height: 3px; margin: 12px auto 0; border-radius: 3px; background: var(--orange); }

/* ── Reveal : plus tôt, plus doux (écrase les 3 couches précédentes) ── */
.reveal, .reveal.reveal { opacity: 0; transform: translateY(14px); filter: none; transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.reveal.visible, .reveal.visible.visible { opacity: 1; transform: none; filter: none; }

/* ── Index ── */
.hero-ip-text, .hero-ip-port { white-space: nowrap; }

/* ── Grades : commandes lisibles, upgrades = largeur du tableau ── */
.cmp-label code { font-size: .92rem; padding: 3px 8px; font-weight: 600; }

/* ── Pages légales : colonne plus large, texte plus grand ── */
.legal-page { max-width: 860px; }
.legal-page p, .legal-page li { font-size: 1rem; line-height: 1.8; }
.legal-page h2 { font-size: 1.15rem; }

/* Panier vide : lien vers les grades */
.cart-empty-cta {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 0.88rem; text-decoration: none;
  transition: filter .15s, transform .15s;
}
.cart-empty-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Review coins ──
   Starter n'a pas de ligne bonus : centré verticalement, son montant tombait
   plus bas que sur les autres cartes. Ancré en haut, les montants s'alignent. */
.key-card--coins .coin-amount { justify-content: flex-start; min-height: 4.6rem; }
/* Zone de contenu plus large : 4 cartes de 220px laissaient un grand vide. */
.keys-grid--coins { max-width: 1180px; gap: 20px; }
.key-card--coins { padding: 26px 20px; }
/* Badge « Populaire » posé sur le bord haut de la carte mise en avant. */
.key-popular-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(246,108,49,0.35);
}

/* ── Review crates ──
   Cartes plus grandes, la grille remplit la largeur pour supprimer le vide
   avant le footer. Icônes = sprites pixel comme le reste du site. */
.keys-grid--crates { max-width: 1180px; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.keys-grid--crates .key-card { padding: 34px 22px 26px; min-height: 330px; }
.keys-grid--crates .key-dot { width: 88px; height: 88px; border-radius: 20px; }
.keys-grid--crates .key-dot img { width: 52px; height: 52px; image-rendering: pixelated; }
.keys-grid--crates .key-name { font-size: 1.35rem; }
.key-dot--noob, .key-dot--pro, .key-dot--hacker { background: rgba(246,108,49,0.14); }
.key-dot--amethyst { background: rgba(139,92,246,0.16); }

/* ── Review bundles / grades ──
   Le tableau de comparaison des packs prend la même largeur que les cartes
   (.bundles-grid = 1100px) au lieu de toute la page. */
.cmp-wrap--bundles { max-width: 1100px; }
.cmp-wrap--bundles + .cmp-scroll-hint { max-width: 1100px; margin-left: auto; margin-right: auto; }
/* Upgrades grades : jamais plus larges que le tableau au-dessus. */
.upgrades-grid { max-width: 1100px; }

/* Icône grades : le logo AOT++ est large, on lui laisse toute la case. */
.category-card--grades .category-icon { padding: 4px; }
.category-card--grades .category-icon img { width: 58px; height: 58px; }

/* ── 21/10 : IP sans effet texte ni tilt, FAQ en accordéon fluide ── */
.hero-ip { transition: transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s ease, border-color .2s ease; }
.hero-ip:hover { transform: none; box-shadow: 0 6px 18px rgba(246,108,49,.16); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-ip:hover { transform: translateY(-2px); }
}
.hero-ip:active { transform: scale(.98); }

.faq-item, #faq .faq-item { transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.faq-item:hover, .faq-item.open { transform: none; }
.faq-body, .faq-wrap .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  opacity: 0;
  padding-bottom: 0;
  transition: grid-template-rows .3s cubic-bezier(.23,1,.32,1), padding-bottom .3s cubic-bezier(.23,1,.32,1), opacity .2s ease;
}
.faq-body > * { min-height: 0; overflow: hidden; }
.faq-item.open .faq-body, .faq-wrap .faq-item.open .faq-body { grid-template-rows: 1fr; max-height: none; opacity: 1; padding-bottom: 18px; }
.faq-item.open .faq-body p { animation: none; }
.faq-chevron, .faq-wrap .faq-chevron { transition: transform .3s cubic-bezier(.23,1,.32,1), background-color .2s ease, color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .faq-body, .faq-wrap .faq-body, .faq-chevron, .faq-wrap .faq-chevron, #faq .faq-item::before { transition: none; }
}

/* ── Audit visuel 22/10 ── */
:root { --orange-strong: #C2491A; }

/* Contraste : boutons pleins plus foncés (blanc ≥ 4.5:1) */
.btn-grade, .btn-key { background: var(--orange-strong); }
.btn-grade:hover, .btn-key:hover { background: #A93F16; }

/* Pages légales */
.legal-back { color: var(--orange-strong); min-height: 44px; display: inline-flex; align-items: center; }
.legal-page a:not(.legal-back) { color: var(--orange-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal-page h1 { text-wrap: balance; }
html[data-theme="dark"] .legal-back,
html[data-theme="dark"] .legal-page a:not(.legal-back) { color: #FF8A57; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .legal-back,
  html:not([data-theme="light"]) .legal-page a:not(.legal-back) { color: #FF8A57; }
}

/* Pied de page lisible */
.footer-dot, .footer-copy { color: #8a8a8a; }
.footer-copy { font-size: 0.78rem; }
.footer-legal-links { font-size: 0.8rem; }
.footer-legal-links a { color: #b0b0b0; display: inline-block; padding: 10px 4px; }

/* Petits textes */
.key-perks small { font-size: 0.8rem; color: #5f5f5f; }
html[data-theme="dark"] .key-perks small { color: #b5b5b5; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .key-perks small { color: #b5b5b5; } }
.bundle-save { font-size: 0.82rem; }

/* Cibles tactiles */
.nav-link { min-height: 44px; display: inline-flex; align-items: center; }

/* Barre d'objectif : rien sous 5 % */
.goal-strip--low .goal-pct, .goal-strip--low .goal-bar-wrap { display: none; }

/* Tableaux comparatifs mobiles */
@media (max-width: 700px) {
  .cmp-wrap { overflow: visible; }
  .cmp-table { min-width: 0; width: 100%; table-layout: fixed; }
  .cmp-table th:first-child, .cmp-table td:first-child { width: 37%; }
  .cmp-table th, .cmp-table td { padding: 8px 4px; font-size: 0.78rem; overflow-wrap: anywhere; }
  .cmp-grade-img-wrap, .cmp-scroll-hint { display: none; }
  section:has(.cmp-wrap--bundles) { display: none; }
}

/* Pack Starter : note neutre au lieu d'une bande vide */
.coin-bonus-note--none { color: var(--text-muted, #6b6b6b); background: none; border: 0; font-weight: 500; }

/* Sommaire des pages légales */
.legal-toc { margin: 18px 0 28px; padding: 16px 20px; border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: 10px; }
.legal-toc-title { margin: 0 0 8px; font-weight: 700; }
.legal-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.legal-toc a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; display: inline-block; padding: 4px 0; }
.legal-toc a:hover { color: var(--orange-strong); }
.legal-page h2[id] { scroll-margin-top: 90px; }

/* Grilles 2x2 sur mobile + espacements resserrés */
@media (max-width: 700px) {
  .keys-grid--coins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .key-card--coins { padding: 18px 12px; }
  .key-card--coins .coin-amount { min-height: 0; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-card .category-desc, .category-card .category-perks { display: none; }
  .category-card .category-title { font-size: 1.15rem; }
  .shop-categories { padding-bottom: 24px; }
  .section { padding: 28px 16px; }
  .section--alt { padding: 40px 16px; }
  /* Upgrades : logos réduits pour tenir dans la carte */
  .upgrade-path { gap: 8px; min-width: 0; flex-wrap: wrap; justify-content: center; }
  .upgrade-img { height: 36px; max-width: 42vw; object-fit: contain; }
}

.modal-screen { background: #1a1a1a; padding: 16px 16px 12px; border-radius: 20px 20px 0 0; }
.modal-screen img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; image-rendering: pixelated; border-radius: 6px; }

/* Crates : couleurs vert/jaune/rouge/violet + reflet enchanté */
.keys-grid--crates .key-card--noob { border-color: rgba(34,197,94,0.3); }
.keys-grid--crates .key-card--noob:hover { border-color: #22c55e; box-shadow: 0 14px 32px rgba(34,197,94,0.2); }
.keys-grid--crates .key-card--pro { border-color: rgba(234,179,8,0.3); }
.keys-grid--crates .key-card--pro:hover { border-color: #eab308; box-shadow: 0 14px 32px rgba(234,179,8,0.2); }
.keys-grid--crates .key-card--hacker { border-color: rgba(239,68,68,0.3); }
.keys-grid--crates .key-card--hacker:hover { border-color: #ef4444; box-shadow: 0 14px 32px rgba(239,68,68,0.2); }
.keys-grid--crates .key-card--amethyst { border-color: rgba(139,92,246,0.3); }
.keys-grid--crates .key-card--amethyst:hover { border-color: #8b5cf6; box-shadow: 0 14px 32px rgba(139,92,246,0.2); }
.keys-grid--crates .key-dot--noob { background: rgba(34,197,94,0.16); }
.keys-grid--crates .key-dot--pro { background: rgba(234,179,8,0.16); }
.keys-grid--crates .key-dot--hacker { background: rgba(239,68,68,0.16); }
.keys-grid--crates .key-dot--amethyst { background: rgba(139,92,246,0.16); }
.keys-grid--crates .key-card--noob .key-name { color: #22c55e; }
.keys-grid--crates .key-card--pro .key-name { color: #eab308; }
.keys-grid--crates .key-card--hacker .key-name { color: #ef4444; }
.keys-grid--crates .key-card--amethyst .key-name { color: #8b5cf6; }
.key-dot--glint { position: relative; }
.key-dot--glint::after { content: ''; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); pointer-events: none; -webkit-mask: var(--img) center / 100% 100% no-repeat; mask: var(--img) center / 100% 100% no-repeat; background: linear-gradient(115deg, transparent 40%, rgba(150,80,255,.28) 46%, rgba(190,130,255,.45) 50%, rgba(150,80,255,.28) 54%, transparent 60%) 0 0 / 300% 100%; mix-blend-mode: screen; animation: fxGlint 3.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .key-dot--glint::after { animation: none; background-position: 50% 0; } }
