/* =====================================================================
   NEXX Guest — design du site public et base de l'admin.
   Même thème que NEXX likes, NEXX gift et NEXX Top Up : monochrome,
   sombre par défaut, clair sur demande (js/theme.js), police Geist.
   Seule exception volontaire : les cartes flottantes de l'accueil
   (hero-card) gardent leur halo orange et leurs prix dorés.
   ===================================================================== */

/* ---------- Thème : tokens (clair) ---------- */
:root {
  color-scheme: light;
  --bg: #ECEDF0;
  --bg-2: #E6E8EB;
  --surface: #F4F5F7;
  --surface-2: #E8EAED;
  --input-bg: #F8F9FA;
  --header-bg: rgb(236 237 240 / .88);
  --hover: rgb(24 28 38 / .06);
  --thumb-bg: radial-gradient(circle at 50% 40%, #F4F5F7, #DFE1E6 75%);
  --logo-plate: #F8F9FA;
  --line: #DBDDE2;
  --line-2: #CBCED5;
  --line-3: #A9ADB6;
  --text: #1B1D21;
  --text-2: #40434A;
  --muted: #575B63;
  --faint: #5F636B;
  --accent: #1B1D21;
  --accent-hover: #33363C;
  --accent-ink: #F6F7F8;
  --accent-soft: rgb(24 28 38 / .06);
  --ok: #1E6E33; --ok-bg: rgb(30 110 51 / .1); --ok-line: rgb(30 110 51 / .35);
  --bad: #B3261E; --bad-bg: rgb(179 38 30 / .09); --bad-line: rgb(179 38 30 / .38);
  --warn: #865000; --warn-bg: rgb(134 80 0 / .1); --warn-line: rgb(134 80 0 / .35);
  --info: #0B5AB8; --info-bg: rgb(11 90 184 / .09); --info-line: rgb(11 90 184 / .32);
  --binance: #F3BA2F; --binance-ink: #755300;
  --mvola: #FFD400;
  --ring: 0 0 0 1px rgb(24 28 38 / .11), 0 1px 2px rgb(24 28 38 / .04);
  --shadow-md: 0 8px 22px -8px rgb(24 28 38 / .18);
  --shadow-lg: 0 18px 40px -14px rgb(24 28 38 / .24);
  --backdrop: rgb(24 28 38 / .42);
  --mute-soft: rgb(24 28 38 / .07);
  --seg-on: #F8F9FA;
  /* Clair : bordures de champ nettes et ombres très légères (comme NEXX likes) */
  --line-input: #8E929B;
  --shadow-card: 0 1px 2px rgb(24 28 38 / .04);
  --shadow-btn: 0 2px 6px rgb(24 28 38 / .18);
  --shadow-btn-hover: 0 4px 10px rgb(24 28 38 / .22);
  --shadow-hover: 0 12px 24px -16px rgb(24 28 38 / .28);

  --radius: 6px;
  --radius-sm: 6px;
  --display: 'Geist', 'DM Sans', system-ui, sans-serif;
  --body: 'Geist', 'DM Sans', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Anciens noms gardés pour les pages admin */
  --card: var(--surface);
  --card-2: var(--surface-2);
  --dim: var(--faint);
  --danger: var(--bad);
  --font: var(--body);
  --font-title: var(--display);
  --font-mono: var(--mono);
  --shadow: var(--shadow-md);

  /* Cartes flottantes de l'accueil (style conservé) */
  --hero-fire: #FF6B1A;
  --hero-gold: #F5B942;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a; --bg-2: #0d0d0d; --surface: #111111; --surface-2: #1a1a1a;
  --input-bg: #0a0a0a; --header-bg: rgb(10 10 10 / .85); --hover: rgb(255 255 255 / .08);
  --thumb-bg: radial-gradient(circle at 50% 40%, #273041, #151922 75%); --logo-plate: #ffffff;
  --line: #2e2e2e; --line-2: #383838; --line-3: #454545;
  --text: #ededed; --text-2: #b4b4b4; --muted: #9a9a9a; --faint: #8f8f8f;
  --accent: #ededed; --accent-hover: #ffffff; --accent-ink: #0a0a0a; --accent-soft: rgb(255 255 255 / .07);
  --ok: #62c073; --ok-bg: rgb(98 192 115 / .1); --ok-line: rgb(98 192 115 / .35);
  --bad: #ff8a8a; --bad-bg: rgb(255 138 138 / .1); --bad-line: rgb(255 138 138 / .4);
  --warn: #f5c542; --warn-bg: rgb(245 197 66 / .1); --warn-line: rgb(245 197 66 / .35);
  --info: #6cb4ff; --info-bg: rgb(108 180 255 / .1); --info-line: rgb(108 180 255 / .32);
  --binance-ink: #F3BA2F;
  --ring: 0 0 0 1px rgb(255 255 255 / .1);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 50px -12px rgba(0, 0, 0, .7);
  --backdrop: rgba(0, 0, 0, .6);
  --mute-soft: rgb(255 255 255 / .07);
  --seg-on: #262626;
  --line-input: #383838;
  --shadow-card: none; --shadow-btn: none; --shadow-btn-hover: none; --shadow-hover: none;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-2); }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }
[hidden], .hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.ico { flex-shrink: 0; }

