/* OXENED — DA NEDOXE en version pro : fond blanc, dégradé cyan → bleu, interface sobre */
:root {
  --bg: #fff; --soft: #f1f4f9; --line: #dde2ea; --ink: #070d1a; --muted: #4a5368; --faint: #7d869a; --grid: #e3e7ee;
  --blue: #3b5196; --blue-d: #2c3e78; --cyan: #18d2ff; --red: #ff2d55; --green: #12b76a; --amber: #f5a524;
  --grad: #3b5196;
  --card: #fff; --side: #fbfcfe; --sel: #eceef3; --sel2: #f4f5f8; --line2: #eceff4; --axis: #cfd5df; --ink2: #2b3346; --selb: #c5cad6; --popbg: rgba(250,250,252,.86); --bar: var(--blue); --barhot: #26366b;
  --r: 14px; --side: 236px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { font-size: 14.5px; line-height: 1.45; }
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%; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* layout */
.shell { display: flex; min-height: 100dvh; }
.side { width: var(--side); border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; background: var(--card); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 20px; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; }
.org { margin: 0 4px 14px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.org b { display: block; font-size: 14px; }
.side a.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-weight: 600; color: #3a4254; }
.side a.nav:hover { background: var(--soft); }
.side a.nav.on { background: var(--sel); color: var(--blue-d); }
.side a.nav .badge { margin-left: auto; }
.side .grow { flex: 1; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); margin-top: 8px; font-size: 13px; }
.side .me b { display: block; font-size: 13.5px; }
.main { flex: 1; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 26px 28px 80px; }
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.top h1 { margin: 0; margin-right: auto; }
.mtop { display: none; }
@media (max-width: 900px) {
  .side { position: fixed; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(10, 20, 50, .15); }
  .side.open { transform: none; }
  .mtop { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 10; font-weight: 800; }
  .mtop img { width: 26px; }
  .page { padding: 18px 16px 80px; }
}

/* éléments */
h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 18px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .faint { color: var(--faint); }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 11px; font-weight: 700; background: var(--grad); color: #fff; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.line { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: var(--card)0f3; color: #d0103a; }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.in { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; background: var(--soft); outline: none; }
select.in { padding-right: 8px; }
textarea.in { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; }
.in:focus { border-color: var(--blue); background: var(--card); }
.in.sm { height: 34px; border-radius: 9px; font-size: 13.5px; width: auto; }
.seg { display: inline-flex; background: var(--soft); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { height: 32px; padding: 0 13px; border-radius: 8px; font-weight: 600; color: var(--muted); font-size: 13.5px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 20, 50, .1); }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--card); }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: 1fr 1fr; } .g3, .g2 { grid-template-columns: 1fr; } }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--sel) center/cover; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--blue); font-size: 14px; overflow: hidden; }
.av.xs { width: 24px; height: 24px; font-size: 11px; } .av.lg { width: 56px; height: 56px; font-size: 20px; }
.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; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.blue { background: var(--sel); color: var(--blue-d); } .pill.green { background: #e7f8ef; color: #0a8a4f; } .pill.red { background: var(--card)0f3; color: #d0103a; } .pill.amber { background: var(--card)6e5; color: #a86a00; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 13px; border-radius: 99px; background: var(--soft); font-size: 13px; font-weight: 600; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--sel); color: var(--blue-d); border-color: var(--selb); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* KPI */
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.kpi span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi b { display: block; font-size: 25px; letter-spacing: -.02em; margin-top: 4px; }
.kpi i { font-style: normal; font-size: 12.5px; font-weight: 700; }
.up { color: var(--green); } .down { color: var(--red); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { width: 100%; height: 220px; display: block; }
.chart text { font-size: 11px; fill: var(--faint); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tblw { overflow-x: auto; }

/* messagerie */
.inbox { display: grid; grid-template-columns: 320px 1fr 300px; height: 100dvh; }
.inbox > div { min-height: 0; display: flex; flex-direction: column; }
.ilist { border-right: 1px solid var(--line); }
.ilist .hd { padding: 18px 16px 10px; }
.ilist .sc { overflow-y: auto; flex: 1; }
.th { display: flex; gap: 10px; padding: 11px 16px; cursor: pointer; border-left: 3px solid transparent; }
.th:hover { background: var(--soft); }
.th.on { background: var(--sel2); border-left-color: var(--blue); }
.th .t { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th.unread b, .th.unread .t { color: var(--ink); font-weight: 700; }
.th .meta { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.conv .hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.conv .msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--side); }
.bub { max-width: 70%; padding: 9px 13px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.bub.mine { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); }
.bub .by { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.bub .med { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.bub .med img, .bub .med video { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; }
.bub.tip { background: var(--card)6e5; border-color: #ffe2a8; color: #7a4d00; }
.typing { font-size: 12.5px; color: var(--amber); font-weight: 700; padding: 6px 18px; background: var(--card)af0; border-top: 1px solid #ffe9c2; }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; min-height: 44px; max-height: 160px; background: none; }
.composer .att { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.composer .att span { position: relative; }
.composer .att img, .composer .att .vid { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; background: #222; }
.composer .att button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; }
.fancard { border-left: 1px solid var(--line); overflow-y: auto; padding: 18px; }
.fancard .stat { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.note { background: var(--soft); border-radius: 10px; padding: 9px 11px; font-size: 13px; margin-bottom: 8px; }
.note small { display: block; color: var(--faint); margin-top: 3px; }
@media (max-width: 1200px) { .inbox { grid-template-columns: 280px 1fr; } .fancard { display: none; } .inbox.card-open .fancard { display: block; position: fixed; right: 0; top: 0; bottom: 0; width: 320px; background: var(--card); z-index: 30; box-shadow: -10px 0 40px rgba(10,20,50,.1); } }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; height: calc(100dvh - 51px); } .inbox .conv { display: none; } .inbox.open .ilist { display: none; } .inbox.open .conv { display: flex; } }

/* contenus */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.lib .it { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; border: 2px solid transparent; }
.lib .it.on { border-color: var(--blue); }
.lib .it img, .lib .it video { width: 100%; height: 100%; object-fit: cover; }
.lib .it .k { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.lib .it .n { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 104px; padding: 6px; font-size: 12px; }
.cal .dh { min-height: 0; font-weight: 700; color: var(--muted); text-align: center; background: var(--soft); }
.cal .out { background: var(--side); color: var(--faint); }
.cal .today b { background: var(--blue); color: #fff; border-radius: 6px; padding: 0 5px; }
.cal .ev { display: flex; gap: 5px; align-items: center; margin-top: 4px; padding: 3px 5px; border-radius: 6px; background: var(--sel); color: var(--blue-d); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal .ev.live { background: var(--soft); color: var(--muted); }
.cal .ev.story { background: #e8fbff; color: #007a99; }
@media (max-width: 700px) { .cal > div { min-height: 64px; } .cal .ev span { display: none; } }

/* matrice de permissions */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix input { width: 17px; height: 17px; accent-color: var(--blue); }

/* modale / toast */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(11, 18, 32, .45); display: grid; place-items: center; padding: 16px; }
.modal .box { background: var(--card); border-radius: 18px; width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; padding: 22px; }
.modal .box.wide { max-width: 860px; }
.modal .box h2 { font-size: 18px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; }
#toast div { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 11px; font-weight: 600; font-size: 13.5px; margin-top: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
#toast div.err { background: #d0103a; }

/* accueil / auth */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .l { padding: 48px 56px; display: flex; flex-direction: column; background: var(--soft); }
.auth .l h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: auto 0 16px; max-width: 520px; }
.auth .l p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 0 26px; }
.auth .l ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 10px; max-width: 480px; }
.auth .l li { display: flex; gap: 10px; align-items: flex-start; }
.auth .l li svg { color: var(--blue); margin-top: 1px; }
.auth .r { display: grid; place-items: center; padding: 32px 20px; }
.auth .r .f { width: 100%; max-width: 360px; }
.auth .or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin: 18px 0; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn.nedoxe { background: var(--card); border: 1px solid var(--line); color: var(--ink); height: 44px; }
.btn.nedoxe img { width: 20px; }
.err-t { color: #d0103a; font-size: 13px; min-height: 18px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .l { padding: 28px 22px; } .auth .l h1 { font-size: 30px; margin-top: 30px; } .auth .l ul { margin-bottom: 0; } }

.plat { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.plat img, .plat .lg { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; }
.plat .lg { background: var(--soft); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.plat.off { opacity: .55; }
.danger-zone { border: 1px solid #ffc9d4; background: var(--card)8fa; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }
.ilist .seg { display: flex; } .ilist .seg button { flex: 1; padding: 0 6px; font-size: 12.5px; white-space: nowrap; }

/* accueil : panneau produit */
.auth .l.hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.auth .l.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 110% 110%, rgba(255,255,255,.18), transparent 60%), radial-gradient(600px 400px at -10% -10%, rgba(255,255,255,.12), transparent 60%); pointer-events: none; }
.hb { font-weight: 800; font-size: 20px; letter-spacing: .03em; position: relative; z-index: 1; }
.hb img { border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.hcopy { position: relative; z-index: 1; margin-top: 7vh; }
.auth .l.hero h1 { color: #fff; margin: 0 0 14px; font-size: 44px; }
.auth .l.hero p { color: rgba(255,255,255,.85); margin: 0; }
.mock { position: relative; z-index: 1; flex: 1; min-height: 360px; margin-top: 30px; }
.mk { position: absolute; background: var(--card); color: var(--ink); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(5,20,80,.25); animation: rise .7s cubic-bezier(.2,.8,.2,1) both; font-size: 13px; }
.mk span { color: var(--muted); font-size: 12px; font-weight: 600; } .mk b { font-weight: 700; }
.k1 { left: 0; top: 0; width: 300px; } .k1 > b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 2px; } .k1 > i { font-style: normal; color: var(--green); font-weight: 700; font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 10px; }
.bars em { flex: 1; background: linear-gradient(#18d2ff, #3b5196); border-radius: 3px 3px 0 0; animation: grow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.k2 { right: 0; top: 70px; width: 280px; animation-delay: .15s; } .k2 .row span { display: block; }
.bb { background: var(--soft); border-radius: 12px; padding: 8px 11px; margin-top: 8px; max-width: 85%; }
.bb.me { background: var(--blue); color: #fff; margin-left: auto; } .bb small { display: block; font-size: 10.5px; opacity: .8; margin-top: 3px; }
.ty { color: var(--amber); font-weight: 700; font-size: 11.5px; margin-top: 8px; }
.k3 { left: 40px; bottom: 30px; width: 270px; animation-delay: .3s; }
.tm { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line2); margin-top: 6px; } .tm span { color: var(--muted); font-size: 12px; } .tm i { margin-left: auto; font-style: normal; font-weight: 700; }
.k4 { right: 20px; bottom: 0; display: flex; gap: 6px; padding: 10px; animation-delay: .45s; }
.pl { background: var(--sel); color: var(--blue-d) !important; border-radius: 99px; padding: 4px 10px; font-weight: 700 !important; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes grow { from { transform: scaleY(0); } }
@media (max-width: 1100px) { .k2 { top: 160px; } .k3 { display: none; } }
@media (max-width: 860px) { .mock { display: none; } .hcopy { margin-top: 24px; } .auth .l.hero h1 { font-size: 32px; } }

/* contraste renforcé */
body { color: var(--ink); }
.card, .kpi { border-color: var(--line); box-shadow: 0 1px 2px rgba(10, 20, 50, .04); }
.kpi span, .field > span, .tbl th { color: var(--muted); }
.tbl th { color: var(--ink2); font-weight: 700; border-bottom-color: var(--axis); }
.tbl td { border-bottom-color: var(--line2); }
.side { background: var(--side); }
.side a.nav { color: var(--ink2); }
.kpi b { font-size: 27px; }
.pill { background: var(--line2); color: var(--ink2); }
/* graphiques */
.chartw { position: relative; margin-top: 12px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 11.5px; fill: var(--muted); font-weight: 600; }
.tip { position: absolute; pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; min-width: 190px; font-size: 12.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tip .tt { font-size: 20px; font-weight: 800; margin: 2px 0 6px; }
.tip .tr { display: flex; align-items: center; gap: 7px; padding: 2px 0; color: #d6dbe6; } .tip .tr span { margin-left: auto; color: #fff; font-weight: 700; } .tip i { width: 9px; height: 9px; border-radius: 3px; }
.legend { color: var(--ink2); font-weight: 600; }
.donut svg { width: 100%; max-width: 200px; display: block; margin: 6px auto 14px; }
.donut .dv { font-size: 18px; font-weight: 800; fill: var(--ink); } .donut .dl { font-size: 11px; fill: var(--muted); }
.dleg div { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line2); font-size: 13.5px; } .dleg i { width: 11px; height: 11px; border-radius: 3px; } .dleg b { margin-left: auto; }
.hb2 { padding: 9px 0; } .hb2 span { font-weight: 700; font-variant-numeric: tabular-nums; } .hb2 small { color: var(--muted); font-size: 12px; }
.trk { height: 9px; background: var(--soft); border-radius: 99px; margin: 6px 0 4px; overflow: hidden; } .trk em { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
@media (max-width: 1000px) { #cgr { grid-template-columns: 1fr !important; } }
/* classements */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin-bottom: 16px; }
.pd { border: 1px solid var(--line); border-radius: 18px; padding: 22px 16px; text-align: center; background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.pd.p1 { padding-top: 34px; background: linear-gradient(180deg, #eef4ff, #fff 60%); border-color: var(--selb); box-shadow: 0 12px 34px rgba(26, 92, 255, .14); }
.pd span:not(.rk) { color: var(--muted); font-size: 12.5px; } .pd .pv { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.pd .rk { position: absolute; top: 12px; left: 12px; }
.pd.mine { border-color: var(--selb); }
.rk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); font-weight: 800; font-size: 12.5px; color: var(--ink2); }
.rk.r1 { background: #f5c542; color: #5a3a00; } .rk.r2 { background: linear-gradient(135deg, var(--line2), #b8c0cd); color: var(--ink2); } .rk.r3 { background: linear-gradient(135deg, #f3c9a4, #c98a55); color: #4a2a10; }
.lbt tr.mine td { background: var(--sel2); }
@media (max-width: 700px) { .podium { grid-template-columns: 1fr; } }

/* graphique v3 */
.chart .ya { font-size: 15px; fill: var(--muted); font-weight: 600; } .chart .xa { font-size: 15px; fill: var(--muted); font-weight: 600; }
.tip { top: 4px; min-width: 210px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(10,20,50,.16); }
.tip > span { color: var(--muted); font-size: 12px; font-weight: 600; } .tip .tt { font-size: 22px; } .tip .tt em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.tip .tr { color: var(--ink2); } .tip .tr b { margin-left: auto; color: var(--ink); } .tip .tr.pv { color: var(--muted); border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 6px; }
.chead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chead .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.leg2 { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 8px; } .leg2 i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
#cgr { align-items: start; }

/* accueil v3 : panneau produit sombre façon outil pro */
.auth { grid-template-columns: 1.25fr 1fr; }
.auth .l.hx { background: radial-gradient(1200px 700px at 100% 120%, #3b5196 0%, transparent 55%), radial-gradient(700px 500px at -10% -20%, #0e3bd6 0%, transparent 60%), #050b1f; color: #fff; padding: 40px 48px; position: relative; overflow: hidden; }
.auth .l.hx::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%); }
.hx > * { position: relative; z-index: 1; }
.hx .hb { font-weight: 800; font-size: 19px; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.hx .eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6vh; padding: 6px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; font-size: 12.5px; font-weight: 600; color: #cfe0ff; background: rgba(255,255,255,.05); }
.hx .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #22d37a; box-shadow: 0 0 0 4px rgba(34,211,122,.18); }
.hx h1 { color: #fff; font-size: 46px; line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 14px; max-width: 620px; }
.hx h1 em { font-style: normal; background: linear-gradient(90deg, #5ee0ff, #6f9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx p.lead { color: #aebbd6; font-size: 16px; max-width: 520px; margin: 0; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 24px 0 0; max-width: 620px; }
.why div { display: flex; gap: 10px; font-size: 13.5px; color: #dbe4f5; }
.why svg { color: #5ee0ff; margin-top: 1px; width: 18px; height: 18px; }
.win { margin-top: 30px; background: var(--card); border-radius: 14px 14px 0 0; box-shadow: 0 30px 80px rgba(0,0,0,.5); color: var(--ink); overflow: hidden; max-width: 760px; transform: perspective(1600px) rotateX(4deg); transform-origin: bottom; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.win .bar { height: 30px; background: var(--line2); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.win .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--axis); }
.win .bar span { margin-left: 10px; font-size: 11px; color: var(--muted); background: var(--card); border-radius: 6px; padding: 2px 10px; }
.win .wb { display: grid; grid-template-columns: 120px 1fr; min-height: 230px; }
.win .ws { background: var(--side); border-right: 1px solid var(--line2); padding: 12px 10px; font-size: 11px; font-weight: 600; color: var(--ink2); }
.win .ws div { padding: 6px 8px; border-radius: 7px; } .win .ws .on { background: var(--sel); color: var(--blue-d); }
.win .wm { padding: 14px; }
.win .kr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.win .kr div { border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; font-size: 10px; color: var(--muted); font-weight: 600; }
.win .kr b { display: block; font-size: 15px; color: var(--ink); margin-top: 2px; }
.win svg { width: 100%; height: 110px; display: block; margin-top: 10px; }
.toast2 { position: absolute; z-index: 2; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.toast2 b { display: block; } .toast2 span { color: var(--muted); font-size: 11.5px; }
.toast2 .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.hxwrap { position: relative; }
.t1 { right: 6%; top: 8px; animation-delay: .35s; } .t2 { left: -8px; bottom: 40px; animation-delay: .55s; }
.trust { margin-top: auto; padding-top: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #8a98b8; font-weight: 600; }
.trust b { color: #dbe4f5; }
@media (max-width: 1150px) { .why { grid-template-columns: 1fr; } .toast2 { display: none; } }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .l.hx { padding: 26px 20px; } .hx h1 { font-size: 32px; } .win, .trust { display: none; } }
/* Earnings façon Infloww */
.echips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.echips button { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--card); border-top: 3px solid var(--line2); }
.echips button.on { border-top-color: var(--c); background: var(--sel2); }
.echips button span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.echips button i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); opacity: .35; } .echips button.on i { opacity: 1; }
.echips button b { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 4px; }
.echips button:not(.on) b { color: var(--faint); }
.ebd { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; } .ebd summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--blue-d); padding: 4px 0; }
.ebd .tblw { max-height: 360px; overflow-y: auto; margin-top: 8px; }
@media (max-width: 900px) { .echips { grid-template-columns: 1fr 1fr; } }
.echips + .chartw .chart .ya, .echips + .chartw .chart .xa { font-size: 12px; }
/* barres */
.chartw.barsw .ya, .chartw.barsw .xa { font-size: 12.5px; }
.chartw.barsw .bar { transition: opacity .12s; } .chartw.barsw .bar.dim { opacity: .35; }
.echips button { border-top-width: 1px; } .echips button.on { border-color: var(--blue); background: var(--sel2); box-shadow: inset 0 0 0 1px var(--blue); }
.echips button.on span { color: var(--blue-d); }
#rg button { padding: 0 10px; }
.chartw .chart { width: 100%; height: auto; aspect-ratio: 1000 / 320; overflow: hidden; display: block; }
/* connexion : image à gauche, formulaire à droite */
.auth .l.limg { background: #050b1f url(/img/login.jpg) center 30% / cover no-repeat; color: #fff; position: relative; padding: 36px 44px; justify-content: space-between; }
.auth .l.limg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,31,.55) 0%, rgba(5,11,31,0) 28%, rgba(5,11,31,0) 50%, rgba(5,11,31,.88) 100%); }
.limg > * { position: relative; z-index: 1; }
.limg .hb { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .04em; }
.limg .lcap h1 { color: #fff; font-size: 42px; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; }
.limg .lcap p { color: #c9d6ee; font-size: 16px; margin: 0; max-width: 460px; }
@media (max-width: 860px) { .auth .l.limg { min-height: 260px; padding: 22px 20px; } .limg .lcap h1 { font-size: 28px; } }

/* sobriété : plus aucun dégradé, aplats et ombres légères */
.pd.p1 { background: var(--card); box-shadow: 0 1px 2px rgba(10,20,50,.06); border-color: var(--line); }
.rk.r1 { background: #f5c542; color: #3d2b00; } .rk.r2 { background: #d5dae2; } .rk.r3 { background: #d9a77a; color: #3a2210; }
.trk em { background: var(--blue); }
.echips button.on { box-shadow: none; background: var(--sel2); }
.btn { border-radius: 9px; font-weight: 600; } .btn:hover { filter: brightness(.94); }
.card, .kpi { border-radius: 12px; }
.side a.nav.on { background: var(--sel2); color: var(--ink); }
.auth .l.limg::before { content: ""; position: absolute; inset: 0; background: inherit; filter: grayscale(1) contrast(1.05) brightness(.9); }
.auth .l.limg::after { background: linear-gradient(180deg, rgba(10,12,16,.35), rgba(10,12,16,.1) 40%, rgba(10,12,16,.82)); }
.auth .l.limg { background-color: #111; }

/* menu déroulant façon macOS */
.pop { position: relative; }
.pop-b { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-weight: 600; font-size: 13.5px; box-shadow: 0 1px 2px rgba(10,20,50,.05); }
.pop-b:hover { background: var(--sel2); } .pop-b .i { width: 16px; height: 16px; color: var(--muted); } .pop-b .chev { margin-left: 2px; transition: transform .15s; }
.pop.open .pop-b .chev { transform: rotate(180deg); }
.pop-m { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px; padding: 5px; border-radius: 11px; background: var(--popbg); backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(0,0,0,.08); box-shadow: 0 10px 38px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.06); opacity: 0; transform: scale(.97) translateY(-4px); transform-origin: top right; pointer-events: none; transition: opacity .12s, transform .12s; }
.pop.open .pop-m { opacity: 1; transform: none; pointer-events: auto; }
.pop-m button { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 6px 10px 6px 6px; border-radius: 6px; font-size: 13.5px; color: var(--ink); }
.pop-m button:hover { background: #3b5196; color: #fff; }
.pop-m .ck { width: 15px; height: 15px; stroke-width: 2.4; visibility: hidden; } .pop-m button.on .ck { visibility: visible; }
.chartw.barsw .bar { fill: var(--bar); } .chartw.barsw .bar.hot { fill: var(--barhot); }
select.native { width: auto; height: 34px; padding: 0 30px 0 12px; background-color: var(--card); border: 1px solid var(--line); font-weight: 600; }

/* ---------- mode sombre (html[data-theme=dark], ou système si « auto ») ---------- */
html[data-theme="dark"] { color-scheme: dark;
  --bg: #0e1116; --card: #161a22; --side: #12161d; --soft: #1d222c; --line: #2a303c; --line2: #232935; --grid: #222833; --axis: #3a4252;
  --ink: #e9ecf2; --ink2: #c9cfda; --muted: #9aa3b4; --faint: #6c7588; --sel: #232b3d; --sel2: #1b2029; --selb: #3d4a6d;
  --blue: #7b8fd8; --blue-d: #a9b7ee; --bar: #6f84d0; --barhot: #a3b3ee; --popbg: rgba(38,42,52,.88); }
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .btn:not(.ghost):not(.line):not(.danger):not(.nedoxe), html[data-theme="dark"] .bub.mine { background: #5268b8; color: #fff; }
html[data-theme="dark"] .pill.green { background: #12301f; color: #4ade80; } html[data-theme="dark"] .pill.red { background: #3a1520; color: #ff7a93; }
html[data-theme="dark"] .pill.amber { background: #33270f; color: #fbbf24; } html[data-theme="dark"] .pill.blue { background: var(--sel); color: var(--blue-d); }
html[data-theme="dark"] .btn.danger { background: #3a1520; color: #ff8aa0; } html[data-theme="dark"] .danger-zone { background: #24131a; border-color: #4a2030; }
html[data-theme="dark"] .typing { background: #2a2210; border-color: #4a3a14; } html[data-theme="dark"] .bub.tip { background: #2a2210; border-color: #4a3a14; color: #fcd34d; }
html[data-theme="dark"] #toast div { background: #e9ecf2; color: #0e1116; } html[data-theme="dark"] #toast div.err { background: #d0103a; color: #fff; }
html[data-theme="dark"] .modal { background: rgba(0,0,0,.6); }
html[data-theme="dark"] .tip, html[data-theme="dark"] .card, html[data-theme="dark"] .kpi { box-shadow: none; }
html[data-theme="dark"] .pop-m button:hover { background: #5268b8; }
html[data-theme="dark"] .btn.nedoxe { background: var(--card); color: var(--ink); }
html[data-theme="dark"] .rk:not(.r1):not(.r2):not(.r3) { background: var(--soft); color: var(--ink2); }
html[data-theme="dark"] .av { background-color: var(--sel); color: var(--blue-d); }
html[data-theme="dark"] .lib .it, html[data-theme="dark"] .composer .att img { background: var(--soft); }
html[data-theme="dark"] input[type=checkbox] { accent-color: #7b8fd8; }
.themeb { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); } .themeb:hover { background: var(--soft); color: var(--ink); }
.themeb .i { width: 18px; height: 18px; }
.rk.r1 { color: #3d2b00; } .rk.r2 { color: #1f2633; } .rk.r3 { color: #3a2210; }
/* connexion Apple / Google */
.btn.sso { height: 44px; margin-bottom: 10px; font-weight: 600; }
.btn.sso.apple { background: #000; color: #fff; } .btn.sso.google { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
html[data-theme="dark"] .btn.sso.apple { background: #fff; color: #000; }

/* ---------- Vault & posts ---------- */
.ctabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: -4px 0 18px; }
.ctabs button { padding: 10px 2px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14.5px; }
.ctabs button.on { color: var(--ink); border-bottom-color: var(--blue); }
.cal2 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal2 .dh { padding: 9px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--sel2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.cday { min-height: 132px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--card); }
.cday > b { font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 2px; }
.cday.out { background: var(--sel2); } .cday.out > b { color: var(--faint); }
.cday.today > b { align-self: flex-start; background: var(--blue); color: #fff; border-radius: 6px; padding: 1px 7px; }
.cday.fut { cursor: pointer; } .cday.fut:hover { background: var(--sel2); }
.cev { display: flex; align-items: center; gap: 6px; text-align: left; padding: 3px; border-radius: 7px; background: var(--sel); font-size: 12px; overflow: hidden; border-left: 3px solid var(--axis); }
.cev.sch { border-left-color: var(--blue); } .cev.story { border-left-color: #14b8e6; }
.cev img, .cev i { width: 26px; height: 32px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: var(--soft); }
.cev > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); } .cev em { font-style: normal; font-weight: 700; color: var(--ink); }
.cev:hover { filter: brightness(.97); }
@media (max-width: 800px) { .cday { min-height: 80px; } .cev > span { display: none; } }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); cursor: pointer; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 6px 22px rgba(10,20,50,.1); }
.pth { position: relative; aspect-ratio: 4 / 5; background: var(--soft); } .pth img { width: 100%; height: 100%; object-fit: cover; }
.pbad { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.pbody { padding: 11px 12px 12px; } .pbody p { margin: 0 0 8px; font-size: 13.5px; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pnone { width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center; color: var(--faint); font-size: 13px; background: var(--soft); }
.pmod { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.pmed { display: grid; gap: 8px; max-height: 70vh; overflow-y: auto; } .pmed img { width: 100%; border-radius: 10px; }
.stat2 { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 14px; } .stat2 span { color: var(--muted); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px; border: 2px dashed var(--line); border-radius: 14px; background: var(--sel2); cursor: pointer; text-align: center; color: var(--muted); }
.drop .i { width: 30px; height: 30px; color: var(--blue); } .drop b { color: var(--ink); font-size: 15px; } .drop span { font-size: 13px; }
.drop.big { min-height: 230px; } .drop.over, .drop:hover { border-color: var(--blue); background: var(--sel); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.vit { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--soft); } .vit img { width: 100%; height: 100%; object-fit: cover; }
.vit .k, .vit .d { position: absolute; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; } .vit .k { left: 8px; } .vit .d { right: 8px; opacity: 0; transition: opacity .15s; } .vit:hover .d { opacity: 1; }
.comp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.cmg { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cmi { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--soft); } .cmi img { width: 100%; height: 100%; object-fit: cover; }
.cmi button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; }
.cmi.add { display: grid; place-items: center; font-size: 30px; color: var(--muted); border: 2px dashed var(--line); background: var(--sel2); cursor: pointer; }
.pv { margin-top: 8px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); position: sticky; top: 0; }
.pvm { position: relative; aspect-ratio: 4 / 5; background: var(--soft); } .pvm img { width: 100%; height: 100%; object-fit: cover; }
.pvm.lock img { filter: blur(18px) brightness(.85); transform: scale(1.1); }
.pvl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); } .pvl .i { width: 28px; height: 28px; }
.pvc { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.pvt { padding: 12px 14px; font-size: 13.5px; }
@media (max-width: 900px) { .comp, .pmod { grid-template-columns: 1fr; } }
/* journaux : une ligne sur deux teintée + séparateurs nets */
.tbl.zebra tr:nth-child(even) td { background: var(--sel2); }
.tbl.zebra td { border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
