/*
Theme Name: BotTrading Pro
Description: Thème sombre professionnel pour BotTrading Pro
Version: 2.0
*/

:root {
  --bt-bg:      #0A0A0F;
  --bt-surface: #13131A;
  --bt-border:  #1E1E2A;
  --bt-accent:  #6C63FF;
  --bt-green:   #22D3A0;
  --bt-amber:   #F59E0B;
  --bt-red:     #F05252;
  --bt-text:    #E8E8F0;
  --bt-muted:   #9090A8;
  --bt-white:   #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bt-bg);
  color: var(--bt-text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--bt-accent); text-decoration: none; }
a:hover { color: var(--bt-green); }

/* ── Header ── */
.site-header {
  background: var(--bt-surface);
  border-bottom: 1px solid var(--bt-border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--bt-white);
}
.site-logo span { color: var(--bt-green); }

nav ul { display: flex; gap: 2rem; list-style: none; }
nav ul li a { color: var(--bt-muted); font-size: .95rem; transition: color .2s; }
nav ul li a:hover { color: var(--bt-white); }

.cart-btn {
  background: var(--bt-green);
  color: #0A0A0F !important;
  padding: .5rem 1.2rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s;
}
.cart-btn:hover { background: #1AB88A !important; color: #0A0A0F !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0A0A0F 0%, #0D0D1A 50%, #0A0F0A 100%);
  padding: 6rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--bt-border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34,211,160,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108,99,255,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(34,211,160,.1);
  border: 1px solid rgba(34,211,160,.3);
  color: var(--bt-green);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}

.hero h1 .accent { color: var(--bt-green); }
.hero h1 .accent2 { color: var(--bt-accent); }

.hero p {
  font-size: 1.15rem;
  color: var(--bt-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--bt-green);
  color: #0A0A0F;
  padding: .9rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s, background .2s;
  display: inline-block;
}
.btn-primary:hover {
  background: #1AB88A;
  color: #0A0A0F;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--bt-text);
  padding: .9rem 2rem;
  border-radius: 10px;
  border: 1px solid var(--bt-border);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color .2s, color .2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--bt-green); color: var(--bt-green); }

/* Stats */
.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--bt-border);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bt-green);
  display: block;
}
.stat-label {
  font-size: .8rem;
  color: var(--bt-muted);
  margin-top: .3rem;
  display: block;
}

/* ── Sections ── */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bt-surface);
  border-top: 1px solid var(--bt-border);
  border-bottom: 1px solid var(--bt-border);
  padding: 5rem 2rem;
}

.section-dark .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

.section-sub {
  text-align: center;
  color: var(--bt-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ── Cards produits ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.product-card:hover {
  border-color: var(--bt-green);
  transform: translateY(-4px);
}
.product-card.featured { border-color: var(--bt-accent); }
.product-card.featured:hover { border-color: var(--bt-green); }

.product-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-green { background: rgba(34,211,160,.15); color: var(--bt-green); }
.badge-purple { background: rgba(108,99,255,.15); color: var(--bt-accent); }
.badge-amber { background: rgba(245,158,11,.15); color: var(--bt-amber); }

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--bt-white);
}
.product-desc {
  color: var(--bt-muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.product-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bt-white);
  margin-bottom: 1.5rem;
}
.product-price .old-price {
  font-size: 1rem;
  color: var(--bt-muted);
  text-decoration: line-through;
  margin-right: .5rem;
}
.product-price .currency { font-size: 1rem; vertical-align: top; margin-top: .6rem; display: inline-block; color: var(--bt-muted); }

.product-features { list-style: none; margin-bottom: 2rem; }
.product-features li {
  color: var(--bt-muted);
  font-size: .9rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--bt-border);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.product-features li:last-child { border-bottom: none; }
.product-features li::before { content: '✓'; color: var(--bt-green); font-weight: 700; flex-shrink: 0; }

/* Résultats backtesting */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.result-card {
  background: var(--bt-bg);
  border: 1px solid var(--bt-border);
  border-radius: 16px;
  padding: 2rem;
}

.result-asset {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.asset-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}
.asset-btc { background: rgba(245,158,11,.15); color: var(--bt-amber); }
.asset-eth { background: rgba(108,99,255,.15); color: var(--bt-accent); }
.asset-name { font-weight: 700; font-size: 1.1rem; }

.result-pnl {
  font-size: 3rem;
  font-weight: 800;
  color: var(--bt-green);
  line-height: 1;
  margin-bottom: .25rem;
}
.result-period { font-size: .85rem; color: var(--bt-muted); margin-bottom: 1.5rem; }

.result-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.result-metric { background: var(--bt-surface); border-radius: 8px; padding: .75rem; }
.metric-val { font-size: 1.1rem; font-weight: 700; color: var(--bt-white); }
.metric-key { font-size: .75rem; color: var(--bt-muted); margin-top: .2rem; }

/* Paiements */
.payment-section {
  background: var(--bt-surface);
  border-top: 1px solid var(--bt-border);
  border-bottom: 1px solid var(--bt-border);
  padding: 4rem 2rem;
  text-align: center;
}
.payment-methods {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.payment-pill {
  background: var(--bt-bg);
  border: 1px solid var(--bt-border);
  border-radius: 50px;
  padding: .75rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--bt-text);
  transition: border-color .2s;
}
.payment-pill:hover { border-color: var(--bt-green); }

/* Améliorations v2.0 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.feature-item {
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .2s;
}
.feature-item:hover { border-color: var(--bt-accent); }
.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(108,99,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-title { font-size: 1rem; font-weight: 700; color: var(--bt-white); margin-bottom: .3rem; }
.feature-desc { font-size: .85rem; color: var(--bt-muted); line-height: 1.5; }

/* Footer */
.site-footer {
  background: var(--bt-surface);
  border-top: 1px solid var(--bt-border);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand p { color: var(--bt-muted); font-size: .9rem; margin-top: .75rem; max-width: 300px; line-height: 1.6; }
.footer-col h4 { font-size: .85rem; font-weight: 700; color: var(--bt-white); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: var(--bt-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--bt-white); }
.footer-bottom { border-top: 1px solid var(--bt-border); padding-top: 1.5rem; text-align: center; color: var(--bt-muted); font-size: .85rem; }

/* WooCommerce */
.woocommerce a.button, .woocommerce button.button,
.woocommerce .button, .woocommerce input[type=submit] {
  background: var(--bt-green) !important;
  color: #0A0A0F !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  border: none !important;
  padding: .75rem 1.5rem !important;
  transition: background .2s !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: #1AB88A !important;
}
.woocommerce .price { color: var(--bt-green) !important; }
.woocommerce form .form-row input.input-text {
  background: var(--bt-surface) !important;
  border: 1px solid var(--bt-border) !important;
  color: var(--bt-text) !important;
  border-radius: 8px !important;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .hero-stats { border-radius: 12px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--bt-border); }
  .stat-item:last-child { border-bottom: none; }
}

/* Logo taille header */
.site-logo img {
  height: 45px !important;
  width: auto !important;
  max-width: 200px !important;
}
