/* NEXX likes — pages client (accueil, commande), même design que NEXX Top Up et NEXX gift.
   S'appuie sur app.css. Monochrome, sombre par défaut, clair sur demande (js/theme.js). */

:root, html[data-theme="light"] {
  --ink-1: var(--text); --ink-2: var(--text-2); --ink-3: var(--muted);
  --panel: var(--surface); --panel-2: var(--surface-2); --line-strong: var(--line-3);
  --on-accent: var(--accent-ink); --font-mono: var(--mono); --font-body: var(--body);
  --mute-soft: rgb(24 28 38 / .07); --seg-on: #F8F9FA; --disabled-opacity: .72;
  --ring: 0 0 0 1px rgb(24 28 38 / .11), 0 1px 2px rgb(24 28 38 / .04);
  --shadow-bar: 0 -6px 20px rgb(24 28 38 / .12);
}
html[data-theme="dark"] {
  --accent: #d4d4d4; --accent-hover: #e5e5e5;
  --mute-soft: rgb(255 255 255 / .07); --seg-on: #262626; --disabled-opacity: .5;
  --ring: 0 0 0 1px rgb(255 255 255 / .1);
  --shadow-bar: 0 -10px 30px rgb(0 0 0 / .35);
}

/* — en-tête — */
.topbar .nx-cartlink { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); text-decoration: none; transition: background-color .15s ease; }
.nx-cartlink:hover { background: var(--hover); color: var(--text); }
.nx-cartlink[aria-current="page"] { background: var(--hover); }
.nx-cartcount { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 11px; line-height: 1; }
.nx-footer-tools { display: none; gap: 8px; }

/* — accueil : héros — */
.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, 96px) clamp(16px, 4vw, 40px) clamp(32px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.nx-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.nx-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-1); }
.nx-display { margin: 0; font-family: var(--display); font-size: clamp(38px, 5.4vw, 64px); font-weight: 450; line-height: 1; letter-spacing: -0.06em; text-wrap: balance; }
.nx-lead { margin: 0; max-width: 54ch; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; color: var(--ink-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 20px; font-size: 13px; color: var(--ink-3); }
.nx-facts strong { color: var(--ink-1); font-weight: 500; }

.nx-term { border-radius: 6px; background: var(--panel); box-shadow: var(--ring); font-family: var(--font-mono); font-size: 13px; overflow: hidden; }
.nx-term-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.nx-term-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: nx-pulse 2.4s ease-in-out infinite; }
.nx-term-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.nx-term-line { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; color: var(--ink-1); opacity: 0; animation: nx-step 9s linear infinite; }
.nx-term-line:nth-child(2) { animation-delay: .9s; }
.nx-term-line:nth-child(3) { animation-delay: 1.8s; }
.nx-term-line:nth-child(4) { animation-delay: 2.7s; }
.nx-term-ok { color: var(--ok); }
.nx-term-sub { color: var(--ink-3); font-size: 12px; }

/* — accueil : sections — */
.nx-section { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px); scroll-margin-top: 72px; }
.nx-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.nx-section-head p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.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; }

.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(--panel); min-width: 0; }
.nx-cell h3 { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.nx-cell p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.nx-cell .ico { margin-bottom: 8px; color: var(--ink-1); }
.nx-cell-wide { grid-column: 1 / -1; }
.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(--on-accent); }
.nx-cell-pay h3 { color: var(--on-accent); }
.nx-cell-pay p { color: var(--on-accent); 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-servers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.nx-servers-label { flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.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; min-height: 28px; padding: 3px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.nx-allservers { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ok); }

.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(--panel); box-shadow: var(--ring); }
.nx-how-n { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.nx-how h3 { margin: 0 0 6px; font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.nx-how p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.nx-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--ring); }
.nx-feed-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--panel); font-size: 14px; min-width: 0; }
.nx-feed-row > .ico { color: var(--ink-3); }
.nx-feed-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.nx-feed-add { flex: none; font-family: var(--font-mono); font-size: 13px; color: var(--ok); }
.nx-feed-when { margin-left: auto; flex: none; font-size: 12.5px; color: var(--ink-3); }

