/* ============================================================
   KAR'CARTE — Design system
   Créé par Nout Web Réunion — https://nout-web-reunion.fr
   ============================================================ */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --card: #ffffff;
  --line: #e2e8f0;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-3: #db2777;
  --accent: #06b6d4;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 130%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
  --ok: #059669;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07);
  --shadow: 0 10px 30px -12px rgba(79, 70, 229, .22);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .25);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
::selection { background: rgba(124, 58, 237, .18); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; position: relative; }
.section-tight { padding: 60px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 25px -8px rgba(79, 70, 229, .55);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(79, 70, 229, .6); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -80%; } 100% { left: 140%; } }
.btn-outline { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
/* Bouton fantôme utilisé sur fond sombre (hero) */
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.13); transform: translateY(-2px); }
/* Bouton "Se connecter" de la navbar (fond CLAIR) — forcé sombre pour rester visible */
.nav .btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); backdrop-filter: none; }
.nav .btn-ghost:hover { color: var(--primary); border-color: var(--primary); background: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(79,70,229,.08); color: var(--primary); border: 1px solid rgba(79,70,229,.18);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(6,182,212,.5);} 50% { box-shadow: 0 0 0 6px rgba(6,182,212,0);} }
.badge-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.pill-plan { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pill-plan.free { background: #f1f5f9; color: var(--ink-3); }
.pill-plan.pro { background: #ede9fe; color: #6d28d9; }
.pill-plan.business { background: #fce7f3; color: #be185d; }
.pill-plan.admin { background: #0f172a; color: #fff; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.7);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px -18px rgba(15,23,42,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(79,70,229,.6);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; place-items: center; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s; }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { top: 0; transform: rotate(45deg); }
.nav-burger.open span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu {
  display: none; position: absolute; top: 70px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line); padding: 18px 22px 26px;
  box-shadow: 0 30px 40px -30px rgba(15,23,42,.3); flex-direction: column; gap: 6px;
  animation: fadeDown .25s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 10px; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.mobile-menu a:hover { background: var(--bg-soft); color: var(--primary); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: none;} }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; background: var(--ink); color: #fff; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .mesh {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-bg .mesh.m1 { width: 520px; height: 520px; background: rgba(79,70,229,.75); top: -160px; left: -120px; }
.hero-bg .mesh.m2 { width: 420px; height: 420px; background: rgba(219,39,119,.5); bottom: -140px; right: -80px; animation-delay: -6s; }
.hero-bg .mesh.m3 { width: 320px; height: 320px; background: rgba(6,182,212,.45); top: 30%; right: 30%; animation-delay: -11s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-badge { margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #818cf8, #c084fc 45%, #f472b6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% auto; animation: gradShift 5s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }
.hero-sub { font-size: 18.5px; color: #cbd5e1; max-width: 540px; margin-bottom: 34px; }
.hero-sub b { color: #fff; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-proof { display: flex; align-items: center; gap: 14px; color: #94a3b8; font-size: 14.5px; flex-wrap: wrap; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 15px; }
.hero-proof .avatars { display: flex; }
.hero-proof .avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-left: -8px;
}
.hero-proof .avatars span:first-child { margin-left: 0; }

/* Mockup carte */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.mockup-card {
  width: 300px; background: #fff; color: var(--ink); border-radius: 30px; padding: 26px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.6); position: relative; z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1.2deg);} 50% { transform: translateY(-16px) rotate(1deg);} }
.mockup-avatar { width: 72px; height: 72px; border-radius: 22px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 26px; margin-bottom: 16px; box-shadow: 0 10px 22px -8px rgba(79,70,229,.6); }
.mockup-card h3 { font-size: 19px; margin-bottom: 2px; }
.mockup-card .role { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.mockup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 18px; }
.mockup-btn { padding: 10px; border-radius: 12px; background: #f1f5f9; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.mockup-btn.wa { background: #dcfce7; color: #166534; }
.mockup-btn.call { background: #dbeafe; color: #1e40af; }
.mockup-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.mockup-link .ico { width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; font-size: 13px; }
.mockup-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); font-weight: 700; }
.mockup-foot .mini-qr { width: 34px; height: 34px; border-radius: 8px; background: #0f172a; position: relative; }
.mini-qr::before {
  content: ''; position: absolute; inset: 7px;
  background:
    linear-gradient(#fff 0 0) 0 0/8px 8px no-repeat,
    linear-gradient(#fff 0 0) 100% 0/8px 8px no-repeat,
    linear-gradient(#fff 0 0) 0 100%/8px 8px no-repeat,
    linear-gradient(#fff 0 0) 100% 100%/8px 8px no-repeat,
    linear-gradient(#fff 0 0) 50% 50%/6px 6px no-repeat;
}
.float-chip {
  position: absolute; z-index: 3; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 16px; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 9px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); animation: floaty 5s ease-in-out infinite;
}
.float-chip.f1 { top: 6%; left: 2%; animation-delay: -.8s; }
.float-chip.f2 { bottom: 14%; right: 0; animation-delay: -2.6s; }
.float-chip.f3 { top: 44%; right: -2%; animation-delay: -4s; }
.float-chip .ico { font-size: 18px; }
.qr-ring {
  position: absolute; width: 130px; height: 130px; border-radius: 26px; z-index: 3;
  border: 2px dashed rgba(129,140,248,.6); display: grid; place-items: center;
  background: rgba(79,70,229,.12); backdrop-filter: blur(6px); bottom: 0; left: 0;
  animation: floaty 7s ease-in-out infinite; animation-delay: -1.4s;
}
.qr-ring svg { width: 74px; height: 74px; border-radius: 10px; background: #fff; padding: 8px; }

/* ---------- Marquee (secteurs) ---------- */
.marquee { padding: 34px 0; border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.marquee-label { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-weight: 800; color: #94a3b8; font-size: 17px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee-track span::before { content: '✦'; color: var(--primary); font-size: 12px; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Sections titres ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.sec-head .kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); background: rgba(79,70,229,.08); padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.sec-head h2 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sec-head p { color: var(--ink-3); font-size: 17px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { opacity: 1; }
.feature-ico {
  width: 54px; height: 54px; border-radius: 16px; background: var(--grad-soft);
  display: grid; place-items: center; font-size: 25px; margin-bottom: 18px;
  transition: transform .3s ease;
}
.feature:hover .feature-ico { transform: scale(1.1) rotate(-6deg); }
.feature h3 { font-size: 18px; margin-bottom: 9px; }
.feature p { color: var(--ink-3); font-size: 15px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; transition: transform .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.step-num {
  width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 21px; margin-bottom: 20px;
  box-shadow: 0 10px 22px -10px rgba(15,23,42,.6);
}
.step:nth-child(2) .step-num { background: var(--primary); box-shadow: 0 10px 22px -10px rgba(79,70,229,.7); }
.step:nth-child(3) .step-num { background: linear-gradient(135deg,#db2777,#7c3aed); box-shadow: 0 10px 22px -10px rgba(219,39,119,.6); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--ink-3); font-size: 15.5px; }
.step-arrow { position: absolute; top: 44px; right: -30px; font-size: 26px; color: #c7d2fe; z-index: 2; }

/* ---------- Bandes stats ---------- */
.stats-band { background: var(--ink); border-radius: var(--radius-lg); padding: 56px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(79,70,229,.4); filter: blur(80px); top: -120px; right: -80px; }
.stat { text-align: center; position: relative; }
.stat b { display: block; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 900; background: linear-gradient(90deg,#a5b4fc,#f0abfc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: #94a3b8; font-weight: 600; font-size: 14.5px; }

/* ---------- Thèmes (galerie) ---------- */
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.theme-mini {
  border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.theme-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.theme-mini .tm-avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 17px; margin-bottom: 10px; }
.theme-mini h4 { font-size: 15.5px; }
.theme-mini p { font-size: 13px; color: var(--ink-3); }
.tm-chip { width: 34px; height: 34px; border-radius: 10px; }
.t-1 { background: linear-gradient(135deg,#4f46e5,#7c3aed); } .tm-c-1 { background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.t-2 { background: linear-gradient(135deg,#0284c7,#06b6d4); } .tm-c-2 { background: linear-gradient(135deg,#0284c7,#06b6d4); }
.t-3 { background: linear-gradient(135deg,#059669,#10b981); } .tm-c-3 { background: linear-gradient(135deg,#059669,#10b981); }
.t-4 { background: linear-gradient(135deg,#ea580c,#f43f5e); } .tm-c-4 { background: linear-gradient(135deg,#ea580c,#f43f5e); }
.t-5 { background: linear-gradient(135deg,#7c3aed,#c026d3); } .tm-c-5 { background: linear-gradient(135deg,#7c3aed,#c026d3); }
.t-6 { background: linear-gradient(135deg,#0f172a,#334155); } .tm-c-6 { background: linear-gradient(135deg,#0f172a,#334155); }
.t-7 { background: linear-gradient(135deg,#b45309,#f59e0b); } .tm-c-7 { background: linear-gradient(135deg,#b45309,#f59e0b); }
.t-8 { background: linear-gradient(135deg,#be123c,#fb7185); } .tm-c-8 { background: linear-gradient(135deg,#be123c,#fb7185); }

/* ---------- Pricing ---------- */
.pricing { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.pricing::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(124,58,237,.35); filter: blur(110px); top: -180px; left: -140px; }
.pricing::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(219,39,119,.25); filter: blur(100px); bottom: -160px; right: -100px; }
.pricing .container { position: relative; }
.pricing .sec-head h2 { color: #fff; }
.pricing .sec-head p { color: #94a3b8; }
.billing-toggle { display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 5px; margin-bottom: 50px; gap: 4px; }
.billing-toggle button { padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: #94a3b8; transition: .25s; }
.billing-toggle button.active { background: #fff; color: var(--ink); }
.billing-toggle .save { background: #dcfce7; color: #166534; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-left: 7px; vertical-align: 1px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg);
  padding: 36px 30px; display: flex; flex-direction: column; position: relative;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  backdrop-filter: blur(8px);
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.3); }
.price-card.popular { background: #fff; color: var(--ink); transform: scale(1.04); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.price-card.popular:hover { transform: scale(1.04) translateY(-6px); }
.popular-tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 800;
  padding: 7px 18px; border-radius: 999px; box-shadow: 0 10px 22px -8px rgba(124,58,237,.7);
  letter-spacing: .03em; white-space: nowrap;
}
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-card .who { font-size: 14px; color: #94a3b8; margin-bottom: 22px; }
.price-card.popular .who { color: var(--ink-3); }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-amount .cur { font-size: 22px; font-weight: 800; }
.price-amount .num { font-size: 52px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.price-amount .per { color: #94a3b8; font-size: 15px; font-weight: 600; }
.price-card.popular .price-amount .per { color: var(--ink-3); }
.price-note { font-size: 13px; color: #94a3b8; margin-bottom: 24px; }
.price-card.popular .price-note { color: var(--ink-3); }
.price-feats { flex: 1; display: flex; flex-direction: column; gap: 12px; margin: 18px 0 28px; }
.price-feats li { display: flex; gap: 11px; font-size: 14.5px; color: #cbd5e1; align-items: flex-start; }
.price-card.popular .price-feats li { color: var(--ink-2); }
.price-feats .check { width: 20px; height: 20px; border-radius: 50%; background: rgba(52,211,153,.18); color: #34d399; display: grid; place-items: center; font-size: 12px; font-weight: 900; flex-shrink: 0; margin-top: 2px; }
.price-card.popular .price-feats .check { background: rgba(52,211,153,.16); color: #059669; }
.price-feats .cross { color: #64748b; opacity: .6; }
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; margin-top: 34px; color: #94a3b8; font-size: 14px; }
.pricing-note a { color: #c7d2fe; text-decoration: underline; }

/* ---------- Témoignages ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testi:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testi .stars { font-size: 14px; }
.testi p { color: var(--ink-2); font-size: 15px; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.testi .who b { display: block; font-size: 14.5px; }
.testi .who span { font-size: 13px; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .25s ease; }
.faq-item.open { border-color: rgba(79,70,229,.4); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 16px; text-align: left; }
.faq-q .chev { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--primary); display: grid; place-items: center; font-size: 15px; transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 22px; color: var(--ink-3); font-size: 15px; }

/* ---------- CTA final ---------- */
.cta-band {
  background: var(--grad); border-radius: var(--radius-lg); padding: 64px 48px; text-align: center;
  color: #fff; position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.14); top: -120px; right: -80px; }
.cta-band::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.1); bottom: -100px; left: -60px; }
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; position: relative; }
.cta-band p { opacity: .92; font-size: 17px; margin-bottom: 30px; position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-white { background: #fff; color: var(--primary); box-shadow: 0 16px 34px -12px rgba(0,0,0,.35); position: relative; }
.cta-band .btn-white:hover { color: var(--primary-2); transform: translateY(-2px); }
.cta-mini { font-size: 13px; opacity: .85; margin-top: 16px; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.contact-info > p { color: var(--ink-3); margin-bottom: 26px; font-size: 16.5px; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: flex; gap: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; align-items: flex-start; transition: transform .25s ease, box-shadow .25s ease; }
.contact-card:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.contact-card .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--grad-soft); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.contact-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-card span, .contact-card a { color: var(--ink-3); font-size: 14px; }
.contact-card a:hover { color: var(--primary); }
.contact-form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 15px;
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-ok {
  display: none; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; margin-bottom: 16px;
}
.form-ok.show { display: block; animation: fadeDown .3s ease; }
.form-err {
  display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; margin-bottom: 16px;
}
.form-err.show { display: block; animation: fadeDown .3s ease; }

/* ---------- Footer ---------- */
.footer { background: #0b1220; color: #94a3b8; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-desc { font-size: 14.5px; max-width: 300px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07);
  display: grid; place-items: center; color: #cbd5e1; font-size: 17px; transition: .25s;
}
.footer-social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: #94a3b8; font-size: 14.5px; transition: .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom .credit b { color: #c7d2fe; }
.footer-bottom .credit a { color: #a5b4fc; }
.footer-bottom .credit a:hover { text-decoration: underline; }

/* ---------- Page générique ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 70px 0 58px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(79,70,229,.45); filter: blur(100px); top: -160px; right: -80px; }
.page-hero .crumbs { font-size: 13.5px; color: #94a3b8; margin-bottom: 12px; }
.page-hero .crumbs a { color: #c7d2fe; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); position: relative; }
.page-hero p { color: #cbd5e1; margin-top: 12px; font-size: 17px; position: relative; max-width: 640px; }
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin: 34px 0 14px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose strong { color: var(--ink); }

/* ---------- Comparaison (page prix) ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare-table th { background: var(--ink); color: #fff; font-weight: 700; }
.compare-table th:not(:first-child) { text-align: center; }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:hover td { background: #fafaff; }
.compare-table .yes { color: var(--ok); font-weight: 900; }
.compare-table .no { color: #cbd5e1; }

/* ---------- AdSense ---------- */
.ads-wrap { display: flex; justify-content: center; margin: 0 auto; }
.ads-label { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-bottom: 10px; }
.ads-box { border: 1.5px dashed #d8e0ee; border-radius: 14px; background: #fbfcff; }

/* ============================================================
   PAGE CARTE PUBLIQUE
   ============================================================ */
.card-body { min-height: 100vh; display: flex; flex-direction: column; }
.pub-page { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 30px 18px 40px; }
.pub-head { width: 100%; max-width: 480px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pub-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 16px; color: var(--ink); }
.pub-brand .bm { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.pub-brand .bm svg { width: 17px; height: 17px; }
.pub-share-btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); transition: .2s; }
.pub-share-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.pub-card {
  width: 100%; max-width: 440px; background: #fff; border-radius: 32px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(15,23,42,.35); position: relative;
  animation: cardIn .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.97);} to { opacity: 1; transform: none;} }
.pub-cover { height: 150px; position: relative; }
.pub-cover .pat {
  position: absolute; inset: 0; opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.55) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
}
.pub-avatar { position: absolute; left: 28px; bottom: -38px; width: 96px; height: 96px; border-radius: 26px; background: #fff; padding: 5px; box-shadow: 0 16px 34px -14px rgba(15,23,42,.4); }
.pub-avatar .inner { width: 100%; height: 100%; border-radius: 21px; display: grid; place-items: center; font-weight: 900; font-size: 32px; color: #fff; overflow: hidden; }
.pub-avatar .inner img { width: 100%; height: 100%; object-fit: cover; }
.pub-info { padding: 52px 26px 24px; text-align: center; }
.pub-info h1 { font-size: 24px; margin-bottom: 3px; word-break: break-word; }
.pub-info .role { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.pub-info .company { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 14px; margin-top: 4px; }
.pub-info .bio { color: var(--ink-3); font-size: 14.5px; margin-top: 14px; line-height: 1.55; }
.pub-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 4px 26px 8px; }
.pub-act {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 14px; font-weight: 800; font-size: 14px; transition: transform .2s ease, filter .2s ease;
}
.pub-act:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pub-act.call { background: #dbeafe; color: #1d4ed8; }
.pub-act.wa { background: #d1fae5; color: #047857; }
.pub-act.mail { background: #fef3c7; color: #b45309; }
.pub-act.site { background: #ede9fe; color: #6d28d9; }
.pub-act.map { background: #fce7f3; color: #be185d; }
.pub-act.vcf { background: #f1f5f9; color: #334155; }
.pub-act.qr { background: var(--ink); color: #fff; }
.pub-links { padding: 14px 26px 22px; display: flex; flex-direction: column; gap: 9px; }
.pub-link {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px;
  border-radius: 14px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14.5px;
  color: var(--ink); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pub-link:hover { transform: translateX(4px); border-color: var(--primary); box-shadow: var(--shadow-sm); color: var(--ink); }
.pub-link .li { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.pub-link .ext { margin-left: auto; color: #94a3b8; font-size: 13px; }
.pub-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 26px 24px; border-top: 1px dashed var(--line); margin: 0 26px; font-size: 12.5px; color: #94a3b8; font-weight: 600; }
.pub-foot a { color: #94a3b8; }
.pub-foot a:hover { color: var(--primary); }
.pub-credit { margin-top: 26px; font-size: 12.5px; color: #94a3b8; display: flex; align-items: center; gap: 6px; }
.pub-credit a { color: #64748b; font-weight: 700; }
.pub-credit a:hover { color: var(--primary); }

/* Thèmes */
[data-theme="indigo"] .pub-cover { background: linear-gradient(135deg,#4f46e5,#7c3aed); }
[data-theme="indigo"] .pub-avatar .inner { background: linear-gradient(135deg,#4f46e5,#7c3aed); }
[data-theme="ocean"] .pub-cover { background: linear-gradient(135deg,#0284c7,#06b6d4); }
[data-theme="ocean"] .pub-avatar .inner { background: linear-gradient(135deg,#0284c7,#06b6d4); }
[data-theme="emerald"] .pub-cover { background: linear-gradient(135deg,#059669,#10b981); }
[data-theme="emerald"] .pub-avatar .inner { background: linear-gradient(135deg,#059669,#10b981); }
[data-theme="sunset"] .pub-cover { background: linear-gradient(135deg,#ea580c,#f43f5e); }
[data-theme="sunset"] .pub-avatar .inner { background: linear-gradient(135deg,#ea580c,#f43f5e); }
[data-theme="royal"] .pub-cover { background: linear-gradient(135deg,#7c3aed,#c026d3); }
[data-theme="royal"] .pub-avatar .inner { background: linear-gradient(135deg,#7c3aed,#c026d3); }
[data-theme="noir"] .pub-cover { background: linear-gradient(135deg,#0f172a,#475569); }
[data-theme="noir"] .pub-avatar .inner { background: linear-gradient(135deg,#0f172a,#475569); }
[data-theme="gold"] .pub-cover { background: linear-gradient(135deg,#b45309,#f59e0b); }
[data-theme="gold"] .pub-avatar .inner { background: linear-gradient(135deg,#b45309,#f59e0b); }
[data-theme="rose"] .pub-cover { background: linear-gradient(135deg,#be123c,#fb7185); }
[data-theme="rose"] .pub-avatar .inner { background: linear-gradient(135deg,#be123c,#fb7185); }

/* Modal QR */
.qr-modal { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadeIn .25s ease; }
.qr-modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0;} to { opacity: 1;} }
.qr-modal-box { background: #fff; border-radius: 24px; padding: 30px; text-align: center; max-width: 380px; width: 100%; animation: popIn .3s cubic-bezier(.2,.8,.2,1); }
@keyframes popIn { from { opacity: 0; transform: scale(.9);} to { opacity: 1; transform: none;} }
.qr-modal-box h3 { margin-bottom: 18px; }
.qr-modal-box .qr-img { display: grid; place-items: center; margin-bottom: 20px; }
.qr-modal-box .qr-img svg, .qr-modal-box .qr-img img { border-radius: 14px; border: 1px solid var(--line); }
.qr-close { position: absolute; top: 14px; right: 16px; font-size: 26px; line-height: 1; color: #94a3b8; }
.qr-close:hover { color: var(--ink); }

/* ============================================================
   APPLICATION (dashboard)
   ============================================================ */
.app { display: flex; min-height: 100vh; }
.app-side {
  width: 250px; background: var(--ink); color: #cbd5e1; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; flex-shrink: 0; z-index: 50;
}
.app-side .brand { padding: 22px 20px 16px; color: #fff; }
.app-side .brand:hover { color: #fff; }
.app-side .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.app-nav { flex: 1; padding: 8px 14px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.app-nav .nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #64748b; font-weight: 800; padding: 14px 12px 6px; }
.app-nav button {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  font-weight: 700; font-size: 14.5px; color: #94a3b8; width: 100%; text-align: left; transition: .2s;
}
.app-nav button .ico { font-size: 17px; width: 22px; text-align: center; }
.app-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav button.active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(124,58,237,.6); }
.app-side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.app-user { display: flex; align-items: center; gap: 11px; padding: 10px 8px; }
.app-user .au-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; flex-shrink: 0; }
.app-user .au-name { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.25; word-break: break-all; }
.app-user .au-mail { font-size: 11.5px; color: #64748b; word-break: break-all; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  padding: 14px 30px;
}
.app-top h2 { font-size: 20px; }
.app-top .at-right { display: flex; align-items: center; gap: 12px; }
.plan-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; background: #f1f5f9; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); }
.plan-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.plan-chip.pro { background: #ede9fe; color: #6d28d9; }
.plan-chip.business { background: #fce7f3; color: #be185d; }
.app-body { flex: 1; padding: 30px; max-width: 1200px; width: 100%; margin: 0 auto; }
.demo-banner {
  background: linear-gradient(90deg, #fef3c7, #fde68a); color: #92400e; font-weight: 700; font-size: 13.5px;
  padding: 11px 22px; text-align: center; border-bottom: 1px solid #fcd34d;
}
.demo-banner code { background: rgba(146,64,14,.12); padding: 2px 8px; border-radius: 6px; font-size: 12px; }

/* Cartes du dashboard */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.dash-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.dash-stat .ds-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--grad-soft); }
.dash-stat b { font-size: 26px; letter-spacing: -.03em; }
.dash-stat span { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.dash-stat.upgrade { background: var(--grad); border: none; color: #fff; }
.dash-stat.upgrade b { font-size: 18px; }
.dash-stat.upgrade span { color: rgba(255,255,255,.85); }
.dash-stat.upgrade .btn { margin-top: 8px; background: #fff; color: var(--primary); }
.dash-stat.upgrade .btn:hover { color: var(--primary-2); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h3 { font-size: 17px; }
.panel-head .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }

/* Liste des cartes */
.cards-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mini-card .mc-cover { height: 84px; position: relative; }
.mini-card .mc-avatar { width: 56px; height: 56px; border-radius: 16px; border: 3px solid #fff; position: absolute; left: 18px; bottom: -20px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 20px; overflow: hidden; box-shadow: 0 8px 18px -8px rgba(15,23,42,.4); }
.mini-card .mc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .mc-body { padding: 28px 18px 14px; flex: 1; }
.mini-card .mc-body h4 { font-size: 16.5px; }
.mini-card .mc-body .role { color: var(--ink-3); font-size: 13.5px; }
.mini-card .mc-foot { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.mini-card .mc-foot .btn { flex: 1; padding: 9px 10px; font-size: 13px; }
.mini-card .mc-status { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; z-index: 2; }
.mc-status.on { background: rgba(16,185,129,.15); color: #047857; }
.mc-status.off { background: rgba(100,116,139,.15); color: #475569; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.empty-state .em-ico { font-size: 52px; margin-bottom: 14px; }
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

/* Éditeur */
.editor-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.editor-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.editor-section h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.editor-section h3 .es-n { width: 26px; height: 26px; border-radius: 9px; background: var(--grad-soft); color: var(--primary); display: grid; place-items: center; font-size: 13px; }
.username-field { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.username-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.1); }
.username-field .pre { background: #f8fafc; padding: 12px 14px; color: var(--ink-3); font-weight: 600; font-size: 14px; border-right: 1px solid var(--line); white-space: nowrap; }
.username-field input { border: none; outline: none; padding: 12px 14px; width: 100%; background: #fff; }
.username-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; }
.username-hint.ok { color: var(--ok); font-weight: 700; }
.username-hint.bad { color: var(--err); font-weight: 700; }
.theme-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.theme-opt { border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; transition: .2s; background: #fff; }
.theme-opt:hover { border-color: #c7d2fe; transform: translateY(-2px); }
.theme-opt.active { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.theme-opt .sw { height: 44px; border-radius: 10px; margin-bottom: 8px; }
.theme-opt span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.link-row { display: grid; grid-template-columns: 1.15fr 2fr auto; gap: 10px; margin-bottom: 10px; align-items: center; }
.link-row select, .link-row input { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.link-row .rm { width: 38px; height: 38px; border-radius: 10px; background: #fef2f2; color: var(--err); font-weight: 900; }
.link-row .rm:hover { background: #fee2e2; }
.add-link-btn { margin-top: 6px; }

/* Aperçu en direct */
.live-preview { position: sticky; top: 96px; }
.live-preview .lp-label { text-align: center; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 14px; }
.lp-frame { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; transform-origin: top center; }
.lp-frame .lp-cover { height: 110px; position: relative; }
.lp-frame .lp-avatar { width: 74px; height: 74px; border-radius: 20px; border: 4px solid #fff; position: absolute; left: 20px; bottom: -30px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 26px; overflow: hidden; box-shadow: 0 10px 22px -10px rgba(15,23,42,.5); }
.lp-frame .lp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lp-frame .lp-body { padding: 40px 20px 18px; }
.lp-frame .lp-body h4 { font-size: 17px; }
.lp-frame .lp-body .role { color: var(--ink-3); font-size: 12.5px; }
.lp-frame .lp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.lp-frame .lp-btns span { padding: 9px; border-radius: 10px; font-size: 11.5px; font-weight: 800; text-align: center; background: #f1f5f9; }
.lp-frame .lp-btns span.l1 { background: #dbeafe; color: #1d4ed8; }
.lp-frame .lp-btns span.l2 { background: #d1fae5; color: #047857; }
.lp-frame .lp-links { display: flex; flex-direction: column; gap: 7px; }
.lp-frame .lp-links span { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lp-frame .lp-links span .di { width: 22px; height: 22px; border-radius: 7px; background: var(--bg-soft); display: grid; place-items: center; font-size: 11px; }
.lp-frame .lp-qr { display: flex; justify-content: center; margin: 16px 0 6px; }
.lp-frame .lp-qr svg { width: 74px; height: 74px; border-radius: 10px; border: 1px solid var(--line); padding: 5px; background: #fff; }

/* Stats */
.stats-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.chart-wrap { position: relative; height: 230px; }
.chart-wrap canvas { width: 100%; height: 100%; }
.chart-legend { display: flex; gap: 18px; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.chart-legend .lg { display: flex; align-items: center; gap: 7px; }
.chart-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.clicks-table { width: 100%; border-collapse: collapse; }
.clicks-table th, .clicks-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.clicks-table th { color: var(--ink-3); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.clicks-table td .bar { height: 8px; border-radius: 99px; background: var(--grad); max-width: 100%; }

/* Tableaux admin */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.admin-table th { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.admin-table tr:hover td { background: #fafaff; }
.admin-table .plan-select { padding: 7px 10px; border-radius: 9px; border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--ink); position: relative; overflow: hidden; padding: 30px 18px; }
.auth-wrap .mesh { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .45; }
.auth-wrap .mesh.a1 { width: 460px; height: 460px; background: rgba(79,70,229,.8); top: -140px; left: -100px; animation: drift 14s ease-in-out infinite alternate; }
.auth-wrap .mesh.a2 { width: 380px; height: 380px; background: rgba(219,39,119,.55); bottom: -120px; right: -80px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.auth-card { position: relative; background: #fff; border-radius: 26px; padding: 38px 34px; width: 100%; max-width: 440px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6); animation: popIn .4s cubic-bezier(.2,.8,.2,1); }
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--ink-3); font-size: 14.5px; margin-bottom: 24px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { padding: 10px; border-radius: 9px; font-weight: 800; font-size: 14px; color: var(--ink-3); transition: .2s; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-alert { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 15px; border-radius: 11px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.auth-alert.show { display: block; }
.auth-alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.auth-hint { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* Modal générique */
.modal-back { position: fixed; inset: 0; z-index: 300; background: rgba(15,23,42,.65); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.modal-back[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 24px; width: 100%; max-width: 520px; padding: 30px;
  position: relative; animation: popIn .3s cubic-bezier(.2,.8,.2,1); max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-size: 20px; margin-bottom: 8px; }
.modal .m-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }
.modal .m-close { position: absolute; top: 16px; right: 18px; font-size: 24px; color: #94a3b8; }
.modal .m-close:hover { color: var(--ink); }

/* Toasts */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 20px 40px -14px rgba(15,23,42,.5); display: flex; align-items: center; gap: 10px;
  animation: toastIn .35s cubic-bezier(.2,.8,.2,1); max-width: 360px;
}
.toast.success { background: linear-gradient(135deg,#059669,#10b981); }
.toast.error { background: linear-gradient(135deg,#dc2626,#f43f5e); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px);} to { opacity: 1; transform: none;} }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px);} }

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: #eef2f7; border-radius: 10px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: skel 1.4s infinite; transform: translateX(-100%); }
@keyframes skel { to { transform: translateX(100%);} }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid, .testi-grid, .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.popular { transform: none; }
  .price-card.popular:hover { transform: translateY(-6px); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { min-height: 440px; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .step-arrow { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .live-preview { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-top { grid-template-columns: 1fr; }
  .app-side { width: 76px; }
  .app-side .brand span, .app-side .nav-label, .app-nav button span:not(.ico), .app-side .au-name, .app-side .au-mail { display: none; }
  .app-nav button { justify-content: center; padding: 13px; }
  .app-user { justify-content: center; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: grid; }
  .hero { padding: 76px 0 64px; }
  .features-grid, .testi-grid, .themes-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .app-top { padding: 12px 16px; flex-wrap: wrap; }
  .app-body { padding: 18px 14px; }
  .app-side { width: 62px; }
  .cta-band { padding: 46px 24px; }
  .theme-picker { grid-template-columns: repeat(3, 1fr); }
  .link-row { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .compare-table { display: block; overflow-x: auto; }
  .stats-band { padding: 40px 22px; gap: 22px; }
  .float-chip.f3 { display: none; }
  .toast-wrap { left: 16px; right: 16px; }
  .toast { max-width: none; }
}
