@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Mono:wght@400;500&display=swap');
/* ═══ AdminEcho style-pro.css — design system light pro ═══ */
:root {
  --bg:#f5f7fb; --surface:#fff; --border:#e5e9f2;
  --accent:#2563eb; --accent2:#7c3aed;
  --green:#059669; --orange:#d97706; --red:#dc2626;
  --text:#0f172a; --muted:#64748b; --card:#fff;
  --sh-sm:0 1px 2px rgba(16,24,40,.06);
  --sh-md:0 2px 4px rgba(16,24,40,.05),0 12px 32px rgba(16,24,40,.07);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'DM Sans',system-ui,sans-serif; background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
::selection { background:rgba(37,99,235,.2); }
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:#c9d2e0; border-radius:4px; }
.sidebar { position:fixed; left:0; top:0; bottom:0; width:240px; background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; z-index:100; padding:0 0 24px; }
.logo { padding:26px 24px 22px; border-bottom:1px solid var(--border); }
.logo h1 { font-family:'Syne',sans-serif; font-size:20px; font-weight:800; letter-spacing:-.5px; background:linear-gradient(90deg,#1d4ed8,#7c3aed); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.logo p { font-size:11px; color:var(--muted); margin-top:2px; }
.nav { flex:1; padding:14px 12px; display:flex; flex-direction:column; gap:2px; overflow-y:auto; }
.nav-item { position:relative; display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:9px; cursor:pointer; transition:all .15s; font-size:14px; font-weight:500; color:#52607a; border:none; background:none; text-align:left; width:100%; }
.nav-item:hover { background:#f1f4fa; color:var(--text); }
.nav-item.active { background:rgba(37,99,235,.08); color:#1d4ed8; font-weight:600; }
.nav-item.active::before { content:''; position:absolute; left:0; top:22%; bottom:22%; width:3px; border-radius:3px; background:linear-gradient(180deg,#2563eb,#7c3aed); }
.nav-item .icon { font-size:17px; width:20px; text-align:center; }
.agents-status { padding:12px 16px; margin:0 12px; background:#f8fafc; border:1px solid var(--border); border-radius:10px; }
.agents-status h4 { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:8px; }
.agent-dot { display:flex; align-items:center; gap:8px; font-size:12px; margin-bottom:4px; color:#334155; }
.dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(5,150,105,.12); }
.dot.off { background:var(--red); box-shadow:0 0 0 3px rgba(220,38,38,.12); }
.user-info { padding:12px 16px; margin:12px 12px 0; background:#f8fafc; border:1px solid var(--border); border-radius:10px; cursor:pointer; transition:border-color .2s; }
.user-info:hover { border-color:rgba(220,38,38,.4); }
.user-info .name { font-size:13px; font-weight:600; }
.user-info .role { font-size:11px; color:var(--muted); }
.user-info .logout { font-size:11px; color:var(--red); margin-top:4px; }
.main { margin-left:240px; padding:32px 36px; min-height:100vh; background:radial-gradient(1100px 500px at 92% -160px, rgba(37,99,235,.05), transparent 60%), radial-gradient(900px 460px at -120px 8%, rgba(124,58,237,.04), transparent 60%); }
.page { display:none; } .page.active { display:block; }
.page-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.page-header h2 { font-family:'Syne',sans-serif; font-size:27px; font-weight:800; letter-spacing:-.6px; color:#0f172a; }
.page-header p { color:var(--muted); font-size:14px; margin-top:2px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:26px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:26px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-bottom:26px; }
.stat-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:20px 22px; box-shadow:var(--sh-sm); transition:all .18s ease; }
.stat-card:hover { transform:translateY(-2px); box-shadow:var(--sh-md); border-color:#d3dcea; }
.stat-card .emoji { font-size:19px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:12px; margin-bottom:12px; border:1px solid transparent; }
.stat-card:nth-child(4n+1) .emoji { background:rgba(37,99,235,.07); border-color:rgba(37,99,235,.18); }
.stat-card:nth-child(4n+2) .emoji { background:rgba(124,58,237,.07); border-color:rgba(124,58,237,.18); }
.stat-card:nth-child(4n+3) .emoji { background:rgba(5,150,105,.07); border-color:rgba(5,150,105,.18); }
.stat-card:nth-child(4n+4) .emoji { background:rgba(217,119,6,.07); border-color:rgba(217,119,6,.18); }
.stat-card .label { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.9px; font-weight:600; }
.stat-card .value { font-family:'Syne',sans-serif; font-size:30px; font-weight:800; margin:6px 0 2px; color:#0f172a; letter-spacing:-1px; }
.stat-card .sub { font-size:12px; color:var(--muted); }
/* Panels */
.panel { background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; margin-bottom:20px; box-shadow:var(--sh-sm); }
.panel-header { padding:16px 22px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; background:#fcfdfe; }
.panel-header h3 { font-family:'Syne',sans-serif; font-size:15px; font-weight:700; display:flex; align-items:center; color:#0f172a; }
.panel-header h3::before { content:''; width:3px; height:14px; border-radius:2px; background:linear-gradient(180deg,#2563eb,#7c3aed); margin-right:10px; flex-shrink:0; }
.panel-body { padding:20px 22px; }
.badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:999px; font-size:11px; font-weight:600; }
.badge.green { background:rgba(5,150,105,.1); color:#047857; }
.badge.orange { background:rgba(217,119,6,.1); color:#b45309; }
.badge.red { background:rgba(220,38,38,.1); color:#b91c1c; }
.badge.blue { background:rgba(37,99,235,.1); color:#1d4ed8; }
.btn { padding:9px 18px; border-radius:9px; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:600; cursor:pointer; transition:all .15s; border:none; display:inline-flex; align-items:center; gap:6px; }
.btn-primary { background:linear-gradient(135deg,#2563eb,#4f46e5); color:#fff; box-shadow:0 2px 8px rgba(37,99,235,.28); }
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(37,99,235,.32); }
.btn-ghost { background:#eef1f7; color:#334155; }
.btn-ghost:hover { background:#e2e8f2; }
.btn-danger { background:rgba(220,38,38,.1); color:#b91c1c; }
.btn-danger:hover { background:rgba(220,38,38,.18); }
.btn-sm { padding:6px 12px; font-size:12px; }
.btn:focus-visible, .nav-item:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.list-item { display:flex; align-items:center; justify-content:space-between; padding:14px 0; border-bottom:1px solid #edf0f6; }
.list-item:last-child { border-bottom:none; }
.list-item .info h4 { font-size:14px; font-weight:600; color:#1e293b; }
.list-item .info p { font-size:12px; color:var(--muted); margin-top:2px; }
.list-item .right { text-align:right; }
.list-item .right .amount { font-family:'Syne',sans-serif; font-size:16px; font-weight:700; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:11px; color:var(--muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:.7px; font-weight:600; }
.form-group input, .form-group select, .form-group textarea { width:100%; background:#fff; border:1px solid #d5dce8; color:var(--text); padding:10px 14px; border-radius:9px; font-family:'DM Sans',sans-serif; font-size:14px; transition:all .15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.form-group textarea { resize:vertical; min-height:80px; }
.ia-box { background:linear-gradient(135deg,rgba(37,99,235,.05),rgba(124,58,237,.05)); border:1px solid rgba(37,99,235,.18); border-radius:12px; padding:20px 22px; margin-top:16px; }
.ia-box .ia-header { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.ia-box .ia-header span { font-size:12px; color:#1d4ed8; font-weight:700; text-transform:uppercase; letter-spacing:.8px; }
.ia-box .ia-content { font-size:14px; line-height:1.7; color:#334155; white-space:pre-wrap; }
.loader { display:inline-block; width:16px; height:16px; border:2px solid #dbe2ee; border-top-color:#2563eb; border-radius:50%; animation:spin .6s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.loading-text { color:var(--muted); font-size:14px; display:flex; align-items:center; gap:8px; }
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(15,23,42,.45); backdrop-filter:blur(4px); z-index:200; align-items:center; justify-content:center; }
.modal-overlay.open { display:flex; }
.modal { background:#fff; border:1px solid var(--border); border-radius:16px; padding:28px; width:540px; max-height:80vh; overflow-y:auto; box-shadow:0 24px 80px rgba(15,23,42,.18); animation:modal-in .25s cubic-bezier(.16,1,.3,1); }
@keyframes modal-in { from { opacity:0; transform:translateY(12px) scale(.98); } }
.modal h3 { font-family:'Syne',sans-serif; font-size:18px; font-weight:700; margin-bottom:20px; }
.modal-footer { display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }
.toast { position:fixed; bottom:24px; right:24px; background:#fff; border:1px solid var(--border); border-radius:10px; padding:12px 18px; font-size:13px; z-index:300; transform:translateY(80px); opacity:0; transition:all .3s; max-width:320px; box-shadow:var(--sh-md); }
.toast.show { transform:translateY(0); opacity:1; }
.toast.success { border-color:rgba(5,150,105,.4); }
.toast.error { border-color:rgba(220,38,38,.4); }
.courrier-box { background:#fff; color:#222; border:1px solid #e2e6ee; border-radius:8px; padding:28px; font-family:'Times New Roman',serif; font-size:14px; line-height:1.8; white-space:pre-wrap; max-height:400px; overflow-y:auto; }
.timeline { display:flex; flex-direction:column; }
.timeline-item { display:flex; gap:16px; padding:14px 0; border-bottom:1px solid #edf0f6; align-items:flex-start; }
.timeline-item:last-child { border-bottom:none; }
.timeline-dot { width:10px; height:10px; border-radius:50%; margin-top:5px; flex-shrink:0; box-shadow:0 0 0 3px rgba(15,23,42,.05); }
.timeline-item .info h4 { font-size:14px; font-weight:600; }
.timeline-item .info p { font-size:12px; color:var(--muted); margin-top:2px; }
.timeline-item .days { margin-left:auto; font-family:'Syne',sans-serif; font-size:14px; font-weight:700; white-space:nowrap; }
.sys-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px; }
.sys-chip { display:flex; align-items:center; gap:10px; padding:10px 12px; background:#f8fafc; border:1px solid var(--border); border-left:2px solid rgba(5,150,105,.45); border-radius:10px; transition:all .15s; }
.sys-chip:hover { border-color:#c7d3e8; border-left-color:rgba(5,150,105,.7); box-shadow:var(--sh-sm); }
.sys-chip.off { border-left-color:rgba(220,38,38,.55); }
.sys-name { font-size:13px; font-weight:600; color:#0f172a; }
.sys-meta { font-size:11px; color:var(--muted); margin-top:2px; }
@media (max-width:900px) {
  .sidebar { width:60px; }
  .sidebar .logo p, .sidebar .nav-item span, .agents-status { display:none; }
  .main { margin-left:60px; padding:20px; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
}
/* ═══ LOGIN : panneau gauche indigo profond (contraste de marque) ═══ */
.login-page { display:none; position:fixed; inset:0; z-index:1000; background:#f5f7fb; }
.login-page.active { display:grid; grid-template-columns:1fr 1fr; }
.login-left { position:relative; overflow:hidden; background:linear-gradient(150deg,#0b1226,#1e1b4b 55%,#312e81); display:flex; align-items:center; justify-content:center; padding:60px; }
.login-left::before { content:''; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse 80% 60% at 20% 50%, rgba(79,142,247,.25) 0%, transparent 60%), radial-gradient(ellipse 60% 80% at 80% 20%, rgba(168,85,247,.2) 0%, transparent 60%); }
.login-right { background:#fff; display:flex; align-items:center; justify-content:center; padding:60px 48px; border-left:1px solid var(--border); }
.login-form-wrap { width:100%; max-width:380px; animation:login-in .4s cubic-bezier(.16,1,.3,1); }
.login-title { font-family:'Syne',sans-serif; font-size:28px; font-weight:800; color:#0f172a; margin:0 0 6px; letter-spacing:-.6px; }
.login-subtitle { font-size:14px; color:#64748b; margin:0 0 32px; }
.login-step { display:none; } .login-step.active { display:block; animation:login-in .3s ease; }
.login-field { margin-bottom:18px; }
.login-field label { display:block; font-size:11px; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:1.1px; margin-bottom:8px; }
.login-field input { width:100%; background:#f8fafc; border:1px solid #d5dce8; color:#0f172a; padding:13px 16px; border-radius:10px; font-size:14px; font-family:'DM Sans',sans-serif; transition:all .2s; box-sizing:border-box; }
.login-field input:focus { outline:none; border-color:#2563eb; background:#fff; box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.login-field input::placeholder { color:#94a3b8; }
.btn-login { width:100%; padding:14px; font-size:14px; font-weight:700; border-radius:10px; background:linear-gradient(135deg,#2563eb,#4f46e5); color:#fff; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; letter-spacing:.3px; transition:all .2s; margin-top:8px; box-shadow:0 4px 14px rgba(37,99,235,.3); }
.btn-login:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(37,99,235,.35); }
.btn-login:disabled { background:#e2e8f0; color:#94a3b8; cursor:not-allowed; transform:none; box-shadow:none; }
.code-inputs { display:flex; gap:8px; justify-content:center; margin-bottom:24px; }
.code-inputs input { width:48px; height:62px; text-align:center; font-size:26px; font-weight:500; font-family:'DM Mono',monospace; background:#f8fafc; border:1px solid #d5dce8; color:#2563eb; border-radius:10px; transition:all .15s; box-sizing:border-box; }
.code-inputs input:focus { outline:none; border-color:#2563eb; background:#fff; box-shadow:0 0 0 3px rgba(37,99,235,.12); transform:scale(1.06); }
.code-inputs input.filled { border-color:rgba(37,99,235,.5); background:rgba(37,99,235,.06); }
.login-error { color:#dc2626; font-size:12px; text-align:center; margin-top:12px; min-height:18px; animation:shake .3s ease; }
.login-back { background:none; border:none; color:#64748b; font-size:13px; cursor:pointer; margin-top:18px; width:100%; text-align:center; font-family:'DM Sans',sans-serif; transition:color .15s; padding:8px; }
.login-back:hover { color:#0f172a; }
.login-security-badge { display:flex; align-items:center; gap:8px; margin-top:24px; padding:11px 14px; background:rgba(5,150,105,.06); border:1px solid rgba(5,150,105,.2); border-radius:8px; font-size:12px; color:#047857; }
@keyframes login-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes shake { 0%,100% { transform:translateX(0); } 25% { transform:translateX(-5px); } 75% { transform:translateX(5px); } }
@media (max-width:768px) { .login-page.active { grid-template-columns:1fr; } .login-left { display:none; } .login-right { padding:40px 28px; } }
/* Compat : styles inline générés par le JS (NEXUS) */
#nexus-baremes-feed div[style*="rgba(255,255,255,0.05)"], #nexus-evolutions-feed > div { background:#f8fafc !important; border:1px solid var(--border); border-radius:10px !important; }
#nexus-baremes-feed div[style*="255,193,7"] { background:rgba(217,119,6,.07) !important; border-left-color:#d97706 !important; border-radius:12px !important; }
#nexus-baremes-feed h4[style*="ffc107"] { color:#b45309 !important; }
#nexus-baremes-feed button { border-radius:8px !important; font-weight:600 !important; }
/* v9 : système d'icônes SVG (fin des emojis) */
.nav-item .icon { display:flex; align-items:center; justify-content:center; color:#94a0b4; }
.nav-item:hover .icon { color:#475569; }
.nav-item.active .icon { color:#2563eb; }
.icon svg, .emoji svg, .panel-header h3 svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.stat-card .emoji { display:flex; align-items:center; justify-content:center; }
.stat-card:nth-child(4n+1) .emoji { color:#2563eb; }
.stat-card:nth-child(4n+2) .emoji { color:#7c3aed; }
.stat-card:nth-child(4n+3) .emoji { color:#059669; }
.stat-card:nth-child(4n+4) .emoji { color:#d97706; }
.panel-header h3 svg { color:#2563eb; }
.stat-card, .panel { border-radius:16px; box-shadow:0 1px 3px rgba(16,24,40,.07),0 8px 24px rgba(16,24,40,.05); }

/* v10 : chiffres lisibles + respiration des icônes */
.stat-card .value, .list-item .right .amount, .timeline-item .days {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}
.panel-header h3 svg { margin-right: 8px; }

/* ═══ v11 : CALIBRATION A+B (Qonto/Stripe + Alan) ═══ */
:root {
  --bg:#f7f8fa; --surface:#fff; --border:#e7eaf0;
  --accent:#4f46e5; --accent2:#7c3aed;
  --green:#0d9488; --orange:#d97706; --red:#dc2626;
  --text:#0f172a; --muted:#667085; --card:#fff;
  --sh-sm:0 1px 2px rgba(16,24,40,.05);
  --sh-md:0 2px 4px rgba(16,24,40,.04),0 12px 32px rgba(16,24,40,.08);
}
.main { padding:36px 40px; background:radial-gradient(1100px 480px at 92% -140px, rgba(79,70,229,.05), transparent 60%), radial-gradient(900px 460px at -120px 8%, rgba(13,148,136,.04), transparent 60%); }

/* Douceur Alan : espace + ombres enveloppantes */
.stat-card { padding:24px; border-radius:16px; box-shadow:var(--sh-sm); }
.stat-card:hover { box-shadow:var(--sh-md); border-color:#dcdfe6; transform:translateY(-2px); }
.panel { border-radius:16px; box-shadow:var(--sh-sm); }
.panel-body { padding:24px; }
.panel-header { padding:18px 24px; }
.btn { border-radius:10px; }
.btn-primary { background:linear-gradient(135deg,#4f46e5,#6d5cf0); box-shadow:0 2px 10px rgba(79,70,229,.25); }
.btn-primary:hover { box-shadow:0 6px 18px rgba(79,70,229,.3); }
.form-group input, .form-group select, .form-group textarea { border-radius:10px; padding:11px 14px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(79,70,229,.12); }
.nav-item { border-radius:10px; padding:11px 14px; }
.nav-item.active { background:rgba(79,70,229,.07); color:#4338ca; }
.nav-item.active::before { background:linear-gradient(180deg,#4f46e5,#7c3aed); }
.logo h1 { background:linear-gradient(90deg,#4338ca,#7c3aed); -webkit-background-clip:text; }

/* Badges & statuts recalibrés */
.badge.green { background:rgba(13,148,136,.1); color:#0f766e; }
.badge.blue { background:rgba(79,70,229,.08); color:#4338ca; }
.dot { background:var(--green); box-shadow:0 0 0 3px rgba(13,148,136,.12); }
.sys-chip { border-left-color:rgba(13,148,136,.45); }
.panel-header h3::before { background:linear-gradient(180deg,#4f46e5,#7c3aed); }

/* Accents KPI : indigo, teal, ambre, violet */
.stat-card:nth-child(4n+1) .emoji { background:rgba(79,70,229,.07); border-color:rgba(79,70,229,.18); color:#4f46e5; }
.stat-card:nth-child(4n+2) .emoji { background:rgba(13,148,136,.07); border-color:rgba(13,148,136,.2); color:#0d9488; }
.stat-card:nth-child(4n+3) .emoji { background:rgba(217,119,6,.07); border-color:rgba(217,119,6,.2); color:#d97706; }
.stat-card:nth-child(4n+4) .emoji { background:rgba(124,58,237,.07); border-color:rgba(124,58,237,.18); color:#7c3aed; }

/* Login : panneau indigo profond (signature Stripe) */
.login-left { background:linear-gradient(150deg,#171a3e,#312e81 55%,#4338ca); }
.btn-login { background:linear-gradient(135deg,#4f46e5,#6d5cf0); }
.code-inputs input { color:#4f46e5; }
.login-field input:focus { border-color:#4f46e5; box-shadow:0 0 0 3px rgba(79,70,229,.12); }

/* ═══ v12 : PORT DE LA MAQUETTE A+B SUR L'APP ═══ */
.hero { background:linear-gradient(120deg,#4f46e5,#6d5cf0 55%,#7c3aed); border-radius:20px; padding:26px 32px; color:#fff; display:flex; justify-content:space-between; align-items:center; box-shadow:0 12px 32px rgba(79,70,229,.25); margin-bottom:24px; position:relative; overflow:hidden; }
.hero::after { content:''; position:absolute; inset:0; background:radial-gradient(600px 200px at 85% 0%, rgba(255,255,255,.18), transparent); pointer-events:none; }
.hero h1 { font-family:'Syne',sans-serif; font-size:24px; font-weight:800; }
.hero p { opacity:.88; margin-top:6px; font-size:14px; }
.hero .cta { background:#fff; color:#4338ca; border:none; border-radius:12px; padding:12px 20px; font-weight:700; font-size:14px; cursor:pointer; font-family:inherit; position:relative; }
.nav .sec { font-size:10px; letter-spacing:1.2px; color:#98a2b3; font-weight:700; padding:14px 12px 6px; }
/* KPI pattern Qonto : icône en haut à droite */
.stat-card { position:relative; padding:22px 24px; }
.stat-card .emoji { position:absolute; top:20px; right:20px; margin-bottom:0; width:40px; height:40px; }
.stat-card .emoji svg { width:19px; height:19px; }
.stat-card .label { padding-right:56px; }
/* Avatar dans la carte utilisateur */
.user-info { display:flex; gap:10px; align-items:center; }
.user-info::before { content:'A'; width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; flex-shrink:0; }
/* Carte teal droits sociaux (touche Alan) */
.droits-hero { margin:0 0 20px; background:linear-gradient(120deg,rgba(13,148,136,.08),rgba(13,148,136,.03)); border:1px solid rgba(13,148,136,.25); border-radius:16px; padding:22px 24px; display:flex; justify-content:space-between; align-items:center; }
.droits-hero h3 { font-size:15px; font-weight:800; color:#0f766e; }
.droits-hero p { font-size:13px; color:#475467; margin-top:4px; }
.droits-hero button { background:#0d9488; color:#fff; border:none; border-radius:12px; padding:11px 18px; font-weight:700; font-size:13px; cursor:pointer; font-family:inherit; }
.droits-hero button:hover { background:#0f766e; }

/* ═══ v13 : alignement maquette (hero plein, système compact, anneau) ═══ */
.hero .btn-primary { background:rgba(255,255,255,.16); color:#fff; box-shadow:none; margin-left:12px; backdrop-filter:blur(4px); }
.hero .btn-primary:hover { background:rgba(255,255,255,.28); }
.ring-sm { width:34px; height:34px; border-radius:50%; background:conic-gradient(#0d9488 100%,#e7eaf0 0); display:flex; align-items:center; justify-content:center; }
.ring-sm i { width:26px; height:26px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-style:normal; font-weight:800; font-size:9px; color:#0f766e; }
.panel-header .ring-sm { margin-right:10px; }
/* Système en bande de pills compacte */
.sys-grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; }
.sys-chip { padding:7px 12px; }
.sys-meta { display:none; }
.sys-name { font-size:12.5px; }

/* ═══ v14 : identité maquette exacte ═══ */
.g21 { grid-template-columns: 1.6fr 1fr; }
.ring-lg { width:84px; height:84px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:4px auto 14px; }
.ring-lg i { width:66px; height:66px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-style:normal; font-weight:800; font-size:16px; color:#0f766e; }
#sys-feed .ag { display:flex; justify-content:space-between; font-size:13px; padding:8px 0; color:#475467; border-top:1px solid #f0f2f7; }
#sys-feed .ag.dim { color:#98a2b3; }
#sys-feed .ag .ok { color:#0f766e; font-weight:700; }
.agents-status { display:none; }
.stat-card:nth-child(1) .sub { color:#dc2626; font-weight:600; }
.stat-card:nth-child(2) .sub { color:#0f766e; font-weight:600; }

/* ═══ v15 IMMERSION : vie, mesure, feedback ═══ */
.page.active { animation: page-in .3s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.hero { background-size: 200% 200%; animation: hero-flow 10s ease infinite; }
@keyframes hero-flow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
/* Jauge score (blanche sur blurple) */
.gauge { width:64px; height:64px; border-radius:50%; background:conic-gradient(#fff 0%, rgba(255,255,255,.22) 0); display:flex; align-items:center; justify-content:center; margin-left:auto; margin-right:14px; flex-shrink:0; }
.gauge i { width:50px; height:50px; border-radius:50%; background:rgba(255,255,255,.14); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; font-style:normal; font-weight:800; font-size:17px; color:#fff; }
/* Pouls IA */
.pulse-bar { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--border); border-radius:14px; padding:12px 18px; margin-bottom:20px; box-shadow:var(--sh-sm); }
.pulse-label { font-size:10px; font-weight:800; letter-spacing:1.2px; color:#98a2b3; text-transform:uppercase; flex-shrink:0; }
.pulse-dot { width:9px; height:9px; border-radius:50%; background:#4f46e5; position:relative; flex-shrink:0; }
.pulse-dot::after { content:''; position:absolute; inset:-4px; border-radius:50%; border:2px solid rgba(79,70,229,.35); animation:pulse-ring 1.6s ease-out infinite; }
@keyframes pulse-ring { 0% { transform:scale(.6); opacity:1; } 100% { transform:scale(1.5); opacity:0; } }
.pulse-text { font-size:13px; color:#475467; transition:opacity .4s; }
.pulse-text.fade { opacity: 0; }
/* Confettis */
.confetti { position:fixed; width:8px; height:8px; border-radius:2px; z-index:999; pointer-events:none; animation:confetti-fall 1s ease-out forwards; }
@keyframes confetti-fall { to { transform:translateY(120px) rotate(540deg); opacity:0; } }

/* ═══ v16 VITALITÉ : contraste, sens, motivation ═══ */
:root {
  --bg:#edf0f7; --border:#dfe4ee;
  --green:#10b981; --orange:#f59e0b; --red:#e11d48;
}
.main { background:
  radial-gradient(1000px 480px at 92% -140px, rgba(79,70,229,.08), transparent 60%),
  radial-gradient(900px 460px at -120px 8%, rgba(16,185,129,.06), transparent 60%); }
.stat-card, .panel { box-shadow:0 1px 2px rgba(16,24,40,.06),0 6px 20px rgba(16,24,40,.06); }

/* KPI : liseré + chiffre coloré = sens immédiat */
.stat-card { border-top:4px solid transparent; }
.stat-card:nth-child(4n+1) { border-top-color:#4f46e5; }
.stat-card:nth-child(4n+2) { border-top-color:#10b981; }
.stat-card:nth-child(4n+3) { border-top-color:#f59e0b; }
.stat-card:nth-child(4n+4) { border-top-color:#7c3aed; }
.stat-card:nth-child(4n+1) .value { background:none; -webkit-text-fill-color:#4338ca; }
.stat-card:nth-child(4n+2) .value { background:none; -webkit-text-fill-color:#047857; }
.stat-card:nth-child(4n+3) .value { background:none; -webkit-text-fill-color:#b45309; }
.stat-card:nth-child(4n+4) .value { background:none; -webkit-text-fill-color:#6d28d9; }
.stat-card:nth-child(4n+1) .emoji { background:rgba(79,70,229,.12); border-color:rgba(79,70,229,.3); color:#4f46e5; }
.stat-card:nth-child(4n+2) .emoji { background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.3); color:#10b981; }
.stat-card:nth-child(4n+3) .emoji { background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.3); color:#f59e0b; }
.stat-card:nth-child(4n+4) .emoji { background:rgba(124,58,237,.12); border-color:rgba(124,58,237,.3); color:#7c3aed; }

/* Sidebar : pill indigo pleine (l'ancre forte) */
.nav-item.active { background:linear-gradient(135deg,#4f46e5,#6d5cf0); color:#fff; box-shadow:0 4px 12px rgba(79,70,229,.3); }
.nav-item.active .icon { color:#fff; }
.nav-item.active::before { display:none; }

/* Badges & statuts plus vivants */
.badge.green { background:rgba(16,185,129,.14); color:#047857; }
.badge.red { background:rgba(225,29,72,.12); color:#be123c; }
.badge.orange { background:rgba(245,158,11,.14); color:#b45309; }
.badge.blue { background:rgba(79,70,229,.12); color:#4338ca; }
.btn-primary { background:linear-gradient(135deg,#4f46e5,#7c3aed); box-shadow:0 4px 14px rgba(79,70,229,.35); }
.sys-chip { border-left-color:rgba(16,185,129,.55); }
.pulse-dot { background:#10b981; }
.pulse-dot::after { border-color:rgba(16,185,129,.4); }

/* Hero : formes décoratives (la touche image) */
.hero::before { content:''; position:absolute; right:-50px; top:-70px; width:230px; height:230px; border-radius:50%; background:rgba(255,255,255,.09); }
.hero::after { background:radial-gradient(500px 180px at 15% 100%, rgba(255,255,255,.12), transparent); }

/* Icônes de panneaux en puces colorées */
.panel-header h3 svg { color:#4f46e5; background:rgba(79,70,229,.1); padding:5px; border-radius:8px; width:26px; height:26px; }

/* v16b : correctifs immersion */
#sys-feed { display: block !important; }
.hero .gauge { margin-left: auto; margin-right: 16px; }

/* ═══ v17 SENS & VIE : constellation, score parlant ═══ */
.constellation { position:absolute; left:36%; top:50%; transform:translateY(-50%); width:42%; height:auto; opacity:.55; pointer-events:none; }
.constellation circle { animation: twinkle 3s ease-in-out infinite alternate; }
.constellation .tw2 { animation-delay: 1s; }
.constellation .tw3 { animation-delay: 2s; }
@keyframes twinkle { from { opacity:.3; } to { opacity:1; } }
.gauge { position: relative; }
.gauge::after { content:'santé admin.'; position:absolute; top:68px; left:50%; transform:translateX(-50%); font-size:9px; font-weight:800; letter-spacing:.6px; color:rgba(255,255,255,.8); white-space:nowrap; }
.pulse-stat { margin-left:auto; font-size:10px; font-weight:800; color:#98a2b3; letter-spacing:1px; flex-shrink:0; }

/* ═══ v18 PRESTIGE FINAL : overflow, intro, concierge ═══ */
html, body { overflow-x: hidden; }
.hero { flex-wrap: wrap; gap: 12px; }
/* Intro cinématique */
#ae-intro { position:fixed; inset:0; z-index:3000; background:linear-gradient(135deg,#4f46e5,#7c3aed); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; transition:opacity .6s; }
#ae-intro.out { opacity:0; pointer-events:none; }
.intro-logo { font-family:'Syne',sans-serif; font-size:44px; font-weight:800; color:#fff; letter-spacing:-1px; animation:login-in .7s cubic-bezier(.16,1,.3,1); }
.intro-sub { color:rgba(255,255,255,.8); font-size:14px; animation:login-in 1s; }
/* Concierge flottant */
#ae-concierge { position:fixed; right:26px; bottom:26px; width:56px; height:56px; border-radius:50%; border:none; background:linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; cursor:pointer; z-index:900; box-shadow:0 8px 24px rgba(79,70,229,.4); display:flex; align-items:center; justify-content:center; transition:transform .2s; }
#ae-concierge:hover { transform:scale(1.08); }
#ae-concierge svg { width:24px; height:24px; fill:#fff; }
#ae-concierge::after { content:''; position:absolute; inset:-6px; border-radius:50%; border:2px solid rgba(79,70,229,.35); animation:pulse-ring 2s ease-out infinite; }
#ae-drawer { position:fixed; right:26px; bottom:96px; width:360px; max-width:calc(100vw - 40px); background:#fff; border:1px solid var(--border); border-radius:18px; box-shadow:0 24px 64px rgba(15,23,42,.18); z-index:900; display:none; flex-direction:column; overflow:hidden; }
#ae-drawer.open { display:flex; animation:modal-in .25s cubic-bezier(.16,1,.3,1); }
.dw-head { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; background:linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; font-size:14px; }
#dw-close { cursor:pointer; opacity:.8; }
#dw-msgs { padding:16px; height:300px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; background:#f8f9fc; }
.msg { max-width:85%; padding:10px 14px; border-radius:14px; font-size:13px; line-height:1.5; }
.msg.ae { background:#fff; border:1px solid var(--border); align-self:flex-start; border-bottom-left-radius:4px; }
.msg.me { background:#4f46e5; color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.dw-input { display:flex; gap:8px; padding:12px; border-top:1px solid var(--border); background:#fff; }
.dw-input input { flex:1; border:1px solid #d5dce8; border-radius:10px; padding:10px 12px; font-size:13px; font-family:inherit; }
.dw-input input:focus { outline:none; border-color:#4f46e5; }
.dw-input button { border:none; background:#4f46e5; color:#fff; border-radius:10px; width:40px; cursor:pointer; }

/* ═══ v19 : concierge proactif ═══ */
.concierge-bubble { position:fixed; right:96px; bottom:40px; max-width:260px; background:#fff; border:1px solid var(--border); border-radius:14px; border-bottom-right-radius:4px; padding:12px 14px; font-size:13px; color:#334155; box-shadow:0 12px 32px rgba(15,23,42,.15); z-index:900; cursor:pointer; animation:modal-in .3s cubic-bezier(.16,1,.3,1); }
.concierge-bubble b { color:#4f46e5; }
#ae-concierge.nudge { animation:nudge .6s ease 3; }
@keyframes nudge { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }

/* ═══ v20 : palette Ctrl+K ═══ */
#cmdk-overlay { display:none; position:fixed; inset:0; background:rgba(15,23,42,.4); backdrop-filter:blur(4px); z-index:1500; justify-content:center; align-items:flex-start; padding-top:12vh; }
#cmdk-overlay.open { display:flex; }
#cmdk { width:560px; max-width:calc(100vw - 32px); background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:0 24px 80px rgba(15,23,42,.25); overflow:hidden; animation:modal-in .2s cubic-bezier(.16,1,.3,1); }
#cmdk-in { width:100%; border:none; padding:16px 18px; font-size:15px; font-family:inherit; outline:none; border-bottom:1px solid var(--border); box-sizing:border-box; }
#cmdk-list { max-height:320px; overflow-y:auto; padding:8px; }
.cmdk-item { padding:10px 12px; border-radius:10px; font-size:14px; color:#334155; cursor:pointer; }
.cmdk-item.sel { background:rgba(79,70,229,.08); color:#4338ca; font-weight:600; }
.cmdk-empty { padding:16px; text-align:center; color:#98a2b3; font-size:13px; }
.cmdk-foot { display:flex; gap:16px; padding:10px 16px; border-top:1px solid var(--border); background:#f8f9fc; font-size:11px; color:#98a2b3; }
.pulse-kbd { margin-left:10px; padding:2px 7px; border:1px solid var(--border); border-radius:6px; background:#fff; font-size:10px; font-weight:800; color:#667085; cursor:pointer; }
