:root{--ink:#17324d;--muted:#61758a;--teal:#0c8b7c;--teal2:#32b8a5;--blue:#3e78d8;--purple:#7a62d3;--amber:#f1a23a;--coral:#e66f66;--mint:#eaf8f5;--sky:#edf5ff;--lav:#f2efff;--sand:#fff5e8;--rose:#fff0ef;--line:#dbe6ee;--surface:#fff;--bg:#f6f9fc}
body{background:var(--bg);color:var(--ink)}
.portal-shell{background:radial-gradient(circle at 88% 4%,#e7fbf7 0,transparent 25%),radial-gradient(circle at 60% 80%,#f2efff 0,transparent 26%),#f7fafc}
.portal-header{background:linear-gradient(105deg,#123d57 0%,#0b6966 58%,#16a08d 100%);box-shadow:0 8px 28px rgba(20,60,78,.16);padding:17px 28px}.portal-brand{font-weight:720;letter-spacing:-.01em}.portal-user{opacity:.95}
.portal-layout{grid-template-columns:270px minmax(0,1fr)}.portal-nav{background:rgba(255,255,255,.94);backdrop-filter:blur(12px);padding:20px 15px;position:sticky;top:68px;height:calc(100vh - 68px);overflow-y:auto;align-self:start}.portal-nav a{padding:12px 15px;margin:4px 0;border-radius:13px;font-weight:650;color:#3b5369}.portal-nav a:hover{background:#f0f8f7;color:#096c63;transform:translateX(2px)}.portal-nav a.active{background:linear-gradient(90deg,#e1f6f2,#eef8ff);color:#09675f;box-shadow:inset 4px 0 0 #16a08d,0 6px 18px rgba(19,126,115,.08)}.portal-nav a.active:after{content:"Ouvert"}.nav-group{color:#8b63c7;margin-top:24px}
.portal-main{padding:34px 40px 60px}.portal-page-heading h1{font-weight:650;letter-spacing:-.035em;color:#17324d}.portal-page-heading p{font-size:1.02rem}.eyebrow{color:#7b64c8}.portal-card{border:1px solid rgba(205,220,231,.9);border-radius:22px;box-shadow:0 12px 34px rgba(34,70,92,.075);padding:24px;background:rgba(255,255,255,.96)}
.btn{border-radius:12px;font-weight:720;padding:10px 16px;box-shadow:none}.btn-brand{background:linear-gradient(135deg,#0b8f7f,#13a58f);border-color:transparent;box-shadow:0 8px 20px rgba(13,143,127,.2)}.btn-secondary{background:#fff;border-color:#cddbe5}.btn-danger{background:#fff4f3;border-color:#f2c1bd}.button-inline-icon{margin-right:8px;font-size:1.05em}
.alert-info{background:#eef6ff;border-color:#c9dcf7;color:#315a8a}.ux-help,.help-hero{background:linear-gradient(120deg,#ecfaf7,#f2f5ff);border:1px solid #cee9e4}
.help-hero{display:flex;justify-content:space-between;gap:24px;align-items:center}.help-hero p{margin:.4rem 0 0}.help-faq{display:grid;gap:12px}.help-faq details{background:#fff;border:1px solid var(--line);border-radius:17px;padding:0 19px;box-shadow:0 8px 22px rgba(29,64,86,.05)}.help-faq summary{cursor:pointer;padding:18px 0;font-weight:760;color:#24445d}.help-faq details[open]{border-color:#b9ded8;background:linear-gradient(135deg,#fff,#f6fffd)}.help-faq details p{padding:0 0 18px;margin:0;color:#4e667b;line-height:1.7}
.data-table{border-collapse:separate;border-spacing:0}.data-table thead th{background:#f3f7fb;color:#536a7c;font-size:.76rem;letter-spacing:.055em;text-transform:uppercase;border-bottom:1px solid #d7e3ec}.data-table thead th:first-child{border-radius:12px 0 0 12px}.data-table thead th:last-child{border-radius:0 12px 12px 0}.data-table tbody tr:hover{background:#fbfefd}.data-table td{border-bottom:1px solid #e9eff4}.table-icon-btn{width:38px;height:38px;padding:8px!important;min-height:38px!important}.table-icon-btn svg,.action-buttons .btn svg,.review-decision svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.admin-kpis{grid-template-columns:repeat(12,minmax(0,1fr))}.admin-kpis .portal-card{grid-column:span 4!important;min-height:150px;padding:22px;position:relative;overflow:hidden}.admin-kpis .portal-card:nth-child(1){background:linear-gradient(145deg,#fff,#eaf9f5);border-color:#bfe8dc}.admin-kpis .portal-card:nth-child(2){background:linear-gradient(145deg,#fff,#edf5ff);border-color:#c8daf7}.admin-kpis .portal-card:nth-child(3){background:linear-gradient(145deg,#fff,#fff4e6);border-color:#f3d29e}.admin-kpis .portal-card:nth-child(4){background:linear-gradient(145deg,#fff,#effaf4);border-color:#c9ead7}.admin-kpis .portal-card:nth-child(5){background:linear-gradient(145deg,#fff,#f2efff);border-color:#d7ccfa}.admin-kpis .portal-card:nth-child(6){background:linear-gradient(145deg,#fff,#fff0ef);border-color:#f0c9c5}.admin-kpis .metric{font-size:2.65rem;line-height:1;color:#17324d}.admin-kpis p{margin:.8rem 0 0;max-width:180px;font-size:.95rem;line-height:1.35;color:#486176}
.label-catalogue{gap:24px}.label-product{border-top:5px solid #23a894}.label-product:nth-child(2){border-top-color:#3e78d8}.label-product:nth-child(3){border-top-color:#7a62d3}.label-product:nth-child(4){border-top-color:#f1a23a}.label-product h2{font-weight:650}.price-pill{border-radius:999px}.journey-strip{background:linear-gradient(90deg,#eef9f7,#f3f0ff,#fff6e9)}
.profile-form-card{max-width:1050px}.profile-save-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.review-progress{background:linear-gradient(120deg,#edf9f6,#f3f0ff)!important}.review-actions{display:flex;gap:7px}.review-decision{width:38px;height:38px;border-radius:11px}.review-ok{background:#e8f8f1!important;color:#14804e!important}.review-warn{background:#fff5df!important;color:#a96c00!important}.review-no{background:#fff0ef!important;color:#b6463f!important}
.artifact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.artifact-card{border-radius:22px;padding:24px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 28px rgba(30,70,90,.06)}.artifact-card.attestation{background:linear-gradient(145deg,#fff,#edf6ff)}.artifact-card.label{background:linear-gradient(145deg,#fff,#eefaf7)}.artifact-preview{display:grid;place-items:center;min-height:280px;border-radius:18px;background:rgba(255,255,255,.72);border:1px dashed #c4d6e2;margin:16px 0}.artifact-preview img{max-width:280px;max-height:280px}.artifact-number{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f2f6f9;border-radius:8px;padding:5px 8px;font-size:.86rem}
@media(max-width:1050px){.portal-layout{grid-template-columns:230px minmax(0,1fr)}.portal-main{padding:28px 24px}.admin-kpis .portal-card{grid-column:span 6!important}}
@media(max-width:900px){.portal-layout{display:block}.portal-nav{position:relative;top:auto;height:auto;display:flex;overflow-x:auto;overflow-y:hidden}.portal-main{padding:20px}.admin-kpis .portal-card{grid-column:span 6!important}.artifact-grid{grid-template-columns:1fr}}
@media(max-width:620px){.admin-kpis .portal-card{grid-column:span 12!important}.profile-save-bar,.help-hero{align-items:stretch;flex-direction:column}.portal-header{padding:14px 18px}}
/* V12.3 — pièces justificatives d'audit et notifications facultatives */
.audit-evidence-block{margin-top:18px;padding:18px;border:1px solid #d7e8ec;border-radius:18px;background:linear-gradient(135deg,#f8fcfd 0%,#f6fbf8 100%)}
.audit-evidence-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:12px}.audit-evidence-head>div{display:flex;flex-direction:column;gap:3px}.audit-evidence-head span{color:#627d86;font-size:.88rem}.file-counter{white-space:nowrap;background:#eaf7f4;color:#08756d!important;border:1px solid #c9e8e2;padding:5px 10px;border-radius:999px;font-weight:800}
.audit-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;min-height:142px;padding:22px;border:2px dashed #9dcfc8;border-radius:16px;background:#fff;cursor:pointer;transition:.18s ease}.audit-dropzone:hover,.audit-dropzone.is-dragging{border-color:#0b9487;background:#eefaf7;transform:translateY(-1px)}.audit-dropzone.has-files{border-style:solid;background:#f0fbf7}.audit-dropzone input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.audit-dropzone .drop-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#e9f8f5;color:#087b6f}.audit-dropzone .drop-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.audit-dropzone>span:not(.drop-icon),.audit-dropzone small{color:#687e87;font-size:.86rem}
.audit-file-list{display:grid;gap:8px;margin-top:12px}.audit-file-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e1ebee;border-radius:12px;background:#fff}.file-main{display:flex;align-items:center;gap:10px;min-width:0}.file-main>svg{width:20px;min-width:20px;fill:none;stroke:#0b8177;stroke-width:1.7}.file-main>div{min-width:0}.file-main strong,.file-main small{display:block}.file-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:540px}.file-main small{margin-top:2px;color:#71858d}.file-actions,.evidence-actions{display:flex;gap:6px;align-items:center}.icon-btn.danger{color:#b42318}.icon-btn.success{color:#087b5f}
.submit-audit-group{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.email-option,.review-email-choice label{display:flex;align-items:center;gap:8px;font-weight:700;color:#36505a}.email-option input,.review-email-choice input{width:18px;height:18px;accent-color:#0b8f7f}.review-email-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:12px 16px;border:1px solid #d9e8ec;border-radius:14px;background:#f8fbfc}.review-email-choice small{color:#6b7f87}
.admin-evidence-list{display:grid;gap:7px;min-width:230px}.admin-evidence-item{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 9px;border:1px solid #e1e9ec;border-radius:10px;background:#fbfdfd}.admin-evidence-item strong,.admin-evidence-item small{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-evidence-item small{margin-top:2px;color:#6b7f87;font-size:.75rem}.admin-evidence-item .icon-btn{width:31px;height:31px;min-width:31px;padding:6px}
@media(max-width:760px){.audit-evidence-head,.audit-file-item,.review-email-choice{align-items:stretch;flex-direction:column}.file-actions{justify-content:flex-end}.submit-audit-group{align-items:stretch;flex-direction:column}.submit-audit-group .btn{width:100%}}
