/* Préférence système : les captures pédagogiques conservent leurs couleurs réelles.
   Jetons communs aux fonds, textes, contrôles et états ; impression en clair. */
:root{--focus:#6541a1;--search-placeholder:#6b5a78}
#search-input:focus-visible{outline:none}
#search-input::placeholder{color:var(--search-placeholder);opacity:1}
#search-form:focus-within{outline:3px solid var(--focus);outline-offset:5px;border-radius:5px}
@media screen and (prefers-color-scheme:dark){
  :root{color-scheme:dark;--paper:#17141f;--white:#211d2b;--ink:#f1ecf8;--muted:#c4b8d3;--line:#51455f;--green:#cdb7ff;--coral:#cdb7ff;--coral-soft:#32263f;--mint:#20392f;--lav:#30243e;--violet:#cfb5ff;--peach:#edc9a5;--shadow:0 14px 38px #0005;--focus:#d6beff;--search-placeholder:var(--muted);--logo-surface:#fff8f0;--on-strong:#fff;--theme-soft:#2d2439;--theme-strong:#6742a9;--theme-ok:#b4dfc4;--theme-ok-bg:#20392f;--theme-warn:#f0cea8;--theme-warn-bg:#3e2e24}
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible,
  summary:focus-visible{outline:3px solid var(--focus)}
  ::selection,
  .hero,
  .hero .pill,
  .mini-window .lines b,
  .mint,
  .lesson-row .row-num,
  .progress-bar,
  .resume-box code,
  .live-dot,
  .browser-chrome>span:nth-child(3),
  .course-cover.mint,
  .guide-result.effect-seen,
  .setting-save{background:var(--theme-ok-bg)}
  .skip,
  .side-nav a.active,
  .btn-primary,
  .filter.on,
  .chat-toggle,
  #toast,
  .btn-dark,
  .brand,
  .side-nav a:hover,
  .side-nav a.active i,
  .side-note h3,
  .hero-v2 h1,
  .preview-highlight>span,
  .guide-tools .icon-button:hover,
  .spot-number,
  .guide-watermark,
  .guide-stop.on>span,
  .quiz-decoration,
  .login-card .btn-primary,
  .lab-hero,
  .lab-hero h1,
  .location-top .btn{color:var(--on-strong)}
  .nav-label,
  .side-note p,
  .btn-green,
  .pill,
  .pill.lavender,
  .pill.pink,
  .lavender,
  .pink,
  .course-foot,
  .help-card p,
  .footnote,
  .impact-card p,
  .impact-card.warning p,
  .callout,
  .reference .reference-body,
  .chat-head small,
  .chat-message .mode-label,
  .chat-source p,
  .chat-privacy,
  .empty i,
  .progress-summary p,
  .btn-plain,
  .sidebar,
  .brand b>span,
  .brand small,
  .side-section-title,
  .side-nav a i,
  .sidebar .btn-plain,
  .note-orbit,
  .side-note button,
  .version,
  .searchbar i,
  .header-status,
  .avatar,
  .role-wrap small,
  .welcome-line,
  .welcome-line>span:last-child,
  .hero-eyebrow,
  .hero-v2 p,
  .hero-link,
  .hero-proof,
  .hero-proof i[class],
  .browser-chrome,
  .bubble-pointer,
  .preview-bubble small,
  .preview-success,
  .preview-play,
  .mini-ring b,
  .learning-strip span,
  .strip-progress>i,
  .strip-message>i,
  .strip-next strong,
  .section-kicker,
  .course-cover.lavender,
  .course-cover.pink,
  .course-card p,
  .course-foot>span:last-child,
  .course-foot i,
  .practice-banner p,
  .practice-illustration,
  .page-intro p,
  .eyebrow,
  .result-count,
  .lesson-thumbnail>span,
  .row-kicker,
  .lesson-row p,
  .row-meta small,
  .row-arrow,
  .breadcrumb,
  .breadcrumb a:hover,
  .lesson-eyebrow,
  .lesson-lead,
  .lesson-duration,
  .lesson-duration>i,
  .lesson-duration small,
  .lesson-chapters a,
  .lesson-chapters b,
  .lesson-chapters .on,
  .lesson-chapters .on b,
  .lesson-chapters a:hover,
  .lesson-chapters a:hover b,
  .section-symbol,
  .guide-toolbar,
  .guide-demo,
  .guide-tools .icon-button,
  .spot-label,
  .guide-kicker,
  .guide-result,
  .guide-result>i,
  .guide-controls #guide-counter,
  .guide-controls .icon-button,
  .guide-stop,
  .guide-stop.on,
  .guide-stop.visited,
  .guide-footnote,
  .reference,
  .reference summary:after,
  .reference summary i,
  .reference .memo-count,
  .step-number,
  .impact-icon,
  .card-kicker,
  .regulatory-note,
  .quiz .quiz-intro,
  .quiz h3,
  .quiz .eyebrow,
  .quiz-option,
  .quiz-option>span:first-child,
  .quiz-option>i,
  .chat-toggle>span:first-child,
  .chat-toggle-label,
  .chat-head,
  .chat-message,
  .chat-message.user,
  .chat-source,
  .chat-source a,
  .suggestions button,
  .progress-summary,
  .progress-ring strong,
  .glossary p,
  .lab-controls p,
  .flow-card p,
  .toggle-row,
  .flow-card,
  .flow-card i,
  .resume-box h3,
  .login-card h1,
  .empty h2,
  .empty p,
  .guide-result i,
  .guide-action>strong,
  .guide-result strong,
  .guide-result .effect-icon,
  .guide-context,
  .detail-card summary>span,
  .detail-card summary p,
  .detail-card summary>b,
  .detail-body>strong,
  .lab-hero p,
  .lab-hero .pill,
  .lab-symbol,
  .lab-card p,
  .lab-card>span:last-child,
  .lab-back,
  .lab-presets>span,
  .lab-panel-heading>span,
  .lab-changed,
  .lab-metric>span,
  .lab-metric p,
  .lab-trace,
  .lab-trace li::marker,
  .time-comparison small,
  .chat-follow button,
  .lesson-location,
  .lesson-location a,
  .lesson-location small,
  .setting-image span,
  .guide-jump,
  .lesson-introduction>span,
  .lesson-introduction p,
  .location-top>span,
  .lesson-location>p,
  .screen-gallery button.capture-unavailable:after{color:var(--muted)}
  .side-nav a:hover,
  .searchbar kbd,
  .btn-outline,
  .float-label,
  .mini-window,
  .progress-card,
  .progress-ring:before,
  .course-card,
  .help-icon,
  .recent,
  .filter,
  .lesson-row,
  .lesson-nav,
  .capture,
  .capture-hint,
  .step,
  .reference,
  .quiz-option,
  .chat-panel,
  .suggestions button,
  .chat-source,
  .empty,
  .lab-controls,
  .lab-results,
  .flow-card,
  .resume-box,
  .certificate,
  .certificate input,
  .login-card,
  #zoom,
  .glossary article,
  .brand-cat,
  .topbar,
  .preview-browser,
  .browser-chrome,
  .preview-bubble,
  .learning-strip,
  .mini-ring:before,
  .course-cover .course-icon,
  .course-badge,
  .practice-illustration,
  .lesson-thumbnail>span,
  .lesson-duration,
  .guide-player,
  .guide-tools .icon-button,
  .guide-tools .icon-button:hover,
  .spot-label,
  .spot-label:before,
  .guide-timeline,
  #guide-player-fullscreen,
  .impact-icon,
  .quiz-option>span:first-child,
  #guide-modal,
  .guide-workspace .guide-dock,
  .settings-filter,
  .settings-filter input,
  .settings-filter select,
  .detail-card,
  .lab-hero .pill,
  .lab-card,
  .lab-rich,
  .lab-rich .lab-controls,
  .lab-rich .lab-results,
  .lab-field input:not([type=checkbox]),
  .lab-field select,
  .lab-metric,
  .chat-follow button,
  .guide-state-button,
  .lesson-location,
  .screen-gallery button,
  .screen-viewer header,
  .guide-jump select{background:var(--white)}
  .avatar,
  .btn-soft,
  .pill,
  .pill.green,
  .pill.lavender,
  .pill.pink,
  .orb,
  .lavender,
  .pink,
  .help-card,
  .step-number,
  .callout,
  .quiz-option:hover,
  .quiz-option.selected,
  .quiz-result,
  .chat-message,
  .chat-message.user,
  .flow-card.changed,
  .btn-green,
  .nav-light,
  .side-note:before,
  .note-orbit,
  .browser-chrome>span,
  .bubble-pointer,
  .preview-success,
  .course-cover,
  .course-cover.lavender,
  .course-cover.pink,
  .course-content .progress-bar,
  .practice-illustration>i:not([class]),
  .filter:hover,
  .lesson-thumbnail,
  .row-arrow,
  .lesson-chapters .on,
  .lesson-chapters a:hover,
  .section-symbol,
  .guide-title .live-dot,
  .guide-stage,
  .guide-kicker>i,
  .guide-stop>span,
  .guide-stop.on,
  .guide-stop:hover,
  .guide-workspace,
  .guide-result,
  .detail-example,
  .lab-symbol,
  .lab-panel-heading>span,
  .lab-formula,
  .time-comparison>div,
  .time-comparison i,
  .chat-consequence,
  .screen-gallery img,
  .screen-viewer,
  .setting-image,
  .guide-jump,
  .guide-image-error,
  .screen-gallery img.image-unavailable{background:var(--theme-soft)}
  .dot,
  .btn-primary,
  .glow-one,
  .glow-two,
  .hero-eyebrow:before,
  .hero-proof i:not([class]),
  .preview-highlight>span,
  .filter.on,
  .course-dot,
  .spot-number,
  .guide-stop.on>span,
  .chat-toggle>span:first-child{background:var(--theme-strong)}
  .btn-outline,
  .float-label,
  .help-card,
  .step-number,
  .impact-card,
  .quiz-option span:first-child,
  .suggestions button,
  .chat-source,
  .chat-form textarea,
  .flow-card,
  .side-note,
  .hero-v2,
  .hero-v2 .btn-primary,
  .preview-bubble,
  .preview-success,
  .preview-play i,
  .preview-orbit,
  .course-card,
  .course-cover .course-icon,
  .course-badge,
  .practice-banner,
  .practice-illustration,
  .lesson-thumbnail,
  .lesson-thumbnail>span,
  .guide-player,
  .spot-label,
  .guide-controls .icon-button,
  .guide-stop,
  .reference,
  .impact-card:after,
  .impact-icon,
  .quiz-option,
  .quiz-result,
  .progress-summary,
  .guide-result,
  .settings-filter input,
  .settings-filter select,
  .detail-card,
  .lab-field input:not([type=checkbox]),
  .lab-field select,
  .lab-metric,
  .lab-boundary,
  .lab-challenge,
  .chat-consequence,
  .chat-follow button,
  .guide-state-button,
  .lesson-location,
  .screen-gallery button,
  .screen-viewer,
  .setting-save,
  .guide-jump select,
  .lesson-introduction{border:1px solid var(--line)}
  .pill.green,
  .btn-outline,
  .role-wrap select,
  .hero-v2 .btn-primary,
  .preview-bubble b,
  .guide-copy h3,
  .guide-copy p,
  .impact-card h3,
  .quiz h2,
  .glossary h3,
  .lab-controls h2,
  .lab-results h2,
  .flow-card strong,
  .guide-action p,
  .guide-result p,
  .detail-body,
  .lab-field,
  .lab-field input:not([type=checkbox]),
  .lab-field select,
  .lab-metric b,
  .lab-formula,
  .time-comparison span,
  .chat-consequence,
  .guide-state-button,
  .screen-gallery span,
  .guide-jump select,
  .guide-image-error{color:var(--ink)}
  .pill.peach,
  .peach,
  .quiz-result.wrong,
  .error,
  .hero-v2 .btn-primary,
  .hero-v2 .btn-primary:hover,
  .browser-chrome>span:first-child,
  .browser-chrome>span:nth-child(2),
  .course-cover.peach,
  .practice-illustration>span,
  .lab-boundary,
  .time-comparison>div:nth-child(2) i{background:var(--theme-warn-bg)}
  .pill.peach,
  .card-heading i,
  .peach,
  .help-icon,
  .impact-card.warning i,
  .quiz-result.wrong,
  .error,
  .course-cover.peach,
  .practice-illustration>span,
  .impact-card.warning .impact-icon,
  .impact-card.warning .card-kicker,
  .impact-card.warning h3,
  .detail-example strong,
  .lab-hero h1 em,
  .lab-boundary,
  .answer-wrong{color:var(--theme-warn)}
  .hero p,
  .hero .pill,
  .mint,
  .impact-card i,
  .quiz-result,
  .preview-success i,
  .course-cover.mint,
  .lesson-duration>span,
  .click-feedback,
  .guide-result.effect-seen p,
  .guide-result.effect-seen strong,
  .answer-correct,
  .setting-save{color:var(--theme-ok)}
  .progress-ring,
  .mini-ring{background:conic-gradient(var(--theme-strong) calc(var(--percent)*1%),var(--theme-soft) 0)}
  .course-foot,
  .spot-label:before,
  .guide-dock,
  .guide-timeline,
  .reference .steps,
  .time-comparison,
  .setting-image{border-top:1px solid var(--line)}
  .recent a,
  .certificate input,
  .topbar,
  .course-cover,
  .lesson-chapters,
  .reference .step,
  .lab-field.toggle-row,
  .setting-fields>div,
  .guide-jump{border-bottom:1px solid var(--line)}
  .lesson-row:hover,
  .impact-card.warning,
  .quiz-option:hover,
  .quiz-option.selected,
  .flow-card.changed,
  .btn-outline,
  .searchbar kbd,
  .course-card:hover,
  .filter.on,
  .guide-spotlight:hover,
  .guide-stop.on,
  .step-number,
  .impact-card,
  .quiz,
  .quiz-option>span:first-child,
  .quiz-result.wrong,
  .chat-panel,
  .chat-source,
  .chat-form,
  .chat-form textarea,
  .suggestions button,
  .glossary article,
  .lab-controls,
  .lab-results,
  .toggle-row,
  .flow-card,
  .resume-box,
  .login-card,
  .empty,
  .guide-result.effect-seen{border-color:var(--line)}
  .impact-card{background:linear-gradient(140deg,var(--theme-soft),var(--theme-soft))}
  .impact-card.warning{background:linear-gradient(140deg,var(--theme-warn-bg),var(--white))}
  .quiz{background:linear-gradient(120deg,var(--white) 65%,var(--white))}
  .chat-toggle,
  .preview-highlight,
  .preview-highlight>span,
  .practice-illustration>span,
  .practice-illustration>i:not([class]),
  .guide-spotlight,
  .spot-number{border:2px solid var(--line)}
  .chat-head{background:linear-gradient(100deg,var(--theme-soft),var(--theme-soft))}
  .empty{border:1px dashed var(--line)}
  .progress-summary,
  .practice-banner{background:linear-gradient(110deg,var(--theme-soft),var(--theme-soft))}
  .progress-bar span{background:linear-gradient(90deg,var(--theme-strong),var(--theme-strong))}
  .login-shell{background:radial-gradient(ellipse at top,var(--theme-soft),transparent 65%),var(--white)}
  .brand-cat,
  .course-cover>img{border:3px solid var(--line)}
  .side-nav a.active{background:linear-gradient(100deg,var(--theme-strong),var(--theme-strong))}
  .hero-v2:after{background-image:radial-gradient(var(--theme-soft) .7px,transparent .7px)}
  .preview-browser{border:5px solid var(--line)}
  .cover-grid{background-image:linear-gradient(var(--white) 1px,transparent 1px),linear-gradient(90deg,var(--white) 1px,transparent 1px)}
  .guide-demo,
  .spot-label:before,
  .chat-toggle-label,
  .guide-workspace .guide-dock{border-left:1px solid var(--line)}
  .guide-dock{background:linear-gradient(125deg,var(--white),var(--white))}
  .lab-hero:after{border:50px solid var(--line)}
  .lab-challenge{background:linear-gradient(130deg,var(--white),var(--theme-soft))}
  .lesson-introduction{background:linear-gradient(115deg,var(--theme-soft),var(--white))}
  .brand-cat{background:var(--logo-surface)}
  body{background:var(--paper)}
  input,select,textarea{background-color:var(--white);color:var(--ink)}
  .searchbar input,.role-wrap select{background:transparent}
  .skip{background:var(--theme-strong);color:var(--on-strong)}
  ::selection{background:var(--theme-strong);color:var(--on-strong)}
}