/* ---------- Typo ---------- */
.h1, .h2, .h3 { margin: 0 0 .5rem; font-family: var(--display); line-height: 1.12; }
.h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 450; letter-spacing: -0.04em; }
.h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 450; letter-spacing: -0.03em; }
.h3 { font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow, .nx-eyebrow { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.price { font-weight: 600; color: var(--text); white-space: nowrap; font-feature-settings: "tnum" 1; }
.price-lg { font-family: var(--display); font-size: 34px; font-weight: 450; letter-spacing: -0.03em; line-height: 1; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.main { flex: 1; padding-top: 24px; padding-bottom: 56px; }
.main-flush { padding-top: 0; }
.narrow { max-width: 760px; margin: 0 auto; }
.page-head { margin: 8px 0 22px; }
.page-head p { margin: 0; }
.inline { display: inline; margin: 0; }
.backlink { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.backlink:hover { color: var(--text); }
.nx-page-pad { padding-top: 12px; }

/* ---------- Bandeau d'annonce ---------- */
.announce { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 600; text-align: center; }
.announce .ico { flex: none; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand:hover { color: var(--text); }
.nx-logo { display: block; flex-shrink: 0; width: 72px; aspect-ratio: 628 / 210; background: currentColor; color: var(--text); -webkit-mask: url("../img/nexx-logo.svg") center / contain no-repeat; mask: url("../img/nexx-logo.svg") center / contain no-repeat; }
.nx-brand-tag { flex: none; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; line-height: 1.2; color: var(--text-2); white-space: nowrap; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 8px; }
.navlink { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; color: var(--text-2); font-weight: 500; font-size: 14px; border-radius: 6px; }
.navlink:hover, .navlink[aria-current="page"] { color: var(--text); background: var(--hover); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; background: transparent; border: 0; border-radius: 6px; color: var(--text-2); cursor: pointer; }
.iconbtn:hover { background: var(--hover); color: var(--text); }
.nx-theme { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; background: transparent; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); cursor: pointer; }
.nx-theme:hover { background: var(--hover); }
.nx-theme .i-sun { display: none; }
html[data-theme="dark"] .nx-theme .i-sun { display: block; }
html[data-theme="dark"] .nx-theme .i-moon { display: none; }

/* Menu du compte (comme NEXX gift) */
.user-menu { position: relative; }
.nx-userbtn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text); }
.nx-userbtn:hover, .nx-userbtn[aria-expanded="true"] { border-color: var(--accent); }
.nx-userbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nx-userbtn > .ico { transition: transform .2s ease; }
.nx-userbtn[aria-expanded="true"] > .ico { transform: rotate(180deg); }
.nx-user-ini { width: 30px; height: 30px; flex: none; border-radius: 999px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.nx-user-ini img { width: 100%; height: 100%; object-fit: cover; }
.nx-user-name { font-size: 14px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-umenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; width: 250px; padding: 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-md); }
.nx-umenu-who { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.nx-umenu-who strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-umenu-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-umenu a, .nx-umenu button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.nx-umenu a:hover, .nx-umenu button:hover, .nx-umenu a:focus-visible, .nx-umenu button:focus-visible { background: var(--hover); }
.nx-umenu form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.nx-umenu .nx-umenu-out { color: var(--bad); font-weight: 600; }
.nx-umenu .nx-umenu-out:hover { background: var(--bad-bg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font-weight: 500; font-size: 15px;
  cursor: pointer; text-align: center; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.btn:hover { color: var(--text); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: progress; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); box-shadow: var(--shadow-btn-hover); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--hover); }
.btn-link { min-height: 36px; background: none; border: 0; padding: 0 6px; color: var(--muted); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15.5px; font-weight: 600; }
.btn-block { width: 100%; }
.btn-mvola { background: var(--mvola); color: #1d1a00; }
.btn-mvola:hover { background: #ffdc33; color: #1d1a00; }
.btn-binance { background: var(--binance); color: #1A1400; }
.btn-binance:hover { background: #F7C84F; color: #1A1400; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 16px; }
.row-btns.center { justify-content: center; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-card); }
.pad { padding: clamp(16px, 2.6vw, 24px); }
.card + .card, .card + .callout, .callout + .card, .callout + .callout, .timer + [data-stepper], .timer + .card { margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- Badges de statut ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-gray   { color: var(--text-2); background: var(--mute-soft); border-color: var(--line-2); }
.st-orange { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.st-green  { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.st-blue   { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.st-red    { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.st-dark   { color: var(--faint); background: var(--mute-soft); border-color: var(--line); }

/* ---------- Héros (NEXX) ---------- */
.nx-hero { position: relative; overflow: hidden; }
.nx-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(60% 90% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(60% 90% at 50% 40%, #000, transparent 75%); }
.nx-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #00ff95, #ffd000, #ff1744, #9500ff, #00e5ff, transparent); transform-origin: left; animation: nx-line 1.2s cubic-bezier(.16,1,.3,1) both; }
.nx-hero-in { position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(32px, 6vw, 88px) clamp(16px, 4vw, 40px) clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.nx-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.nx-display { margin: 0; font-family: var(--display); font-size: clamp(36px, 5.2vw, 62px); font-weight: 450; line-height: 1.02; letter-spacing: -0.055em; text-wrap: balance; }
.nx-display em { font-style: normal; color: var(--muted); }
.nx-lead { margin: 0; max-width: 56ch; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; color: var(--text-2); }
.nx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nx-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13.5px; color: var(--muted); }
.nx-facts strong { color: var(--text); font-weight: 500; font-feature-settings: "tnum" 1; }

/* Cartes flottantes (style conservé de l'ancienne version : halo orange, prix dorés) */
.hero-visual { position: relative; height: 300px; }
.hero-card {
  position: absolute; width: 58%; overflow: hidden;
  background: #151922; border: 1px solid #323a49; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: #EEF1F6;
}
.hero-card-media { position: relative; height: 150px; background: radial-gradient(circle at 50% 40%, #2b3446 0%, #151922 72%); }
.hero-card-body { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px 12px; font-weight: 600; font-size: 14px; }
.hero-card-body span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-card-body .price { color: var(--hero-gold); font-weight: 700; font-size: 13px; }
.hero-card-1 { left: 0; top: 24px; transform: rotate(-4deg); z-index: 2; border-color: rgba(255, 107, 26, .55); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 40px rgba(255, 107, 26, .18); }
.hero-card-2 { right: 0; top: 0; transform: rotate(5deg); z-index: 1; }
.hero-card-3 { left: 22%; bottom: 0; transform: rotate(1deg); z-index: 3; }
.hero-card .thumbs img { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); }
@media (min-width: 900px) {
  .hero-visual { height: 400px; }
  .hero-card-media { height: 190px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-card { transition: transform .4s ease; }
  .hero-visual:hover .hero-card-1 { transform: rotate(-6deg) translateY(-6px); }
  .hero-visual:hover .hero-card-2 { transform: rotate(7deg) translateY(-4px); }
}

/* ---------- Onglets « serveur » ---------- */
.srv-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 3px; margin: 0; border-radius: 6px; background: var(--mute-soft); scrollbar-width: none; }
.srv-tabs::-webkit-scrollbar { display: none; }
.srv-tab { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 4px; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.srv-tab:hover { color: var(--text); }
.srv-tab[aria-current="page"], .srv-tab.is-active { background: var(--seg-on); color: var(--text); box-shadow: var(--ring); }
.srv-flag { font-size: 16px; line-height: 1; }
.srv-code { font-family: var(--mono); font-size: 12.5px; }
.srv-count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.srv-name { color: var(--muted); font-size: 13px; }
.srv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-3); font-size: 13px; white-space: nowrap; }
.srv-pill b { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.srv-mini { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.srv-mini span { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }

/* ---------- Sections ---------- */
.nx-section { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 40px); scroll-margin-top: 72px; }
.nx-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 20px; }
.nx-section-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.nx-h2 { margin: 0; font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-weight: 450; line-height: 1.1; letter-spacing: -0.04em; }
.section { margin-top: 48px; }

.nx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--ring); }
.nx-cell { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--surface); min-width: 0; }
.nx-cell h3 { margin: 0; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.nx-cell p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.nx-cell > .ico { margin-bottom: 8px; color: var(--text); }
.nx-cell-pay { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; background: var(--accent); color: var(--accent-ink); }
.nx-cell-pay h3 { color: var(--accent-ink); }
.nx-cell-pay p { color: var(--accent-ink); opacity: .72; }
.nx-cell-pay ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.nx-cell-pay li { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.nx-cell-pay img { width: 32px; height: 32px; border-radius: 6px; background: var(--logo-plate); object-fit: contain; }
.nx-pay-ini { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--logo-plate); color: #0a0a0a; font-weight: 700; font-size: 15px; }
.nx-servers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nx-server { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-3); font-size: 13px; color: var(--text-2); }
.nx-server b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--text); }
a.nx-server:hover { background: var(--hover); color: var(--text); }

.nx-how ol { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nx-how li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 6px; background: var(--surface); box-shadow: var(--ring); }
.nx-how-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nx-how h3 { margin: 0 0 4px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.nx-how p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }

.nx-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.nx-faq-sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.nx-faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--ring); }
.nx-faq-list details { background: var(--surface); }
.nx-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 54px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 500; font-size: 15px; }
.nx-faq-list summary::-webkit-details-marker { display: none; }
.nx-faq-list summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 16px; color: var(--muted); }
.nx-faq-list details[open] summary::after { content: "−"; }
.nx-faq-list summary:hover { background: var(--hover); }
.nx-faq-list p { margin: 0; padding: 0 18px 16px; font-size: 14px; line-height: 1.6; color: var(--text-2); }

.contact-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Grille produits ---------- */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px)  { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid-products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s ease, transform .15s ease; }
.pcard-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.pcard-link:hover { color: inherit; }
@media (hover: hover) {
  .pcard:not(.is-soldout):hover { box-shadow: inset 0 0 0 1px var(--text); }
  .pcard:not(.is-soldout):hover .thumbs img { transform: scale(1.05); }
}
.pcard:not(.is-soldout):active { transform: scale(.99); }
.pcard-media { position: relative; aspect-ratio: 1 / 1; background: var(--thumb-bg); border-bottom: 1px solid var(--line); }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.pcard-cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.pcard-name { margin: 0; font-weight: 500; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pcard-foot .price { font-size: 15px; font-weight: 500; }
.pcard-stock { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pcard-srv { margin-top: 2px; }
.pcard.is-soldout { cursor: not-allowed; }
.pcard.is-soldout .pcard-media img { filter: grayscale(1); opacity: .45; }
.pcard.is-soldout .pcard-body, .pcard.is-soldout .price { color: var(--muted); }

.thumbs { position: absolute; inset: 0; display: grid; place-items: center; padding: 10%; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.thumbs.n2 { grid-template-columns: 1fr 1fr; gap: 4%; padding: 8%; }
.thumbs.n3, .thumbs.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4%; padding: 8%; }

.pbadges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.pbadge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); }
.pb-new { background: var(--surface); color: var(--text); box-shadow: var(--ring); }
.pb-low { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); backdrop-filter: blur(6px); }
.pb-out { background: var(--surface-2); color: var(--muted); box-shadow: var(--ring); }

/* ---------- Catalogue ---------- */
.cat-head { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 18px; }
.cat-toolbar { display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-bottom: 10px; }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; border: 0; padding: 0; margin: 0; min-width: 0; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip-radio { position: relative; flex: 0 0 auto; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip-radio input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-row .afield:last-child { grid-column: 1 / -1; }
.afield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.afield label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.afield .input { min-height: 44px; }
@media (min-width: 900px) {
  .cat-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; }
  .cat-chips { grid-column: 1 / -1; grid-row: 2; }
  .cat-row { grid-template-columns: 130px 130px 190px; }
  .cat-row .afield:last-child { grid-column: auto; }
}
.cat-count { margin: 0 0 12px; font-family: var(--mono); font-size: 12.5px; }
.pcell { display: flex; }
.pcell > .pcard { flex: 1; }
.pcell[hidden] { display: none; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field label, .field .label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.req { color: var(--bad); }
.input { width: 100%; min-height: 48px; padding: 0 14px; background: var(--input-bg); border: 1px solid var(--line-input); border-radius: 6px; color: var(--text); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-invalid { border-color: var(--bad); }
.textarea { min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.input-group .iconbtn { border: 1px solid var(--line-2); height: 48px; width: 48px; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.hint .ico { display: inline-block; vertical-align: -2px; margin-right: 2px; }
.form-error { margin: 0 0 12px; color: var(--bad); font-weight: 500; font-size: 14px; }
.form-error:empty { display: none; }
.confirm-row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; cursor: pointer; border: 1px solid var(--warn-line); border-radius: 6px; background: var(--warn-bg); font-size: 14px; }
.confirm-row input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--input-bg); font-weight: 500; }
.choice input:checked + .choice-body { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.choice-logo { width: 22px; height: 22px; border-radius: 4px; background: var(--logo-plate); object-fit: contain; }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Page produit ---------- */
.product { display: grid; gap: 18px; }
.product-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--thumb-bg); }
.product-media .thumbs { padding: 6% 10%; }
.product-media .thumbs.n2, .product-media .thumbs.n3, .product-media .thumbs.n4 { padding: 5%; }
.product-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product-info > .chip { align-self: flex-start; }
.product-title { margin: 0; font-size: clamp(30px, 4vw, 46px); }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.stock-pill { padding: 4px 12px; border-radius: 999px; font-family: var(--mono); font-size: 12px; background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.stock-pill.is-low { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.stock-pill.is-out { background: var(--mute-soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; color: var(--muted); font-size: 13.5px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.order-form { display: flex; flex-direction: column; gap: 18px; }
.ostep { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.ostep-title { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: 16px; }
.ostep-num { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 400; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.srv-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: 6px; background: var(--input-bg); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); transition: box-shadow .15s ease; }
.srv-opt:hover { box-shadow: inset 0 0 0 1px var(--text); color: var(--text); }
.srv-opt[aria-current="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.srv-opt[aria-current="true"] small, .srv-opt[aria-current="true"] .srv-count { color: var(--accent-ink); opacity: .75; }
.srv-opt .srv-flag { font-size: 20px; }
.srv-opt-txt { display: flex; flex-direction: column; min-width: 0; }
.srv-opt-txt b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.srv-opt-txt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.levels { border: 0; padding: 0; margin: 0; min-width: 0; }
.level-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lvl { position: relative; cursor: pointer; }
.lvl input { position: absolute; opacity: 0; pointer-events: none; }
.lvl-body { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 58px; padding: 10px 12px 14px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--input-bg); overflow: hidden; transition: box-shadow .15s, background .15s; }
.lvl-body b { font-size: 14px; font-weight: 500; }
.lvl-body small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.lvl-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w, 0%); background: var(--text); opacity: .5; }
.lvl:hover .lvl-body { box-shadow: inset 0 0 0 1px var(--text); }
.lvl input:checked + .lvl-body { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.lvl input:checked + .lvl-body small { color: var(--accent-ink); opacity: .75; }
.lvl input:checked + .lvl-body .lvl-bar { background: var(--accent-ink); }
.lvl input:focus-visible + .lvl-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgb(0 0 0 / .2); }
.order-bar .btn { flex: 1; }
.order-bar-price { display: flex; flex-direction: column; line-height: 1.15; }
.order-bar-price small { color: var(--muted); font-size: 12px; }
.order-bar-price b { font-weight: 500; font-size: 18px; white-space: nowrap; font-feature-settings: "tnum" 1; }
body.has-order-bar .main { padding-bottom: 110px; }
body.has-order-bar .wa-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
.howto-steps { list-style: none; counter-reset: s; display: grid; gap: 12px; padding: 0; margin: 12px 0 0; }
.howto-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.howto-steps li::before { content: "0" counter(s); grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.howto-steps span { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
  .product-media { position: sticky; top: 84px; aspect-ratio: 1 / 1; }
  .product-media .thumbs { padding: 12%; }
  .order-bar { position: static; padding: 14px 0 0; background: none; border: 0; border-top: 1px solid var(--line); box-shadow: none; }
  .order-bar .btn { flex: 0 1 auto; margin-left: auto; min-width: 260px; }
  body.has-order-bar .main { padding-bottom: 56px; }
  body.has-order-bar .wa-fab { bottom: 20px; }
}

/* ---------- Choix du moyen de paiement ---------- */
.paylist { display: grid; gap: 8px; margin: 14px 0; }
.paylist form { margin: 0; }
.paycard { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 12px 14px; background: var(--input-bg); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 6px; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s, background .15s; }
.paycard:hover { box-shadow: inset 0 0 0 1px var(--text); }
.paycard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.paycard-logos { display: flex; flex: 0 0 auto; }
.paycard-logos img, .paycard-logos .nx-pay-ini { width: 36px; height: 36px; border-radius: 6px; background: var(--logo-plate); object-fit: contain; }
.paycard-logos img + img { margin-left: -8px; box-shadow: 0 0 0 2px var(--input-bg); }
.paycard-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.paycard-text b { font-weight: 500; }
.paycard-text small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.paycard-amount { font-weight: 500; font-size: 15px; white-space: nowrap; font-feature-settings: "tnum" 1; }
.paycard-arrow { color: var(--muted); flex: 0 0 auto; }
@media (max-width: 400px) { .paycard-amount { display: none; } }

.pay-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pay-title img { border-radius: 6px; flex: 0 0 auto; background: var(--logo-plate); }
.pay-title .h3 { margin: 0; }
.pay-title p { margin: 2px 0 0; }
.pay-steps { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 18px; }
.pay-steps > li { counter-increment: p; position: relative; padding-left: 40px; }
.pay-steps > li::before { content: counter(p); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-3); font-family: var(--mono); font-size: 12px; }
.pay-step-title { margin: 3px 0 10px; font-size: 15px; font-weight: 600; }
.amount-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 12px 12px 16px; margin-bottom: 10px; background: var(--input-bg); border: 1px solid var(--binance); border-radius: 6px; }
.amount-value { font-size: 26px; font-weight: 600; color: var(--binance-ink); }
.amount-cur { color: var(--muted); font-weight: 500; flex: 1; }
.reasons { margin: 4px 0 0; padding-left: 18px; }
.reasons li { margin-bottom: 2px; }
[data-result] .callout { margin-bottom: 12px; }
.dev-box { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--warn); border-radius: 6px; color: var(--warn); font-size: 14px; }
.dev-box p { margin: 0 0 8px; }
.dev-actions { display: grid; gap: 8px; }
.dev-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Livraison : choix et liaison ---------- */
.deliv-grid { display: grid; gap: 10px; }
@media (min-width: 700px) { .deliv-grid { grid-template-columns: 1fr 1fr; } }
.deliv-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 6px; background: var(--input-bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.deliv-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 600; }
.deliv-card p { margin: 0; color: var(--text-2); font-size: 14px; }
.deliv-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.deliv-card .btn { margin-top: auto; }
.deliv-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--mute-soft); }
.liaison-explain { margin: 0 0 16px; padding: 14px; border-radius: 6px; background: var(--info-bg); border: 1px solid var(--info-line); }
.liaison-lead { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; }
.liaison-lead .ico { flex: 0 0 auto; margin-top: 2px; color: var(--info); }
.liaison-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.liaison-points li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); }
.liaison-points li b { color: var(--text); }
.liaison-points .ico { flex: 0 0 auto; margin-top: 2px; }
.liaison-points .is-yes .ico { color: var(--ok); }
.liaison-points .is-no .ico { color: var(--bad); }

