/* ==========================================================================
   NexoCash — identité visuelle (surcouche du thème Tailwind compilé)
   Chargée APRES le CSS Vite : redéfinit les variables de couleur, les polices,
   les rayons et retire les effets décoratifs génériques (dégradés, halos, blobs).
   Palette issue du logo : marine #0B2541, émeraude #12B886, bleu #0D5B8C,
   accent soleil #FFD166, papier #F6F4EF.
   ========================================================================== */

:root:not(.theme-legacy) {
  --c-white: 11 37 65;
  --c-ink-950: 246 244 239;
  --c-ink-900: 255 255 255;
  --c-ink-850: 251 250 247;
  --c-ink-800: 238 235 227;
  --c-ink-700: 226 222 211;

  --c-emerald-300: 74 201 150;
  --c-emerald-400: 26 168 112;
  --c-emerald-500: 18 160 104;
  --c-emerald-600: 10 122 80;

  --c-azure-50: 233 246 240;
  --c-azure-100: 214 239 228;
  --c-azure-300: 120 210 172;
  --c-azure-400: 31 170 122;
  --c-azure-500: 13 140 101;
  --c-azure-600: 9 112 81;
  --c-azure-700: 7 88 64;

  --c-text-hi: 11 37 65;
  --c-text-mid: 72 87 106;
  --c-text-dim: 128 138 150;

  --c-danger: 200 54 46;
  --c-warning: 196 122 0;

  --c-k1: 11 37 65;
  --c-k2: 11 37 65;

  --bg-radial: none;
  --shadow-glass: 0 1px 0 rgba(11, 37, 65, 0.04);
  --shadow-glow: none;

  --font-display: "Bricolage Grotesque";
  --font-sans: "Manrope";
  --font-mono: "Manrope";

  --nx-navy: #0B2541;
  --nx-navy-2: #10304F;
  --nx-deep: #071A2E;
  --nx-green: #12B886;
  --nx-green-d: #0D8C65;
  --nx-blue: #0D5B8C;
  --nx-sun: #FFD166;
  --nx-paper: #F6F4EF;
  --nx-line: #E3DFD5;
}

.theme-legacy { --font-display: "Bricolage Grotesque"; --font-sans: "Manrope"; }

body { letter-spacing: -0.005em; }
h1, h2, h3, .font-display { letter-spacing: -0.02em; }

/* ---------- Bandeaux sombres : marine uni + trame fine, sans halos ---------- */
:root:not(.theme-legacy) .bg-hero {
  background-color: var(--nx-navy);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
}
:root:not(.theme-legacy) .bg-night-900 { background-color: var(--nx-deep); }
:root:not(.theme-legacy) .bg-night-800 { background-color: var(--nx-navy); }
:root:not(.theme-legacy) .bg-night-700,
:root:not(.theme-legacy) .bg-night-600 { background-color: var(--nx-navy-2); }
:root:not(.theme-legacy) .text-night-800,
:root:not(.theme-legacy) .text-night-900 { color: var(--nx-navy); }

/* Bulles décoratives et flous : supprimés */
.bg-hero > .pointer-events-none.rounded-full,
header.bg-hero > .pointer-events-none.rounded-full,
aside.bg-hero > .pointer-events-none.rounded-full,
footer > .pointer-events-none.rounded-full,
.blur-3xl.pointer-events-none { display: none !important; }

/* ---------- Rayons plus sobres ---------- */
:root:not(.theme-legacy) .rounded-4xl { border-radius: 1.25rem; }
:root:not(.theme-legacy) .rounded-t-4xl { border-top-left-radius: 1.25rem; border-top-right-radius: 1.25rem; }
:root:not(.theme-legacy) .rounded-3xl { border-radius: 1rem; }
:root:not(.theme-legacy) .rounded-2xl { border-radius: .75rem; }
:root:not(.theme-legacy) .rounded-\[2rem\],
:root:not(.theme-legacy) .rounded-\[2\.5rem\] { border-radius: 1.25rem; }
:root:not(.theme-legacy) .rounded-t-\[2\.5rem\] { border-top-left-radius: 1.25rem; border-top-right-radius: 1.25rem; }

