:root{
  --bg: #f4f7ff;
  --panel: rgba(255,255,255,.78);
  --panel2: rgba(255,255,255,.95);
  --text: rgba(12,18,34,.92);
  --muted: rgba(12,18,34,.62);
  --stroke: rgba(12,18,34,.10);
  --brand: #5b5ce2;
  --brand2:#14b8a6;
  --danger:#ef4444;
  --shadow: 0 18px 60px rgba(12,18,34,.10);
  --radius: 18px;
  --radius2: 26px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(109,40,217,.12), transparent 60%),
    radial-gradient(900px 520px at 80% 30%, rgba(22,163,74,.10), transparent 55%),
    radial-gradient(900px 520px at 60% 90%, rgba(59,130,246,.08), transparent 55%),
    var(--bg);
  color: var(--text);
}

.grid.cols-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width: 980px){ .grid.cols-4{ grid-template-columns:repeat(2,1fr);} }
@media (max-width: 520px){ .grid.cols-4{ grid-template-columns:1fr;} }

a{color:inherit;text-decoration:none}
.container{
  max-width:1100px;
  margin:0 auto;
  padding:28px;
  overflow: visible; /* ✅ important pour sticky/stacking */
}

.nav{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 18px;border:1px solid var(--stroke);border-radius:var(--radius2);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  position:sticky;
  top:16px;
  backdrop-filter: blur(10px);

  /* ✅ FIX: la nav reste AU-DESSUS des cards */
  z-index: 9999;
  isolation: isolate;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.footer-link{
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  opacity: .85;
}
.footer-link:hover{
  text-decoration: underline;
  opacity: 1;
}

/* ✅ Logo plus grand */
.brand-logo{
  width:120px;
  height:auto;
  display:block;
  object-fit:contain;
}
@media (max-width: 520px){
  .brand-logo{ width:96px; }
}

.badge{
  font-size:12px;color:var(--muted);
  padding:4px 10px;border:1px solid var(--stroke);border-radius:999px;
  background: rgba(255,255,255,.05);
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:10px 14px;border-radius:14px;border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.btn:hover{background: rgba(255,255,255,.09)}
.btn.primary{
  border-color: rgba(124,58,237,.4);
  background: linear-gradient(180deg, rgba(124,58,237,.9), rgba(124,58,237,.65));
  box-shadow: 0 14px 30px rgba(124,58,237,.22);
}
.btn.ghost{background: transparent}
.btn.danger{border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.14)}

.row{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.grid{display:grid;gap:16px}
.grid.cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}
.grid.cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
@media(max-width:900px){.grid.cols-2,.grid.cols-3{grid-template-columns:1fr}}

.card{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  position: relative; /* ✅ aide l’empilement, sans prendre le dessus sur la nav */
  z-index: 1;
}
.card h3{margin:0 0 8px 0}
.muted{color:var(--muted)}

.hero{
  margin-top:16px;
  padding:26px;
  border-radius: var(--radius2);
  border:1px solid var(--stroke);
  background:
    radial-gradient(500px 260px at 10% 10%, rgba(124,58,237,.28), transparent 60%),
    radial-gradient(520px 280px at 90% 30%, rgba(34,197,94,.18), transparent 60%),
    rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.hero h1{margin:0 0 8px 0;font-size:34px;letter-spacing:-.3px}
.hero p{margin:0;color:var(--muted);max-width:70ch;line-height:1.5}

.input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
textarea{min-height:110px;resize:vertical}
label{display:block;margin:0 0 6px 0;color:var(--muted);font-size:13px}
.form-row{display:grid;gap:12px;grid-template-columns:1fr 1fr}
@media(max-width:900px){.form-row{grid-template-columns:1fr}}

.kpi{
  padding:14px 16px;border-radius: 16px;border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
}
.kpi .val{font-size:22px;font-weight:800}
.kpi .lbl{font-size:12px;color:var(--muted)}

.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th{color:var(--muted);font-size:12px;text-align:left;padding:0 10px}
.table td{
  padding:12px 10px;
  background: rgba(255,255,255,.05);
  border-top:1px solid var(--stroke);
  border-bottom:1px solid var(--stroke);
}
.table td:first-child{border-left:1px solid var(--stroke);border-top-left-radius:14px;border-bottom-left-radius:14px}
.table td:last-child{border-right:1px solid var(--stroke);border-top-right-radius:14px;border-bottom-right-radius:14px}

.toast{
  position:fixed;right:18px;bottom:18px;z-index:50;
  padding:12px 14px;border:1px solid var(--stroke);border-radius:16px;
  background: rgba(20,20,30,.88);backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display:none;max-width:360px;
}
.toast.show{display:block;animation: pop .18s ease-out}
@keyframes pop{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}

.linktree,
.easylink{
  max-width:520px;margin:40px auto;padding:24px;
  border:1px solid var(--stroke);
  background: var(--panel2);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

/* Avatar (lettre) */
.avatar{
  width:56px;
  height:56px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

/* Avatar IMAGE : pas de fond, pas de padding, image cover */
.avatar.avatar-img{
  background: transparent !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--stroke);
}
.avatar.avatar-img img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:18px;
}

.lbtn{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
}
.lbtn:hover{background: rgba(0,0,0,.26)}
.small{font-size:12px;color:var(--muted)}
.footer{margin:26px 0 0 0;color:var(--muted);font-size:12px;text-align:center}


/* --- UI polish v3.4 --- */
.card{ backdrop-filter: blur(10px); }
.hero h1{ letter-spacing:-.02em; }
.input{ border:1px solid var(--stroke); background:rgba(255,255,255,.92); }
.input:focus{ outline:none; box-shadow:0 0 0 4px rgba(91,92,226,.12); border-color:rgba(91,92,226,.45); }
.btn{ border:1px solid var(--stroke); background:rgba(255,255,255,.86); }
.btn:hover{ transform: translateY(-1px); }
.btn.primary{ background: linear-gradient(135deg, rgba(91,92,226,.95), rgba(20,184,166,.92)); border-color: rgba(91,92,226,.35); }
.btn.danger{ background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.35); }
.badge{ border:1px solid var(--stroke); background: rgba(255,255,255,.72); }
.lbtn{ border:1px solid var(--stroke); background: rgba(255,255,255,.92); }
.lbtn:hover{ box-shadow: 0 14px 35px rgba(12,18,34,.10); transform: translateY(-1px); }
.easylink{ border:1px solid var(--stroke); box-shadow: var(--shadow); }
.btn i { margin-right: .5rem; }

/* ===== Landing (Home) ===== */
.landing{ max-width:1100px; margin:0 auto; padding:10px 0 24px; }
.landing-hero{ display:grid; grid-template-columns:1.15fr .85fr; gap:18px; align-items:center; margin-top:16px; }
@media (max-width: 900px){ .landing-hero{ grid-template-columns:1fr; } }

.hero-kicker{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.hero-title{ font-size:44px; line-height:1.05; letter-spacing:-.02em; margin:12px 0; }
@media (max-width: 900px){ .hero-title{ font-size:36px; } }
.hero-lead{ color:var(--muted); font-size:16px; line-height:1.65; margin:0; }
.hero-cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.hero-proof{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.proof-item{ display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:16px;
  border:1px solid var(--stroke); background:rgba(255,255,255,.75); font-weight:800; }

.mock-wrap{ position:relative; }
.mock-phone{ border-radius:26px; border:1px solid var(--stroke); background:rgba(255,255,255,.92); box-shadow:var(--shadow); overflow:hidden; }
.mock-head{ display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid var(--stroke); }
.dots{ display:flex; gap:6px; }
.dots span{ width:8px; height:8px; border-radius:99px; background:rgba(12,18,34,.18); display:inline-block; }
.mock-card{ padding:16px; }
.mock-avatar{ width:56px; height:56px; border-radius:18px; display:flex; align-items:center; justify-content:center;
  background:rgba(124,58,237,.12); font-weight:900; }
.mock-name{ font-weight:900; font-size:18px; margin-top:10px; }
.mock-bio{ color:var(--muted); font-size:13px; margin-top:4px; margin-bottom:12px; }
.mock-btn{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:16px;
  border:1px solid var(--stroke); background:rgba(255,255,255,.96); margin-top:10px;
  text-decoration:none; color:var(--text); font-weight:900; }
.mock-btn:hover{ transform:translateY(-1px); box-shadow:0 14px 35px rgba(12,18,34,.10); }
.mock-foot{ margin-top:14px; font-size:12px; color:var(--muted); }
.mock-qr{ margin-top:12px; display:flex; justify-content:flex-end; }
.mock-qr-box{ width:190px; padding:14px; border-radius:18px; border:1px dashed var(--stroke);
  background:rgba(255,255,255,.82); display:flex; flex-direction:column; align-items:center; gap:6px; }

.landing-features{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:16px; }
@media (max-width: 900px){ .landing-features{ grid-template-columns:1fr; } }
.feature .ficon{ width:44px; height:44px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background:rgba(124,58,237,.12); }
.feature h3{ margin:10px 0 6px; }
.feature p{ margin:0; color:var(--muted); line-height:1.6; }

.landing-pricing{ margin-top:16px; }
.pricing{ display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:center; }
@media (max-width: 900px){ .pricing{ grid-template-columns:1fr; } }
.price-line{ display:flex; align-items:baseline; gap:12px; margin-top:10px; }
.price-amount{ font-size:46px; font-weight:900; letter-spacing:-.02em; }
.price-desc{ color:var(--muted); }
.pricing-list{ display:grid; gap:10px; padding:14px; border-radius:18px; border:1px solid var(--stroke); background:rgba(255,255,255,.8); }
.pricing-list i{ margin-right:8px; }
.landing-footer{ margin-top:18px; padding:8px 0; text-align:center; }
.landing-seo{ margin-top:16px; }
.landing-seo h2{ font-size:20px; margin:0; }
.landing-seo p{ margin-top:8px; }

/* ⚠️ Doublon brand-logo plus bas, je laisse tel quel comme tu l’avais */
.brand-logo{
  width:56px;height:56px;border-radius:18px;overflow:hidden;
  border:1px solid var(--stroke);background:#fff;
  display:flex;align-items:center;justify-content:center;
}
.brand-logo img{width:100%;height:100%;object-fit:cover;display:block;}
.brand-logo--fallback{font-weight:900;background:rgba(0,0,0,.04);}

.site-logo{
  width:112px;
  height:42px;
  object-fit:contain;
  display:block;
}

/* ===== EasyLink public : plus subtil ===== */
.easylink-public{
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 16px 22px;
}

.easylink-head{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:16px;
}

.easylink-logo{
  width:62px;
  height:62px;
  border-radius:20px;
  object-fit:cover;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  display:block;
}

.easylink-logo-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color: var(--text);
  background: rgba(0,0,0,.04);
}

.easylink-title{
  font-weight:900;
  font-size:22px;
  line-height:1.2;
}

.easylink-bio{
  margin-top:4px;
  font-size:13px;
  opacity:.72;
}

.easylink-links{
  margin-top:16px;
  display:grid;
  gap:10px;
}

.lbtn-public{
  border:1px solid rgba(0,0,0,.07);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration:none;
  color: inherit;
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.lbtn-public:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.85);
  border-color: rgba(0,0,0,.12);
}

.lbtn-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.lbtn-icon{
  width:34px;
  height:34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.06);
  flex: 0 0 auto;
}