.nx-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.nx-faq p.nx-faq-sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }
.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(--panel); }
.nx-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; 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(--font-mono); font-size: 16px; color: var(--ink-3); }
.nx-faq-list details[open] summary::after { content: "−"; }
.nx-faq-list summary:hover { background: var(--hover); }
.nx-faq-list summary:focus-visible { outline: 2px solid var(--ink-1); outline-offset: -2px; }
.nx-faq-list p { margin: 0; padding: 0 18px 16px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* — offres : compactes, l'offre choisie s'inverse — */
.nx-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.nx-offers-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.nx-offer { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; align-content: space-between; gap: 4px 10px; padding: 12px; border-radius: 6px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s ease, background-color .15s ease, transform .1s ease; }
.nx-offer:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--ink-1); }
.nx-offer:not(:disabled):active { transform: scale(.985); }
.nx-offer:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
.nx-offer-img { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; background: var(--mute-soft); color: var(--ink-1); }
.nx-offer-txt { min-width: 0; }
.nx-offer-title { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.25; color: var(--ink-1); overflow-wrap: anywhere; }
.nx-offer-sub { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-3); margin-top: 1px; }
.nx-offer-meta { grid-column: 1 / -1; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.nx-offer-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.nx-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; font-weight: 500; font-size: 15px; color: var(--ink-1); font-feature-settings: "tnum" 1; }
.nx-offer-price s { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.nx-offer-price small { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.nx-offer-add { flex: none; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nx-offer-badge { position: absolute; top: -7px; right: 8px; padding: 1px 7px; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.nx-offer-off { flex: none; padding: 1px 6px; border-radius: 9999px; box-shadow: inset 0 0 0 1px var(--ok-line); color: var(--ok); font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.nx-offer[aria-pressed="true"] { background: var(--accent); box-shadow: none; animation: nx-pick .22s cubic-bezier(.16,1,.3,1); }
.nx-offer[aria-pressed="true"] .nx-offer-title, .nx-offer[aria-pressed="true"] .nx-offer-price, .nx-offer[aria-pressed="true"] .nx-offer-add, .nx-offer[aria-pressed="true"] .nx-offer-img { color: var(--on-accent); }
.nx-offer[aria-pressed="true"] .nx-offer-sub, .nx-offer[aria-pressed="true"] .nx-offer-price s, .nx-offer[aria-pressed="true"] .nx-offer-price small { color: var(--on-accent); opacity: .7; }
.nx-offer[aria-pressed="true"] .nx-offer-foot { border-color: rgb(127 127 127 / .4); }
.nx-offer[aria-pressed="true"] .nx-offer-img { background: rgb(127 127 127 / .22); }
.nx-offer[aria-pressed="true"] .nx-offer-add { box-shadow: inset 0 0 0 1px var(--on-accent); }
.nx-offer[aria-pressed="true"] .nx-offer-off { color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--on-accent); }
.nx-offer[aria-pressed="true"] .nx-offer-badge { background: var(--panel); color: var(--ink-1); box-shadow: var(--ring); }

/* Offre sur mesure : curseur, préréglages, prix */
.nx-custom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; margin-top: 10px; padding: 18px; border-radius: 6px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.nx-custom-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.nx-custom-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.nx-custom-value { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; font-feature-settings: "tnum" 1; }
.nx-custom-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.nx-custom-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.nx-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 6px; background: var(--mute-soft); }
.nx-seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.nx-seg button:hover { color: var(--ink-1); }
.nx-seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink-1); box-shadow: var(--ring); }
.nx-seg button:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }

/* — page de commande : image en couverture, étapes, récapitulatif — */
.nx-page { max-width: 1280px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 64px; }
.nx-cover { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(170px, 22vw, 250px); border-radius: 6px; background: #111; box-shadow: var(--ring); }
.nx-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nx-cover-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / .85) 0%, rgb(0 0 0 / .5) 50%, rgb(0 0 0 / .12)); }
.nx-cover-in { position: relative; display: flex; align-items: center; gap: clamp(14px, 3vw, 24px); padding: clamp(20px, 4vw, 40px); min-width: 0; }
.nx-cover-icon { width: clamp(64px, 9vw, 96px); height: auto; aspect-ratio: 1; flex: none; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / .3); }
.nx-cover-txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: #fff; }
.nx-cover-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.nx-cover-title { margin: 0; font-family: var(--display); font-size: clamp(30px, 4.6vw, 52px); font-weight: 450; line-height: 1; letter-spacing: -0.05em; color: #fff; }
.nx-cover-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-cover-safe { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9999px; background: rgb(0 0 0 / .55); font-size: 12.5px; color: #fff; }

.nx-shop { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 20px; }
.nx-shop-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.nx-shop-side { flex: 1 1 320px; min-width: 0; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); scroll-margin-top: 84px; }
.nx-step { display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.nx-step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nx-step-title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.nx-step-num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--font-mono); font-size: 13px; font-weight: 400; }
.nx-field-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.nx-side-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.nx-shop-side .total .amount { font-family: var(--display); font-weight: 450; font-size: 28px; letter-spacing: -0.02em; color: var(--ink-1); }
.nx-player-note { margin: 2px 0 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--ok); }

.nx-mobile-bar { display: none; }

