:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --bg3:      #181818;
  --accent:   #FFD700;
  --accent-d: #d4ac00;
  --text:     #ffffff;
  --muted:    #888888;
  --green:    #4ade80;
  --radius:   12px;
  --tr:       0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e1e;
  transition: box-shadow var(--tr);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; gap: 20px;
}
.nav-brand img { height: 44px; display: block; }
.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; }
.nav-links a {
  color: #ccc; text-decoration: none;
  padding: 6px 14px; border-radius: 6px;
  font-size: 0.95rem; transition: color var(--tr);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: 8px; white-space: nowrap; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; margin-left: auto; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: all var(--tr); font-size: 1rem; border: 2px solid transparent;
}
.btn-sm  { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg  { padding: 15px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; margin-top: 20px; }

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,215,0,0.28);
}
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #000; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover {
  background: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,0.3);
}

/* ── HERO ──────────────────────────────────────── */
.hero {
  min-height: 40vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px 8px;
  background: radial-gradient(ellipse at center top, #1c1500 0%, var(--bg) 65%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,215,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-content { position: relative; max-width: 820px; }
.hero-logo { height: 200px; margin-bottom: 20px; filter: drop-shadow(0 0 30px rgba(255,215,0,0.2)); }
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.15;
  text-transform: uppercase; letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.hero-sub { font-size: 0.98rem; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.hero-accent { color: var(--accent); }
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px;
}
.hero-stats {
  display: flex; gap: 36px; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid #1e1e1e; padding-top: 28px;
}
.services-stats {
  margin-top: 40px;
  border-top: 1px solid #1e1e1e;
  padding-top: 28px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.55rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ── SECTIONS ──────────────────────────────────── */
.section      { padding: 0px 20px 64px; }
.section-dark { background: var(--bg2); }
.container    { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900; text-align: center; text-transform: uppercase;
  letter-spacing: -0.5px; margin-bottom: 4px;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 10px; font-size: 0.98rem; }
.accent { color: var(--accent); }

/* ── CARDS ─────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg2); border: 1px solid #1e1e1e;
  border-radius: var(--radius); padding: 24px 22px;
  position: relative; transition: border-color var(--tr), transform var(--tr);
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-featured {
  border-color: rgba(255,215,0,0.4);
  background: linear-gradient(145deg, #110f00, var(--bg2));
}
.card-badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--accent); color: #000;
  font-size: 0.68rem; font-weight: 900;
  padding: 3px 12px; border-radius: 4px; letter-spacing: 1.5px;
}
.card-icon { font-size: 1.9rem; margin-bottom: 10px; }
.card h3 { font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.card p   { color: var(--muted); margin-bottom: 14px; font-size: 0.88rem; }
.card-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.card-list li { font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.card-list li::before { content: '✓'; color: var(--accent); font-weight: 900; font-size: 0.8rem; }

/* ── SIMULATEUR ─────────────────────────────────── */
.sim-box {
  background: var(--bg3); border: 1px solid #222;
  border-radius: 16px; padding: 28px;
  max-width: 820px; margin: 0 auto;
}
.sim-selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.sim-field label {
  display: block; font-size: 0.78rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px;
}
.sim-field select {
  width: 100%; background: var(--bg2); color: var(--text);
  border: 1px solid #2e2e2e; border-radius: 8px;
  padding: 12px 40px 12px 14px; font-size: 0.95rem;
  cursor: pointer; transition: border-color var(--tr);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.sim-field select:focus  { outline: none; border-color: var(--accent); }
.sim-field select:disabled { opacity: 0.38; cursor: not-allowed; }

.sim-loading {
  text-align: center; font-size: 0.85rem; color: var(--muted);
  margin-bottom: 12px;
}
.sim-loading.hidden { display: none; }

/* Résultat */
.sim-result { border-top: 1px solid #222; padding-top: 36px; }
.sim-result.hidden { display: none; }

.result-header { text-align: center; margin-bottom: 30px; }
.result-header h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.result-disclaimer { font-size: 0.72rem; color: #444; margin-top: 4px; }

.result-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.result-col { text-align: center; min-width: 110px; }
.result-col h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 6px;
}
.result-val       { font-size: 1.55rem; font-weight: 900; color: var(--text); line-height: 1.45; }
.result-val.gold  { color: var(--accent); }
.result-arrow     { font-size: 1.6rem; color: var(--accent); }
.result-gain h4   { color: var(--green); }
.result-gain-val  { font-size: 1.35rem; font-weight: 900; color: var(--green); line-height: 1.45; }

/* Barres */
.result-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.bar-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 14px; }
.bar-row span { font-size: 0.8rem; color: var(--muted); text-align: right; }
.bar-track { height: 11px; background: #1e1e1e; border-radius: 6px; display: flex; overflow: hidden; }
.bar-orig { height: 100%; background: #3a3a3a; transition: width 0.6s ease; }
.bar-gain { height: 100%; background: var(--accent); transition: width 0.6s ease; }

/* ── Canvas courbes ──────────────────────────────── */
.chart-wrap { margin: 28px 0 20px; }
#sim-canvas {
  width: 100%; height: 280px; display: block;
  border-radius: 10px; background: #0d0d0d;
}
.chart-legend {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 10px; flex-wrap: wrap;
}
.chart-legend span { font-size: 0.8rem; font-weight: 600; }
.leg-orig { color: #555; }
.leg-nm   { color: #FFD700; }
.leg-hp   { color: #ff7a00; }

.sim-note {
  text-align: center; font-size: 0.76rem; color: #444;
  margin-top: 32px; max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ── CONTACT ────────────────────────────────────── */
.contact-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; max-width: 900px; margin: 0 auto;
  background: var(--bg2); border: 1px solid #1e1e1e;
  border-radius: 16px; padding: 52px 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { font-size: 1.6rem; }
.contact-item strong {
  display: block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); margin-bottom: 4px;
}
.contact-item a {
  color: var(--accent); text-decoration: none;
  font-weight: 700; font-size: 1.05rem;
}
.contact-item a:hover { text-decoration: underline; }
.contact-item span { font-weight: 600; font-size: 1.05rem; }
.contact-actions { display: flex; flex-direction: column; gap: 16px; }

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: #050505; border-top: 1px solid #151515;
  padding: 44px 20px; text-align: center;
}
.footer img { margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.footer-disclaimer { font-size: 0.73rem; color: #333; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg); flex-direction: column;
    padding: 16px 24px 24px; border-bottom: 1px solid #1e1e1e;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }

  .hero-logo { height: 100px; }
  .hero-stats { gap: 28px; }

  .sim-box { padding: 28px 20px; }

  .contact-box {
    grid-template-columns: 1fr; gap: 36px; padding: 32px 24px;
  }
}
