@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #08060f; --bg2: #0d0a18;
  --panel: rgba(22, 18, 36, .72); --panel-solid: #15111f; --panel2: rgba(255, 255, 255, .045); --panel3: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .075); --line2: rgba(255, 255, 255, .14);
  --text: #f4f1fa; --muted: #9a92b0; --muted2: #6f6886;
  --accent: #a855f7; --accent2: #ec4899; --accent3: #f97316;
  --grad: linear-gradient(135deg, #a855f7 0%, #ec4899 55%, #f97316 110%);
  --ok: #34d399; --warn: #fbbf24; --bad: #fb7185; --info: #60a5fa;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(236, 72, 153, .16), transparent 60%),
    radial-gradient(800px 600px at 10% 110%, rgba(168, 85, 247, .18), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(249, 115, 22, .05), transparent 70%),
    var(--bg); }
::selection { background: rgba(236, 72, 153, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,.18); }
.hidden { display: none !important; }
a { color: inherit; }
h1 { font-size: 28px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 15px; margin: 0 0 14px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 11px; margin: 0 0 8px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
b { font-weight: 700; }
.muted { color: var(--muted); }
.err { color: var(--bad); min-height: 1em; }
.small { font-size: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Structure ---------- */
#app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, rgba(20,16,32,.85), rgba(12,9,20,.85)); backdrop-filter: blur(20px); border-right: 1px solid var(--line);
  padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; padding: 0 8px; letter-spacing: -.02em; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.brand.big { font-size: 26px; justify-content: center; flex-direction: column; gap: 14px; }
.logo { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); font-size: 13px; font-weight: 800; color: #fff;
  box-shadow: 0 8px 24px -6px rgba(236,72,153,.6), inset 0 1px 0 rgba(255,255,255,.3); flex: none; }
.brand.big .logo { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.nav-label { font-size: 10.5px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: .1em; padding: 0 12px; margin-bottom: -14px; }
nav { display: flex; flex-direction: column; gap: 3px; }
nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: var(--muted); text-decoration: none; font-weight: 600; transition: background .15s, color .15s; }
nav a:hover { background: var(--panel2); color: var(--text); }
nav a.active { background: linear-gradient(90deg, rgba(168,85,247,.2), rgba(236,72,153,.06)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(168,85,247,.22); }
nav a.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
nav a.active svg.i { color: #f0abfc; }
.badges { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding: 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; }
.badges::before { content: 'État'; font-size: 10.5px; font-weight: 700; color: var(--muted2); text-transform: uppercase; letter-spacing: .1em; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 0; font-size: 12px; color: var(--muted); background: none; border: 0; font-weight: 500; }
.badges .badge { white-space: normal; line-height: 1.35; }
.badge.ok { color: #a7f3d0; } .badge.warn { color: #fde68a; } .badge.bad { color: #fecdd3; }
#badges .badge { position: relative; padding-left: 15px; }
#badges .badge::first-letter { color: transparent; font-size: 0; }
#badges .badge::before { content: ''; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted2); }
#badges .badge.ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
#badges .badge.warn::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
#badges .badge.bad::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
#logout { display: flex; align-items: center; gap: 10px; justify-content: flex-start; color: var(--muted); padding: 9px 12px; border: 0; }
#logout:hover { color: var(--text); background: var(--panel2); }

main { padding: 34px 40px 80px; min-width: 0; max-width: 1480px; width: 100%; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.head > div:first-child { max-width: 760px; }
.head .muted { font-size: 13.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #f0abfc; margin-bottom: 8px; text-transform: capitalize; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 1100px) { .g2, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  #app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand span:not(.logo), .nav-label, .badges, #logout { display: none; }
  nav { flex-direction: row; }
  nav a { padding: 8px 10px; white-space: nowrap; font-size: 13px; }
  nav a.active::before { display: none; }
  main { padding: 22px 16px 60px; }
  h1 { font-size: 23px; }
}

.card { background: var(--panel); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; overflow-x: auto; box-shadow: var(--shadow); }
.card h2 .muted { font-weight: 500; }

/* KPI */
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; transition: transform .18s, border-color .18s; }
.kpi:hover { transform: translateY(-2px); border-color: var(--line2); }
.kpi::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--tone, var(--accent)); opacity: .12; filter: blur(30px); }
.kpi .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px; color: var(--tone, var(--accent));
  background: color-mix(in srgb, var(--tone, var(--accent)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--accent)) 25%, transparent); }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* Boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); padding: 9px 16px; border-radius: 11px;
  cursor: pointer; font: inherit; font-weight: 600; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--panel3); border-color: rgba(255,255,255,.22); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); background-size: 140% 140%; border: 0; color: #fff; padding: 10px 18px; box-shadow: 0 10px 28px -10px rgba(236,72,153,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.primary:hover { background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(236,72,153,.9), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.35); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel2); }