/* ---------- Cartes : bordure nette, ombre quasi nulle ---------- */
:root:not(.theme-legacy) .glass-card,
:root:not(.theme-legacy) .glass-panel {
  border-radius: 14px;
  border: 1px solid var(--nx-line);
  box-shadow: 0 1px 0 rgba(11, 37, 65, .03);
}
:root:not(.theme-legacy) .shadow-card { box-shadow: 0 1px 0 rgba(11,37,65,.04); }
:root:not(.theme-legacy) .shadow-float { box-shadow: 0 10px 30px -12px rgba(11,37,65,.28); }
:root:not(.theme-legacy) .shadow-glow-azure,
:root:not(.theme-legacy) .shadow-glow-emerald { box-shadow: none; }
:root:not(.theme-legacy) .hover\:shadow-float:hover { box-shadow: 0 0 0 1px var(--nx-navy); }
:root:not(.theme-legacy) .hover\:-translate-y-0\.5:hover { transform: none; }

/* ---------- Boutons ---------- */
:root:not(.theme-legacy) .btn-primary {
  border-radius: 10px;
  background: var(--nx-navy);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.25);
  font-weight: 700;
}
:root:not(.theme-legacy) .btn-primary:hover { background: var(--nx-navy-2); filter: none; }
:root:not(.theme-legacy) .btn-ghost,
:root:not(.theme-legacy) .btn-secondary,
:root:not(.theme-legacy) .btn-danger { border-radius: 10px; }
:root:not(.theme-legacy) .btn-ghost { border-color: var(--nx-line); }
:root:not(.theme-legacy) .btn-ghost:hover { border-color: var(--nx-navy); background: #fff; }

:root:not(.theme-legacy) .field-input {
  border-radius: 10px;
  border-color: var(--nx-line);
  background: #fff;
}
:root:not(.theme-legacy) .field-input:focus { border-color: var(--nx-navy); box-shadow: 0 0 0 3px rgba(18,184,134,.18); }

/* Navigation latérale : barre d'accent au lieu d'une pastille brillante */
:root:not(.theme-legacy) .nav-item { border-radius: 8px; }
:root:not(.theme-legacy) .nav-item.is-active {
  background: var(--nx-navy);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--nx-green);
}
:root:not(.theme-legacy) .bg-kouran { background-image: none; background-color: var(--nx-navy); }

/* Les montants et badges */
:root:not(.theme-legacy) .badge-currency { border-radius: 6px; }
:root:not(.theme-legacy) .text-azure-300 { color: var(--nx-green); }

/* ==========================================================================
   Logo (composant x-brand-logo)
   ========================================================================== */
.nx-brand { display: inline-flex; align-items: center; gap: .6rem; line-height: 1; }
.nx-brand__mark { display: block; border-radius: 26%; flex-shrink: 0; }
.nx-brand__word { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -0.035em; }
.nx-brand--dark .nx-brand__word { color: var(--nx-navy); }
.nx-brand--light .nx-brand__word { color: #fff; }
.nx-brand__cash { color: var(--nx-green); }
.nx-brand__tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .4rem; border-radius: 4px; border: 1px solid currentColor; opacity: .6;
}
.nx-brand--light .nx-brand__tag { color: #fff; }
.nx-brand--dark .nx-brand__tag { color: var(--nx-navy); }

/* ==========================================================================
   Page d'accueil
   ========================================================================== */
.nx-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 640px) { .nx-wrap { padding: 0 2rem; } }

