:root{--ink:#253c32;--green:#345d48;--cream:#f6f4ed;--muted:#78847c;--line:#e3e7df}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}[hidden]{display:none!important}aside{width:238px;background:#fffdf7;border-right:1px solid var(--line);padding:30px 24px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:22px;font-weight:750}.brand-mark{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--green);color:white;font-size:16px;font-weight:800;letter-spacing:-1px}.brand-small{font-size:11px;font-weight:500;display:block;color:var(--muted)}.nav-item{margin-top:42px;padding:13px 15px;border-radius:9px;font-weight:650}.selected{background:#e8efe4;color:#395d44}.sidebar-label{font-size:10px;letter-spacing:1.5px;color:#90998f;margin:38px 14px 15px}.agent-nav{padding:12px 14px;color:#68756a}.aside-bottom{margin-top:auto;font-size:11px}.dot-line{display:flex;align-items:center;gap:8px;padding-bottom:15px}.dot{height:7px;width:7px;border-radius:100%;background:#7ba469}main{margin-left:238px;max-width:1520px;padding:36px 42px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#73816e;margin:0 0 10px}h1{font-size:38px;line-height:1.16;letter-spacing:-1.5px;margin:8px 0 12px;font-weight:650}header p{margin:0;color:var(--muted);font-size:14px}.pill,.small-tag{background:#e7eddf;color:#536942;border-radius:30px;padding:8px 13px;font-size:11px;white-space:nowrap}.notice{border:1px solid #e7dbb5;background:#fbf4df;color:#766335;padding:13px 18px;border-radius:12px;font-size:12px;margin-bottom:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stats article{border:1px solid var(--line);border-radius:15px;background:#fffdf7;padding:20px 22px}.stats span{display:block;font-size:9px;letter-spacing:1.2px;color:#8a9385}.stats strong{font-size:29px;font-weight:650;display:inline-block;margin-top:7px}.stats small{font-size:10px;color:#8b968b;margin-left:6px}.workspace{display:grid;grid-template-columns:minmax(290px,.86fr) minmax(420px,1.45fr);gap:24px;align-items:start}.panel{background:#fffdf8;border:1px solid var(--line);border-radius:18px;padding:24px;margin-bottom:24px}h2{font-size:20px;font-weight:650;letter-spacing:-.6px;margin:0 0 18px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.subtle{border:1px solid #dce2d5;background:transparent;color:#687663;border-radius:8px;padding:8px 11px;font-size:11px}.primary{border:0;background:var(--green);color:white;border-radius:9px;padding:14px 17px;font-size:13px;font-weight:650}.full{width:100%;display:flex;justify-content:space-between}.photo-picker{background:#edf0e5;border:1px dashed #bfc9b4;border-radius:12px;min-height:115px;display:flex;align-items:center;justify-content:center;margin:4px 0 20px;position:relative;overflow:hidden}.photo-picker label{margin:0;text-align:center;cursor:pointer;padding:23px}.photo-picker label span{display:block;font-size:12px}.photo-picker small{font-size:10px;color:#929d88;display:block;margin-top:8px}.photo-picker input{position:absolute;width:1px;height:1px;opacity:0}.photo-picker img{max-width:100%;max-height:180px;object-fit:contain;margin:10px}label{display:block;font-size:11px;font-weight:600;color:#697762;margin-bottom:15px}input,textarea,select{display:block;width:100%;background:#fff;border:1px solid #dce2d5;border-radius:8px;padding:11px 12px;color:var(--ink);margin-top:6px;font-size:12px}input::placeholder,textarea::placeholder{color:#adb4a7}textarea{resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #b6c9a9;outline-offset:1px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:15px}.input-help{display:block;color:#a1aa98;font-size:9px;margin-top:4px}.flow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.flow-steps div{padding:8px 0 15px}.flow-steps span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid #d6ddcd;color:#719063;font-size:11px;margin-bottom:12px}.flow-steps b{display:block;font-size:12px}.flow-steps small{display:block;color:#99a08f;font-size:9px;margin-top:5px}.automation{border-top:1px solid var(--line);padding-top:20px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px}.automation b{font-size:12px}.automation small{display:block;max-width:350px;color:#939d8c;font-size:10px;margin-top:5px}.empty{padding:26px 0;color:#a2aa9b;font-size:12px;line-height:1.7}.product-row,.job-row{padding:17px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.product-name{font-size:13px;font-weight:650}.product-meta{font-size:10px;color:#8e9986;margin-top:3px}.row-actions{display:flex;gap:7px;flex-wrap:wrap}.job-state{font-size:10px;padding:5px 9px;background:#e8eee2;border-radius:20px;color:#627753}.job-error{color:#995b47;font-size:11px}.job-meta{font-size:10px;color:#99a18f}footer{padding:8px 0 22px;color:#9ba390;font-size:10px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#263d32;color:white;border-radius:12px;padding:14px 20px;max-width:90%;z-index:5}dialog{border:1px solid var(--line);border-radius:18px;max-width:1000px;width:94%;max-height:90vh;padding:26px;color:var(--ink);background:var(--cream)}dialog::backdrop{background:#17271fb0}.modal-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.result-block{padding:20px;background:#fffdf8;border:1px solid var(--line);border-radius:12px;margin:15px 0}.result-block h3{margin:0 0 12px}.result-block p{white-space:pre-wrap}.result-label{font-size:10px;font-weight:700;letter-spacing:1px;color:#86957c}.result-prompt{font-size:12px;white-space:pre-wrap}iframe{width:100%;height:610px;border:1px solid var(--line);border-radius:12px;background:white}.generated-image{max-width:100%;max-height:600px;display:block;margin:auto}.login-card{max-width:420px;margin:12vh auto;background:white;padding:35px;border:1px solid var(--line);border-radius:20px}.login-card h1{font-size:30px}#login-error{color:#a46145}a.download{display:inline-block;text-decoration:none}.checklist{padding:14px 18px;background:#efeedb;border-radius:12px;font-size:12px;white-space:pre-wrap}.review-actions{display:flex;gap:12px;flex-wrap:wrap;padding:15px 0}
@media(min-width:1500px){main{padding:44px 65px}.workspace{gap:32px}}@media(max-width:1100px){aside{width:185px;padding:25px 18px}main{margin-left:185px;padding:30px 25px}.workspace{grid-template-columns:1fr}.right-area{display:contents}.product-panel{order:1}.flow{order:0}.stats{gap:10px}.stats article{padding:15px}.stats span{font-size:8px}h1{font-size:33px}}@media(max-width:650px){aside{position:static;width:100%;height:auto;padding:15px 20px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:18px}.brand-mark{width:36px;height:36px}.nav-item,.sidebar-label,.agent-nav,.aside-bottom{display:none}main{margin:0;padding:23px 16px}header{align-items:flex-start;margin-bottom:20px}h1{font-size:29px}.eyebrow{font-size:8px}header p{font-size:12px}.stats{grid-template-columns:1fr 1fr}.panel{padding:20px}.section-top{align-items:flex-start}.flow-steps small{font-size:8px}.product-row,.job-row{align-items:flex-start;flex-direction:column}.workspace{display:flex;flex-direction:column;gap:0}.right-area{display:flex;flex-direction:column;width:100%}.product-panel{width:100%}.flow{order:0}.product-panel{order:0}.automation small{font-size:9px}dialog{padding:16px}iframe{height:530px}.login-card{margin:8vh 20px}}

/* Palette du studio : violet, bleu électrique et turquoise. */
:root{--ink:#252641;--green:#6d28d9;--cream:#f4f5ff;--muted:#626b87;--line:#e0e4f3}
body{background:radial-gradient(ellipse at 95% 0%,#e9e4ff 0%,transparent 45%),var(--cream)}
aside{background:linear-gradient(165deg,#25134f 0%,#362277 60%,#243670 100%);border:0;color:#fff}
.brand-mark{background:linear-gradient(135deg,#9b5cff,#4263ff);box-shadow:0 6px 20px #14093f55}
.brand-small{color:#ccc7ef}.selected{background:#ffffff20;color:white;border:1px solid #ffffff25}
.sidebar-label{color:#bab4de}.agent-nav{color:#ded9f5}.dot-line{color:#e3def7}.dot{background:#41e5bf;box-shadow:0 0 0 4px #41e5bf18}
aside .subtle{color:#e3def7;border-color:#ffffff35;background:#ffffff10}.agent-nav:nth-of-type(2){color:#9edfff}
main>header{padding:27px 29px;border-radius:23px;border:1px solid #dbdafa;background:linear-gradient(110deg,#ffffff 0%,#efeaff 65%,#dff5ff 100%);box-shadow:0 12px 36px #5952ae08}
.eyebrow{color:#6d28d9}h1{font-weight:750;color:#34245f}h2{font-weight:700}
.pill,.small-tag{background:#d9f8ef;color:#08614f;border:1px solid #b9eede;font-weight:650}
.notice{background:#fff5db;border-color:#f4d58c;color:#755218;font-size:13px}
.stats article{background:white;position:relative;overflow:hidden;border:1px solid var(--line);box-shadow:0 5px 20px #36227705}
.stats article:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:#8b5cf6}
.stats article:nth-child(2):before{background:#ff9b55}.stats article:nth-child(3):before{background:#4263ff}.stats article:nth-child(4):before{background:#13b69c}
.stats span{color:#636a84;font-weight:650}.stats strong{color:#5231ac}.stats article:nth-child(2) strong{color:#aa5318}.stats article:nth-child(3) strong{color:#2c4be1}.stats article:nth-child(4) strong{color:#087f6d}.stats small{color:#646d86}
.panel,.result-block{background:#fff;border-color:var(--line);box-shadow:0 6px 25px #36227706}
.primary{background:linear-gradient(110deg,#7629e1,#4263ef);box-shadow:0 5px 14px #6d28d924;transition:filter .15s,box-shadow .15s}
.primary:hover:not(:disabled){filter:brightness(1.07);box-shadow:0 7px 18px #6d28d939}
.subtle{background:#f7f5ff;border-color:#ddd5f7;color:#6743a0}.subtle:hover:not(:disabled){background:#eee7ff}
.photo-picker{background:linear-gradient(135deg,#f0eaff,#e9f7ff);border-color:#b9a4ee;color:#624098}.photo-picker small{color:#71738b}
label{color:#555e7a;font-size:12px}input,textarea,select{border-color:#d8dcf0;border-radius:10px;font-size:13px;background:#fcfcff}
input::placeholder,textarea::placeholder{color:#8189a2}input:focus,textarea:focus,select:focus{outline:2px solid #9572ef;border-color:#9572ef;background:white}
.input-help{color:#69718a}.flow-steps span{background:#eee7ff;border:0;color:#7243cd;font-weight:750;width:36px;height:36px}
.flow-steps div:nth-child(2) span{background:#e0eeff;color:#2867c8}.flow-steps div:nth-child(3) span{background:#d8f7ef;color:#087f6d}.flow-steps div:nth-child(4) span{background:#fff0df;color:#a35f20}
.flow-steps small,.automation small{color:#64708a}.automation b{color:#513186}.empty{color:#78819b}
.product-meta,.job-meta{color:#66718e}.job-state{background:#eee6ff;color:#6837a7;font-weight:650}.job-error,#login-error{color:#ae3f36}
footer{color:#6a748f}#toast{background:#39205e;box-shadow:0 10px 25px #36227724}dialog{background:#f7f7ff}dialog::backdrop{background:#171334ad;backdrop-filter:blur(4px)}
.result-label{color:#7243b8}.checklist{background:#fff0d8;color:#76511b;border:1px solid #f4d59e}.login-card{box-shadow:0 20px 60px #35216d14}
button:focus-visible,a:focus-visible{outline:3px solid #b89af8;outline-offset:3px}
@media(max-width:650px){main>header{padding:20px 18px;gap:10px;border-radius:18px;flex-wrap:wrap}main>header h1{font-size:30px}.pill{padding:6px 10px}.stats span{font-size:9px}.flow-steps small{font-size:9px}aside .brand-small{color:#d0c9ef}}
.import-box{padding:20px;border-radius:20px;background:linear-gradient(135deg,#e9dcff,#dcfff7);margin-bottom:20px}.import-box small{display:block;margin-top:12px;line-height:1.5;color:#3c3464}.import-box p{font-size:13px;line-height:1.5}.visual-notice{padding:16px 20px;background:#eee8ff;border-radius:14px;line-height:1.6;color:#41316d}.visual-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.visual-editor label{margin:0}.visual-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}.visual-card{background:#f4f0fc;border-radius:18px;padding:12px;min-width:0}.visual-card:first-child{grid-column:1/-1}.visual-card img{width:100%;height:auto;border-radius:12px}.visual-card:first-child img{width:100%;max-width:360px;display:block;margin:0 auto}.visual-card p{font-size:13px;color:#625777}.visual-card .download{font-size:13px;display:block;text-align:center}#v-status{line-height:1.6}#result-dialog{max-width:1100px}@media(max-width:750px){.visual-editor,.visual-grid{grid-template-columns:1fr}.visual-card:first-child{grid-column:auto}.product-row{flex-direction:column;align-items:flex-start}.row-actions{flex-wrap:wrap}.visual-notice{font-size:13px}}
