/* ============================================================================
   UnlockRapide — Home « NX » (refonte premium, sandbox Claude)
   Chargé uniquement sur « / », après customer.css. Tout est scopé .nx
   (+ body:has(.nx) pour le fond de page et la topbar) : zéro fuite ailleurs.
   Système : Inter, partagé avec les catalogues client.
   ========================================================================== */

:root {
    --nx-font-head: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
    --nx-font-body: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
    --nx-font-mono: "Inter", ui-monospace, Consolas, monospace;

    /* Rampe courte et sémantique pour le catalogue de la home. */
    --nx-text-label: .75rem;
    --nx-text-meta: .875rem;
    --nx-text-service: 1rem;
    --nx-text-section: clamp(1.25rem, 1.08rem + .72vw, 1.75rem);
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
.nx {
    /* Pont vers le thème publié depuis /console/appearance/theme. */
    --nx-teal: var(--brand);
    --nx-teal-strong: var(--brand-strong);
    --nx-teal-bright: var(--brand-bright);
    --nx-gold: var(--gold);
    --nx-gold-soft: color-mix(in srgb, var(--gold) 72%, white);
    --nx-indigo: color-mix(in srgb, var(--brand) 55%, #6366f1);
    --nx-amber: var(--warn);
    --nx-rose: var(--accent);
    --nx-ok: var(--ok);
    --nx-warn: var(--warn);

    --nx-bg: var(--bg);
    --nx-panel: var(--panel);
    --nx-panel-2: var(--surface-2);
    --nx-ink: var(--ink);
    --nx-ink-strong: var(--ink-strong);
    --nx-muted: var(--muted);
    --nx-line: var(--line);
    --nx-line-soft: color-mix(in srgb, var(--line) 62%, transparent);

    --nx-brand-soft: var(--brand-soft);
    --nx-gold-soft-bg: var(--warn-soft);

    --nx-r-sm: 12px;
    --nx-r-md: 16px;
    --nx-r-lg: 22px;
    --nx-ease: cubic-bezier(.22, 1, .36, 1);
    --nx-shadow-sm: var(--shadow-sm);
    --nx-shadow-md: var(--shadow-md);
    --nx-shadow-lg: var(--shadow-lg);

    /* Hero sombre : contraste constant, palette fournie par le preset. */
    --nx-hero-ink: #eafffb;
    --nx-glass: rgba(255, 255, 255, .07);
    --nx-glass-line: rgba(255, 255, 255, .15);

    position: relative;
    font-family: var(--nx-font-body);
    font-kerning: normal;
    font-optical-sizing: auto;
}

/* fond de page + clip du full-bleed (garde la topbar sticky, pas de scroll horizontal).
   html reçoit aussi le fond : plus de bande blanche au rebond du scroll mobile. */
html:has(.nx) { overflow-x: clip; background: var(--bg); }
body:has(.nx) { background: var(--bg); overflow-x: clip; }
/* la home gère son propre rythme vertical : pas d'espace au-dessus du hero */
body:has(.nx) .page { padding-top: 0; }

/* --nx-vw = largeur utile réelle (sans la scrollbar), posée par home.js :
   100vw inclut la scrollbar et créait 8px de débordement horizontal. */
.nx-bleed { width: var(--nx-vw, 100vw); margin-inline: calc(50% - var(--nx-vw, 100vw) / 2); }
.nx-shell { width: min(1180px, calc(100vw - 40px)); margin-inline: auto; }
@media (max-width: 560px) { .nx-shell { width: calc(100vw - 32px); } }

.nx a { -webkit-tap-highlight-color: transparent; }
.nx :focus-visible { outline: 3px solid color-mix(in srgb, var(--nx-teal-bright) 65%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ── Topbar : AUCUN traitement spécial — la home garde exactement le même
   header que le reste du portail (customer.css), qui suit le thème publié. ── */

/* Footer et bandeau outils : styles standard de customer.css, aucun override —
   mêmes couleurs que /imei, /server et toutes les autres pages. */

/* ── Annonces ────────────────────────────────────────────────────────────── */
.nx-announcement {
    display: flex; align-items: flex-start; gap: 12px;
    width: min(1180px, calc(100vw - 40px)); margin: 14px auto;
    padding: 14px 18px; border-radius: var(--nx-r-md);
    background: var(--nx-panel); border: 1px solid var(--nx-line);
    box-shadow: var(--nx-shadow-sm); color: var(--nx-ink); font-size: 14px;
}
.nx-announcement svg { flex: none; margin-top: 1px; color: var(--nx-teal); }
.nx-announcement div { display: grid; gap: 2px; }
.nx-announcement span { color: var(--nx-muted); font-size: 13px; }
.nx-announcement.warning svg { color: var(--nx-amber); }
.nx-announcement.danger svg { color: var(--nx-rose); }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.nx-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; padding: 0 21px; border-radius: 13px; border: 0; cursor: pointer;
    font-family: var(--nx-font-head); font-size: 14px; font-weight: 700; letter-spacing: .01em;
    text-decoration: none; white-space: nowrap;
    transition: transform .28s var(--nx-ease), box-shadow .28s var(--nx-ease), background .28s var(--nx-ease);
}
.nx-btn:active { transform: translateY(0) scale(.985); }
.nx-btn .nx-ico { transition: transform .28s var(--nx-ease); }
.nx-btn:hover .nx-ico { transform: translateX(4px); }

.nx-btn-gold {
    background: linear-gradient(135deg, #ffdf8a 0%, var(--nx-gold) 55%, #e79f0a 100%);
    color: #33270a;
    box-shadow: 0 12px 30px rgba(242, 180, 28, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.nx-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(242, 180, 28, .48), inset 0 1px 0 rgba(255, 255, 255, .5); color: #33270a; text-decoration: none; }
/* reflet balayé au survol */
.nx-btn-gold::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 62%);
    transform: translateX(-120%); transition: transform .7s var(--nx-ease);
}
.nx-btn-gold:hover::after { transform: translateX(120%); }

.nx-btn-glass {
    background: var(--nx-glass); color: #fff;
    border: 1px solid var(--nx-glass-line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nx-btn-glass:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }

/* ════════════════════════════════════════════════════════════════════════
   1 · HERO
   ══════════════════════════════════════════════════════════════════════ */
.nx-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(20px, 2.8vw, 34px) 0 clamp(22px, 2.6vw, 32px);
    color: var(--nx-hero-ink);
    /* Base sombre et accents fournis par la famille de thème active. */
    background:
        radial-gradient(110% 90% at 82% -12%, color-mix(in srgb, var(--nx-gold) 14%, transparent), transparent 44%),
        radial-gradient(120% 120% at -12% 108%, color-mix(in srgb, var(--nx-teal-bright) 18%, transparent), transparent 50%),
        linear-gradient(152deg, var(--navy-deep) 0%, var(--navy) 58%, color-mix(in srgb, var(--navy) 72%, var(--brand) 28%) 100%);
}

/* ciel : orbes + trame + silhouette Afrique + grain */
.nx-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* deux halos seulement, discrets : la profondeur sans le bruit */
.nx-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .38; will-change: transform; }
.nx-orb.a { width: 44vw; height: 44vw; max-width: 600px; max-height: 600px; left: -8%; top: -18%; background: radial-gradient(circle, color-mix(in srgb, var(--nx-teal-bright) 52%, transparent), transparent 62%); animation: nx-drift-a 26s var(--nx-ease) infinite alternate; }
.nx-orb.b { width: 36vw; height: 36vw; max-width: 480px; max-height: 480px; right: -6%; top: 4%; background: radial-gradient(circle, color-mix(in srgb, var(--nx-gold) 36%, transparent), transparent 62%); animation: nx-drift-b 30s var(--nx-ease) infinite alternate; }
@keyframes nx-drift-a { to { transform: translate(60px, 40px) scale(1.1); } }
@keyframes nx-drift-b { to { transform: translate(-54px, 30px) scale(1.06); } }

.nx-africa {
    position: absolute; right: -5%; top: 46%; transform: translateY(-50%) rotate(3deg);
    width: min(430px, 36vw); height: auto; opacity: .07;
    filter: brightness(.72) saturate(.6);
}
/* grain photographique très léger */
.nx-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.nx-hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(22px, 3vw, 40px); align-items: center;
}
.nx-hero-copy { max-width: 640px; }

.nx-hero h1 {
    margin: 0 0 12px;
    font-family: var(--nx-font-head); font-weight: 700;
    font-size: clamp(30px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.02em;
    color: #fff; text-wrap: balance;
}
.nx-hero h1 .nx-grad { color: var(--nx-gold-soft); }
.nx-hero-sub { margin: 0 0 20px; max-width: 56ch; color: rgba(233, 248, 246, .82); font-size: clamp(13.5px, 1.15vw, 15px); line-height: 1.55; }

.nx-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* visuel : cadre verre + lueur */
.nx-hero-visual { position: relative; }
.nx-frame {
    position: relative; z-index: 1; overflow: hidden; border-radius: 20px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 34px 90px rgba(1, 10, 16, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.nx-frame-glow {
    position: absolute; inset: 8% -6% -10% -6%; z-index: 0; pointer-events: none;
    background: radial-gradient(60% 55% at 50% 60%, color-mix(in srgb, var(--nx-teal-bright) 32%, transparent), transparent 70%);
    filter: blur(30px);
}
.nx-slider { display: flex; transition: transform .65s var(--nx-ease); touch-action: pan-y; }
.nx-slide { flex: 0 0 100%; min-width: 100%; }
.nx-slide img { display: block; width: 100%; height: auto; }
.nx-slide a { display: block; }

.nx-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.nx-dots button {
    position: relative; width: 26px; height: 18px; padding: 7px 0; border: 0; cursor: pointer;
    background: transparent;
}
.nx-dots button i {
    display: block; width: 100%; height: 4px; border-radius: 4px;
    background: rgba(255, 255, 255, .38); overflow: hidden; position: relative;
    transition: background .3s;
}
.nx-dots button i::after {
    content: ""; position: absolute; inset: 0; border-radius: 4px;
    background: #fff; transform: scaleX(0); transform-origin: left;
}
.nx-dots button[aria-current="true"] i { background: rgba(255, 255, 255, .3); }
.nx-dots button[aria-current="true"] i::after { animation: nx-progress var(--nx-slide-ms, 5500ms) linear forwards; }
.nx-paused .nx-dots button i::after { animation-play-state: paused; }
@keyframes nx-progress { to { transform: scaleX(1); } }

/* bande paiements : pleine largeur sous le hero, une seule ligne */
.nx-payband { position: relative; z-index: 1; margin-top: clamp(16px, 2.2vw, 24px); padding-top: clamp(10px, 1.4vw, 14px); border-top: 1px solid rgba(255, 255, 255, .1); }
.nx-payband-label { display: block; margin-bottom: 9px; font-family: var(--nx-font-head); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(233, 248, 246, .55); }
.nx-payband-track { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.nx-payband-track::-webkit-scrollbar { display: none; }
.nx-hpay {
    flex: none;
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px 0 9px;
    border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .92); font-size: 12.5px; font-weight: 600; white-space: nowrap;
    transition: background .25s var(--nx-ease), border-color .25s var(--nx-ease);
}
.nx-hpay:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
/* mini-plaque blanche : chaque logo reste lisible sur le verre sombre */
.nx-hpay img { height: 22px; width: auto; min-width: 22px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 3px; }

/* drapeaux : ruban défilant */
.nx-flags { position: relative; z-index: 1; margin-top: clamp(14px, 1.8vw, 20px); padding-top: clamp(10px, 1.4vw, 14px); border-top: 1px solid rgba(255, 255, 255, .1); }
.nx-flags-label { display: block; margin-bottom: 9px; font-family: var(--nx-font-head); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--nx-gold-soft); }
.nx-flags-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.nx-flags-row { display: flex; gap: 12px; width: max-content; animation: nx-marquee 46s linear infinite; }
.nx-flags-track:hover .nx-flags-row { animation-play-state: paused; }
@keyframes nx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.nx-flag {
    flex: none; display: flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 8px; border-radius: 11px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .11);
}
.nx-flag .nx-fl { width: 30px; height: 21px; border-radius: 4px; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); flex: none; }
.nx-flag b { font-family: var(--nx-font-head); font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .92); white-space: nowrap; }

/* ════════════════════════════════════════════════════════════════════════
   Sections · têtes — directes : un titre, l'action, le contenu
   ══════════════════════════════════════════════════════════════════════ */
.nx-section { margin: clamp(30px, 4vw, 52px) 0; }
.nx-head { max-width: 760px; margin-bottom: clamp(12px, 1.8vw, 18px); }
.nx-head-center { margin-inline: auto; text-align: center; }
.nx-head h2 {
    margin: 0; font-family: var(--nx-font-head); font-weight: 700;
    font-size: var(--nx-text-section); line-height: 1.16; letter-spacing: -.018em;
    color: var(--nx-ink-strong); text-wrap: balance;
}
.nx-head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: none; }
.nx-link-btn {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    min-height: 44px; padding: 10px 18px; border-radius: 12px;
    border: 1px solid var(--nx-line); background: var(--nx-panel);
    color: var(--nx-teal-strong); font-family: var(--nx-font-head); font-size: 13.5px; font-weight: 700;
    text-decoration: none;
    transition: transform .25s var(--nx-ease), border-color .25s, background .25s, box-shadow .25s;
}
.nx-link-btn svg { transition: transform .25s var(--nx-ease); }
.nx-link-btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--nx-teal) 45%, var(--nx-line)); background: var(--nx-brand-soft); color: var(--nx-teal-strong); box-shadow: var(--nx-shadow-sm); text-decoration: none; }
.nx-link-btn:hover svg { transform: translateX(3px); }
[data-theme="dark"] .nx-link-btn { color: var(--nx-teal-bright); }
[data-theme="dark"] .nx-link-btn:hover { color: var(--nx-teal-bright); }