.btn.small { padding: 6px 11px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
input, select, textarea { background: rgba(0,0,0,.28); border: 1px solid var(--line2); color: var(--text); border-radius: 11px; padding: 10px 12px; font: inherit; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(168,85,247,.7); box-shadow: 0 0 0 4px rgba(168,85,247,.15); }
input::placeholder, textarea::placeholder { color: var(--muted2); }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a92b0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
select option { background: var(--panel-solid); }
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--accent); padding: 0; cursor: pointer; }
input[type=color] { padding: 3px; height: 40px; width: 54px; cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr, table tr { transition: background .12s; }
table tr:hover td { background: rgba(255,255,255,.02); }
th { color: var(--muted2); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .thumb { width: 44px; border-radius: 8px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.active, .status.published { color: var(--ok); background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.2); }
.status.scheduled, .status.publishing { color: #c4b5fd; background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.25); }
.status.draft, .status.pending, .status.paused { color: var(--warn); background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.2); }
.status.failed, .status.banned, .status.disconnected { color: var(--bad); background: rgba(251,113,133,.08); border-color: rgba(251,113,133,.22); }

/* Calendrier */
.cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cal-nav h2 { margin: 0 6px; min-width: 190px; text-align: center; text-transform: capitalize; font-size: 20px; font-weight: 800; letter-spacing: -.02em; justify-content: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .dow { color: var(--muted2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: center; padding: 4px; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; min-height: 128px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: border-color .15s; }
.day:hover { border-color: var(--line2); }
.day.other { opacity: .32; }
.day.today { border-color: rgba(236,72,153,.55); box-shadow: 0 0 0 1px rgba(236,72,153,.25), 0 10px 30px -15px rgba(236,72,153,.6); }
.day.today .n span:first-child { background: var(--grad); color: #fff; border-radius: 8px; padding: 0 7px; }
.day .n { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 2px; }
.day .n span:nth-child(2) { font-size: 10px; background: var(--panel2); padding: 1px 7px; border-radius: 99px; color: var(--muted); }
.chip { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 4px 7px; border-radius: 7px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent); border-left: 3px solid var(--c, var(--accent)); transition: background .12s, transform .12s; }
.chip:hover { background: color-mix(in srgb, var(--c, var(--accent)) 24%, transparent); transform: translateX(1px); }
.chip.draft { background: transparent; border: 1px dashed color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); border-left-width: 3px; }
.chip.published { opacity: .5; }
.chip.failed { background: rgba(251,113,133,.15); border-left-color: var(--bad); }
.more { font-size: 11px; color: #f0abfc; cursor: pointer; padding-left: 4px; font-weight: 600; }
@media (max-width: 900px) { .day { min-height: 80px; padding: 5px; } .chip { font-size: 10px; } .cal { gap: 4px; } }

/* Médias */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.media { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s; }
.media:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.thumb { position: relative; aspect-ratio: 4/5; background: #000; overflow: hidden; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.media:hover .thumb img, .media:hover .thumb video { transform: scale(1.04); }
.thumb .tag, .thumb .uses { position: absolute; top: 8px; background: rgba(10,8,16,.6); backdrop-filter: blur(8px); padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; border: 1px solid rgba(255,255,255,.1); }
.thumb .tag { left: 8px; } .thumb .uses { right: 8px; }
.media .body { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.media .body input { padding: 7px 9px; font-size: 12px; }
.drop { position: relative; border: 1.5px dashed rgba(168,85,247,.4); border-radius: var(--radius); padding: 38px 20px; text-align: center; color: var(--muted); cursor: pointer; transition: .2s;
  background: radial-gradient(400px 120px at 50% 0%, rgba(168,85,247,.1), transparent), var(--panel2); }
.drop::before { content: ''; display: block; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0-5 5m5-5 5 5M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / 26px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.drop:hover, .drop.over { border-color: var(--accent2); background: radial-gradient(400px 120px at 50% 0%, rgba(236,72,153,.16), transparent), var(--panel2); color: var(--text); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.tab { padding: 7px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; transition: .15s; border: 0; }
.tab:hover { color: var(--text); }
.tab.active { color: #fff; background: var(--panel3); box-shadow: inset 0 0 0 1px rgba(168,85,247,.35), 0 4px 14px -6px rgba(168,85,247,.5); }
.mini-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-thumbs .thumb { width: 78px; border-radius: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 3px; }
.pick-grid .thumb { border-radius: 10px; cursor: pointer; outline: 2px solid transparent; outline-offset: 1px; transition: outline-color .12s, transform .12s; }
.pick-grid .thumb:hover { transform: scale(1.03); }
.pick-grid .thumb.sel { outline: 3px solid var(--accent2); }
.pick-grid .thumb.sel::after { content: '✓'; position: absolute; top: 5px; right: 5px; background: var(--grad); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }

/* Stats */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 12px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars .b i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent2), var(--accent) 80%); min-height: 3px; opacity: .85; transition: opacity .15s, filter .15s; }
.bars .b span { font-size: 10px; color: var(--muted2); margin-top: 6px; font-weight: 600; }
.bars .b:hover i { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 8px rgba(236,72,153,.6)); }
.meter { height: 7px; background: var(--panel3); border-radius: 99px; overflow: hidden; min-width: 70px; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.md h3 { margin-top: 18px; color: var(--text); text-transform: none; font-size: 15px; letter-spacing: -.01em; }
.md ul { padding-left: 18px; margin: 6px 0; }
.md li { margin: 3px 0; }
.md p { margin: 6px 0; }

/* Modal / toast / login */
.modal { position: fixed; inset: 0; background: rgba(4,2,10,.7); backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .18s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal-box { background: linear-gradient(180deg, #1a1528, #120e1d); border: 1px solid var(--line2); border-radius: 22px; padding: 26px; width: min(780px, 100%); max-height: 92vh; overflow: auto;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(168,85,247,.08); animation: pop .22s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-box > h2:first-child { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: rgba(26,21,40,.92); backdrop-filter: blur(12px); border: 1px solid rgba(52,211,153,.35); padding: 12px 20px 12px 16px;
  border-radius: 14px; z-index: 60; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); font-weight: 600; display: flex; gap: 10px; align-items: center; animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2) both; }
.toast::before { content: '✓'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(52,211,153,.15); color: var(--ok); font-size: 12px; }
.toast.bad { border-color: rgba(251,113,133,.45); color: #fecdd3; }
.toast.bad::before { content: '!'; background: rgba(251,113,133,.15); color: var(--bad); font-weight: 800; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.login::before, .login::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; animation: float 14s ease-in-out infinite alternate; }
.login::before { width: 460px; height: 460px; background: #a855f7; top: -120px; left: -80px; }
.login::after { width: 420px; height: 420px; background: #ec4899; bottom: -140px; right: -60px; animation-delay: -6s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.1); } }
.login-card { position: relative; z-index: 1; width: 380px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 38px 32px 30px; border-radius: 26px;
  background: rgba(20,16,32,.65); backdrop-filter: blur(24px); border: 1px solid var(--line2); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.login-card .brand.big { margin-bottom: 4px; }
.login-card input { padding: 13px 14px; text-align: center; font-size: 15px; }
.login-card .btn.primary { padding: 13px; font-size: 15px; }
.login-foot { font-size: 11.5px; color: var(--muted2); display: flex; align-items: center; justify-content: center; gap: 6px; }

.qr { background: #fff; padding: 10px; border-radius: 16px; width: 220px; box-shadow: 0 20px 40px -15px rgba(236,72,153,.5); }
.notice { background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.22); color: #fde68a; border-radius: 14px; padding: 12px 14px; line-height: 1.55; }
.notice.info { background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.28); color: #ede9fe; }
.list-alerts > div { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.list-alerts > div:last-child { border-bottom: 0; }
.next-item { display: flex; gap: 12px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; transition: background .12s; }
.next-item:hover { background: var(--panel2); }
.next-item .thumb { width: 46px; border-radius: 10px; flex: none; }
.next-item .when { text-align: right; flex: none; }
.next-item .when b { display: block; font-size: 13px; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty .big { font-size: 30px; margin-bottom: 6px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 40px 0; }

/* Bandeau d'accueil */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px; margin-bottom: 18px; border: 1px solid rgba(236,72,153,.2);
  background: radial-gradient(500px 220px at 100% 0%, rgba(236,72,153,.28), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(168,85,247,.3), transparent 70%), rgba(22,18,36,.7);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hero h1 { font-size: 30px; }
.hero p { margin: 0; color: #d6cfe6; max-width: 620px; }
