@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');
:root{font-family:Nunito,system-ui,sans-serif;color:#27213e;background:#fbf9ff}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 10% 20%,#fff0e9 0,transparent 30%),radial-gradient(circle at 85% 10%,#eae4ff 0,transparent 32%),#fbf9ff}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #8e6aff;outline-offset:3px}.hidden{display:none!important}header{max-width:1180px;margin:auto;padding:25px 28px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:900;font-size:23px;letter-spacing:-1px;display:flex;gap:11px;align-items:center}.brand b{color:#825bea}.logo{background:#865ef6;color:white;border-radius:14px;padding:5px 13px;font-size:28px;box-shadow:0 6px 14px #8b6ff644}main{max-width:1180px;margin:0 auto;padding:18px 28px;min-height:calc(100vh - 150px)}.intro{text-align:center;margin:40px auto}.eyebrow{color:#9565ed;font-weight:900;font-size:12px;letter-spacing:2px}.intro h1{font-size:clamp(32px,5vw,54px);margin:14px 0;letter-spacing:-2px}.intro p,.panel p{color:#817b94}.profiles{display:grid;grid-template-columns:1fr 1fr;gap:26px;max-width:850px;margin:42px auto}.profile{border:2px solid transparent;min-height:310px;border-radius:30px;padding:30px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;transition:transform .2s,box-shadow .2s}.profile:hover{transform:translateY(-5px);box-shadow:0 18px 30px #6d52a622}.profile.petit{background:#fff0e8;border-color:#ffdbce}.profile.grand{background:#ede9ff;border-color:#dcd4ff}.avatar{font-size:75px;background:#fff9;border-radius:50%;height:125px;width:125px;display:grid;place-items:center}.profile strong{font-size:27px;font-weight:900}.profile small{font-size:15px;color:#746e86}.arrow{font-weight:900;color:#8a5ae5;margin-top:12px}.panel{background:white;border:1px solid #eee9fa;border-radius:26px;box-shadow:0 12px 40px #4431780b}.narrow{max-width:440px;margin:65px auto;padding:38px;text-align:center}.heroicon{font-size:64px}.narrow h1{font-size:28px}.narrow form{text-align:left}.narrow label{display:block;font-weight:800;margin:22px 0 8px}input,textarea{width:100%;border:2px solid #e8e3f3;border-radius:15px;padding:14px 16px;background:#fdfcff;outline:none}textarea{resize:vertical;min-height:110px}.primary{background:linear-gradient(120deg,#8c61f5,#6b51e5);color:white;border:0;border-radius:15px;font-weight:900;padding:15px 20px;width:100%;margin-top:18px;box-shadow:0 9px 18px #8c61f533}.primary:disabled{opacity:.55;cursor:wait}.subtle{border:0;background:#ffffffaa;color:#63577e;padding:10px 16px;border-radius:14px;font-weight:800}.studioTop{display:flex;justify-content:space-between;align-items:center;margin:10px 0 22px;gap:8px}.studioTop span{font-weight:900;color:#7e59dc}.workspace{display:grid;grid-template-columns:minmax(320px,.87fr) minmax(0,1.13fr);gap:22px}.editor{padding:32px}.editor h1{font-size:clamp(26px,3vw,38px);line-height:1.15;margin:13px 0 8px}.editor p{margin:0 0 22px}.voice{display:flex;align-items:center;gap:12px;margin:14px 0 25px;color:#89829a;font-weight:700}.mic{background:#f3ecff;border:0;border-radius:15px;font-size:25px;padding:10px 15px}.mic.listening{background:#ffdae2;animation:pulse 1s infinite}.styleHeading{font-weight:900;margin-bottom:12px}.styles{display:flex;flex-wrap:wrap;gap:9px}.style{border:2px solid #eee8fa;background:white;border-radius:13px;padding:10px 12px;font-weight:800;color:#746a89}.style.active{border-color:#8e68e8;background:#f4efff;color:#7650dc}.large{font-size:17px;margin-top:26px}.result{min-height:550px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;overflow:hidden;background:radial-gradient(circle at center,#faf4ff,#fff)}#placeholder{text-align:center;max-width:310px}.sparkle{font-size:92px;color:#a184ef;text-shadow:0 9px 25px #c9b8ff}.result h2{font-size:25px;line-height:1.25}.doodles{font-size:30px;margin-top:35px}#image{width:100%;max-height:600px;object-fit:contain;border-radius:16px}#imageActions{display:flex;gap:12px;margin-top:17px;flex-wrap:wrap;justify-content:center}.action{border:1px solid #e5ddf4;border-radius:13px;background:white;padding:11px 15px;color:#68558d;text-decoration:none;font-weight:800}.galleryGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}.tile{border:1px solid #e9e2f3;border-radius:18px;overflow:hidden;background:white;padding:0;text-align:left}.tile img{width:100%;aspect-ratio:1;object-fit:cover}.tile span{display:block;padding:12px;font-weight:800;font-size:13px}.galleryGrid>p{color:#79718e}#status{font-size:14px;font-weight:800;margin-top:14px;color:#7652cf;min-height:18px}footer{text-align:center;color:#a6a0b4;padding:25px;font-size:12px}body.mode-petit .primary{background:linear-gradient(120deg,#ff8b86,#f16ba4)}body.mode-petit .style.active{border-color:#f79ca6;background:#fff0f3;color:#d65d7d}body.mode-petit .eyebrow{color:#ee7b97}@keyframes pulse{50%{transform:scale(1.1)}}@media(max-width:750px){header{padding:18px}main{padding:10px 16px}.profiles,.workspace{grid-template-columns:1fr}.profile{min-height:225px}.intro{margin:22px auto}.profiles{margin:25px auto}.editor{padding:24px}.result{min-height:360px}.studioTop{font-size:13px}.studioTop .subtle{padding:10px}.brand{font-size:19px}}
@media print{header,.editor,.studioTop,footer,#imageActions{display:none!important}.workspace{display:block}.result{border:0;box-shadow:none;min-height:0}#image{max-height:95vh}}

/* V1.4: vector icons independent of emoji fonts */
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:1.25em;height:1.25em;display:inline-block;vertical-align:-.22em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.logo{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0}
.logo .icon{width:27px;height:27px}
.avatar .icon{width:70px;height:70px;stroke-width:1.35;color:#8a5ae5}
.profile.petit .avatar .icon{color:#ef799e}
.sparkle .icon{width:90px;height:90px;stroke-width:1.1}
.doodles{display:flex;justify-content:center;gap:22px;color:#ac88f0}
.doodles .icon{width:32px;height:32px}
.style,.action,.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.style .icon{width:19px;height:19px}
.mic{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;padding:0}
.mic .icon{width:26px;height:26px}
#imageActions .action{min-height:46px}
@media(max-width:430px){.style{padding:10px}.styles{gap:8px}}

/* Distinct, more mature visual identity for Grand Créateur */
body:not(.mode-petit) .studioTop span{color:#37517b}
body:not(.mode-petit) .editor .eyebrow{color:#5375a7}
body:not(.mode-petit) .primary{background:linear-gradient(120deg,#315b99,#26365d);box-shadow:0 9px 18px #315b9933}
body:not(.mode-petit) .style.active{border-color:#5177a6;background:#eaf1fa;color:#254b7a}
body:not(.mode-petit) .result{background:radial-gradient(circle at center,#f0f4fa,#fff)}
