:root {
  --bg: #0d1017;
  --surface: #161b26;
  --surface-2: #1e2533;
  --text: #f1f3f8;
  --muted: #8f99ad;
  --border: #262e3e;
  --accent: #e3e8f0;
  --accent-2: #dfe6f2;
  --silver: #d9d9de;
  --radius: 14px;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, .logo, .price { font-family: "Rajdhani", "Inter", sans-serif; }

/* Boutons */
.btn {
  display: inline-block; text-align: center; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: .75rem 1.5rem; border-radius: 10px; text-decoration: none; font-weight: 600; transition: filter .2s, transform .1s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, #f4f6fa, #b9c2d0); border: 0; color: #0d1017; }
.btn--small { padding: .45rem .95rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 1.1rem; padding: .4rem; border-radius: 8px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* En-tête */
.header { position: sticky; top: 0; z-index: 10; background: rgba(13, 15, 20, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .4rem; font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.logo__mark { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 16px rgba(200, 212, 230, .4); }
.logo__text { display: grid; line-height: 1; font-family: "Cinzel", serif; font-size: 1.15rem; color: var(--silver); letter-spacing: .04em; }
.logo__text small { font-size: .6rem; letter-spacing: .55em; color: var(--muted); margin-top: .2rem; }
.search { flex: 1; }
.search input, select, .form input, .form select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .9rem;
}
.search input:focus, select:focus, .form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
select { width: auto; }
.header__link { color: var(--text); text-decoration: none; font-weight: 500; }
.header__link:hover { color: var(--accent); }
.cart-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: .5rem .9rem; }
.cart-btn__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #0d1017; font-size: .78rem; font-weight: 700; }
.catbar { border-top: 1px solid var(--border); }
.catbar__inner { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 0; scrollbar-width: none; }
.catbar__item { flex-shrink: 0; background: none; border: 0; color: var(--muted); padding: .4rem .9rem; border-radius: 8px; font-weight: 500; }
.catbar__item:hover { color: var(--text); }
.catbar__item.is-active { background: var(--surface-2); color: var(--accent); }

/* Bandeau */
.hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(200, 212, 230, .28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(200, 212, 230, .12), transparent 40%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding: 4.5rem 0; }
.tag { display: inline-block; background: rgba(200, 212, 230, .14); color: var(--accent); padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; text-transform: uppercase; margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__points { list-style: none; display: grid; gap: .5rem; margin-bottom: 2rem; color: var(--muted); }
.hero__visual { display: flex; justify-content: center; }
.hero__visual img {
  width: min(400px, 100%); height: auto; border-radius: 20px; border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(200, 212, 230, .35), 0 20px 50px rgba(0, 0, 0, .6);
}

/* Sections */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__title { font-size: 1.9rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1.4rem; }
.section__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.section__head .section__title { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #0d1017; font-weight: 700; margin-bottom: .8rem; }
.step strong { display: block; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* Cartes produits */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #0d1017; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; text-transform: uppercase; }
.card__icon { font-size: 2.6rem; margin-bottom: .6rem; filter: drop-shadow(0 0 12px rgba(200, 212, 230, .4)); }
.card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card__title { font-size: 1.35rem; line-height: 1.15; margin: .15rem 0 .3rem; }
.card__detail { color: var(--accent-2); font-size: .85rem; min-height: 1.3em; margin-bottom: 1rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-size: 1.45rem; font-weight: 700; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 2rem 0; }

.payments { display: flex; flex-wrap: wrap; gap: .6rem; }
.payment { background: var(--surface-2); border: 1px solid var(--border); padding: .6rem 1.1rem; border-radius: 10px; font-weight: 600; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin-top: .6rem; }

/* Pied de page */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding-top: 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer__grid > div { display: grid; gap: .4rem; align-content: start; }
.footer__grid a:not(.logo) { color: var(--muted); text-decoration: none; }
.footer__grid a:not(.logo):hover { color: var(--accent); }
.footer__note { color: var(--muted); font-size: .85rem; max-width: 380px; }
.footer__bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding: 1.2rem 0; color: var(--muted); font-size: .85rem; }

/* Panier */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); z-index: 30; background: var(--surface);
  border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.drawer__foot { border-top: 1px solid var(--border); padding: 1.2rem 1.4rem; display: grid; gap: .8rem; }
.line { display: flex; justify-content: space-between; }
.line--total { font-weight: 700; font-size: 1.15rem; }
.cart-item { display: flex; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.cart-item__icon { object-fit: cover; width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface-2); border-radius: 10px; flex-shrink: 0; }
.cart-item__info { flex: 1; display: grid; gap: .15rem; font-size: .95rem; }
.cart-item__info > span { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: .6rem; margin-top: .2rem; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); }

/* Modale */
.modal { margin: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; width: min(520px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, .65); }
.modal__close { position: absolute; top: .8rem; right: .8rem; }
.modal h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.form small { color: var(--muted); font-weight: 400; }
.confirm { text-align: center; }
.confirm__icon { font-size: 2.6rem; }
.confirm p { color: var(--muted); margin-bottom: 1rem; }
.recap { text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; font-size: .85rem; white-space: pre-wrap; margin-bottom: 1rem; }
.confirm__actions { display: grid; gap: .6rem; }

/* Notification */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140px); z-index: 50; max-width: calc(100% - 32px);
  background: linear-gradient(135deg, #f4f6fa, #b9c2d0); color: #0d1017; font-weight: 600; padding: .75rem 1.2rem; border-radius: 10px; transition: transform .3s ease;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* Mobile */
@media (max-width: 760px) {
  .header__inner { flex-wrap: wrap; height: auto; padding: .7rem 0; gap: .7rem; }
  .search { order: 3; flex-basis: 100%; }
  .header__link { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero__visual { order: -1; }
  .hero__visual img { width: 220px; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .card { padding: 1rem; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .modal { padding: 1.5rem; }
}

/* Comptes */
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: .8rem; }
.card__list { list-style: none; display: grid; align-content: start; gap: .2rem; color: var(--silver); font-size: .85rem; margin-bottom: 1rem; flex: 1; }
.card__list li::before { content: "✓ "; color: var(--accent-2); }
.unique { color: var(--accent-2); font-size: .8rem; }
.location { color: var(--muted); font-size: .9rem; }

/* Section comptes */
.section__sub { color: var(--muted); margin-top: -.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.2rem; }
.account { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.account:hover { border-color: var(--accent); transform: translateY(-3px); }
.account__media { position: relative; display: block; border: 0; padding: 0; background: #000; }
.account__media img { width: 100%; aspect-ratio: 2000 / 923; object-fit: cover; display: block; transition: transform .4s; }
.account:hover .account__media img { transform: scale(1.03); }
.account__count { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border-radius: 6px; }
.account__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.2rem 1.2rem; }
.account__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.level { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: .95rem; color: var(--accent-2); background: rgba(200, 212, 230, .14); padding: .1rem .5rem; border-radius: 6px; white-space: nowrap; }
.account__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.account__actions { display: flex; gap: .4rem; }
.price--ask { font-size: 1.1rem; color: var(--silver); }

/* Galerie */
.modal--wide { width: min(1100px, calc(100% - 24px)); padding: 1.4rem; }
.gallery__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 2.4rem .9rem 0; }
.gallery__top h2 { margin: 0; display: flex; align-items: center; gap: .6rem; }
.gallery__meta { color: var(--muted); }
.gallery__stage { position: relative; background: #000; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.gallery__stage img { width: 100%; max-height: 68vh; object-fit: contain; display: block; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 2rem; line-height: 1; }
.gallery__nav:hover { background: var(--accent); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__counter { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .8rem; padding: .2rem .55rem; border-radius: 6px; }
.gallery__thumbs { display: flex; gap: .45rem; overflow-x: auto; padding: .7rem 0 .2rem; scrollbar-width: thin; }
.gallery__thumbs button { flex: 0 0 auto; border: 2px solid transparent; border-radius: 8px; padding: 0; background: none; opacity: .6; overflow: hidden; }
.gallery__thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.gallery__thumbs img { width: 96px; height: 60px; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .modal--wide { padding: 1rem; }
  .gallery__nav { width: 38px; height: 38px; font-size: 1.6rem; }
}

/* Paiement automatique */
.spinner { display: inline-block; width: 46px; height: 46px; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.note strong { color: var(--text); }

/* Paiement USDT */
.crypto h2 { margin-bottom: .4rem; }
.crypto__warn { background: rgba(200, 212, 230, .12); border: 1px solid rgba(200, 212, 230, .4); color: var(--text); padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1rem; }
.crypto__grid { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
.crypto__qr { background: #fff; padding: 10px; border-radius: 12px; line-height: 0; }
.crypto__qr img, .crypto__qr canvas { width: 160px; height: 160px; }
.crypto__fields { display: grid; gap: .35rem; min-width: 0; }
.crypto__fields small { color: var(--muted); margin-bottom: .5rem; }
.crypto__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.crypto__copy { display: flex; align-items: center; gap: .5rem; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .45rem .5rem .45rem .8rem; }
.crypto__copy code, .crypto__copy strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.crypto__copy code { font-size: .82rem; color: var(--silver); }
.crypto__amount { font-family: "Rajdhani", sans-serif; font-size: 1.5rem; color: var(--accent-2); }
.crypto__tips { margin: 1rem 0; padding-left: 1.1rem; color: var(--muted); font-size: .88rem; display: grid; gap: .35rem; }
.crypto__tips strong, .crypto__tips em { color: var(--text); }
.crypto__status { display: flex; align-items: center; gap: .6rem; justify-content: center; margin-bottom: .8rem; color: var(--silver); }
.spinner--small { width: 20px; height: 20px; border-width: 3px; }
@media (max-width: 560px) {
  .crypto__grid { grid-template-columns: 1fr; justify-items: center; }
  .crypto__fields { width: 100%; }
}

/* Récapitulatif des frais */
.summary { display: grid; gap: .45rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; font-size: .92rem; }
.summary .line { gap: 1rem; }
.summary .line span { color: var(--muted); }
.summary .line small { color: var(--muted); font-size: .78rem; }
.summary .line strong { color: var(--text); white-space: nowrap; text-align: right; }
.summary .line--total { border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .2rem; }
.summary .line--total span { color: var(--text); }
.summary .line--total span:last-child { white-space: nowrap; }

/* Stock, achat de compte, livraison des codes */
.header__btn { background: none; border: 0; padding: 0; white-space: nowrap; }
.stock { font-size: .8rem; color: var(--muted); margin: -.4rem 0 .7rem; }
.stock--out { color: #f08a8a; font-weight: 600; }
.btn:disabled:hover { filter: none; }
.method-fixed { display: flex; align-items: center; gap: .8rem; background: var(--bg); border: 1px solid var(--accent); border-radius: 12px; padding: .8rem 1rem; }
.method-fixed__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #26a17b; color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.method-fixed div { display: grid; }
.method-fixed small { color: var(--muted); }
.buy-account { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.buy-account img { width: 120px; aspect-ratio: 2000 / 923; object-fit: cover; border-radius: 8px; }
.buy-account div { display: grid; gap: .2rem; justify-items: start; }
.buy-account p { font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 1.2rem; }
.methods { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.methods legend { font-weight: 500; font-size: .92rem; margin-bottom: .35rem; }
.method { display: flex !important; align-items: center; gap: .6rem; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .75rem .9rem; cursor: pointer; font-weight: 600 !important; }
.method:has(input:checked) { border-color: var(--accent); background: rgba(200, 212, 230, .1); }
.form .method input { accent-color: var(--accent); width: 18px; height: 18px; padding: 0; margin: 0; flex-shrink: 0; }
.delivery { text-align: center; display: grid; gap: .8rem; }
.delivery h2 { margin: 0; }
.delivery__ref { display: flex; justify-content: center; align-items: center; gap: .5rem; color: var(--muted); }
.code { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; align-items: center; text-align: left; background: var(--bg); border: 1px dashed var(--accent); border-radius: 12px; padding: .8rem 1rem; }
.code__name { grid-column: 1 / -1; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.code__value { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.note--warn { background: rgba(200, 212, 230, .12); color: var(--text); }
.delivery__save { font-size: .82rem; color: var(--muted); }
.my-order { margin-bottom: .6rem; }
.my-order .code { margin-top: .6rem; }
.crypto__ref { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: .6rem; }
.payments { display: grid; gap: 1rem; }
.payments__group { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.payments__group strong { min-width: 120px; }
@media (max-width: 760px) {
  .header__btn span { display: none; }
  .header__link { margin-left: 0; }
  #fbLink { display: none; }
  .header__btn { margin-left: auto; font-size: 1.3rem; }
  .methods { grid-template-columns: 1fr; }
}
