/* Q.Re Paris – portail partenaires. Aucune ressource externe (compatible Chine). */
:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6f6a64;
  --line: #e6e1da;
  --soft: #faf8f5;
  --accent: #1a1a1a;
  --gold: #a88a5b;
  --ok: #3d7a4f;
  --warn: #a8661b;
  --danger: #a33a32;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ---------- en-tête ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 24px; }
.brand { font-weight: 600; letter-spacing: 4px; font-size: 18px; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-sub { color: var(--muted); font-size: 13px; letter-spacing: .5px; border-left: 1px solid var(--line); padding-left: 20px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.who { color: var(--muted); text-align: right; line-height: 1.3; }
.who strong { color: var(--ink); font-weight: 500; display: block; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); }
.lang-switch button { background: none; border: 0; padding: 4px 10px; cursor: pointer; font-size: 13px; color: var(--muted); }
.lang-switch button.on { background: var(--ink); color: #fff; }

.tabs { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; gap: 28px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; cursor: pointer; color: var(--muted); font-size: 14px; letter-spacing: .3px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- mise en page ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 28px; margin-bottom: 28px; }
.card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.card .lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; gap: 10px 16px; padding: 14px 16px; }
  .brand-sub { display: none; }
  main { padding: 20px 12px 48px; }
  .card { padding: 20px 16px; }
  .tabs { padding: 0 16px; gap: 20px; overflow-x: auto; }
}

