/* NEXX design system — extracted verbatim from the Claude Design export (order preserved). */

/* Modernist — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --color-accent-2-100: #fff2ef;
  --color-accent-2-200: #ffe0da;
  --color-accent-2-300: #ffc4b9;
  --color-accent-2-400: #ff9784;
  --color-accent-2-500: #ef6853;
  --color-accent-2-600: #c94b39;
  --color-accent-2-700: #9e3526;
  --color-accent-2-800: #71261b;
  --color-accent-2-900: #471d16;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4.0px;
  --space-2: 8.0px;
  --space-3: 12.0px;
  --space-4: 16.0px;
  --space-6: 24.0px;
  --space-8: 32.0px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.grayscale{filter:grayscale(1) contrast(1.08)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 2px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }

/* ──────────────────────────────────────────────────────────── */

html { overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); text-wrap: pretty; }
a { color: var(--color-accent-700); } a:hover { color: var(--color-accent); }
html, body { transition: background-color .35s ease, color .35s ease; }
@keyframes jsUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes jsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jsPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes jsPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.6) rotate(45deg); } }
@keyframes jsSpin { to { transform: rotate(360deg); } }
@keyframes jsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes jsGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes jsWipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) {
  [data-admin-side] { position: sticky !important; top: 66px !important; z-index: 20; flex: 1 1 100% !important; flex-direction: row !important; overflow-x: auto; scrollbar-width: none; padding: 10px 12px !important; gap: 6px !important; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  [data-admin-side] > div:first-child { display: none !important; }
  [data-admin-side] > button { flex: none !important; margin-top: 0 !important; white-space: nowrap; }
  [data-admin-side] button { padding: 9px 12px !important; }
  [data-admin-main] { border-left: 0 !important; padding: 18px 14px 80px !important; }
  [data-admin-main] h1 { font-size: 26px !important; }
  [data-admin-main] .table { font-size: 13px; }
}
@keyframes authIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (min-width: 640px) { [data-od-wrap] { align-items: center !important; padding: 24px !important; } [data-od] { border-radius: 12px !important; } }
@media (max-width: 900px) {
  [data-auth] { grid-template-columns: 1fr !important; min-height: 0 !important; }
  [data-auth-art] { height: 190px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  [data-auth-copy] { padding: 18px !important; gap: 8px !important; }
  [data-auth-copy] h2 { font-size: 22px !important; }
  [data-auth-points] { display: none !important; }
  [data-me-side] { position: sticky !important; top: 66px !important; z-index: 20; flex: 1 1 100% !important; flex-direction: row !important; overflow-x: auto; scrollbar-width: none; padding: 10px 12px !important; gap: 6px !important; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  [data-me-user] { display: none !important; }
  [data-me-side] > button { flex: none !important; margin-top: 0 !important; white-space: nowrap; padding: 9px 12px !important; }
  [data-me-main] { border-left: 0 !important; padding: 18px 14px 80px !important; }
}
@media (max-width: 480px) { [data-hide-xs] { display: none !important; } }
/* Téléphone : en-tête sur une ligne (le logo ramène à l'accueil, l'admin est dans le menu du compte) */
@media (max-width: 480px) {
  header > div { flex-wrap: nowrap !important; gap: 8px !important; }
  header nav { display: none !important; }
  header [role="radiogroup"] button { min-width: 0 !important; padding: 6px 9px !important; font-size: 11.5px !important; }
}
/* Barre « Ajouter au panier » (access token) : seulement quand le récapitulatif passe sous les offres */
@media (min-width: 1000px) { [data-mobile-bar] { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

:root { --font-heading: "Bricolage Grotesque", system-ui, sans-serif; --font-heading-weight: 700; --font-body: "Geist", system-ui, sans-serif;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --line: color-mix(in srgb, var(--color-text) 10%, transparent);
  --color-bg: #f6f5f3; --color-surface: #ffffff; --color-text: #121214; --color-divider: rgb(18 18 20 / .10);
  --color-accent: #ff5a1f; --color-accent-100: #fff1ea; --color-accent-200: #ffdccc; --color-accent-300: #ffbd9f; --color-accent-400: #ff8f63; --color-accent-500: #ff5a1f; --color-accent-600: #e2460e; --color-accent-700: #b8350a; --color-accent-800: #852707; --color-accent-900: #4f1a08;
  --shadow-sm: 0 1px 2px rgb(18 18 20 / .06); --shadow-md: 0 6px 18px rgb(18 18 20 / .08); --shadow-lg: 0 18px 48px rgb(18 18 20 / .14); }
h1, h2, h3 { letter-spacing: -0.03em !important; }
.btn { border-radius: 12px; font-weight: 600; transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.btn-primary { color: var(--on-accent); box-shadow: 0 6px 20px color-mix(in srgb, var(--color-accent) 35%, transparent); }
.btn-primary:active { transform: scale(.98); }
.input { border-radius: 12px; background: var(--color-bg); border-color: var(--line); }
.seg { border-radius: 12px; padding: 3px; gap: 2px; border-color: var(--line); background: var(--color-bg); }
.seg-opt { border-radius: 9px; border: 0 !important; }
.tag { border-radius: 999px; }
.table th { border-bottom-width: 1px !important; }

/* ──────────────────────────────────────────────────────────── */
/* NEXX: monochrome, typography and hairlines. Dark by default, light on request (js/theme.js). This block wins over the layers above. */

:root, html[data-theme="light"] {
  color-scheme: light;
  --font-heading: "Geist", "DM Sans", system-ui, sans-serif; --font-heading-weight: 450; --font-body: "Geist", "DM Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* surfaces : gris doux, jamais de blanc pur */
  --bg: #ECEDF0; --panel: #F4F5F7; --panel-2: #E8EAED; --hover: rgb(24 28 38 / .06); --header-bg: rgb(236 237 240 / .88);
  --input-bg: #F8F9FA; --seg-on: #F8F9FA; --media-bg: #E2E4E8; --logo-plate: #F8F9FA;
  /* bordures */
  --line: #D9DBE0; --line-strong: #A9ADB6; --line-input: #8E929B;
  /* texte */
  --ink-1: #1B1D21; --ink-2: #40434A; --ink-3: #575B63;
  /* accent */
  --accent: #1B1D21; --accent-hover: #33363C; --accent-soft: rgb(24 28 38 / .05); --on-accent: #F6F7F8;
  /* états */
  --danger: #B3261E; --danger-soft: rgb(179 38 30 / .09); --danger-line: rgb(179 38 30 / .35);
  --ok: #1E6E33; --ok-soft: rgb(30 110 51 / .1); --ok-line: rgb(30 110 51 / .35);
  --warn: #865000; --warn-soft: rgb(134 80 0 / .1); --warn-line: rgb(134 80 0 / .35);
  --info: #0B5AB8; --info-soft: rgb(11 90 184 / .09); --info-line: rgb(11 90 184 / .35);
  --mute-soft: rgb(24 28 38 / .07); --mute-line: #A9ADB6;
  /* élévation : bordure discrète et ombre très légère */
  --ring: 0 0 0 1px rgb(24 28 38 / .11), 0 1px 2px rgb(24 28 38 / .04);
  --backdrop: rgb(24 28 38 / .42);
  --disabled-opacity: .72;
  --shadow-bar: 0 -6px 20px rgb(24 28 38 / .12);
  --color-bg: var(--bg); --color-surface: var(--panel); --color-text: var(--ink-1); --color-divider: var(--line);
  --color-neutral-100: #E8EAED; --color-neutral-200: #DEE0E4; --color-neutral-300: #C4C7CE; --color-neutral-400: #A2A6AE; --color-neutral-500: #7F838C; --color-neutral-600: #686C74; --color-neutral-700: #575B63; --color-neutral-800: #40434A; --color-neutral-900: #1B1D21;
  --color-accent: var(--accent); --color-accent-100: #E8EAED; --color-accent-200: #DEE0E4; --color-accent-300: #C4C7CE; --color-accent-400: #575B63; --color-accent-500: #1B1D21; --color-accent-600: #33363C; --color-accent-700: #1B1D21; --color-accent-800: #1B1D21; --color-accent-900: #1B1D21;
  --radius-sm: 6px; --radius-md: 6px; --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgb(24 28 38 / .05); --shadow-md: var(--ring); --shadow-lg: 0 0 0 1px rgb(24 28 38 / .1), 0 16px 32px -14px rgb(24 28 38 / .22);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a; --panel: #111111; --panel-2: #1a1a1a; --hover: rgb(255 255 255 / .08); --header-bg: rgb(10 10 10 / .85);
  --line: #2e2e2e; --line-strong: #454545; --line-input: #454545; --input-bg: #0a0a0a; --seg-on: #262626; --disabled-opacity: .5; --media-bg: #05070d; --logo-plate: #ffffff; --backdrop: rgb(0 0 0 / .5); --shadow-bar: 0 -10px 30px rgb(0 0 0 / .35);
  --ink-1: #ededed; --ink-2: #b4b4b4; --ink-3: #9a9a9a;
  --accent: #d4d4d4; --accent-hover: #e5e5e5; --accent-soft: rgb(255 255 255 / .06); --on-accent: #0a0a0a;
  --danger: #ff8a8a; --danger-soft: rgb(255 138 138 / .1); --danger-line: rgb(255 138 138 / .35);
  --ok: #62c073; --ok-soft: rgb(98 192 115 / .1); --ok-line: rgb(98 192 115 / .35);
  --warn: #f5c542; --warn-soft: rgb(245 197 66 / .1); --warn-line: rgb(245 197 66 / .35);
  --info: #6cb4ff; --info-soft: rgb(108 180 255 / .1); --info-line: rgb(108 180 255 / .35);
  --mute-soft: rgb(255 255 255 / .07); --mute-line: #454545;
  --ring: 0 0 0 1px rgb(255 255 255 / .1);
  --color-neutral-100: #1a1a1a; --color-neutral-200: #2e2e2e; --color-neutral-300: #454545; --color-neutral-400: #666666; --color-neutral-500: #7d7d7d; --color-neutral-600: #8f8f8f; --color-neutral-700: #9a9a9a; --color-neutral-800: #b4b4b4; --color-neutral-900: #ededed;
  --color-accent-100: #1a1a1a; --color-accent-200: #2e2e2e; --color-accent-300: #454545; --color-accent-400: #9a9a9a; --color-accent-500: #ededed; --color-accent-600: #ffffff; --color-accent-700: #ededed; --color-accent-800: #ededed; --color-accent-900: #ededed;
  --shadow-sm: none; --shadow-lg: 0 0 0 1px rgb(255 255 255 / .1), 0 12px 32px -12px rgb(0 0 0 / .7);
}

html, body { transition: none; }
body { background: var(--bg); color: var(--ink-1); font-size: 16px; line-height: 1.5; font-feature-settings: "calt" 0, "rlig", "ss11"; -webkit-font-smoothing: antialiased; touch-action: manipulation; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 450; letter-spacing: -0.03em !important; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
header a[aria-current="page"] { color: var(--ink-1) !important; background: var(--hover); }

.btn { min-height: 44px; border-radius: 6px; font-family: var(--font-body); font-weight: 500; font-size: 14px; padding: 10px 16px; transition: background-color .15s ease, box-shadow .15s ease, color .15s ease; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-hover); }
.btn-secondary { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-1); }
.btn-secondary:hover { background: var(--hover); border-color: var(--line-strong); color: var(--ink-1); }
.btn-secondary:active { background: var(--hover); }
.btn-ghost { color: var(--ink-1); padding-inline: 12px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.btn-ghost:hover { background: var(--hover); }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.input { min-height: 44px; background: var(--input-bg); border: 1px solid var(--line-input); border-radius: 6px; color: var(--ink-1); font-size: 16px; }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--ink-1); box-shadow: 0 0 0 1px var(--ink-1); }
.seg { background: var(--mute-soft); border: 0; border-radius: 6px; padding: 3px; gap: 2px; }
.seg-opt { min-height: 38px; border: 0 !important; border-radius: 4px; font-weight: 500; font-size: 14px; color: var(--ink-2); justify-content: center; }
.seg-opt:has(input:checked) { background: var(--seg-on); color: var(--ink-1); box-shadow: var(--ring); }
.tag { border-radius: 9999px; font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.02em; padding: 3px 9px; }
.tag-accent { background: var(--accent-soft); color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.tag-neutral { background: var(--mute-soft); color: var(--ink-2); }
.tag-outline { border: 1px solid var(--line-strong); color: var(--ink-1); }
.table th { color: var(--ink-3); font-family: var(--font-mono); font-weight: 400; }
::selection { background: rgb(127 127 127 / .3); }
:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
a { color: var(--ink-1); }
a:hover { color: var(--ink-2); }
@media (min-width: 900px) { header nav { order: 0 !important; flex: 0 1 auto !important; } }

/* — brand and theme switch — */
.nx-logo { display: block; flex: none; width: 76px; aspect-ratio: 628 / 210; background: currentColor; color: var(--ink-1); -webkit-mask: url("/assets/img/nexx-logo.svg") center / contain no-repeat; mask: url("/assets/img/nexx-logo.svg") center / contain no-repeat; }
.nx-theme { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); }
.nx-theme:hover { background: var(--hover); }
.nx-theme:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
.nx-footer-tools .nx-theme { display: grid; }
.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; }

/* — home: hero — */
.nx-hero-in { 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-size: clamp(38px, 5.4vw, 64px); font-weight: 450; line-height: 1; letter-spacing: -0.06em !important; 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; }


/* — home: 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: baseline; gap: 4px 24px; margin-bottom: 20px; }
.nx-section-head p { margin: 0; font-size: 14px; color: var(--ink-3); }
.nx-h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 450; line-height: 1.1; letter-spacing: -0.04em !important; }
.nx-h3 { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: 16px; letter-spacing: -0.01em !important; line-height: 1.3; }

.nx-tiles { display: grid; gap: clamp(14px, 2vw, 24px) clamp(10px, 1.6vw, 20px); }
.nx-tile { all: unset; box-sizing: border-box; cursor: pointer; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nx-tile:disabled { cursor: not-allowed; }
.nx-tile:disabled .nx-tile-art { opacity: .5; }
.nx-tile-art { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden; border-radius: 6px; background: var(--mute-soft); box-shadow: var(--ring); transition: box-shadow .15s ease; }
.nx-tile:not(:disabled):hover .nx-tile-art { box-shadow: 0 0 0 2px var(--ink-1); }
.nx-tile:focus-visible { outline: none; }
.nx-tile:focus-visible .nx-tile-art { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink-1); }
.nx-tile-tag { position: absolute; top: 8px; left: 8px; background: var(--panel); }
.nx-tile-name { font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-tile-sub { font-size: 13px; line-height: 1.3; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-more { display: flex; justify-content: center; margin-top: 24px; }

.nx-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 0 clamp(28px, 5vw, 56px); }
.nx-pay p { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
.nx-pay ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.nx-pay li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.nx-pay img { width: 32px; height: 32px; border-radius: 6px; background: var(--logo-plate); object-fit: contain; box-shadow: var(--ring); }

.nx-how .nx-h2 { margin-bottom: 20px; }
.nx-how ol { list-style: none; margin: 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 !important; }
.nx-how p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* — game page: switcher and server notices — */
.nx-rail { display: flex; gap: 10px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.nx-rail::-webkit-scrollbar { display: none; }
.nx-rail-item { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 84px; display: flex; flex-direction: column; gap: 6px; }
.nx-rail-art { display: block; aspect-ratio: 1; border-radius: 6px; background: var(--mute-soft) center / cover no-repeat; box-shadow: var(--ring); transition: box-shadow .15s ease; }
.nx-rail-item:hover .nx-rail-art { box-shadow: 0 0 0 1px var(--ink-3); }
.nx-rail-item[aria-current="page"] .nx-rail-art { box-shadow: 0 0 0 2px var(--ink-1); }
.nx-rail-item:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; border-radius: 6px; }
.nx-rail-name { font-size: 12px; line-height: 1.3; color: var(--ink-3); text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nx-rail-item[aria-current="page"] .nx-rail-name { color: var(--ink-1); font-weight: 500; }

.nx-note { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 6px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.nx-note strong { color: var(--ink-1); font-weight: 500; }
.nx-note-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-claim ul { margin: 0; padding-left: 20px; }
.nx-claim-warn { color: var(--warn); }
.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); }
#offres { scroll-margin-top: 76px; }

/* — phone — */
@media (max-width: 999px) { aside[data-hide-mobile="true"] { display: none !important; } }
@media (max-width: 860px) {
  .nx-hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 24px 8px; }
  .nx-hero-copy { gap: 14px; }
    .nx-how ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nx-display { font-size: 36px; line-height: 1.05; letter-spacing: -0.045em !important; }
  .nx-actions { width: 100%; }
  .nx-actions .btn { flex: 1 1 auto; }
  .nx-facts { display: none; }
  .nx-pay ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 12px 16px; }
  .nx-pay li { white-space: normal; line-height: 1.25; font-size: 13.5px; }
  .nx-rail-item { width: 68px; }
  .nx-tile-sub { display: none; }
  /* choix du mode sur toute la largeur, onglets d'offres à faire défiler sur une ligne */
  .seg { display: flex; width: 100%; }
  .seg-opt { flex: 1 1 0; text-align: center; }
  [data-catbar] { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; width: 100%; margin-inline: -2px; padding: 2px; }
  [data-catbar]::-webkit-scrollbar { display: none; }
  [data-catbar] label { flex: none; min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; }
  [data-step-section] { padding: 16px !important; }
  [data-stepper] { flex-wrap: nowrap !important; gap: 6px !important; margin: 14px 0 20px !important; }
  [data-stepper] > div { gap: 6px !important; }
  [data-stepper] > div > span:nth-child(2) { font-size: 12px !important; }
  [data-stepper] > div > span:nth-child(3) { min-width: 6px !important; }
  main h1 { overflow-wrap: anywhere; }
  [data-step-section] .input + .btn { flex: 1 1 100%; }
}
@media (hover: none) { .nx-tile:not(:disabled):hover .nx-tile-art { box-shadow: var(--ring); } .nx-offer:not(:disabled):not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1px var(--line); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* — NEXX, deuxième passe : héros sans image de jeu, grille technique, offres inversées, animations légères — */
.nx-lang { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 12px; transition: background-color .15s ease; }
.nx-lang:hover { background: var(--hover); }
.nx-lang:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
html[lang="fr"] .nx-lang::after { content: "EN"; }
html[lang="en"] .nx-lang::after { content: "FR"; }
.nx-footer-tools { display: none; gap: 8px; }

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

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

.nx-search { position: relative; flex: 0 1 300px; min-width: 200px; }
.nx-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.nx-search .input { padding-left: 36px; min-height: 40px; font-size: 14px; }
.nx-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 15px; }

.nx-tile-art image-slot, .nx-tile-art > * { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.nx-tile:not(:disabled):hover .nx-tile-art > image-slot { transform: scale(1.04); }
.nx-tile-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-tile-go { flex: none; opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.nx-tile:not(:disabled):hover .nx-tile-go, .nx-tile:focus-visible .nx-tile-go { opacity: 1; transform: none; }

.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); }
.nx-cell h3 { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: 16px; letter-spacing: -0.01em !important; }
.nx-cell p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.nx-cell svg { margin-bottom: 8px; color: var(--ink-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; }

/* — page d'un jeu : image en couverture, texte par-dessus — */
.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; }
.nx-cover-art image-slot { display: block; width: 100%; height: 100%; }
.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; pointer-events: none; display: flex; align-items: center; gap: clamp(14px, 3vw, 24px); padding: clamp(20px, 4vw, 40px); }
.nx-cover-icon { width: clamp(64px, 9vw, 96px); aspect-ratio: 1; flex: none; border-radius: 6px; background: #111 center / cover no-repeat; 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-size: clamp(30px, 4.6vw, 52px); font-weight: 450; line-height: 1; letter-spacing: -0.05em !important; color: #fff; }
.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-servers { display: flex; align-items: center; gap: 8px; min-width: 0; }
.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 { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.nx-servers-list::-webkit-scrollbar { display: none; }
.nx-chip { all: unset; box-sizing: border-box; cursor: pointer; flex: none; min-height: 36px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background-color .15s ease, color .15s ease; }
.nx-chip:hover { background: var(--hover); }
.nx-chip:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
.nx-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.nx-server-lock { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.nx-server-lock strong { color: var(--ink-1); font-weight: 500; }

/* — 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-offer { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; 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 { align-content: space-between; }
.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:disabled { cursor: not-allowed; opacity: var(--disabled-opacity); }
.nx-offer-img { width: 44px; height: 44px; background: center / contain no-repeat; }
.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-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 { font-weight: 500; font-size: 15px; color: var(--ink-1); font-feature-settings: "tnum" 1; }
.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-status { grid-column: 1 / -1; justify-self: start; }
.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; }
.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 { color: var(--on-accent); }
.nx-offer[aria-pressed="true"] .nx-offer-sub { 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-add { 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); }
.nx-offer[aria-pressed="true"] .tag { background: rgb(127 127 127 / .25); color: var(--on-accent); }

/* — animations légères : seulement transform et opacity, 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; } }
@keyframes nx-page { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes nx-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  main { animation: nx-page .3s cubic-bezier(.16,1,.3,1) both; }
  .btn:not(:disabled):active { transform: scale(.98); }
  .nx-theme svg { transition: transform .3s cubic-bezier(.16,1,.3,1); }
  .nx-theme:hover svg { transform: rotate(18deg); }
  @supports (animation-timeline: view()) {
    .nx-reveal { animation: nx-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx-term-line { animation: none !important; opacity: 1; }
  .nx-term-dot, .nx-hero::after { animation: none !important; }
}

@media (max-width: 860px) {
  .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; }
}
@media (max-width: 560px) {
  .nx-search { flex: 1 1 100%; }
  .nx-section-head { flex-direction: column; align-items: stretch; }
  .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 { 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-servers { align-items: flex-start; flex-direction: column; gap: 6px; width: 100%; }
  .nx-servers-list { width: 100%; }
  /* en-tête : la langue reste en haut, le thème passe en bas de page */
  header .nx-theme, header .nx-lang { width: 38px; height: 38px; }
  header .nx-theme { display: none; }
  .nx-footer-tools { display: flex; }
}

/* — mini-panier — */
.nx-mini-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.nx-mini-right { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.nx-mini-del { all: unset; box-sizing: border-box; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-3); transition: background-color .15s ease, color .15s ease; }
.nx-mini-del:hover { background: var(--danger-soft); color: var(--danger); }
.nx-mini-del:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 1px; }
.nx-mini-clear { all: unset; cursor: pointer; align-self: flex-start; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.nx-mini-clear:hover { color: var(--danger); }
.nx-mini-clear:focus-visible { outline: 2px solid var(--ink-1); outline-offset: 2px; }
.nx-mini-box { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }

/* — bulle d'annonce — */
.nx-promo-back { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--backdrop); animation: jsFade .2s ease both; }
.nx-promo { position: relative; width: 100%; max-width: 440px; max-height: calc(100svh - 40px); overflow: auto; border-radius: 8px; background: var(--panel); box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.16,1,.3,1) both; }
.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-size: 22px; font-weight: 450; line-height: 1.15; }
.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: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink-1); transform-origin: left; animation: nx-promo-bar linear both; }
@keyframes nx-promo-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 560px) {
  .nx-promo-back { padding: 14px; }
  .nx-cover { min-height: 150px; }
  .nx-cover-in { padding: 16px; }
  .nx-cover-safe { font-size: 12px; }
}