.video-box { position: relative; overflow: hidden; border-radius: 6px; background: #000; box-shadow: var(--ring); }
.video-box iframe, .video-box video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
/* Texte sous la vidéo tutoriel (filtre video_note) */
.vnote { margin-top: 12px; padding: 14px 16px; border-radius: 6px; background: var(--input-bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-2, var(--text)); }
.vnote p { margin: 0; overflow-wrap: anywhere; }
.vnote-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--text); }
.vnote-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-family: var(--mono); font-size: 13px; text-decoration: none !important; vertical-align: middle; }
.vnote-link span { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vnote-link .ico { flex: none; opacity: .7; }
.vnote-link:hover { border-color: var(--text); text-decoration: none; }
.vnote-warn { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 6px; background: var(--warn-bg, rgb(255 178 36 / .1)); border: 1px solid var(--warn-line, rgb(255 178 36 / .35)); font-size: 13px; }
.video-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.video-link:hover { box-shadow: inset 0 0 0 1px var(--text); }

/* Identifiants du compte livré */
.creds { display: grid; gap: 8px; margin: 12px 0 16px; }
.creds-warn { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }

/* Capture d'écran */
.drop { display: grid; place-items: center; min-height: 150px; padding: 18px; text-align: center; cursor: pointer; border: 1px dashed var(--line-3); border-radius: 6px; background: var(--input-bg); transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-within { border-color: var(--text); background: var(--hover); }
.drop-empty { display: grid; justify-items: center; gap: 6px; color: var(--muted); }
.drop-empty b { color: var(--text); font-weight: 500; }
.drop-loading { display: none; color: var(--muted); }
.drop.is-loading .drop-empty { display: none; }
.drop.is-loading .drop-loading { display: block; }
.drop.has-file { display: none; }
.drop.has-name { border-color: var(--text); background: var(--hover); }
.preview { border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--input-bg); }
.preview img { width: 100%; max-height: 340px; object-fit: contain; background: #000; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; }

/* ---------- Tunnel de commande ---------- */
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.order-head .h2 { margin: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 18px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.step::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 1px; background: var(--line-2); z-index: 0; }
.step:first-child::before { display: none; }
.step.is-done::before, .step.is-current::before { background: var(--text); }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-3); color: var(--muted); font-family: var(--mono); font-size: 12px; }
.step-check { display: none; }
.step.is-done .step-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.is-done .step-check { display: block; }
.step.is-done .step-num { display: none; }
.step.is-current .step-dot { border-color: var(--text); color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); }
.step-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.step.is-current .step-label, .step.is-done .step-label { color: var(--text); }

