.provider-switch{display:flex;border:1px solid #ded9ed;border-radius:9px;padding:3px;background:#f8f6fd;gap:3px}.provider-btn{border:0;border-radius:6px;background:transparent;color:#746989;padding:7px 13px;font-weight:600;font-size:12px}.provider-btn.active{background:#7659df;color:white}.demo-switch{display:flex;align-items:center;gap:7px;font-size:12px;color:#746989}.demo-switch input{width:auto}.provider-switch button:hover{background:#e9e1fa}.provider-switch button.active:hover{background:#6144c5}@media(max-width:640px){.demo-switch{font-size:10px}.provider-btn{padding:6px 8px}.topbar{gap:8px}}
:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#242236;background:#f6f6fa;font-synthesis:none;--primary:#7659df;--muted:#777589;--border:#e7e6ee;--shadow:0 8px 30px #20203908;--radius:16px}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}input,select,textarea{width:100%;border:1px solid #dad8e5;border-radius:9px;padding:11px 12px;color:#2a263d;background:white;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #7659df14}textarea{resize:vertical;min-height:110px;line-height:1.6}input[type=checkbox]{width:auto;accent-color:var(--primary)}input[type=color]{padding:4px;height:43px}input[type=file]{font-size:12px}svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.2;margin-bottom:12px}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:16px;margin-bottom:9px}p{line-height:1.65}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);border-radius:9px;padding:10px 15px;background:white;color:#393349;font-weight:600;font-size:13px;white-space:nowrap}.btn:hover{background:#f3f0fd;border-color:#c9bdec}.btn.primary{color:white;background:var(--primary);border-color:var(--primary)}.btn.primary:hover{background:#6144c5}.btn.danger{color:#b52e52}.btn.ghost{background:transparent}.btn.sm{padding:7px 10px;font-size:12px}.row{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.gap{gap:20px}.stack{display:grid;gap:16px}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;background:#f0eef8;border-radius:6px;color:#6851ad;font-size:11px;font-weight:600}.pill.green{background:#e7f6ef;color:#24855d}.pill.orange{background:#fff3e3;color:#aa6924}.pill.red{background:#fdeaf0;color:#ba3d62}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.badge{font-size:10px;letter-spacing:.4px;padding:3px 7px;border-radius:4px;background:#eeeaf9;color:#7d6aab}.panel{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.notice{padding:14px 16px;background:#f1edfd;border:1px solid #e4dbfc;color:#64508e;border-radius:10px;font-size:13px;line-height:1.6}.notice.warn{background:#fff5e9;border-color:#f9dfbe;color:#946735}.empty{padding:42px 25px;text-align:center;border:1px dashed #dcd8e9;border-radius:12px;background:#fdfcfe}.empty svg{width:35px;height:35px;color:#aea2c9;margin-bottom:12px}.empty p{font-size:13px;color:var(--muted);max-width:480px;margin:0 auto 20px}.empty h3{margin-bottom:8px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:block;font-size:12px;font-weight:600;color:#5a526d}.field>span{display:block;margin-bottom:7px}.field input,.field select,.field textarea{font-weight:400}.field.full{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px;font-size:12px;color:#625b72}.form-section{padding-top:23px;margin-top:23px;border-top:1px solid var(--border)}.form-section h3{font-size:13px}.boot{height:100vh;display:grid;place-content:center;justify-items:center;color:var(--muted)}.boot img{width:44px;height:44px;margin-bottom:20px}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:230px;background:#181629;color:#b9b5cd;padding:25px 16px;overflow-y:auto;z-index:20;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 10px;color:white;line-height:1.3;font-weight:700;font-size:16px;letter-spacing:.6px}.brand img{width:34px;height:34px}.brand small{display:block;font-size:10px;font-weight:500;color:#a19ab5;letter-spacing:1.8px;margin-top:4px}.nav-label{font-size:9px;text-transform:uppercase;letter-spacing:1.5px;color:#736d89;padding:24px 13px 9px;font-weight:700}.nav-item{display:flex;align-items:center;gap:11px;font-size:12px;padding:10px 12px;border-radius:8px;transition:background .15s}.nav-item:hover{background:#26233a;color:white}.nav-item.active{background:#312848;color:#ede6ff}.nav-item svg{width:17px;height:17px}.nav-item .app-dot{width:7px;height:7px;border-radius:2px;flex-shrink:0;margin:0 5px}.sidebar-footer{margin-top:auto;padding-top:24px}.identity{background:#242136;border:1px solid #353045;border-radius:10px;padding:12px;display:flex;gap:9px;font-size:12px}.avatar{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:8px;background:#645187;color:#ece3ff;font-weight:700}.identity small{display:block;color:#827991;font-size:10px;margin-top:3px}.shell{margin-left:230px}.topbar{height:78px;padding:0 38px;background:#ffffffdd;backdrop-filter:blur(14px);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:15}.breadcrumb{font-size:12px;color:#8c889c;display:flex;gap:9px;align-items:center}.breadcrumb strong{color:#393348;font-weight:500}.top-actions{display:flex;align-items:center;gap:20px}.budget{font-size:11px;color:#787087;width:140px}.budget .bar{height:4px;background:#eee9f7;border-radius:4px;margin-top:7px;overflow:hidden}.budget .bar>span{height:100%;display:block;background:var(--primary)}.icon-btn{padding:7px;background:none;border:0;color:#7e778f}.menu-btn{display:none}.main{max-width:1450px;margin:auto;padding:32px 38px 60px}.page-heading{margin-bottom:28px}.page-heading p{font-size:13px;color:var(--muted);margin:0}.hero{padding:35px 37px;border-radius:18px;background:#eeebf9;border:1px solid #e7e1f5;position:relative;overflow:hidden;margin-bottom:26px;display:flex;justify-content:space-between;gap:25px}.hero .eyebrow{color:#8a72b0;margin-bottom:15px}.hero h1{font-size:34px;font-weight:650;max-width:570px}.hero p{font-size:13px;color:#80718f;max-width:520px;margin-bottom:22px}.hero-art{position:relative;width:225px;flex-shrink:0;display:grid;place-items:center}.orbit{width:160px;height:160px;border:1px solid #d3c9e9;border-radius:50%;position:relative;display:grid;place-items:center;transform:rotate(-12deg)}.orbit:after{content:"";position:absolute;inset:-22px;border:1px dashed #d8ceec;border-radius:50%}.film{z-index:1;width:112px;height:88px;background:#7860d4;border:5px solid #f7f4ff;border-radius:14px;box-shadow:0 14px 30px #7d60b12a;display:grid;place-items:center;color:white}.film svg{width:34px;height:34px;stroke-width:1.4}.floating{position:absolute;z-index:2;padding:10px 13px;background:white;border-radius:9px;box-shadow:0 5px 18px #48335e10;font-size:10px;color:#675287}.floating.one{top:15px;left:-10px;transform:rotate(-6deg)}.floating.two{right:-13px;bottom:18px;transform:rotate(5deg)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:34px}.stat{background:white;border:1px solid var(--border);border-radius:12px;padding:20px}.stat .label{display:flex;align-items:center;justify-content:space-between;color:#8a8498;font-size:11px}.stat .label svg{width:17px;height:17px;color:#a99dbd}.stat .value{font-size:26px;font-weight:650;letter-spacing:-.7px;margin:14px 0 5px}.stat .hint{font-size:10px;color:#a29bae}.section-heading{margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:15px}.section-heading h2{margin:0}.filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}.filter{font-size:11px;padding:7px 12px;border:1px solid transparent;color:#9690a1;background:transparent;border-radius:7px;cursor:pointer}.filter.active{background:white;border-color:var(--border);color:#574563;box-shadow:0 2px 5px #00000003}.search{max-width:220px;font-size:12px;padding:9px 12px}.app-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.app-card{padding:22px;background:white;border:1px solid var(--border);border-radius:13px;transition:box-shadow .2s,border-color .2s}.app-card:hover{box-shadow:0 10px 28px #67598d12;border-color:#d7cee8}.app-icon{width:39px;height:39px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--color) 12%,white);color:var(--color);margin-bottom:17px}.app-icon svg{width:21px;height:21px}.app-card h3{font-size:14px;margin-bottom:7px}.app-card p{color:#95909e;font-size:11px;line-height:1.6;min-height:35px;margin-bottom:18px}.card-bottom{border-top:1px solid #f2f0f6;padding-top:14px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#a7a0af}.card-link{display:flex;align-items:center;gap:5px;color:#796295;font-weight:600;font-size:11px}.card-link svg{width:13px;height:13px}.recent{margin-top:34px}.project-list{display:grid;gap:9px}.project-row{display:flex;align-items:center;gap:14px;padding:16px;background:white;border:1px solid var(--border);border-radius:11px}.project-row .app-icon{width:35px;height:35px;margin:0}.project-row .details{flex:1;min-width:0}.project-row h3{font-size:13px;margin:0 0 5px}.project-row small{font-size:10px;color:#9b92a6}.project-row>svg{color:#aaa0b6;width:15px;height:15px}.studio-head{display:flex;justify-content:space-between;gap:18px;margin-bottom:22px}.studio-head .app-icon{margin:0;width:54px;height:54px}.studio-head p{font-size:12px}.timeline{display:flex;gap:0;overflow-x:auto;padding:16px 5px 23px;margin-bottom:12px}.step{min-width:86px;flex:1;text-align:center;position:relative;color:#b4a9be;font-size:10px}.step:before{content:"";position:absolute;top:12px;left:0;right:0;height:1px;background:#e4ddeb;z-index:0}.step:first-child:before{left:50%}.step:last-child:before{right:50%}.step .step-dot{position:relative;z-index:1;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;margin:0 auto 8px;background:#f6f3fa;border:1px solid #e5dfec;font-size:10px}.step.done{color:#8760bf}.step.done .step-dot{background:#efe7f8;border-color:#d7c3ed}.step.current{font-weight:700;color:#7650b9}.step.current .step-dot{background:#7659df;color:white;border-color:#7659df}.tabs{display:flex;gap:18px;border-bottom:1px solid var(--border);margin-bottom:22px}.tab{border:0;border-bottom:2px solid transparent;background:none;padding:13px 1px;color:#9a8da9;font-size:12px}.tab.active{color:#67498b;border-bottom-color:var(--primary);font-weight:650}.scenes{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}.scene{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.scene-preview{height:auto;aspect-ratio:16/9;background:#f1edf7;display:grid;place-items:center;position:relative}.scene-preview img,.scene-preview video{width:100%;height:100%;object-fit:contain}.scene-preview>.placeholder{color:#b4a6c5;text-align:center;font-size:11px}.scene-preview .scene-num{position:absolute;top:10px;left:10px;background:#ffffffdd;border-radius:5px;padding:4px 7px;font-size:10px;color:#7c6696}.scene-fields{padding:18px;display:grid;gap:12px}.scene-fields label{font-size:10px}.scene-fields input,.scene-fields textarea{font-size:12px}.scene-fields textarea{min-height:75px}.scene-fields .prompt{font-size:10px;color:#a291b2;line-height:1.6}.outputs{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.output video{display:block;width:auto;max-width:100%;height:auto;max-height:78vh;margin:0 auto;border-radius:9px;background:#181629}   /* 28/11 : le lecteur épouse la vidéo (16:9, 9:16…), plus de bandes noires latérales */.output a{margin-top:12px}.media-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.media-card{border:1px solid var(--border);background:white;border-radius:12px;overflow:hidden}.media-preview{height:150px;background:#f1edf7;display:grid;place-items:center;color:#9880b0}.media-preview img,.media-preview video{width:100%;height:100%;object-fit:contain}.media-preview svg{width:32px;height:32px}.media-caption{padding:14px}.media-caption h3{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-caption p{font-size:10px;margin:0;color:var(--muted)}.copy-card{background:#faf8fe;border:1px solid #e9e2f1;border-radius:10px;padding:17px;margin-bottom:15px}.copy-card p{white-space:pre-wrap;font-size:13px}.brand-card{display:flex;gap:14px;align-items:center;background:white;padding:20px;border:1px solid var(--border);border-radius:12px}.brand-swatch{width:44px;height:44px;border-radius:10px}.diagnostic-row{padding:14px 0;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.diagnostic-row:last-child{border:0}.upload-list{display:grid;gap:5px;margin-top:8px;font-weight:400;font-size:10px;color:#8b789d}.login{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 20% 15%,#e8e1f7,transparent 60%),#f6f4fa}.login-card{width:100%;max-width:405px;padding:36px;background:white;border:1px solid #e6dfee;border-radius:20px;box-shadow:0 20px 80px #71618015}.login-card img{width:43px;height:43px;margin-bottom:22px}.login-card h1{font-size:26px}.login-card p{font-size:12px;color:#998ca5}.login-card .btn{width:100%;margin-top:19px}dialog{width:min(730px,95vw);max-height:90vh;border:1px solid #e2daee;border-radius:18px;padding:0;color:#393044;background:white;box-shadow:0 30px 100px #17112c30}dialog::backdrop{background:#18102966;backdrop-filter:blur(3px)}.dialog-head{position:sticky;top:0;background:white;padding:22px 26px;border-bottom:1px solid var(--border);z-index:2}.dialog-head h2{margin:0;font-size:20px}.dialog-body{padding:24px 26px}.dialog-footer{position:sticky;bottom:0;background:white;border-top:1px solid var(--border);padding:16px 26px;display:flex;justify-content:space-between;gap:14px;align-items:center}.cost-estimate{font-size:11px;color:#8c7f9f}.cost-estimate strong{font-size:16px;color:#6e528f;display:block;margin-top:4px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);z-index:100;background:#282037;color:white;border-radius:10px;padding:12px 20px;font-size:12px;max-width:90vw;box-shadow:0 10px 40px #0002;opacity:0;transition:.2s;pointer-events:none}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast.error{background:#963352}.chart{display:flex;align-items:end;height:80px;gap:8px;padding-top:12px}.chart .column{flex:1;background:#d9ccec;min-height:3px;border-radius:3px 3px 0 0}.metadata{background:#f5f1fa;border-radius:8px;padding:10px 13px;font-size:11px;color:#8d7b9d}.footer-note{font-size:10px;color:#aaa0b4;text-align:center;margin-top:40px}.error-box{color:#a34862;background:#fff0f4;border:1px solid #f4d1dd;padding:14px;border-radius:10px;font-size:12px;white-space:pre-wrap;line-height:1.5}
@media(min-width:1500px){.app-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:1150px){.app-grid{grid-template-columns:repeat(2,1fr)}.media-grid{grid-template-columns:repeat(3,1fr)}.main{padding:26px}.topbar{padding:0 26px}.hero-art{width:160px}.hero h1{font-size:29px}.stats{gap:10px}.stat{padding:16px}.stat .value{font-size:22px}}@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:.2s;width:230px;box-shadow:15px 0 40px #0001}.sidebar.open{transform:translateX(0)}.shell{margin:0}.menu-btn{display:block}.topbar{height:65px;padding:0 18px}.top-actions{gap:10px}.breadcrumb{font-size:10px}.budget{width:105px;font-size:10px}.main{padding:23px 18px}.hero{padding:25px}.hero-art{display:none}.hero h1{font-size:28px}.stats{grid-template-columns:1fr 1fr}.app-grid{grid-template-columns:1fr 1fr}.scenes,.grid2,.outputs{grid-template-columns:1fr}.media-grid{grid-template-columns:1fr 1fr}.studio-head{flex-wrap:wrap}.studio-head h1{font-size:25px}.panel{padding:19px}.tabs{gap:12px}.section-heading .search{max-width:145px}.project-row{gap:9px}.form-grid{grid-template-columns:1fr 1fr}.dialog-body{padding:20px}.dialog-head,.dialog-footer{padding:17px 20px}}@media(max-width:480px){.app-card{padding:17px}.app-card p{font-size:10px;min-height:47px}.card-bottom{flex-wrap:wrap;gap:10px}.top-actions>.pill{display:none}.hero{padding:22px}.hero h1{font-size:25px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.scene-preview{height:auto}.section-heading{align-items:start}.media-grid{gap:10px}.dialog-footer{flex-wrap:wrap}.timeline .step{min-width:72px}.studio-head>.row.wrap{gap:7px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:600px){.topbar{padding:0 12px;gap:8px}.topbar .breadcrumb,.topbar .budget{display:none}.top-actions{gap:9px}.section-heading{flex-wrap:wrap}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.main,.panel,.app-card,.scene-fields{min-width:0}.tabs{flex-wrap:wrap;gap:12px}.outputs .output img{max-width:100%}.hero h1{overflow-wrap:break-word}.project-row .details{overflow-wrap:anywhere}}
