/* RadarLane — pages publiques (nouveautés, boutiques) générées par scripts/pages.py */
:root { --bg: #0a100f; --panel: #121a19; --panel2: #172120; --line: #22302d; --fg: #e7f0ee; --muted: #8ea39e; --soft: #b5cbc6; --teal: #2dd4bf; --lime: #a3e635; --bad: #f87171; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1100px 420px at 30% -10%, #12302a 0%, transparent 62%), var(--bg); color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.sp-top { max-width: 72rem; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sp-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 650; font-size: 1.1rem; }
.sp-brand:hover { text-decoration: none; }
.sp-brand svg { width: 30px; height: 30px; }
.sp-brand b { color: var(--teal); }
.sp-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.sp-nav a { color: var(--soft); padding: 6px 10px; border-radius: 999px; font-size: .92rem; }
.sp-nav a:hover, .sp-nav a[aria-current] { background: var(--panel2); color: var(--fg); text-decoration: none; }
.sp-sw { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.sp-main { max-width: 72rem; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 22px; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 700; }
h1 span { background: linear-gradient(90deg, var(--teal), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 1.3rem; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 1.1rem; }
.sp-lead { font-size: 1.08rem; color: var(--soft); max-width: 48rem; margin: 0; }
.sp-lead b { color: var(--fg); }
.sp-sub { color: var(--muted); margin: 0; }
.sp-upd, .sp-crumb { margin: 0 0 -10px; font-size: .85rem; color: var(--muted); }
.sp-upd::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 8px; box-shadow: 0 0 0 4px rgba(163,230,53,.15); vertical-align: 1px; }
.sp-h2 { margin-top: 6px; }

/* top 3 */
.sp-top3 { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 10px; }
.sp-top3-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--panel2); color: var(--fg); }
.sp-top3-r:hover { text-decoration: none; outline: 1px solid rgba(45,212,191,.4); }
.sp-rank { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #04110e; background: var(--teal); }
.sp-top3-r:first-of-type .sp-rank { background: var(--lime); }
.sp-top3-t { display: grid; min-width: 0; }
.sp-top3-t span { color: var(--muted); font-size: .9rem; }
.sp-top3-p { display: flex; gap: 6px; }
.sp-top3-p img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: #fff; }

/* produits */
.sp-group { display: grid; gap: 10px; }
.sp-group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.sp-group-h span { color: var(--muted); font-size: .9rem; }
.sp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 12px; }
.sp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.sp-card-i { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.sp-card-i img { width: 100%; height: 100%; object-fit: cover; }
.sp-ph { font-size: 2rem; font-weight: 700; color: #4b5f5a; }
.sp-card-t { padding: 10px 11px 12px; display: grid; gap: 4px; align-content: start; }
.sp-card-t b { font-size: .92rem; line-height: 1.3; font-weight: 600; }
.sp-card-t b a { color: var(--fg); }
.sp-card-s { font-size: .78rem; color: var(--muted); }
.sp-card-m { display: flex; justify-content: space-between; gap: 6px; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.sp-price { color: var(--lime); font-weight: 600; }
.sp-price s { color: var(--muted); font-weight: 400; }

/* boutiques */
.sp-shops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 12px; }
.sp-shop { display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--fg); padding-bottom: 12px; }
.sp-shop:hover { text-decoration: none; outline: 1px solid rgba(45,212,191,.4); }
.sp-shop-i { aspect-ratio: 16 / 9; background: var(--panel2); display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.sp-shop-i img { width: 100%; height: 100%; object-fit: cover; }
.sp-shop b, .sp-shop > span:last-child { padding: 0 12px; }
.sp-shop > span:last-child { color: var(--muted); font-size: .88rem; }
.sp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 10px; }
.sp-kpis div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; }
.sp-kpis b { font-size: 1.45rem; }
.sp-kpis span { color: var(--muted); font-size: .88rem; }
.sp-ext { white-space: nowrap; }
.sp-arch { display: grid; gap: 8px; }
.sp-arch ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.sp-oth span { color: var(--muted); font-size: .88rem; }

/* newsletter */
.sp-news { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: clamp(16px, 3vw, 26px); display: grid; gap: 8px;
  background: linear-gradient(135deg, #10201d 0%, #0e1716 60%, #141f12 100%); border: 1px solid #24403a; }
.sp-news::after { content: ""; position: absolute; z-index: -1; right: -6rem; top: 50%; width: 22rem; height: 22rem; transform: translateY(-50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 2.2rem, rgba(45,212,191,.10) 2.2rem 2.3rem); }
.sp-news-tag { justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lime);
  background: rgba(163,230,53,.08); border: 1px solid rgba(163,230,53,.28); border-radius: 999px; padding: 3px 10px; }
.sp-news p { margin: 0; color: var(--soft); max-width: 40rem; }
.sp-news-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 34rem; margin-top: 4px; }
.sp-news-f input[type="email"] { font: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--fg); min-width: 0; }
.sp-news-f input[type="email"]:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.sp-news-f button, .sp-btn { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--teal); color: #04110e; white-space: nowrap; }
.sp-news-f button:hover, .sp-btn:hover { opacity: .9; text-decoration: none; }
.sp-news-f button:disabled { opacity: .6; cursor: wait; }
.sp-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sp-news-msg { min-height: 1.2em; font-size: .9rem; }
.sp-news-msg.is-ok { color: var(--lime); font-weight: 600; }
.sp-news-msg.is-err { color: var(--bad); }
.sp-news .sp-news-legal { font-size: .8rem; color: var(--muted); }

/* appel à l'action */
.sp-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.sp-cta p { margin: 4px 0 0; color: var(--muted); }
.sp-how { color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
.sp-how h2 { font-size: 1rem; color: var(--soft); }
.sp-how p { margin: 0; max-width: 52rem; }

.sp-foot { max-width: 72rem; margin: 0 auto; padding: 18px 16px 30px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.sp-foot a { color: var(--muted); }

@media (max-width: 560px) {
  .sp-top { gap: 10px; }
  .sp-nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; }
  .sp-sw { margin-left: auto; }
  .sp-news-f { grid-template-columns: minmax(0, 1fr); }
  .sp-top3-r { grid-template-columns: auto minmax(0, 1fr); }
  .sp-top3-p { grid-column: 1 / -1; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp-cta .sp-btn { width: 100%; text-align: center; }
}