.nx-hero { background: var(--nx-navy); color: #fff; position: relative; overflow: hidden; }
.nx-hero__grid { display: grid; gap: 3rem; padding: 2.5rem 0 4.5rem; align-items: center; }
@media (min-width: 1024px) { .nx-hero__grid { grid-template-columns: 1.1fr .9fr; padding: 4rem 0 6rem; } }
.nx-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-sun);
}
.nx-kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.nx-hero h1 {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: .98; letter-spacing: -0.04em; margin: 1.1rem 0 1.4rem;
}
.nx-hero h1 em { font-style: normal; color: var(--nx-green); }
.nx-hero__lead { color: rgba(255,255,255,.72); font-size: 1.08rem; line-height: 1.65; max-width: 34rem; }
.nx-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.nx-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.35rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem; transition: background-color .15s, color .15s, border-color .15s;
}
.nx-btn--green { background: var(--nx-green); color: var(--nx-deep); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.nx-btn--green:hover { background: #22c995; }
.nx-btn--line { border: 1.5px solid rgba(255,255,255,.28); color: #fff; }
.nx-btn--line:hover { border-color: #fff; }
.nx-btn--navy { background: var(--nx-navy); color: #fff; }
.nx-btn--navy:hover { background: var(--nx-navy-2); }
.nx-hero__facts { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.nx-hero__facts dt { font-size: .75rem; color: rgba(255,255,255,.55); }
.nx-hero__facts dd { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.35rem; margin-top: .15rem; }

/* Reçu de transaction (visuel du hero) */
.nx-receipt {
  position: relative; background: #fff; color: var(--nx-navy); border-radius: 14px; padding: 1.5rem;
  max-width: 360px; margin: 0 auto; transform: rotate(-1.5deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
.nx-receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px;
  background: radial-gradient(circle at 8px -2px, transparent 8px, #fff 8.5px) 0 0 / 16px 12px repeat-x;
}
.nx-receipt__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1.5px dashed var(--nx-line); }
.nx-receipt__status { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--nx-green-d); background: #E3F6EE; padding: .3rem .55rem; border-radius: 6px; }
.nx-receipt__amount { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2.3rem; letter-spacing: -0.03em; margin: 1.1rem 0 .2rem; }
.nx-receipt__amount small { font-size: 1rem; color: #8A94A1; font-weight: 600; margin-left: .3rem; }
.nx-receipt__row { display: flex; justify-content: space-between; font-size: .85rem; padding: .55rem 0; border-bottom: 1px solid #F0EDE6; }
.nx-receipt__row span:first-child { color: #7A8593; }
.nx-receipt__row span:last-child { font-weight: 700; }
.nx-receipt__stamp {
  position: absolute; right: -12px; top: -14px; transform: rotate(7deg);
  background: var(--nx-sun); color: var(--nx-deep); font-weight: 800; font-size: .78rem;
  padding: .55rem .8rem; border-radius: 8px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
}

/* Bande des moyens de paiement */
.nx-rail { background: var(--nx-deep); color: rgba(255,255,255,.6); font-size: .85rem; }
.nx-rail .nx-wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; padding-top: 1rem; padding-bottom: 1rem; }
.nx-rail strong { color: #fff; font-weight: 700; }

/* Sections */
.nx-section { padding: 5rem 0; }
.nx-section--paper { background: var(--nx-paper); }
.nx-section--white { background: #fff; border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); }
.nx-h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.035em; color: var(--nx-navy); }
.nx-sub { color: #48576A; font-size: 1.02rem; line-height: 1.65; max-width: 36rem; margin-top: .9rem; }
.nx-split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .nx-split { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }

.nx-list { border-top: 1.5px solid var(--nx-navy); }
.nx-list__item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--nx-line); }
@media (min-width: 640px) { .nx-list__item { grid-template-columns: 3rem 14rem 1fr; } }
.nx-list__num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; color: var(--nx-green-d); font-size: .95rem; padding-top: .15rem; }
.nx-list__title { font-weight: 800; color: var(--nx-navy); font-size: 1.05rem; }
.nx-list__text { color: #48576A; line-height: 1.6; font-size: .95rem; grid-column: 2; }
@media (min-width: 640px) { .nx-list__text { grid-column: auto; } }

.nx-steps { display: grid; gap: 1px; background: var(--nx-line); border: 1px solid var(--nx-line); border-radius: 14px; overflow: hidden; margin-top: 3rem; }
@media (min-width: 768px) { .nx-steps { grid-template-columns: repeat(3, 1fr); } }
.nx-step { background: #fff; padding: 1.75rem; }
.nx-step__n { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 6px; background: var(--nx-navy); color: #fff; font-weight: 800; font-size: .9rem; }
.nx-step h3 { font-weight: 800; color: var(--nx-navy); margin: 1rem 0 .4rem; font-family: "Manrope", sans-serif; letter-spacing: -0.01em; }
.nx-step p { color: #48576A; font-size: .93rem; line-height: 1.6; }

.nx-trust { background: var(--nx-navy); color: #fff; border-radius: 16px; padding: 2.5rem; display: grid; gap: 2rem; }
@media (min-width: 900px) { .nx-trust { grid-template-columns: 1fr 1fr; padding: 3.5rem; } }
.nx-trust .nx-h2 { color: #fff; }
.nx-trust ul { display: grid; gap: 1.1rem; }
.nx-trust li { display: flex; gap: .9rem; color: rgba(255,255,255,.75); line-height: 1.55; font-size: .95rem; }
.nx-trust li strong { color: #fff; display: block; }
.nx-tick { flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--nx-green); color: var(--nx-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: .8rem; margin-top: .1rem; }

.nx-cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding: 2.5rem 0; }

/* ==========================================================================
   Assistant NexoCash (widget de discussion)
   ========================================================================== */
.nxa-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--nx-navy); color: #fff; border: 0; cursor: pointer;
  padding: .7rem 1rem .7rem .75rem; border-radius: 999px; font: 700 .9rem "Manrope", sans-serif;
  box-shadow: 0 12px 28px -10px rgba(11,37,65,.6);
}
.nxa-launch:hover { background: var(--nx-navy-2); }
.nxa-launch__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--nx-green); color: var(--nx-deep); display: inline-flex; align-items: center; justify-content: center; }
.nxa-launch[aria-expanded="true"] { display: none; }
body.has-bottom-nav .nxa-launch { bottom: 96px; }
@media (min-width: 1024px) { body.has-bottom-nav .nxa-launch { bottom: 18px; } }

.nxa-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 61;
  width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 36px));
  background: #fff; border: 1px solid var(--nx-line); border-radius: 16px; overflow: hidden;
  display: none; flex-direction: column; font-family: "Manrope", sans-serif; color: var(--nx-navy);
  box-shadow: 0 24px 60px -18px rgba(11,37,65,.45);
}
.nxa-panel.is-open { display: flex; }
@media (max-width: 480px) { .nxa-panel { right: 12px; left: 12px; bottom: 12px; width: auto; height: calc(100vh - 24px); } }
.nxa-head { background: var(--nx-navy); color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .7rem; }
.nxa-head img { width: 34px; height: 34px; border-radius: 9px; }
.nxa-head__t { font-weight: 800; font-size: .95rem; line-height: 1.2; }
.nxa-head__s { font-size: .74rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .35rem; }
.nxa-head__s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nx-green); }
.nxa-close { margin-left: auto; background: transparent; border: 0; color: #fff; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; font-size: 1.3rem; line-height: 1; }
.nxa-close:hover { background: rgba(255,255,255,.1); }
.nxa-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--nx-paper); display: flex; flex-direction: column; gap: .6rem; }
.nxa-msg { max-width: 86%; padding: .65rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.nxa-msg--bot { background: #fff; border: 1px solid var(--nx-line); border-top-left-radius: 4px; align-self: flex-start; }
.nxa-msg--me { background: var(--nx-navy); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.nxa-msg a { color: var(--nx-green-d); font-weight: 700; text-decoration: underline; }
.nxa-msg--me a { color: var(--nx-sun); }
.nxa-typing { display: inline-flex; gap: 4px; }
.nxa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA4B0; animation: nxa-b 1s infinite ease-in-out; }
.nxa-typing i:nth-child(2) { animation-delay: .15s; } .nxa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nxa-b { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.nxa-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .2rem 0 .3rem; }
.nxa-chip { border: 1px solid var(--nx-line); background: #fff; color: var(--nx-navy); border-radius: 999px; padding: .4rem .7rem; font: 600 .8rem "Manrope", sans-serif; cursor: pointer; }
.nxa-chip:hover { border-color: var(--nx-navy); }
.nxa-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--nx-line); background: #fff; }
.nxa-input { flex: 1; border: 1px solid var(--nx-line); border-radius: 10px; padding: .65rem .8rem; font: 500 .9rem "Manrope", sans-serif; color: var(--nx-navy); resize: none; max-height: 110px; outline: none; }
.nxa-input:focus { border-color: var(--nx-navy); box-shadow: 0 0 0 3px rgba(18,184,134,.18); }
.nxa-send { background: var(--nx-green); color: var(--nx-deep); border: 0; border-radius: 10px; width: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nxa-send:disabled { opacity: .5; cursor: default; }
.nxa-foot { font-size: .7rem; color: #8A94A1; text-align: center; padding: 0 .7rem .6rem; background: #fff; }

@media (prefers-reduced-motion: reduce) { .nx-receipt { transform: none; } .nxa-typing i { animation: none; } }

/* Utilitaires absents du CSS compile */
.mt-7 { margin-top: 1.75rem; }
.mt-10 { margin-top: 2.5rem; }
.bg-ink-850 { background-color: rgb(var(--c-ink-850)); }
@media (min-width: 640px) { .sm\:p-7 { padding: 1.75rem; } }
