/* ========================================================================== OPSIOM — Design system Palette extraite du logo (nœud violet/rose métallique) : les tons profonds servent de fond, les tons clairs de signature (dégradé de marque). ========================================================================== */ :root { /* Fond */ --void: #0a0712; --void-2: #120b1e; /* Surfaces */ --panel: rgba(255, 255, 255, .035); --panel-solid: #160e22; --glass: rgba(24, 16, 36, .58); --line: rgba(255, 255, 255, .085); --line-soft: rgba(255, 255, 255, .045); /* Texte */ --ink: #f3eefa; --ink-dim: #a196b3; --ink-faint: #5c5270; /* Marque — dégradé signature du logo */ --orchid: #e7a7cc; --violet: #8a4fd1; --violet-deep: #4c2670; --plum: #2b1640; --grad-brand: linear-gradient(133deg, var(--orchid) 0%, var(--violet) 100%); /* États */ --green: #45d99a; --red: #e2708a; --radius-s: 8px; --radius-m: 13px; --radius-l: 20px; --shadow-glow: 0 18px 50px rgba(76, 38, 112, .35); } * { box-sizing: border-box; } html { color-scheme: dark; } body { margin: 0; font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--void); min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; position: relative; } /* Champ lumineux ambiant + grain, posés une fois sur tout le document */ body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 900px 620px at 82% -8%, rgba(138, 79, 209, .22), transparent 60%), radial-gradient(ellipse 760px 560px at -10% 96%, rgba(231, 167, 204, .12), transparent 62%), linear-gradient(180deg, var(--void-2) 0%, var(--void) 46%, #070510 100%); } body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); } .app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; max-width: 1440px; margin: 0 auto; } /* ========================================================================== Sidebar ========================================================================== */ #sidebar { width: 272px; flex-shrink: 0; padding: 26px 20px 20px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 22px; } #brand-row { display: flex; align-items: center; gap: 11px; } #sidebar-close { display: none; margin-left: auto; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel); color: var(--ink-dim); cursor: pointer; } #sidebar-close:hover { color: var(--ink); } #brand-mark { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(138, 79, 209, .55)); } #brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: -.03em; } #new-chat { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(231, 167, 204, .22); background: linear-gradient(180deg, rgba(138, 79, 209, .14), rgba(138, 79, 209, .05)); color: var(--ink); border-radius: var(--radius-s); padding: 11px 14px; font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .15s ease, border-color .15s ease; } #new-chat svg { flex-shrink: 0; opacity: .85; } #new-chat:hover { background: linear-gradient(180deg, rgba(138, 79, 209, .24), rgba(138, 79, 209, .09)); border-color: rgba(231, 167, 204, .38); } #new-chat:active { transform: translateY(1px); } #system-card { border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 14px 15px; background: var(--panel); font-size: 12.5px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); } #status-line { display: flex; align-items: center; gap: 9px; } .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; } .dot-pending { background: var(--ink-faint); animation: pulse 1.4s infinite; } .dot-online { background: var(--green); box-shadow: 0 0 8px rgba(69, 217, 154, .65); } .dot-offline { background: var(--red); box-shadow: 0 0 8px rgba(226, 112, 138, .55); } #status-text { font-size: 13px; font-weight: 500; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } } .status-detail { display: flex; align-items: center; gap: 7px; color: var(--ink-dim); padding-left: 16px; } .status-detail svg { flex-shrink: 0; opacity: .7; } .status-detail:has(span:empty) { display: none; } .version-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: .1em; } .version-tag::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--grad-brand); } /* ---- Forfait (plan Free/Plus/Pro) --------------------------------------- */ #plan-card { width: 100%; border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 10px 14px; background: var(--panel); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; text-decoration: none; color: var(--ink); font-size: .82rem; margin-bottom: 10px; transition: border-color .2s; } #plan-card:hover { border-color: var(--violet); } #plan-badge { font-weight: 700; } #lab-badge { background: rgba(168, 85, 247, .15); color: var(--orchid); border-radius: 99px; padding: 2px 8px; font-size: .72rem; font-weight: 600; } #plan-next-hint { margin-left: auto; color: var(--ink-dim); font-size: .75rem; } /* ---- Quota gratuit (tokens/jour, partagé avec le CLI) ------------------ */ #quota-card { width: 100%; border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 12px 14px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; font-family: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; } #quota-card:hover, #quota-card:focus-visible { border-color: rgba(231, 167, 204, .32); background: rgba(138, 79, 209, .08); outline: none; } #quota-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } #quota-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-dim); } #quota-label svg { opacity: .7; flex-shrink: 0; } #quota-count { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink-faint); flex-shrink: 0; } #quota-bar-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; } #quota-bar-fill { height: 100%; border-radius: 999px; background: var(--grad-brand); transition: width .3s ease, background .2s ease; } #quota-bar-fill.warn { background: linear-gradient(135deg, #f0c56a, var(--orchid)); } #quota-bar-fill.empty { background: var(--red); } /* ---- Pub CLI ------------------------------------------------------------ */ /* ---- Sections repliables de la sidebar (CLI, codes de promo, admin) ---- */ /* Repliées par défaut : garde tout le contenu (rien n'est supprimé) tout en désencombrant la sidebar au premier coup d'œil. */ .sidebar-details, #cli-promo { border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 12px 14px; background: var(--panel); } .sidebar-details[open], #cli-promo[open] { display: flex; flex-direction: column; gap: 8px; } .sidebar-details summary, .cli-promo-head { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--ink); } .sidebar-details summary::-webkit-details-marker { display: none; } .sidebar-details summary::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-right: 1.4px solid var(--ink-faint); border-bottom: 1.4px solid var(--ink-faint); transform: rotate(-45deg); transition: transform .15s ease; flex-shrink: 0; } .sidebar-details[open] summary::after { transform: rotate(45deg); } .sidebar-details > *:not(summary) { margin-top: 8px; } .sidebar-details summary:first-of-type { margin: 0; } .cli-promo-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--ink); } .cli-promo-head svg { flex-shrink: 0; color: var(--orchid); } .cli-promo-text { font-size: 11.5px; line-height: 1.45; color: var(--ink-dim); margin: 0; } .cli-promo-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: var(--radius-s); background: var(--void-2); border: 1px solid var(--line-soft); } .cli-promo-code code { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink); white-space: nowrap; overflow-x: auto; } .cli-promo-code code em { font-style: normal; color: var(--orchid); } .cli-copy-btn { flex-shrink: 0; border: none; background: transparent; color: var(--ink-faint); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px 4px; border-radius: 6px; transition: color .15s ease, background .15s ease; } .cli-copy-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .06); } .cli-copy-btn.copied { color: var(--green); } .cli-promo-link { align-self: flex-start; font-size: 11.5px; color: var(--orchid); text-decoration: none; } .cli-promo-link:hover { text-decoration: underline; } #account-row { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; font-size: 12.5px; } .avatar-chip { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--grad-brand); color: #200f30; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; } #account-name { color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; } #logout-link { color: var(--ink-faint); text-decoration: none; flex-shrink: 0; font-size: 12px; transition: color .15s ease; } #logout-link:hover { color: var(--orchid); } /* ========================================================================== Panneau principal ========================================================================== */ #main-panel { flex: 1; padding: 26px 36px 20px; display: flex; flex-direction: column; min-width: 0; } #topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; } #topbar-left { display: flex; align-items: center; gap: 10px; } #topbar-title { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 14.5px; color: var(--ink-dim); letter-spacing: -.01em; margin: 0; } #sidebar-open { display: none; width: 32px; height: 32px; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--panel); color: var(--ink-dim); cursor: pointer; transition: color .15s ease, border-color .15s ease; } #sidebar-open:hover { color: var(--ink); border-color: rgba(231, 167, 204, .3); } #model-picker { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--panel); } .model-btn { display: flex; align-items: baseline; gap: 6px; border: none; background: transparent; color: var(--ink-dim); font-family: inherit; font-size: 13px; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: background .15s ease, color .15s ease; } .model-btn small { font-family: 'JetBrains Mono', monospace; font-size: 10px; opacity: .7; } .model-btn:hover { color: var(--ink); } .model-btn:focus-visible { outline: 2px solid var(--orchid); outline-offset: 2px; } .model-btn.active { background: var(--grad-brand); color: #200f30; font-weight: 600; } .model-btn.active small { opacity: .75; } #topbar-controls { display: flex; align-items: center; gap: 8px; } /* ---- Panneau de réglages de génération --------------------------------- */ #settings-wrap { position: relative; } #settings-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--panel); color: var(--ink-dim); cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; } #settings-toggle:hover { color: var(--ink); border-color: rgba(231, 167, 204, .3); } #settings-toggle[aria-expanded="true"] { color: var(--orchid); border-color: rgba(231, 167, 204, .4); background: rgba(138, 79, 209, .1); } #settings-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 268px; z-index: 20; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--glass); backdrop-filter: blur(20px); box-shadow: var(--shadow-glow); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 14px; } #settings-panel[hidden] { display: none; } #settings-panel-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; margin: 0; } #settings-panel-hint { margin: -8px 0 0; font-size: 11.5px; color: var(--ink-faint); line-height: 1.45; } .settings-row { display: flex; flex-direction: column; gap: 6px; } .settings-row label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink-dim); } .settings-val { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink); } .settings-row input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); cursor: pointer; } .settings-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-brand); border: 2px solid var(--void-2); box-shadow: 0 0 0 1px rgba(231, 167, 204, .5); cursor: pointer; } .settings-row input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--violet); border: 2px solid var(--void-2); box-shadow: 0 0 0 1px rgba(231, 167, 204, .5); cursor: pointer; } #settings-reset { align-self: flex-start; border: none; background: transparent; color: var(--ink-faint); font-family: inherit; font-size: 12px; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; } #settings-reset:hover { color: var(--orchid); } /* ---- Fil de conversation --------------------------------------------- */ #conversation { flex: 1; overflow-y: auto; padding: 6px 2px 10px; display: flex; flex-direction: column; gap: 20px; min-height: 300px; } #placeholder { margin: auto; max-width: 480px; text-align: left; position: relative; } #placeholder::before { content: ""; position: absolute; top: -30px; left: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(138, 79, 209, .22), transparent 68%); z-index: -1; filter: blur(4px); } #placeholder h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 25px; letter-spacing: -.02em; margin: 0 0 10px; } #placeholder p { color: var(--ink-dim); line-height: 1.55; margin: 0; font-size: 14.5px; } /* Bulle utilisateur : pilule pleine, alignée à droite */ .bubble.user { align-self: flex-end; max-width: 72%; padding: 11px 16px; border-radius: 16px 16px 4px 16px; line-height: 1.5; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; background: var(--grad-brand); color: #200f30; font-weight: 500; box-shadow: 0 8px 22px rgba(138, 79, 209, .28); position: relative; } /* Réponse assistant : texte fluide, sans carte, marqueur discret à gauche */ .bubble.assistant { align-self: flex-start; max-width: 86%; padding: 1px 0 1px 20px; line-height: 1.6; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; position: relative; } .bubble.assistant::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-brand); } .bubble.assistant.error { background: rgba(226, 112, 138, .1); border: 1px solid rgba(226, 112, 138, .3); border-radius: var(--radius-m); padding: 12px 16px 12px 20px; color: #f6d3da; } .bubble.assistant.error::before { background: var(--red); } .bubble.assistant.notice { color: var(--ink-faint); font-style: italic; font-size: 13.5px; } .bubble.assistant.notice::before { background: var(--ink-faint); } .bubble-meta { margin-top: 7px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ink-faint); letter-spacing: .01em; } /* ---- Actions sur un message (copier / modifier) ------------------------ */ .msg-action-btn { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-solid); color: var(--ink-dim); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(2px); transition: opacity .15s ease, transform .15s ease, color .15s ease, border-color .15s ease; } .bubble:hover .msg-action-btn, .msg-action-btn:focus-visible { opacity: 1; transform: translateY(0); } .msg-action-btn:hover { color: var(--ink); border-color: rgba(231, 167, 204, .4); } .msg-action-btn.copied { color: var(--green); border-color: rgba(69, 217, 154, .4); } #conversation.is-sending .msg-action-btn { opacity: 0 !important; pointer-events: none; } /* ---- Rendu Markdown dans les réponses ----------------------------------- */ .msg-content code { font-family: 'JetBrains Mono', monospace; font-size: .9em; background: rgba(255, 255, 255, .07); padding: 2px 5px; border-radius: 4px; } .msg-content p { margin: 0 0 10px; } .msg-content pre { margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel-solid); overflow-x: auto; } .msg-content pre code { background: none; padding: 0; font-size: 13px; line-height: 1.55; color: var(--ink); } .msg-content ul, .msg-content ol { margin: 0 0 10px; padding-left: 22px; } .msg-content li { margin-bottom: 4px; } .msg-content strong { font-weight: 700; color: #fff; } .msg-content > *:last-child { margin-bottom: 0; } /* Animation « Opsiom réfléchit » */ .bubble.assistant.thinking { display: flex; align-items: center; gap: 13px; white-space: normal; padding-top: 4px; padding-bottom: 4px; } .bubble.assistant.thinking::before { top: 50%; margin-top: -3.5px; } .wave { display: inline-flex; align-items: flex-end; gap: 4px; height: 18px; flex: none; margin-left: 2px; } .wave i { display: block; width: 4px; height: 6px; border-radius: 1px; transform-origin: bottom; background: var(--grad-brand); animation: wave 1.2s ease-in-out infinite; } .wave i:nth-child(2) { animation-delay: .12s; } .wave i:nth-child(3) { animation-delay: .24s; } .wave i:nth-child(4) { animation-delay: .36s; } .wave i:nth-child(5) { animation-delay: .48s; } @keyframes wave { 0%, 60%, 100% { transform: scaleY(1); opacity: .5; } 30% { transform: scaleY(2.8); opacity: 1; } } .think-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .think-text { color: var(--ink-dim); font-size: 14px; animation: think-fade .4s ease-out; } .think-meta { color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; } @keyframes think-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } @media (prefers-reduced-motion: reduce) { .wave i, .think-text { animation: none; } .wave i { height: 12px; opacity: .8; } .dot-pending { animation: none; } } /* ---- Suggestions -------------------------------------------------------- */ #suggestions { display: flex; gap: 10px; margin: 8px 0 14px; flex-wrap: wrap; } .suggestion { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-dim); border-radius: 999px; padding: 9px 16px 9px 13px; font-size: 13px; font-family: inherit; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; } .suggestion svg { flex-shrink: 0; opacity: .8; } .suggestion:hover { color: var(--ink); border-color: rgba(231, 167, 204, .4); background: rgba(138, 79, 209, .1); } /* ---- Compositeur -------------------------------------------------------- */ #quota-banner { margin: 0 0 10px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; text-align: center; } #quota-banner-info { border: none; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0; } #quota-banner-info:hover { opacity: .8; } #composer-row { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--glass); backdrop-filter: blur(14px); padding: 9px 9px 9px 16px; transition: border-color .15s ease, box-shadow .15s ease; } #composer-row:focus-within { border-color: rgba(231, 167, 204, .45); box-shadow: 0 0 0 3px rgba(138, 79, 209, .12); } #msg-input { flex: 1; resize: none; border: none; background: transparent; color: var(--ink); font-family: inherit; font-size: 14.5px; padding: 9px 0; max-height: 140px; } #msg-input::placeholder { color: var(--ink-faint); } #msg-input:focus { outline: none; } #send-btn { display: flex; align-items: center; justify-content: center; border: none; border-radius: 10px; min-width: 40px; height: 40px; flex-shrink: 0; cursor: pointer; background: var(--grad-brand); color: #200f30; transition: opacity .15s ease, transform .1s ease; } #send-btn:hover { opacity: .92; } #send-btn:active { transform: scale(.94); } #send-btn:disabled { opacity: .38; cursor: not-allowed; } .disclaimer { color: var(--ink-faint); font-size: 10.5px; text-align: center; margin: 12px 0 0; } /* ========================================================================== Fenêtre modale (quota, etc.) ========================================================================== */ #quota-modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6, 4, 12, .62); backdrop-filter: blur(3px); animation: fade-in .15s ease-out; } #quota-modal-overlay[hidden] { display: none; } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } #quota-modal { position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px 26px 26px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--panel-solid); box-shadow: var(--shadow-glow); animation: modal-in .18s cubic-bezier(.2, .8, .3, 1); } @keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } } #quota-modal-close { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel); color: var(--ink-dim); cursor: pointer; } #quota-modal-close:hover { color: var(--ink); border-color: rgba(231, 167, 204, .3); } #quota-modal-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 11px; margin-bottom: 14px; background: rgba(138, 79, 209, .14); color: var(--orchid); } #quota-modal-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; } #quota-modal-lead { color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; margin: 0 0 18px; } #quota-modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; } .quota-modal-stat { display: flex; flex-direction: column; gap: 3px; padding: 10px 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-soft); text-align: center; } .quota-modal-stat span { font-size: 11px; color: var(--ink-faint); } .quota-modal-stat strong { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--ink); } #quota-modal-bar-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 0 0 18px; } #quota-modal-bar-fill { height: 100%; border-radius: 999px; background: var(--grad-brand); transition: width .3s ease, background .2s ease; } #quota-modal-bar-fill.warn { background: linear-gradient(135deg, #f0c56a, var(--orchid)); } #quota-modal-bar-fill.empty { background: var(--red); } #quota-modal-list { margin: 0 0 20px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-dim); font-size: 12.5px; line-height: 1.5; } #quota-modal-list code { font-family: 'JetBrains Mono', monospace; font-size: .92em; background: rgba(255, 255, 255, .07); padding: 1px 5px; border-radius: 4px; color: var(--ink); } #quota-modal-cta { display: flex; align-items: center; justify-content: center; border: none; border-radius: 10px; padding: 11px 16px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: #200f30; background: var(--grad-brand); transition: opacity .15s ease; } #quota-modal-cta:hover { opacity: .92; } /* ========================================================================== Responsive — panneau latéral en tiroir sous ~880px ========================================================================== */ #sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 39; background: rgba(6, 4, 12, .55); backdrop-filter: blur(2px); } @media (max-width: 880px) { .app-shell { display: block; } #sidebar-open { display: flex; } #sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(320px, 84vw); background: var(--void-2); border-right: 1px solid var(--line); box-shadow: 24px 0 60px rgba(0, 0, 0, .45); transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto; } #sidebar.is-open { transform: translateX(0); } #sidebar-close { display: flex; } body.sidebar-open #sidebar-backdrop { display: block; } #main-panel { padding: 18px 18px 16px; min-height: 100vh; } #topbar-controls { width: 100%; justify-content: space-between; } #model-picker { overflow-x: auto; max-width: 100%; } .bubble.user, .bubble.assistant { max-width: 92%; } #suggestions { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-top: 4px; } .suggestion { flex-shrink: 0; } } @media (max-width: 520px) { #main-panel { padding: 14px 12px 12px; } #placeholder h2 { font-size: 21px; } #topbar-title { display: none; } #quota-modal-stats { gap: 6px; } .quota-modal-stat strong { font-size: 13.5px; } } /* ========================================================================== Authentification (connexion) ========================================================================== */ body.auth-page { display: flex; align-items: center; justify-content: center; padding: 40px 16px; min-height: 100vh; } .auth-hero { position: relative; width: 96px; height: 96px; margin: 0 auto 22px; } .auth-hero .hero-glow { position: absolute; inset: -46px; background: radial-gradient(circle, rgba(138, 79, 209, .5), rgba(231, 167, 204, .16) 45%, transparent 72%); filter: blur(6px); z-index: 0; animation: breathe 5s ease-in-out infinite; } .auth-hero img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(76, 38, 112, .55)); } @keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } } @media (prefers-reduced-motion: reduce) { .auth-hero .hero-glow { animation: none; } } .auth-card { position: relative; z-index: 1; width: 100%; max-width: 384px; padding: 38px 34px 32px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(22px); box-shadow: var(--shadow-glow); } #brand-name-auth { display: block; text-align: center; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -.03em; margin: 0 0 26px; } .auth-title { font-family: 'Space Grotesk', sans-serif; font-size: 23px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 7px; text-align: center; } .auth-subtitle { color: var(--ink-dim); font-size: 13.5px; line-height: 1.55; margin: 0 0 20px; text-align: center; } .octix-note { display: flex; align-items: flex-start; gap: 9px; background: rgba(138, 79, 209, .08); border: 1px solid rgba(138, 79, 209, .26); border-radius: 10px; padding: 11px 13px; margin: 0 0 24px; font-size: 12.5px; line-height: 1.5; color: var(--ink-dim); } .octix-note svg { flex-shrink: 0; margin-top: 1px; opacity: .85; } .octix-note strong { color: var(--ink); font-weight: 600; } .auth-card form { display: flex; flex-direction: column; gap: 15px; } .field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 12.5px; font-weight: 500; color: var(--ink-dim); } .field-input-wrap { position: relative; } .field-input-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; } .field input { width: 100%; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink); font-family: inherit; font-size: 14.5px; padding: 11px 13px 11px 38px; border-radius: 10px; transition: border-color .15s ease, background .15s ease; } .field input::placeholder { color: var(--ink-faint); } .field input:focus { outline: none; border-color: rgba(231, 167, 204, .5); background: rgba(138, 79, 209, .07); } .auth-submit { margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 10px; padding: 12.5px 16px; font-family: inherit; font-size: 14.5px; font-weight: 600; color: #200f30; background: var(--grad-brand); cursor: pointer; transition: opacity .15s ease, transform .1s ease; } .auth-submit:hover { opacity: .92; } .auth-submit:active { transform: scale(.99); } .auth-switch { margin: 22px 0 0; text-align: center; color: var(--ink-dim); font-size: 13px; } .auth-switch a { color: var(--orchid); text-decoration: none; font-weight: 500; } .auth-switch a:hover { text-decoration: underline; } .flash-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; } .flash { border-radius: 9px; padding: 10px 12px; font-size: 13px; line-height: 1.4; border: 1px solid transparent; } .flash.error { background: rgba(226, 112, 138, .1); border-color: rgba(226, 112, 138, .32); color: #f6d3da; } .flash.info { background: rgba(138, 79, 209, .1); border-color: rgba(138, 79, 209, .32); color: #e6d8f3; } .flash.success { background: rgba(69, 217, 154, .1); border-color: rgba(69, 217, 154, .32); color: #bdf3d4; } @media (max-width: 420px) { .auth-card { padding: 30px 22px 26px; } } /* ---- Attribut [hidden] : doit toujours gagner ---------------------------- Le bandeau « Quota gratuit atteint » avait display:flex (id) qui l'emportait sur l'attribut hidden : il restait visible en permanence. */ [hidden] { display: none !important; } /* ---- Apparition des mots (écran d'accueil + connexion) ------------------- */ .w { display: inline-block; opacity: 0; transform: translateY(10px); filter: blur(6px); animation: word-in .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0ms); will-change: opacity, transform, filter; } @keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } } @media (prefers-reduced-motion: reduce) { .w { animation: none; opacity: 1; transform: none; filter: none; } } /* ========================================================================== Historique des conversations (sidebar) ========================================================================== */ #history { display: flex; flex-direction: column; gap: 8px; min-height: 0; } #history-head { display: flex; align-items: center; justify-content: space-between; } #history-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); } #history-clear { border: none; background: none; padding: 0; font: inherit; font-size: 11px; color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; } #history-clear:hover { color: var(--red); } #history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 210px; overflow-y: auto; } #history-empty { margin: 0; font-size: 12px; color: var(--ink-faint); line-height: 1.5; } .history-item { display: flex; align-items: center; border: 1px solid transparent; border-radius: var(--radius-s); transition: background .15s ease, border-color .15s ease; } .history-item:hover { background: var(--panel); } .history-item.active { background: rgba(138, 79, 209, .14); border-color: rgba(231, 167, 204, .22); } .history-open { flex: 1; min-width: 0; padding: 8px 10px; border: none; background: none; text-align: left; font: inherit; font-size: 13px; color: var(--ink-dim); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .history-open:hover, .history-item.active .history-open { color: var(--ink); } .history-delete { flex: none; width: 26px; height: 26px; margin-right: 4px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 6px; background: none; color: var(--ink-faint); cursor: pointer; opacity: 0; transition: opacity .15s ease, color .15s ease, background .15s ease; } .history-item:hover .history-delete, .history-item.active .history-delete, .history-delete:focus-visible { opacity: 1; } .history-delete:hover { color: var(--red); background: rgba(226, 112, 138, .1); } @media (hover: none) { .history-delete { opacity: 1; } } /* ========================================================================== Animation pendant que le modèle répond (vague en fin de message) ========================================================================== */ .wave.wave-sm { height: 12px; gap: 3px; margin: 8px 0 0 0; display: flex; } .wave.wave-sm i { width: 3px; height: 4px; } @media (prefers-reduced-motion: reduce) { .wave.wave-sm i { height: 8px; } }