/* LinkedIn Manager V1.1 — interface claire, dense et responsive */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;color:#0f172a;background:#f5f7fa}*{box-sizing:border-box}body{margin:0}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}.shell{display:flex;min-height:100vh}aside{width:236px;flex-shrink:0;background:#fff;border-right:1px solid #e2e8f0;padding:26px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:750;margin:0 8px 32px;letter-spacing:-.5px}.brand span{color:#2563eb}.logo{background:#2563eb;border-radius:9px;width:38px;height:38px;display:grid;place-items:center;font-weight:800;font-size:21px;color:#fff}nav{display:grid;gap:5px}nav a{color:#475569;padding:11px 13px;border-radius:8px;font-weight:550}nav a:hover,nav a.selected{background:#eff6ff;color:#1d4ed8;text-decoration:none}.logout{margin-top:auto}main{width:100%;min-width:0;max-width:1800px;margin:auto;padding:32px 34px;align-self:stretch}header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}header small{color:#64748b;font-size:10px;font-weight:750;letter-spacing:1.5px}h1{font-size:27px;margin:6px 0 0;letter-spacing:-.8px}h2{font-size:18px;margin:0 0 15px;letter-spacing:-.3px}h3{font-size:15px;margin:24px 0 10px}p{color:#64748b;line-height:1.6}.button,button{display:inline-flex;align-items:center;justify-content:center;background:#2563eb;border:1px solid #2563eb;color:#fff;font:inherit;font-weight:600;padding:10px 14px;border-radius:8px;cursor:pointer;text-decoration:none;white-space:nowrap}.button:hover,button:hover{background:#1d4ed8;text-decoration:none}.secondary,.quiet{background:#fff;border:1px solid #d9e1eb;color:#334155}.secondary:hover,.quiet:hover{background:#f1f5f9;color:#0f172a}.quiet{width:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat,.panel{border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:21px;box-shadow:0 1px 2px rgba(15,23,42,.025)}.stat span{display:block;color:#64748b;font-size:12px}.stat strong{display:block;font-size:32px;letter-spacing:-1px;margin:12px 0 6px}.stat strong.date{font-size:17px;letter-spacing:0;margin:23px 0 17px}.stat small,.hint{color:#94a3b8;font-size:12px}.panel{margin-bottom:18px}.notice{background:#effaf5;border:1px solid #b6e8d0;padding:13px;border-radius:9px;margin-bottom:17px;color:#166534}.notice.bad,.error{background:#fef2f2;border:1px solid #fecaca;padding:12px;border-radius:8px;color:#991b1b}.tablewrap{overflow-x:auto;border:1px solid #e2e8f0;border-radius:9px}table{width:100%;border-collapse:collapse}th{text-align:left;color:#64748b;font-size:11px;font-weight:650;padding:12px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0;white-space:nowrap}td{padding:11px 12px;border-bottom:1px solid #edf1f5;vertical-align:middle;color:#334155}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#f8fbff}.dense-table{font-size:12px;min-width:900px}.dense-table td{padding:8px 11px;height:45px}.dense-table th{position:sticky;top:0;z-index:1}.dense-table .contact-name{font-weight:650;white-space:nowrap}.nowrap{white-space:nowrap}.pill{display:inline-block;padding:4px 9px;border-radius:99px;font-size:10px;font-weight:650}.good{background:#e8f8ef;color:#15803d}.warn{background:#fff4df;color:#a16207}.filters{display:flex;gap:9px;margin-bottom:16px;flex-wrap:wrap;align-items:center}.filters input{flex:1;min-width:190px}.filters.advanced input{min-width:160px;flex:1 1 170px}.filters.advanced select{max-width:210px}input,select,textarea{background:#fff;border:1px solid #d8e0ea;border-radius:8px;color:#0f172a;padding:10px 11px;font:inherit;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:#93b4f5;box-shadow:0 0 0 3px #dbeafe}select{width:auto}label{display:block;color:#475569;margin:12px 0 18px}label input{margin-top:9px}input[type=file]{max-width:550px}.upload{max-width:650px}.pagination{display:flex;justify-content:space-between;align-items:center;padding-top:16px;color:#64748b;font-size:12px}.pagination>div{display:flex;gap:18px}dl{display:grid;grid-template-columns:180px 1fr;gap:14px 18px}dt{color:#64748b}dd{margin:0}.profilehead{display:flex;justify-content:space-between;align-items:center;gap:15px}textarea{display:block;margin-bottom:12px}.login{min-height:100vh;display:grid;place-items:center;padding:20px}.login .panel{width:min(100%,420px);padding:32px}.login h1{margin-top:18px}.login button{width:100%}footer{padding:20px 0;color:#94a3b8;font-size:12px}.directory-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:14px}.directory-head h2{margin-bottom:2px}.directory-head .hint{margin:0}.inlineform{display:inline}.star-btn{padding:2px 6px;background:transparent;border:0;color:#cbd5e1;font-size:19px}.star-btn:hover{background:transparent;color:#f59e0b}.star-btn.is-favorite{color:#f59e0b}.empty{text-align:center;padding:30px!important;color:#94a3b8}.category-options{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0}.category-options label{margin:0;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.category-options input{width:auto;margin:0;vertical-align:middle}.category-form{margin:12px 0 20px}.category-form a{margin-left:12px}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}main{padding:24px}}@media(max-width:720px){.shell{display:block}aside{width:100%;height:auto;position:static;padding:12px}.brand{margin-bottom:10px}nav{display:flex;overflow:auto}nav a{white-space:nowrap}.logout{display:none}main{padding:18px 12px}header{align-items:start}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat,.panel{padding:14px}h1{font-size:23px}.stat strong{font-size:26px}dl{grid-template-columns:1fr}.profilehead,.directory-head{flex-wrap:wrap}}