.timer { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); font-size: 14.5px; }
.timer b { font-family: var(--mono); font-size: 15px; }
.timer.is-urgent { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.timer.is-over { opacity: .7; }

.recap { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; }
.recap-media { position: relative; flex: 0 0 76px; height: 76px; border-radius: 6px; background: var(--thumb-bg); border: 1px solid var(--line); }
.recap-media .thumbs { padding: 10%; }
.recap-name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.2; }
.kv { display: grid; gap: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { flex: 0 0 auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.kv dd { min-width: 0; margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.kv-total { background: var(--mute-soft); }
.kv-total .price { font-size: 20px; }

.copylist { display: grid; gap: 8px; margin: 14px 0 16px; }
.copyrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 6px; }
.copyrow.is-strong { border-color: var(--text); }
.copyrow-text { display: flex; flex-direction: column; min-width: 0; }
.copyrow-label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.copyrow-value { font-family: var(--mono); font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.copybtn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--text); font-weight: 500; font-size: 13.5px; cursor: pointer; }
.copybtn:hover { border-color: var(--text); }
.copybtn.copied { background: var(--ok); border-color: var(--ok); color: var(--accent-ink); }
@media (max-width: 339px) { .copybtn span { display: none; } }

.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; border: 1px solid; font-size: 14px; }
.callout .ico { flex: 0 0 auto; margin-top: 2px; }
.callout p { margin: 0 0 .35rem; }
.callout p:last-child { margin: 0; }
.callout-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.callout-ok .ico { color: var(--ok); }
.callout-info { background: var(--info-bg); border-color: var(--info-line); }
.callout-info .ico { color: var(--info); }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-line); margin-bottom: 14px; }
.callout-warn .ico { color: var(--warn); }
.callout-danger { background: var(--bad-bg); border-color: var(--bad-line); margin-bottom: 14px; }
.callout-danger .ico { color: var(--bad); }
#liaison .h3 { margin-bottom: 12px; }

