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

:root {
  --orange:   #FF9800;
  --orange2:  #F57C00;
  --orange-l: #FFB74D;
  --orange-bg:#FFF3E0;
  --text:     #111;
  --muted:    #777;
  --border:   #eee;
  --white:    #fff;
  --r:        12px;
  --bg:       #f9f7f5;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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: #fff;
  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;
}
.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-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 {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 28px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  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: fit-content;
  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(255,152,0,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);
}
.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: 380px;
}
.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(255,152,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-logo { width: 100%; height: auto; filter: drop-shadow(0 16px 40px rgba(255,152,0,0.25)); }

/* ── Goal Gauge ── */
.goal-strip {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
  border-top: 1px solid #ffe0b2;
  border-bottom: 1px solid #ffe0b2;
  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(--orange2);
  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: #ffe0b2;
  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); }
.goal-amount { color: var(--muted); }
@media (max-width: 600px) {
  .goal-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .goal-right { width: 100%; }
}

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

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

.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;
  gap: 24px;
  max-width: 860px;
  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(255,152,0,0.12);
  transform: translateY(-3px);
}

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

.grade-badge {
  position: absolute;
  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-header {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grade-header--silver { background: #f0f2f5; }
.grade-header--gold   { background: #1c1208; }
.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-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}
.grade-card--featured .grade-name { color: #b8860b; }

.grade-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.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-perks code {
  background: #f0f0f0;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.8em;
  font-family: monospace;
  color: #333;
}

.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: 'Inter', sans-serif;
  transition: background .2s;
}
.btn-grade:hover { background: var(--orange2); }

/* ── Keys ── */
.keys-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.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(255,152,0,0.4);
  box-shadow: 0 6px 20px rgba(255,152,0,0.1);
  transform: translateY(-2px);
}

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

.key-dot {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.key-name {
  font-size: 0.9rem;
  font-weight: 800;
  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: 'Inter', sans-serif;
  transition: background .2s;
  text-align: center;
}
.btn-key:hover { background: var(--orange2); }

/* ── 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: 'Inter', 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 {
  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.show { transform: translateY(0); opacity: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo-wrap { display: none; }
  .hero-cta { justify-content: center; }
  .hero-ips { justify-content: center; }
  .grades-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .grade-card--featured .grade-badge { top: -10px; }
}

@media (max-width: 900px) {
  .keys-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .cmp-wrap { overflow-x: unset; border-radius: 12px; }
  .cmp-table { min-width: 0; width: 100%; font-size: 0.73rem; table-layout: fixed; }
  .cmp-table thead tr th { padding: 12px 6px 10px; }
  .cmp-table thead tr th:first-child { width: 38%; }
  .cmp-table thead tr th:nth-child(2) { width: 31%; }
  .cmp-table thead tr th:nth-child(3) { width: 31%; }
  .cmp-feature td:first-child { word-break: break-word; }
  .cmp-col td, .cmp-table td.cmp-col { padding: 8px 4px; }
  .cmp-feature td { padding: 8px 8px; }
  .cmp-cta-row td { padding: 10px 6px; }
  .cmp-btn { font-size: 0.68rem; padding: 8px 4px; }
  .cmp-badge { font-size: 0.48rem !important; padding: 2px 5px !important; letter-spacing: 0 !important; white-space: nowrap; }
  .cmp-col--featured { text-align: center !important; }
  .cmp-table thead tr th { vertical-align: bottom; }
  .cmp-col td, .cmp-table td.cmp-col { padding: 7px 4px; }
  .cmp-feature td { padding: 7px 8px; }
  .cmp-grade-name { font-size: 0.9rem; }
  .cmp-grade-price { font-size: 0.9rem; }
  .cmp-grade-price span { font-size: 0.65rem; }
  .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; }
  .keys-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .keys-grid { grid-template-columns: 1fr; }
}

/* ── Comparison table ── */
.cmp-wrap {
  max-width: 700px;
  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-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.cmp-table thead tr th {
  padding: 20px 16px 16px;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 1px solid var(--border);
}
.cmp-feature-col { width: 55%; text-align: left !important; background: transparent; border-bottom: none; }
.cmp-col { width: 22.5%; text-align: center; }
.cmp-col--featured {
  background: var(--orange-bg);
  position: relative;
}
.cmp-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cmp-head { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.cmp-grade-name { font-size: 1rem; font-weight: 900; }
.cmp-grade-price { font-size: 1.1rem; font-weight: 900; color: var(--orange); }
.cmp-grade-price span { font-size: 0.72rem; 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: #fff3e0; }

.cmp-category td {
  padding: 10px 16px 6px;
  font-size: 0.68rem;
  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: #fff3e0; }
.cmp-intro td.cmp-col { background: transparent !important; border-top: 2px solid var(--border) !important; }

.cmp-label {
  padding: 11px 16px;
  color: var(--text);
  font-size: 0.82rem;
}
.cmp-label code {
  background: #f0f0f0;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.78rem;
}
.cmp-col td, .cmp-table td.cmp-col { padding: 11px 8px; text-align: center; }

.cmp-check { color: var(--orange); font-weight: 800; font-size: 1rem; }
.cmp-no { color: #ccc; font-weight: 600; font-size: 1rem; }
.cmp-yes { color: var(--orange); font-weight: 700; font-size: 0.78rem; }

.cmp-cta-row td { padding: 16px 12px; }
.cmp-btn { width: 100%; font-size: 0.8rem; padding: 10px 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(255,152,0,0.1);
  border-color: rgba(255,152,0,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: 'Inter', 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;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85em;
  margin-right: 4px;
}
.promo-price-new,
.cart-price-new,
.modal-price-new {
  color: var(--orange) !important;
  font-weight: 800;
}
/* 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: 'JetBrains 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: 'JetBrains 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(255,152,0,.12);
  border: 1px dashed var(--orange);
  color: var(--orange);
  font-family: 'JetBrains 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(255,152,0,.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: 'JetBrains 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: 'JetBrains Mono', 'Courier New', monospace;
}
.maint-server-port {
  font-size: 0.8rem;
  color: #666;
  font-family: 'JetBrains 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: 'JetBrains 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: 'Inter', 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: 'Inter', 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: 'Inter', 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(255,152,0,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 {
  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;
  width: 26px; height: 26px;
  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: 'Inter', 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: 36px; min-height: 36px;
  transition: color .15s;
}
.cart-remove:hover { color: #e53935; }

/* ── Cart Upsell ── */
.cart-upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff8f0;
  border: 1.5px dashed #ffcc80;
  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: 'Inter', sans-serif;
}
.upsell-btn:hover { background: var(--orange2); }

.cart-footer {
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.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: 'Inter', 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: 'Inter', 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 {
  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: 'Inter', 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(255,152,0,0.1); }
.login-submit-btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-family: 'Inter', 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-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-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;
}

.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);
}

/* ── 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: 36px; height: 36px;
  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(255,152,0,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: 'Inter', 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-perks li { color: #ccc; }
[data-theme="dark"] .grade-perks code { background: #2a2a2a; color: #ffb74d; }
[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-category td { background: #222; color: #888; }
[data-theme="dark"] .cmp-label { color: #ccc; }
[data-theme="dark"] .cmp-label code { background: #2a2a2a; color: #ffb74d; }
[data-theme="dark"] .goal-strip { background: #1a1a1a; border-color: #2a2a2a; }
[data-theme="dark"] .goal-bar-bg { background: #2a2a2a; }
[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: #ffb74d; }
[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(255,152,0,0.07); border-color: rgba(255,152,0,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"] .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);
}

/* ── 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-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: #ffb74d; }
  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"]) .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-footer { border-color: #2a2a2a; }
  html:not([data-theme="light"]) .grade-perks li { color: #ccc; }
  html:not([data-theme="light"]) .grade-perks code { background: #2a2a2a; color: #ffb74d; }
  html:not([data-theme="light"]) .key-card { background: #1a1a1a; border-color: #2a2a2a; }
  html:not([data-theme="light"]) .modal-section li code { background: #2a2a2a; color: #ffb74d; }
  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; }
}
