/* ===================== NovaShop — Feuille de style ===================== */
:root {
  --bg: #0e1116;
  --bg-soft: #161b22;
  --card: #1b222c;
  --border: #2a3340;
  --text: #e6edf3;
  --muted: #8b98a9;
  --brand: #635bff;
  --brand-2: #00c2a8;
  --danger: #ff5c7a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- Layout ---- */
.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 64px 0; }
.section-sm { padding: 36px 0; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.5px; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -12px;
  background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
}

/* ---- Hero ---- */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(99,91,255,.25), transparent),
    radial-gradient(700px 400px at 0% 20%, rgba(0,194,168,.15), transparent);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -1px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.hero .row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .1s, background .15s, border .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #7169ff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-block { width: 100%; }

/* ---- Sections titres ---- */
.section-title { font-size: 1.8rem; margin: 0 0 6px; letter-spacing: -.5px; }
.section-sub { color: var(--muted); margin: 0 0 32px; }

/* ---- Grille produits ---- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .15s, border .15s;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card-media {
  display: grid; place-items: center; font-size: 3.4rem; height: 150px;
  background: linear-gradient(135deg, #202836, #161b22);
}
.card-body { padding: 16px; }
.card-body h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.tag {
  display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px;
  color: var(--brand-2); background: rgba(0,194,168,.12); padding: 3px 9px; border-radius: 999px;
}
.price { font-weight: 700; font-size: 1.1rem; margin: 6px 0 14px; }
.price-lg { font-size: 1.6rem; }

/* ---- Page produit ---- */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.product-media {
  font-size: 8rem; display: grid; place-items: center; height: 340px;
  background: linear-gradient(135deg, #202836, #161b22);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.product-info h1 { margin: 10px 0; font-size: 2.2rem; }
.product-info .row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---- Panier ---- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--border); }
.cart-table th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.link-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: .9rem; }
.cart-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; flex-wrap: wrap; gap: 16px; }
.cart-total { font-size: 1.25rem; }

/* ---- Récap commande ---- */
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sum-total { font-weight: 700; font-size: 1.2rem; border-bottom: none; margin-top: 8px; }

/* ---- Formulaires ---- */
.form-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.check input { width: auto; }

/* ---- Layout 2 colonnes (contenu + aside) ---- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }

/* ---- Bandeau features ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.feature { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .ico { font-size: 1.8rem; }
.feature h4 { margin: 10px 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---- Message succès / merci ---- */
.thanks { text-align: center; padding: 80px 0; }
.thanks .check-big {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
  background: rgba(0,194,168,.15); color: var(--brand-2);
  display: grid; place-items: center; font-size: 2.4rem;
}
.order-ref { display: inline-block; margin-top: 12px; padding: 8px 16px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); }

/* ---- Utils ---- */
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: .9rem; }
.site-footer .nav { flex-wrap: wrap; gap: 12px; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: #fff; color: #111; padding: 12px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transition: all .3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Panneau debug Pixel ---- */
#pixel-debug {
  position: fixed; right: 18px; bottom: 18px; width: 340px; max-height: 60vh;
  background: #0b0e13; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 300; font-size: .8rem; overflow: hidden;
  display: flex; flex-direction: column;
}
#pixel-debug.collapsed .pd-body { display: none; }
.pd-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #12161d; border-bottom: 1px solid var(--border); }
.pd-head strong { font-size: .82rem; }
.pd-dot { width: 9px; height: 9px; border-radius: 50%; }
.pd-dot.on { background: #2ec07a; box-shadow: 0 0 8px #2ec07a; }
.pd-dot.off { background: var(--danger); }
.pd-id { margin-left: auto; color: var(--muted); font-size: .72rem; }
.pd-toggle { background: none; border: 1px solid var(--border); color: var(--muted); width: 24px; height: 24px; border-radius: 6px; cursor: pointer; }
.pd-body { overflow-y: auto; }
#pd-list { list-style: none; margin: 0; padding: 6px 0; }
#pd-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #171c24; flex-wrap: wrap; }
.pd-badge { font-size: .62rem; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.pd-badge.standard { background: rgba(99,91,255,.18); color: #9a94ff; }
.pd-badge.custom { background: rgba(0,194,168,.18); color: var(--brand-2); }
.pd-name { font-weight: 600; }
.pd-time { margin-left: auto; color: var(--muted); font-size: .7rem; }
.pd-params { width: 100%; color: var(--muted); font-size: .7rem; word-break: break-all; font-family: ui-monospace, monospace; }

/* ---- Hero lead-gen (2 colonnes : accroche + formulaire) ---- */
.hero-lead { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-lead .badge-trust { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,194,168,.12); color: var(--brand-2); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px; }
.hero-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.hero-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.hero-card .form-note { color: var(--muted); font-size: .85rem; margin: 0 0 20px; }

/* ---- Liste à puces avec check ---- */
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.check-list li::before { content: "✓"; color: var(--brand-2); font-weight: 800; }

/* ---- Bandeau de confiance (logos / chiffres) ---- */
.trust-bar { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-bar .stat { text-align: center; }
.trust-bar .stat b { display: block; font-size: 1.8rem; color: var(--text); }
.trust-bar .stat span { color: var(--muted); font-size: .85rem; }

/* ---- Étapes "comment ça marche" ---- */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: step; }
.step-item { position: relative; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step-item::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.step-item h4 { margin: 12px 0 6px; }
.step-item p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---- Témoignages ---- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.quote .stars { color: #ffc542; margin-bottom: 10px; }
.quote p { margin: 0 0 16px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-weight: 700; color: #fff; }
.quote .who small { color: var(--muted); }

/* ---- FAQ ---- */
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; background: var(--bg-soft); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* ---- Section CTA finale ---- */
.cta-band { background: linear-gradient(135deg, rgba(99,91,255,.18), rgba(0,194,168,.12)); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-band h2 { margin: 0 0 10px; font-size: 1.9rem; }
.cta-band p { color: var(--muted); margin: 0 0 24px; }

/* ---- Formulaire multi-étapes ---- */
.progress-track { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.progress-bar { height: 100%; width: 33%; background: var(--brand); transition: width .3s; }
.step[hidden] { display: none; }
.step h3 { margin-top: 0; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 18px 12px; text-align: center; cursor: pointer; transition: .15s; }
.choice input:checked + span { border-color: var(--brand); background: rgba(99,91,255,.12); }

/* ---- Bandeau CTA fixe (mobile) ---- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 10px; padding: 12px; background: rgba(14,17,22,.95); border-top: 1px solid var(--border); backdrop-filter: blur(8px); }
.sticky-cta .btn { flex: 1; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-lead, .two-col { grid-template-columns: 1fr; }
  .hero-lead .hero-card { order: -1; }
}
@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; font-size: .88rem; }
  .nav-links .hide-mobile { display: none; }
  #pixel-debug { width: calc(100% - 24px); right: 12px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
  .cta-band { padding: 32px 20px; }
}