.lbtn-label{
  font-weight:700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lbtn-right{
  opacity:.55;
  font-size:14px;
  flex:0 0 auto;
}

.easylink-footer{
  margin-top:18px;
  text-align:center;
}

.easylink-powered{
  font-size:12px;
  opacity:.55;
  text-decoration:none;
  color: inherit;
}

.easylink-powered span{
  font-weight:800;
}

.easylink-powered:hover{
  opacity:.8;
  text-decoration:underline;
}

#share-sheet{ position:fixed; inset:0; display:none; z-index:9999; }
#share-sheet.open{ display:block; }

.share-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.35);
}

.share-panel{
  position:absolute; left:50%; bottom:14px; transform:translateX(-50%);
  width:min(520px, calc(100% - 22px));
  background: rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
  backdrop-filter: blur(12px);
}

.share-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.share-title{ font-weight:900; font-size:16px; }
.share-close{
  width:34px;height:34px;border-radius:12px;border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.7); cursor:pointer;
}

.share-sub{ margin-top:6px; font-size:12px; opacity:.7; }

.share-input{
  width:100%; margin-top:10px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.85);
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
}

.share-actions{ display:flex; gap:10px; margin-top:10px; }
.share-actions .btn{ flex:1; justify-content:center; }

.icon-btn{
  width:38px;height:38px;border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.7);
  display:inline-flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.icon-btn:hover{ background:rgba(255,255,255,.92); }

