/* Pages publiques et admin (inscription, gestion des comptes) — reprend template 2/. */
:root {
  --bg: #14110f;
  --panel: #1d1a17;
  --panel2: #24201c;
  --line: #2e2925;
  --gold: #e8a33d;
  --gold-hi: #f2c477;
  --green: #62a981;
  --text: #f6f1e8;
  --soft: #d8cfc2;
  --muted: #a79c8d;
  --dim: #8a8073;
  --danger: #d9542b;
  --danger-bg: #3a1e14;
  --danger-fg: #f0a58a;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 'Figtree', system-ui, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
input::placeholder { color: var(--dim); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Barre du haut ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--panel2); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.brand:hover { color: var(--text); }
.badge-admin { background: var(--panel2); color: var(--gold); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.topbar-links { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.topbar-links .muted { color: var(--muted); }
.topbar-links a { font-weight: 700; }

/* ---------- Inscription : formules ---------- */
.plans { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px) 64px; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 620px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.intro h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.intro p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.switch { display: flex; background: var(--panel); border-radius: 999px; padding: 4px; gap: 4px; }
.switch button { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.switch button.on { background: var(--gold); color: var(--bg); }
.switch .save { font-size: 12px; color: var(--green); }
.switch button.on .save { color: #1e3328; }

.plan-grid { width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--panel2); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.plan.featured { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-head .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-size: 20px; font-weight: 800; }
.plan-desc { font-size: 14px; color: var(--muted); }
.plan.featured .plan-desc, .plan.featured .per, .plan.featured .note { color: #3a2a12; }
.pill-dark { background: var(--bg); color: var(--gold); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.per, .note { font-size: 14px; color: var(--muted); }
.note { font-size: 13px; margin-top: 2px; }
.plan-cta { display: block; width: 100%; background: var(--panel2); border-radius: 14px; padding: 15px; text-align: center; font-size: 15px; font-weight: 800; }
.plan-cta:hover { background: var(--line); }
.plan.featured .plan-cta { background: var(--bg); color: var(--text); }
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; color: var(--soft); }
.plan.featured .features { color: var(--bg); }
.features li { display: flex; gap: 10px; }
.features li::before { content: '✓'; color: var(--gold); font-weight: 800; }
.plan.featured .features li::before { color: var(--bg); }
.features strong { color: var(--text); }
.plan.featured .features strong { color: var(--bg); }
.tag-dev { background: var(--bg); color: var(--gold); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; margin-left: 6px; }
.fineprint { font-size: 13px; color: var(--dim); text-align: center; max-width: 560px; line-height: 1.6; margin: 0; }

/* ---------- Inscription : formulaire ---------- */
.signup { flex: 1; display: flex; justify-content: center; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 48px) 64px; }
.signup-inner { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 26px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); background: none; padding: 0; width: fit-content; }
.back-link:hover { color: var(--text); }
.signup h1 { margin: 0; font-size: clamp(26px, 5vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.chosen { display: flex; align-items: center; justify-content: space-between; background: var(--panel); border-radius: 14px; padding: 14px 16px; gap: 12px; margin-top: 8px; }
.chosen .name { font-size: 15px; font-weight: 800; color: var(--gold); }
.chosen .sum { font-size: 13px; color: var(--muted); }
.chosen .amount { font-size: 15px; font-weight: 800; white-space: nowrap; }
.fields { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; font-size: 15px; color: var(--text); outline: none; min-width: 0; width: 100%; }
.field input:focus { border-color: var(--gold); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; padding-top: 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); flex: none; }
.cta { display: block; width: 100%; background: var(--gold); color: var(--bg); border-radius: 14px; padding: 17px; text-align: center; font-size: 16px; font-weight: 800; }
.cta:hover { background: var(--gold-hi); color: var(--bg); }
.cta-note { font-size: 13px; color: var(--dim); text-align: center; margin: 12px 0 0; }
.alert { background: var(--danger-bg); color: var(--danger-fg); border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 700; }
.privacy { background: var(--panel); border: 1px solid var(--panel2); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.privacy strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inscription : terminé ---------- */
.done { flex: 1; display: flex; justify-content: center; align-items: center; padding: 48px clamp(16px, 4vw, 48px); }
.done-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.done-check { width: 84px; height: 84px; border-radius: 42px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.done h1 { margin: 0 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.done p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.done p strong { color: var(--text); }

[hidden] { display: none !important; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 4px; background: var(--panel); border-radius: 12px; padding: 4px; overflow-x: auto; max-width: 100%; }
.tabs a { padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.tabs a.on { background: var(--gold); color: var(--bg); }
.admin { padding: 24px clamp(16px, 3vw, 36px) 48px; display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 1280px; margin: 0 auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .lbl { font-size: 13px; color: var(--muted); }
.kpi .val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.kpi .val.gold { color: var(--gold); }
.kpi .hint { font-size: 12px; color: var(--muted); }
.kpi .hint.up { color: var(--green); }

.split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.split-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split-side { flex: 1 1 320px; max-width: 100%; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--panel2); border-radius: 12px; padding: 0 14px; }
.search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; padding: 13px 0; font: inherit; font-size: 14px; color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips a { padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--panel); color: var(--muted); }
.chips a.on { background: var(--text); color: var(--bg); }

.card { background: var(--panel); border-radius: 18px; }
.list { overflow: hidden; }
.urow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--panel2); color: var(--text); }
.urow:last-child { border-bottom: 0; }
a.urow:hover { background: #221e1a; color: var(--text); }
.urow.sel { background: var(--panel2); }
.avatar { width: 38px; height: 38px; border-radius: 19px; background: var(--panel2); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.avatar.big { width: 52px; height: 52px; border-radius: 26px; background: var(--gold); color: var(--bg); font-size: 17px; }
.who { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.who strong { font-size: 15px; }
.who small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pill { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill.free { background: var(--panel2); color: var(--soft); }
.pill.pro { background: var(--gold); color: var(--bg); }
.pill.elev { background: var(--green); color: var(--bg); }
.pill.off { background: var(--danger-bg); color: var(--danger-fg); }
.pill.trial { background: #2b2417; color: var(--gold); }
.usage { display: flex; flex-direction: column; gap: 5px; width: 110px; }
.usage span { font-size: 12px; color: var(--soft); }
.bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar.thick { height: 6px; border-radius: 3px; }
.last { font-size: 12px; color: var(--muted); width: 84px; }
.empty { padding: 28px; text-align: center; font-size: 14px; color: var(--muted); }

.detail { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.detail-head { display: flex; align-items: center; gap: 14px; }
.detail-head > div:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.detail-head strong { font-size: 19px; }
.detail-head small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.fact span { font-size: 12px; color: var(--muted); }
.fact strong { font-size: 16px; }
.section-lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; text-align: center; padding: 12px 0; border-radius: 12px; font-size: 14px; font-weight: 800; background: var(--panel2); color: var(--soft); }
.seg button.on { background: var(--gold); color: var(--bg); }
.small-muted { font-size: 12px; color: var(--muted); }
.btn { display: block; width: 100%; border-radius: 12px; padding: 12px; text-align: center; font-size: 14px; font-weight: 700; background: var(--panel2); color: var(--text); }
.btn:hover { background: var(--line); color: var(--text); }
.btn.light { background: var(--text); color: var(--bg); font-weight: 800; }
.btn.light:hover { background: #fff; }
.btn.danger { background: transparent; border: 1px solid #5a2a1c; color: var(--danger-fg); }
.btn.danger-solid { background: var(--danger); color: var(--text); font-weight: 800; }
.btn.sm { width: auto; padding: 9px 13px; font-size: 13px; display: inline-block; }
.row-btns { display: flex; gap: 8px; }
.row-btns > * { flex: 1; }
.confirm { background: var(--danger-bg); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.confirm p { margin: 0; font-size: 13px; color: var(--danger-fg); line-height: 1.5; }
.flash { border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 700; background: #1e3328; color: var(--green); }
.flash.err { background: var(--danger-bg); color: var(--danger-fg); }
.inline-form { margin: 0; }

.chart-card { flex: 2 1 480px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.chart-head strong { font-size: 17px; }
.chart-head span { font-size: 13px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: #3a342e; min-height: 2px; }
.bars i.now { background: var(--gold); }
.bars b { font-size: 11px; color: var(--soft); font-weight: 700; }
.bars small { font-size: 11px; color: var(--muted); }
.side-stack { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.box { padding: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.box > strong { font-size: 15px; }
.stack-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.kv { display: flex; justify-content: space-between; gap: 10px; }
.kv .k { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.kv .v { font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; }

.trial-left { display: flex; flex-direction: column; gap: 5px; width: 150px; }
.trial-left span { font-size: 13px; font-weight: 700; }


/* ---------- Présentation (presentation.php) ---------- */
.topnav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.topnav a { color: var(--soft); }
.topnav a:hover { color: var(--text); }
.topnav a.btn-gold { background: var(--gold); color: var(--bg); border-radius: 10px; padding: 10px 16px; font-weight: 800; }
.topnav a.btn-gold:hover { background: var(--gold-hi); }
.band { border-top: 1px solid var(--panel2); }
.wrap { max-width: 1160px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 80px); }
.wrap.rev { flex-wrap: wrap-reverse; }
.copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.copy.hero { gap: 22px; }
.hero-title { margin: 0; font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.hero-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-big { background: var(--gold); color: var(--bg); border-radius: 14px; padding: 16px 22px; font-size: 16px; font-weight: 800; }
.btn-big:hover { background: var(--gold-hi); color: var(--bg); }
.btn-big.dark { background: var(--panel2); color: var(--text); font-weight: 700; }
.btn-big.dark:hover { background: var(--line); color: var(--text); }
.hint-muted { font-size: 14px; color: var(--muted); }
.sec-head { display: flex; flex-direction: column; gap: 12px; }
.sec-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-title { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.feats { display: flex; flex-direction: column; gap: 22px; }
.feat { display: flex; gap: 16px; }
.feat-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--panel); display: flex; align-items: center; justify-content: center; flex: none; }
.feat-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feat-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; font-weight: 800; }
.feat-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.tag { border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tag.pro { background: var(--gold); color: var(--bg); }
.tag.elev { background: var(--green); color: var(--bg); }
.tag.soon { background: var(--panel2); color: var(--gold); font-weight: 700; }
.phone { flex: 0 0 auto; width: 312px; height: 640px; border-radius: 36px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 8px var(--panel); margin: 0 auto; background: var(--bg); }
.phone iframe { width: 390px; height: 800px; border: 0; transform: scale(.8); transform-origin: 0 0; pointer-events: none; }
.soon-card { background: var(--panel); border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.soon-card .feat-ico { width: 56px; height: 56px; border-radius: 18px; background: var(--panel2); }
.soon-card .txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.soon-card .txt strong { font-size: 20px; }
.soon-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.final { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.final h2 { margin: 0; font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.final p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.final .hero-cta { justify-content: center; }
.foot { border-top: 1px solid var(--panel2); padding: 22px clamp(16px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--dim); }
.foot a { color: var(--dim); }
@media (max-width: 380px) { .phone { transform: scale(.9); transform-origin: top center; } }