.status-card { display: flex; gap: 14px; align-items: flex-start; }
.spinner { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px; border: 2px solid var(--line-2); border-top-color: var(--text); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.delivered { border-color: var(--line-3); }
.delivered-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.delivered-head .h2 { margin: 0; }
.delivered-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); flex: 0 0 auto; }
.howto-list { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); }
.howto-list li { margin-bottom: 4px; }
.howto-list b { color: var(--text); }
.outcome .h3 { display: flex; align-items: center; gap: 8px; }
.outcome-refused { border-color: var(--bad-line); }
.outcome-refused .h3 { color: var(--bad); }

.timeline { list-style: none; margin: 10px 0 14px; padding: 0; }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 0 0 14px 26px; color: var(--faint); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 19px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li span { font-family: var(--mono); font-size: 12px; text-align: right; }
.timeline .is-done { color: var(--text); }
.timeline .is-done::before { background: var(--accent); border-color: var(--accent); }
.timeline .is-bad { color: var(--bad); }
.timeline .is-bad::before { background: var(--bad); border-color: var(--bad); }
.timeline .is-off::before { background: var(--faint); border-color: var(--faint); }

/* ---------- Mes commandes ---------- */
.tabs { display: flex; gap: 2px; padding: 3px; margin-bottom: 14px; background: var(--mute-soft); border-radius: 6px; }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 0; border-radius: 4px; background: transparent; color: var(--text-2); font-weight: 500; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--seg-on); color: var(--text); box-shadow: var(--ring); }
.count { padding: 0 7px; border-radius: 999px; background: var(--mute-soft); font-family: var(--mono); font-size: 11.5px; }
.olist { display: grid; gap: 8px; }
.orow { display: flex; gap: 12px; padding: 12px; color: inherit; transition: border-color .15s; }
.orow:hover { color: inherit; border-color: var(--line-3); }
.orow-media { position: relative; flex: 0 0 64px; height: 64px; border-radius: 6px; background: var(--thumb-bg); }
.orow-media .thumbs { padding: 10%; }
.orow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.orow-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.orow-name { font-weight: 500; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.orow-meta { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.orow-next { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); font-weight: 500; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 32px 18px; }

/* ---------- Avis ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linejoin: round; }
.star.is-on { fill: var(--text); stroke: var(--text); }
.review-summary { display: flex; align-items: center; gap: 8px; margin: 0; }
.reviews { display: grid; gap: 1px; background: var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--ring); }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { margin: 0 !important; display: flex; flex-direction: column; gap: 10px; border: 0; border-radius: 0; }
.review blockquote { margin: 0; font-size: 15px; color: var(--text-2); }
.review figcaption { margin-top: auto; }
.chip-verified { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 11.5px; font-weight: 500; }
.empty-reviews { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.empty-reviews p { margin: 0; }
.rating-input { border: 0; padding: 0; margin: 0 0 12px; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating-stars label { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; color: var(--faint); }
.rating-stars label .ico { fill: none; transition: transform .12s; }
.rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: var(--text); }
.rating-stars input:checked ~ label .ico, .rating-stars label:hover .ico, .rating-stars label:hover ~ label .ico { fill: var(--text); }
.rating-stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Erreurs ---------- */
.error-page { padding-top: 24px; }
.error-code { margin: 0; font-family: var(--mono); font-size: 56px; font-weight: 400; line-height: 1; color: var(--muted); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: var(--input-bg); padding: 32px 0 calc(18px + env(safe-area-inset-bottom)); }
.footer-in { display: grid; gap: 22px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { margin: 0; max-width: 42ch; }
.footer-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-contacts li a { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; color: var(--text); font-size: 14.5px; font-weight: 600; text-decoration: none !important; }
.footer-contacts li a:hover { color: var(--accent); }
.footer-contacts .ico { flex: none; color: var(--text-2); }
.footer-contacts a:hover .ico { color: inherit; }
.footer-contact-sep { color: var(--muted); font-weight: 400; }
.mono-num { font-variant-numeric: tabular-nums; }
.footer-title { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 34px; color: var(--text-2); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
@media (min-width: 768px) { .footer-in { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }

.wa-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); transition: transform .2s ease, bottom .2s ease; }
.wa-fab:hover { transform: scale(1.06); color: #fff; }

/* ---------- Notifications (toasts) ---------- */
.toasts { position: fixed; left: 16px; right: 16px; top: 76px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 440px; width: 100%; padding: 12px 16px; border-radius: 6px; pointer-events: auto; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-md); font-weight: 500; font-size: 14px; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: none; }
.toast-success { border-color: var(--ok-line); }
.toast-success::before { content: "✓ "; color: var(--ok); }
.toast-error { border-color: var(--bad-line); color: var(--bad); }
@media (min-width: 768px) { .toasts { left: auto; right: 20px; align-items: flex-end; width: 400px; } }

/* ---------- Images (squelette animé) ---------- */
.js .thumbs img { opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.js .thumbs img.is-loaded { opacity: 1; }
.js .thumbs:not(.is-loaded)::after { content: ""; position: absolute; inset: 14%; border-radius: 6px; background: linear-gradient(100deg, rgba(127, 127, 127, .05) 20%, rgba(127, 127, 127, .14) 40%, rgba(127, 127, 127, .05) 60%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------- Animations ---------- */
@keyframes nx-line { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nx-hero::after, .spinner, .js .thumbs:not(.is-loaded)::after { animation: none !important; }
  .spinner { animation-duration: 3s; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilitaires responsive ---------- */
@media (max-width: 639px) { .hide-sm { display: none !important; } }
@media (max-width: 420px) {
  .hide-xs { display: none !important; }
  .btn-lg { padding: 0 16px; }
}
@media (max-width: 899px) { .main { padding-bottom: 96px; } }
@media (max-width: 860px) {
  .nx-hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 28px 32px; }
  .nx-hero::before { -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%); background-size: 44px 44px; }
  .hero-visual { height: 260px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-card-media { height: 120px; }
  .nx-how ol, .nx-faq, .nx-bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nx-user-name { display: none; }
  .nx-userbtn { padding: 0 6px 0 4px; gap: 4px; }
}
@media (max-width: 560px) {
  .nx-display { font-size: 36px; line-height: 1.05; letter-spacing: -0.045em; }
  .nx-actions { width: 100%; }
  .nx-actions .btn { flex: 1 1 auto; }
  .nx-cell { padding: 18px; }
  .nx-cell-pay ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .nx-cell-pay li { white-space: normal; line-height: 1.25; font-size: 13.5px; }
}
@media (max-width: 380px) { .topbar .nx-brand-tag { display: none; } }

/* Liens dans un texte : soulignés */
p a:not(.btn), li a:not(.btn):not(.nx-server):not(.srv-tab), .nx-faq-list a, .callout a { text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================
   Langue et devise : bouton « drapeau + Ar/FR » et panneau « Paramètres régionaux »
   (comme NEXX gift). Script : static/js/locale.js
   ===================================================================== */
html { --loc-bg: #f3f4f6; --loc-field: #ffffff; --loc-line: #c9ccd3; --loc-ink: #1b1d21; --loc-mute: #5b606a; --loc-hover: #eef0f4;
  --loc-pick-bg: #e3effb; --loc-pick-ink: #0f6cbd; --loc-blue: #0f75c6; --loc-blue-hover: #0b63a8; --loc-shadow: 0 12px 32px rgb(15 23 42 / .18); }
html[data-theme="dark"] { --loc-bg: #161616; --loc-field: #0d0d0d; --loc-line: #3a3a3a; --loc-ink: #ededed; --loc-mute: #a0a0a0; --loc-hover: #232323;
  --loc-pick-bg: rgb(56 139 253 / .16); --loc-pick-ink: #6cb2ff; --loc-blue: #1d7fd0; --loc-blue-hover: #2b8fe3; --loc-shadow: 0 14px 40px rgb(0 0 0 / .55); }

.nx-locale { flex: none; height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 9px; border-radius: 6px;
  background: transparent; color: var(--text); border: 1px solid var(--line-2); font: inherit; font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: background-color .15s ease; }
.nx-locale:hover, .nx-locale[aria-expanded="true"] { background: var(--hover); }
.nx-locale:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.nx-flag { display: block; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.nx-flag svg { display: block; width: 100%; height: 100%; }
.nx-locale-code { font-variant-numeric: tabular-nums; }
.nx-locale-chev { width: 12px; height: 12px; flex: none; opacity: .75; transition: transform .2s ease; }
.nx-locale[aria-expanded="true"] .nx-locale-chev { transform: rotate(180deg); }

.nx-loc-panel { position: absolute; z-index: 1000; width: min(340px, calc(100vw - 16px)); box-sizing: border-box; padding: 18px 20px 20px;
  border-radius: 10px; background: var(--loc-bg); color: var(--loc-ink); border: 1px solid var(--loc-line); box-shadow: var(--loc-shadow);
  font-family: inherit; display: flex; flex-direction: column; gap: 18px; animation: nxLocIn .18s ease both; }
@keyframes nxLocIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nx-loc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nx-loc-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.nx-loc-close { position: relative; width: 30px; height: 30px; border-radius: 6px; flex: none; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nx-loc-close::before, .nx-loc-close::after { content: ""; position: absolute; left: 6px; right: 6px; top: 14px; height: 2px; border-radius: 2px; background: var(--loc-ink); }
.nx-loc-close::before { transform: rotate(45deg); }
.nx-loc-close::after { transform: rotate(-45deg); }
.nx-loc-close:hover { background: var(--loc-hover); }
.nx-loc-close:focus-visible { outline: 2px solid var(--loc-blue); }
.nx-loc-field { position: relative; display: flex; flex-direction: column; gap: 10px; }
.nx-loc-label { font-size: 16px; font-weight: 700; }
.nx-loc-help { margin: -4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--loc-mute); }
.nx-loc-select { box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 6px; background: var(--loc-field); border: 1px solid var(--loc-line);
  font: inherit; font-size: 15.5px; color: var(--loc-ink); text-align: left; }
.nx-loc-select:hover { border-color: var(--loc-mute); }
.nx-loc-select:focus-visible, .nx-loc-field.is-open .nx-loc-select { outline: none; border-color: var(--loc-blue); box-shadow: 0 0 0 1px var(--loc-blue); }
.nx-loc-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--loc-ink); flex: none; }
.nx-loc-field.is-open .nx-loc-caret { transform: rotate(180deg); }
.nx-loc-list { position: absolute; z-index: 2; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0; list-style: none; overflow: hidden;
  border-radius: 6px; background: var(--loc-field); border: 1px solid var(--loc-line); box-shadow: var(--loc-shadow); }
.nx-loc-option { cursor: pointer; padding: 14px 16px; font-size: 15.5px; border-top: 1px solid var(--loc-line); outline: none; }
.nx-loc-option:first-child { border-top: 0; }
.nx-loc-option:hover, .nx-loc-option:focus-visible { background: var(--loc-hover); }
.nx-loc-option[aria-selected="true"] { background: var(--loc-pick-bg); color: var(--loc-pick-ink); font-weight: 700; }
.nx-loc-save { box-sizing: border-box; cursor: pointer; text-align: center; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 6px;
  border: 0; background: var(--loc-blue); color: #fff; font: inherit; font-size: 16px; font-weight: 700; transition: background-color .15s ease; }
.nx-loc-save:hover { background: var(--loc-blue-hover); }
.nx-loc-save:disabled { opacity: .7; cursor: progress; }
.nx-loc-save:focus-visible { outline: 2px solid var(--loc-ink); outline-offset: 2px; }
@media (max-width: 520px) {
  .nx-locale { height: 38px; padding: 0 8px; gap: 5px; }
  .nx-locale-code { font-size: 12px; }
}
@media (max-width: 380px) { .nx-locale .nx-flag { display: none; } }

/* =====================================================================
   Solde client (remboursements, paiement avec le solde)
   ===================================================================== */
:root { --purple: #7c4ddb; --purple-bg: rgb(124 77 219 / .10); --purple-line: rgb(124 77 219 / .32); }
html[data-theme="dark"] { --purple: #c4a7ff; --purple-bg: rgb(196 167 255 / .10); --purple-line: rgb(196 167 255 / .30); }
.st-purple { color: var(--purple); background: var(--purple-bg); border-color: var(--purple-line); }
/* Solde dans l'en-tête (comme NEXX gift) : icône verte + montant, mène à /mon-solde */
.nx-balance { flex: none; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; border-radius: 6px;
  border: 1px solid var(--line-2); color: var(--text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.nx-balance .ico { color: var(--ok); flex: none; }
.nx-balance:hover, .nx-balance[aria-current="page"] { background: var(--hover); color: var(--text); text-decoration: none; }
.nx-balance:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 520px) { .nx-balance { height: 38px; padding: 0 8px; gap: 6px; font-size: 12.5px; } }
@media (max-width: 400px) { .nx-balance-amt { display: none; } }
.nx-umenu-bal { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.paylist-balance { margin-bottom: 12px; }
.paycard-balance .nx-pay-ini { display: inline-grid; place-items: center; color: var(--purple); background: var(--purple-bg); }
.paycard.is-disabled { opacity: .6; cursor: not-allowed; }
.outcome-refunded { border-color: var(--purple-line); }
.outcome-refunded h2 { color: var(--purple); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wallet-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wallet-amount { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.wallet-moves { list-style: none; margin: 0; padding: 0; }
.wallet-moves li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.wallet-moves li:first-child { border-top: 0; }
.wallet-moves li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wallet-plus { color: var(--ok); white-space: nowrap; }
.wallet-minus { color: var(--text-2); white-space: nowrap; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pager a { min-width: 32px; padding: 4px 8px; text-align: center; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Code promo (commande) ---------- */
.kv-promo dd { color: var(--ok); }
.kv-promo dt b { color: var(--text); font-weight: 500; }
.promo-box { margin: -4px 0 14px; }
.promo-box summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; list-style: none; color: var(--text-2); font-size: 14px; font-weight: 500; }
.promo-box summary::-webkit-details-marker { display: none; }
.promo-box summary:hover { color: var(--text); }
.promo-form { display: flex; gap: 8px; margin-top: 6px; }
.promo-form .input { flex: 1; min-height: 44px; text-transform: uppercase; }
.promo-form .btn { min-height: 44px; }
.promo-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 14px; padding: 8px 6px 8px 12px; border-radius: 6px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); font-size: 14px; font-weight: 500; }
.promo-applied span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Parrainage ---------- */
.aff > .card + .card, .aff > .aff-stats + .card, .aff > .callout + .card { margin-top: 14px; }
.aff-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .aff-stats { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.aff-stats > .card { margin-top: 0; }
.aff-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 0; }
.aff-stat b { font-size: 18px; font-weight: 500; font-feature-settings: "tnum" 1; }
.aff-stat-main b { font-family: var(--display); font-size: 28px; font-weight: 450; letter-spacing: -0.03em; line-height: 1.1; }
.aff-codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aff-codes li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--input-bg); }
.aff-codes p { margin: 0; }
.aff-code-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aff-code { font-size: 20px; letter-spacing: .04em; }
.aff-link { margin-top: 4px; background: var(--surface); }
.aff-link .mono { overflow-wrap: anywhere; }
.aff-wd-form { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .aff-wd-form { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; } }
.aff-sub { margin: 22px 0 6px; font-size: 14px; font-weight: 600; }
.aff-list { list-style: none; margin: 0; padding: 0; }
.aff-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.aff-list li:first-child { border-top: 0; }
.aff-list li > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aff-list-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.aff-list-end form { margin: 0; }
.aff-list-end .btn-link { min-height: 28px; }

/* =====================================================================
   Mode clair — finitions reprises de NEXX likes. Le mode sombre ne change pas.
   ===================================================================== */
html:not([data-theme="dark"]) .btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
html:not([data-theme="dark"]) .btn-ghost { background: var(--input-bg); }
html:not([data-theme="dark"]) .btn-ghost:hover { background: var(--surface); border-color: var(--line-3); }

/* Cartes produit : bord net, petite ombre, se soulèvent au survol */
html:not([data-theme="dark"]) .pcard { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
html:not([data-theme="dark"]) .pcard-media { border-bottom-color: var(--line-2); }
@media (hover: hover) {
  html:not([data-theme="dark"]) .pcard:not(.is-soldout):hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow-hover); }
}
html:not([data-theme="dark"]) .thumbs img { filter: drop-shadow(0 6px 10px rgb(24 28 38 / .22)); }

/* Moyens de paiement et boutons secondaires blancs sur la carte grise */
html:not([data-theme="dark"]) .paycard { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
html:not([data-theme="dark"]) .paycard:hover { box-shadow: inset 0 0 0 1px var(--text), var(--shadow-hover); }
html:not([data-theme="dark"]) .copybtn { background: var(--input-bg); }

/* Bandeaux colorés : teinte posée sur une surface claire (plus net qu'un beige terne) */
html:not([data-theme="dark"]) .timer,
html:not([data-theme="dark"]) .callout,
html:not([data-theme="dark"]) .confirm-row { background-color: var(--input-bg); }
html:not([data-theme="dark"]) .timer { background-image: linear-gradient(var(--warn-bg), var(--warn-bg)); }
html:not([data-theme="dark"]) .timer.is-urgent { background-image: linear-gradient(var(--bad-bg), var(--bad-bg)); }
html:not([data-theme="dark"]) .confirm-row,
html:not([data-theme="dark"]) .callout-warn { background-image: linear-gradient(var(--warn-bg), var(--warn-bg)); }
html:not([data-theme="dark"]) .callout-ok { background-image: linear-gradient(var(--ok-bg), var(--ok-bg)); }
html:not([data-theme="dark"]) .callout-info { background-image: linear-gradient(var(--info-bg), var(--info-bg)); }
html:not([data-theme="dark"]) .callout-danger { background-image: linear-gradient(var(--bad-bg), var(--bad-bg)); }

/* Cartes flottantes de l'accueil : claires en mode clair, halo orange et prix dorés gardés */
html:not([data-theme="dark"]) .hero-card { background: var(--surface); border-color: var(--line-2); color: var(--text); box-shadow: 0 18px 36px -18px rgb(24 28 38 / .35), var(--shadow-card); }
html:not([data-theme="dark"]) .hero-card-media { background: var(--thumb-bg); border-bottom: 1px solid var(--line); }
html:not([data-theme="dark"]) .hero-card-body .price { color: #A86A00; }
html:not([data-theme="dark"]) .hero-card-1 { border-color: rgb(255 107 26 / .6); box-shadow: 0 18px 36px -18px rgb(24 28 38 / .35), 0 0 36px rgb(255 107 26 / .16); }
html:not([data-theme="dark"]) .hero-card .thumbs img { filter: drop-shadow(0 6px 10px rgb(24 28 38 / .25)); }

/* Barre de commande mobile : ombre douce */
html:not([data-theme="dark"]) .order-bar { box-shadow: 0 -6px 20px rgb(24 28 38 / .12); }