/* — téléphone : en-tête sur une ligne jusqu'à 320 px, zones tactiles d'au moins 40 px — */
@media (max-width: 560px) {
  .nx-mini-del { width: 40px; height: 40px; }
  .nx-mini-clear { display: inline-flex; align-items: center; min-height: 40px; }
  footer a { min-height: 40px; }
  .nx-offer-add { min-width: 30px; height: 30px; }
}
@media (max-width: 480px) {
  header > div { gap: 6px !important; padding-inline: 12px !important; }
  header .nx-logo { width: 62px; }
  header .nx-lang { width: 36px; height: 40px; }
  header button { flex: none; }
  header [role="radiogroup"] { flex: none; }
  header [role="radiogroup"] button { box-sizing: border-box !important; min-width: 36px !important; min-height: 36px !important; padding: 0 4px !important; font-size: 11px !important; display: inline-flex !important; align-items: center; justify-content: center; }
  header button[aria-haspopup="menu"] { padding: 3px !important; }
  header button[aria-haspopup="menu"] > svg { display: none; }
  header button[aria-label][aria-current], header button[aria-label]:not(.nx-lang):not(.nx-theme):not([aria-haspopup]) { width: 40px !important; height: 40px !important; }
}
/* Étapes du panier : libellé sous le numéro, jamais coupé */
@media (max-width: 480px) {
  [data-stepper] { align-items: flex-start !important; }
  [data-stepper] > div { flex: 1 1 0 !important; flex-direction: column; text-align: center; }
  [data-stepper] > div > span:nth-child(2) { white-space: normal !important; font-size: 11.5px !important; line-height: 1.25; }
  [data-stepper] > div > span:nth-child(3) { display: none !important; }
}
/* Offres : l'image passe au-dessus du nom quand la carte est étroite */
@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; }
  .nx-offer-status { max-width: 100%; white-space: normal; line-height: 1.25; }
}
/* Message court sur une ligne quand il tient, sans se tasser au centre de l'écran */
.nx-toast { width: max-content; line-height: 1.35; }
/* Tablette : tout sur une ligne dans l'en-tête ; atouts sur une colonne seulement sur téléphone */
@media (min-width: 640px) { header nav { order: 0 !important; flex: 0 1 auto !important; } }
@media (max-width: 639px) {
  header > div { flex-wrap: nowrap !important; }
  header nav { display: none !important; }
  .nx-bento { grid-template-columns: minmax(0, 1fr); }
}