/* — animations légères, jouées une fois ; rien si le système demande moins d'animations — */
@keyframes nx-line { from { transform: scaleX(0); } to { transform: none; } }
@keyframes nx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nx-step { 0% { opacity: 0; transform: translateY(4px); } 6%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes nx-pick { from { transform: scale(.97); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nx-term-line { animation: none !important; opacity: 1; }
  .nx-term-dot, .nx-hero::after, .nx-offer { animation: none !important; }
}

/* — tablette et téléphone — */
@media (max-width: 999px) {
  .nx-shop-side { position: static; flex-basis: 100%; }
  .nx-mobile-bar:not(.hidden) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar); }
  .nx-mobile-bar span { display: flex; flex-direction: column; min-width: 0; }
  .nx-mobile-bar small { font-size: 12px; color: var(--ink-3); }
  .nx-mobile-bar b { font-weight: 500; font-size: 17px; font-feature-settings: "tnum" 1; }
  .nx-page { padding-bottom: 96px; }
}
@media (max-width: 860px) {
  .nx-hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 24px 28px; }
  .nx-hero-copy { gap: 14px; }
  .nx-term { display: none; }
  .nx-hero::before { -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%); background-size: 44px 44px; }
  .nx-how ol { grid-template-columns: minmax(0, 1fr); }
  .nx-faq { grid-template-columns: minmax(0, 1fr); }
  .nx-bento { grid-template-columns: minmax(0, 1fr); }
}
@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-section-head { flex-direction: column; align-items: stretch; }
  .nx-seg { display: flex; width: 100%; }
  .nx-seg button { flex: 1 1 0; }
  .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; }
  .nx-offers, .nx-offers-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nx-offer { grid-template-columns: 34px minmax(0, 1fr); padding: 10px; }
  .nx-offer-img { width: 34px; height: 34px; }
  .nx-offer-title { font-size: 13.5px; }
  .nx-offer-add { min-width: 30px; height: 30px; }
  .nx-custom { grid-template-columns: minmax(0, 1fr); }
  .nx-custom-side { flex-direction: row; justify-content: space-between; align-items: center; }
  .nx-cover { min-height: 150px; }
  .nx-cover-in { padding: 16px; }
  .nx-cover-safe { font-size: 12px; }
  .nx-feed-when { display: none; }
  /* en-tête : la langue reste en haut, le thème passe en bas de page (sauf là où il n'y a pas de pied de page) */
  .has-footer .topbar .nx-theme { display: none; }
  .nx-footer-tools { display: flex; }
}
@media (max-width: 420px) {
  .nx-offer { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .nx-offer-img { flex: none; width: 32px; height: 32px; }
  .nx-offer-foot { margin-top: auto; }
  .nx-offer-title { overflow-wrap: normal; }
}

#rate-line { margin: 12px 0 0; }

/* Téléphone, connecté : tableau de bord et admin restent dans le menu du compte, l'en-tête tient sur une ligne */
@media (max-width: 480px) {
  .topbar .auth-slot > .navlink { display: none; }
  .topbar .topnav { gap: 6px; }
  .topbar .nx-brand-tag { margin-left: 7px; padding-left: 7px; font-size: 9px; letter-spacing: 0.04em; }
}
@media (max-width: 340px) { .topbar .nx-brand-tag { display: none; } }

/* — bulle d'annonce — */
dialog.nx-promo { position: fixed; inset: 0; margin: auto; width: calc(100% - 28px); max-width: 440px; max-height: calc(100svh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 8px; background: var(--panel); color: var(--ink-1); box-shadow: var(--shadow-lg); }
dialog.nx-promo[open] { display: block; animation: nx-promo-in .25s cubic-bezier(.16,1,.3,1) both; }
dialog.nx-promo::backdrop { background: rgb(0 0 0 / .5); }
.nx-promo-x { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; top: 10px; right: 10px; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: rgb(0 0 0 / .6); transition: background-color .15s ease; }
.nx-promo-x:hover { background: rgb(0 0 0 / .85); }
.nx-promo-x:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.nx-promo-img { display: block; background: var(--mute-soft); }
.nx-promo-img img { display: block; width: 100%; height: auto; max-height: 70svh; object-fit: contain; }
.nx-promo-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
.nx-promo-title { margin: 0; padding-right: 36px; font-family: var(--display); font-size: 22px; font-weight: 450; line-height: 1.15; letter-spacing: -0.03em; }
.nx-promo-img + .nx-promo-body .nx-promo-title { padding-right: 0; }
.nx-promo-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.nx-promo-bar { position: sticky; display: block; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink-1); transform-origin: left; animation: nx-promo-bar linear both; }
@keyframes nx-promo-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nx-promo-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { dialog.nx-promo[open] { animation: none; } }
