/* Identité QR Docs ; les classes et commentaires historiques restent dans base.html. */
:root { --ink:#172a47; --muted:#62718a; --blue:#245fad; --border:#e2e8f1; }
body { background:#f4f7fb; color:var(--ink); font-size:14px; line-height:1.6; }
.container { max-width:1240px; padding:0 32px; }
header { background:#fff; color:var(--ink); border-bottom:1px solid var(--border); padding:12px 0; margin:0; box-shadow:none; }
header .container { min-height:64px; gap:24px; }
.brand { display:flex; align-items:center; gap:24px; color:var(--ink); text-decoration:none; min-width:0; }
/* Le fichier original reste intact ; le cadre affiche la zone de marque entreprise. */
.brand-visual { display:block; width:232px; height:78px; overflow:hidden; flex:0 0 auto; }
.brand-visual img { display:block; width:390px; max-width:none; height:auto; }
.brand-product { display:flex; flex-direction:column; padding-left:24px; border-left:1px solid var(--border); line-height:1.5; }
.brand-product strong { font-size:19px; letter-spacing:-.6px; }
.brand-product > span { color:var(--muted); font-size:12px; }
header nav { gap:8px; flex-wrap:wrap; }
header nav a { padding:9px 13px; border-radius:9px; color:#41516b; opacity:1; font-size:13px; font-weight:600; }
header nav a:hover { background:#f0f5fc; text-decoration:none; }
header nav .nav-current { color:var(--blue); background:#eaf1fc; }
header nav .nav-logout { color:var(--muted); font-weight:500; }
.main-content { padding-top:30px; padding-bottom:24px; min-height:calc(100vh - 200px); }
.back-link { display:inline-flex; gap:9px; color:var(--muted); text-decoration:none; font-size:12px; margin-bottom:20px; }
.back-link:hover { color:var(--blue); }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:28px; }
.eyebrow { color:var(--blue); font-size:10px; font-weight:750; letter-spacing:1.9px; margin-bottom:5px; }
.page-heading h1 { font-size:clamp(26px,3.2vw,34px); line-height:1.2; letter-spacing:-1px; font-weight:700; overflow-wrap:anywhere; }
.page-description { color:var(--muted); font-size:14px; margin-top:10px; }
.card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:26px; margin-bottom:20px; box-shadow:0 3px 12px #192d4d04; min-width:0; }
.card h2 { color:var(--ink); font-size:18px; letter-spacing:-.4px; line-height:1.4; margin-bottom:12px; }
.card h3 { color:var(--ink); font-size:15px; }
.muted,.doc-meta { color:var(--muted); font-size:12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:12px; padding:11px 17px; border-radius:9px; font-size:12px; font-weight:650; line-height:1.5; transition:background .15s,border-color .15s; text-align:center; }
.btn-primary { background:var(--blue); color:white; border:1px solid var(--blue); }
.btn-primary:hover { background:#1b4b8d; border-color:#1b4b8d; }
.btn-secondary { background:#f1f5fb; color:#35567f; border:1px solid #e7edf5; }
.btn-secondary:hover { background:#e7eef8; }
.btn-outline { color:#35567f; border:1px solid #d5deeb; background:#fff; }
.btn-outline:hover { color:var(--blue); border-color:#abc1e0; background:#f6f9ff; }
.btn-sm { padding:7px 12px; font-size:11px; }
.btn-danger { background:#fff1f0; color:#b33030; border:1px solid #f3cdcd; }
.btn-danger:hover { background:#fce1e0; }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid #6d9ee0; outline-offset:3px; }
input[type="text"],input[type="email"],input[type="password"],input[type="file"],select { border-radius:9px; border-color:#dce4ef; color:var(--ink); font-size:14px; }
input[type="checkbox"] { accent-color:var(--blue); width:15px; height:15px; flex-shrink:0; }
.workspace-grid { display:grid; grid-template-columns:minmax(0,1fr) 308px; gap:20px; align-items:start; grid-template-areas:"upload qr" "documents qr"; margin-bottom:20px; }
.workspace-grid > .card { margin-bottom:0; }
.upload-card { grid-area:upload; }
.documents-card { grid-area:documents; }
.qr-card { grid-area:qr; text-align:center; padding:25px 22px 20px; }
.qr-mobile { display:none; }
.qr-mobile summary { cursor:pointer; font-weight:700; font-size:16px; text-align:left; }
.qr-mobile[open] summary { margin-bottom:20px; }
.section-heading { display:flex; gap:14px; align-items:center; margin-bottom:22px; }
.section-heading h2 { margin:0 0 3px; font-size:17px; }
.section-heading p { color:var(--muted); font-size:12px; }
.section-icon { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:12px; background:#edf3fc; color:var(--blue); font-size:26px; font-weight:500; flex-shrink:0; }
.upload-zone { background:#f8faff; border:1px dashed #bdcde3; border-radius:12px; padding:20px; display:flex; flex-direction:column; gap:10px; }
.upload-zone label { font-size:12px; font-weight:650; color:#334d6d; }
.upload-zone input[type="file"] { padding:0; background:transparent; border:none; font-size:12px; min-width:0; }
input[type="file"]::file-selector-button { background:#fff; border:1px solid #d4dfec; border-radius:7px; color:var(--blue); padding:8px 12px; margin-right:12px; font:inherit; font-weight:600; cursor:pointer; }
.file-formats { color:var(--muted); font-size:11px; }
.file-formats summary { cursor:pointer; }
.file-formats p { padding-top:8px; line-height:1.7; }
.upload-actions { display:flex; align-items:center; gap:20px; justify-content:space-between; padding-top:5px; }
.check-label { display:flex; align-items:flex-start; gap:8px; font-size:11px; font-weight:400; line-height:1.5; color:var(--muted); }
.check-label input { margin-top:1px; }
.upload-actions .btn { flex-shrink:0; }
.qr-heading { display:flex; align-items:center; justify-content:center; gap:6px; color:#426454; font-size:9px; font-weight:750; letter-spacing:1.2px; margin-bottom:12px; }
.status-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:#438f68; flex-shrink:0; }
.qr-card h2 { font-size:22px; margin-bottom:8px; letter-spacing:-.6px; }
.qr-card > p { font-size:12px; color:var(--muted); line-height:1.7; max-width:220px; margin:auto; }
.qr-image-wrap { width:230px; max-width:100%; margin:18px auto; border:1px solid var(--border); border-radius:14px; padding:10px; background:#fff; }
.qr-image-wrap img { width:100%; height:auto; display:block; aspect-ratio:1; }
.qr-download { width:100%; font-size:11px; padding:12px 10px; gap:8px; }
.qr-vector-link { display:inline-block; color:#4e6584; font-size:11px; margin-top:12px; text-underline-offset:3px; }
.qr-note { display:flex; text-align:left; gap:9px; border-top:1px solid var(--border); padding-top:17px; margin-top:20px; }
.qr-note > span { color:#428d68; font-weight:700; }
.qr-note p { color:var(--muted); font-size:10px; line-height:1.6; }
.documents-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; flex-wrap:wrap; }
.documents-heading h2 { font-size:16px; margin:0; display:flex; gap:9px; align-items:center; }
.count-badge { background:#eef3fa; color:#546b8c; font-size:11px; border-radius:7px; padding:2px 7px; font-weight:600; }
.public-badge { display:inline-flex; align-items:center; gap:6px; color:#43805f; background:#f0f7f3; padding:4px 8px; border-radius:6px; font-size:10px; white-space:nowrap; }
.doc-item { flex-wrap:nowrap; padding:18px 0; border-color:#edf0f5; }
.doc-item:last-child { padding-bottom:0; }
.document-type { display:inline-flex; width:34px; height:42px; background:#edf3fc; color:#456ca1; align-items:center; justify-content:center; border:1px solid #e1e9f5; border-radius:7px; font-size:8px; font-weight:750; flex-shrink:0; }
.doc-info { min-width:0; }
.doc-name { font-size:12px; font-weight:600; overflow-wrap:anywhere; margin-bottom:3px; }
.doc-meta { font-size:10px; }
.doc-actions { align-items:center; flex-shrink:0; }
.delete-menu { position:relative; font-size:10px; color:#96666a; }
.delete-menu > summary { cursor:pointer; padding:7px 4px; list-style:none; }
.delete-menu > summary::-webkit-details-marker { display:none; }
.delete-menu[open] { flex-basis:100%; }
.delete-menu form { padding:12px; border:1px solid #eedbdd; border-radius:9px; margin-top:5px; background:#fffafa; max-width:240px; }
.doc-actions:has(.delete-menu[open]) { flex-wrap:wrap; max-width:270px; }
.empty { padding:36px 16px; }
.empty h3 { margin:12px 0 4px; }
.empty p { color:var(--muted); font-size:12px; }
.empty-icon { display:inline-flex; background:#f0f5fc; border-radius:50%; width:44px; height:44px; align-items:center; justify-content:center; color:#718caf; font-size:25px; }
.folder-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.folder-card { padding:25px; }
.folder-card-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.folder-card h2 { margin-bottom:6px; overflow-wrap:anywhere; }
.folder-card > p { font-size:12px; color:var(--muted); margin-bottom:25px; }
.folder-card > .btn { width:100%; justify-content:space-between; }
.folder-public-link { display:block; color:var(--muted); text-align:center; margin-top:14px; font-size:11px; text-decoration:none; }
.folder-total { color:var(--muted); font-size:12px; border:1px solid var(--border); background:#fff; padding:8px 12px; border-radius:9px; white-space:nowrap; }
th,td { font-size:11px; padding:12px; }
th { background:#f8faff; color:#6c7d96; font-weight:600; }
td { color:#52647e; overflow-wrap:anywhere; }
.table-wrap { margin-top:16px; }
.table-wrap table { min-width:640px; }
.table-wrap td:first-child { white-space:nowrap; }
.app-footer { max-width:1240px; margin:0 auto; padding:8px 32px 26px; display:flex; justify-content:space-between; gap:16px; color:#7d8a9e; font-size:10px; }
@media (max-width:1050px) {
    .container { padding-left:24px; padding-right:24px; }
    .brand { gap:14px; }
    .brand-product { padding-left:14px; }
    .workspace-grid { grid-template-columns:minmax(0,1fr) 285px; }
    .upload-actions { align-items:stretch; flex-direction:column; gap:12px; }
    .upload-actions .btn { align-self:flex-start; }
    .doc-item { flex-wrap:wrap; }
    .doc-actions { margin-left:46px; }
    .folder-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
    header .container { flex-direction:column; align-items:stretch; gap:8px; }
    .brand { justify-content:space-between; gap:12px; }
    .brand-visual { width:203px; height:68px; }
    .brand-visual img { width:340px; }
    .brand-product { padding-left:12px; }
    .brand-product strong { font-size:16px; }
    .brand-product > span { font-size:9px; }
    header nav { gap:6px; padding-top:8px; border-top:1px solid #eef1f6; justify-content:space-between; }
    header nav a { padding:8px 10px; font-size:11px; }
    .container { padding-left:18px; padding-right:18px; }
    .main-content { padding-top:24px; }
    .page-heading { align-items:flex-start; flex-direction:column; gap:18px; margin-bottom:22px; }
    .page-description { font-size:12px; }
    .page-heading h1 { font-size:29px; }
    .workspace-grid { grid-template-columns:minmax(0,1fr); grid-template-areas:"qr" "upload" "documents"; gap:16px; }
    .card { padding:21px; border-radius:14px; margin-bottom:16px; }
    .qr-card { padding:24px; }
    .qr-desktop { display:none; }
    .qr-mobile { display:block; }
    .qr-image-wrap { width:190px; margin:15px auto; }
    .qr-card > p { max-width:270px; }
    .qr-download { max-width:300px; margin:0 auto; display:flex; }
    .qr-note { justify-content:center; max-width:290px; margin:18px auto 0; }
    .qr-note p { max-width:235px; }
    .doc-item { flex-direction:row; align-items:center; gap:12px; }
    .doc-actions { width:calc(100% - 46px); }
    .upload-zone { padding:16px; }
    .section-heading { gap:10px; }
    .section-heading h2 { font-size:16px; }
    .section-heading p { font-size:11px; }
    .section-icon { width:36px; height:36px; border-radius:10px; }
    .upload-actions .btn { width:100%; }
    .folder-grid { grid-template-columns:minmax(0,1fr); gap:0; }
    .app-footer { padding:8px 18px 24px; font-size:9px; }
}
@media (prefers-reduced-motion:reduce) { .btn { transition:none; } }