/* ════════════════════════════════════════════════════════════════════════
   3 · SÉLECTIONS ÉDITORIALES
   ══════════════════════════════════════════════════════════════════════ */
.nx-collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
/* vitrine épinglée : keyline dégradée teal→or (signature de la section) */
.nx-collection {
    position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden;
    border-radius: var(--nx-r-lg);
    border: 1px solid transparent;
    background:
        linear-gradient(var(--nx-panel), var(--nx-panel)) padding-box,
        linear-gradient(150deg,
            color-mix(in srgb, var(--nx-teal) 55%, var(--nx-line)),
            var(--nx-line) 42%,
            color-mix(in srgb, var(--nx-gold) 55%, var(--nx-line))) border-box;
    box-shadow: var(--nx-shadow-sm);
    transition: transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease);
}
.nx-collection:hover { transform: translateY(-5px); box-shadow: var(--nx-shadow-lg); }

/* scène calme : navy uni à peine éclairé, visuel arrondi à liseré fin */
.nx-collection-banner {
    position: relative; isolation: isolate; aspect-ratio: 8 / 3; overflow: hidden; display: grid; place-items: center;
    background:
        radial-gradient(120% 100% at 82% 0%, color-mix(in srgb, var(--nx-teal-bright) 9%, transparent), transparent 52%),
        var(--navy-deep);
    border-bottom: 1px solid var(--nx-line-soft);
}
/* Une miniature de service (souvent 300 × 200) reste nette et entière : le
   fond étendu remplit le 8:3, tandis que la source est centrée sans upscale. */
