/* StreamNord — feuille de style unique (design identique à l'original) */

:root {
  --bg: #0b0d12;
  --bg-card: #12151d;
  --bg-input: #151924;
  --text: #f2f3f5;
  --muted: #8a90a0;
  --accent-1: #ff5a3c;
  --accent-2: #ff2d55;
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --border: rgba(255, 255, 255, .12);
  --success: #4ade80;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font: 'Sora', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-1); text-decoration: none; }
a:hover { color: #ff7a5e; }

img { max-width: 100%; display: block; }

button { font-family: var(--font); cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.hidden { display: none !important; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(11, 13, 18, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 60, 60, .4);
}
.brand-name { font-weight: 800; font-size: 17px; line-height: 1.1; }
.brand-tag { font-size: 10px; letter-spacing: .06em; color: var(--accent-1); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.select {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--font);
}
.btn {
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-dark { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-black { background: #0b0d12; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 16px 30px; font-size: 16px; box-shadow: 0 8px 30px rgba(255, 60, 60, .35); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 24px 64px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 90, 60, .12);
  border: 1px solid rgba(255, 90, 60, .35);
  color: var(--accent-1);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-1); animation: pulse 1.6s infinite; }
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--accent-1); display: block; }
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; max-width: 46ch; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-from { color: var(--muted); font-size: 15px; }
.hero-from b { color: var(--text); font-size: 17px; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.trust-row .ok { color: var(--success); font-weight: 800; margin-right: 4px; }

.hero-visual { display: grid; gap: 14px; }
.hero-visual .main-shot { border-radius: 16px; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-single { grid-template-rows: 374px; }

/* ---------- Section shells ---------- */
section { padding: 64px 24px; }
.section-title { font-size: 30px; font-weight: 800; text-align: center; margin: 0 0 12px; }
.section-sub { text-align: center; color: var(--muted); font-size: 15.5px; margin: 0 auto 40px; max-width: 60ch; }
.section-alt { background: #0e111a; }

.steps-strip {
  background: #0e111a;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 26px 24px;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1160px; margin: 0 auto; }
.step { text-align: center; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-grad); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Devices ---------- */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  font-size: 14px;
}
.device-card .icon { font-size: 26px; display: block; margin-bottom: 8px; }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; }
.benefit-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.benefit-card .icon { font-size: 26px; margin-bottom: 12px; }
.benefit-card h3 { font-size: 16px; margin: 0 0 8px; }
.benefit-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Plans ---------- */
.plans-toggle { display: flex; justify-content: center; margin-bottom: 40px; }
.toggle-group { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 5px; gap: 4px; }
.toggle-btn { border: none; background: none; color: var(--muted); font-weight: 700; font-size: 13.5px; padding: 10px 16px; border-radius: 9px; }
.toggle-btn.active { background: var(--accent-grad); color: #fff; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; max-width: 1180px; margin: 0 auto; align-items: stretch; }
.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.plan-card.popular { border-color: var(--accent-1); box-shadow: 0 0 0 1px var(--accent-1), 0 20px 50px rgba(255, 45, 85, .18); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .05em; padding: 5px 14px; border-radius: 999px;
}
.plan-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; object-fit: cover; }
.plan-name { text-align: center; font-size: 19px; font-weight: 800; margin: 0 0 2px; }
.plan-tag { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.plan-price { text-align: center; font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 12px 0 2px; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan-permonth { text-align: center; color: var(--success); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.plan-nofees { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-features li { display: flex; gap: 8px; font-size: 13.5px; padding: 6px 0; color: var(--text); }
.plan-features li .check { color: var(--success); font-weight: 800; flex-shrink: 0; }
.plan-cta { width: 100%; padding: 14px; font-size: 14px; border-radius: 10px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.plan-card.popular .plan-cta { background: var(--accent-grad); color: #fff; border: none; }

.pay-badges { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 32px 0 12px; flex-wrap: wrap; }
.pay-badge {
  background: #fff; font-weight: 800; font-size: 13px; font-style: italic;
  padding: 6px 12px; border-radius: 6px;
}
.pay-badge.visa { color: #1a1f71; }
.pay-badge.paypal { color: #003087; }
.pay-badge.paypal span { color: #009cde; }
.pay-badge.mastercard {
  display: flex; align-items: center; padding: 6px 12px; font-style: normal;
}
.pay-badge.mastercard .c1, .pay-badge.mastercard .c2 {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
}
.pay-badge.mastercard .c1 { background: #eb001b; }
.pay-badge.mastercard .c2 { background: #f79e1b; margin-left: -6px; }
.pay-trust { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  text-align: left; padding: 18px 20px; font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q .sign { color: var(--accent-1); font-size: 18px; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 300px; }
.faq-a p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Final CTA ---------- */
.final-cta {
  max-width: 1080px; margin: 0 auto;
  background: var(--accent-grad);
  border-radius: 24px;
  text-align: center;
  padding: 56px 32px;
}
.final-cta h2 { font-size: 30px; font-weight: 800; margin: 0 0 12px; color: #fff; }
.final-cta p { color: rgba(255, 255, 255, .9); font-size: 15px; margin: 0 0 28px; }
.final-cta .btn-black { padding: 16px 34px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 26px 24px; color: var(--muted); font-size: 12px; background: #0e111a; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, .5);
  color: #fff;
  transition: background .15s, transform .15s;
}
.wa-fab:hover { background: #1da851; color: #fff; transform: scale(1.06); }
.wa-fab .pulse-ring {
  position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  animation: pulse 1.8s infinite; z-index: -1;
}
@media (max-width: 767px) {
  .wa-fab { bottom: 88px; }
}

/* ---------- Checkout modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 100;
}
.modal-card {
  background: #12151d; border: 1px solid var(--border);
  border-radius: 20px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: 28px;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-head h2 { font-size: 20px; margin: 0; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; }
.order-summary {
  background: var(--bg-input); border-radius: var(--radius-md);
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.order-summary .name { font-weight: 700; font-size: 14px; }
.order-summary .delivery { font-size: 12px; color: var(--muted); }
.order-summary .price { font-size: 20px; font-weight: 800; color: var(--accent-1); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 12px; color: var(--text); font-size: 14px; font-family: var(--font);
}
.field-row { display: flex; gap: 8px; }
.field-row .code-select { flex: 0 0 92px; }
.field-row input { flex: 1; }
.screens-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

.checkout-trust { text-align: center; font-size: 12.5px; color: var(--muted); margin: 4px 0 18px; line-height: 1.7; }
.checkout-trust .ok { color: var(--success); }

.paypal-slot { min-height: 45px; margin-bottom: 12px; }
.checkout-error { background: rgba(255, 60, 60, .12); border: 1px solid rgba(255, 60, 60, .35); color: #ff9a8d; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.checkout-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

.done-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--success); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.done-title { text-align: center; font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.done-msg { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.done-summary { background: var(--bg-input); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; margin-bottom: 20px; }
.done-summary .row { display: flex; justify-content: space-between; gap: 12px; }
.done-summary .row span:first-child { color: var(--muted); }
.done-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-whatsapp { background: #25d366; color: #fff; padding: 14px; font-size: 14px; border-radius: 10px; }
.link-center { text-align: center; font-size: 13px; color: var(--muted); text-decoration: underline; background: none; border: none; margin-top: 4px; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 8px; }

/* ---------- Barre CTA sticky (mobile uniquement) ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(11, 13, 18, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-cta-bar .price { font-size: 13px; color: #c8ccd6; line-height: 1.2; }
.mobile-cta-bar .price b { color: #fff; font-size: 15px; }
.mobile-cta-bar button {
  background: var(--accent-grad); color: #fff; border: none; border-radius: 10px;
  padding: 12px 22px; font-weight: 800; font-size: 14px; white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-visual { order: -1; grid-template-rows: 140px 140px; }
  .hero h1 { font-size: 34px; }
  .plan-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .mobile-cta-bar { display: flex; }
}
@media (max-width: 560px) {
  .site-header { padding: 12px 16px; }
  section { padding: 48px 16px; }
  .hero { padding: 20px 16px 40px; }
  .final-cta { padding: 40px 20px; }
  .modal-card { padding: 20px; }
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] .field-row { flex-direction: row-reverse; }
html[dir="rtl"] .wa-fab { right: auto; left: 20px; }
html[dir="rtl"] .mobile-cta-bar { flex-direction: row-reverse; }