.nx-img-off { display: none !important; }

/* Thème imposé par l'admin : plus de bouton de thème */
html[data-theme-lock] [data-theme-toggle] { display: none !important; }

/* Sélection du jeu, au-dessus de la bannière */
.nx-rail-title { margin: 0 0 10px; font-family: var(--font-body); font-weight: 500; font-size: 17px; letter-spacing: -0.01em !important; }
.nx-rail { margin-bottom: 18px; }
.nx-rail-art { position: relative; }
.nx-rail-item[aria-current="page"] .nx-rail-art::before { content: "✓"; position: absolute; top: 0; left: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px 0 6px 0; background: var(--accent); color: var(--on-accent); font-size: 11px; line-height: 1; }

/* Mot à côté du logo, logo personnalisé */
.nx-brand-tag { flex: none; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.nx-logo-img { display: block; flex: none; height: 26px; width: auto; max-width: 150px; object-fit: contain; }
.nx-logo-text { flex: none; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; color: var(--ink-1); white-space: nowrap; }
@media (max-width: 480px) {
  .nx-brand-tag { margin-left: 7px; padding-left: 7px; font-size: 9px; letter-spacing: 0.04em; }
  header .nx-logo-img { max-width: 92px; height: 22px; }
}
@media (max-width: 359px) { header .nx-brand-tag { display: none; } }