/* V1.2 — Thème sombre, activé par data-theme="dark" sur html */
:root{color-scheme:light}
:root[data-theme="dark"]{
 color-scheme:dark;
 --dm-bg:#080a0f;--dm-panel:#11151c;--dm-panel-alt:#171c25;
 --dm-border:#292f3a;--dm-text:#e8eaf0;--dm-muted:#a6afbd;
 --dm-blue:#76a8ff;
 background:var(--dm-bg);color:var(--dm-text);
}
[data-theme="dark"] body{background:var(--dm-bg);color:var(--dm-text)}
[data-theme="dark"] aside,[data-theme="dark"] .panel,[data-theme="dark"] .stat{background:var(--dm-panel);border-color:var(--dm-border);box-shadow:none}
[data-theme="dark"] .brand,[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] .stat strong,[data-theme="dark"] dd,[data-theme="dark"] .dense-table .contact-name{color:var(--dm-text)}
[data-theme="dark"] p,[data-theme="dark"] header small,[data-theme="dark"] .stat span,[data-theme="dark"] .stat small,[data-theme="dark"] .hint,[data-theme="dark"] dt,[data-theme="dark"] footer,[data-theme="dark"] .pagination{color:var(--dm-muted)}
[data-theme="dark"] a{color:var(--dm-blue)}
[data-theme="dark"] nav a{color:#b9c3d1}
[data-theme="dark"] nav a:hover,[data-theme="dark"] nav a.selected{background:#202b3e;color:#a8caff}
[data-theme="dark"] .brand span{color:#8bb5ff}
[data-theme="dark"] .tablewrap{border-color:var(--dm-border)}
[data-theme="dark"] th{background:#171c24;color:#b9c3d1;border-bottom-color:var(--dm-border)}
[data-theme="dark"] td{color:#d3d9e2;border-bottom-color:#252b35}
[data-theme="dark"] tbody tr:hover td{background:#1c2430}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#0d1219;color:var(--dm-text);border-color:#343e4d}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#8d9cb2}
[data-theme="dark"] input:focus,[data-theme="dark"] select:focus,[data-theme="dark"] textarea:focus{border-color:#76a8ff;box-shadow:0 0 0 3px #263958}
[data-theme="dark"] label{color:#c2d0e2}
[data-theme="dark"] .secondary,[data-theme="dark"] .quiet,[data-theme="dark"] .theme-toggle{background:#1b222d;border-color:#343e4d;color:#e8eaf0}
[data-theme="dark"] .secondary:hover,[data-theme="dark"] .quiet:hover,[data-theme="dark"] .theme-toggle:hover{background:#283448;color:#fff}
[data-theme="dark"] .category-options label{background:#171e29;border-color:var(--dm-border)}
[data-theme="dark"] .notice{background:#153a2d;border-color:#286b50;color:#a5f3c5}
[data-theme="dark"] .notice.bad,[data-theme="dark"] .error{background:#47242b;border-color:#85404c;color:#fecdd3}
[data-theme="dark"] .good{background:#163b2d;color:#86efac}
[data-theme="dark"] .warn{background:#49351b;color:#fcd34d}
[data-theme="dark"] .empty{color:#9cacc1}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;border:1px solid #d9e1eb;border-radius:8px;background:#fff;color:#334155;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{background:#f1f5f9}
.theme-toggle:focus-visible{outline:3px solid #93b4f5;outline-offset:2px}
.theme-toggle .theme-icon{font-size:16px;line-height:1}
.header-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.login-theme{position:fixed;right:18px;top:18px;z-index:10}
@media(max-width:720px){.header-actions{justify-content:flex-end}.theme-toggle{padding:9px}.theme-toggle .theme-label{display:none}}


/* V1.3 — Carnet compact et fiche latérale */
.directory-shortcuts{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px}
.directory-shortcuts a{border:1px solid #d9e1eb;border-radius:7px;padding:7px 10px;font-size:12px;font-weight:600}
.directory-shortcuts a:hover{background:#f1f5f9;text-decoration:none}
.shortcut-help{margin-left:auto;color:#94a3b8;font-size:11px}
.contact-drawer-backdrop{position:fixed;inset:0;background:rgba(5,10,20,.55);z-index:90}
.contact-drawer{position:fixed;right:0;top:0;bottom:0;width:min(590px,100vw);background:#fff;z-index:91;box-shadow:-12px 0 35px rgba(0,0,0,.16);display:flex;flex-direction:column}
.contact-drawer[hidden],.contact-drawer-backdrop[hidden]{display:none!important}
.contact-drawer-toolbar{height:64px;flex-shrink:0;padding:10px 18px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.drawer-actions{display:flex;align-items:center;gap:8px}
.contact-drawer-toolbar .button,.contact-drawer-toolbar button{padding:8px 11px;font-size:12px}
.contact-drawer iframe{border:0;flex:1;width:100%;background:transparent}
body.drawer-open{overflow:hidden}
body.drawer-page .shell{display:block;min-height:0}
body.drawer-page aside,body.drawer-page main>header,body.drawer-page main>footer{display:none!important}
body.drawer-page main{width:100%;max-width:none;padding:18px;margin:0}
body.drawer-page .panel{border:0;box-shadow:none;padding:6px;margin:0}
body.drawer-page .profilehead{align-items:flex-start}
body.drawer-page .profilehead .button{white-space:normal;text-align:center}
body.drawer-page dl{grid-template-columns:150px 1fr;gap:10px}
[data-theme="dark"] .contact-drawer{background:#11151c;color:#e8eaf0;box-shadow:-12px 0 35px rgba(0,0,0,.45)}
[data-theme="dark"] .contact-drawer-toolbar{border-bottom-color:#292f3a}
[data-theme="dark"] .directory-shortcuts a{border-color:#292f3a;color:#a9c8ff}
[data-theme="dark"] .directory-shortcuts a:hover{background:#1c2532}
[data-theme="dark"] .shortcut-help{color:#a6afbd}
@media(max-width:720px){.shortcut-help{width:100%;margin:0}.contact-drawer-toolbar{padding:9px 12px}.contact-drawer-toolbar .button{display:none}body.drawer-page main{padding:12px}body.drawer-page dl{grid-template-columns:1fr;gap:5px}}