#share-menu{ position:fixed; inset:0; display:none; z-index:9999; }
#share-menu.open{ display:block; }
.share-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.35); }
.share-panel{
  position:absolute; left:50%; bottom:14px; transform:translateX(-50%);
  width:min(520px, calc(100% - 22px));
  background:rgba(255,255,255,.95);
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  padding:14px;
  backdrop-filter: blur(10px);
}
.share-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.share-title{ font-weight:900; }
.share-close{
  width:34px;height:34px;border-radius:12px;border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.7); cursor:pointer;
}
.share-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.share-item{
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.7);
  border-radius:14px;
  padding:10px;
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
}
.share-item i{ font-size:18px; }
.share-item span{ font-size:12px; opacity:.85; font-weight:700; text-align:center; }
.share-input{
  width:100%;
  margin-top:10px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.85);
  border-radius:14px;
  padding:10px 12px;
  font-size:13px;
}

/* Ligne de lien (version avec bouton share) */
.lrow{
  display:grid;
  grid-template-columns: 1fr 42px 28px;
  align-items:center;
  gap:10px;
  padding:10px 12px;
}

/* Zone cliquable principale */
.lmain{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}

/* Icône ronde */
.licon{
  width:34px;height:34px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.75);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

/* Label */
.llabel{
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Bouton share compact */
.lshare{
  width:42px;height:36px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.75);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.lshare:hover{ background:rgba(255,255,255,.95); }

/* Flèche */
.lout{
  text-align:center;
  opacity:.55;
  font-weight:900;
}
