/* ============================================================
   Klarofact — Design System
   Créé par Nout Web Réunion — https://nout-web-reunion.fr
   ============================================================ */
:root {
  --bg: #0b1020;
  --bg-soft: #111832;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eef2ff;
  --text-muted: #9aa5c4;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,.18), rgba(217,70,239,.12));
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Fond animé */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: float 14s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: #6366f1; top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: #d946ef; bottom: -140px; right: -100px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: #22d3ee; top: 40%; left: 55%; opacity: .18; animation-delay: -8s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 40px) scale(1.12); }
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--card-border);
  transition: background .3s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gradient);
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(139, 92, 246, .45);
}
.logo span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px; border: none;
  font-family: var(--font); font-weight: 600; font-size: .97rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .25s;
  text-decoration: none;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 26px rgba(139, 92, 246, .4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(139, 92, 246, .55); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-success { background: linear-gradient(135deg,#10b981,#34d399); color:#fff; }
.btn-danger { background: rgba(248,113,113,.15); color: var(--danger); border:1px solid rgba(248,113,113,.3); }
.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: 9px; }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero { padding: 160px 0 90px; text-align: center; position: relative; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.35);
  color: #c7d2fe; font-size: .85rem; font-weight: 600;
  animation: fadeUp .8s ease both;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.12;
  margin: 26px auto 20px; max-width: 850px; letter-spacing: -1px;
  animation: fadeUp .8s .1s ease both;
}
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { color: var(--text-muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 36px; animation: fadeUp .8s .2s ease both; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s .3s ease both; }
.hero-note { margin-top: 16px; color: var(--text-muted); font-size: .85rem; animation: fadeUp .8s .35s ease both; }

.hero-mock {
  margin: 64px auto 0; max-width: 900px;
  border-radius: 20px; border: 1px solid var(--card-border);
  background: var(--bg-soft); box-shadow: var(--shadow);
  overflow: hidden; animation: fadeUp 1s .45s ease both;
}
.mock-bar { display:flex; gap:7px; padding: 13px 16px; border-bottom:1px solid var(--card-border); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar i:nth-child(1){background:#f87171} .mock-bar i:nth-child(2){background:#fbbf24} .mock-bar i:nth-child(3){background:#34d399}
.mock-body { padding: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mock-kpi { background: rgba(255,255,255,.04); border: 1px solid var(--card-border); border-radius: 14px; padding: 18px; text-align: left; }
.mock-kpi small { color: var(--text-muted); font-size: .78rem; }
.mock-kpi strong { display:block; font-size: 1.5rem; margin-top: 4px; }
.mock-kpi .up { color: var(--success); font-size: .78rem; }
.mock-table { grid-column: 1 / -1; background: rgba(255,255,255,.04); border:1px solid var(--card-border); border-radius: 14px; padding: 16px; }
.mock-row { display:flex; justify-content: space-between; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.05); font-size:.86rem; color: var(--text-muted); }
.mock-row:last-child { border: none; }
.tag { padding: 3px 11px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.tag-paid { background: rgba(52,211,153,.15); color: var(--success); }
.tag-pending { background: rgba(251,191,36,.15); color: var(--warning); }
.tag-draft { background: rgba(154,165,196,.15); color: var(--text-muted); }
.tag-late { background: rgba(248,113,113,.15); color: var(--danger); }
.tag-devis { background: rgba(34,211,238,.15); color: var(--accent); }

/* ============ SECTIONS ============ */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .kicker { color: var(--primary-2); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin: 10px 0 14px; letter-spacing: -.5px; }
.section-head p { color: var(--text-muted); }

/* Cartes fonctionnalités */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s, border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-soft); opacity: 0; transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.45); }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; }
.f-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gradient); font-size: 1.4rem; margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(139,92,246,.35);
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .93rem; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { text-align: center; padding: 26px; }
.step-num {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 800; box-shadow: 0 10px 26px rgba(139,92,246,.4);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .93rem; }

