:root{
  --brand:#6024F0; --brand-2:#8B3BFF; --brand-50:#f4efff; --brand-100:#e9e0ff; --brand-700:#4a14c4;
  --money:#0FB07A; --money-bg:#e6f9f1; --amber:#F5A623;
  --ink:#0D0B1F; --ink2:#56536b; --ink3:#9794a8; --line:#eeebf6; --soft:#faf9ff;
  --grad:linear-gradient(135deg,#6024F0,#9B4DFF);
  --sat:env(safe-area-inset-top,0px); --sab:env(safe-area-inset-bottom,0px);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;overflow:hidden}
body{font-family:'Outfit','Segoe UI',system-ui,sans-serif;background:#ece7f6;color:var(--ink);-webkit-font-smoothing:antialiased;user-select:none}
h1,h2,h3,h4{font-family:'Outfit',sans-serif;letter-spacing:-.02em;line-height:1.1}
i[data-lucide]{width:1em;height:1em;stroke-width:2;pointer-events:none}
button{font-family:inherit}

.app{position:fixed;inset:0;display:flex;flex-direction:column;max-width:520px;margin:0 auto;background:#fff}
.statusbar-pad{height:max(var(--sat),26px);background:#fff;flex-shrink:0}

.views{flex:1;position:relative;overflow:hidden}
.view{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;display:none;padding-bottom:14px}
.view.active{display:block;animation:fade .3s ease}
.view::-webkit-scrollbar{width:0}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px 14px}
.topbar .greet{font-size:12px;color:var(--ink2);font-weight:500}
.topbar .name{font-family:'Outfit';font-size:22px;font-weight:700}
.topbar .right{display:flex;gap:8px;align-items:center}
.langchip{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 12px;border-radius:13px;background:var(--soft);border:1px solid var(--line);color:var(--ink);font-size:12px;font-weight:600;cursor:pointer}
.langchip i{width:16px;height:16px;color:var(--brand)}
.bell{width:42px;height:42px;border-radius:13px;background:var(--soft);border:1px solid var(--line);display:grid;place-items:center;color:var(--ink);position:relative;cursor:pointer}
.bell i{width:20px;height:20px}
.bell.dot::after{content:'';position:absolute;top:11px;right:11px;width:7px;height:7px;background:var(--brand);border-radius:50%;border:1.5px solid #fff}

.sectit{font-family:'Outfit';font-size:16px;font-weight:700;margin:20px 18px 12px;display:flex;justify-content:space-between;align-items:center}
.sectit a{font-size:12.5px;color:var(--brand);font-weight:600;cursor:pointer}

.promo{margin:0 18px;border-radius:22px;background:var(--grad);color:#fff;padding:18px;position:relative;overflow:hidden}
.promo::after{content:'';position:absolute;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.12);top:-60px;right:-40px}
.promo .t{font-family:'Outfit';font-weight:700;font-size:17px;position:relative}
.promo .s{font-size:12.5px;opacity:.9;margin-top:3px;position:relative}
.promo .bar{height:7px;border-radius:10px;background:rgba(255,255,255,.25);margin-top:14px;overflow:hidden;position:relative}
.promo .bar i{display:block;height:100%;background:#fff;border-radius:10px;transition:width .5s ease}
.promo .resume{margin-top:14px;background:#fff;color:var(--brand-700);border:none;border-radius:12px;padding:11px 16px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.promo .resume i{width:16px;height:16px}

.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:18px}
.qa{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:13px 6px;text-align:center;cursor:pointer;transition:.15s}
.qa:active{transform:scale(.95);background:var(--brand-50)}
.qa .ic{width:40px;height:40px;border-radius:12px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--brand);margin:0 auto 7px}
.qa .ic i{width:20px;height:20px}
.qa .l{font-size:10.5px;font-weight:600}

.clist{padding:0 18px}
.citem{display:flex;gap:13px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px;margin-bottom:11px;cursor:pointer;transition:.15s}
.citem:active{transform:scale(.99);background:var(--soft)}
.cthumb{width:54px;height:54px;border-radius:14px;background:var(--grad);display:grid;place-items:center;color:#fff;flex-shrink:0;font-family:'Outfit';font-weight:700;font-size:14px}
.cthumb.alt{background:linear-gradient(135deg,#0D0B1F,#3a1f78)}
.cthumb.g3{background:linear-gradient(135deg,#0FB07A,#36d39e)}
.citem .ct{font-weight:600;font-size:14px}
.citem .cs{font-size:11.5px;color:var(--ink3);margin-top:3px;display:flex;gap:10px;flex-wrap:wrap}
.citem .cs span{display:inline-flex;align-items:center;gap:4px}.citem .cs i{width:12px;height:12px}
.citem .cs .off{color:var(--money)}
.citem .chev{margin-left:auto;color:var(--ink3)}.citem .chev i{width:20px;height:20px}

.pgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 18px}
.pcard{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;cursor:pointer;transition:.15s}
.pcard:active{transform:scale(.98)}
.pcard .pimg{height:104px;background:linear-gradient(135deg,#f4efff,#faf9ff);display:grid;place-items:center;color:var(--brand);position:relative}
.pcard .pimg i{width:36px;height:36px;opacity:.5}
.pcard .pimg .tg{position:absolute;top:8px;left:8px;font-size:9.5px;color:#fff;background:var(--brand);padding:3px 8px;border-radius:100px;font-weight:600}
.pcard .pb{padding:12px}
.pcard h4{font-size:13px;font-weight:600;margin-bottom:7px;line-height:1.3}
.pcard .pr{font-family:'Outfit';font-weight:700;font-size:15px}
.pcard .mg{font-size:10px;color:var(--money);font-weight:600;background:var(--money-bg);padding:3px 7px;border-radius:7px;display:inline-block;margin-top:6px}

.route-sel{display:flex;align-items:center;gap:8px;background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:14px 15px;margin:0 18px 16px}
.route-sel .leg{flex:1;text-align:center}
.route-sel .leg .lab{font-size:10px;color:var(--ink3);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.route-sel .leg .val{font-size:14px;font-weight:600;font-family:'Outfit';margin-top:3px}
.route-sel .arrow{color:var(--brand)}.route-sel .arrow i{width:18px;height:18px}
.weightbox{margin:0 18px 18px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}
.weightbox .wtop{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.weightbox .wtop .wl{font-size:13px;font-weight:600}
.weightbox .wtop .wv{font-family:'Outfit';font-size:22px;font-weight:800;color:var(--brand)}
input[type=range]{-webkit-appearance:none;width:100%;height:6px;border-radius:10px;background:var(--brand-100);outline:none;margin-top:10px}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border-radius:50%;background:var(--brand);cursor:pointer;border:4px solid #fff;box-shadow:0 3px 10px rgba(96,36,240,.4)}
.trlist{padding:0 18px}
.trcard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:11px}
.trcard.best{border-color:var(--brand);box-shadow:0 8px 22px rgba(96,36,240,.12)}
.trcard .trtop{display:flex;align-items:flex-start;gap:12px}
.trcard .av{width:44px;height:44px;border-radius:12px;background:var(--grad);color:#fff;display:grid;place-items:center;font-family:'Outfit';font-weight:700;font-size:14px;flex-shrink:0}
.trcard h4{font-size:14px;font-weight:700}
.trcard .meta{font-size:11px;color:var(--ink2);margin-top:3px;display:flex;gap:8px}
.trcard .meta .star{color:var(--amber)}
.vbadge{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;color:var(--money);background:var(--money-bg);padding:3px 8px;border-radius:100px;margin-top:5px}
.vbadge i{width:12px;height:12px}
.trcard .badge-best{margin-left:auto;font-size:10px;font-weight:600;color:#fff;background:var(--brand);padding:4px 9px;border-radius:100px;flex-shrink:0}
.trcard .calc{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.trcard .calc .lab{font-size:11px;color:var(--ink2)}
.trcard .calc .tot{font-family:'Outfit';font-size:18px;font-weight:800}
.trcard .calc .book{background:var(--brand);color:#fff;border:none;border-radius:11px;padding:10px 15px;font-weight:600;font-size:12.5px;cursor:pointer}

.profhead{text-align:center;padding:8px 18px 18px}
.profhead .ava{width:84px;height:84px;border-radius:28px;background:var(--grad);color:#fff;display:grid;place-items:center;font-family:'Outfit';font-weight:700;font-size:30px;margin:0 auto 12px;box-shadow:0 12px 30px rgba(96,36,240,.3)}
.profhead h3{font-size:19px;font-weight:700}
.profhead .mail{font-size:12.5px;color:var(--ink3);margin-top:2px}
.profhead .planbadge{display:inline-flex;align-items:center;gap:6px;margin-top:10px;background:var(--ink);color:#fff;font-size:11.5px;font-weight:600;padding:7px 14px;border-radius:100px}
.profhead .planbadge i{width:14px;height:14px;color:var(--amber)}
.pstats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 18px 6px}
.pstat{background:var(--soft);border:1px solid var(--line);border-radius:15px;padding:14px 8px;text-align:center}
.pstat .n{font-family:'Outfit';font-size:20px;font-weight:800}
.pstat .l{font-size:10px;color:var(--ink2);margin-top:2px}
.menu{padding:14px 18px 0}
.mrow{display:flex;align-items:center;gap:13px;padding:15px 4px;border-bottom:1px solid var(--line);cursor:pointer}
.mrow:active{opacity:.6}
.mrow .ic{width:38px;height:38px;border-radius:12px;background:var(--brand-50);color:var(--brand);display:grid;place-items:center}
.mrow .ic i{width:18px;height:18px}
.mrow .ml{font-size:14px;font-weight:600;flex:1}
.mrow .chev{color:var(--ink3)}.mrow .chev i{width:18px;height:18px}

/* SHEETS */
.sheet{position:fixed;inset:0;max-width:520px;margin:0 auto;background:#fff;z-index:80;transform:translateX(100vw);transition:transform .3s cubic-bezier(.3,.8,.35,1);overflow-y:auto;display:flex;flex-direction:column}
.sheet.open{transform:none}
.sheet::-webkit-scrollbar{width:0}
.sheet-top{position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);z-index:5;display:flex;align-items:center;gap:12px;padding:calc(max(var(--sat),26px) + 10px) 18px 12px}
.backbtn{width:40px;height:40px;border-radius:12px;background:var(--soft);border:1px solid var(--line);display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.backbtn i{width:20px;height:20px}
.sheet-top .stt{font-family:'Outfit';font-weight:700;font-size:16px}
.dlbtn{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:11px;padding:9px 13px;font-size:12.5px;font-weight:600;cursor:pointer}
.dlbtn i{width:16px;height:16px;color:var(--brand)}
.dlbtn.done{background:var(--money-bg);border-color:transparent;color:var(--money)}
.dlbtn.done i{color:var(--money)}
.cover-lg{height:170px;margin:0 18px;border-radius:22px;background:var(--grad);position:relative;display:flex;align-items:flex-end;padding:16px;color:#fff}
.cover-lg.alt{background:linear-gradient(135deg,#0D0B1F,#3a1f78)}
.cover-lg.g3{background:linear-gradient(135deg,#0FB07A,#36d39e)}
.cover-lg .play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;color:var(--brand);cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.cover-lg .play i{width:28px;height:28px;margin-left:3px}
.cover-lg .flag{position:absolute;top:14px;left:14px;background:rgba(255,255,255,.95);color:var(--ink);font-size:11px;font-weight:600;padding:5px 11px;border-radius:100px}
.dbody{padding:16px 18px 20px;flex:1}
.dbody h2{font-size:21px;font-weight:800;margin-bottom:8px}
.dbody .dmeta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.dbody .dmeta span{font-size:11.5px;color:var(--brand-700);background:var(--brand-50);padding:5px 11px;border-radius:100px;font-weight:600;display:inline-flex;align-items:center;gap:5px}
.dbody .dmeta i{width:13px;height:13px}
.dbody p.desc{font-size:13.5px;color:var(--ink2);line-height:1.6;margin-bottom:18px}
.modtit{font-family:'Outfit';font-weight:700;font-size:15px;margin-bottom:12px}
.mod{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;margin-bottom:9px;cursor:pointer}
.mod.done{background:var(--soft)}
.mod .mi{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}
.mod.done .mi{background:var(--money-bg);color:var(--money)}
.mod .mi.lock{background:var(--soft);color:var(--ink3)}
.mod .mi.playm{background:var(--brand-50);color:var(--brand)}
.mod .mi i{width:17px;height:17px}
.mod .mt{font-size:13px;font-weight:600}
.mod .ms{font-size:11px;color:var(--ink3)}
.mod .mnum{margin-left:auto;font-size:11px;color:var(--ink3)}

.bottom-cta{position:sticky;bottom:0;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:14px 18px calc(14px + var(--sab));display:flex;gap:10px;align-items:center}
.bottom-cta .btn-main{flex:1;background:var(--brand);color:#fff;border:none;border-radius:13px;padding:15px;font-weight:600;font-size:14.5px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}
.bottom-cta .btn-main.ghost{flex:0 0 auto;background:var(--soft);color:var(--brand-700);border:1px solid var(--line)}
.bottom-cta .btn-main i{width:18px;height:18px}

.pdimg{height:210px;margin:0 18px;border-radius:22px;background:linear-gradient(135deg,#f4efff,#ece2ff);display:grid;place-items:center;color:var(--brand)}
.pdimg i{width:72px;height:72px;opacity:.5}
.pdinfo{padding:16px 18px;flex:1}
.pdinfo .tg{font-size:11px;color:#fff;background:var(--brand);padding:4px 10px;border-radius:100px;font-weight:600;display:inline-block;margin-bottom:10px}
.pdinfo h2{font-size:22px;font-weight:800;margin-bottom:12px}
.pdrow{display:flex;gap:10px;margin-bottom:18px}
.pdbox{flex:1;background:var(--soft);border:1px solid var(--line);border-radius:15px;padding:13px;text-align:center}
.pdbox .l{font-size:10.5px;color:var(--ink2)}
.pdbox .v{font-family:'Outfit';font-weight:800;font-size:17px;margin-top:3px}
.pdbox.m .v{color:var(--money)}

/* tracking */
.ofbanner{display:flex;align-items:center;gap:8px;margin:0 18px 14px;background:var(--money-bg);color:#0a7a55;border-radius:13px;padding:11px 13px;font-size:12px;font-weight:600}
.ofbanner i{width:16px;height:16px}
.trackcard{margin:0 18px 14px;background:var(--grad);color:#fff;border-radius:20px;padding:16px;position:relative;overflow:hidden}
.trackcard::after{content:'';position:absolute;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.1);top:-50px;right:-30px}
.trackcard .tnum{font-size:11px;opacity:.85;position:relative}
.trackcard h4{font-size:16px;font-weight:700;margin:2px 0 12px;position:relative}
.trackcard .trow{display:flex;justify-content:space-between;font-size:12px;margin-top:7px;position:relative}
.trackcard .trow .v{font-weight:600}
.timeline{padding:4px 18px 14px}
.tstep{display:flex;gap:14px;position:relative;padding-bottom:22px}
.tstep .marker{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;z-index:2;background:var(--soft);color:var(--ink3);border:2px solid var(--line)}
.tstep .marker i{width:15px;height:15px}
.tstep.done .marker{background:var(--money);color:#fff;border-color:var(--money)}
.tstep.current .marker{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 0 0 5px var(--brand-50)}
.tstep::before{content:'';position:absolute;left:15px;top:32px;bottom:0;width:2px;background:var(--line)}
.tstep.done::before{background:var(--money)}
.tstep:last-child{padding-bottom:0}
.tstep:last-child::before{display:none}
.tstep .tinfo .tt{font-size:13.5px;font-weight:600}
.tstep.pending .tinfo .tt{color:var(--ink3)}
.tstep .tinfo .ts{font-size:11.5px;color:var(--ink3);margin-top:1px}

/* tabbar */
.tabbar{flex-shrink:0;height:64px;padding-bottom:var(--sab);box-sizing:content-box;background:rgba(255,255,255,.96);border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:center}
.tab{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--ink3);cursor:pointer;font-size:9.5px;font-weight:600;transition:.15s;padding:6px 10px;border-radius:12px}
.tab i{width:21px;height:21px}
.tab.on{color:var(--brand)}
.tab:active{transform:scale(.9)}

/* toast */
.toast{position:fixed;left:50%;bottom:calc(82px + var(--sab));transform:translateX(-50%) translateY(20px);background:var(--ink);color:#fff;font-size:12.5px;font-weight:500;padding:12px 18px;border-radius:100px;z-index:90;display:flex;align-items:center;gap:8px;opacity:0;transition:.3s;pointer-events:none;white-space:nowrap;max-width:90%}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast i{width:16px;height:16px;color:var(--money)}

/* onboarding / splash overlay */
.onb{position:fixed;inset:0;z-index:200;background:var(--grad);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:40px 30px calc(40px + var(--sab))}
.onb.hide{display:none}
.onb .logo{width:88px;height:88px;border-radius:26px;background:rgba(255,255,255,.16);display:grid;place-items:center;margin-bottom:26px;border:1px solid rgba(255,255,255,.25)}
.onb .logo i{width:46px;height:46px;color:#fff}
.onb h1{font-size:34px;font-weight:800;margin-bottom:12px}
.onb p{font-size:15px;opacity:.92;max-width:320px;margin-bottom:32px;line-height:1.5}
.onb .langrow{display:flex;gap:10px;margin-bottom:22px}
.onb .lpick{padding:10px 18px;border-radius:100px;border:1px solid rgba(255,255,255,.4);font-size:13px;font-weight:600;cursor:pointer;background:transparent;color:#fff}
.onb .lpick.sel{background:#fff;color:var(--brand-700);border-color:#fff}
.onb .start{background:#fff;color:var(--brand-700);border:none;border-radius:14px;padding:16px 34px;font-weight:700;font-size:15px;cursor:pointer;display:inline-flex;gap:8px;align-items:center}
.onb .start i{width:18px;height:18px}

/* mobile money */
.momo-c{margin-bottom:16px}
.momo-c .h{font-family:'Outfit';font-weight:700;font-size:14px;margin-bottom:8px}
.momo-c .r{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;background:var(--soft);border:1px solid var(--line);border-radius:12px;margin-bottom:7px;font-size:13px}
.momo-c .r .fee{font-weight:700;color:var(--brand)}
.momo-c .r .fee.nc{color:var(--ink3);font-weight:500}

/* soon badge on course */
.cthumb.soon{opacity:.55}
.soontag{font-size:10.5px;color:var(--amber);background:var(--amber-bg);padding:3px 9px;border-radius:100px;font-weight:600}

/* ===== Ombres portées subtiles (délimitation des conteneurs) ===== */
.app{box-shadow:0 0 0 1px rgba(13,11,31,.03), 0 14px 60px rgba(13,11,31,.10)}
.statusbar-pad{background:#fff}
.promo{box-shadow:0 12px 28px rgba(96,36,240,.22)}
.qa{box-shadow:0 2px 7px rgba(13,11,31,.05)}
.citem{box-shadow:0 4px 14px rgba(13,11,31,.06)}
.pcard{box-shadow:0 4px 14px rgba(13,11,31,.06)}
.trcard{box-shadow:0 4px 14px rgba(13,11,31,.06)}
.trcard.best{box-shadow:0 8px 22px rgba(96,36,240,.16)}
.mod{box-shadow:0 1px 5px rgba(13,11,31,.04)}
.weightbox,.route-sel{box-shadow:0 4px 14px rgba(13,11,31,.06)}
.cover-lg{box-shadow:0 10px 26px rgba(96,36,240,.20)}
.trackcard{box-shadow:0 12px 28px rgba(96,36,240,.22)}
.pstat{box-shadow:0 2px 7px rgba(13,11,31,.05)}
.momo-c .r{box-shadow:0 1px 5px rgba(13,11,31,.04)}
.tabbar{box-shadow:0 -2px 16px rgba(13,11,31,.06)}
.bell,.langchip{box-shadow:0 2px 7px rgba(13,11,31,.05)}
.pdbox{box-shadow:0 2px 7px rgba(13,11,31,.05)}
.sheet-top{box-shadow:0 4px 14px rgba(13,11,31,.04)}

/* ===== Responsive : adaptation aux petits écrans ===== */
@media (max-width:380px){
  .topbar{padding:12px 14px}
  .topbar .name{font-size:20px}
  .quick{gap:8px;padding:14px}
  .qa{padding:11px 4px}
  .qa .l{font-size:10px}
  .qa .ic{width:36px;height:36px}
  .promo{margin:0 14px;padding:16px}
  .clist,.pgrid,.trlist,.route-sel,.weightbox{padding-left:14px;padding-right:14px}
  .route-sel,.weightbox{margin-left:14px;margin-right:14px}
  .pgrid{gap:10px}
  .sectit{margin:18px 14px 10px}
  .tab{font-size:9px;padding:6px 5px}
  .tab i{width:20px;height:20px}
}
@media (max-width:330px){
  .quick{grid-template-columns:repeat(4,1fr);gap:6px}
  .qa .l{font-size:9px}
  .tab span{font-size:8.5px}
}

/* ===== Auth (connexion / inscription) ===== */
.auth-form{width:100%;max-width:340px;display:flex;flex-direction:column;gap:12px;margin-top:4px}
.auth-field input{width:100%;height:50px;border-radius:14px;border:1px solid rgba(255,255,255,.40);background:rgba(255,255,255,.12);color:#fff;padding:0 16px;font-size:15px;font-family:inherit;outline:none}
.auth-field input::placeholder{color:rgba(255,255,255,.72)}
.auth-error{color:#ffdada;font-size:13px;min-height:16px;margin:0;text-align:center}
.auth-submit{width:100%;justify-content:center;margin-top:2px}
.auth-switch{font-size:13px;color:rgba(255,255,255,.92);margin:0;text-align:center}
.auth-switch a{color:#fff;font-weight:700;text-decoration:underline;cursor:pointer}
.auth-skip{background:transparent;border:none;color:rgba(255,255,255,.85);font-size:13px;margin-top:2px;cursor:pointer;font-family:inherit;text-decoration:underline}

/* ===== Fil de promos / annonces (accueil) ===== */
.promo-item{margin:0 18px 10px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 3px 12px rgba(13,11,31,.05)}
.promo-k{display:inline-block;font-size:10.5px;font-weight:700;color:var(--ink2);background:var(--soft);padding:3px 9px;border-radius:100px;margin-bottom:7px}
.promo-k.k-promo{background:#fff0e8;color:#e0470f}
.promo-tt{font-weight:700;font-size:14.5px;margin-bottom:3px}
.promo-bd{font-size:12.5px;color:var(--ink2);line-height:1.5}
.promo-cta{margin-top:10px;background:var(--brand);color:#fff;border:none;border-radius:10px;padding:8px 14px;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit}

/* ===== Crédits / paliers / fournisseurs ===== */
.creditchip{display:inline-flex;align-items:center;gap:5px;height:42px;padding:0 12px;border-radius:13px;background:var(--brand);color:#fff;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 2px 7px rgba(96,36,240,.3)}
.creditchip i{width:16px;height:16px}
.muted{color:var(--ink3);font-size:13px}

.wallet-bal{background:var(--grad);color:#fff;border-radius:18px;padding:16px 18px;display:flex;justify-content:space-between;align-items:center}
.wallet-bal .wb-l{font-size:12.5px;opacity:.9}
.wallet-bal .wb-n{font-family:'Outfit';font-weight:800;font-size:22px}
.pack{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-bottom:10px;cursor:pointer;box-shadow:0 3px 12px rgba(13,11,31,.05);transition:.15s}
.pack:active{transform:scale(.99);background:var(--soft)}
.pack .pk-t{font-weight:700;font-size:15px}
.pack .pk-s{font-size:12.5px;color:var(--ink2);margin-top:2px}
.pack .pk-bonus{color:var(--money);font-weight:700}
.pack .pk-price{font-family:'Outfit';font-weight:800;font-size:16px;color:var(--brand)}

.tiers-cur{font-size:12.5px;color:var(--ink2);background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:10px 13px;margin-bottom:14px;font-weight:600}
.tier{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:12px;box-shadow:0 3px 12px rgba(13,11,31,.05)}
.tier.owned{border-color:var(--brand);box-shadow:0 8px 22px rgba(96,36,240,.12)}
.tier .tier-h{display:flex;justify-content:space-between;align-items:baseline}
.tier .tier-n{font-family:'Outfit';font-weight:800;font-size:18px}
.tier .tier-p{font-family:'Outfit';font-weight:800;font-size:18px;color:var(--brand)}
.tier .tier-p span{font-size:12px;color:var(--ink3);font-weight:500}
.tier .tier-perks{font-size:13px;color:var(--ink2);margin:8px 0 14px;line-height:1.5}
.tier .tier-cur{color:var(--brand);font-weight:700;font-size:13.5px;display:flex;align-items:center;gap:6px}
.tier .tier-cur i{width:16px;height:16px}
.tier .btn-main{width:100%}

.sup{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;margin-bottom:11px;box-shadow:0 3px 12px rgba(13,11,31,.05)}
.sup .sup-h{display:flex;justify-content:space-between;align-items:center}
.sup .sup-n{font-weight:700;font-size:15px}
.sup .sup-m{font-size:12.5px;color:var(--ink2);margin-top:4px}
.sup .sup-c{font-size:12.5px;color:var(--brand);font-weight:600;margin-top:6px;display:flex;align-items:center;gap:6px}
.sup .sup-c i{width:14px;height:14px}
.sup .sup-note{font-size:12px;color:var(--ink3);margin-top:6px}

.paywall{text-align:center;padding:30px 20px}
.paywall .pw-ic{width:64px;height:64px;border-radius:20px;background:var(--brand-50);color:var(--brand);display:grid;place-items:center;margin:0 auto 16px}
.paywall .pw-ic i{width:30px;height:30px}
.paywall .pw-t{font-family:'Outfit';font-weight:800;font-size:18px;margin-bottom:6px}
.paywall .pw-s{font-size:13.5px;color:var(--ink2);margin-bottom:20px}
.paywall .pw-actions{display:flex;flex-direction:column;gap:10px;max-width:300px;margin:0 auto}
.paywall .btn-main{width:100%}

.gate{margin:0 18px 14px;background:var(--brand-50);border:1px solid var(--brand-100);border-radius:14px;padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.gate .gate-tx{font-size:12.5px;font-weight:600;color:var(--brand-700);display:flex;align-items:center;gap:6px}
.gate .gate-tx i{width:15px;height:15px}
.gate .gate-act{display:flex;gap:8px}
.gate .gate-act button{background:var(--brand);color:#fff;border:none;border-radius:9px;padding:7px 12px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit}
.gate .gate-act button.ghost{background:#fff;color:var(--brand-700);border:1px solid var(--brand-100)}

/* ===== Bannière hors-ligne ===== */
.offline-bar{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff3e0;color:#9a5b00;font-size:12px;font-weight:600;padding:8px 12px;flex-shrink:0}
.offline-bar i{width:15px;height:15px}

/* ===== Parrainage ===== */
.refbanner{display:flex;align-items:center;gap:12px;margin:14px 18px 0;background:var(--grad);color:#fff;border-radius:18px;padding:14px 16px;cursor:pointer;box-shadow:0 10px 24px rgba(96,36,240,.22)}
.refbanner .rb-ic{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.2);display:grid;place-items:center;flex-shrink:0}
.refbanner .rb-ic i{width:22px;height:22px}
.refbanner .rb-tx{flex:1}
.refbanner .rb-t{font-weight:700;font-size:14.5px}
.refbanner .rb-s{font-size:12px;opacity:.92;margin-top:2px}
.refbanner > i{width:20px;height:20px;opacity:.85}
.ref-hero{text-align:center;background:var(--grad);color:#fff;border-radius:20px;padding:22px 18px;margin-bottom:14px}
.ref-hero .ref-code-l{font-size:12.5px;opacity:.9}
.ref-hero .ref-code{font-family:'Outfit';font-weight:800;font-size:30px;letter-spacing:2px;margin:6px 0 16px}
.ref-hero .btn-main{background:#fff;color:var(--brand-700);width:100%}
.ref-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ref-stat{background:var(--soft);border:1px solid var(--line);border-radius:15px;padding:14px;text-align:center}
.ref-stat .n{font-family:'Outfit';font-weight:800;font-size:24px;color:var(--brand)}
.ref-stat .l{font-size:11.5px;color:var(--ink2);margin-top:2px}

/* ===== Vague A : historique wallet, contact transitaire, oeil mot de passe ===== */
.tx{display:flex;justify-content:space-between;align-items:center;padding:11px 13px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:8px}
.tx .tx-t{font-size:13px;font-weight:600}
.tx .tx-d{font-size:11px;color:var(--ink3);margin-top:2px}
.tx .tx-a{font-family:'Outfit';font-weight:800;font-size:14px}
.tx .tx-a.pos{color:var(--money)}
.tx .tx-a.neg{color:var(--ink)}
.tr-contact{display:flex;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.tr-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:9px;font-size:12.5px;font-weight:600;color:var(--ink);cursor:pointer}
.tr-btn i{width:15px;height:15px;color:var(--brand)}
.tr-btn.wa{background:#e7f8f1;border-color:transparent;color:#0a7a55}
.tr-btn.wa i{color:#0a7a55}
.auth-field.pw{position:relative}
.auth-field.pw input{padding-right:48px}
.pw-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:none;color:rgba(255,255,255,.85);cursor:pointer;padding:8px;display:grid;place-items:center}
.pw-eye i{width:20px;height:20px}

/* ============ VAGUE 1 VISUELLE ============ */
:root{ --ink3:#6e6b82; --money-ink:#0a7a55; --amber-ink:#9a5b00; --amber-bg:#fff3e0; }

/* Contraste des infos clés (lisibilité plein soleil, WCAG AA) */
.pcard .mg{ color:var(--money-ink); background:#d6f2e5; font-size:11px; }
.citem .cs .off{ color:var(--money-ink); }
.vbadge{ color:var(--money-ink); background:#d6f2e5; font-size:11px; }
.trcard .meta .star{ color:var(--amber-ink); }
.tx .tx-a.pos{ color:var(--money-ink); }

/* Feedback tactile sur tous les boutons / onglets */
.btn-main,.book,.resume,.start,.tr-btn,.gate .gate-act button,.promo-cta,.creditchip,.pack{ transition:transform .12s ease, filter .12s ease, background .15s ease; }
.btn-main:active,.book:active,.resume:active,.start:active,.creditchip:active,.langchip:active,.bell:active,.gate .gate-act button:active,.promo-cta:active,.tr-btn:active,.pack:active,.tab:active,.backbtn:active,.refbanner:active{ transform:scale(.96); filter:brightness(.96); }

/* États désactivés */
.btn-main:disabled,.book:disabled,.start:disabled{ opacity:.55; pointer-events:none; }

/* Plancher de lisibilité des micro-textes */
.tab{ font-size:10px; }
.pcard .pimg .tg{ font-size:10px; }
.pstat .l,.qa .l{ font-size:11px; }
.citem .cs{ font-size:12px; }

/* Cibles tactiles >= 44px */
.tab{ min-width:56px; padding:8px 10px; }
.gate .gate-act button{ min-height:40px; padding:9px 14px; }
.promo-cta{ min-height:40px; }

/* Placeholders d'images colorés */
.pcard .pimg{ position:relative; }
.pcard .pimg i{ opacity:1; color:#fff; width:42px; height:42px; }
.cthumb .flag-emo{ font-size:26px; line-height:1; }

/* Skeletons de chargement */
@keyframes shimmer{ 100%{ background-position:-200% 0; } }
.skel{ background:linear-gradient(90deg,#ece9f5 25%,#f6f4fc 37%,#ece9f5 63%); background-size:200% 100%; animation:shimmer 1.3s linear infinite; border-radius:16px; }
.skel-card{ height:80px; margin:0 18px 11px; }
.skel-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 18px; }
.skel-tile{ height:150px; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.spin{ animation:spin .8s linear infinite; display:inline-block; }

/* Ne pas rétrécir le texte sur petits écrans (réduire les marges, pas la police) */
@media (max-width:380px){ .qa .l{ font-size:11px; } .tab{ font-size:10px; } .tab span{ font-size:10px; } }
@media (max-width:330px){ .qa .l{ font-size:10.5px; } }

/* Images / placeholders colorés : remplissage + icône blanche */
.pcard .pimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pdimg{position:relative;overflow:hidden}
.pdimg i{color:#fff;opacity:1}
.pdimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Icône blanche sur placeholder coloré (cible aussi le <svg> rendu par Lucide) */
.pcard .pimg i, .pcard .pimg svg{ color:#fff; stroke:#fff; opacity:1; width:42px; height:42px; }
.pdimg i, .pdimg svg{ color:#fff; stroke:#fff; opacity:1; }

/* ============ VAGUE 2 : haut d'accueil désaturé ============ */
.refbanner{ background:var(--brand-50); color:var(--brand-700); box-shadow:0 3px 12px rgba(13,11,31,.05); }
.refbanner .rb-ic{ background:var(--brand); color:#fff; }
.refbanner .rb-t{ color:var(--brand-700); }
.refbanner .rb-s{ color:var(--ink2); opacity:1; }
.refbanner > i{ color:var(--brand); }

/* ============ MODE SOMBRE ============ */
body.tb-dark{
  --ink:#f3f1fb; --ink2:#bfbcd4; --ink3:#908da8; --line:#2a2742; --soft:#1d1a33;
  --brand-50:#241a45; --brand-100:#33285c; --money-bg:#12331f; --amber-bg:#3a2a10;
  background:#0f0d1c;
}
.tb-dark .app{ background:#15122a; }
.tb-dark .statusbar-pad{ background:#15122a; }
.tb-dark .citem,.tb-dark .pcard,.tb-dark .pcard .pb,.tb-dark .trcard,.tb-dark .pack,.tb-dark .tier,.tb-dark .sup,.tb-dark .tx,.tb-dark .weightbox,.tb-dark .promo-item,.tb-dark .sheet,.tb-dark .mod{ background:#1d1a33; }
.tb-dark .mod.done{ background:#15122a; }
.tb-dark .qa .ic{ background:#15122a; }
.tb-dark .tabbar{ background:rgba(21,18,42,.96); }
.tb-dark .sheet-top{ background:rgba(21,18,42,.92); }
.tb-dark .bell.dot::after{ border-color:#15122a; }
.tb-dark .pcard .mg,.tb-dark .vbadge{ background:#12331f; }
.tb-dark .toast,.tb-dark .profhead .planbadge{ background:#2a2742; }
.tb-dark .offline-bar{ background:#3a2a10; color:#f5c97a; }
.tb-dark input[type=range]{ background:#33285c; }
.tb-dark .skel{ background:linear-gradient(90deg,#221f38 25%,#2b2745 37%,#221f38 63%); }
.tb-dark .gate .gate-tx{ color:#c9b6ff; }
.tb-dark .gate .gate-act button.ghost{ color:#c9b6ff; }
.tb-dark .refbanner .rb-t{ color:#d7c9ff; }
.tb-dark .refbanner .rb-s{ color:var(--ink2); }

/* Note du mur de connexion */
.auth-note{ font-size:12px; color:rgba(255,255,255,.82); text-align:center; margin:4px 0 0; max-width:300px; line-height:1.5; }

/* ===== Fournisseurs certifiés — annuaire ===== */
.sup-access{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12.5px; font-weight:700; color:var(--money-ink); background:#d6f2e5; border-radius:12px; padding:9px 12px; margin:0 0 12px; }
.sup-access i{ width:16px; height:16px; }
.sup-renew{ margin-left:auto; border:none; background:var(--brand); color:#fff; font-weight:700; font-size:11.5px; padding:6px 11px; border-radius:100px; cursor:pointer; }
.sup-renew:active{ transform:scale(.96); }
.sup .sup-h{ align-items:flex-start; gap:11px; }
.sup .sup-ava{ width:42px; height:42px; flex:0 0 42px; border-radius:12px; color:#fff; font-family:'Outfit'; font-weight:800; font-size:18px; display:grid; place-items:center; }
.sup .sup-id{ flex:1 1 auto; min-width:0; }
.sup .sup-h .vbadge{ margin-top:0; flex:0 0 auto; }
.sup .sup-go{ width:100%; margin-top:11px; border:1px solid var(--brand); background:var(--brand-50); color:var(--brand); font-weight:700; font-size:13px; padding:10px; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:7px; cursor:pointer; }
.sup .sup-go:active{ transform:scale(.98); }
.sup .sup-go i{ width:16px; height:16px; }
.pw-life{ background:transparent; border:none; color:var(--ink2); font-size:12.5px; font-weight:600; text-decoration:underline; cursor:pointer; padding:6px; }
.tb-dark .sup-access{ background:#12331f; color:#7ee2ab; }
.tb-dark .sup .sup-go{ background:#241f3d; }

/* Bannière d'accueil Fournisseurs (dégradé pour ressortir) */
.supbanner{ display:flex; align-items:center; gap:12px; margin:14px 18px 0; background:var(--grad); color:#fff; border-radius:18px; padding:14px 16px; cursor:pointer; box-shadow:0 10px 24px rgba(96,36,240,.22); }
.supbanner .rb-ic{ width:42px; height:42px; border-radius:12px; background:rgba(255,255,255,.2); display:grid; place-items:center; flex-shrink:0; }
.supbanner .rb-ic i{ width:22px; height:22px; }
.supbanner .rb-tx{ flex:1; }
.supbanner .rb-t{ font-weight:700; font-size:14.5px; }
.supbanner .rb-s{ font-size:12px; opacity:.92; margin-top:2px; }
.supbanner > i{ width:20px; height:20px; opacity:.85; }
.supbanner:active{ transform:scale(.96); filter:brightness(.96); }

/* ===== Carte produit gagnant (façon Minea) ===== */
.pcard .pimg .ptrend{ position:absolute; top:8px; left:8px; z-index:1; display:inline-flex; align-items:center; gap:2px; font-size:10.5px; font-weight:800; color:#fff; background:rgba(13,11,31,.42); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); padding:3px 8px; border-radius:100px; }
.pcard .pimg .ptrend.warm{ background:rgba(232,120,20,.95); }
.pcard .pimg .ptrend.hot{ background:rgba(228,42,42,.96); }
.pcard .pimg .pflag{ position:absolute; top:8px; right:8px; z-index:1; width:24px; height:24px; border-radius:100px; background:rgba(255,255,255,.92); display:grid; place-items:center; font-size:13px; box-shadow:0 1px 4px rgba(0,0,0,.18); }
.pcard .pb{ padding:11px 12px 13px; }
.pcard .pmeta{ display:flex; align-items:center; gap:9px; margin:0 0 9px; font-size:10.5px; }
.pcard .pstar{ display:inline-flex; align-items:center; gap:3px; color:var(--amber-ink); font-weight:700; }
.pcard .pstar i{ width:11px; height:11px; fill:currentColor; stroke:currentColor; }
.pcard .psold{ color:var(--ink3); font-weight:600; }
.pcard .pprice{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.pcard .pprice .mg{ margin-top:0; }
/* Méta dans la fiche produit */
.pdmeta{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:-2px 0 14px; font-size:13px; }
.pdmeta .pstar{ display:inline-flex; align-items:center; gap:4px; color:var(--amber-ink); font-weight:800; }
.pdmeta .pstar i{ width:15px; height:15px; fill:currentColor; stroke:currentColor; }
.pdmeta .psold{ color:var(--ink2); font-weight:700; }
.pdmeta .pctry{ color:var(--ink2); font-weight:700; }
/* En-tête flux boutique */
.feedhead{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:2px 18px 12px; }
.feedhead .fh-t{ font-family:'Outfit'; font-weight:800; font-size:16px; }
.feedhead .fh-s{ font-size:12px; color:var(--ink2); margin-top:2px; }
.feedhead .fh-live{ display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:800; color:var(--money-ink); background:#d6f2e5; padding:6px 11px; border-radius:100px; white-space:nowrap; }
.feedhead .fh-live .dot{ width:7px; height:7px; border-radius:50%; background:#1ea868; animation:fhpulse 1.8s infinite; }
@keyframes fhpulse{ 0%{ box-shadow:0 0 0 0 rgba(30,168,104,.5); } 70%{ box-shadow:0 0 0 6px rgba(30,168,104,0); } 100%{ box-shadow:0 0 0 0 rgba(30,168,104,0); } }
.tb-dark .feedhead .fh-live{ background:#12331f; color:#7ee2ab; }
.tb-dark .pcard .pimg .pflag{ background:rgba(40,36,66,.95); }

/* ===== Filtre & tri boutique ===== */
.fchips{ display:flex; gap:8px; overflow-x:auto; padding:0 18px 14px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.fchips::-webkit-scrollbar{ display:none; }
.fchip{ flex:0 0 auto; border:1px solid var(--line); background:#fff; color:var(--ink2); font-size:12.5px; font-weight:600; padding:8px 14px; border-radius:100px; cursor:pointer; white-space:nowrap; transition:.12s; }
.fchip:active{ transform:scale(.95); }
.fchip.active{ background:var(--brand); border-color:var(--brand); color:#fff; }
#shop-filter-btn{ position:relative; }
#shop-filter-btn.on::after{ content:''; position:absolute; top:8px; right:8px; width:8px; height:8px; border-radius:50%; background:var(--brand); border:2px solid #fff; }
.filter-body{ padding:6px 0 12px; }
.filter-lab{ font-family:'Outfit'; font-weight:800; font-size:14px; padding:8px 18px 10px; }
.filter-cta{ display:flex; gap:10px; }
.filter-cta .btn-main{ flex:1; }
.tb-dark .fchip{ background:#1d1a33; border-color:#2c2746; color:var(--ink2); }
.tb-dark .fchip.active{ background:var(--brand); border-color:var(--brand); color:#fff; }
.tb-dark #shop-filter-btn.on::after{ border-color:#15122a; }

/* ===== VAGUE 3 — délice ===== */
/* Logo de marque (monogramme pont) */
.onb .logo svg{ width:50px; height:50px; color:#fff; }

/* Drapeaux : pastille code ISO (rendu fiable partout, même émulateur) */
.pcard .pimg .pflag{ width:auto; min-width:0; height:18px; padding:0 7px; border-radius:100px; font-size:10px; font-weight:800; letter-spacing:.5px; color:var(--ink); background:rgba(255,255,255,.93); display:inline-flex; align-items:center; }
.pdmeta .pctry{ font-weight:700; }

/* Code de parrainage copiable */
.ref-hero .ref-code{ display:inline-flex; align-items:center; gap:10px; border:1px dashed rgba(255,255,255,.55); background:rgba(255,255,255,.16); border-radius:14px; padding:8px 16px; margin:8px 0 4px; cursor:pointer; color:#fff; }
.ref-hero .ref-code i{ width:18px; height:18px; opacity:.9; }
.ref-hero .ref-code:active{ transform:scale(.97); }
.ref-hero .ref-hint{ font-size:11px; opacity:.85; margin-bottom:14px; }

/* Scrim derrière les sheets (profondeur) */
.scrim{ position:fixed; inset:0; background:rgba(13,11,31,.5); opacity:0; pointer-events:none; transition:opacity .25s; z-index:79; }
body.has-sheet .scrim{ opacity:1; pointer-events:auto; }

/* Confettis (célébration) */
.confetti-wrap{ position:fixed; inset:0; pointer-events:none; z-index:300; overflow:hidden; }
.confetti-bit{ position:absolute; top:-14px; width:9px; height:14px; border-radius:2px; opacity:.92; animation:confetti-fall linear forwards; }
@keyframes confetti-fall{ to{ transform:translate(var(--x), 106vh) rotate(var(--r)); opacity:.9; } }

/* Accessibilité clavier */
:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; border-radius:8px; }

/* ============================================================
   REDESIGN « ÉPURÉ » — palette resserrée, cartes neutres,
   mode sombre gris-charbon. (Surcharge en fin de fichier.)
   ============================================================ */
:root{
  --brand:#5B4AE0; --brand-2:#7A6CF0; --brand-50:#eeecfb; --brand-100:#e1ddf8; --brand-700:#4334b0;
  --grad:linear-gradient(135deg,#5B4AE0,#7A6CF0);
  --ink:#17172a; --ink2:#5c5c70; --ink3:#8a8a99; --line:#ececf2; --soft:#f4f4f9;
  --money:#1f9d6b; --money-bg:#e8f6ef; --money-ink:#147a52;
}
body{ background:#eeeef4; }
.app{ background:#f7f7fb; }
.app{ box-shadow:0 0 0 1px rgba(23,23,42,.04), 0 14px 60px rgba(23,23,42,.08); }

/* Cartes produits neutres : la PHOTO fait la couleur, un seul accent */
.pcard{ border-color:var(--line); box-shadow:0 2px 10px rgba(23,23,42,.05); }
.pcard .pimg{ background:#ebebf2; }
.pcard .pimg i, .pcard .pimg svg{ color:#a7a7b6; stroke:#a7a7b6; opacity:1; }
.pcard .pimg .pflag{ background:#fff; color:var(--ink2); }
.pcard .pimg .ptrend, .pcard .pimg .ptrend.warm, .pcard .pimg .ptrend.hot{ background:rgba(23,23,42,.5); color:#fff; }
.pcard .pprice .mg{ background:transparent; padding:0; color:var(--money-ink); font-weight:700; }
.pdimg{ background:#ebebf2; }
.pdimg i, .pdimg svg{ color:#a7a7b6; stroke:#a7a7b6; opacity:1; }

/* Avatar fournisseur : un seul ton de marque (plus d'arc-en-ciel) */
.sup .sup-ava{ background:var(--brand-50); color:var(--brand); }

/* Bannière fournisseurs : carte sobre au lieu du gros dégradé */
.supbanner{ background:var(--brand-50); color:var(--brand-700); box-shadow:none; }
.supbanner .rb-ic{ background:var(--brand); color:#fff; }
.supbanner .rb-t{ color:var(--brand-700); }
.supbanner .rb-s{ color:var(--ink2); opacity:1; }
.supbanner > i{ color:var(--brand); }

/* ---- Mode sombre : gris-charbon neutre (fini le violet partout) ---- */
body.tb-dark{
  --ink:#ececf2; --ink2:#a4a4b2; --ink3:#7e7e8c; --line:#2a2a33; --soft:#1b1b22;
  --brand:#8b7dff; --brand-2:#9c90ff; --brand-50:#252336; --brand-100:#322e48; --brand-700:#cfc6ff;
  --grad:linear-gradient(135deg,#6a5cf0,#8b7dff);
  --money:#5fcda0; --money-bg:#14302a; --money-ink:#7ee2ab; --amber-bg:#3a2a10;
  background:#0e0e12;
}
.tb-dark .app{ background:#121217; }
.tb-dark .statusbar-pad{ background:#121217; }
.tb-dark .citem,.tb-dark .pcard,.tb-dark .pcard .pb,.tb-dark .trcard,.tb-dark .pack,.tb-dark .tier,.tb-dark .sup,.tb-dark .tx,.tb-dark .weightbox,.tb-dark .promo-item,.tb-dark .sheet,.tb-dark .mod{ background:#1b1b22; }
.tb-dark .mod.done{ background:#121217; }
.tb-dark .qa .ic{ background:#1b1b22; }
.tb-dark .tabbar{ background:rgba(18,18,23,.96); }
.tb-dark .sheet-top{ background:rgba(18,18,23,.92); }
.tb-dark .bell.dot::after{ border-color:#121217; }
.tb-dark .pcard .pimg, .tb-dark .pdimg{ background:#23232b; }
.tb-dark .pcard .pimg i,.tb-dark .pcard .pimg svg,.tb-dark .pdimg i,.tb-dark .pdimg svg{ color:#70707f; stroke:#70707f; }
.tb-dark .pcard .pimg .pflag{ background:#2c2c36; color:#cfcfda; }
.tb-dark .pcard .mg{ background:transparent; color:var(--money-ink); }
.tb-dark .vbadge{ background:#14302a; }
.tb-dark .sup .sup-ava{ background:#252336; color:#b8acff; }
.tb-dark .supbanner{ background:#1b1b22; color:#cfc6ff; }
.tb-dark .toast,.tb-dark .profhead .planbadge{ background:#2a2a33; }
.tb-dark .skel{ background:linear-gradient(90deg,#1f1f27 25%,#26262f 37%,#1f1f27 63%); }
.tb-dark input[type=range]{ background:#322e48; }
.tb-dark .feedhead .fh-live, .tb-dark .sup-access{ background:#14302a; color:#7ee2ab; }
.tb-dark .sup .sup-go{ background:#252336; }

/* Titres de section discrets (étiquettes) */
.sectit{ font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ink3); margin:16px 18px 8px; }
.sectit a{ text-transform:none; letter-spacing:0; font-size:12px; }

/* Tuiles rapides (Crédits / Abonnement / Fournisseurs / Parrainage) — plus d'ombre */
.qa{ background:#fff; box-shadow:0 8px 20px rgba(23,23,42,.12); }
.qa:active{ box-shadow:0 3px 10px rgba(23,23,42,.10); }
.tb-dark .qa{ background:#22222c; border-color:#2e2e38; box-shadow:0 8px 22px rgba(0,0,0,.5); }