.nx-collection-banner img {
    position: absolute; display: block;
    transition: transform .6s var(--nx-ease);
}
.nx-collection-banner-backdrop {
    z-index: 0; inset: -12%; width: 124%; height: 124%; object-fit: cover;
    filter: blur(18px) saturate(.82) brightness(.55); opacity: .82; transform: scale(1.05);
}
.nx-collection-banner-media {
    z-index: 1; left: 50%; top: 50%; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(2, 10, 24, .3)); transform: translate(-50%, -50%);
}
.nx-collection-banner:not(.is-placeholder)::after {
    content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 15, 30, .04), rgba(3, 15, 30, .18));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.nx-collection:hover .nx-collection-banner-backdrop { transform: scale(1.1); }
.nx-collection:hover .nx-collection-banner-media { transform: translate(-50%, -50%) scale(1.02); }
.nx-collection-banner.is-placeholder {
    display: grid; place-items: center; color: var(--nx-teal);
    background:
        radial-gradient(circle at 20% 25%, var(--nx-brand-soft), transparent 42%),
        radial-gradient(circle at 82% 78%, var(--nx-gold-soft-bg), transparent 46%),
        var(--nx-panel-2);
}
.nx-collection-banner.is-placeholder::after { display: none; }
.nx-collection-rows { display: grid; grid-auto-rows: minmax(80px, 1fr); }
.nx-row {
    display: grid; grid-template-columns: 90px minmax(0, 1fr) 30px; gap: 12px; align-items: center;
    min-width: 0; padding: 10px 12px; color: var(--nx-ink); text-decoration: none;
    transition: background .22s var(--nx-ease);
}
.nx-row + .nx-row { border-top: 1px solid var(--nx-line-soft); }
.nx-row:hover { background: color-mix(in srgb, var(--nx-brand-soft) 55%, transparent); color: var(--nx-ink); text-decoration: none; }
.nx-row-media {
    width: 90px; height: 60px; overflow: hidden; display: grid; place-items: center;
    border-radius: 10px; border: 1px solid var(--nx-line-soft); background: var(--nx-panel-2); color: var(--nx-teal);
}
/* Tuile produit 3:2 PLEIN CADRE (cover) : la vignette remplit toute la plaque au
   lieu de flotter, petite, au centre — et le srcset 160/320 la garde nette sur
   mobile retina comme sur PC. */