/* ============ TARIFS ============ */
.pricing-toggle { display:flex; justify-content:center; align-items:center; gap: 12px; margin-bottom: 42px; font-weight: 600; }
.switch { position: relative; width: 54px; height: 28px; background: rgba(255,255,255,.12); border-radius: 100px; cursor: pointer; border: 1px solid var(--card-border); transition: background .25s; }
.switch::after { content:''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s; }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(26px); }
.save-badge { background: rgba(52,211,153,.15); color: var(--success); padding: 4px 12px; border-radius: 100px; font-size: .78rem; font-weight: 700; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 20px;
  padding: 36px 30px; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s; position: relative;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box, var(--gradient) border-box;
  transform: scale(1.04);
  box-shadow: 0 24px 60px rgba(139,92,246,.28);
}
.price-card.featured:hover { transform: scale(1.04) translateY(-6px); }
.popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); padding: 5px 20px; border-radius: 100px;
  font-size: .76rem; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
}
.price-card h3 { font-size: 1.2rem; }
.price-card .desc { color: var(--text-muted); font-size: .88rem; margin: 6px 0 20px; }
.price { font-size: 2.7rem; font-weight: 800; letter-spacing: -1px; }
.price small { font-size: .95rem; color: var(--text-muted); font-weight: 500; }
.price-yearly-note { color: var(--success); font-size: .82rem; font-weight: 600; min-height: 20px; margin-top: 4px; }
.price-feats { list-style: none; margin: 24px 0 30px; flex: 1; }
.price-feats li { padding: 8px 0; color: var(--text-muted); font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.price-feats li::before { content: '✓'; color: var(--success); font-weight: 800; }
.price-feats li.no { opacity: .45; }
.price-feats li.no::before { content: '✕'; color: var(--danger); }

/* ============ FAQ / Témoignages ============ */
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: var(--font); font-size: 1.02rem; font-weight: 600; padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--primary-2); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--text-muted); font-size: .94rem; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; }
.stars { color: var(--warning); letter-spacing: 2px; margin-bottom: 14px; }
.testi p { color: var(--text-muted); font-size: .93rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.testi-author strong { display: block; font-size: .92rem; }
.testi-author small { color: var(--text-muted); font-size: .8rem; }

/* ============ CTA banner ============ */
.cta-banner {
  background: var(--gradient); border-radius: 24px; padding: 60px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before { content:''; position: absolute; width: 300px; height: 300px; background: rgba(255,255,255,.14); border-radius: 50%; top: -150px; right: -80px; }
.cta-banner h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; position: relative; }
.cta-banner p { opacity: .92; margin-bottom: 28px; position: relative; }
.cta-banner .btn { background: #fff; color: var(--primary); position: relative; }

/* ============ Bandeau Nout Web ============ */
.nout-banner {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 30px 34px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.nout-banner h3 { font-size: 1.15rem; margin-bottom: 6px; }
.nout-banner p { color: var(--text-muted); font-size: .92rem; max-width: 620px; }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--card-border); padding: 54px 0 30px; background: rgba(0,0,0,.25); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); font-size: .9rem; transition: color .25s; }
.footer-grid a:hover { color: var(--text); }
.footer-desc { color: var(--text-muted); font-size: .9rem; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: .86rem; }
.footer-bottom a { color: #c7d2fe; font-weight: 600; }

/* ============ AUTH ============ */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 110px 0 60px; }
.auth-card {
  width: min(440px, 92vw); background: var(--bg-soft); border: 1px solid var(--card-border);
  border-radius: 22px; padding: 40px 36px; box-shadow: var(--shadow);
  animation: fadeUp .6s ease both;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: .92rem; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: #c7d2fe; }
input, select, textarea {
  width: 100%; padding: 12px 15px; border-radius: 11px;
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border);
  color: var(--text); font-family: var(--font); font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
select option { background: var(--bg-soft); }
.auth-alt { text-align: center; margin-top: 22px; color: var(--text-muted); font-size: .9rem; }
.alert { padding: 13px 16px; border-radius: 11px; font-size: .89rem; margin-bottom: 18px; display: none; }
.alert.show { display: block; animation: fadeUp .3s ease; }
.alert-error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fecaca; }
.alert-success { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); color: #a7f3d0; }
.alert-info { background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.35); color: #a5f3fc; }

