/* Spectra Shop — UI tokens + composants partagés (modal, panier, toast, menus)
   + corrections globales d'accessibilité. Chargé sur toutes les pages. */

:root{
  --sx-bg:#0d0b14;
  --sx-surface:#15121f;
  --sx-surface-2:#1c1829;
  --sx-surface-3:#252036;
  --sx-border:#2f2946;
  --sx-border-strong:#4a3f6e;
  --sx-text:#f4f1fb;
  --sx-muted:#b4abc9;
  --sx-primary:#7c3aed;
  --sx-primary-hover:#6d28d9;
  --sx-primary-soft:rgba(124,58,237,.16);
  --sx-primary-text:#c9b6ff;
  --sx-danger:#fca5a5;
  --sx-danger-bg:rgba(239,68,68,.12);
  --sx-danger-border:rgba(239,68,68,.4);
  --sx-success:#86efac;
  --sx-radius-sm:10px;
  --sx-radius:14px;
  --sx-radius-lg:20px;
  --sx-shadow:0 24px 64px -24px rgba(0,0,0,.75);
  --sx-font:var(--font-poppins,"Poppins"),ui-sans-serif,system-ui,sans-serif;
  --sx-ease:cubic-bezier(.22,1,.36,1);
}

/* ── Corrections globales ──────────────────────────────────────────────────── */
html{ scroll-padding-top:96px; }
html.sx-lock{ overflow:hidden; }

a[href], button:not(:disabled), [role="button"], label[for], label:has(> input), summary, select{ cursor:pointer; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible{
  outline:2px solid var(--sx-primary-text);
  outline-offset:2px;
}

/* Champs intégrés dans un conteneur stylé (ex. recherche de la home) : l'anneau va sur le conteneur */
input.outline-none:focus-visible, input.outline-none:focus{ outline:none !important; }
:has(> input.outline-none):focus-within{
  outline:2px solid var(--sx-primary-text); outline-offset:2px;
}

/* Texte jamais sous 12px */
.text-\[10px\], .text-\[11px\]{ font-size:12px !important; line-height:1.4 !important; }

/* Contraste du texte secondaire (≥ 4.5:1 sur les fonds sombres du site) */
.text-muted-foreground, .text-muted-foreground\/80{ color:var(--sx-muted) !important; }

/* Titres : plus de 900 ultra-serré */
.font-black{ font-weight:700 !important; }
[class*="tracking-[-0."]{ letter-spacing:-0.02em !important; }

/* Header : cibles tactiles 44px */
header .dynamic-header-content nav a{ min-height:44px; display:inline-flex; align-items:center; }
header .dynamic-header-content a:not(.dynamic-header-logo)[aria-label],
header .dynamic-header-content button{ min-width:44px; min-height:44px; }

/* Discord dans le header : bouton secondaire (un seul CTA primaire par écran) */
header a[href*="discord.gg"]{
  background:var(--sx-surface-2) !important;
  box-shadow:none !important;
  border:1px solid var(--sx-border);
  color:var(--sx-text) !important;
  min-height:44px;
}
header a[href*="discord.gg"]:hover{ border-color:var(--sx-border-strong); transform:none !important; }

/* Lien "Connexion" du header : bouton secondaire, et dans le menu burger sous 1024px */
header .dynamic-header-content a[href="/login"]{
  background:var(--sx-surface-2) !important; color:var(--sx-text) !important;
  border:1px solid var(--sx-border) !important; box-shadow:none !important;
  min-height:44px; padding:0 14px !important; font-size:13px !important; font-weight:600 !important;
}
header .dynamic-header-content a[href="/login"]:hover{ border-color:var(--sx-border-strong) !important; transform:none !important; }
header .dynamic-header-content a[href="/login"]::after{ display:none !important; }
.sx-account{ display:inline-flex; }
@media (max-width:1023px){
  header .dynamic-header-content a[href="/login"], header .dynamic-header-content .sx-account{ display:none !important; }
}

/* Footer : liens avec zone de clic confortable */
footer ul > li + li{ margin-top:0 !important; }
footer ul a, footer a.rounded-full{ display:inline-flex; align-items:center; min-height:44px; min-width:44px; }

/* Fil d'Ariane */
nav[aria-label="Fil d’Ariane"] a{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; }

/* Boutons Discord du dump (violet #8b5cf6 en dur, 4.2:1) → bouton secondaire
   (un seul bouton plein par écran : "Voir la boutique") */
a[href*="discord.gg"][style*="8b5cf6"]{
  background:var(--sx-surface-2) !important; color:var(--sx-text) !important;
  border:1px solid var(--sx-border) !important; box-shadow:none !important;
}
a[href*="discord.gg"][style*="8b5cf6"]:hover{ border-color:var(--sx-border-strong) !important; }

/* Boutons et champs natifs du dump (h-7 / h-8 / h-9 / h-10 = 28–40px) → 44px */
:is(a, button)[data-slot="button"]:is(.h-7, .h-8, .h-9, .h-10),
:is(a, button, input):is(.h-7, .h-8, .h-9, .h-10){
  height:auto !important; min-height:44px !important;
}
:is(a, button)[data-slot="button"]:is(.size-7, .size-8, .size-9), button[data-slot="button"].h-7:not(.w-full){ min-width:44px !important; }
main a[class*="rounded"]:not(.sx-card){ min-height:44px; }
main input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]){ min-height:44px; }

/* Points du carrousel "Étapes de commande" : zone de clic 44px, point dessiné en ::after */
button[aria-label^="Aller à l’étape"]{
  position:relative; width:44px !important; height:44px !important;
  background:transparent !important; border:0 !important; padding:0 !important;
}
button[aria-label^="Aller à l’étape"]::after{
  content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:8px; height:8px; border-radius:999px; background:var(--sx-border-strong);
  transition:width .2s var(--sx-ease), background .2s;
}
button[aria-label^="Aller à l’étape"][aria-current="step"]::after{ width:24px; background:var(--sx-primary); }

/* ── Icônes ────────────────────────────────────────────────────────────────── */
.sx-icon{ flex-shrink:0; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ── Boutons ───────────────────────────────────────────────────────────────── */
.sx-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:0 18px; border-radius:12px; border:1px solid transparent;
  font:600 14px/1.2 var(--sx-font); text-decoration:none; white-space:nowrap;
  transition:background-color .18s, border-color .18s, color .18s, opacity .18s;
}
.sx-btn:disabled{ opacity:.6; cursor:not-allowed; }
.sx-btn-primary{ background:var(--sx-primary); color:#fff; }
.sx-btn-primary:hover:not(:disabled){ background:var(--sx-primary-hover); }
.sx-btn-secondary{ background:var(--sx-surface-2); border-color:var(--sx-border); color:var(--sx-text); }
.sx-btn-secondary:hover:not(:disabled){ border-color:var(--sx-border-strong); }
.sx-btn-ghost{ background:transparent; color:var(--sx-muted); }
.sx-btn-ghost:hover{ color:var(--sx-text); background:var(--sx-surface-2); }
.sx-btn-block{ width:100%; }
.sx-btn-sm{ padding:0 14px; font-size:13px; }

.sx-icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; flex-shrink:0; border-radius:12px; border:0;
  background:transparent; color:var(--sx-muted); transition:background-color .15s, color .15s;
}
.sx-icon-btn:hover{ background:var(--sx-surface-2); color:var(--sx-text); }

/* ── Overlays (modal / tiroir / menu mobile) ───────────────────────────────── */
.sx-overlay{
  position:fixed; inset:0; z-index:99990;
  display:flex; align-items:center; justify-content:center; padding:24px;
  background:rgba(6,5,10,.72); backdrop-filter:blur(6px);
  opacity:0; transition:opacity .2s ease;
  font-family:var(--sx-font); color:var(--sx-text);
}
.sx-overlay.is-open{ opacity:1; }
.sx-overlay.is-closing{ opacity:0; transition-duration:.14s; }

