/* ========================================================================== OPSIOM — Refonte « Calme » (v3) Couche de design chargée EN DERNIER sur toutes les pages : elle redéfinit les jetons (violet franc, fonds neutres teintés de mauve), la typographie (Fraunces pour les titres, Geist pour l'interface) et donne la priorité aux espaces. Thème clair par défaut, thème sombre via . ========================================================================== */ :root { --pop-rgb: 142,63,214; --bg-rgb: 251,249,252; --bg: #FBF9FC; --side: #FBF9FC; --surface: #FFFFFF; --ink: #1E1527; --ink2: #5E5368; --faint: #6E6479; --line: #EDE6F3; --hover: rgba(142, 63, 214, .06); --chip: #F6EFFC; --ubg: #F6EFFC; --uink: #3B1259; --pop: #8E3FD6; --accent-ink: #6B21A8; --gtext: linear-gradient(#8E3FD6, #8E3FD6); --grad: linear-gradient(#8E3FD6, #8E3FD6); --shadow: 0 1px 2px rgba(30, 21, 39, .04), 0 24px 48px -24px rgba(142, 63, 214, .22); --code: #1E1527; --codeInk: #F3E8FF; --codeNote: #B9A0D4; } :root[data-theme="dark"] { --pop-rgb: 183,123,239; --bg-rgb: 19,13,26; --bg: #130D1A; --side: #130D1A; --surface: #1C1325; --ink: #F6F0FA; --ink2: #C0B3CC; --faint: #9D90AA; --line: rgba(255, 255, 255, .09); --hover: rgba(255, 255, 255, .06); --chip: rgba(183, 123, 239, .12); --ubg: #31184A; --uink: #F6F0FA; --pop: #B77BEF; --accent-ink: #D8B8F7; --gtext: linear-gradient(#C79BEF, #C79BEF); --grad: linear-gradient(#8E3FD6, #8E3FD6); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .6); } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } h1, h2, h3 { font-optical-sizing: auto; } /* ---- Titres : Fraunces, plus petite et plus aérée que l'ancienne serif ---- */ #brand-name, .tn-brand span, #brand-name-auth, .auth-brand span { font-size: 24px; letter-spacing: -.01em; } .card-title { font-size: 26px; line-height: 1.15; } .now-name { font-size: 30px; } .ticket-top h2 { font-size: 30px; } .op-dialog-title, #quota-modal-title, #docs-modal-title { font-size: 26px; line-height: 1.15; } .page-title, #placeholder h2, .auth-title, .auth-hero .hero-title { font-weight: 400; line-height: 1.1; letter-spacing: -.02em; } .page-title { font-size: clamp(38px, 5vw, 54px); } .page-title em, #placeholder h2 em, .auth-hero .hero-title em { font-style: italic; } .page-title em, #placeholder h2 em .w { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--pop); } .section-title { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 36px; line-height: 1.15; letter-spacing: -.015em; } .section-title.sm { font-size: 22px; } .section-sub { margin: 0; max-width: 540px; font-size: 16px; line-height: 1.6; color: var(--ink2); } /* ---- Boutons : arrondis, un seul bouton plein par écran ---- */ .btn, .op-btn { border-radius: 999px; } .btn-primary, .op-btn-primary { background: var(--pop); border-color: var(--pop); color: #fff; box-shadow: none; } :root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .op-btn-primary { background: #8E3FD6; border-color: #8E3FD6; } .btn-primary:hover:not(:disabled), .op-btn-primary:hover { background: #7A2FC0; border-color: #7A2FC0; transform: none; filter: none; } .btn:hover:not(:disabled) { border-color: var(--pop); background: var(--chip); } .btn-quiet { color: var(--faint); } .pill { border-radius: 999px; } /* ---- Navigation haute (toutes les pages) ---- */ .topnav { padding: 14px max(24px, calc((100% - 1040px) / 2)); background: rgba(var(--bg-rgb), .9); border-bottom: 1px solid var(--line); gap: 24px; } .tn-brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; } .tn-brand img { width: 28px; height: 28px; object-fit: contain; } .tn-tabs { display: flex; gap: 2px; padding: 0; margin: 0; background: none; flex-wrap: wrap; } .topnav .tn-tabs { margin: 0 auto 0 8px; flex-wrap: nowrap; } .tn-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; box-shadow: none; color: var(--ink2); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; } .tn-tab svg { opacity: .7; } .tn-tab:hover { color: var(--ink); background: var(--hover); } .tn-tab[aria-current="page"] { background: var(--chip); color: var(--accent-ink); box-shadow: none; } :root[data-theme="dark"] .tn-tab[aria-current="page"] { color: var(--accent-ink); } .tn-right { display: flex; align-items: center; gap: 8px; } .tn-user { font-size: 14px; } .avatar-chip { background: var(--chip); color: var(--accent-ink); } @media (max-width: 1100px) { .tn-name { display: none; } } @media (max-width: 860px) { .topnav { flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; } .topnav .tn-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .tn-tab span { display: inline; } .tn-right { margin-left: auto; } .tn-name { display: none; } } /* ---- Pages : de l'air ---- */ .page { max-width: 960px; padding: 88px 40px 120px; gap: 72px; } .page-narrow { max-width: 800px; } .page-head { align-items: flex-end; } .page-head.stack { flex-direction: column; align-items: flex-start; } .page-eyebrow { font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--accent-ink); } .page-lead { margin: 20px 0 0; max-width: 560px; font-size: 18px; line-height: 1.6; } .stack { display: flex; flex-direction: column; gap: 32px; } .stack-sm { display: flex; flex-direction: column; gap: 16px; } .card { padding: 32px; border-radius: 20px; box-shadow: none; background: var(--surface); } .now-card, .ticket { box-shadow: none; } @media (max-width: 720px) { .page { padding: 48px 20px 80px; gap: 48px; } .card { padding: 24px; } } /* ---- Modèles ---- */ .model-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); } .model-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding: 32px 0; border-top: 1px solid var(--line); } .model-name { flex: 0 0 160px; margin: 0; display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 30px; letter-spacing: -.01em; } .model-row.is-featured .model-name { color: var(--pop); } .model-name .pill { font-family: 'Geist', sans-serif; font-size: 11px; font-weight: 500; } .model-size { flex: 0 0 72px; font-size: 14px; color: var(--faint); } .model-blurb { flex: 1 1 200px; margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink2); } .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } .trio h3 { margin: 12px 0 10px; font-size: 20px; font-weight: 500; } .trio p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); } .trio-n { font-size: 13px; color: var(--faint); } @media (max-width: 720px) { .trio { grid-template-columns: 1fr; gap: 32px; } .model-name { flex-basis: 100%; } } /* ---- Ligne de commande ---- */ .steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 48px; } .steps li { display: flex; gap: 32px; align-items: flex-start; } .step-n { flex: 0 0 24px; padding-top: 6px; font-size: 13px; color: var(--faint); } .step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; } .step-body h2 { margin: 0; font-size: 20px; font-weight: 500; } .code-line { display: flex; align-items: center; gap: 16px; padding: 6px 6px 6px 24px; border-radius: 14px; background: var(--code); color: var(--codeInk); font-family: 'Geist Mono', monospace; font-size: 15px; } .code-line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; } .code-line em { font-style: normal; color: #C79BEF; } .code-line .cli-copy-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--codeInk); font: 500 13px 'Geist', sans-serif; } .code-line .cli-copy-btn:hover { background: rgba(255, 255, 255, .16); } .note-block { display: flex; flex-direction: column; gap: 12px; padding-top: 48px; border-top: 1px solid var(--line); } /* ---- Documents ---- */ .list-head { display: flex; align-items: baseline; justify-content: space-between; } .list-title { margin: 0; font-size: 15px; font-weight: 500; } .list-meta { font-size: 13px; color: var(--faint); } .file-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .file-list:empty { display: none; } .file-item { display: flex; align-items: center; gap: 20px; padding: 20px 0; } .file-item + .file-item { border-top: 1px solid var(--line); } .file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .file-info strong { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-info small { font-size: 13px; color: var(--faint); } .empty-line { margin: 0; padding: 24px 0; font-size: 15px; color: var(--faint); border-top: 1px solid var(--line); } .dropzone { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 56px 32px; text-align: center; border: 1.5px dashed rgba(var(--pop-rgb), .4); border-radius: 24px; background: var(--surface); } .dropzone .section-title { font-size: 28px; } .dropzone:focus-within { border-color: var(--pop); } .paste-box summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--accent-ink); } .paste-fields { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; } .paste-fields input, .paste-fields textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 15px/1.5 'Geist', sans-serif; outline: 0; } .paste-fields input:focus, .paste-fields textarea:focus { border-color: var(--pop); box-shadow: 0 0 0 3px rgba(var(--pop-rgb), .18); } .paste-fields textarea { resize: vertical; } /* ---- Connexion / inscription : un panneau doux plutôt qu'un fond sombre ---- */ .auth-hero { background: var(--chip); color: var(--ink); align-items: flex-start; justify-content: space-between; text-align: left; padding: 48px 64px; gap: 24px; } .auth-hero .hero-logo { width: 96px; filter: none; animation: none; align-self: flex-start; } .auth-hero .hero-title { font-size: clamp(40px, 4.6vw, 64px); max-width: 520px; color: var(--ink); } .auth-hero .hero-title em { color: var(--pop); } .auth-hero .hero-sub { color: var(--ink2); max-width: 420px; } .auth-submit { background: var(--pop); border-radius: 999px; box-shadow: none; filter: none; } :root[data-theme="dark"] .auth-submit { background: #8E3FD6; } .auth-submit:hover { background: #7A2FC0; transform: none; filter: none; } .field input { border-radius: 12px; } @media (max-width: 880px) { .auth-hero { padding: 28px 24px; align-items: flex-start; } .auth-hero .hero-logo { width: 56px; } } /* ========================================================================== Chat ========================================================================== */ #sidebar { background: var(--bg); gap: 28px; padding: 24px 20px; } #brand-row { padding: 0 4px; } #brand-name { font-size: 24px; } #new-chat { height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(var(--pop-rgb), .35); color: var(--accent-ink); box-shadow: none; justify-content: center; } #new-chat:hover { background: var(--chip); } #history-search { border-radius: 12px; background: var(--surface); } .history-item { border-radius: 10px; } .history-item.active { background: var(--chip); color: var(--accent-ink); } #system-card { background: none; border: 0; padding: 0 4px; box-shadow: none; } #quota-card { border-radius: 14px; background: var(--surface); box-shadow: none; } #account-row { border-top: 1px solid var(--line); padding-top: 16px; } #topbar { padding: 12px 32px; border-bottom: 1px solid var(--line); gap: 12px 24px; background: var(--bg); } #topbar-left { flex: 1 1 auto; gap: 8px; } #topbar .tn-tabs { margin: 0; } #model-picker { background: none; padding: 0; gap: 4px; } .model-btn { border-radius: 999px; height: 40px; background: transparent; box-shadow: none; } .model-btn:hover { background: var(--hover); } .model-btn.active { background: var(--chip); color: var(--accent-ink); box-shadow: none; } .icon-btn { border-radius: 999px; background: var(--surface); } /* Accueil : un titre, un champ, trois suggestions — rien de plus */ .ph-logo { display: none; } #placeholder { gap: 56px; padding: 32px 0; } .ph-hero { gap: 20px; } #placeholder h2 { font-size: clamp(40px, 5vw, 56px); max-width: 700px; } #placeholder p { font-size: 17px; max-width: 460px; } .ph-cards { grid-template-columns: 1fr; gap: 0; max-width: 720px; border-bottom: 1px solid var(--line); } .suggestion { align-items: baseline; gap: 16px; padding: 14px 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; animation-delay: .3s !important; } .suggestion:hover { transform: none; box-shadow: none; border-color: var(--line); } .suggestion:hover .sg-title, .suggestion:hover .sg-hint { color: var(--accent-ink); } .sg-ico { display: none; } .sg-txt { flex-direction: row; align-items: baseline; gap: 16px; flex-wrap: wrap; } .sg-title { flex: 0 0 180px; font-weight: 500; } .sg-hint { font-size: 15px; } #composer-wrap { padding: 8px 32px 20px; gap: 12px; } #composer-row { max-width: 720px; border-radius: 24px; padding: 12px 12px 12px 24px; box-shadow: var(--shadow); } #send-btn { width: 44px; height: 44px; background: var(--pop); } :root[data-theme="dark"] #send-btn { background: #8E3FD6; } #send-btn:hover:not(:disabled) { transform: none; filter: none; background: #7A2FC0; } #send-btn:disabled { background: var(--chip); } #mode-bar { max-width: 720px; } #mode-picker { background: none; padding: 0; gap: 4px; } .mode-btn { height: 40px; border-radius: 999px; } .mode-btn.active { background: var(--chip); color: var(--accent-ink); box-shadow: none; } .tool-chip, .docs-open { border-radius: 999px; } .tool-chip.on { background: var(--chip); color: var(--accent-ink); border-color: transparent; } .bubble.user { border-radius: 20px 20px 6px 20px; } .bubble.assistant { padding-left: 0; } #conversation { padding-top: 40px; } #quota-modal, #docs-modal, .op-dialog { border-radius: 24px; } @media (max-width: 900px) { #topbar { padding: 12px 16px; } #topbar-left { flex-wrap: nowrap; overflow: hidden; } #topbar .tn-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } #composer-wrap { padding: 8px 16px 16px; } .sg-title { flex-basis: 100%; } } @media (prefers-reduced-motion: reduce) { .ph-hero, .suggestion, .auth-card { animation: none !important; } } .head-actions { display: flex; gap: 8px; flex-wrap: wrap; } @media (max-width: 900px) { #sidebar { box-shadow: none; } body.sidebar-open #sidebar { box-shadow: 24px 0 60px rgba(30, 21, 39, .25); } #model-picker { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; max-width: 100%; } }