/* Styles de l'application : jetons de thème, clair/sombre, taille réglable, focus visible. */ :root { --bg: #ffffff; --surface: #f4f6fa; --text: #1b1f27; --muted: #4a5365; --border: #b8c0cf; --accent: #1d4ed8; --accent-text: #ffffff; --ok: #146c2e; --ko: #a31515; --focus: #b45309; /* Réglable par SettingsPanel : html { font-size: calc(var(--font-scale) * 100%) } */ --font-scale: 1; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #12151c; --surface: #1c212c; --text: #eceff5; --muted: #b3bccd; --border: #4a5365; --accent: #8ab4ff; --accent-text: #0b1020; --ok: #6ee08a; --ko: #ff8a8a; --focus: #ffcc66; } } :root[data-theme="dark"] { --bg: #12151c; --surface: #1c212c; --text: #eceff5; --muted: #b3bccd; --border: #4a5365; --accent: #8ab4ff; --accent-text: #0b1020; --ok: #6ee08a; --ko: #ff8a8a; --focus: #ffcc66; } html { font-size: calc(var(--font-scale) * 100%); } body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; } :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; } .notebook { max-width: 48rem; margin: 0 auto; padding: 1rem; } .notebook-status { color: var(--muted); min-height: 1.5em; } .explain, .cell { background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; margin: 1rem 0; } .btn { min-height: 2.75rem; /* cible tactile confortable (WCAG 2.5.8) */ padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; } .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } .btn:disabled { opacity: 0.6; cursor: not-allowed; } .cell-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; } .code-editor { width: 100%; box-sizing: border-box; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1rem; padding: 0.75rem; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 0.375rem; tab-size: 4; } .cell-shortcut { margin: 0.25rem 0; color: var(--muted); font-size: 0.875rem; } .cell-output { min-height: 1.5rem; margin: 0.5rem 0; padding: 0.5rem 0.75rem; background: var(--bg); border-left: 4px solid var(--border); white-space: pre-wrap; } .feedback-ok { color: var(--ok); font-weight: 600; } .feedback-ko, .error-title { color: var(--ko); font-weight: 600; } .hint-list { flex-basis: 100%; margin: 0; } .toast-region { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; max-width: calc(100vw - 2rem); } .toast { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 1rem; background: var(--surface); color: var(--text); border: 2px solid var(--accent); border-radius: 0.5rem; } .level-list { list-style: none; padding: 0; } .level-button { display: flex; justify-content: space-between; width: 100%; margin: 0.25rem 0; padding: 0.5rem 0.75rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 0.375rem; font: inherit; cursor: pointer; } .level-button.is-current { border-width: 3px; border-color: var(--accent); } .setting { display: flex; gap: 0.75rem; align-items: center; margin: 0.5rem 0; } @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }