/* ================================================================
   NIMXUS BOUTIQUE — thème CLAIR par défaut (style marketplace)
   Inspiration Amazon / AliExpress : blanc, cartes nettes, accents
   cyan/vert + orange « deal », motion. Dark en option (data-theme).
   ================================================================ */
:root {
  --bg:        #f2f5fa;   /* page */
  --bg2:       #ffffff;   /* surfaces / panneaux */
  --surface:   #ffffff;
  --cyan:      #0092b8;   /* accent marque, lisible sur blanc */
  --cyan-d:    #00728f;
  --cyan-dim:  rgba(0,146,184,0.10);
  --green:     #12a35f;
  --green-dim: rgba(18,163,95,0.12);
  --accent:    #ff6a2b;   /* prix / promo / livraison (vibe marketplace) */
  --accent-dim:rgba(255,106,43,0.12);
  --text:      #12222f;
  --muted:     #5c6b7a;
  --muted2:    #9aa7b4;
  --border:    rgba(0,146,184,0.40);
  --border2:   #e3e9f1;
  --danger:    #e5484d;
  --shadow:    0 10px 30px -14px rgba(20,50,80,0.28);
  --shadow-lg: 0 24px 60px -26px rgba(20,50,80,0.40);
}
html[data-theme="dark"] {
  --bg:        #020c1b;
  --bg2:       #071428;
  --surface:   #0a1a30;
  --cyan:      #00d4ff;
  --cyan-d:    #00a6cc;
  --cyan-dim:  rgba(0,212,255,0.12);
  --green:     #00ff88;
  --green-dim: rgba(0,255,136,0.12);
  --accent:    #ff8a4c;
  --accent-dim:rgba(255,138,76,0.14);
  --text:      #e2f0fb;
  --muted:     rgba(226,240,251,0.58);
  --muted2:    rgba(226,240,251,0.32);
  --border:    rgba(0,212,255,0.28);
  --border2:   rgba(0,212,255,0.10);
  --shadow:    0 12px 36px -18px rgba(0,0,0,0.7);
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Fond clair subtil (aucun bleu foncé) */
.shop-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 460px at 88% -6%, rgba(0,146,184,0.06), transparent 60%),
    radial-gradient(620px 420px at -4% 108%, rgba(18,163,95,0.05), transparent 60%),
    var(--bg);
}
html[data-theme="dark"] .shop-bg {
  background:
    radial-gradient(760px 460px at 85% -5%, rgba(0,212,255,0.10), transparent 60%),
    radial-gradient(620px 420px at 0% 100%, rgba(0,255,136,0.07), transparent 60%),
    var(--bg);
}

/* ---- Navbar (barre blanche collante, façon marketplace) ------- */
.navbar {
  position: sticky; top: 0; z-index: 9000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border2);
  box-shadow: 0 4px 20px -14px rgba(20,50,80,0.35);
}
html[data-theme="dark"] .navbar { background: rgba(4,14,28,0.9); }
.nav-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: 1px; font-size: 16px;
  color: var(--text);
}
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo small {
  font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: .5px;
  color: var(--accent); font-size: 11px; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 9px 13px; border-radius: 10px; transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan-d); background: var(--cyan-dim); }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: none; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 800; border-radius: 999px;
}

/* ---- Sections ------------------------------------------------- */
.page { padding: 34px 0 70px; }
.page-head { margin-bottom: 26px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: 2px; color: var(--cyan-d);
}
.tag::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green-dim);
}
h1.title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12;
  margin: 10px 0 12px; letter-spacing: -0.5px; color: var(--text);
}
.title .tc { color: var(--cyan-d); }
.title .tg { color: var(--green); }
.sub { color: var(--muted); max-width: 62ch; }

/* ---- Boutons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: none;
  font-size: .9rem; font-weight: 800; transition: all .22s;
}
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #fff; box-shadow: 0 10px 24px -12px rgba(0,146,184,0.7);
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(0,146,184,0.8); }
.btn-cyan:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-accent { background: linear-gradient(135deg, #ff7a34, var(--accent)); color: #fff; }
.btn-outline {
  background: var(--surface); color: var(--text); border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan-d); background: var(--cyan-dim); }
.btn-sm { padding: 9px 14px; font-size: .82rem; }
.btn-block { width: 100%; }

/* ---- HERO + BANNIÈRE LIVRAISON (scooter animé) ---------------- */
.hero-banner {
  position: relative; overflow: hidden;
  border-radius: 22px; margin-bottom: 22px;
  background: linear-gradient(120deg, #063b52 0%, #0a6b7e 55%, #0f9c6b 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.hero-banner .hb-inner {
  position: relative; z-index: 2;
  padding: 40px 34px 96px; max-width: 640px;
}
.hero-banner h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.1; margin-bottom: 12px;
}
.hero-banner h1 .hl { color: #ffd24c; }
.hero-banner p { color: rgba(255,255,255,0.9); margin-bottom: 20px; font-size: 1.02rem; }
.hb-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hb-badges span {
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
  padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(4px);
}
/* Route + scooter en bas de la bannière */
.hb-road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 1;
  background: rgba(0,0,0,0.28);
}
.hb-road::before {
  content: ''; position: absolute; top: 11px; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, #ffd24c 0 26px, transparent 26px 52px);
  animation: roadDash 0.6s linear infinite;
}
@keyframes roadDash { to { background-position: -52px 0; } }
.hb-scooter {
  position: absolute; bottom: 14px; right: 6%; z-index: 2;
  width: 190px; animation: scootBob 1.1s ease-in-out infinite;
}
@keyframes scootBob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(0.5deg); } }
.hb-scooter .sc-wheel { transform-box: fill-box; transform-origin: center; animation: wheelSpin .5s linear infinite; }
@keyframes wheelSpin { to { transform: rotate(360deg); } }
.hb-scooter .sc-fume { animation: fume 1.2s ease-out infinite; opacity: 0; }
@keyframes fume { 0% { opacity:.5; transform: translate(0,0) scale(.6);} 100% { opacity:0; transform: translate(-16px,-10px) scale(1.4);} }

/* ---- Services (livraison / paiement / support) --------------- */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 14px; margin-bottom: 26px;
}
.service {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .3s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service .ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; background: var(--cyan-dim); color: var(--cyan-d);
  font-size: 1.3rem;
}
.service strong { display: block; font-size: .92rem; }
.service span { color: var(--muted); font-size: .8rem; }

/* ---- Filtres / recherche -------------------------------------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.search {
  flex: 1; min-width: 240px; padding: 13px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); font-size: .95rem; box-shadow: var(--shadow);
}
.search::placeholder { color: var(--muted2); }
.search:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border2); color: var(--muted);
  box-shadow: var(--shadow); transition: all .2s;
}
.chip:hover { color: var(--cyan-d); border-color: var(--cyan); }
.chip.on { background: var(--cyan); border-color: var(--cyan); color: #fff; }

/* ---- Grille produits (style marketplace) --------------------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.card-img {
  position: relative; aspect-ratio: 1/1;
  background: linear-gradient(160deg, #ffffff 0%, #eef2f7 100%);
}
html[data-theme="dark"] .card-img { background: linear-gradient(160deg, #0d1f36, #071428); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card-cat {
  position: absolute; top: 10px; left: 10px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.92); color: var(--cyan-d); border: 1px solid var(--border2);
}
html[data-theme="dark"] .card-cat { background: rgba(2,12,27,0.85); }
.card-stock {
  position: absolute; bottom: 10px; right: 10px;
  font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.stock-ok  { background: var(--green-dim); color: var(--green); }
.stock-low { background: rgba(255,150,0,0.16); color: #d97e00; }
.stock-out { background: rgba(229,72,77,0.14); color: var(--danger); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.card-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .98rem; line-height: 1.25;
  color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em;
}
.card-price { font-weight: 900; color: var(--accent); font-size: 1.15rem; letter-spacing: -.5px; }
.card-ship { font-size: .74rem; color: var(--green); font-weight: 700; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }

/* ---- Page produit -------------------------------------------- */
.product-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-visual {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border2);
  background: linear-gradient(160deg, #ffffff, #eef2f7); box-shadow: var(--shadow);
}
html[data-theme="dark"] .product-visual { background: linear-gradient(160deg, #0d1f36, #071428); }
.product-visual img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 20px; }
.pd-price { font-size: 2rem; font-weight: 900; color: var(--accent); margin: 12px 0; }
.pd-desc { color: var(--muted); margin-bottom: 22px; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border2); border-radius: 12px; overflow: hidden; background: var(--surface);
}
.qty button { width: 42px; height: 44px; background: var(--bg); border: none; color: var(--cyan-d); font-size: 1.2rem; font-weight: 800; }
.qty button:hover { background: var(--cyan-dim); }
.qty input { width: 52px; height: 44px; text-align: center; background: transparent; border: none; color: var(--text); font-size: 1rem; font-weight: 800; }
.qty input:focus { outline: none; }

/* ---- Panier / récap ------------------------------------------ */
.cart-line {
  display: grid; grid-template-columns: 74px 1fr auto auto auto; gap: 16px; align-items: center;
  padding: 14px; border: 1px solid var(--border2); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); margin-bottom: 12px;
}
.cart-line img { width: 74px; height: 58px; object-fit: contain; border-radius: 10px; background: #f3f6fa; padding: 4px; }
.cart-line .rm { background: none; border: none; color: var(--muted2); font-size: 1.15rem; }
.cart-line .rm:hover { color: var(--danger); }
.totals { border: 1px solid var(--border2); border-radius: 18px; background: var(--surface); padding: 22px; box-shadow: var(--shadow); }
.totals .row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: .95rem; }
.totals .row.total { color: var(--text); font-weight: 900; font-size: 1.2rem; border-top: 1px solid var(--border2); margin-top: 8px; padding-top: 14px; }
.totals .row.total span:last-child { color: var(--accent); }

/* ---- Checkout ------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border2); color: var(--text);
  font-family: inherit; font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }
.field textarea { resize: vertical; min-height: 80px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border2); border-radius: 14px; margin-bottom: 10px;
  cursor: pointer; transition: all .2s; background: var(--surface);
}
.pay-opt:hover { border-color: var(--cyan); }
.pay-opt.on { border-color: var(--cyan); background: var(--cyan-dim); }
.pay-opt input { margin-top: 4px; accent-color: var(--cyan); }
.pay-opt strong { display: block; font-size: .95rem; }
.pay-opt span { color: var(--muted); font-size: .82rem; }
.feedback { min-height: 22px; font-size: .92rem; margin-top: 10px; }
.feedback.err { color: var(--danger); }
.feedback.ok { color: var(--green); }

/* ---- Suivi ---------------------------------------------------- */
.track-box { max-width: 620px; }
.steps { display: flex; flex-direction: column; margin: 26px 0; }
.tstep { display: flex; gap: 16px; }
.tstep .dot {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-size: .85rem; font-weight: 800; background: var(--surface); border: 2px solid var(--border2); color: var(--muted2);
}
.tstep .bar { width: 2px; flex: 1; min-height: 26px; background: var(--border2); margin: 4px auto; }
.tstep.done .dot { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.tstep.done .bar { background: var(--green); }
.tstep.now .dot { border-color: var(--cyan); color: #fff; background: linear-gradient(135deg, var(--cyan), var(--green)); box-shadow: 0 0 16px var(--cyan-dim); }
.tstep .lbl strong { display: block; }
.tstep .lbl span { color: var(--muted); font-size: .84rem; }

/* ---- Toast / divers ------------------------------------------ */
.nx-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--text); color: var(--surface);
  border-radius: 999px; padding: 12px 22px; font-size: .9rem; font-weight: 700;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .3s; z-index: 9600;
}
.nx-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--border2); border-radius: 18px; background: var(--surface); }
.notice { border: 1px solid rgba(217,126,0,0.35); background: rgba(255,150,0,0.08); color: #a35d00; border-radius: 14px; padding: 14px 18px; font-size: .88rem; margin: 18px 0; }
.skeleton { opacity: .6; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---- Marquee -------------------------------------------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2); background: var(--surface); padding: 12px 0; margin: 6px 0 26px; }
.marquee-track { display: flex; align-items: center; gap: 32px; width: max-content; animation: marqueeScroll 28s linear infinite; }
.marquee-track span { font-family: 'Syne', sans-serif; font-size: 11.5px; font-weight: 800; letter-spacing: 2px; color: var(--muted); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--accent); font-size: 11px; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ---- Footer --------------------------------------------------- */
.footer { border-top: 1px solid var(--border2); margin-top: 60px; padding: 30px 0; color: var(--muted); font-size: .85rem; background: var(--surface); }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { color: var(--cyan-d); font-weight: 600; }

/* ---- Bouton thème -------------------------------------------- */
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border2); background: var(--surface);
  color: var(--text); font-size: 1.05rem; transition: all .25s;
}
.theme-toggle:hover { border-color: var(--cyan); background: var(--cyan-dim); transform: rotate(18deg); }

/* ---- Motion --------------------------------------------------- */
.grad-animate {
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--green));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: gradShift 5s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }
.card { animation: cardIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.btn-cyan { position: relative; overflow: hidden; }
.btn-cyan::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.btn-cyan:hover::before { transform: translateX(110%); }
.cart-badge.pop { animation: badgePop .45s cubic-bezier(.2,.8,.2,1); }
@keyframes badgePop { 0%{transform:scale(1);} 45%{transform:scale(1.55);} 100%{transform:scale(1);} }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}

/* ---- Responsive ---------------------------------------------- */
@media (max-width: 860px) {
  .product-split, .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px 1fr auto; grid-template-rows: auto auto; }
  .cart-line img { width: 60px; height: 48px; }
  .nav-links a span.txt { display: none; }
  .nav-links a { padding: 8px 10px; }
  .hero-banner .hb-inner { padding: 30px 22px 90px; }
  .hb-scooter { width: 130px; right: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .grad-animate, .card, .marquee-track, .hb-road::before,
  .hb-scooter, .hb-scooter .sc-wheel, .hb-scooter .sc-fume { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-cyan::before { display: none; }
}