/* ============ APP DASHBOARD ============ */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 256px; background: var(--bg-soft); border-right: 1px solid var(--card-border);
  padding: 24px 16px; position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
  display: flex; flex-direction: column; transition: transform .3s;
}
.sidebar .logo { margin-bottom: 32px; padding: 0 10px; }
.side-nav { list-style: none; flex: 1; }
.side-nav li { margin-bottom: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 11px; color: var(--text-muted); font-weight: 500; font-size: .94rem;
  transition: background .2s, color .2s;
}
.side-nav a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.side-nav a.active { background: var(--gradient-soft); color: #fff; border: 1px solid rgba(139,92,246,.3); }
.plan-box {
  background: var(--gradient-soft); border: 1px solid rgba(139,92,246,.3);
  border-radius: 14px; padding: 16px; font-size: .84rem; margin-top: 12px;
}
.plan-box strong { display: block; margin-bottom: 4px; }
.plan-box .muted { color: var(--text-muted); font-size: .8rem; }
.plan-box .btn { margin-top: 12px; width: 100%; }

.main-area { flex: 1; margin-left: 256px; padding: 30px 36px 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.5rem; }
.topbar .user-chip { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--card-border); padding: 8px 16px 8px 9px; border-radius: 100px; font-size: .88rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.kpi {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; transition: transform .25s, border-color .25s;
}
.kpi:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.4); }
.kpi small { color: var(--text-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.kpi strong { display: block; font-size: 1.7rem; margin-top: 6px; letter-spacing: -.5px; }
.kpi .kpi-ico { float: right; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: var(--gradient-soft); border: 1px solid rgba(139,92,246,.25); }

.panel { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.panel-head h2 { font-size: 1.12rem; }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .7px; padding: 10px 12px; border-bottom: 1px solid var(--card-border); }
table.data td { padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
table.data tr:hover td { background: rgba(255,255,255,.03); }
.table-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--card-border);
  background: rgba(255,255,255,.05); color: var(--text); cursor: pointer;
  display: inline-grid; place-items: center; font-size: .86rem; transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.14); }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state .big { font-size: 2.6rem; margin-bottom: 12px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,8,18,.75); backdrop-filter: blur(6px);
  z-index: 200; display: none; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; overflow-y: auto;
}
.modal-overlay.show { display: flex; animation: fadeIn .25s ease; }
.modal {
  width: min(760px, 100%); background: var(--bg-soft); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 32px; animation: fadeUp .3s ease; margin-bottom: 5vh;
}
.modal.small { width: min(480px, 100%); }
.modal h2 { margin-bottom: 22px; font-size: 1.25rem; }
.modal-close { float: right; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }

.line-items { margin: 14px 0; }
.line-item { display: grid; grid-template-columns: 2.4fr .8fr 1fr .9fr auto; gap: 10px; margin-bottom: 10px; align-items: center; }
.totals-box { text-align: right; padding: 16px 6px 0; border-top: 1px solid var(--card-border); margin-top: 14px; }
.totals-box div { margin-bottom: 6px; color: var(--text-muted); }
.totals-box .grand { font-size: 1.25rem; font-weight: 800; color: var(--text); }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--bg-soft); border: 1px solid var(--card-border); border-left: 4px solid var(--success);
  padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem;
  animation: slideIn .35s ease; max-width: 340px;
}
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Loader */
.loader-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 500; display: grid; place-items: center; transition: opacity .4s; }
.loader-overlay.hide { opacity: 0; pointer-events: none; }
.spinner { width: 46px; height: 46px; border: 4px solid rgba(255,255,255,.12); border-top-color: var(--primary-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Upgrade lock */
.locked-note { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); color: #fde68a; padding: 14px 18px; border-radius: 12px; font-size: .9rem; margin-bottom: 18px; }

/* Ad container */
.ad-container { margin: 40px auto; max-width: 820px; text-align: center; min-height: 90px; }
.ad-label { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }

/* Animations on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Compteur animé */
.counter-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; text-align: center; }
.counter-grid strong { font-size: 2.4rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.counter-grid small { color: var(--text-muted); display: block; margin-top: 4px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .grid-3, .grid-4, .testimonials, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
  .mock-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 66px; right: 0; left: 0; flex-direction: column;
    background: var(--bg-soft); border-bottom: 1px solid var(--card-border);
    padding: 22px; display: none; gap: 18px;
  }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .grid-3, .grid-4, .testimonials, .pricing-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main-area { margin-left: 0; padding: 24px 16px 60px; }
  .mobile-menu-btn { display: inline-grid !important; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .line-item { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
}
.mobile-menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--card); border: 1px solid var(--card-border); color: var(--text); font-size: 1.2rem; cursor: pointer; place-items: center; }