.nx-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-row-body { display: grid; gap: 5px; min-width: 0; align-content: center; }
.nx-row h4 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    margin: 0; min-height: 2.7em;
    font-family: var(--nx-font-head); font-size: var(--nx-text-service); font-weight: 600; line-height: 1.35;
    letter-spacing: 0; color: var(--nx-ink-strong); overflow-wrap: anywhere; text-wrap: pretty;
}
/* Pile fixe prix puis délai : toutes les lignes gardent les mêmes repères,
   quelles que soient la devise, la traduction et la largeur de la pastille. */
.nx-row-meta {
    display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: start;
    gap: 4px; min-width: 0;
}
.nx-price {
    display: inline-flex; align-items: center; min-width: 0; max-width: 100%;
    min-height: 26px; padding: 3px 10px; border-radius: 999px;
    background: var(--nx-brand-soft); border: 1px solid color-mix(in srgb, var(--nx-teal) 24%, transparent);
    font-family: var(--nx-font-mono); font-size: .8125rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums;
    color: var(--nx-teal-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[data-theme="dark"] .nx-price { color: var(--nx-teal-bright); }
.nx-delay {
    display: inline-flex; align-items: center; gap: 4px; flex: none; max-width: 100%;
    padding: 3px 9px; border-radius: 999px;
    background: var(--nx-gold-soft-bg); border: 1px solid color-mix(in srgb, var(--nx-amber) 26%, transparent);
    color: var(--nx-warn); font-size: var(--nx-text-label); font-weight: 650; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[data-theme="dark"] .nx-delay { color: var(--nx-gold-soft); }
.nx-delay svg { flex: none; }
/* Délai instantané : teinte positive + foudre — un service sans attente
   ne porte pas d'horloge. Doublon de classe pour passer devant la règle sombre. */
.nx-delay.nx-delay--instant {
    background: color-mix(in srgb, var(--nx-ok) 13%, transparent);
    border-color: color-mix(in srgb, var(--nx-ok) 34%, transparent);
    color: var(--nx-ok);
}
.nx-row-go {
    width: 30px; height: 30px; display: grid; place-items: center; flex: none;
    border-radius: 50%; border: 1px solid var(--nx-line); background: var(--nx-panel-2); color: var(--nx-teal-strong);
    transition: background .22s var(--nx-ease), color .22s, transform .22s var(--nx-ease), border-color .22s;
}
.nx-row:hover .nx-row-go { transform: translateX(3px); background: var(--nx-teal); border-color: var(--nx-teal); color: #fff; }

/* ════════════════════════════════════════════════════════════════════════
   4/6 · CARTES SERVICES (best-sellers + nouveautés)
   ══════════════════════════════════════════════════════════════════════ */
.nx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nx-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    border-radius: 18px; border: 1px solid var(--nx-line); background: var(--nx-panel);
    color: var(--nx-ink); text-decoration: none; box-shadow: var(--nx-shadow-sm);
    transition: transform .32s var(--nx-ease), box-shadow .32s var(--nx-ease), border-color .32s;
}
.nx-card:hover { transform: translateY(-6px); box-shadow: var(--nx-shadow-lg); border-color: color-mix(in srgb, var(--nx-teal) 35%, var(--nx-line)); color: var(--nx-ink); text-decoration: none; }

/* Mode clair : les cartes se détachent nettement du fond porcelaine —
   hairline encrée + ombre d'élévation douce en deux couches (teinte navy).
   Le sombre garde ses valeurs d'origine (surcharge explicite plus bas). */
.nx-card, .nx-cat, .nx-review {
    border-color: color-mix(in srgb, var(--ink) 14%, transparent);
    box-shadow: 0 1px 2px rgba(9, 30, 50, .05), 0 10px 26px rgba(9, 30, 50, .08);
}
.nx-collection { box-shadow: 0 1px 2px rgba(9, 30, 50, .05), 0 10px 26px rgba(9, 30, 50, .08); }
[data-theme="dark"] .nx-card,
[data-theme="dark"] .nx-cat,
[data-theme="dark"] .nx-review {
    border-color: var(--nx-line);
    box-shadow: var(--nx-shadow-sm);
}
[data-theme="dark"] .nx-collection { box-shadow: var(--nx-shadow-sm); }

.nx-card-media {
    position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; padding: 14px;
    background:
        radial-gradient(90% 90% at 50% 8%, var(--nx-brand-soft), transparent 60%),
        var(--nx-panel-2);
    border-bottom: 1px solid var(--nx-line-soft);
    color: var(--nx-teal);
}
/* plaque produit : visuel arrondi, liseré hairline, ombre douce — surface
   calme et identique sur toutes les cartes (le fond ne rivalise jamais) */
.nx-card-media img {
    position: relative; max-width: 84%; max-height: 78%; width: auto; height: auto; object-fit: contain;
    display: block; border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--nx-ink) 9%, transparent);
    box-shadow: 0 6px 18px rgba(7, 26, 32, .1);
    transition: transform .5s var(--nx-ease), box-shadow .5s var(--nx-ease);
}
[data-theme="dark"] .nx-card-media img { border-color: rgba(255, 255, 255, .1); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.nx-card:hover .nx-card-media img { transform: scale(1.03) translateY(-2px); box-shadow: 0 12px 26px rgba(7, 26, 32, .16); }
.nx-card-media svg { width: 40px; height: 40px; opacity: .75; }

.nx-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 13px; flex: 1; }
.nx-card-group { color: var(--nx-muted); font-size: var(--nx-text-label); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-card h3 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    margin: 0; min-height: 2.7em;
    font-family: var(--nx-font-head); font-size: var(--nx-text-service); font-weight: 650; line-height: 1.35; letter-spacing: 0;
    color: var(--nx-ink-strong); overflow-wrap: anywhere; text-wrap: pretty;
}
/* prix + délai ancrés en bas de carte, jamais tronqués : la rangée passe à la
   ligne quand la place manque au lieu de couper le montant */
.nx-card-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 8px;
    margin-top: auto; padding-top: 11px; border-top: 1px solid var(--nx-line-soft); min-width: 0;
}
.nx-card-meta .nx-delay { max-width: 100%; }
.nx-card-price {
    display: inline-flex; align-items: center;
    min-height: 28px; padding: 3px 11px; border-radius: 999px;
    background: var(--nx-brand-soft); border: 1px solid color-mix(in srgb, var(--nx-teal) 24%, transparent);
    font-family: var(--nx-font-mono); font-size: var(--nx-text-meta); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums;
    color: var(--nx-teal-strong); white-space: nowrap;
}
[data-theme="dark"] .nx-card-price { color: var(--nx-teal-bright); }
/* Prix réservé aux membres : pastille compacte et neutre (cadenas + « Prix membre »),
   la phrase complète reste au survol (title) et sur la page de commande — fini le
   texte long tronqué ou qui déborde sur toutes les cartes. Le doublon de classe
   garde la priorité sur les règles de thème sombre. */
