/* ==========================================================================
   NOX · pages secondaires : QR partenaire, suivi partagé, abonnement chauffeur, légal.
   S'appuie sur les tokens et boutons de nox.css.
   ========================================================================== */
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page--night { background: radial-gradient(70% 50% at 100% 0%, rgba(35, 80, 200, 0.35), transparent 70%), var(--nox); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 22px 0; }
.bar-brand { display: flex; font-size: 22px; color: var(--nox); text-decoration: none; }
.page--night .bar-brand { color: #fff; }
.bar-back { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted); }
.bar-back:hover { color: var(--nox); }
.page--night .bar-back { color: var(--text-night); }
.page--night .bar-back:hover { color: #fff; }
.page main { flex: 1; }
.page-foot { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 28px 0 34px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.page--night .page-foot { color: rgba(255, 255, 255, 0.6); }
.page-foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.page-foot a { color: inherit; text-decoration: none; }
.page-foot a:hover { text-decoration: underline; }

.loading { display: grid; place-items: center; gap: 14px; padding: 80px 0; color: var(--muted); }
.page--night .loading { color: var(--text-night); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(127, 140, 160, 0.25); border-top-color: currentColor; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 520px; margin: 40px auto; padding: 0 var(--gutter); }
.notice-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--nox); }
.page--night .notice-ico { background: rgba(255, 255, 255, 0.08); color: #fff; }
.notice h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.notice p { color: var(--muted); }
.page--night .notice p { color: var(--text-night); }
.notice .btn { margin-top: 8px; }

/* ---------- /p/<slug> : offre partenaire ---------- */
.offer-page { width: min(1100px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 10px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.ev { position: relative; overflow: hidden; border-radius: 34px; background: var(--nox-3); box-shadow: 0 40px 80px -40px rgba(0, 6, 20, 0.9), inset 0 0 0 1px var(--line-night); }
.ev-poster { position: relative; min-height: 300px; padding: 34px 28px 26px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(1, 25, 51, 0.1) 0%, var(--nox-3) 96%), var(--poster, url("/img/night.webp")) center / cover; }
.ev-kind { align-self: flex-start; margin-bottom: auto; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ev-poster h1 { margin-top: 60px; font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; text-transform: uppercase; }
.ev-poster p { margin-top: 8px; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.85); }
.ev-body { padding: 8px 28px 30px; display: grid; gap: 16px; }
.ev-meta { display: grid; gap: 8px; }
.ev-meta li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.ev-meta svg { flex: none; color: var(--accent-soft); }
.ev-deal { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 20px; background: #fff; color: var(--accent); }
.ev-deal strong { padding: 10px 16px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.ev-deal span { display: grid; flex: 1; min-width: 0; }
.ev-deal small { color: var(--muted); font-size: 13px; }
.ev-deal b { font-size: 24px; font-weight: 800; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.ev-copy { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--sky); transition: background-color 0.2s; }
.ev-copy:hover { background: #d9e1f2; }
.ev-copy.is-done { background: var(--accent); color: #fff; }
.ev-about { color: var(--text-night); white-space: pre-line; }
.ev-highlights { display: grid; border-radius: 18px; background: #fff; color: #000; overflow: hidden; }
.ev-highlights li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.ev-highlights li + li { border-top: 1px solid var(--line); }
.ev-highlights li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.open-app { display: grid; gap: 18px; }
.open-app h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.open-app > p { color: var(--text-night); }
.open-app .btn { width: 100%; }
.open-hint { font-size: 14px; color: var(--text-night); }
.open-stores { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-night); }
.open-stores p { font-size: 14px; color: var(--text-night); }
.open-stores .stores { margin-top: 0; }
.open-steps { display: grid; gap: 10px; counter-reset: s; font-size: 15px; color: var(--text-night); }
.open-steps li { display: flex; gap: 12px; align-items: baseline; }
.open-steps li::before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- /t/<token> : suivi partagé ---------- */
.track { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: calc(100svh - 80px); }
.track-map { position: relative; min-height: 360px; background: #e9edf2; }
.track-map #map { position: absolute; inset: 0; }
.track-panel { position: relative; z-index: 2; padding: 26px; display: flex; flex-direction: column; gap: 16px; background: #fff; box-shadow: -10px 0 40px rgba(1, 25, 51, 0.08); }
.track-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.track-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-out infinite; }
.track-status { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.track-eta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--nox); color: #fff; }
.track-eta small { color: var(--text-night); font-size: 14px; }
.track-eta b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.track-progress { height: 5px; border-radius: 3px; background: #e9e9e9; overflow: hidden; }
.track-progress i { display: block; height: 100%; width: 10%; background: var(--nox); border-radius: 3px; transition: width 0.8s var(--ease); }
.track-who { display: flex; gap: 14px; align-items: center; }
.track-avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.track-avatar img { width: 100%; height: 100%; }
.track-who span { display: grid; }
.track-who b { font-size: 18px; }
.track-who small { color: var(--muted); font-size: 14px; }
.track-car { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--paper); }
.track-car span { display: grid; }
.track-car small { color: var(--muted); font-size: 13px; }
.track-car b { font-weight: 700; }
.track-plate { padding: 4px 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--nox); font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; }
.track-route { display: grid; gap: 12px; padding: 4px 2px; }
.track-route li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.track-route li::before { content: ""; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; box-shadow: inset 0 0 0 3.5px var(--nox); }
.track-route li:last-child::before { background: var(--nox); border-radius: 3px; }
.track-route small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.track-updated { margin-top: auto; font-size: 13px; color: var(--muted); }
.track-sos { font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.track-sos b { color: var(--red); }
.pin { display: block; position: relative; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 6px var(--nox), 0 4px 10px rgba(0, 0, 0, 0.25); }
.pin--end { border-radius: 6px; background: var(--nox); box-shadow: inset 0 0 0 7px var(--nox), inset 0 0 0 12px #fff, 0 4px 10px rgba(0, 0, 0, 0.25); }
.pin--car { width: 34px; height: 34px; background: var(--accent); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(1, 25, 51, 0.4); display: grid; place-items: center; color: #fff; transition: transform 0.6s var(--ease); }
.pin--car::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; animation: pulse 1.8s ease-out infinite; }
.leaflet-container { font-family: var(--font); background: #e9edf2; }
.leaflet-control-attribution { font-size: 11px; }

/* ---------- /abonnement-chauffeur ---------- */
.sub { width: min(1100px, 100% - 2 * var(--gutter)); margin: 10px auto 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 20px; align-items: stretch; }
.sub-intro { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); color: #fff; background: radial-gradient(80% 60% at 100% 100%, rgba(35, 80, 200, 0.5), transparent 70%), var(--nox); }
.sub-intro .tag { margin-bottom: 18px; }
.sub-intro h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.sub-intro > p { margin-top: 16px; color: var(--text-night); }
.sub-list { margin-top: 28px; display: grid; gap: 16px; }
.sub-list li { display: flex; gap: 14px; }
.sub-list li > span:first-child { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--accent-soft); }
.sub-list b { display: block; }
.sub-list small { display: block; font-size: 14px; color: var(--text-night); }
.sub-panel { padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 18px; }
.sub-badge { align-self: flex-start; display: flex; align-items: center; gap: 12px; }
.sub-badge img { width: 52px; height: 52px; border-radius: 13px; }
.sub-badge span { display: grid; line-height: 1.3; }
.sub-badge small { color: var(--muted); font-size: 13px; }
.sub-price { display: flex; align-items: baseline; gap: 8px; }
.sub-price b { font-size: clamp(48px, 6vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.sub-price span { color: var(--muted); font-size: 18px; }
.sub-trial { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--sky); color: var(--nox); font-weight: 700; }
.sub-terms { display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.sub-terms li { display: flex; gap: 10px; }
.sub-terms li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--nox) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.sub-panel .btn { width: 100%; min-height: 58px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border-width: 2.5px; border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
.sub-fine { font-size: 13px; color: var(--muted); }
.sub-fine a { color: var(--nox); }
.alert { padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.alert--error { background: #fdecec; color: #a32024; }
.alert--info { background: var(--sky); color: var(--nox); }
.stripe-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Pages légales ---------- */
.legal { min-height: 88svh; width: min(860px, 100% - 2 * var(--gutter)); margin: 10px auto 60px; padding: clamp(26px, 5vw, 56px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; }
.legal .maj { display: block; margin-top: 10px; margin-bottom: 30px; font-size: 14px; color: var(--muted); }
.legal h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 36px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--accent); }
.legal .legal-note { padding: 14px 18px; border-radius: 14px; background: var(--sky); color: var(--nox); font-weight: 600; }
.legal-pending { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--sky); color: var(--nox); }
.legal-pending p { color: var(--nox); margin: 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--nox); background: var(--paper); }
.legal-nav a[aria-current="page"] { background: var(--nox); color: #fff; }

@media (max-width: 900px) {
  .offer-page, .sub { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; grid-template-rows: minmax(44svh, 1fr) auto; }
  .track-panel { border-radius: 26px 26px 0 0; margin-top: -26px; box-shadow: 0 -10px 30px rgba(1, 25, 51, 0.1); }
}
@media (max-width: 560px) {
  .ev-poster { min-height: 240px; padding: 24px 20px 20px; }
  .ev-body { padding: 4px 20px 24px; }
  .ev-deal strong { font-size: 24px; padding: 8px 12px; }
  .ev-deal b { font-size: 20px; }
  .store { flex: 1 1 100%; justify-content: center; }
}

.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.lost-links a { padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-night); }
.lost-links a:hover { background: rgba(255, 255, 255, 0.14); }
