Spaces:
Sleeping
Sleeping
| /* Assistance IA Télécom — Flask Premium CSS */ | |
| @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap'); | |
| /* ── Light theme ── */ | |
| :root { | |
| --bg:#f4f3f8; --bg2:#ffffff; --txt:#1b1340; --txt2:#6e6b7b; --txt3:#9490ad; | |
| --acc:#5b4cdb; --acc2:#8b7ff5; --acc-g:rgba(91,76,219,.22); --acc-s:#edeaff; | |
| --ubub:linear-gradient(135deg,#5b4cdb,#8b7ff5); | |
| --brd:#e4e2ec; --brd2:#d5d3e0; | |
| --shd:0 1px 3px rgba(27,19,64,.06); | |
| --shd2:0 8px 30px rgba(27,19,64,.08); | |
| } | |
| /* ── Dark theme ── */ | |
| body.dark { | |
| --bg:#0c0a1a; --bg2:#16132e; --txt:#eae7f8; --txt2:#a09cb5; --txt3:#6e6a85; | |
| --acc:#8b7ff5; --acc2:#a29bfe; --acc-g:rgba(139,127,245,.28); --acc-s:#1e1845; | |
| --ubub:linear-gradient(135deg,#6c5ce7,#a29bfe); | |
| --brd:#2a2550; --brd2:#352f60; | |
| --shd:0 1px 3px rgba(0,0,0,.15); | |
| --shd2:0 8px 30px rgba(0,0,0,.25); | |
| } | |
| /* ── Reset ── */ | |
| *{margin:0;padding:0;box-sizing:border-box} | |
| body{background:var(--bg);color:var(--txt);font-family:'DM Sans',sans-serif;min-height:100vh;overflow-x:hidden;transition:background .3s,color .3s} | |
| a{color:inherit;text-decoration:none} | |
| ::selection{background:var(--acc-s);color:var(--acc)} | |
| /* ── Topbar ── */ | |
| .topbar{ | |
| display:flex;align-items:center;justify-content:space-between; | |
| padding:12px 20px;border-bottom:1px solid var(--brd); | |
| background:var(--bg);position:sticky;top:0;z-index:50; | |
| backdrop-filter:blur(12px); | |
| } | |
| .topbar-title{font-family:'Outfit';font-size:15px;font-weight:600;color:var(--txt);letter-spacing:-.02em} | |
| .topbar-left{display:flex;align-items:center;gap:10px} | |
| .online-badge{font-size:11px;color:#10b981;font-weight:500;animation:pulse 2s infinite} | |
| @keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}} | |
| .hamburger{ | |
| width:36px;height:36px;border-radius:10px;border:1.5px solid var(--brd); | |
| background:var(--bg2);color:var(--txt);font-size:17px;font-weight:700; | |
| cursor:pointer;display:flex;align-items:center;justify-content:center; | |
| transition:all .2s; | |
| } | |
| .hamburger:hover{background:var(--acc);color:#fff;border-color:var(--acc)} | |
| /* ── Menu panel ── */ | |
| .menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:90;opacity:0;pointer-events:none;transition:opacity .25s} | |
| .menu-overlay.open{opacity:1;pointer-events:auto} | |
| .menu-panel{ | |
| position:fixed;top:0;right:-290px;width:270px;height:100%;z-index:100; | |
| background:var(--bg2);border-left:1px solid var(--brd); | |
| box-shadow:-8px 0 30px rgba(0,0,0,.12);padding:24px 16px; | |
| transition:right .3s cubic-bezier(.4,0,.2,1);overflow-y:auto; | |
| } | |
| .menu-panel.open{right:0} | |
| .menu-profile{display:flex;align-items:center;gap:12px;margin-bottom:10px} | |
| .menu-avatar{ | |
| width:42px;height:42px;border-radius:50%;background:var(--ubub); | |
| color:#fff;display:flex;align-items:center;justify-content:center; | |
| font-weight:600;font-size:17px;box-shadow:0 3px 12px var(--acc-g); | |
| } | |
| .menu-avatar.big{width:52px;height:52px;font-size:20px} | |
| .menu-email{color:var(--txt3);font-size:11px} | |
| .menu-item{ | |
| display:block;padding:9px 12px;border-radius:10px;font-size:13px; | |
| color:var(--txt);cursor:pointer;border:none;background:none; | |
| width:100%;text-align:left;font-family:inherit;transition:background .15s; | |
| } | |
| .menu-item:hover{background:var(--acc-s)} | |
| .menu-item.active{background:var(--acc-s);color:var(--acc);font-weight:600} | |
| .menu-item.logout{color:#ef4444} | |
| .menu-panel hr{border:none;border-top:1px solid var(--brd);margin:10px 0} | |
| /* ── Welcome screen ── */ | |
| .welcome{ | |
| text-align:center;padding:10vh 24px 4vh;animation:fadeIn .6s ease; | |
| position:relative;overflow:hidden; | |
| } | |
| .welcome-glow{ | |
| position:absolute;top:-60%;left:-30%; | |
| width:160%;height:160%; | |
| background:radial-gradient(ellipse at 30% 50%, var(--acc-g) 0%, transparent 50%), | |
| radial-gradient(ellipse at 70% 60%, rgba(91,76,219,0.08) 0%, transparent 50%); | |
| animation:glowMove 8s ease-in-out infinite alternate; | |
| pointer-events:none;z-index:0; | |
| } | |
| @keyframes glowMove{ | |
| 0%{transform:translate(0,0) scale(1)} | |
| 50%{transform:translate(30px,-20px) scale(1.1)} | |
| 100%{transform:translate(-20px,15px) scale(0.95)} | |
| } | |
| .welcome-content{position:relative;z-index:1} | |
| .welcome-logo-wrap{position:relative;display:inline-block;margin-bottom:20px} | |
| .welcome-logo{ | |
| width:64px;height:64px;border-radius:18px; | |
| box-shadow:0 8px 28px var(--acc-g); | |
| position:relative;z-index:1; | |
| } | |
| .welcome-pulse{ | |
| position:absolute;top:50%;left:50%; | |
| width:80px;height:80px;border-radius:22px; | |
| transform:translate(-50%,-50%); | |
| background:var(--acc);opacity:0; | |
| animation:logoPulse 3s ease-in-out infinite; | |
| z-index:0; | |
| } | |
| @keyframes logoPulse{ | |
| 0%{opacity:0.3;transform:translate(-50%,-50%) scale(0.8)} | |
| 50%{opacity:0;transform:translate(-50%,-50%) scale(1.3)} | |
| 100%{opacity:0;transform:translate(-50%,-50%) scale(1.3)} | |
| } | |
| .welcome h2{font-family:'Outfit';font-size:1.5rem;font-weight:600;color:var(--txt);margin-bottom:8px;letter-spacing:-.03em} | |
| .welcome p{color:var(--txt2);font-size:14px;line-height:1.6;margin-bottom:4px} | |
| .welcome-features{ | |
| display:flex;flex-wrap:wrap;justify-content:center;gap:8px; | |
| margin:16px 0 20px; | |
| } | |
| .welcome-features span{ | |
| font-size:11px;color:var(--txt2); | |
| background:var(--bg2);border:1px solid var(--brd); | |
| padding:4px 10px;border-radius:20px; | |
| transition:all 0.2s; | |
| } | |
| .welcome-features span:hover{color:var(--acc);border-color:var(--acc);background:var(--acc-s)} | |
| .welcome-footer{font-size:10px;color:var(--txt3);margin-top:20px} | |
| .suggestions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:24px} | |
| .chip{ | |
| padding:8px 16px;background:var(--bg2);border:1px solid var(--brd); | |
| border-radius:20px;font-size:13px;color:var(--txt2);cursor:pointer; | |
| font-family:inherit;transition:all .2s;box-shadow:var(--shd); | |
| } | |
| .chip:hover{background:var(--acc-s);color:var(--acc);border-color:var(--acc);transform:translateY(-1px)} | |
| @keyframes fadeIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}} | |
| /* ── Messages ── */ | |
| .messages{flex:1;overflow-y:auto;padding:16px 16px 110px;scroll-behavior:smooth} | |
| .msg-row{display:flex;margin-bottom:12px;animation:msgIn .35s ease} | |
| .msg-row.user-row{justify-content:flex-end;padding-left:20%} | |
| .msg-row.bot-row{justify-content:flex-start;align-items:flex-start;gap:8px;padding-right:10%} | |
| .msg-avatar{ | |
| width:28px;height:28px;border-radius:50%;background:var(--ubub); | |
| display:flex;align-items:center;justify-content:center; | |
| font-size:11px;flex-shrink:0;margin-top:4px; | |
| box-shadow:0 2px 10px var(--acc-g); | |
| } | |
| .msg-bubble{ | |
| padding:10px 14px;font-size:14px;line-height:1.55;word-wrap:break-word;max-width:100%; | |
| transition:background .3s; | |
| } | |
| /* Reduce spacing of <br> tags inside bot bubbles */ | |
| .bot-bubble br{content:'';display:block;margin:4px 0} | |
| .user-bubble{ | |
| background:var(--ubub);color:#fff; | |
| border-radius:18px 18px 4px 18px; | |
| box-shadow:0 3px 12px var(--acc-g); | |
| } | |
| .bot-bubble{ | |
| background:var(--bg2);color:var(--txt); | |
| border-radius:18px 18px 18px 4px; | |
| border:1px solid var(--brd);box-shadow:var(--shd); | |
| } | |
| .bot-bubble strong{color:var(--acc);font-weight:600} | |
| .bot-bubble em{font-style:italic;color:var(--txt2)} | |
| .bot-bubble a{color:var(--acc);text-decoration:none;border-bottom:1px dashed var(--acc)} | |
| .bot-bubble a:hover{border-bottom-style:solid} | |
| /* Sources block styling */ | |
| .bot-bubble div[style*="padding-left"]{border-left:2px solid var(--acc-g);margin-left:4px} | |
| .audio-row{padding-left:36px;margin:-2px 0 8px} | |
| .audio-row audio{height:32px;border-radius:20px;max-width:220px;filter:opacity(0.7)} | |
| .audio-row audio:hover{filter:opacity(1)} | |
| /* Message meta (time + copy) */ | |
| .msg-content{max-width:100%;min-width:0} | |
| .msg-meta{display:flex;align-items:center;gap:8px;padding:3px 4px 0;opacity:.7} | |
| .msg-time{font-size:10px;color:var(--txt3)} | |
| .copy-btn{ | |
| background:none;border:none;cursor:pointer;font-size:12px; | |
| padding:2px 4px;border-radius:4px;transition:background .15s; | |
| } | |
| .copy-btn:hover{background:var(--acc-s)} | |
| /* React buttons */ | |
| .react-btn{ | |
| background:none;border:none;cursor:pointer;font-size:12px; | |
| padding:2px 4px;border-radius:4px;transition:all .2s; | |
| opacity:0.5; | |
| } | |
| .react-btn:hover{opacity:1;transform:scale(1.15)} | |
| .react-btn.reacted{opacity:1;background:var(--acc-s);border-radius:6px} | |
| /* Toast notification */ | |
| .toast{ | |
| position:fixed;bottom:80px;left:50%;transform:translateX(-50%) translateY(20px); | |
| background:var(--txt);color:var(--bg); | |
| padding:10px 20px;border-radius:12px;font-size:13px; | |
| box-shadow:0 6px 20px rgba(0,0,0,0.2); | |
| opacity:0;pointer-events:none;transition:all 0.3s ease; | |
| z-index:100;font-family:'DM Sans',sans-serif; | |
| } | |
| .toast.show{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto} | |
| .toast-error{background:#ef4444;color:#fff} | |
| .toast-warn{background:#f59e0b;color:#fff} | |
| .toast-success{background:#10b981;color:#fff} | |
| .typing-target{display:inline} | |
| /* Thinking indicator */ | |
| .typing-indicator{ | |
| display:flex;align-items:center;gap:10px; | |
| padding:10px 16px; | |
| } | |
| .thinking-dots{display:flex;gap:4px;align-items:center} | |
| .thinking-dots span{ | |
| display:block;width:7px;height:7px;border-radius:50%; | |
| background:var(--acc);animation:thinkPulse 1.4s infinite ease-in-out; | |
| } | |
| .thinking-dots span:nth-child(2){animation-delay:0.2s} | |
| .thinking-dots span:nth-child(3){animation-delay:0.4s} | |
| .thinking-text{ | |
| font-size:12px;color:var(--txt3);font-style:italic; | |
| animation:thinkFade 2s infinite; | |
| } | |
| @keyframes thinkPulse{ | |
| 0%,80%,100%{opacity:0.25;transform:scale(0.8)} | |
| 40%{opacity:1;transform:scale(1.2)} | |
| } | |
| @keyframes thinkFade{ | |
| 0%,100%{opacity:0.5} | |
| 50%{opacity:1} | |
| } | |
| .scroll-btn{ | |
| position:fixed;bottom:80px;right:20px; | |
| width:36px;height:36px;border-radius:50%; | |
| background:var(--bg2);border:1.5px solid var(--brd); | |
| color:var(--txt);font-size:14px;cursor:pointer; | |
| display:flex;align-items:center;justify-content:center; | |
| box-shadow:0 4px 14px rgba(27,19,64,0.12); | |
| z-index:42;transition:all 0.2s; | |
| animation:fadeIn 0.2s ease; | |
| } | |
| .scroll-btn:hover{background:var(--acc);color:#fff;border-color:var(--acc)} | |
| /* New conversation floating button */ | |
| .new-conv-btn{ | |
| position:fixed;bottom:80px;left:16px; | |
| width:42px;height:42px;border-radius:50%; | |
| background:var(--acc);border:none; | |
| color:#fff;font-size:22px;font-weight:700; | |
| cursor:pointer;display:flex;align-items:center;justify-content:center; | |
| box-shadow:0 4px 20px var(--acc-g); | |
| z-index:42;transition:all 0.25s; | |
| line-height:1;animation:floatBtn 3s ease-in-out infinite; | |
| } | |
| .new-conv-btn:hover{transform:scale(1.12) rotate(90deg);box-shadow:0 6px 28px var(--acc-g)} | |
| .new-conv-btn:active{transform:scale(0.92)} | |
| @keyframes floatBtn{ | |
| 0%,100%{transform:translateY(0)} | |
| 50%{transform:translateY(-4px)} | |
| } | |
| @keyframes msgIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}} | |
| /* ── Input bar ── */ | |
| .input-bar{ | |
| position:fixed;bottom:16px;left:50%;transform:translateX(-50%); | |
| width:calc(100% - 40px);max-width:700px; | |
| display:flex;align-items:center;gap:6px; | |
| padding:6px 8px 6px 14px;background:var(--bg2); | |
| border:1.5px solid var(--brd);border-radius:28px; | |
| box-shadow:var(--shd2);z-index:40; | |
| transition:border-color .2s,box-shadow .2s; | |
| } | |
| .input-bar:focus-within{border-color:var(--acc);box-shadow:var(--shd2),0 0 0 3px var(--acc-g)} | |
| .input-bar input{ | |
| flex:1;border:none;outline:none;font-size:15px;background:transparent; | |
| color:var(--txt);font-family:inherit;padding:8px 0;min-width:0; | |
| } | |
| .input-bar input::placeholder{color:var(--txt3)} | |
| .input-tools{display:flex;align-items:center;gap:2px;flex-shrink:0} | |
| #send-btn{ | |
| width:42px;height:42px;border-radius:50%;border:none; | |
| background:var(--ubub);color:#fff;cursor:pointer; | |
| display:flex;align-items:center;justify-content:center;flex-shrink:0; | |
| box-shadow:0 3px 14px var(--acc-g);transition:all .2s;touch-action:none; | |
| } | |
| #send-btn:hover{transform:scale(1.05)} | |
| /* Stop generation button */ | |
| .stop-btn{ | |
| width:42px;height:42px;border-radius:50%;border:none; | |
| background:#ef4444;cursor:pointer; | |
| display:flex;align-items:center;justify-content:center; | |
| flex-shrink:0;transition:all 0.15s; | |
| animation:stopPulse 1.5s ease-in-out infinite; | |
| } | |
| .stop-btn:hover{background:#dc2626;transform:scale(1.05)} | |
| @keyframes stopPulse{ | |
| 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0.3)} | |
| 50%{box-shadow:0 0 0 8px rgba(239,68,68,0)} | |
| } | |
| .status-hint{text-align:center;font-size:11px;color:var(--txt3);height:18px;position:fixed;bottom:2px;left:0;right:0;z-index:40} | |
| /* Tool buttons (attach, web) */ | |
| .attach-btn{background:none;border:none;font-size:18px;cursor:pointer;padding:4px;opacity:0.5;transition:opacity 0.2s} | |
| .attach-btn:hover{opacity:1} | |
| /* Web search toggle */ | |
| .web-btn{ | |
| background:none;border:1px solid var(--brd);font-size:14px;cursor:pointer; | |
| padding:2px 5px;border-radius:6px;opacity:0.4;transition:all 0.2s; | |
| } | |
| .web-btn:hover{opacity:1;border-color:var(--acc)} | |
| .web-btn.web-active{opacity:1;background:var(--acc-s);border-color:var(--acc)} | |
| /* Model dropdown (inside input bar, like Claude) */ | |
| .model-dropdown{position:relative} | |
| .model-current{ | |
| padding:4px 8px;border-radius:8px;border:1px solid var(--brd); | |
| background:var(--bg);color:var(--txt);font-size:16px; | |
| cursor:pointer;font-family:inherit;white-space:nowrap;transition:all 0.15s; | |
| line-height:1; | |
| } | |
| .model-current:hover{background:var(--acc-s);color:var(--acc);border-color:var(--acc)} | |
| .model-menu{ | |
| display:none;position:absolute;bottom:calc(100% + 8px);left:0; | |
| background:var(--bg2);border:1px solid var(--brd);border-radius:14px; | |
| box-shadow:0 8px 30px rgba(27,19,64,0.15);padding:6px;min-width:180px;z-index:50; | |
| } | |
| .model-menu.open{display:block;animation:fadeIn 0.15s ease} | |
| .model-menu button{ | |
| display:flex;align-items:center;gap:6px;width:100%; | |
| padding:8px 12px;border:none;background:none;border-radius:8px; | |
| font-size:13px;color:var(--txt);cursor:pointer;font-family:inherit; | |
| text-align:left;transition:background 0.1s; | |
| } | |
| .model-menu button:hover{background:var(--acc-s)} | |
| .model-menu button span{font-size:11px;color:var(--txt3);margin-left:auto} | |
| .file-preview{ | |
| position:fixed;bottom:76px;left:50%;transform:translateX(-50%); | |
| width:calc(100% - 40px);max-width:700px; | |
| display:flex;align-items:center;justify-content:space-between; | |
| padding:8px 14px;background:var(--acc-s);border:1px solid var(--brd); | |
| border-radius:14px;z-index:41;animation:fadeIn 0.2s ease; | |
| } | |
| .file-info{font-size:13px;color:var(--txt);overflow:hidden;text-overflow:ellipsis;white-space:nowrap} | |
| .file-remove{background:none;border:none;font-size:16px;cursor:pointer;color:var(--txt2);padding:4px 8px;border-radius:6px} | |
| .file-remove:hover{background:rgba(239,68,68,0.1);color:#ef4444} | |
| /* ── Login ── */ | |
| .login-body{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px;background:var(--bg)} | |
| .login-container{text-align:center;width:100%;max-width:420px;animation:fadeIn .5s ease} | |
| .login-logo{width:68px;height:68px;border-radius:18px;box-shadow:0 8px 24px var(--acc-g);margin-bottom:20px} | |
| .login-title{font-family:'Outfit';font-size:1.6rem;font-weight:700;color:var(--txt);margin-bottom:6px;letter-spacing:-.03em} | |
| .login-subtitle{color:var(--txt2);font-size:14px;margin-bottom:28px} | |
| .login-card{ | |
| background:var(--bg2);border:1px solid var(--brd);border-radius:22px; | |
| padding:28px;box-shadow:var(--shd2);text-align:left; | |
| } | |
| .form-label{text-align:center;font-weight:600;color:var(--txt);margin-bottom:16px;font-size:15px} | |
| .login-card input{ | |
| width:100%;padding:13px 16px;border:1.5px solid var(--brd);border-radius:14px; | |
| font-size:15px;background:var(--bg);color:var(--txt);margin-bottom:12px; | |
| font-family:inherit;outline:none;transition:border-color .2s,box-shadow .2s; | |
| } | |
| .login-card input:focus{border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-g)} | |
| .login-card input::placeholder{color:var(--txt3)} | |
| .btn-primary{ | |
| width:100%;padding:13px;background:var(--ubub);color:#fff;border:none; | |
| border-radius:14px;font-size:15px;font-weight:600;cursor:pointer; | |
| font-family:inherit;box-shadow:0 4px 14px var(--acc-g);transition:all .2s; | |
| } | |
| .btn-primary:hover{box-shadow:0 6px 24px var(--acc-g);transform:translateY(-1px)} | |
| .btn-link{background:none;border:none;color:var(--acc);font-size:13px;cursor:pointer;margin-top:16px;font-family:inherit;display:block;width:100%;text-align:center;transition:color .15s} | |
| .btn-link:hover{color:var(--acc2)} | |
| .error-msg{color:#ef4444;font-size:13px;margin-top:8px;text-align:center} | |
| .success-msg{color:#10b981;font-size:13px;margin-top:8px;text-align:center} | |
| .login-footer{color:var(--txt3);font-size:11px;margin-top:28px} | |
| /* Profile inputs */ | |
| .prof-input{ | |
| width:100%;padding:11px 14px;border:1.5px solid var(--brd);border-radius:12px; | |
| font-size:14px;font-family:inherit;background:var(--bg);color:var(--txt); | |
| transition:border-color .2s;box-sizing:border-box; | |
| } | |
| .prof-input:focus{border-color:var(--acc);outline:none;box-shadow:0 0 0 3px var(--acc-g)} | |
| /* ── Pages ── */ | |
| .page-content{padding:20px;max-width:700px;margin:0 auto;animation:fadeIn .4s ease} | |
| .page-header{text-align:center;padding:20px 0 12px} | |
| .page-header h2{font-family:'Outfit';font-size:1.35rem;font-weight:600;color:var(--txt)} | |
| .page-header p{color:var(--txt2);font-size:13px;margin-top:4px} | |
| .conv-card{background:var(--bg2);border:1px solid var(--brd);border-radius:14px;padding:14px 16px;margin:10px 0;transition:border-color .15s} | |
| .conv-card:hover{border-color:var(--acc)} | |
| .conv-title{font-weight:500;font-size:14px;color:var(--txt)} | |
| .conv-date{font-size:11px;color:var(--txt3);margin:3px 0 8px} | |
| .conv-actions{display:flex;gap:8px} | |
| .btn-sm{padding:5px 14px;border-radius:8px;font-size:12px;border:1px solid var(--brd);background:var(--bg);color:var(--txt);cursor:pointer;text-decoration:none;transition:all .15s;font-family:inherit} | |
| .btn-sm:hover{background:var(--acc-s);color:var(--acc)} | |
| .btn-sm.danger{color:#ef4444;border-color:#fecaca} | |
| .btn-sm.danger:hover{background:#fef2f2} | |
| .btn-secondary{padding:11px;border-radius:14px;border:1.5px solid var(--brd);background:transparent;color:var(--txt2);font-size:14px;cursor:pointer;font-family:inherit;transition:all .15s} | |
| .btn-secondary:hover{background:var(--acc-s);color:var(--acc);border-color:var(--acc)} | |
| .full-w{width:100%;display:block;margin-bottom:14px} | |
| .empty{text-align:center;padding:48px 20px;color:var(--txt3);font-size:14px} | |
| .settings-profile{display:flex;align-items:center;gap:14px;background:var(--acc-s);border-radius:16px;padding:14px;margin:14px 0} | |
| h3{font-family:'Outfit';font-size:14px;color:var(--txt);margin:20px 0 8px} | |
| #pdf-input{margin:10px 0;font-size:13px;color:var(--txt2)} | |
| .fb-label{font-size:14px;font-weight:500;color:var(--txt);display:block;margin:14px 0 8px} | |
| .stars{font-size:22px;margin-bottom:14px;cursor:pointer;user-select:none} | |
| textarea{width:100%;padding:12px;border:1.5px solid var(--brd);border-radius:14px;font-size:14px;resize:none;font-family:inherit;background:var(--bg);color:var(--txt);margin-bottom:14px;transition:border-color .2s} | |
| textarea:focus{border-color:var(--acc);outline:none;box-shadow:0 0 0 3px var(--acc-g)} | |
| .about-card{text-align:center;background:var(--bg2);border:1px solid var(--brd);border-radius:18px;padding:28px;margin:14px 0;box-shadow:var(--shd)} | |
| .about-logo{width:60px;border-radius:16px;margin-bottom:12px;box-shadow:0 4px 14px var(--acc-g)} | |
| .about-card h3{font-size:1.15rem;margin:0 0 6px} | |
| .badge{background:var(--acc-s);color:var(--acc);padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600} | |
| .about-section{padding:14px 0;border-bottom:1px solid var(--brd)} | |
| .about-section:last-child{border-bottom:none} | |
| .about-section h4{font-family:'Outfit';font-size:14px;color:var(--txt);margin-bottom:6px} | |
| .about-section p{color:var(--txt2);font-size:13px;line-height:1.7} | |
| /* ── Scrollbar ── */ | |
| ::-webkit-scrollbar{width:5px} | |
| ::-webkit-scrollbar-track{background:transparent} | |
| ::-webkit-scrollbar-thumb{background:var(--brd);border-radius:3px} | |
| /* ── Mobile ── */ | |
| @media(max-width:640px){ | |
| .topbar{padding:8px 12px} | |
| .topbar-title{font-size:12px} | |
| .topbar-left{gap:6px} | |
| .online-badge{font-size:9px} | |
| .hamburger{width:30px;height:30px;font-size:14px;border-radius:8px} | |
| .messages{padding:8px 8px 90px} | |
| .msg-row{margin-bottom:8px} | |
| .msg-row.user-row{padding-left:10%} | |
| .msg-row.bot-row{padding-right:3%;gap:5px} | |
| .msg-bubble{font-size:13px;padding:9px 12px;line-height:1.5;border-radius:14px 14px 14px 4px} | |
| .user-bubble{border-radius:14px 14px 4px 14px} | |
| .msg-avatar{width:22px;height:22px;font-size:8px;margin-top:2px} | |
| .audio-row{padding-left:27px;margin:-1px 0 4px} | |
| .audio-row audio{max-width:150px;height:26px} | |
| .msg-meta{padding:1px 2px 0;gap:4px} | |
| .msg-time{font-size:8px} | |
| .copy-btn{font-size:9px} | |
| .react-btn{font-size:10px;padding:1px 2px} | |
| /* INPUT BAR - clean mobile layout */ | |
| .input-bar{ | |
| width:calc(100% - 12px);padding:4px 4px 4px 10px; | |
| bottom:4px;border-radius:22px;gap:3px; | |
| } | |
| .input-bar input{font-size:16px;padding:5px 0} | |
| .model-current{font-size:10px;padding:3px 7px;border-radius:8px;white-space:nowrap} | |
| .model-menu{min-width:150px;bottom:calc(100% + 6px)} | |
| .model-menu button{padding:6px 10px;font-size:11px} | |
| .attach-btn{font-size:15px;padding:2px} | |
| .web-btn{font-size:12px;padding:1px 4px;border-radius:5px} | |
| #send-btn{width:36px;height:36px} | |
| .stop-btn{width:36px;height:36px} | |
| #send-btn svg{width:16px;height:16px} | |
| /* Welcome */ | |
| .welcome{padding:4vh 12px 2vh} | |
| .welcome h2{font-size:1.1rem} | |
| .welcome p{font-size:11px} | |
| .welcome-logo{width:48px;height:48px;border-radius:14px} | |
| .welcome-pulse{width:62px;height:62px;border-radius:18px} | |
| .welcome-features{gap:4px;margin:10px 0 12px} | |
| .welcome-features span{font-size:9px;padding:3px 7px} | |
| .suggestions{gap:4px;margin-top:10px} | |
| .chip{padding:5px 10px;font-size:10px;border-radius:14px} | |
| .welcome-footer{font-size:9px} | |
| /* Login */ | |
| .login-card{padding:18px} | |
| .login-logo{width:52px;height:52px} | |
| .login-title{font-size:1.2rem} | |
| .login-card input{padding:11px 12px;font-size:15px} | |
| /* Menu */ | |
| .menu-panel{width:230px;right:-240px;padding:16px 12px} | |
| .menu-item{padding:7px 10px;font-size:12px} | |
| .menu-avatar{width:36px;height:36px;font-size:14px} | |
| .menu-email{font-size:10px} | |
| /* Pages */ | |
| .page-content{padding:12px} | |
| .page-header h2{font-size:1.1rem} | |
| .status-hint{font-size:9px;bottom:0} | |
| /* Floating elements */ | |
| .file-preview{bottom:55px;padding:5px 8px;border-radius:10px} | |
| .file-info{font-size:10px} | |
| .scroll-btn{bottom:60px;right:10px;width:30px;height:30px;font-size:11px} | |
| .toast{bottom:60px;font-size:11px;padding:7px 14px} | |
| .new-conv-btn{bottom:62px;left:10px;width:32px;height:32px;font-size:16px} | |
| } | |
| /* ── Very small phones ── */ | |
| @media(max-width:380px){ | |
| .msg-row.user-row{padding-left:5%} | |
| .msg-bubble{font-size:12px;padding:7px 9px} | |
| .input-bar{padding:3px 3px 3px 8px} | |
| .model-current{font-size:9px;padding:2px 5px} | |
| .attach-btn{font-size:13px} | |
| .web-btn{font-size:11px} | |
| #send-btn{width:32px;height:32px} | |
| .stop-btn{width:32px;height:32px} | |
| .welcome h2{font-size:1rem} | |
| .chip{font-size:9px;padding:4px 7px} | |
| .new-conv-btn{width:28px;height:28px;font-size:14px} | |
| } | |
| /* ── Tablet ── */ | |
| @media(min-width:641px) and (max-width:1024px){ | |
| .msg-row.user-row{padding-left:15%} | |
| .msg-row.bot-row{padding-right:10%} | |
| } | |
| /* ── Touch ── */ | |
| @media(hover:none)and(pointer:coarse){ | |
| .hamburger:hover,.chip:hover,.btn-primary:hover,#send-btn:hover{transform:none} | |
| .conv-card:hover{border-color:var(--brd)} | |
| } | |
| /* ── Page invité (guest) ── */ | |
| .btn-login-top{ | |
| padding:7px 16px;background:var(--ubub);color:#fff;border-radius:10px; | |
| font-size:13px;font-weight:600;text-decoration:none;font-family:inherit; | |
| box-shadow:0 2px 10px var(--acc-g);transition:all .2s;white-space:nowrap; | |
| } | |
| .btn-login-top:hover{opacity:.9;transform:translateY(-1px)} | |
| .counter-bar{ | |
| padding:8px 16px;background:var(--acc-s); | |
| border-bottom:1px solid var(--brd); | |
| text-align:center;font-size:13px; | |
| color:var(--acc);font-weight:500; | |
| line-height:1.4; | |
| } | |
| .counter-bar.limit{background:#fef2f2;color:#ef4444;border-color:#fecaca} | |
| .counter-bar a{color:inherit;text-decoration:underline;font-weight:600} | |
| .modal-overlay{ | |
| position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200; | |
| display:flex;align-items:center;justify-content:center;padding:20px; | |
| } | |
| .modal-card{ | |
| background:var(--bg2);border-radius:22px;padding:32px 24px; | |
| max-width:360px;width:100%;text-align:center; | |
| box-shadow:0 20px 60px rgba(0,0,0,.2); | |
| animation:fadeIn .3s ease; | |
| } | |
| .modal-card h3{font-family:'Outfit';font-size:1.1rem;color:var(--txt);margin-bottom:8px} | |
| .modal-card p{color:var(--txt2);font-size:13px;margin-bottom:20px;line-height:1.6} | |
| /* ── Mobile invité ── */ | |
| @media(max-width:640px){ | |
| .btn-login-top{padding:5px 12px;font-size:12px;border-radius:8px} | |
| .counter-bar{font-size:11px;padding:6px 10px} | |
| .modal-card{padding:24px 16px;border-radius:18px} | |
| .modal-card h3{font-size:1rem} | |
| .modal-card p{font-size:12px} | |
| } | |
| @media(max-width:380px){ | |
| .btn-login-top{padding:4px 10px;font-size:11px} | |
| .counter-bar{font-size:10px} | |
| } | |
| /* ── Safe area ── */ | |
| @supports(padding:env(safe-area-inset-bottom)){ | |
| .input-bar{bottom:calc(10px + env(safe-area-inset-bottom))} | |
| .status-hint{bottom:env(safe-area-inset-bottom)} | |
| } | |