/* ═══════════════════════════════════════════════════════════════
   iLectrik — feuille de style commune (index + modules)
   Base sombre pro, touches lumineuses discrètes (glow/LED).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0c10;
  --bg-soft: #10131a;
  --bg-card: #141822;
  --border: #232a38;
  --red: #e63946;
  --red-soft: #ff5964;
  --gold: #f1c40f;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --green: #2ecc71;
  --text: #e8eaf0;
  --text-dim: #9aa3b5;
  --radius: 14px;
  --glow: 0 0 18px rgba(230, 57, 70, .35);
  --glow-soft: 0 0 30px rgba(230, 57, 70, .15);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ───────── Apparition au scroll (douce) ───────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ───────── NAV ───────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,12,16,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; }
.logo span { color: var(--red); text-shadow: 0 0 12px rgba(230,57,70,.55); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; color: var(--text-dim); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.status-link { display: inline-flex; align-items: center; gap: 7px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px rgba(46,204,113,.8); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 6px rgba(46,204,113,.8), 0 0 0 0 rgba(46,204,113,.5); }
  70% { box-shadow: 0 0 6px rgba(46,204,113,.8), 0 0 0 7px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 6px rgba(46,204,113,.8), 0 0 0 0 rgba(46,204,113,0); }
}
.burger { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ───────── Boutons (lueur maîtrisée) ───────── */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .2s, background .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 18px rgba(230,57,70,.35); }
.btn-red:hover { background: var(--red-soft); transform: translateY(-2px); box-shadow: 0 6px 26px rgba(230,57,70,.55), var(--glow); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: var(--red-soft); box-shadow: var(--glow-soft); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.nav-cta { padding: 9px 18px; }

/* ───────── HERO ───────── */
.hero { padding: 90px 0 70px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(230,57,70,.16), transparent 70%);
  pointer-events: none;
}
/* halo ambiant très discret qui respire */
.hero::after {
  content: ""; position: absolute; left: 50%; top: -140px; width: 560px; height: 340px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230,57,70,.14), transparent);
  filter: blur(50px); pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.35);
  color: var(--red-soft); font-size: .85rem; font-weight: 600; margin-bottom: 26px;
  box-shadow: inset 0 0 14px rgba(230,57,70,.08), var(--glow-soft);
  position: relative; z-index: 1;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.15; max-width: 800px; margin: 0 auto 20px; position: relative; z-index: 1;
}
h1 em { font-style: normal; color: var(--red); text-shadow: 0 0 22px rgba(230,57,70,.55); }
.hero p.sub { color: var(--text-dim); font-size: 1.15rem; max-width: 620px; margin: 0 auto 36px; position: relative; z-index: 1; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; position: relative; z-index: 1; }
.hero-trust { color: var(--text-dim); font-size: .9rem; position: relative; z-index: 1; }
.hero-trust a { color: var(--green); font-weight: 600; }
.hero-trust a:hover { text-decoration: underline; }

/* ───────── Bande de chiffres ───────── */
.stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 28px 0; text-align: center; }
.stat-num {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -1px; color: var(--text);
}
.stat-num .accent { color: var(--red); text-shadow: 0 0 16px rgba(230,57,70,.45); }
.stat-label { color: var(--text-dim); font-size: .85rem; }

/* ───────── Sections ───────── */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }
/* kicker avec petite barre LED */
.kicker {
  color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  font-size: .8rem; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.kicker::before, .kicker::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--red); box-shadow: 0 0 8px rgba(230,57,70,.8);
}