/* ---------- formulaires ---------- */
label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 72px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 10px 20px; cursor: pointer; font-size: 14px; letter-spacing: .3px; text-decoration: none; white-space: nowrap; }
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--danger); border-color: #e7cbc8; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 7px 12px; cursor: pointer; user-select: none; font-size: 14px; background: var(--surface); }
.check input { margin: 0; accent-color: var(--ink); }
.check.on { border-color: var(--ink); background: var(--soft); }
.check.locked { opacity: .7; cursor: default; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.inline-check input { accent-color: var(--ink); }

/* ---------- zone de dépôt ---------- */
.dropzone { border: 1px dashed #c9c1b6; background: var(--soft); padding: 32px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: #f3efe9; }
.dropzone .dz-title { font-weight: 500; }
.dropzone .dz-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.filelist { list-style: none; margin: 12px 0 0; padding: 0; }
.filelist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.filelist li .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.pct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 1em; }
.progress { width: 140px; height: 4px; background: var(--line); flex-shrink: 0; }
.progress > div { height: 100%; background: var(--ink); width: 0; transition: width .2s; }
.fstatus { width: 90px; text-align: right; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.fstatus.ok { color: var(--ok); }
.fstatus.err { color: var(--danger); }

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td .doc-title { font-weight: 500; }
td .doc-file { color: var(--muted); font-size: 12px; word-break: break-all; }
td .doc-desc { color: var(--muted); font-size: 13px; margin-top: 4px; white-space: pre-line; }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; font-size: 14px; }

.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border: 1px solid var(--line); margin: 0 4px 4px 0; white-space: nowrap; background: var(--surface); }
.badge.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge.gold { border-color: var(--gold); color: var(--gold); }
.badge.ok { color: var(--ok); border-color: #bcd6c3; }
.badge.warn { color: var(--warn); border-color: #e6cfb2; }
.badge.off { color: var(--danger); border-color: #e7cbc8; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters > * { width: auto; min-width: 160px; }
.filters input[type=search] { min-width: 220px; }

/* ---------- partenaires ---------- */
.partner-card { border: 1px solid var(--line); padding: 20px; margin-bottom: 16px; background: var(--surface); }
.partner-card.inactive { opacity: .6; }
.partner-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.partner-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.partner-head .actions { margin-left: auto; }
.add-user { display: grid; grid-template-columns: 1fr 1.4fr 110px auto; gap: 8px; margin-top: 12px; align-items: center; }
@media (max-width: 760px) { .add-user { grid-template-columns: 1fr; } }

.linkbox { margin-top: 12px; background: var(--soft); border: 1px solid var(--line); padding: 12px; font-size: 13px; }
.linkbox code { display: block; word-break: break-all; margin: 6px 0 10px; font-size: 12px; }

/* ---------- connexion ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); padding: 40px 36px 32px; }
.auth-card .brand { display: flex; justify-content: center; font-size: 22px; margin-bottom: 10px; }
.auth-card .brand-logo { height: 72px; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 28px; letter-spacing: .5px; }
.auth-card form { display: grid; gap: 16px; }
.auth-foot { margin-top: 20px; text-align: center; }
.auth-lang { margin-top: 20px; display: flex; justify-content: center; }
.msg { font-size: 13px; padding: 10px 12px; border: 1px solid; }
.msg.err { color: var(--danger); border-color: #e7cbc8; background: #fbf3f2; }
.msg.ok { color: var(--ok); border-color: #bcd6c3; background: #f2f8f4; }
.legal { margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- modale & notifications ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(26, 26, 26, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); width: 100%; max-width: 560px; padding: 28px; border: 1px solid var(--line); }
.modal h3 { margin: 0 0 18px; font-size: 17px; font-weight: 600; }
.modal .grid { margin-bottom: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 20px; font-size: 14px; z-index: 60; max-width: 90vw; }
.toast.err { background: var(--danger); }

/* ---------- WeChat ---------- */
.wechat-banner { background: #fff8e6; border-bottom: 1px solid #ecd9a8; padding: 10px 48px 10px 16px; font-size: 13px; line-height: 1.5; position: relative; }
.wechat-banner .arrow { position: absolute; right: 14px; top: 4px; font-size: 26px; line-height: 1; }
.wechat-banner .close { position: absolute; right: 12px; bottom: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0; }
.wechat-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .82); color: #fff; z-index: 100; padding: 24px; text-align: right; }
.wechat-overlay .arrow { font-size: 64px; line-height: 1; margin-right: 6px; }
.wechat-overlay p { text-align: left; font-size: 17px; line-height: 1.7; max-width: 420px; margin: 16px 0 0 auto; }
.wechat-overlay .dots { display: inline-block; background: #fff; color: #000; padding: 0 8px; font-weight: 700; letter-spacing: 2px; }
.wechat-overlay button { margin-top: 28px; background: none; border: 1px solid #fff; color: #fff; padding: 8px 18px; cursor: pointer; }

footer.site { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 32px; }
.search-input { max-width: 300px; }
@media (max-width: 760px) { .search-input { max-width: none; } }
.modal-foot [data-del] { margin-right: auto; }
.filters input, .filters select { width: auto; }
.lang-switch button { white-space: nowrap; }
.linkbtn { white-space: nowrap; }

/* ---------- mobile : tableaux en cartes, en-tête compact ---------- */
@media (max-width: 760px) {
  .topbar-right { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 10px 14px; }
  .who { text-align: left; flex: 1 1 100%; }
  .filters > * { width: 100%; min-width: 0; }
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 2px 0; }
  td:empty { display: none; }
  td.actions, td .actions { justify-content: flex-start; margin-top: 8px; }
  td .btn.small { padding: 8px 16px; }
  td.empty { padding: 24px 0; }
}

/* ---------- stockage ---------- */
.storage { padding-bottom: 22px; }
.diskbar { display: flex; height: 8px; background: #eae5de; margin: 4px 0 14px; overflow: hidden; }
.diskbar .seg-portal { background: var(--ink); }
.diskbar .seg-other { background: #b9b0a4; }
.storage-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.storage-legend .dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }
.dot.portal { background: var(--ink); } .dot.other { background: #b9b0a4; } .dot.free { background: #eae5de; border: 1px solid var(--line); }

/* ---------- explorateur de dossiers ---------- */
.drive-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 17px; font-weight: 600; }
.crumbs button { background: none; border: 0; padding: 2px 4px; cursor: pointer; font: inherit; color: var(--muted); }
.crumbs button:last-child { color: var(--ink); }
.crumbs button:hover { text-decoration: underline; }
.crumbs .sep { color: #c9c1b6; }
.drive-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.folder-access { margin-bottom: 14px; min-height: 22px; }
tr.folder-row { cursor: pointer; }
tr.folder-row:hover td { background: var(--soft); }
.acc-editor { display: grid; gap: 12px; margin-top: 8px; max-height: 320px; overflow-y: auto; }
.acc-partner { border: 1px solid var(--line); padding: 10px 12px; }
.acc-users { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-left: 24px; }
.acc-users .check { padding: 4px 10px; font-size: 13px; }
.modal { max-width: 640px; }
@media (max-width: 760px) { .drive-actions, .drive-actions > * { width: 100%; } }
.drive-actions .search-input { width: 280px; }
@media (max-width: 760px) { .drive-actions .search-input { width: 100%; } }
.dest-field { margin-bottom: 16px; max-width: 480px; }
.dest-field select { font-weight: 500; }

/* ---------- aperçu ---------- */
body.noscroll { overflow: hidden; }
.doc-title.clickable { cursor: pointer; }
.doc-title.clickable:hover { text-decoration: underline; }
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(20, 20, 20, .92); display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.viewer-title { flex: 1; min-width: 0; line-height: 1.35; }
.viewer-title strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-title span { font-size: 12px; color: rgba(255,255,255,.6); }
.viewer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.ghost-light:hover { border-color: #fff; opacity: 1; }
.viewer-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.viewer-body iframe { width: 100%; height: 100%; border: 0; background: #fff; max-width: 1100px; }
.viewer-body img, .viewer-body video { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.viewer-text { width: 100%; max-width: 1000px; height: 100%; overflow: auto; margin: 0; background: #fff; color: var(--ink); padding: 20px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.viewer-none { background: #fff; padding: 32px; text-align: center; max-width: 420px; }
@media (max-width: 760px) { .viewer-bar { padding: 10px 12px; } .viewer-body { padding: 0; } .viewer-actions .btn { padding: 6px 10px; } }

/* ---------- miniatures ---------- */
.doc-cell { display: flex; gap: 14px; align-items: flex-start; }
.doc-text { min-width: 0; flex: 1; }
.thumb { position: relative; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.thumb.has-img img { opacity: 1; }
.thumb.has-img .thumb-label { visibility: hidden; }
.thumb.clickable { cursor: zoom-in; }
.thumb-label { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: #fff; padding: 2px 5px; background: #8a837b; }
.ft-pdf .thumb-label { background: #b4483e; }
.ft-doc .thumb-label { background: #2f5d9e; }
.ft-xls .thumb-label { background: #2f7a4f; }
.ft-ppt .thumb-label { background: #c0632b; }
.ft-zip .thumb-label { background: #6b5b95; }
.ft-img .thumb-label, .ft-vid .thumb-label { background: #5b6b78; }
.thumb.ft-folder { background: #f3eee6; border-color: #e3d9c8; }
.thumb.ft-folder::before { content: ''; width: 26px; height: 19px; background: #c9b38f; border-radius: 2px; position: relative; top: 2px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.25); }
.thumb.ft-folder::after { content: ''; position: absolute; width: 11px; height: 4px; background: #c9b38f; top: 13px; left: 11px; border-radius: 2px 2px 0 0; }
@media (max-width: 760px) { .thumb { width: 44px; height: 44px; } }
@media (max-width: 760px) { #rows td:not(:first-child), #docRows td:not(:first-child) { padding-left: 58px; } }

/* ---------- téléchargement parallèle ---------- */
.dlpanel { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 14px 16px; width: min(420px, calc(100vw - 40px)); font-size: 14px; }
.dlpanel .dl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 10px; }
.dlpanel .dl-row { display: flex; align-items: center; gap: 12px; }
.dlpanel .progress { flex: 1; width: auto; }

.storage-backup { margin: 14px 0 0; }
.storage-backup .badge { margin-right: 6px; }

.check-line { display: block; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check-line input { margin: 0 6px 0 0; vertical-align: -1px; }
#newFolderBtn { margin-left: auto; }
.actions-cell { text-align: right; white-space: nowrap; }

/* ---------- Page de connexion ---------- */
@font-face { font-family: 'QRe Serif'; src: url('/fonts/eb-garamond-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'QRe Serif'; src: url('/fonts/eb-garamond-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
.login-body { background: #f8f4ee; margin: 0; overflow: hidden; }
/* toute la page tient dans l'écran, sans défilement */
.lx { --lx-ink: #2e2420; --lx-soft: #6b5d53; --lx-line: #c4b5a2; --lx-serif: 'QRe Serif', 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
  display: grid; grid-template-columns: 54% 46%; height: 100vh; height: 100dvh; color: var(--lx-ink); overflow: hidden; }
.lx-photo { position: relative; min-height: 0; background: #d9c3b1 url('/login-photo.jpg') 45% 30% / cover no-repeat; }
.lx-photo::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(20,14,10,.55) 0%, rgba(20,14,10,.18) 32%, rgba(20,14,10,0) 55%); }
.lx-photo-text { position: absolute; top: clamp(20px, 6vh, 56px); left: 6%; color: #fff; }
.lx-logo-white { height: clamp(40px, 7vh, 64px); width: auto; display: block; }
.lx-rule { display: block; width: 84px; height: 2px; background: rgba(255,255,255,.85); margin: clamp(12px, 2.4vh, 22px) 0 clamp(10px, 2.2vh, 20px); }
.lx-photo-text p { font-family: var(--lx-serif); font-size: clamp(18px, min(1.7vw, 2.9vh), 26px); line-height: 1.55; margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.lx-panel { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(56px, 8vh, 72px) 7% clamp(20px, 4vh, 40px); background: #f8f4ee; overflow-y: auto; }
.lx-lang { position: absolute; top: clamp(12px, 2.2vh, 20px); right: 24px; border-color: var(--lx-line); }
.lx-lang button { color: var(--lx-soft); }
.lx-lang button.on { background: var(--lx-ink); }
.lx-inner { width: 100%; max-width: 440px; text-align: center; }
.lx-logo { height: clamp(52px, 9.5vh, 84px); width: auto; display: block; margin: 0 auto; }
.lx-space { margin-top: clamp(10px, 1.8vh, 16px); font-size: 13px; letter-spacing: 6px; text-transform: uppercase; color: var(--lx-ink); }
.lx-form { display: grid; gap: clamp(12px, 2vh, 18px); text-align: left; margin-top: clamp(24px, 5.5vh, 48px); }
.lx-field { display: grid; gap: clamp(5px, .9vh, 8px); font-family: var(--lx-serif); font-size: clamp(16px, 2vh, 18px); }
.lx-field input { font: 16px/1.3 system-ui, -apple-system, 'PingFang SC', sans-serif; padding: clamp(10px, 1.5vh, 13px) 14px; background: #fbf8f3; border: 1px solid var(--lx-line); border-radius: 2px; color: var(--lx-ink); width: 100%; box-sizing: border-box; }
.lx-field input:focus { outline: none; border-color: var(--lx-ink); background: #fff; }
.lx-forgot { text-align: right; margin-top: -4px; }
.lx-forgot button { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--lx-serif); font-size: 16px; color: var(--lx-ink); }
.lx-forgot button:hover { text-decoration: underline; }
.lx-msg { font-size: 14px; color: var(--lx-soft); background: #f1eae0; padding: 10px 12px; }
.lx-btn { margin-top: clamp(4px, 1vh, 10px); padding: clamp(12px, 1.8vh, 15px); background: var(--lx-ink); color: #fff; border: 0; border-radius: 2px; cursor: pointer; font-family: var(--lx-serif); font-size: clamp(18px, 2.3vh, 20px); letter-spacing: .3px; }
.lx-btn:hover { background: #1d1613; }
.lx-btn:disabled { opacity: .6; cursor: default; }
/* écrans très bas (ordinateur portable avec barre, téléphone à l'horizontale) */
@media (min-width: 761px) and (max-height: 560px) {
  .lx-logo { display: none; }
  .lx-space { margin-top: 0; }
  .lx-photo-text p { display: none; }
  .lx-rule { display: none; }
}
/* tablette verticale et téléphone : photo en bandeau, qui se réduit pour que le formulaire tienne toujours */
@media (max-width: 760px) {
  .login-body { overflow: auto; }
  /* hauteur mini = écran : rien à faire défiler, mais le clavier du téléphone peut faire remonter le champ */
  .lx { grid-template-columns: 1fr; grid-template-rows: minmax(90px, 1fr) auto; height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
  .lx-photo { background-position: center 35%; }
  .lx-photo-text { top: clamp(14px, 3vh, 24px); left: 22px; }
  .lx-logo-white { height: clamp(30px, 5.5vh, 46px); }
  .lx-rule { width: 56px; margin: clamp(8px, 1.6vh, 14px) 0 clamp(6px, 1.4vh, 12px); }
  .lx-photo-text p { font-size: clamp(15px, 2.5vh, 20px); line-height: 1.45; }
  .lx-panel { padding: clamp(52px, 8vh, 64px) 22px clamp(16px, 3vh, 32px); justify-content: flex-start; overflow: visible; }
  .lx-lang { top: clamp(10px, 1.8vh, 14px); right: 16px; }
  .lx-logo { display: none; }
  .lx-space { margin-top: 0; font-size: 15px; letter-spacing: 5px; }
  .lx-form { margin-top: clamp(18px, 3.5vh, 28px); }
  .lx-inner { max-width: 460px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .lx-photo-text p, .lx-rule { display: none; }
}
/* téléphone à l'horizontale : photo à gauche, formulaire compact à droite */
@media (max-height: 500px) and (orientation: landscape) {
  .lx { grid-template-columns: 38% 62%; grid-template-rows: none; }
  .lx-photo-text { top: 16px; left: 18px; }
  .lx-logo-white { height: 34px; }
  .lx-photo-text p, .lx-rule { display: none; }
  .lx-panel { padding: 14px 6% 10px; justify-content: center; overflow-y: auto; }
  .lx-lang { top: 10px; right: 14px; }
  .lx-logo { display: none; }
  .lx-space { margin-top: 0; font-size: 12px; }
  .lx-form { margin-top: 12px; gap: 9px; }
  .lx-field { gap: 4px; font-size: 15px; }
  .lx-field input { padding: 8px 12px; }
  .lx-forgot { margin-top: -2px; }
  .lx-msg { padding: 6px 10px; font-size: 13px; }
  .lx-btn { margin-top: 2px; padding: 10px; font-size: 17px; }
}
/* relief du panneau de droite : lumière chaude, cadre fin, filet sous « Partner Space » */
.lx-panel { background: radial-gradient(ellipse 80% 70% at 50% 45%, #fcfaf6 0%, #f6f0e7 60%, #efe6d9 100%); }
.lx-panel::before { content: ''; position: absolute; inset: clamp(12px, 2.4vh, 22px); border: 1px solid rgba(46,36,32,.12); pointer-events: none; }
.lx-space::after { content: ''; display: block; width: 36px; height: 1px; background: #b39b80; margin: clamp(12px, 2vh, 18px) auto 0; }
.lx-lang { z-index: 1; background: #fbf8f3; }
.lx-field input { background: rgba(255,255,255,.55); }
@media (min-width: 1600px) and (min-height: 900px) { .lx-inner { max-width: 480px; } }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) { .lx-panel::before { display: none; } }
@media (max-height: 500px) and (orientation: landscape) { .lx-space::after { display: none; } }
@media (min-width: 761px) and (min-height: 501px) { .lx-lang { top: calc(clamp(12px, 2.4vh, 22px) + 14px); right: calc(clamp(12px, 2.4vh, 22px) + 14px); } }
/* carte blanche (logo + formulaire) et coins arrondis ; le cadre fin du panneau devient inutile */
.lx-panel::before { display: none; }
.lx-inner { background: rgba(255,255,255,.72); border: 1px solid rgba(46,36,32,.08); border-radius: 18px;
  box-shadow: 0 24px 60px -28px rgba(70,50,35,.28), 0 2px 8px rgba(70,50,35,.05);
  padding: clamp(24px, 4.5vh, 48px) clamp(24px, 3vw, 44px); box-sizing: border-box; max-width: 500px; }
.lx-field input { border-radius: 10px; background: #fbf8f4; }
.lx-btn { border-radius: 10px; }
.lx-msg { border-radius: 8px; }
.lx-lang { border-radius: 8px; overflow: hidden; }
@media (min-width: 761px) and (min-height: 501px) { .lx-lang { top: clamp(14px, 2.6vh, 24px); right: clamp(14px, 2.6vh, 24px); } }
@media (min-width: 1600px) and (min-height: 900px) { .lx-inner { max-width: 540px; } }
@media (max-width: 760px) {
  .lx-inner { background: none; border: 0; box-shadow: none; padding: 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .lx-inner { padding: 12px 18px; border-radius: 14px; }
}

/* ===== Variante A : éditoriale (champs soulignés, sans carte) ===== */
.v-edit .lx-panel { background: #f7f2eb; }
.v-edit .lx-inner { background: none; border: 0; box-shadow: none; padding: 0; max-width: 400px; }
.v-edit .lx-space::after { background: var(--lx-ink); width: 24px; }
.v-edit .lx-form { gap: clamp(18px, 3vh, 28px); margin-top: clamp(28px, 6vh, 56px); }
.v-edit .lx-field { font: 500 11px/1 system-ui, -apple-system, 'PingFang SC', sans-serif; letter-spacing: 2.5px; text-transform: uppercase; color: var(--lx-soft); gap: 6px; }
.v-edit .lx-field input { border: 0; border-bottom: 1px solid var(--lx-ink); border-radius: 0; background: transparent; padding: 10px 0; font-size: 17px; letter-spacing: 0; text-transform: none; }
.v-edit .lx-field input:focus { background: transparent; border-bottom-width: 2px; padding-bottom: 9px; }
.v-edit .lx-forgot button { font: 13px system-ui, -apple-system, 'PingFang SC', sans-serif; color: var(--lx-soft); }
.v-edit .lx-btn { border-radius: 999px; font: 500 13px system-ui, -apple-system, 'PingFang SC', sans-serif; letter-spacing: 3px; text-transform: uppercase; padding: clamp(14px, 2vh, 17px); margin-top: clamp(8px, 2vh, 18px); }
.v-edit .lx-msg { border-radius: 0; background: none; border-left: 2px solid var(--lx-line); padding: 4px 0 4px 12px; }
.v-edit .lx-lang { border-radius: 999px; }

/* ===== Variante B : photo plein écran + panneau verre dépoli ===== */
@media (min-width: 761px) {
  .v-glass { grid-template-columns: 1fr; position: relative; }
  .v-glass .lx-photo { position: absolute; inset: 0; background-position: 30% 30%; }
  .v-glass .lx-photo::before { background: linear-gradient(90deg, rgba(20,14,10,.45) 0%, rgba(20,14,10,.05) 45%, rgba(20,14,10,.25) 100%); }
  .v-glass .lx-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(46vw, 620px); background: rgba(250,246,240,.62);
    backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1); border-left: 1px solid rgba(255,255,255,.5); }
  .v-glass .lx-inner { background: none; border: 0; box-shadow: none; padding: 0; max-width: 400px; }
}
.v-glass .lx-field input { border-radius: 12px; background: rgba(255,255,255,.7); border-color: rgba(46,36,32,.18); }
.v-glass .lx-btn { border-radius: 999px; }
.v-glass .lx-lang { border-radius: 999px; background: rgba(255,255,255,.6); }

/* la photo garde toujours 54 % de la largeur ; cadrage centré sur l'œil et la gélule */
.lx-photo { background-position: 40% 32%; }
/* pas de fond bleu de Chrome sur les champs pré-remplis */
.v-edit .lx-field input:-webkit-autofill, .v-edit .lx-field input:-webkit-autofill:hover, .v-edit .lx-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f7f2eb inset; -webkit-text-fill-color: var(--lx-ink); transition: background-color 9999s; }
/* logo et « Partner Space » plus grands, bloc remonté */
.v-edit .lx-logo { height: clamp(60px, 12.5vh, 118px); }
.v-edit .lx-space { font-size: clamp(13px, 1.7vh, 16px); letter-spacing: 7px; margin-top: clamp(12px, 2.2vh, 20px); }
.v-edit .lx-form { margin-top: clamp(32px, 7vh, 72px); }
@media (min-width: 761px) and (min-height: 501px) { .v-edit.lx .lx-panel { padding-bottom: clamp(40px, 11vh, 120px); } }
@media (max-width: 760px) { .v-edit .lx-space { font-size: 15px; letter-spacing: 5px; } .v-edit .lx-form { margin-top: clamp(20px, 4vh, 32px); } }
@media (max-height: 500px) and (orientation: landscape) { .v-edit .lx-space { font-size: 12px; } .v-edit .lx-form { margin-top: 12px; gap: 10px; } }
.v-edit .lx-space { margin-top: clamp(20px, 3.8vh, 38px); }
@media (max-width: 760px) { .v-edit .lx-space { margin-top: 0; } }
@media (max-height: 500px) and (orientation: landscape) { .v-edit .lx-space { margin-top: 0; } }
/* photo carrée : cadrage centré */
.lx-photo { background-position: 50% 45%; }
.lx-photo::before { background: linear-gradient(160deg, rgba(20,14,10,.58) 0%, rgba(20,14,10,.22) 30%, rgba(20,14,10,0) 52%); }
@media (max-width: 760px) { .lx-photo { background-position: 45% 40%; } }
/* slogan en bas à gauche, sans logo ; ombre portée depuis le bas */
.lx-photo-text { top: auto; bottom: clamp(24px, 6vh, 64px); left: clamp(24px, 4.5%, 64px); }
.lx-photo .lx-rule { margin: 0 0 clamp(12px, 2vh, 18px); width: 56px; }
.lx-photo::before { background: linear-gradient(20deg, rgba(20,14,10,.55) 0%, rgba(20,14,10,.2) 28%, rgba(20,14,10,0) 50%); }
.lx-photo-text p { font-size: clamp(20px, min(1.9vw, 3.2vh), 30px); }
@media (min-width: 761px) and (max-height: 560px) { .lx-photo-text p { display: block; } }
@media (max-width: 760px) {
  .lx-photo-text { top: auto; bottom: 16px; left: 22px; }
  .lx-photo-text p { font-size: clamp(16px, 2.6vh, 20px); }
}
@media (max-width: 760px) and (max-height: 620px) { .lx-photo-text p, .lx-photo .lx-rule { display: none; } }
@media (max-height: 500px) and (orientation: landscape) { .lx-photo-text { display: none; } }
/* téléphone : le logo n'est plus sur la photo, on l'affiche au-dessus de « Partner Space » */
@media (max-width: 760px) {
  .v-edit .lx-logo { display: block; height: clamp(38px, 7vh, 60px); }
  .v-edit .lx-space { margin-top: clamp(10px, 1.8vh, 16px); }
  .lx-panel { padding-top: clamp(48px, 7vh, 60px); }
}
@media (max-width: 760px) and (max-height: 600px) { .v-edit .lx-logo { display: none; } .v-edit .lx-space { margin-top: 0; } }
/* slogan plus grand */
.lx-photo-text p { font-size: clamp(26px, min(2.6vw, 4.4vh), 44px); line-height: 1.35; }
.lx-photo .lx-rule { width: 72px; }
@media (max-width: 760px) { .lx-photo-text p { font-size: clamp(19px, 3.1vh, 26px); } .lx-photo .lx-rule { width: 56px; } }

/* ===== Arrondis partout, dans l'esprit de la page de connexion ===== */
.btn, .lang-switch { border-radius: 999px; }
.lang-switch { overflow: hidden; }
.card { border-radius: 16px; }
.modal { border-radius: 18px; }
.badge { border-radius: 999px; }
.msg, .toast { border-radius: 10px; }
/* vignettes et icône de dossier plus modernes */
.thumb { border-radius: 12px; overflow: hidden; }
.thumb-label { border-radius: 6px; }
.thumb.ft-folder { background: #f3ede4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2420' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5h3.4a2 2 0 0 1 1.5.7l1.2 1.4a2 2 0 0 0 1.5.7h5.4A2.5 2.5 0 0 1 21 10.3v6.2a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 16.5z'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / 24px no-repeat; border-color: transparent; }
.thumb.ft-folder::before, .thumb.ft-folder::after { content: none; display: none; }
tr.folder-row:hover .thumb.ft-folder { background-color: #ebe2d5; }

/* ===== Sélecteur de dossier ===== */
select.fp-native { display: none !important; }
.fp { position: relative; }
.fp-box { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid #e3ddd3; border-radius: 12px; padding: 9px 10px 9px 10px; background: #fbf9f6; cursor: pointer; font: inherit; color: var(--ink); }
.fp-box:hover { border-color: #cfc5b7; }
.fp.open .fp-box { border-color: var(--ink); background: #fff; }
.fp-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: #f3ede4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2420' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5h3.4a2 2 0 0 1 1.5.7l1.2 1.4a2 2 0 0 0 1.5.7h5.4A2.5 2.5 0 0 1 21 10.3v6.2a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 16.5z'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / 16px no-repeat; }
.fp-path { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fp-path small { color: #9a9188; font-size: 11px; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-path b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-empty .fp-path b { color: #9a9188; font-weight: 400; }
.fp-sep { color: #b9ae9f; margin: 0 4px; }
.fp-chg { flex-shrink: 0; border: 1px solid #e3ddd3; border-radius: 999px; padding: 4px 12px; font-size: 12px; background: #fff; }
.fp-pop { margin-top: 8px; border: 1px solid #e6e1d8; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -18px rgba(60,40,25,.35); padding: 8px; }
.fp-search { display: flex; align-items: center; gap: 8px; border: 1px solid #e3ddd3; border-radius: 10px; padding: 0 10px; margin: 2px 2px 6px; color: #9a9188; }
.fp-search:focus-within { border-color: var(--ink); }
.fp-search input { flex: 1; border: 0; outline: 0; padding: 9px 0; font: inherit; font-size: 14px; background: transparent; min-width: 0; }
.fp-list { max-height: min(360px, 50vh); overflow-y: auto; }
.fp-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; cursor: pointer; white-space: nowrap; min-height: 34px; box-sizing: border-box; }
.fp-row:hover { background: #f4efe8; }
.fp-row .fp-ico { width: 24px; height: 24px; border-radius: 7px; background-size: 14px; }
.fp-row.on { background: #2e2420; color: #fff; }
.fp-row.on .fp-ico { background-color: #4a3d36; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5h3.4a2 2 0 0 1 1.5.7l1.2 1.4a2 2 0 0 0 1.5.7h5.4A2.5 2.5 0 0 1 21 10.3v6.2a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 16.5z'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.fp-row.on .fp-zh, .fp-row.on small { color: #d8cdbf; }
.fp-row.on .fp-car, .fp-row.on .fp-ind { color: #d8cdbf; border-color: rgba(255,255,255,.18); }
.fp-ind { display: inline-block; flex-shrink: 0; width: 18px; height: 34px; margin: -5px 0 -5px 5px; border-left: 1px solid #ebe5dc; }
.fp-car { width: 16px; flex-shrink: 0; text-align: center; color: #a59a8e; font-size: 11px; }
.fp-car:not(.none):hover { color: var(--ink); }
.fp-nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fp-zh { color: #a0968b; font-size: 13px; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 2; }
.fp-ok { margin-left: auto; padding-left: 8px; }
.fp-hit { align-items: flex-start; padding: 7px 8px; }
.fp-hit-txt { display: flex; flex-direction: column; min-width: 0; white-space: normal; }
.fp-hit-txt small { color: #9a9188; font-size: 11px; }
.fp mark { background: #f6e3b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.fp-hint { color: #9a9188; font-size: 12px; padding: 4px 10px 6px; }
.fp-new { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid #f0ebe3; margin-top: 6px; padding: 10px 10px 4px; background: none; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.fp-new:hover { text-decoration: underline; }
.dest-field { max-width: 560px; }
.fp-search input { color: var(--ink); }
.fp-search input::-webkit-search-cancel-button { display: none; }

.fp-pick { margin-left: auto; flex-shrink: 0; border: 1px solid #ddd5ca; border-radius: 999px; background: #fff; padding: 3px 12px; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .12s; }
.fp-row:hover .fp-pick, .fp-pick:focus { opacity: 1; }
.fp-pick:hover { border-color: var(--ink); }
@media (hover: none) { .fp-pick { opacity: 1; } }
/* zone de dépôt inactive tant qu'aucun dossier n'est choisi */
.dropzone { border-radius: 14px; }
.dropzone.dz-off { cursor: not-allowed; background: repeating-linear-gradient(-45deg, #faf8f5 0 10px, #f5f1eb 10px 20px); border-color: #e3ddd3; }
.dropzone.dz-off .dz-title { color: #9a9188; }
.filelist li .btn.small { margin-left: 8px; }
.checks label { border-radius: 999px; }
#upPartners { margin-bottom: 6px; }

/* création de sous-dossier dans l'arbre */
.fp-row.fp-add { color: #866f55; }
.fp-row.fp-add .fp-nm { font-size: 13px; }
.fp-row.fp-add:hover { background: #f7f1e8; }
.fp-ico.fp-ico-add { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23866f55' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; border: 1px dashed #d2c3ae; box-sizing: border-box; }
.fp-row.fp-add.editing { background: #fbf7f1; cursor: default; }
.fp-newname { flex: 1; min-width: 0; border: 1px solid #d2c3ae; border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); outline: none; }
.fp-newname:focus { border-color: var(--ink); }
.fp-ok-btn { opacity: 1 !important; }
.fp-subbtn { color: #866f55; border-color: #e3d6c4; }
.fp-subbtn:hover { border-color: #866f55; }
.fp-box .fp-chg + .fp-chg { margin-left: -4px; }

/* flèches dessinées (pas de caractères ▸, rendus en points sur certains Mac) */
.fp-car { position: relative; width: 16px; height: 16px; }
.fp-car:not(.none)::before { content: ''; position: absolute; left: 5px; top: 4px; width: 5px; height: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.fp-car.is-open::before { transform: rotate(45deg); left: 4px; top: 3px; }
/* actions à droite de la ligne : « ＋ » (créer un sous-dossier ici) et « Choisir » */
.fp-acts { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding-left: 8px; }
.fp-acts .fp-pick { margin-left: 0; }
.fp-plus { width: 26px; height: 26px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; font-size: 15px !important; line-height: 1; color: #866f55 !important; border-color: #e3d6c4 !important; }
.fp-plus:hover { border-color: #866f55 !important; background: #fbf7f1; }
.fp-row.on .fp-plus { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35) !important; opacity: 1; }
.fp-ok { margin-left: 0; padding-left: 0; }
.fp-plus { opacity: .6; }
.fp-row:hover .fp-plus { opacity: 1; }

/* glisser-déposer pour déplacer */
tr[draggable="true"] { cursor: grab; }
tr.dragging { opacity: .45; }
tr.folder-row.drop-over td { background: #f1e8da !important; }
tr.folder-row.drop-over .thumb.ft-folder { background-color: #2e2420; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5h3.4a2 2 0 0 1 1.5.7l1.2 1.4a2 2 0 0 0 1.5.7h5.4A2.5 2.5 0 0 1 21 10.3v6.2a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 16.5z'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.crumbs button.drop-over { background: #2e2420; color: #fff; border-radius: 999px; padding-left: 8px; padding-right: 8px; }
.drag-hint { margin: 8px 2px 0; }

/* sélection multiple */
th.selcol, td.selcol { width: 34px; padding-right: 0 !important; text-align: center; }
.selcol input { width: 16px; height: 16px; accent-color: #2e2420; cursor: pointer; margin: 0; }
tr.selected td { background: #f6f0e7 !important; }
.bulkbar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #2e2420; color: #fff; border-radius: 999px; padding: 7px 10px 7px 18px; margin: 0 0 12px; box-shadow: 0 10px 24px -14px rgba(40,25,15,.6); }
.bulkbar .bulk-n { font-weight: 500; margin-right: 6px; }
.bulkbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.bulkbar .btn.ghost:hover { border-color: #fff; }
.bulkbar .btn.danger { background: transparent; color: #f3c7c1; border-color: rgba(243,199,193,.45); }
.bulkbar .bulk-clear { color: #d8cdbf; margin-left: auto; }

/* case de sélection : invisible tant qu'on ne survole pas la ligne et qu'il n'y a pas de sélection */
table:not(.has-sel) .selcol input { opacity: 0; transition: opacity .12s; }
table:not(.has-sel) tbody tr:hover .selcol input, table:not(.has-sel) .selcol input:focus-visible { opacity: .55; }
table:not(.has-sel) tbody tr:hover .selcol input:hover { opacity: 1; }
@media (hover: none) { table:not(.has-sel) .selcol input { opacity: 0; } }
th.selcol, td.selcol { width: 26px; }
.lasso { position: fixed; z-index: 80; border: 1px solid rgba(46,36,32,.55); background: rgba(46,36,32,.08); border-radius: 4px; pointer-events: none; }
body.lassoing, body.lassoing * { user-select: none !important; cursor: default !important; }
.drive .table-wrap, section.card .table-wrap { padding-bottom: 6px; }
/* barre d'actions flottante en bas de l'écran : elle ne décale pas la liste */
.bulkbar { position: fixed; top: auto; bottom: 22px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 70; width: max-content; max-width: calc(100vw - 24px); box-shadow: 0 16px 40px -12px rgba(40,25,15,.55); }
.bulkbar .bulk-clear { margin-left: 10px; }

/* accès d'une personne */
.acc-tree { max-height: min(58vh, 520px); overflow-y: auto; border: 1px solid #ebe5dc; border-radius: 12px; padding: 6px; margin: 4px 0 6px; }
.acc-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px calc(8px + var(--d) * 22px); border-radius: 9px; }
.acc-row:hover { background: #f8f4ee; }
.acc-row.on { background: #f6f0e7; }
.acc-name { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; flex: 1; }
.acc-name input, .acc-create input { width: 16px; height: 16px; accent-color: #2e2420; margin: 0; flex-shrink: 0; }
.acc-name .fp-ico { width: 24px; height: 24px; border-radius: 7px; background-size: 14px; }
.acc-row.inh .acc-name { color: #8a7d72; }
.acc-meta { flex-shrink: 0; }
.acc-create { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b5d53; white-space: nowrap; flex-shrink: 0; border: 1px solid #e3ddd3; border-radius: 999px; padding: 4px 10px; background: #fff; cursor: pointer; }
.acc-create.off { opacity: .35; cursor: default; }
.grant-list { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.grant-plus { color: #866f55; font-weight: 600; }

.acc-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row { min-height: 40px; box-sizing: border-box; }
.acc-row.inh { min-height: 34px; padding-top: 3px; padding-bottom: 3px; }
.acc-intro { margin-top: -6px; }

.del-list { margin: -4px 0 0; padding-left: 20px; }
.del-list li { margin: 2px 0; }
.modal .btn.danger[data-ok]:not(:disabled) { background: #a33a2f; color: #fff; border-color: #a33a2f; }

.acc-create.locked { color: #9a9188; background: #faf8f5; cursor: default; }
.acc-row.cr .acc-create { border-color: #866f55; color: #2e2420; }

/* le bouton « Peut créer » n'apparaît qu'au survol de la ligne, sauf s'il est activé */
.acc-create:not(.is-on) { opacity: 0; transition: opacity .12s; }
.acc-row:hover .acc-create:not(.is-on), .acc-create:focus-within { opacity: 1; }
@media (hover: none) { .acc-create:not(.is-on) { opacity: .6; } }
.acc-intro { margin-bottom: 4px; }

/* fichiers envoyés : cliquables pour ouvrir leur dossier */
.filelist li.done-link { cursor: pointer; border-radius: 10px; }
.filelist li.done-link:hover { background: #f6f0e7; }
.filelist li.done-link .goto { color: #2e2420; text-decoration: underline; text-underline-offset: 2px; }
tr.flash td { animation: qreflash 2.4s ease-out; }
@keyframes qreflash { 0%, 35% { background: #f1e3c9; } 100% { background: transparent; } }

.eu-badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #eef0f6; color: #3d4a6b; margin-left: 2px; }

/* fichiers glissés depuis l'ordinateur dans la liste */
.table-wrap.files-over { outline: 2px dashed var(--gold); outline-offset: -2px; border-radius: var(--radius); background: #fbf8f3; }
.exp-badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #f6efe4; color: #8a6420; }
.keep-badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #e9f2ec; color: #2f6a43; }

.storage-eu { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.diskbar .seg-med { background: var(--gold); }
.diskbar .seg-bk { background: #5b4636; }
.dot.med { background: var(--gold); } .dot.bk { background: #5b4636; }
.srv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.srv-list li .badge { margin: 0 6px; }
