/* NEDOXE — blanc premium : encre noire, bleu du logo en accent seulement */
:root {
  --bg: #fff; --soft: #f5f7fb; --line: #e9ecf2; --ink: #0b1220; --muted: #6b7385; --faint: #a3aaba;
  --blue: #1a5cff; --blue-d: #0a3fd6; --cyan: #18d2ff; --red: #ff2d55; --green: #12b76a;
  --grad: linear-gradient(135deg, #18d2ff 0%, #1a5cff 55%, #0a2fd0 100%);
  --r: 14px; --nav: 64px; --side: 244px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { font-size: 15px; line-height: 1.4; overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect img, .protect video { pointer-events: none; -webkit-user-drag: none; }

/* layout */
.shell { display: flex; min-height: 100dvh; }
.side { width: var(--side); border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 32px; height: auto; }
.side a.nav { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 15.5px; }
.side a.nav:hover { background: var(--soft); }
.side a.nav.on { font-weight: 800; }
.side a.nav.on svg { stroke-width: 2.4; }
.side .grow { flex: 1; }
.side .wallet { font-size: 13px; color: var(--muted); padding: 10px 12px; }
.main { flex: 1; min-width: 0; }
.page { max-width: 640px; margin: 0 auto; padding: 18px 16px 100px; }
.page.wide { max-width: 980px; }
.bnav { display: none; }
.badge { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; }
svg.i { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

@media (max-width: 860px) {
  .side { display: none; }
  .bnav { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); justify-content: space-around; align-items: center; }
  .bnav a { display: grid; place-items: center; width: 56px; height: 48px; position: relative; color: var(--ink); }
  .bnav a .badge { position: absolute; top: 4px; right: 6px; }
  .bnav a.plus span { width: 46px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; }
  .bnav.dark { background: #000; border-color: #000; }
  .bnav.dark a { color: #fff; }
}

/* boutons / champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 14.5px; background: var(--blue); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--blue-d); }
.btn.ghost:hover { background: #e9ecf2; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: #eff1f5; color: var(--ink); }
.btn.ico { padding: 0 12px; flex: 0 0 auto; }
.btn.line { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.in { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--soft); outline: none; }
textarea.in { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.in:focus { border-color: var(--blue); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--blue); }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 38px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 20, 50, .1); }
h1 { font-size: 24px; letter-spacing: -.02em; margin: 6px 0 18px; }
h2 { font-size: 17px; margin: 26px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--soft) center/cover; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--blue); overflow: hidden; }
.av.lg { width: 92px; height: 92px; font-size: 32px; }
.av.xs { width: 28px; height: 28px; font-size: 12px; }
.tick { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-left: 3px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.demo-pill { display: inline-block; font-size: 11px; font-weight: 700; color: var(--blue); background: #eaf1ff; border-radius: 6px; padding: 2px 7px; }

/* chips / filtres */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--soft); font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.chip.on { background: #eaf1ff; color: var(--blue-d); border-color: #b9cdff; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex-shrink: 0; }
.fgroup { margin-bottom: 18px; }
.fgroup b { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }

/* FYP plein écran */
.fyp-wrap { position: relative; height: 100dvh; background: #fff; }
.fyp { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.fyp::-webkit-scrollbar { display: none; }
.slide { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: flex; justify-content: center; align-items: center; background: #fff; padding: 14px 0; }
.slide > .stage { border-radius: 18px; box-shadow: 0 8px 30px rgba(10, 20, 50, .12); }
.stage { position: relative; height: 100%; width: 100%; max-width: calc(100dvh * 9 / 16); background: #0c0f16; overflow: hidden; }
@media (max-width: 860px) { .fyp-wrap { height: calc(100dvh - var(--nav) - env(safe-area-inset-bottom)); } .stage { max-width: none; } .slide { padding: 0; } .slide > .stage { border-radius: 0; box-shadow: none; } }
.car { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car::-webkit-scrollbar { display: none; }
.car > .m { flex: 0 0 100%; height: 100%; scroll-snap-align: center; position: relative; display: grid; place-items: center; overflow: hidden; }
.m img, .m video { width: 100%; height: 100%; object-fit: cover; }
.m.contain img, .m.contain video { object-fit: contain; }
.m .bl { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(28px) saturate(1.2); transform: scale(1.1); }
.dots { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 3; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.dots i.on { background: #fff; }
.count { position: absolute; top: 12px; right: 12px; z-index: 3; color: #fff; background: rgba(0, 0, 0, .45); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); pointer-events: none; z-index: 2; }
.cap { position: absolute; left: 14px; right: 80px; bottom: 18px; z-index: 4; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.cap .who { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.cap p { margin: 6px 0 8px; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cap .tg { display: flex; gap: 6px; flex-wrap: wrap; }
.cap .tg span { font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 99px; }
.acts { position: absolute; right: 10px; bottom: 22px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 18px; color: #fff; }
.acts button, .acts a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.acts svg.i { width: 34px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.acts .liked svg { fill: var(--red); stroke: var(--red); }
.acts .pf { position: relative; margin-bottom: 6px; }
.acts .pf .av { width: 50px; height: 50px; border: 2px solid #fff; }
.acts .pf .plus { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.fyp-top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: min(100%, calc((100dvh - 28px) * 9 / 16)); border-radius: 18px 18px 0 0; z-index: 10; display: flex; justify-content: center; align-items: center; gap: 22px; padding: 14px 14px 30px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); color: #fff; pointer-events: none; }
.fyp-top > * { pointer-events: auto; }
.fyp-top .tab { font-weight: 700; font-size: 16.5px; opacity: .65; padding: 4px 0; border-bottom: 2px solid transparent; }
.fyp-top .tab.on { opacity: 1; border-color: #fff; }
.fyp-top .flt { position: absolute; right: 14px; top: 10px; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); padding: 7px 12px; border-radius: 99px; font-weight: 700; font-size: 13.5px; }
.fyp-top .flt svg.i { width: 18px; height: 18px; }
.fyp-top .flt b { font-size: 12px; background: var(--blue); border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
@media (max-width: 860px) { .fyp-top { top: 0; width: 100%; border-radius: 0; gap: 16px; } .fyp-top .flt span { display: none; } .fyp-top .flt { padding: 7px 9px; } }
.fyp-top .lg { position: absolute; left: 14px; top: 10px; }
.fyp-top .lg img { width: 30px; }
.lock { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; }
.lock .box { background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 22px 20px; text-align: center; width: 100%; max-width: 300px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.lock .box svg.i { width: 30px; height: 30px; color: var(--blue); margin: 0 auto 8px; }
.lock .box b { display: block; font-size: 17px; }
.lock .box p { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.sound { position: absolute; z-index: 4; left: 14px; top: 64px; color: #fff; background: rgba(0, 0, 0, .4); border-radius: 99px; padding: 6px; }
.sound svg.i { width: 20px; height: 20px; }
.heart-pop { position: absolute; z-index: 6; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px; color: #fff; animation: pop .8s ease forwards; pointer-events: none; }
.heart-pop svg { width: 100%; height: 100%; fill: var(--red); stroke: none; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0 } 25% { transform: scale(1.1); opacity: 1 } 100% { transform: scale(1); opacity: 0 } }

/* filigrane anti-fuite */
.wm { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; opacity: .06; color: #fff; font-size: 13px; font-weight: 700; mix-blend-mode: difference; }
.wm span { position: absolute; white-space: nowrap; transform: rotate(-24deg); }

/* stories */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-b { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; flex-shrink: 0; font-size: 12px; }
.story-b .ring { padding: 3px; border-radius: 50%; background: var(--grad); }
.story-b .ring .av { width: 62px; height: 62px; border: 3px solid #fff; }
.story-b span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; justify-content: center; }
.sv .stage { max-width: calc(100dvh * 9 / 16); }
.sv .bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; display: flex; gap: 4px; }
.sv .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv .bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sv .hd { position: absolute; top: 22px; left: 12px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.sv .hd .x { margin-left: auto; }
.sv .nav-l, .sv .nav-r { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 4; }
.sv .nav-l { left: 0; } .sv .nav-r { right: 0; }

/* explore */
.search { position: relative; margin-bottom: 14px; }
.search svg.i { position: absolute; left: 13px; top: 12px; width: 21px; height: 21px; color: var(--faint); }
.search .in { padding-left: 42px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.cc { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.cc .cv { height: 96px; background: var(--grad) center/cover; }
.cc .bd { padding: 0 14px 14px; margin-top: -30px; }
.cc .av { width: 64px; height: 64px; border: 3px solid #fff; }
.cc b { display: block; margin-top: 6px; }
.cc .tg { margin: 8px 0 12px; display: flex; gap: 5px; flex-wrap: wrap; }
.cc .tg span { font-size: 11.5px; background: var(--soft); border-radius: 99px; padding: 2px 8px; color: var(--muted); font-weight: 600; }

/* profil */
.cover { height: 180px; border-radius: 0 0 18px 18px; background: var(--grad) center/cover; margin: -18px -16px 0; }
.ph { display: flex; align-items: flex-end; gap: 16px; margin-top: -46px; padding: 0 4px; }
.ph .av.lg { border: 4px solid #fff; }
.ph .acts2 { margin-left: auto; display: flex; gap: 8px; padding-bottom: 6px; }
.pname { margin: 12px 4px 2px; font-size: 22px; font-weight: 800; }
.pstats { display: flex; gap: 22px; margin: 12px 4px; font-size: 14px; color: var(--muted); }
.pstats b { color: var(--ink); font-size: 16px; }
.bio { margin: 8px 4px 14px; white-space: pre-line; }
.subbox { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 14px 0; }
.subbox .btn { width: 100%; justify-content: space-between; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 18px -16px 2px; }
.tabs button { flex: 1; height: 48px; font-weight: 700; color: var(--faint); border-bottom: 2px solid transparent; display: flex; gap: 6px; align-items: center; justify-content: center; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.tabs svg.i { width: 20px; height: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0 -16px; }
.tile { aspect-ratio: 3/4; position: relative; overflow: hidden; background: var(--soft); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile img.bl { filter: blur(16px); transform: scale(1.2); }
.tile .ic { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.tile .ic svg.i { width: 20px; height: 20px; }
.tile .lk { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; font-weight: 800; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.tile .lk svg.i { width: 26px; height: 26px; margin: 0 auto 4px; }
.tile .sch { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }

/* post détail */
.pd .stage { max-width: none; height: min(78dvh, 760px); border-radius: 16px; }
.pd .stage .acts, .pd .stage .cap, .pd .stage .shade { display: none; }
.cm { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cm b { font-size: 14px; }

/* messages */
.th { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-radius: 12px; }
.th:hover { background: var(--soft); }
.th .t { flex: 1; min-width: 0; }
.th .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 14px; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 0px); }
@media (max-width: 860px) { .chat { height: calc(100dvh - var(--nav) - env(safe-area-inset-bottom)); } }
.chat .hd { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat .bd { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.chat .ft { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.chat .ft .in { height: 44px; border-radius: 99px; }
.chat .ft .ib { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); flex-shrink: 0; }
.bub { max-width: 76%; padding: 9px 13px; border-radius: 18px; background: var(--soft); align-self: flex-start; word-wrap: break-word; }
.bub .tx { white-space: pre-wrap; }
.bub.me { align-self: flex-end; background: var(--blue); color: #fff; }
.bub .who { font-size: 12px; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.bub.host { background: #eaf1ff; }
.bub .mm { display: grid; gap: 4px; margin: 2px -6px 4px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.bub .mm > div { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #ccd; }
.bub .mm img, .bub .mm video { width: 100%; height: 100%; object-fit: cover; }
.bub .mm img.bl { filter: blur(14px); transform: scale(1.2); }
.bub .at { font-size: 11px; opacity: .6; margin-top: 3px; }
.day { text-align: center; font-size: 12px; color: var(--faint); margin: 10px 0; }

/* composer */
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 30px 16px; text-align: center; color: var(--muted); cursor: pointer; display: block; }
.drop:hover { border-color: var(--blue); color: var(--blue); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 12px 0; }
.thumbs > div { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; background: var(--soft); }
.thumbs img, .thumbs video { width: 100%; height: 100%; object-fit: cover; }
.thumbs .rm { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 700; }
.thumbs .pg { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--blue); transition: width .2s; }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 24px; letter-spacing: -.02em; margin-top: 4px; }
.kpi b.ok { color: var(--blue); }
.chart { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bars i { flex: 1; background: linear-gradient(#18d2ff, #1a5cff); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars i:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; font-style: normal; padding: 3px 7px; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tb td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.tb .r { text-align: right; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.toprow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.toprow .th0 { width: 44px; height: 54px; border-radius: 8px; background: var(--soft) center/cover; flex-shrink: 0; }

/* feuilles / modales */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(10, 15, 30, .45); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.sheet { background: #fff; width: 100%; max-width: 460px; max-height: 88dvh; overflow-y: auto; border-radius: 22px; padding: 22px 20px; position: relative; }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.sheet .x svg.i { width: 18px; height: 18px; }
.sheet h3 { margin: 0 0 16px; font-size: 19px; padding-right: 30px; }
@media (max-width: 860px) {
  .sheet-bg { align-items: flex-end; }
  .sheet { border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation: up .2s ease; }
}
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(40px) } }
.gate { position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; place-items: center; padding: 24px; text-align: center; }
.gate img { width: 84px; margin: 0 auto 18px; }
.gate h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.02em; }
.gate p { color: var(--muted); max-width: 380px; margin: 0 auto 22px; }
.gate .btn { width: 280px; }
.gate .no { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); z-index: 120; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }
.price { font-size: 13px; color: var(--muted); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.amounts .chip { height: 44px; border-radius: 12px; }
.spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: sp .8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg) } }
.fyp-wrap .spin { border-color: rgba(255, 255, 255, .2); border-top-color: #fff; margin-top: 45dvh; }
.foot { font-size: 12px; color: var(--faint); padding: 0 12px; line-height: 1.6; }
.foot a:hover { text-decoration: underline; }

/* profil façon Instagram */
.ig-top { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 4px 0 16px; }
.ig-head { display: flex; align-items: center; gap: 28px; }
.ig-av { padding: 3px; border-radius: 50%; flex-shrink: 0; }
.ig-av.ring { background: var(--grad); cursor: pointer; }
.ig-av .av.lg { width: 86px; height: 86px; border: 3px solid #fff; }
.ig-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.ig-stats b { display: block; font-size: 18px; }
.ig-stats span { font-size: 13.5px; color: var(--ink); }
.ig-name { font-weight: 700; margin-top: 12px; }
.ig-bio { white-space: pre-line; margin-top: 2px; }
.ig-tags { margin-top: 4px; color: var(--blue-d); font-size: 14px; }
.ig-btns { display: flex; gap: 8px; margin-top: 14px; }
.ig-btns .btn { flex: 1; height: 36px; font-size: 14px; padding: 0 12px; border-radius: 9px; }
.tabs { margin-top: 18px; }
.tabs button { height: 46px; }
.tabs svg.i { width: 24px; height: 24px; }
.tile .vw { position: absolute; left: 7px; bottom: 6px; color: #fff; font-size: 12.5px; font-weight: 700; display: flex; gap: 3px; align-items: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.tile .vw svg.i { fill: #fff; }
/* explorer façon Instagram */
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; grid-auto-flow: dense; margin: 0 -16px; }
.xgrid .tile { aspect-ratio: 1; }
.xgrid .tile.tall { grid-row: span 2; aspect-ratio: auto; }
#st .stories { margin-bottom: 4px; }
/* fil desktop façon TikTok web : actions à droite de la vidéo */
@media (min-width: 861px) {
  .slide > .stage { overflow: visible; }
  .slide > .stage .car, .slide > .stage .shade, .slide > .stage .wm, .slide > .stage .lock { border-radius: 18px; }
  .slide > .stage .car { overflow-y: hidden; }
  .slide > .stage .acts { right: -78px; bottom: 0; color: var(--ink); gap: 14px; }
  .slide > .stage .acts button, .slide > .stage .acts a { text-shadow: none; font-size: 12px; color: var(--ink); }
  .slide > .stage .acts svg.i { width: 50px; height: 50px; padding: 12px; background: #f1f2f5; border-radius: 50%; filter: none; stroke-width: 2; }
  .slide > .stage .acts .liked svg { fill: var(--red); stroke: var(--red); }
  .slide > .stage .acts .pf svg.i { background: none; }
  .slide > .stage .acts .pf .av { border-color: var(--line); }
  .slide > .stage .cap { right: 16px; }
  .fyp-top { width: min(100%, calc((100dvh - 28px) * 9 / 16)); }
}

/* ===================== v2 — premium (moins Facebook / TikTok) ===================== */
:root {
  --ink: #0d0d12; --muted: #737380; --faint: #a6a6b0; --soft: #f5f5f7; --line: #ececf0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body { font-size: 14.5px; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
svg.i { stroke-width: 1.6; }
.btn { background: var(--ink); color: #fff; border-radius: 999px; height: 40px; padding: 0 20px; font-weight: 600; font-size: 14px; }
.btn:hover { background: #26262e; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.ghost:hover { background: #ebebef; }
.btn.line { background: #fff; border: 1px solid var(--line); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.in { border-radius: 12px; background: var(--soft); border-color: transparent; }
.in:focus { border-color: var(--ink); }
.chip { background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: 13.5px; height: 34px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg button.on { box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.demo-pill { color: var(--muted); background: var(--soft); font-weight: 600; letter-spacing: .02em; }
.tick path:first-child { fill: var(--blue); }
.av { color: var(--ink); background-color: #f0f0f3; }
.av.sm { width: 36px; height: 36px; font-size: 14px; }
.av.nav { width: 28px; height: 28px; font-size: 12px; border: 1.5px solid var(--ink); }
.card, .kpi, .chart, .subbox { border-color: var(--line); border-radius: 18px; }
.kpi b.ok { color: var(--ink); }
.bars i { background: var(--ink); border-radius: 3px 3px 0 0; }
.bars i:last-child { background: var(--blue); }
.bub.me { background: var(--ink); }
.bub.host { background: #eef3ff; }
.bub .who { color: var(--ink); }
.chat .ft .ib { color: var(--ink); }

/* barre latérale */
.side { padding: 26px 12px; border-right-color: var(--line); }
.brand { font-size: 21px; font-weight: 800; letter-spacing: -.04em; gap: 9px; }
.brand img { width: 28px; }
.side a.nav { font-weight: 500; font-size: 15px; border-radius: 999px; padding: 10px 14px; }
.side a.nav.on { font-weight: 700; background: var(--soft); }
.side .wallet { text-align: left; }

/* barre du haut mobile */
.mtop { display: none; }
@media (max-width: 860px) {
  .mtop { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 16px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
  .mtop .brand { padding: 0; font-size: 20px; }
  .mtop .brand img { width: 26px; }
  .mt-ic { position: relative; }
  .mt-ic .badge { position: absolute; top: -6px; right: -8px; }
  .bnav { border-top-color: var(--line); }
  .bnav a.plus span { background: var(--ink); width: 44px; height: 30px; border-radius: 9px; }
  .page { padding-top: 12px; }
}

/* fil en cartes */
.feed-wrap { display: flex; justify-content: center; gap: 56px; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.feed { width: 100%; max-width: 480px; padding: 22px 0 110px; }
.feed-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.seg2 { display: flex; gap: 4px; background: var(--soft); border-radius: 999px; padding: 4px; }
.seg2 button { height: 32px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg2 button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.pill { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 13.5px; }
.pill svg.i { width: 18px; height: 18px; }
.pill b { background: var(--ink); color: #fff; border-radius: 99px; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; }
.active-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 14px; }
.active-f span { font-size: 12.5px; font-weight: 600; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; }
.active-f button { font-size: 12.5px; color: var(--muted); text-decoration: underline; margin-left: 4px; }
.post { padding: 4px 0 26px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-hd { display: flex; align-items: center; gap: 10px; padding: 6px 2px 12px; }
.who2 { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.who2 b { display: block; font-size: 14px; }
.who2 span { display: block; font-size: 12.5px; color: var(--muted); }
.sublink { font-weight: 700; font-size: 13.5px; color: var(--blue); }
.acc { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; border-radius: 99px; }
.media { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #efeff2; isolation: isolate; }
.media .car { height: 100%; }
.media .lock { background: rgba(255, 255, 255, .08); }
.media .lock .box { background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 20px 50px rgba(0, 0, 0, .12); border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; max-width: 290px; }
.media .lock .box svg.i { color: var(--ink); width: 26px; height: 26px; }
.media .lock .box b { font-size: 16px; }
.media .lock .box .btn { width: 100%; }
.media .count { top: 14px; right: 14px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.media .sound { top: auto; bottom: 14px; left: auto; right: 14px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.post .dots { position: static; margin-top: 10px; }
.post .dots i { background: #d6d6dc; }
.post .dots i.on { background: var(--blue); }
.post-bar { display: flex; gap: 16px; padding: 12px 2px 6px; }
.post-bar svg.i { width: 25px; height: 25px; }
.post-bar button:hover, .post-bar a:hover { opacity: .6; }
.post-bar .liked svg { fill: var(--red); stroke: var(--red); }
.post-bd { padding: 0 2px; }
.post-bd p { margin: 4px 0 0; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.post-tags span { font-size: 12px; color: var(--muted); background: var(--soft); padding: 3px 9px; border-radius: 99px; }
.post-cm { display: block; color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.empty b { color: var(--ink); font-size: 16px; display: block; margin-bottom: 6px; }
.rail { width: 300px; flex-shrink: 0; padding-top: 30px; position: sticky; top: 0; align-self: flex-start; }
.rail-me, .rail-c a:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rail-me { margin-bottom: 22px; }
.rail-me b, .rail-c b { display: block; font-size: 14px; }
.rail-me span, .rail-c span { display: block; font-size: 12.5px; color: var(--muted); }
.rail-h { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.rail-h a { color: var(--ink); font-size: 12.5px; }
.rail-c { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
@media (max-width: 1160px) { .rail { display: none; } }
@media (max-width: 860px) { .feed { padding-top: 12px; } .feed-wrap { padding: 0 12px; } .media { border-radius: 16px; } }
.pd .post { border-bottom: 0; }

/* stories, profil, explorer */
.story-b .ring { background: linear-gradient(135deg, #18d2ff, #1a5cff 60%, #0a2fd0); }
.story-b span { font-size: 12px; color: var(--ink); }
.ig-av.ring { background: linear-gradient(135deg, #18d2ff, #1a5cff 60%, #0a2fd0); }
.ig-tags { color: var(--muted); }
.ig-btns .btn { border-radius: 10px; height: 34px; font-weight: 600; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.search .in { border-radius: 12px; }
.lock .box svg.i { color: var(--ink); }
.gate .btn { background: var(--ink); }

/* ===================== fil v3 — un post par écran, pagination stricte ===================== */
.fx { position: relative; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.fx-top { height: 68px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; position: relative; }
.fx-top .brand { display: none; padding: 0; font-size: 19px; }
.fx-top .brand img { width: 24px; }
.fx-top .pill { position: absolute; right: 20px; }
.fx-vp { flex: 1; min-height: 0; overflow: hidden; position: relative; touch-action: pan-x; overscroll-behavior: contain; }
.fx-track { height: 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.sl { height: 100%; display: flex; align-items: center; justify-content: center; gap: 36px; padding: 0 20px 22px; position: relative; border: 0; margin: 0; }
.sl .empty { margin: auto; }
.sl-media { height: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 24px; box-shadow: 0 18px 50px rgba(13, 13, 18, .10); }
.sl-media .dots { position: absolute; top: 14px; left: 0; right: 0; margin: 0; z-index: 4; }
.sl-media .dots i { background: rgba(255, 255, 255, .55); }
.sl-media .dots i.on { background: #fff; }
.sl-media .sound { top: 14px; bottom: auto; right: 14px; left: auto; }
.sl-info { width: 320px; align-self: flex-end; padding-bottom: 6px; }
.si-hd { display: flex; align-items: center; gap: 10px; }
.si-hd .who2 b { font-size: 15px; }
.si-cap { margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.sl-info .post-tags { margin-top: 12px; }
.post-tags span.dark { background: var(--ink); color: #fff; font-weight: 600; }
.si-acts { display: flex; gap: 8px; margin-top: 18px; }
.si-acts > * { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 13.5px; }
.si-acts > *:hover { background: #ebebef; }
.si-acts svg.i { width: 20px; height: 20px; }
.si-acts .liked svg { fill: var(--red); stroke: var(--red); }
.fx-nav { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.fx-nav button { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.fx-nav button:hover { background: #ebebef; }
.fx-nav button svg.i { width: 20px; height: 20px; transform: rotate(90deg); }
.fx-nav button + button svg.i { transform: rotate(-90deg); }
@media (max-width: 1100px) { .sl-info { width: 260px; } .fx-nav { right: 14px; } }
@media (max-width: 860px) {
  .fx { height: calc(100dvh - var(--nav) - env(safe-area-inset-bottom)); }
  .fx-top { height: 56px; justify-content: space-between; padding: 0 12px; }
  .fx-top .brand { display: flex; }
  .fx-top .brand + .seg2 { position: absolute; left: 50%; transform: translateX(-50%); }
  .fx-top .seg2 button { padding: 0 11px; font-size: 13px; height: 30px; }
  .fx-top .pill { position: static; width: 38px; height: 38px; padding: 0; justify-content: center; }
  .fx-top .pill span { display: none; }
  .fx-top .pill b { position: absolute; top: 6px; right: 4px; }
  .fx-nav { display: none; }
  .sl { padding: 0 8px 8px; }
  .sl-media { width: 100%; aspect-ratio: auto; border-radius: 20px; box-shadow: none; }
  .sl-info { position: absolute; left: 18px; right: 18px; bottom: 18px; width: auto; z-index: 6; padding: 12px 14px; border-radius: 18px;
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }
  .si-cap { margin-top: 8px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sl-info .post-tags { display: none; }
  .si-acts { margin-top: 10px; gap: 6px; }
  .si-acts > * { height: 34px; padding: 0 11px; background: rgba(13, 13, 18, .06); font-size: 12.5px; }
  .sl-media .lock { align-items: start; padding-top: 18%; }
}
@media (max-width: 380px) { .fx-top .seg2 button { padding: 0 8px; } }
.seg2 button { white-space: nowrap; }
@media (max-width: 860px) { .fx-top .brand { font-size: 0; gap: 0; } .fx-top .brand img { width: 28px; } }