/* ───────── Features ───────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s, border-color .18s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(230,57,70,.5); box-shadow: var(--glow-soft); }
.feature .ico { font-size: 1.7rem; display: block; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: .92rem; }

/* ───────── Mockups Discord ───────── */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dmsg {
  background: #313338; border-radius: var(--radius); padding: 18px;
  border: 1px solid #1f2124; font-size: .88rem;
  transition: transform .18s, box-shadow .25s;
}
.dmsg:hover { transform: translateY(-4px); box-shadow: 0 10px 34px rgba(0,0,0,.5), var(--glow-soft); }
.dmsg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dmsg-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(160deg, #1a1e26, #0a0c10);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-weight: 800; font-size: 1.15rem; font-style: italic;
  border: 1px solid #2a3240; font-family: Georgia, serif;
}
.dmsg-name { font-weight: 700; color: #f2f3f5; }
.dmsg-badge {
  background: #5865f2; color: #fff; font-size: .6rem; font-weight: 700;
  padding: 1px 5px; border-radius: 4px; vertical-align: middle; margin-left: 6px;
}
.dmsg-time { color: #949ba4; font-size: .72rem; margin-left: 6px; }
.dembed {
  background: #2b2d31; border-left: 4px solid var(--red); border-radius: 6px;
  padding: 12px 14px; color: #dbdee1;
}
.dembed.green { border-left-color: #2ecc71; }
.dembed.gold { border-left-color: #f1c40f; }
.dembed.blue { border-left-color: #5865f2; }
.dembed-title { font-weight: 700; color: #f2f3f5; margin-bottom: 8px; font-size: .92rem; }
.dembed-row { color: #b5bac1; margin: 4px 0; }
.dbar { background: #1e1f22; border-radius: 99px; height: 8px; margin: 6px 0 10px; overflow: hidden; }
.dbar > span {
  display: block; height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--red), #ff8087);
  transition: width 1.1s cubic-bezier(.25,.7,.3,1);
}
.dbar.grey > span { background: #6d7178; }
.dbar.gold > span { background: linear-gradient(90deg, #f1c40f, #f8e187); }
.dembed-foot { color: #80848e; font-size: .72rem; margin-top: 10px; }
.dping { color: #c9cdfb; background: rgba(88,101,242,.25); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.demo-caption { text-align: center; color: var(--text-dim); font-size: .82rem; margin-top: 22px; font-style: italic; }

/* ───────── Démo LIVE (guerre simulée) ───────── */
.live-window {
  max-width: 780px; margin: 0 auto 30px; background: #313338;
  border: 1px solid #1f2124; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.45), var(--glow-soft);
}
.live-chanbar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #2b2d31; border-bottom: 1px solid #1f2124;
  color: #dbdee1; font-weight: 700; font-size: .95rem;
}
.live-chanbar .hash { color: #80848e; font-weight: 400; }
.live-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(230,57,70,.15); border: 1px solid rgba(230,57,70,.5);
  color: #ff5964; font-size: .68rem; font-weight: 800; letter-spacing: 1.5px;
  padding: 3px 11px; border-radius: 999px;
}
.live-badge i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 8px rgba(230,57,70,.9); animation: pulse 1.6s infinite; font-style: normal;
}
.live-board { padding: 14px 16px 4px; font-size: .88rem; }
.live-feed {
  height: 285px; overflow: hidden; padding: 6px 16px 16px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  font-size: .88rem;
}
.lmsg { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.lmsg.in { opacity: 1; transform: none; }
.dembed.grey { border-left-color: #6d7178; }

/* ───────── Étapes ───────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step { text-align: center; padding: 30px 22px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230,57,70,.12); border: 2px solid var(--red);
  color: var(--red-soft); font-weight: 800; font-size: 1.3rem;
  box-shadow: var(--glow-soft), inset 0 0 12px rgba(230,57,70,.12);
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* ───────── Tarifs ───────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.plan {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
  transition: transform .18s, box-shadow .25s;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--glow-soft); }
.plan.popular { border-color: var(--red); box-shadow: 0 8px 40px rgba(230,57,70,.18); }
.plan.popular:hover { box-shadow: 0 8px 46px rgba(230,57,70,.3), var(--glow); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 14px rgba(230,57,70,.5);
}
.plan-name { font-weight: 800; font-size: 1rem; letter-spacing: 2px; margin-bottom: 6px; }
.plan.starter .plan-name { color: var(--bronze); }
.plan.pro .plan-name { color: var(--silver); }
.plan.premium .plan-name { color: var(--gold); }
.plan-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--text-dim); }
.plan-sub { color: var(--text-dim); font-size: .88rem; margin-bottom: 22px; }
.plan ul { list-style: none; margin-bottom: 26px; flex: 1; }
.plan li { padding: 8px 0; font-size: .93rem; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: baseline; }
.plan li:last-child { border-bottom: none; }
.plan li .ok { color: var(--green); font-weight: 700; }
.plan li .muted { color: var(--text-dim); }
.plan .btn { text-align: center; }
.pricing-notes { text-align: center; color: var(--text-dim); font-size: .88rem; margin-top: 30px; }
.pricing-notes strong { color: var(--red-soft); }

/* ───────── Pourquoi iLectrik (comparaison) ───────── */
.vs-table {
  max-width: 820px; margin: 0 auto; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-card);
}
.vs-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.vs-row:last-child { border-bottom: none; }
.vs-row > div { padding: 14px 18px; font-size: .92rem; display: flex; align-items: center; }
.vs-row .vs-label { color: var(--text); font-weight: 600; }
.vs-row .vs-free { color: var(--text-dim); justify-content: center; text-align: center; }
.vs-row .vs-us {
  color: var(--text); justify-content: center; text-align: center; font-weight: 600;
  background: rgba(230,57,70,.07);
}
.vs-head > div { padding: 16px 18px; font-weight: 800; font-size: .95rem; }
.vs-head .vs-us {
  color: var(--red-soft); background: rgba(230,57,70,.12);
  text-shadow: 0 0 12px rgba(230,57,70,.35);
}
.vs-head .vs-free { color: var(--text-dim); font-weight: 700; }
.vs-note { text-align: center; color: var(--text-dim); font-size: .88rem; margin-top: 24px; max-width: 640px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .vs-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .vs-row > div { padding: 12px 10px; font-size: .8rem; }
}

/* ───────── FAQ ───────── */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: border-color .2s, box-shadow .25s;
}
.faq details[open] { border-color: rgba(230,57,70,.4); box-shadow: var(--glow-soft); }
.faq summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 18px; color: var(--text-dim); font-size: .95rem; }

/* ───────── CTA final ───────── */
.final-cta { text-align: center; }
.final-cta .box {
  background: linear-gradient(160deg, rgba(230,57,70,.14), rgba(230,57,70,.04));
  border: 1px solid rgba(230,57,70,.4); border-radius: 20px; padding: 60px 30px;
  box-shadow: inset 0 0 60px rgba(230,57,70,.06), var(--glow-soft);
}
.final-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -1px; }
.final-cta p { color: var(--text-dim); margin-bottom: 30px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ───────── Footer ───────── */
footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--text-dim); font-size: .9rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ───────── Page Modules ───────── */
.page-hero { padding: 70px 0 46px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(230,57,70,.13), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--text-dim); max-width: 600px; margin: 14px auto 0; }

.module { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border); }
.module:last-of-type { border-bottom: none; }
.module.flip .module-text { order: 2; }
.module.flip .module-visual { order: 1; }
.module-text .kicker { margin-bottom: 8px; }
.module-text h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.module-text p { color: var(--text-dim); margin-bottom: 16px; }
.module-text ul { list-style: none; }
.module-text li { padding: 6px 0; color: var(--text-dim); display: flex; gap: 10px; font-size: .95rem; }
.module-text li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* Mini graphique CSS (illustratif) */
.chart {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.chart-title { font-size: .85rem; color: var(--text-dim); margin-bottom: 16px; font-weight: 600; }
.chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; }
.cbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.cbar > i {
  display: block; width: 100%; border-radius: 6px 6px 0 0; height: 0;
  background: linear-gradient(180deg, var(--red-soft), var(--red));
  box-shadow: 0 0 14px rgba(230,57,70,.25);
  transition: height 1s cubic-bezier(.25,.7,.3,1);
}
.cbar.gold > i { background: linear-gradient(180deg, #f8e187, #f1c40f); box-shadow: 0 0 14px rgba(241,196,15,.25); }
.cbar > b { color: var(--text-dim); font-size: .72rem; font-weight: 600; }
.chart-caption { color: #80848e; font-size: .72rem; margin-top: 12px; font-style: italic; }

@media (max-width: 860px) {
  .module { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .module.flip .module-text { order: 1; }
  .module.flip .module-visual { order: 2; }
}

/* ───────── Responsive nav ───────── */
@media (max-width: 780px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-soft); padding: 22px;
    border-bottom: 1px solid var(--border); gap: 18px;
  }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }
}