.nx-price.nx-price--locked, .nx-card-price.nx-card-price--locked {
    gap: 5px; background: var(--nx-panel-2); border-color: var(--nx-line);
    font-family: var(--nx-font-body); font-size: .75rem; font-weight: 650; letter-spacing: .01em;
    color: var(--nx-muted);
}
.nx-price.nx-price--locked svg, .nx-card-price.nx-card-price--locked svg { flex: none; opacity: .75; }

.nx-card-go {
    position: absolute; right: 12px; top: 12px;
    width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 50%; background: var(--nx-teal); color: #fff;
    opacity: 0; transform: translateY(6px);
    transition: opacity .28s var(--nx-ease), transform .28s var(--nx-ease);
}
.nx-card:hover .nx-card-go { opacity: 1; transform: none; }
@media (hover: none) { .nx-card-go { display: none; } }

.nx-rank {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    min-width: 30px; height: 30px; padding: 0 9px; display: grid; place-items: center;
    border-radius: 10px; font-family: var(--nx-font-head); font-weight: 700; font-size: .8125rem;
    color: #33270a; background: linear-gradient(135deg, #ffe19a, var(--nx-gold) 70%);
    box-shadow: 0 6px 16px rgba(242, 180, 28, .45);
}
.nx-rank.r2 { background: linear-gradient(135deg, #f3f6f8, #b9c6cd); color: #24313a; box-shadow: 0 6px 16px rgba(105, 125, 138, .35); }
.nx-rank.r3 { background: linear-gradient(135deg, #f0c9a6, #c98a4b); color: #3d2408; box-shadow: 0 6px 16px rgba(201, 138, 75, .4); }
.nx-rank.r4 { background: var(--nx-panel); border: 1px solid var(--nx-line); color: var(--nx-muted); box-shadow: var(--nx-shadow-sm); }

.nx-empty {
    grid-column: 1 / -1; padding: 26px; border-radius: var(--nx-r-md);
    border: 1px dashed var(--nx-line); background: var(--nx-panel-2);
    color: var(--nx-muted); font-size: 14px; text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════
   5 · CATALOGUES (bento 4 types)
   ══════════════════════════════════════════════════════════════════════ */
.nx-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.nx-cat {
    --acc: var(--nx-teal); --acc-soft: var(--nx-brand-soft);
    position: relative; display: flex; flex-direction: column; gap: 11px; min-height: 178px;
    padding: 20px; border-radius: var(--nx-r-md); overflow: hidden;
    border: 1px solid var(--nx-line); background: var(--nx-panel); box-shadow: var(--nx-shadow-sm);
    color: var(--nx-ink); text-decoration: none;
    transition: transform .3s var(--nx-ease), box-shadow .3s var(--nx-ease), border-color .3s;
}
.nx-cat[data-acc="indigo"] { --acc: var(--nx-indigo); --acc-soft: rgba(99, 102, 241, .1); }
.nx-cat[data-acc="amber"] { --acc: var(--nx-amber); --acc-soft: rgba(245, 158, 11, .12); }
.nx-cat[data-acc="rose"] { --acc: var(--nx-rose); --acc-soft: rgba(244, 63, 94, .1); }
.nx-cat::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s var(--nx-ease);
    background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 55%);
}
.nx-cat:hover { transform: translateY(-5px); box-shadow: var(--nx-shadow-md); border-color: color-mix(in srgb, var(--acc) 45%, var(--nx-line)); color: var(--nx-ink); text-decoration: none; }
.nx-cat:hover::before { opacity: 1; }
.nx-cat > * { position: relative; }
.nx-cat-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--acc-soft); color: var(--acc); transition: transform .3s var(--nx-ease); }
.nx-cat:hover .nx-cat-ico { transform: scale(1.06) rotate(-3deg); }
.nx-cat b { font-family: var(--nx-font-head); font-size: var(--nx-text-service); font-weight: 650; line-height: 1.3; color: var(--nx-ink-strong); }
.nx-cat-sub { font-size: var(--nx-text-meta); font-weight: 450; line-height: 1.55; color: var(--nx-muted); text-wrap: pretty; }
.nx-cat-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--nx-font-head); font-size: .8125rem; font-weight: 650; color: var(--acc); }
.nx-cat-go svg { transition: transform .28s var(--nx-ease); }
.nx-cat:hover .nx-cat-go svg { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════════════════════
   7 · AVIS
   ══════════════════════════════════════════════════════════════════════ */
.nx-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nx-review {
    position: relative; display: flex; flex-direction: column; gap: 11px; padding: 18px 20px;
    border-radius: var(--nx-r-lg); border: 1px solid var(--nx-line); background: var(--nx-panel);
    box-shadow: var(--nx-shadow-sm);
    transition: transform .3s var(--nx-ease), box-shadow .3s var(--nx-ease);
}
.nx-review::before {
    content: "\201C"; position: absolute; top: -6px; right: 14px;
    font-family: Georgia, serif; font-size: 110px; line-height: 1; color: var(--nx-teal); opacity: .08;
    pointer-events: none;
}
.nx-review:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow-md); }
.nx-stars { display: inline-flex; gap: 3px; color: var(--nx-gold); }
.nx-stars svg { width: 15px; height: 15px; }
.nx-review p { margin: 0; color: var(--nx-ink); font-size: 14.5px; line-height: 1.65; }
.nx-reviewer { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 4px; }
.nx-avatar {
    width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%;
    color: #fff; font-family: var(--nx-font-head); font-weight: 700; font-size: 15px;
    box-shadow: 0 0 0 2px var(--nx-panel), 0 0 0 4px color-mix(in srgb, var(--nx-teal) 35%, transparent);
}
.nx-reviewer-id { min-width: 0; display: grid; }
.nx-reviewer-id b { font-family: var(--nx-font-head); font-size: 13.5px; font-weight: 700; color: var(--nx-ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-reviewer-id small { font-size: 12px; color: var(--nx-muted); }
.nx-verified { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(15, 157, 108, .1); color: var(--nx-ok); font-size: 11px; font-weight: 750; }
[data-theme="dark"] .nx-verified { color: #43dfa8; }

/* ════════════════════════════════════════════════════════════════════════
   Perf : les sections sous la ligne de flottaison ne se calculent qu'à l'approche
   ══════════════════════════════════════════════════════════════════════ */
.nx-below { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ════════════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1120px) {
    .nx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nx-collections > :nth-child(3):last-child { grid-column: 1 / -1; width: calc((100% - 22px) / 2); justify-self: center; }
}

@media (max-width: 960px) {
    .nx-hero { padding-top: 18px; }
    .nx-hero-grid { grid-template-columns: 1fr; gap: 20px; }
    .nx-hero-visual { order: -1; max-width: 640px; width: 100%; margin-inline: auto; }
    .nx-hero-copy { max-width: none; }
    .nx-reviews { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}

@media (max-width: 760px) {
    .nx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .nx-collections { grid-template-columns: 1fr; gap: 16px; }
    .nx-collections > :nth-child(3):last-child { grid-column: auto; width: 100%; }
    .nx-head-row { flex-direction: column; align-items: stretch; }
    .nx-link-btn { justify-content: center; }
}

@media (max-width: 560px) {
    .nx-hero h1 { font-size: clamp(29px, 8.6vw, 38px); }
    .nx-hero-cta { flex-direction: column; align-items: stretch; }
    .nx-btn { width: 100%; }

    /* drapeaux : défilement manuel + snap, chips plus contrastées */
    .nx-flags-track { overflow-x: auto; padding-bottom: 8px; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; scroll-snap-type: x proximity; }
    .nx-flags-track::-webkit-scrollbar { display: none; }
    .nx-flag { scroll-snap-align: start; background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .22); }

    .nx-hpay { height: 36px; font-size: 12px; padding: 0 11px 0 8px; }

    .nx-card h3 { font-size: .9375rem; min-height: 4.05em; -webkit-line-clamp: 3; }
    .nx-card-media { padding: 12px; }
    .nx-card-body { padding: 12px 13px 14px; }
    .nx-card-price { font-size: .8125rem; }
    .nx-cats { grid-template-columns: 1fr; }
    .nx-cat { min-height: 0; }
}

@media (max-width: 380px) {
    .nx-cards { grid-template-columns: 1fr; }
}

/* Mobiles modestes : les orbes floutées animées coûtent cher — le dégradé suffit. */
@media (max-width: 700px) {
    .nx-orb { display: none; }
    .nx-africa { opacity: .08; }
}

/* ── Reduced motion : tout reste lisible, rien ne bouge ─────────────────── */
@media (prefers-reduced-motion: reduce) {
    .nx-orb, .nx-flags-row, .nx-dots button i::after,
    .nx-btn-gold::after { animation: none !important; }
    .nx-slider, .nx-btn, .nx-card, .nx-collection, .nx-cat, .nx-review,
    .nx-row, .nx-row-go, .nx-link-btn, .nx-pay, .nx-card-media img,
    .nx-collection-banner img, .nx-cat-ico, .nx-card-go { transition: none !important; }
    .nx-flags-track { overflow-x: auto; }
    .nx-dots button[aria-current="true"] i { background: #fff; }
}