.sx-dialog{
  width:100%; max-width:480px; max-height:calc(100vh - 48px); overflow-y:auto;
  background:var(--sx-surface); border:1px solid var(--sx-border); border-radius:var(--sx-radius-lg);
  box-shadow:var(--sx-shadow); outline:none;
  transform:translateY(12px) scale(.98); transition:transform .25s var(--sx-ease);
  scrollbar-width:thin; scrollbar-color:var(--sx-border-strong) transparent;
}
.sx-overlay.is-open .sx-dialog{ transform:none; }
.sx-overlay.is-closing .sx-dialog{ transform:translateY(8px); transition-duration:.14s; }
@media (max-width:767px){
  .sx-overlay--modal{ align-items:flex-end; padding:0; }
  .sx-overlay--modal .sx-dialog{ max-width:none; max-height:92vh; border-radius:var(--sx-radius-lg) var(--sx-radius-lg) 0 0; transform:translateY(32px); }
}

.sx-overlay--drawer{ justify-content:flex-end; align-items:stretch; padding:0; }
.sx-drawer{
  width:100%; max-width:420px; height:100%; display:flex; flex-direction:column;
  background:var(--sx-surface); border-left:1px solid var(--sx-border); box-shadow:var(--sx-shadow); outline:none;
  transform:translateX(100%); transition:transform .28s var(--sx-ease);
}
.sx-overlay.is-open .sx-drawer{ transform:none; }
.sx-overlay.is-closing .sx-drawer{ transform:translateX(100%); transition-duration:.18s; }

.sx-overlay--menu{ align-items:flex-start; justify-content:stretch; padding:84px 12px 12px; }
.sx-mobile-panel{
  width:100%; background:var(--sx-surface); border:1px solid var(--sx-border); border-radius:var(--sx-radius);
  box-shadow:var(--sx-shadow); padding:8px; outline:none;
  transform:translateY(-8px); transition:transform .2s var(--sx-ease);
}
.sx-overlay.is-open .sx-mobile-panel{ transform:none; }
.sx-mobile-panel a, .sx-mobile-panel button.sx-mobile-link{
  display:flex; align-items:center; gap:12px; width:100%; min-height:48px; padding:0 14px;
  border:0; border-radius:10px; background:transparent; color:var(--sx-text);
  font:500 15px/1 var(--sx-font); text-decoration:none; text-align:left;
}
.sx-mobile-panel a:hover, .sx-mobile-panel button.sx-mobile-link:hover{ background:var(--sx-surface-2); }
.sx-mobile-panel .sx-sep{ height:1px; background:var(--sx-border); margin:6px 8px; }
.sx-burger{ display:none; }
@media (max-width:1023px){ .sx-burger{ display:inline-flex; } }

.sx-dialog-header{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 20px 18px 24px; border-bottom:1px solid var(--sx-border); }
.sx-dialog-title{ margin:0; font:700 18px/1.3 var(--sx-font); letter-spacing:-.01em; color:var(--sx-text); }
.sx-dialog-sub{ margin:2px 0 0; font-size:13px; color:var(--sx-muted); }
.sx-dialog-body{ padding:20px 24px 24px; display:flex; flex-direction:column; gap:20px; }
.sx-dialog-actions{ display:flex; flex-direction:column; gap:10px; }
.sx-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; }

/* ── Produit / résumé ──────────────────────────────────────────────────────── */
.sx-product-row{ display:flex; align-items:center; gap:12px; padding:12px; background:var(--sx-surface-2); border:1px solid var(--sx-border); border-radius:var(--sx-radius); }
.sx-product-name{ margin:0; font-weight:600; font-size:15px; }
.sx-thumb{ width:48px; height:48px; border-radius:10px; object-fit:cover; flex-shrink:0; background:var(--sx-surface-3); }
.sx-thumb--ph{ display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; color:var(--sx-primary-text); }

.sx-summary{ background:var(--sx-surface-2); border:1px solid var(--sx-border); border-radius:var(--sx-radius); padding:4px 14px; }
.sx-summary ul{ list-style:none; margin:0; padding:0; }
.sx-summary li{ display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--sx-border); font-size:14px; }
.sx-muted{ color:var(--sx-muted); }
.sx-total-row{ display:flex; justify-content:space-between; align-items:baseline; padding:12px 0; font-size:14px; color:var(--sx-muted); }
.sx-total-row strong{ font-size:18px; color:var(--sx-text); }

/* ── Champs ────────────────────────────────────────────────────────────────── */
.sx-field{ display:flex; flex-direction:column; gap:6px; }
.sx-label{ font-size:13px; font-weight:600; color:var(--sx-text); }
.sx-input{
  width:100%; min-height:46px; padding:0 14px; box-sizing:border-box;
  background:var(--sx-bg); border:1px solid var(--sx-border); border-radius:var(--sx-radius-sm);
  color:var(--sx-text); font:400 15px/1.2 var(--sx-font); transition:border-color .15s;
}
.sx-input::placeholder{ color:#8d85a3; }
.sx-input:hover{ border-color:var(--sx-border-strong); }
.sx-input:focus{ border-color:var(--sx-primary); }
.sx-input[aria-invalid="true"]{ border-color:var(--sx-danger-border); }
.sx-help{ margin:0; font-size:12px; line-height:1.5; color:var(--sx-muted); }
.sx-error{ margin:0; display:flex; align-items:center; gap:6px; font-size:12px; color:var(--sx-danger); }
.sx-error[hidden]{ display:none; }
.sx-alert{ display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:var(--sx-radius-sm); font-size:13px; line-height:1.5; }
.sx-alert[hidden]{ display:none; }
.sx-alert--error{ background:var(--sx-danger-bg); border:1px solid var(--sx-danger-border); color:var(--sx-danger); }

/* ── Options (radios natifs stylés) ────────────────────────────────────────── */
.sx-fieldset{ border:0; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; min-width:0; }
.sx-fieldset[hidden]{ display:none; }
.sx-legend{ padding:0; margin:0 0 8px; font-size:13px; font-weight:600; color:var(--sx-text); }
.sx-option{
  position:relative; display:flex; align-items:center; gap:12px; min-height:52px; padding:10px 14px;
  background:var(--sx-surface-2); border:1px solid var(--sx-border); border-radius:12px;
  transition:border-color .15s, background-color .15s;
}
.sx-option:hover{ border-color:var(--sx-border-strong); }
.sx-option input, .sx-chip input{ position:absolute; opacity:0; width:1px; height:1px; margin:0; }
.sx-option:has(input:checked){ border-color:var(--sx-primary); background:var(--sx-primary-soft); }
.sx-option:has(input:focus-visible), .sx-chip:has(input:focus-visible){ outline:2px solid var(--sx-primary-text); outline-offset:2px; }
.sx-radio{ width:18px; height:18px; border-radius:50%; border:2px solid var(--sx-border-strong); flex-shrink:0; display:grid; place-items:center; transition:border-color .15s; }
.sx-option:has(input:checked) .sx-radio{ border-color:var(--sx-primary-text); }
.sx-option:has(input:checked) .sx-radio::after{ content:""; width:8px; height:8px; border-radius:50%; background:var(--sx-primary-text); }
.sx-option-icon{ display:inline-flex; color:var(--sx-primary-text); }
.sx-option-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.sx-option-title{ font-size:14px; font-weight:600; color:var(--sx-text); }
.sx-option-sub{ font-size:12px; color:var(--sx-muted); }
.sx-option-price{ font-size:15px; font-weight:700; color:var(--sx-text); white-space:nowrap; }

.sx-chips{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.sx-chip{
  position:relative; display:flex; align-items:center; justify-content:center; min-height:44px;
  background:var(--sx-surface-2); border:1px solid var(--sx-border); border-radius:10px;
  font-size:13px; font-weight:600; color:var(--sx-text); transition:border-color .15s, background-color .15s;
}
.sx-chip:hover{ border-color:var(--sx-border-strong); }
.sx-chip:has(input:checked){ border-color:var(--sx-primary); background:var(--sx-primary-soft); }

.sx-crypto{ display:flex; flex-direction:column; gap:14px; padding:16px; background:var(--sx-surface-2); border:1px solid var(--sx-border); border-radius:var(--sx-radius); }
.sx-crypto-title{ margin:0; font-weight:600; font-size:14px; }
.sx-copy-row{ display:flex; align-items:center; gap:8px; }
.sx-copy-row code{ flex:1; min-width:0; overflow-wrap:anywhere; padding:10px 12px; background:var(--sx-bg); border:1px solid var(--sx-border); border-radius:var(--sx-radius-sm); font:500 13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--sx-text); }
.sx-trust{ margin:0; display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; color:var(--sx-muted); }

/* ── Panier ────────────────────────────────────────────────────────────────── */
.sx-drawer-body{ flex:1; overflow-y:auto; padding:16px 20px; }
.sx-drawer-footer{ padding:16px 20px 20px; border-top:1px solid var(--sx-border); display:flex; flex-direction:column; gap:10px; }
.sx-drawer-footer[hidden]{ display:none; }
.sx-cart-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.sx-cart-item{ display:flex; align-items:center; gap:12px; padding:12px; background:var(--sx-surface-2); border:1px solid var(--sx-border); border-radius:var(--sx-radius); }
.sx-cart-info{ flex:1; min-width:0; }
.sx-cart-name{ margin:0; font-weight:600; font-size:14px; }
.sx-cart-meta{ margin:2px 0 0; font-size:12px; color:var(--sx-muted); }
.sx-cart-price{ margin:6px 0 0; font-weight:700; font-size:15px; }
.sx-cart-actions{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.sx-empty{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; padding:48px 12px; }
.sx-empty-icon{ display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%; background:var(--sx-surface-2); color:var(--sx-muted); margin-bottom:6px; }
.sx-empty-title{ margin:0; font-weight:600; font-size:15px; }
.sx-empty-text{ margin:0 0 10px; font-size:13px; color:var(--sx-muted); max-width:260px; }

.sx-count{
  position:absolute; top:2px; right:2px; min-width:18px; height:18px; padding:0 5px; box-sizing:border-box;
  display:inline-flex; align-items:center; justify-content:center; border-radius:999px;
  background:var(--sx-primary); color:#fff; font:700 12px/1 var(--sx-font); pointer-events:none;
}

/* ── Toast ─────────────────────────────────────────────────────────────────── */
.sx-toast{
  position:fixed; left:50%; bottom:24px; z-index:100001; max-width:calc(100vw - 32px);
  display:flex; align-items:center; gap:12px; padding:10px 10px 10px 16px;
  background:var(--sx-surface-2); border:1px solid var(--sx-border); border-radius:var(--sx-radius);
  box-shadow:var(--sx-shadow); color:var(--sx-text); font:400 14px/1.35 var(--sx-font);
  opacity:0; transform:translate(-50%,12px); transition:opacity .2s, transform .25s var(--sx-ease);
}
.sx-toast.is-visible{ opacity:1; transform:translate(-50%,0); }
.sx-toast-icon{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:var(--sx-primary-soft); color:var(--sx-primary-text); }
.sx-toast-text{ display:flex; flex-direction:column; min-width:0; }
.sx-toast-text span{ color:var(--sx-muted); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Menu compte (connecté) ────────────────────────────────────────────────── */
.sx-account-btn{
  display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 8px 0 6px;
  border-radius:999px; border:1px solid var(--sx-border); background:var(--sx-surface-2); color:var(--sx-text);
}
.sx-account-btn:hover{ border-color:var(--sx-border-strong); }
.sx-avatar{ width:30px; height:30px; border-radius:50%; background:var(--sx-primary); color:#fff; display:inline-flex; align-items:center; justify-content:center; font:700 13px/1 var(--sx-font); }
.sx-menu{
  position:fixed; z-index:100002; min-width:230px; padding:6px;
  background:var(--sx-surface); border:1px solid var(--sx-border); border-radius:var(--sx-radius); box-shadow:var(--sx-shadow);
  font-family:var(--sx-font);
}
.sx-menu[hidden]{ display:none; }
.sx-menu-email{ margin:0 0 6px; padding:10px 12px; font-size:12px; color:var(--sx-muted); border-bottom:1px solid var(--sx-border); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sx-menu a{ display:flex; align-items:center; gap:10px; min-height:44px; padding:0 12px; border-radius:10px; color:var(--sx-text); font-size:14px; text-decoration:none; }
.sx-menu a:hover, .sx-menu a:focus-visible{ background:var(--sx-surface-2); }
.sx-menu a.is-danger{ color:var(--sx-danger); }

/* ── Cartes produit (pages boutique) ───────────────────────────────────────── */
.sx-card{ transition:transform .18s ease-out, border-color .18s ease-out; }
.sx-card:hover{ transform:translateY(-2px); border-color:rgba(124,58,237,.55) !important; }
.sx-card-img{ transition:transform .3s var(--sx-ease); }
.sx-card:hover .sx-card-img{ transform:scale(1.03); }
.sx-badge{ display:inline-flex; align-items:center; min-height:24px; padding:0 10px; border-radius:999px; font-size:12px; font-weight:600; color:var(--sx-text); background:rgba(13,11,20,.72); border:1px solid var(--sx-border); backdrop-filter:blur(6px); }
.sx-card-meta{ font-size:12px; color:var(--sx-muted); }
.sx-price{ font-size:20px; font-weight:700; color:var(--sx-text); letter-spacing:-.01em; }
.sx-card-link{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--sx-primary-text); }
.sx-card:hover .sx-card-link .sx-icon{ transform:translateX(2px); }
.sx-card-link .sx-icon{ transition:transform .18s; }
.sx-ph{
  display:flex; align-items:center; justify-content:center; width:100%; height:100%; padding:20px; box-sizing:border-box;
  background:linear-gradient(160deg, var(--sx-surface-3), var(--sx-surface)); color:var(--sx-muted);
  font:700 20px/1.25 var(--sx-font); letter-spacing:-.01em; text-align:center;
}

/* ── Page produit ───────────────────────────────────────────────────────────── */
.sx-product-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:40px; }
@media (min-width:1024px){ .sx-product-grid{ grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); align-items:start; } }
.sx-media{
  display:flex; align-items:center; justify-content:center; height:320px; overflow:hidden;
  border:1px solid var(--sx-border); border-radius:var(--sx-radius-lg);
  background:linear-gradient(160deg, var(--sx-surface-3), var(--sx-surface));
}
.sx-media img{ width:100%; height:100%; object-fit:cover; }
.sx-features{ list-style:none; margin:14px 0 0; padding:0; display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
@media (min-width:640px){ .sx-features{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.sx-features li{ display:flex; gap:12px; padding:14px; background:var(--sx-surface); border:1px solid var(--sx-border); border-radius:var(--sx-radius); }
.sx-features li > span:last-child{ display:flex; flex-direction:column; gap:2px; font-size:13px; line-height:1.5; color:var(--sx-muted); }
.sx-features strong{ font-size:14px; font-weight:600; color:var(--sx-text); }
.sx-feature-icon{ display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:24px; height:24px; border-radius:50%; background:var(--sx-primary-soft); color:var(--sx-primary-text); }
.sx-buy-card{
  position:sticky; top:96px; padding:24px;
  background:var(--sx-surface); border:1px solid var(--sx-border); border-radius:var(--sx-radius-lg);
}

@media (prefers-reduced-motion: reduce){
  .sx-overlay, .sx-dialog, .sx-drawer, .sx-mobile-panel, .sx-toast, .sx-card, .sx-card-img{ transition:none !important; }
  .sx-card:hover, .sx-card:hover .sx-card-img{ transform:none; }
}

/* ── Connexion / inscription ───────────────────────────────────────────────── */
.sx-auth{
  width:100%; max-width:1120px; margin:0 auto; box-sizing:border-box;
  display:grid; grid-template-columns:1fr; gap:48px; align-items:center;
  padding:48px 16px 72px;
}
@media (min-width:1024px){
  .sx-auth{ grid-template-columns:minmax(0,1fr) 440px; gap:72px; padding:72px 24px 96px; }
}
.sx-auth-aside{ display:none; }
@media (min-width:1024px){ .sx-auth-aside{ display:block; } }
.sx-eyebrow{ margin:0 0 12px; font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--sx-primary-text); }
.sx-auth-aside-title{ margin:0; max-width:460px; font-size:34px; line-height:1.2; font-weight:700; letter-spacing:-.02em; color:var(--sx-text); text-wrap:balance; }
.sx-perks{ list-style:none; margin:36px 0 0; padding:0; display:flex; flex-direction:column; gap:24px; max-width:460px; }
.sx-perks li{ display:flex; gap:16px; align-items:flex-start; }
.sx-perk-icon{
  flex-shrink:0; width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px; background:var(--sx-primary-soft); border:1px solid var(--sx-border); color:var(--sx-primary-text);
}
.sx-perk-title{ margin:0; font-size:15px; font-weight:600; color:var(--sx-text); }
.sx-perk-desc{ margin:4px 0 0; font-size:14px; line-height:1.55; color:var(--sx-muted); }
.sx-auth-note{ margin:40px 0 0; padding-top:24px; max-width:460px; border-top:1px solid var(--sx-border); display:flex; align-items:center; gap:10px; font-size:13px; color:var(--sx-muted); }
.sx-auth-note .sx-icon{ color:var(--sx-primary-text); flex-shrink:0; }

.sx-auth-card{
  width:100%; max-width:440px; margin:0 auto; box-sizing:border-box;
  background:var(--sx-surface); border:1px solid var(--sx-border); border-radius:var(--sx-radius-lg);
  box-shadow:var(--sx-shadow); padding:28px 24px;
}
@media (min-width:480px){ .sx-auth-card{ padding:36px; } }

.sx-seg{ display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; margin-bottom:28px; background:var(--sx-bg); border:1px solid var(--sx-border); border-radius:12px; }
.sx-seg-item{
  min-height:44px; display:flex; align-items:center; justify-content:center; border-radius:9px;
  font-size:14px; font-weight:600; color:var(--sx-muted); text-decoration:none;
  transition:color .15s, background-color .15s;
}
.sx-seg-item:hover{ color:var(--sx-text); }
.sx-seg-item[aria-current="page"]{ background:var(--sx-surface-3); color:var(--sx-text); box-shadow:0 1px 0 rgba(255,255,255,.04) inset; }

.sx-auth-head{ margin-bottom:24px; }
.sx-auth-title{ margin:0; font-size:26px; line-height:1.25; font-weight:700; letter-spacing:-.02em; color:var(--sx-text); }
.sx-auth-sub{ margin:8px 0 0; font-size:14px; line-height:1.6; color:var(--sx-muted); }
.sx-auth-card .sx-alert{ margin-bottom:20px; }
.sx-auth-form{ display:flex; flex-direction:column; gap:18px; }
.sx-label-row{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }

.sx-input-wrap{ position:relative; }
.sx-input-icon{ position:absolute; left:14px; top:50%; transform:translateY(-50%); display:flex; color:var(--sx-muted); pointer-events:none; transition:color .15s; }
.sx-input-wrap:focus-within .sx-input-icon{ color:var(--sx-primary-text); }
.sx-input.sx-input--icon{ padding-left:44px; min-height:48px; }
.sx-input.sx-input--toggle{ padding-right:52px; }
.sx-input:focus-visible{ outline:none; border-color:var(--sx-primary); box-shadow:0 0 0 3px var(--sx-primary-soft); }
.sx-input[aria-invalid="true"]:focus-visible{ box-shadow:0 0 0 3px var(--sx-danger-bg); }
.sx-input::-ms-reveal{ display:none; }
.sx-pw-toggle{
  position:absolute; right:2px; top:50%; transform:translateY(-50%);
  width:44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  background:none; border:0; border-radius:8px; color:var(--sx-muted); cursor:pointer; transition:color .15s;
}
.sx-pw-toggle:hover{ color:var(--sx-text); }
.sx-pw-toggle span{ display:flex; }
.sx-pw-toggle span[hidden]{ display:none; }

.sx-reqs{ list-style:none; margin:4px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.sx-reqs li{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--sx-muted); transition:color .2s; }
.sx-req-icon{ display:inline-flex; width:14px; height:14px; }
.sx-req-icon .sx-icon:last-child{ display:none; }
.sx-reqs li.is-ok{ color:var(--sx-success); }
.sx-reqs li.is-ok .sx-req-icon .sx-icon:first-child{ display:none; }
.sx-reqs li.is-ok .sx-req-icon .sx-icon:last-child{ display:block; }

.sx-auth-submit{ margin-top:6px; min-height:48px; gap:10px; }
.sx-auth-submit[aria-busy="true"]{ opacity:.85; cursor:progress; }
.sx-spinner{ width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:sxSpin .7s linear infinite; }
.sx-spinner[hidden]{ display:none; }
@keyframes sxSpin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .sx-spinner{ animation-duration:1.6s; } }

.sx-auth-legal{ margin:0; font-size:12px; line-height:1.6; color:var(--sx-muted); text-align:center; }
.sx-auth-legal a, .sx-auth-switch a{ color:var(--sx-text); font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--sx-border-strong); }
.sx-auth-legal a:hover, .sx-auth-switch a:hover{ text-decoration-color:currentColor; }
.sx-auth-switch{ margin:24px 0 0; padding-top:20px; border-top:1px solid var(--sx-border); text-align:center; font-size:14px; color:var(--sx-muted); }
.sx-auth-switch a{ display:inline-flex; align-items:center; min-height:44px; padding:0 4px; }

/* Connexion requise avant paiement */
.sx-login-lead{ margin:0; font-size:14px; line-height:1.6; color:var(--sx-muted); }
.sx-dialog-actions a.sx-btn{ text-decoration:none; }

/* Logo du header : pastille ronde, centrée sur le S (ne se fait plus couper par le bord arrondi) */
header .dynamic-header-logo{
  width:40px !important; height:40px !important; border-radius:50%; overflow:hidden;
  box-shadow:0 0 0 1px var(--sx-border-strong), 0 4px 16px -6px rgba(124,58,237,.6);
  display:block; left:14px !important;
}
header .dynamic-header-logo img{
  width:100% !important; height:100% !important; object-fit:cover !important;
  transform:scale(1.28); transform-origin:52% 50%;
}

/* Hero accueil : fond inspiré de la bannière (lueur violette, veines, paillettes bleues) */
.sx-hero-bg{ opacity:.9 !important; filter:none !important; }
.sx-hero-bg + div{
  /* voile : texte lisible au centre, bords de la bannière visibles, fondu vers la page en bas */
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(13,11,20,.55), rgba(13,11,20,0) 70%),
    linear-gradient(to bottom, rgba(13,11,20,.25) 0%, rgba(13,11,20,0) 30%, rgba(13,11,20,0) 65%, var(--sx-bg) 100%) !important;
}

/* Stock : rupture (badge, durée désactivée, message) + barre d'aperçu admin */
.sx-badge--muted{ background:rgba(13,11,20,.82); color:var(--sx-muted); border:1px solid var(--sx-border); }
.sx-option.is-disabled{ opacity:.55; cursor:not-allowed; }
.sx-option.is-disabled .sx-option-sub{ color:var(--sx-danger); }
.sx-alert--muted{ background:var(--sx-surface-2); border:1px solid var(--sx-border); color:var(--sx-muted); }
.sx-btn:disabled{ opacity:.5; cursor:not-allowed; }
.sx-preview-bar{ position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:90; display:flex; align-items:center; gap:8px; width:max-content; max-width:calc(100% - 32px); padding:10px 18px; border-radius:999px; background:#3b2a07; border:1px solid rgba(252,211,77,.45); color:#fcd34d; font-size:14px; box-shadow:var(--sx-shadow); }

/* Hero : couche interactive (particules / halo) entre le fond et le texte */
.sx-hero-fx{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.sx-hero-bg{ will-change:transform; transform:scale(1.05); }
@media (prefers-reduced-motion: reduce){ .sx-hero-bg{ transform:none !important; } }

/* ── Fenêtre de paiement : moyen sélectionné mis en avant + confiance ───────── */
.sx-option{ transition:border-color .15s, background-color .15s, transform .12s ease; }
@media (hover:hover){ .sx-option:hover{ transform:translateY(-1px); } }
.sx-option:has(input:checked){ box-shadow:inset 3px 0 0 var(--sx-primary), 0 0 0 1px var(--sx-primary); }
.sx-option:has(input:checked) .sx-option-icon{ color:var(--sx-primary-text); }
.sx-paybanner{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:var(--sx-radius-sm); background:var(--sx-success-bg,rgba(34,197,94,.12)); border:1px solid var(--sx-success-border,rgba(34,197,94,.35)); color:var(--sx-text); font-size:13px; line-height:1.5; }
.sx-paybanner .sx-icon{ color:var(--sx-success,#86efac); flex-shrink:0; }
@media (prefers-reduced-motion: reduce){ .sx-option{ transition:none; } .sx-option:hover{ transform:none; } }

/* --- Code promo (fenêtre de paiement) --- */
.sx-promo-field { margin-top: 4px; }
.sx-promo-row { display: flex; gap: 8px; align-items: stretch; }
.sx-promo-input { flex: 1 1 auto; text-transform: uppercase; letter-spacing: .04em; font-variant: tabular-nums; }
.sx-promo-input:disabled { opacity: .8; }
.sx-promo-apply { flex: 0 0 auto; white-space: nowrap; min-width: 92px; }
#sx-promo-msg { margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
#sx-promo-msg.sx-promo-ok { color: var(--sx-success, #6ee7b7); }
#sx-promo-msg.sx-promo-err { color: var(--sx-danger, #fca5a5); }

/* ── Panneau d'achat : version « peps » ─────────────────────────────────────── */
.sx-dialog:has(#sx-pay-form){
  background:
    radial-gradient(120% 55% at 100% 0%, rgba(168,85,247,.24), transparent 62%),
    radial-gradient(90% 45% at 0% 100%, rgba(236,72,153,.12), transparent 60%),
    var(--sx-surface);
  border-color:rgba(168,85,247,.38);
  box-shadow:0 30px 90px -30px rgba(124,58,237,.6), var(--sx-shadow);
}
.sx-dialog:has(#sx-pay-form) .sx-dialog-header{ position:relative; border-bottom:0; }
.sx-dialog:has(#sx-pay-form) .sx-dialog-header::after{
  content:""; position:absolute; left:24px; right:24px; bottom:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(192,132,252,.7), rgba(236,72,153,.5), transparent);
}
.sx-dialog:has(#sx-pay-form) .sx-dialog-title{
  font-size:20px; font-weight:800;
  background:linear-gradient(90deg,#ffffff,#ede4ff 55%,#d8b4fe); -webkit-background-clip:text; background-clip:text; color:transparent;
}

#sx-pay-form{ counter-reset:sx-step; gap:22px; }
#sx-pay-form .sx-step{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:700; color:var(--sx-text); }
#sx-pay-form .sx-step::before{
  counter-increment:sx-step; content:counter(sx-step);
  display:inline-grid; place-items:center; flex-shrink:0; width:22px; height:22px; border-radius:50%;
  font:800 12px/1 var(--sx-font); color:#fff; background:linear-gradient(135deg,#c084fc,#7c3aed);
  box-shadow:0 0 0 4px rgba(168,85,247,.16);
}

#sx-pay-form .sx-product-row{
  gap:14px; padding:14px; border-radius:16px;
  background:linear-gradient(135deg, rgba(124,58,237,.22), rgba(28,24,41,.92) 70%);
  border-color:rgba(168,85,247,.32);
}
#sx-pay-form .sx-thumb{ width:60px; height:60px; border-radius:14px; box-shadow:0 0 0 1px rgba(255,255,255,.08), 0 10px 26px -10px rgba(168,85,247,.95); }
.sx-product-info{ display:flex; flex-direction:column; gap:5px; min-width:0; }
#sx-pay-form .sx-product-name{ font-size:16px; font-weight:800; letter-spacing:-.01em; }
.sx-product-sub{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:#e9d5ff; }
.sx-product-sub .sx-icon{ color:#fcd34d; fill:#fcd34d; stroke:none; }

.sx-perks-strip{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.sx-perks-strip li{
  display:flex; flex-direction:column; align-items:center; gap:6px; padding:11px 6px; text-align:center;
  font-size:11.5px; font-weight:600; line-height:1.3; color:var(--sx-text);
  background:rgba(255,255,255,.035); border:1px solid var(--sx-border); border-radius:12px;
}
.sx-perks-strip li:nth-child(1) .sx-icon{ color:#86efac; }
.sx-perks-strip li:nth-child(2) .sx-icon{ color:#fcd34d; }
.sx-perks-strip li:nth-child(3) .sx-icon{ color:#93c5fd; }

#sx-pay-form .sx-option{ min-height:58px; padding:12px 16px; border-radius:14px; background:rgba(28,24,41,.78); }
#sx-pay-form .sx-option:has(input:checked){
  border-color:transparent;
  background:linear-gradient(rgba(44,22,78,.96), rgba(44,22,78,.96)) padding-box, linear-gradient(135deg,#c084fc,#7c3aed 50%,#ec4899) border-box;
  box-shadow:0 12px 32px -14px rgba(168,85,247,.85);
}
#sx-pay-form .sx-option:has(input:checked) .sx-radio{ border-color:transparent; background:linear-gradient(135deg,#c084fc,#7c3aed); box-shadow:0 0 0 3px rgba(168,85,247,.22); }
#sx-pay-form .sx-option:has(input:checked) .sx-radio::after{ width:6px; height:6px; background:#fff; }
#sx-pay-form .sx-option-title{ font-size:14.5px; font-weight:700; }
#sx-pay-form .sx-option-price{ font-size:16px; font-weight:800; }
#sx-pay-form .sx-option:has(input:checked) .sx-option-price{ background:linear-gradient(90deg,#ffffff,#f0abfc); -webkit-background-clip:text; background-clip:text; color:transparent; }
#sx-pay-form .sx-option-icon{
  width:40px; height:40px; flex-shrink:0; display:inline-grid; place-items:center; border-radius:12px;
  background:rgba(124,58,237,.16); border:1px solid rgba(168,85,247,.28); color:#d8b4fe;
  transition:background .2s, box-shadow .2s, color .2s;
}
#sx-pay-form .sx-option:has(input:checked) .sx-option-icon{ background:linear-gradient(135deg,#a855f7,#7c3aed); border-color:transparent; color:#fff; box-shadow:0 8px 20px -8px rgba(168,85,247,.95); }
#sx-pay-form .sx-chip{ min-height:46px; border-radius:12px; font-weight:700; }
#sx-pay-form .sx-chip:has(input:checked){ border-color:transparent; color:#fff; background:linear-gradient(135deg,#a855f7,#7c3aed); box-shadow:0 8px 22px -10px rgba(168,85,247,.95); }

#sx-pay-form .sx-input{ min-height:48px; border-radius:12px; background:rgba(13,11,20,.85); transition:border-color .15s, box-shadow .2s; }
#sx-pay-form .sx-input:focus{ border-color:#a855f7; box-shadow:0 0 0 4px rgba(168,85,247,.22); }

#sx-pay-form .sx-btn-cta{
  position:relative; overflow:hidden; isolation:isolate; min-height:56px; border:0; border-radius:14px;
  font-size:15.5px; font-weight:800; letter-spacing:.01em; color:#fff;
  background:linear-gradient(120deg,#a855f7 0%,#7c3aed 45%,#db2777 100%); background-size:180% 100%; background-position:0% 50%;
  box-shadow:0 16px 36px -14px rgba(168,85,247,.95), inset 0 1px 0 rgba(255,255,255,.28);
  transition:background-position .45s var(--sx-ease), transform .15s var(--sx-ease), box-shadow .2s;
}
#sx-pay-form .sx-btn-cta:hover:not(:disabled){ background:linear-gradient(120deg,#a855f7 0%,#7c3aed 45%,#db2777 100%); background-size:180% 100%; background-position:100% 50%; transform:translateY(-1px); box-shadow:0 20px 42px -14px rgba(219,39,119,.75), inset 0 1px 0 rgba(255,255,255,.28); }
#sx-pay-form .sx-btn-cta:active:not(:disabled){ transform:translateY(0) scale(.99); }
#sx-pay-form .sx-btn-cta::after{ content:"→"; margin-left:8px; font-weight:800; transition:transform .2s var(--sx-ease); }
#sx-pay-form .sx-btn-cta:hover:not(:disabled)::after{ transform:translateX(4px); }
#sx-pay-form .sx-btn-cta::before{
  content:""; position:absolute; z-index:-1; top:0; left:-60%; width:38%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); transform:skewX(-20deg);
  animation:sx-shine 3.6s ease-in-out infinite;
}
@keyframes sx-shine{ 0%, 62%{ left:-60%; } 100%{ left:135%; } }
@keyframes sx-rise{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: no-preference){
  .sx-overlay.is-open #sx-pay-form > *{ animation:sx-rise .5s var(--sx-ease) both; }
  .sx-overlay.is-open #sx-pay-form > :nth-child(2){ animation-delay:.05s; }
  .sx-overlay.is-open #sx-pay-form > :nth-child(3){ animation-delay:.1s; }
  .sx-overlay.is-open #sx-pay-form > :nth-child(4){ animation-delay:.15s; }
  .sx-overlay.is-open #sx-pay-form > :nth-child(5){ animation-delay:.2s; }
  .sx-overlay.is-open #sx-pay-form > :nth-child(n+6){ animation-delay:.25s; }
}
@media (prefers-reduced-motion: reduce){
  #sx-pay-form .sx-btn-cta::before{ animation:none; display:none; }
  #sx-pay-form .sx-btn-cta, #sx-pay-form .sx-btn-cta::after{ transition:none; }
}

/* Choix de la crypto : cartes sobres aux couleurs de chaque monnaie */
#sx-pay-form .sx-sublegend{ font-size:12px; font-weight:600; color:var(--sx-muted); text-transform:none; }
#sx-pay-form .sx-coin{
  justify-content:flex-start; gap:10px; min-height:58px; padding:10px 12px; border-radius:14px;
  background:rgba(28,24,41,.78); border:1px solid var(--sx-border); color:var(--sx-text);
  transition:border-color .15s, background .15s, box-shadow .2s, transform .12s;
}
#sx-pay-form .sx-coin:hover{ border-color:var(--sx-border-strong); }
@media (hover:hover){ #sx-pay-form .sx-coin:hover{ transform:translateY(-1px); } }
#sx-pay-form .sx-coin:has(input:checked){
  color:var(--sx-text); border-color:transparent;
  background:linear-gradient(rgba(44,22,78,.96), rgba(44,22,78,.96)) padding-box, linear-gradient(135deg,#c084fc,#7c3aed 55%,#ec4899) border-box;
  box-shadow:0 8px 22px -14px rgba(168,85,247,.8);
}
.sx-coin-badge{
  width:32px; height:32px; flex-shrink:0; display:inline-grid; place-items:center; border-radius:50%;
  font:700 16px/1 var(--sx-font); color:#fff; background:var(--coin,#7c3aed);
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.18);
}
.sx-coin--btc{ --coin:#f7931a; }
.sx-coin--eth{ --coin:#627eea; }
.sx-coin--ltc{ --coin:#345d9d; }
.sx-coin-text{ display:flex; flex-direction:column; gap:1px; min-width:0; text-align:left; }
.sx-coin-tick{ font-size:13.5px; font-weight:700; line-height:1.2; }
.sx-coin-name{ font-size:11.5px; font-weight:500; color:var(--sx-muted); line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sx-coin-check{
  position:absolute; top:6px; right:6px; width:18px; height:18px; display:inline-grid; place-items:center; border-radius:50%;
  background:linear-gradient(135deg,#c084fc,#7c3aed); color:#fff; opacity:0; transform:scale(.6); transition:opacity .15s, transform .2s var(--sx-ease);
}
.sx-coin-check .sx-icon{ stroke-width:3; }
#sx-pay-form .sx-coin:has(input:checked) .sx-coin-check{ opacity:1; transform:none; }
@media (max-width:420px){ .sx-coin-name{ display:none; } #sx-pay-form .sx-coin{ justify-content:center; } }

/* Halos plus discrets pour un rendu plus net */
#sx-pay-form .sx-option:has(input:checked){ box-shadow:0 8px 24px -16px rgba(168,85,247,.8); }
#sx-pay-form .sx-option:has(input:checked) .sx-option-icon{ box-shadow:0 6px 16px -10px rgba(168,85,247,.9); }

/* Bouton radio net (une seule couche, sans pseudo-élément) */
#sx-pay-form .sx-radio{ width:20px; height:20px; box-sizing:border-box; border-width:2px; }
#sx-pay-form .sx-option:has(input:checked) .sx-radio{
  border:0; background:#fff;
  box-shadow:inset 0 0 0 6px #8b5cf6, 0 0 0 3px rgba(168,85,247,.25);
}
#sx-pay-form .sx-option:has(input:checked) .sx-radio::after{ content:none; }

/* ── Accueil : « Pourquoi Spectra Shop » en mosaïque ────────────────────────── */
.sxw{ position:relative; padding:96px 16px; overflow:hidden; font-family:var(--sx-font); }
.sxw::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(40% 50% at 15% 20%, rgba(139,92,246,.14), transparent 70%), radial-gradient(35% 45% at 85% 70%, rgba(236,72,153,.08), transparent 70%); }
.sxw-wrap{ position:relative; max-width:1180px; margin:0 auto; }
.sxw-head{ max-width:640px; margin:0 auto 48px; text-align:center; }
.sxw-eyebrow{ display:inline-flex; align-items:center; gap:8px; margin:0 0 14px; padding:6px 14px; border-radius:999px;
  font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#d8b4fe;
  background:rgba(124,58,237,.12); border:1px solid rgba(168,85,247,.28); }
.sxw-title{ margin:0; font-size:clamp(30px, 4.4vw, 48px); line-height:1.08; font-weight:800; letter-spacing:-.035em; color:var(--sx-text); text-wrap:balance; }
.sxw-title span{ background:linear-gradient(90deg,#c084fc,#f0abfc 60%,#f9a8d4); -webkit-background-clip:text; background-clip:text; color:transparent; }
.sxw-lead{ margin:16px 0 0; font-size:16px; line-height:1.65; color:var(--sx-muted); }

.sxw-grid{ display:grid; gap:16px; grid-template-columns:repeat(12, minmax(0,1fr)); }
.sxw-card{
  --acc:168,85,247; position:relative; overflow:hidden; isolation:isolate;
  display:flex; flex-direction:column; gap:10px; padding:28px; border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border:1px solid rgba(255,255,255,.07);
  transition:transform .3s var(--sx-ease), border-color .3s, box-shadow .3s;
}
.sxw-card::before{ content:""; position:absolute; z-index:-1; inset:-1px; pointer-events:none;
  background:radial-gradient(70% 60% at 0% 0%, rgba(var(--acc),.16), transparent 65%); transition:opacity .3s; }
.sxw-card:hover{ transform:translateY(-4px); border-color:rgba(var(--acc),.42); box-shadow:0 24px 60px -30px rgba(var(--acc),.55); }
.sxw-card:hover::before{ opacity:1.4; }
.sxw-ico{ width:46px; height:46px; display:inline-grid; place-items:center; border-radius:14px; margin-bottom:6px;
  color:rgb(var(--acc)); background:rgba(var(--acc),.12); border:1px solid rgba(var(--acc),.3); }
.sxw-h{ margin:0; font-size:19px; font-weight:700; letter-spacing:-.015em; color:var(--sx-text); }
.sxw-p{ margin:0; font-size:14.5px; line-height:1.65; color:var(--sx-muted); }

.sxw-hero{ grid-column:1 / span 7; grid-row:span 2; flex-direction:row; align-items:center; gap:28px; padding:36px; }
.sxw-hero::before{ background:radial-gradient(80% 70% at 0% 0%, rgba(168,85,247,.22), transparent 60%), radial-gradient(60% 60% at 100% 100%, rgba(236,72,153,.14), transparent 60%); }
.sxw-hero-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:14px; }
.sxw-pill{ align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px;
  font-size:12px; font-weight:700; color:#fff; background:linear-gradient(135deg,#a855f7,#7c3aed); box-shadow:0 8px 20px -10px rgba(168,85,247,.9); }
.sxw-pill .sx-icon{ fill:#fde68a; stroke:none; }
.sxw-hero-h{ margin:0; font-size:clamp(24px, 2.6vw, 32px); line-height:1.15; font-weight:800; letter-spacing:-.03em; color:var(--sx-text); text-wrap:balance; }
.sxw-steps{ list-style:none; margin:6px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.sxw-steps li{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--sx-text); }
.sxw-steps span{ width:24px; height:24px; flex-shrink:0; display:inline-grid; place-items:center; border-radius:50%;
  color:#fff; background:linear-gradient(135deg,#34d399,#059669); box-shadow:0 0 0 4px rgba(52,211,153,.14); }
.sxw-steps .sx-icon{ stroke-width:3; }

.sxw-mail{ width:280px; flex-shrink:0; padding:18px; border-radius:20px; color:var(--sx-text);
  background:linear-gradient(180deg, rgba(30,24,48,.95), rgba(18,14,30,.95)); border:1px solid rgba(255,255,255,.1);
  box-shadow:0 30px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(168,85,247,.12); transform:rotate(2deg); }
.sxw-mail-top{ display:flex; align-items:center; gap:10px; }
.sxw-mail-top b{ display:block; font-size:13.5px; }
.sxw-mail-top small{ font-size:11.5px; color:var(--sx-muted); }
.sxw-mail-top em{ margin-left:auto; font-style:normal; font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:999px; color:#bbf7d0; background:rgba(52,211,153,.14); }
.sxw-mail-logo{ width:34px; height:34px; display:grid; place-items:center; border-radius:10px; font-weight:800; color:#fff; background:linear-gradient(135deg,#a855f7,#6d28d9); }
.sxw-mail-subj{ display:flex; align-items:center; gap:8px; margin:16px 0 12px; font-size:14px; font-weight:700; }
.sxw-mail-subj .sx-icon{ color:#fcd34d; }
.sxw-mail-key{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; border-radius:12px; background:rgba(0,0,0,.35); border:1px dashed rgba(168,85,247,.45); }
.sxw-mail-key code{ font:600 12.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace; color:#e9d5ff; letter-spacing:.02em; }
.sxw-mail-key span{ color:var(--sx-muted); display:inline-flex; }
.sxw-mail-btn{ margin-top:12px; padding:10px; border-radius:10px; text-align:center; font-size:12.5px; font-weight:700; color:#fff; background:linear-gradient(135deg,#a855f7,#7c3aed); }

.sxw-pay, .sxw-support{ grid-column:8 / span 5; }
.sxw-sm{ grid-column:span 4; }
.sxw-chips{ list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.sxw-chips li{ display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:600; color:var(--sx-text); background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); }
.sxw-chips span{ width:8px; height:8px; border-radius:50%; }
.sxw-link{ align-self:flex-start; margin-top:8px; display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 14px; border-radius:12px;
  font-size:13.5px; font-weight:700; color:#fff; text-decoration:none; background:#5865f2; box-shadow:0 10px 24px -12px rgba(88,101,242,.9); transition:background .2s, transform .2s; }
.sxw-link:hover{ background:#4752c4; }
.sxw-link .sx-icon{ transition:transform .2s var(--sx-ease); }
.sxw-link:hover .sx-icon{ transform:translateX(3px); }
.sxw-link:focus-visible{ outline:2px solid #fff; outline-offset:3px; }

@media (prefers-reduced-motion: no-preference){
  .sxw-steps li{ animation:sxw-step 6s var(--sx-ease) infinite both; }
  .sxw-steps li:nth-child(2){ animation-delay:.6s; }
  .sxw-steps li:nth-child(3){ animation-delay:1.2s; }
  .sxw-mail{ animation:sxw-float 6s ease-in-out infinite; }
}
@keyframes sxw-step{ 0%{ opacity:.35; } 8%, 85%{ opacity:1; } 100%{ opacity:.35; } }
@keyframes sxw-float{ 0%, 100%{ transform:rotate(2deg) translateY(0); } 50%{ transform:rotate(2deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce){ .sxw-card, .sxw-link, .sxw-link .sx-icon{ transition:none; } .sxw-card:hover{ transform:none; } }

@media (max-width:1024px){
  .sxw-hero{ grid-column:1 / -1; grid-row:auto; }
  .sxw-pay, .sxw-support{ grid-column:span 6; }
  .sxw-sm{ grid-column:span 4; }
}
@media (max-width:760px){
  .sxw{ padding:64px 16px; }
  .sxw-grid{ grid-template-columns:1fr; }
  .sxw-hero, .sxw-pay, .sxw-support, .sxw-sm{ grid-column:auto; }
  .sxw-hero{ flex-direction:column; align-items:stretch; padding:26px; }
  .sxw-mail{ width:auto; transform:none; }
  .sxw-card{ padding:24px; }
}
@media (max-width:760px){ .sxw-mail{ animation:none; } }
@media (min-width:1025px){ .sxw-hero{ gap:24px; padding:32px; } .sxw-mail{ width:250px; } }

/* ── Accueil : transitions douces entre les sections ───────────────────────── */
.sxw::before{
  -webkit-mask-image:linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image:linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
main.storefront-main > section:nth-of-type(n+3){ position:relative; isolation:isolate; }
main.storefront-main > section:nth-of-type(n+3)::after{
  content:""; position:absolute; z-index:-1; left:0; right:0; top:0; height:200px; pointer-events:none;
  background:
    linear-gradient(90deg, transparent, rgba(168,85,247,.42) 28%, rgba(236,72,153,.32) 72%, transparent) top center / min(1100px, 86%) 1px no-repeat,
    radial-gradient(42% 100% at 50% 0%, rgba(139,92,246,.11), transparent 72%);
}
/* Bas de la bannière d'accueil : fondu au lieu d'une coupure nette */
main.storefront-main > section:first-of-type > .sx-hero-bg,
main.storefront-main > section:first-of-type > div.absolute.inset-0,
main.storefront-main > section:first-of-type > .sx-hero-fx{
  -webkit-mask-image:linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image:linear-gradient(to bottom, #000 62%, transparent 100%);
}

/* Note « PayPal via ticket Discord » dans le panneau d'achat */
.sx-ppnote{ display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:12px; font-size:13px; line-height:1.5; color:var(--sx-text);
  background:rgba(88,101,242,.12); border:1px solid rgba(88,101,242,.4); }
.sx-ppnote[hidden]{ display:none; }
.sx-ppnote .sx-icon{ color:#a5b4fc; margin-top:1px; }


/* Paysafecard : pays + saisie des codes */
#sx-pay-form .sx-psc{ gap:10px; padding:16px; border-radius:16px; background:rgba(13,11,20,.55); border:1px solid rgba(168,85,247,.25); }
.sx-psc-countries{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
#sx-pay-form .sx-psc-country{ flex-direction:column; gap:2px; min-height:56px; font-size:12px; font-weight:600; color:var(--sx-muted); }
.sx-psc-cc{ font-size:13px; font-weight:800; letter-spacing:.06em; color:var(--sx-text); }
#sx-pay-form .sx-psc-country:has(input:checked){ color:#fff; }
.sx-psc-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-top:6px; }
.sx-psc-head .sx-help{ font-size:11.5px; }
.sx-psc-codes{ display:flex; flex-direction:column; gap:8px; }
.sx-psc-row{ position:relative; display:flex; align-items:center; gap:8px; }
.sx-psc-ico{ position:absolute; left:14px; display:inline-flex; color:#c4b5fd; pointer-events:none; }
#sx-pay-form .sx-psc-input{ flex:1; padding-left:44px; font:600 15px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; }
.sx-psc-del[hidden]{ display:none; }
.sx-psc-add{ align-self:flex-start; }
.sx-psc-add[hidden]{ display:none; }
.sx-psc-note{ display:flex; gap:8px; align-items:flex-start; margin:4px 0 0; padding:10px 12px; border-radius:12px; font-size:12px; line-height:1.55; color:var(--sx-muted); background:rgba(255,255,255,.03); border:1px solid var(--sx-border); }
.sx-psc-note .sx-icon{ color:#86efac; margin-top:2px; flex-shrink:0; }
.sx-psc-note strong{ color:var(--sx-text); }
@media (max-width:420px){ .sx-psc-countries{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Paysafecard v2 : en-tete, drapeaux, champs facon ticket */
#sx-pay-form .sx-psc{ gap:12px; padding:18px; border-radius:18px;
  background:linear-gradient(180deg, rgba(124,58,237,.10), rgba(13,11,20,.6) 55%); border:1px solid rgba(168,85,247,.28); }
.sx-psc-top{ display:flex; align-items:center; gap:12px; padding:0; margin:0 0 4px; float:left; width:100%; }
.sx-psc-top + *{ clear:both; }
.sx-psc-brand{ width:42px; height:42px; flex-shrink:0; display:inline-grid; place-items:center; border-radius:12px; color:#fff;
  background:linear-gradient(135deg,#00a3e0,#0057b8); box-shadow:0 8px 20px -10px rgba(0,163,224,.9); }
.sx-psc-titles{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.sx-psc-title{ font-size:15px; font-weight:800; color:var(--sx-text); letter-spacing:-.01em; }
.sx-psc-sub{ font-size:12px; color:var(--sx-muted); }
.sx-psc-label{ margin:6px 0 0; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--sx-muted); }

#sx-pay-form .sx-psc-country{
  position:relative; flex-direction:column; justify-content:center; gap:7px; min-height:72px; padding:10px 6px; border-radius:14px;
  background:rgba(28,24,41,.78); border:1px solid var(--sx-border); color:var(--sx-text); font-size:12px; font-weight:600;
  box-shadow:none; transition:border-color .15s, background .15s, transform .12s;
}
#sx-pay-form .sx-psc-country:hover{ border-color:var(--sx-border-strong); }
@media (hover:hover){ #sx-pay-form .sx-psc-country:hover{ transform:translateY(-1px); } }
#sx-pay-form .sx-psc-country:has(input:checked){
  color:#fff; border-color:transparent;
  background:linear-gradient(rgba(44,22,78,.96), rgba(44,22,78,.96)) padding-box, linear-gradient(135deg,#c084fc,#7c3aed 55%,#ec4899) border-box;
  box-shadow:0 8px 22px -14px rgba(168,85,247,.8);
}
#sx-pay-form .sx-psc-country:has(input:checked) .sx-coin-check{ opacity:1; transform:none; }
.sx-psc-cname{ line-height:1.2; }
.sx-flag{ display:block; width:28px; height:19px; border-radius:4px; box-shadow:0 0 0 1px rgba(255,255,255,.18), 0 4px 10px -4px rgba(0,0,0,.6); }
.sx-flag--fr{ background:linear-gradient(90deg,#0055a4 0 33.4%,#fff 33.4% 66.6%,#ef4135 66.6%); }
.sx-flag--be{ background:linear-gradient(90deg,#111 0 33.4%,#fdda24 33.4% 66.6%,#ef3340 66.6%); }
.sx-flag--de{ background:linear-gradient(180deg,#111 0 33.4%,#dd0000 33.4% 66.6%,#ffce00 66.6%); }
.sx-flag--ch{ width:19px; background:linear-gradient(#fff,#fff) center/58% 18% no-repeat, linear-gradient(#fff,#fff) center/18% 58% no-repeat, #da291c; }

.sx-psc-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:4px; }
.sx-psc-head .sx-psc-label{ margin:0; }
.sx-psc-counter{ padding:3px 9px; border-radius:999px; font-size:11.5px; font-weight:700; color:#d8b4fe; background:rgba(124,58,237,.14); border:1px solid rgba(168,85,247,.28); }

.sx-psc-row{ position:relative; }
#sx-pay-form .sx-psc-input{
  min-height:54px; padding:0 112px 0 48px; border-radius:14px; border-style:dashed; border-color:rgba(168,85,247,.38);
  background:rgba(10,8,18,.85); font:700 16px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.1em; color:#f5f3ff;
}
#sx-pay-form .sx-psc-input::placeholder{ color:rgba(196,181,253,.35); }
#sx-pay-form .sx-psc-input:focus{ border-style:solid; }
.sx-psc-ico{ left:16px; color:#a78bfa; }
.sx-psc-len{ position:absolute; right:52px; font:700 11.5px/1 var(--sx-font); color:var(--sx-muted); pointer-events:none; transition:color .15s; }
.sx-psc-ok{ position:absolute; right:52px; width:22px; height:22px; display:inline-grid; place-items:center; border-radius:50%; color:#fff;
  background:linear-gradient(135deg,#34d399,#059669); opacity:0; transform:scale(.6); transition:opacity .15s, transform .2s var(--sx-ease); pointer-events:none; }
.sx-psc-ok .sx-icon{ stroke-width:3; }
.sx-psc-row.is-full .sx-psc-len{ opacity:0; }
.sx-psc-row.is-full .sx-psc-ok{ opacity:1; transform:none; }
.sx-psc-row.is-full #sx-psc-codes, #sx-pay-form .sx-psc-row.is-full .sx-psc-input{ border-style:solid; border-color:rgba(52,211,153,.55); }
.sx-psc-del{ position:absolute; right:8px; }
.sx-psc-del[hidden]{ display:none; }
.sx-psc-row:has(.sx-psc-del[hidden]) .sx-psc-len, .sx-psc-row:has(.sx-psc-del[hidden]) .sx-psc-ok{ right:16px; }
#sx-pay-form .sx-psc-row:has(.sx-psc-del[hidden]) .sx-psc-input{ padding-right:72px; }

.sx-psc-add{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:46px; border-radius:14px; cursor:pointer;
  font:700 13.5px/1 var(--sx-font); color:#d8b4fe; background:transparent; border:1px dashed rgba(168,85,247,.45);
  transition:background .15s, border-color .15s, color .15s;
}
.sx-psc-add:hover{ background:rgba(124,58,237,.12); border-color:#a855f7; color:#fff; }
.sx-psc-add:focus-visible{ outline:2px solid var(--sx-primary-text); outline-offset:2px; }
.sx-psc-add[hidden]{ display:none; }

#sx-pay-form .sx-psc-note{ align-items:center; gap:12px; padding:12px 14px; background:rgba(52,211,153,.07); border-color:rgba(52,211,153,.28); }
.sx-psc-shield{ width:30px; height:30px; flex-shrink:0; display:inline-grid; place-items:center; border-radius:10px; background:rgba(52,211,153,.16); }
.sx-psc-shield .sx-icon{ color:#6ee7b7; margin:0; }
@media (max-width:420px){ #sx-pay-form .sx-psc-country{ min-height:64px; } }
.sx-psc-len, .sx-psc-ok{ right:60px; }
#sx-pay-form .sx-psc-input{ padding-right:120px; }
