/* NDEMYA UX V2 - mobile-first presentation layer */
:root{--nd-red:#e31b23;--nd-black:#0b0b0d;--nd-ink:#171719;--nd-muted:#6c6c72;--nd-line:#e5e5e8;--nd-soft:#f7f7f8;--nd-white:#fff;--nd-radius:20px;--nd-shadow:0 8px 28px rgba(0,0,0,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{color:var(--nd-ink);background:var(--nd-soft);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}a{text-decoration:none}.nd-shell{width:min(100%,1180px);margin:auto;padding:0 18px 96px}.nd-card{background:#fff;border:1px solid var(--nd-line);border-radius:var(--nd-radius);box-shadow:var(--nd-shadow);padding:20px}.nd-card+.nd-card{margin-top:14px}.nd-page-head{padding:26px 0 18px}.nd-page-head h1{margin:0;color:var(--nd-black);font-size:clamp(30px,8vw,46px);line-height:1.04;letter-spacing:-.04em}.nd-lead{margin:8px 0 0;color:var(--nd-muted);line-height:1.5}.nd-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.nd-stat{padding:13px 10px;background:#fff;border:1px solid var(--nd-line);border-radius:15px}.nd-stat strong{display:block;font-size:24px}.nd-stat span{color:var(--nd-muted);font-size:11px}.nd-chips{display:flex;gap:8px;overflow:auto;padding:2px 0 6px;scrollbar-width:none}.nd-chip{flex:none;padding:9px 13px;border:1px solid var(--nd-line);border-radius:999px;background:#fff;color:#555;font-size:13px;font-weight:650}.nd-chip.active{background:var(--nd-black);color:#fff;border-color:var(--nd-black)}.nd-status{display:inline-flex;padding:6px 9px;border-radius:999px;background:#f2f2f3;color:#555;font-size:12px;font-weight:700}.nd-status.pending{background:#fff6da;color:#795b00}.nd-status.success{background:#e9f8ef;color:#18794e}.nd-bottom-nav{position:fixed;z-index:60;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--nd-line);box-shadow:0 -8px 30px rgba(0,0,0,.06);backdrop-filter:blur(18px)}.nd-bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px 2px;color:#696970;font-size:11px;font-weight:650}.nd-bottom-nav a.active{color:var(--nd-black)}.nd-bottom-nav .nd-create{width:54px;height:54px;margin-top:-26px;border-radius:50%;display:grid;place-items:center;background:var(--nd-red);color:#fff;font-size:28px;border:4px solid #fff;box-shadow:0 10px 24px rgba(227,27,35,.3)}.nd-progress{height:8px;overflow:hidden;background:#ececee;border-radius:99px}.nd-progress span{display:block;height:100%;background:var(--nd-red)}.nd-voice{padding:30px 22px;text-align:center;background:linear-gradient(150deg,#35070c,#9e0f1c 52%,#e31b23);border-radius:28px;color:#fff;box-shadow:0 18px 42px rgba(180,12,25,.18)}.nd-mic{display:grid;place-items:center;width:116px;height:116px;margin:26px auto;border-radius:50%;border:6px solid rgba(255,255,255,.18);background:#fff;color:var(--nd-red);font-size:42px;box-shadow:0 0 0 18px rgba(255,255,255,.08),0 0 0 36px rgba(255,255,255,.05)}
/* Profile and support screens */
body:has(a[href*="reclamations"]) .hero,body:has(a[href*="paiements"]) .hero{border-radius:22px!important}body:has(form[action*="profil"]) .panel,body:has(a[href*="profil"]) .panel{border-radius:18px!important;border:1px solid var(--nd-line)!important;box-shadow:var(--nd-shadow)!important}body:has(a[href*="profil"]) .panel table{width:100%}body:has(a[href*="profil"]) .panel tr{border-bottom:1px solid var(--nd-line)}body:has(a[href*="profil"]) .panel tr:last-child{border-bottom:0}body:has(a[href*="profil"]) .panel td{padding:10px 0!important}body:has(a[href*="profil"]) .alert,body:has(a[href*="profil"]) .notice{border-radius:14px!important}
/* Connected client workspace */
.nd-client-focus{display:grid;gap:14px}.nd-client-primary{padding:22px;border-radius:22px;background:#0b0b0d;color:#fff}.nd-client-primary h2{margin:0 0 7px;font-size:25px;letter-spacing:-.03em}.nd-client-primary p{margin:0 0 18px;color:#b8b8bd;line-height:1.5}.nd-client-primary .btn{background:#e31b23!important;color:#fff!important;border-color:#e31b23!important}.nd-client-activity{padding:18px;border:1px solid var(--nd-line);border-radius:18px;background:#fff}.nd-client-activity h3{margin:0 0 12px;font-size:18px}
/* Mobile transformation of legacy lists: preserve desktop tables, render rows as cards on phones. */
@media(max-width:720px){.table-responsive{overflow:visible!important}.table-responsive table{min-width:0!important;width:100%!important;display:block}.table-responsive thead{display:none}.table-responsive tbody{display:grid;gap:12px}.table-responsive tr{display:block;padding:16px;background:#fff;border:1px solid var(--nd-line);border-radius:18px;box-shadow:var(--nd-shadow)}.table-responsive td{display:flex!important;align-items:flex-start;justify-content:space-between;gap:14px;width:100%!important;padding:7px 0!important;border:0!important;white-space:normal!important;text-align:right}.table-responsive td:first-child{padding-top:0!important}.table-responsive td:last-child{padding-bottom:0!important}.table-responsive td .btn{margin-left:auto}.filter-bar,.filters{display:flex!important;gap:8px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none}.filter-bar .btn,.filters .btn{flex:none!important;white-space:nowrap!important}}
@media(max-width:720px){body{padding-bottom:76px}.nav{gap:6px!important;margin:0 -14px 8px!important;padding:0 14px 8px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav a{flex:none!important;white-space:nowrap!important;padding:9px 12px!important;border-radius:999px!important;font-size:12px!important}.nav a.active{background:#0b0b0d!important;color:#fff!important}.nav+ .nav{margin-top:-2px!important}.stats-grid,.stat-grid,.stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.stat-card{min-height:0!important;padding:13px 10px!important;border-radius:15px!important;box-shadow:none!important}.stat-card .val{font-size:24px!important;line-height:1.05!important}.stat-card .lbl{font-size:11px!important;line-height:1.25!important;margin-top:3px!important}.hero{padding:22px 18px!important;border-radius:20px!important}.hero h2{font-size:28px!important;line-height:1.08!important}.topbar,.portal-header,header.header{min-height:64px!important;padding-top:8px!important;padding-bottom:8px!important}.topbar img,.portal-header img,header.header img{max-height:42px!important;width:auto!important}.table-responsive table{min-width:620px}.container,.content,.main-content{max-width:100%!important;padding-left:14px!important;padding-right:14px!important}.container,.content,.main-content{max-width:100%!important;padding-left:14px!important;padding-right:14px!important}.card,.panel,.box{border-radius:18px!important;box-shadow:var(--nd-shadow)!important}.card-body,.panel-body{padding:18px!important}.btn-danger,.btn-primary{border-radius:13px!important;min-height:46px!important}.form-control{border-radius:13px!important;min-height:50px!important}.table-responsive{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.nav-tabs,.nav-pills{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none}.nav-tabs .nav-link,.nav-pills .nav-link{white-space:nowrap!important}}
/* Parcours: present the existing data as progressive sections; forms open on demand without changing endpoints. */
/* Current Parcours view: make every panel progressive without changing its forms or routes. */
body:has(form[action*="parcours"]) .panel{margin-top:14px!important;border-radius:18px!important;border:1px solid var(--nd-line)!important;box-shadow:var(--nd-shadow)!important}body:has(form[action*="parcours"]) .panel h3{font-size:19px!important;margin-top:0!important}body:has(form[action*="parcours"]) .panel form{display:grid;gap:10px}body:has(form[action*="parcours"]) .panel:not(:first-of-type) form{max-height:0;overflow:hidden;opacity:0;margin:0;transition:max-height .28s ease,opacity .2s ease,margin .2s ease}body:has(form[action*="parcours"]) .panel:not(:first-of-type):focus-within form,body:has(form[action*="parcours"]) .panel:not(:first-of-type):hover form{max-height:900px;opacity:1;margin-top:14px}@media(max-width:720px){body:has(form[action*="parcours"]) .panel:not(:first-of-type) form{max-height:none;opacity:1;margin-top:12px}body:has(form[action*="parcours"]) .panel h3{padding-bottom:8px;border-bottom:1px solid var(--nd-line)}}body:has(form[action*="parcours"]) .panel label{display:grid;gap:6px;font-size:13px;font-weight:700}body:has(form[action*="parcours"]) .panel input,body:has(form[action*="parcours"]) .panel select,body:has(form[action*="parcours"]) .panel textarea{width:100%;min-height:49px;padding:11px 13px;border:1px solid #d9d9dc;border-radius:13px;background:#fff}body:has(form[action*="parcours"]) .panel textarea{min-height:100px}body:has(form[action*="parcours"]) .hero{background:#0b0b0d!important;color:#fff!important;border-radius:24px!important}body:has(form[action*="parcours"]) .hero .muted{color:#b8b8bd!important}
.nd-parcours-progressive .panel{margin-top:14px}.nd-parcours-progressive .panel>h3{display:flex;align-items:center;justify-content:space-between;margin:0;font-size:19px}.nd-parcours-progressive details{border:0}.nd-parcours-progressive summary{cursor:pointer;list-style:none;font-weight:750}.nd-parcours-progressive summary::-webkit-details-marker{display:none}.nd-parcours-progressive summary:after{content:'+';float:right;width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--nd-line);border-radius:50%;font-size:20px}.nd-parcours-progressive details[open] summary:after{content:'−'}.nd-parcours-progressive form{margin-top:14px}.nd-parcours-progressive label{display:grid;gap:6px;margin-bottom:12px;font-size:13px;font-weight:700}.nd-parcours-progressive input,.nd-parcours-progressive select,.nd-parcours-progressive textarea{width:100%;min-height:49px;padding:11px 13px;border:1px solid #d9d9dc;border-radius:13px;background:#fff}.nd-parcours-progressive textarea{min-height:100px}
@media(min-width:721px){.nd-bottom-nav{display:none}.nd-shell{padding-bottom:40px}.nd-summary{grid-template-columns:repeat(4,1fr)}}
