/* Shared screen presentation for the WordPress theme, public preview and offline tools.
   Geometry stays in the component styles. Figures, brand marks and printed reports retain their artwork. */
@media screen {
  :root {
    --graphite-base: #141416;
    --graphite-surface: #1d1d20;
    --graphite-raised: #28282c;
    --graphite-text: #f5f5f7;
    --graphite-muted: #bdbdc5;
    --graphite-line: #49494f;
    --graphite-blue: #adc6e9;
    --graphite-wine: #cf9cb1;
    --graphite-violet: #bcaad7;
    --graphite-focus: #d3e4ff;
    --brand-navy: #87b0e8;
    --brand-burgundy: #dd88a4;
    --st-satisfaction: #54c98b;
    --graphite-glass: linear-gradient(132deg,#ffffff0d,transparent 39%),linear-gradient(112deg,#29292deb,#1d1d20f2 72%,#242428eb);
    --tile-edge: var(--graphite-blue);
    --tile-cut: 12px;
    --tile-shape: polygon(0 0,calc(100% - var(--tile-cut)) 0,100% var(--tile-cut),100% 100%,0 100%);
    --tile-ring: polygon(0 0,calc(100% - var(--tile-cut)) 0,100% var(--tile-cut),100% 100%,0 100%,0 0,1.5px 1.5px,1.5px calc(100% - 1.5px),calc(100% - 1.5px) calc(100% - 1.5px),calc(100% - 1.5px) calc(var(--tile-cut) + .65px),calc(100% - var(--tile-cut) - .65px) 1.5px,1.5px 1.5px);
  }
  html body.studio-body {
    --studio-base: var(--graphite-base); --studio-panel: var(--graphite-surface);
    --studio-ink: var(--graphite-text); --studio-muted: var(--graphite-muted);
    --studio-line: var(--graphite-line); --studio-accent: var(--graphite-blue); --studio-ember: var(--graphite-wine);
    --studio-glass: var(--graphite-glass); --studio-glass-strong: var(--graphite-glass);
    --studio-edge-mix: var(--tile-edge); --studio-shape: var(--tile-shape); --studio-ring: var(--tile-ring);
    background: var(--graphite-base); color: var(--graphite-text);
  }
  html body.studio-body .hv3 {
    --h-stroke: var(--graphite-line); --h-panel: var(--graphite-surface); --h-ink: var(--graphite-text);
    --h-muted: var(--graphite-muted); --h-mint: var(--graphite-blue); --h-orange: var(--graphite-wine);
  }
  html body.studio-body :is(.s3ff,.s3ff-dialog) {
    --ff-bg: var(--graphite-surface); --ff-panel: var(--graphite-raised); --ff-line: var(--graphite-line);
    --ff-ink: var(--graphite-text); --ff-muted: var(--graphite-muted); --ff-mint: var(--graphite-blue); --ff-orange: var(--graphite-wine);
  }
  html body.studio-body .s3st {
    --st-b: var(--graphite-line); --st-ink: var(--graphite-text); --st-soft: var(--graphite-muted);
    --st-panel: var(--graphite-surface); --st-surface: var(--graphite-raised); --st-rail: #3b3b42;
    --st-mint: var(--graphite-blue); --st-orange: var(--graphite-wine);
    background: var(--graphite-surface);
  }
  html body.studio-body :is(.studio-rail,.studio-top,.studio-footer,.studio-stat-sources,.s3ff-dialog-head,.s3ff-readerbar) {
    background: #1a1a1df7; border-color: var(--graphite-line);
  }
  html body.studio-body :is(.hv3-hero,.studio-editorial-head,.studio-topic-index,.studio-statistics,.hv3-dialog,.hv3-dialog-visual,.atlas-pdf,.s3ff form,.atlas-panel details,.atlas-panel .atlas-page-index,.s3v3-gallery details) {
    background: var(--graphite-surface); border-color: var(--graphite-line);
  }
  html body.studio-body :is(.studio-art,.studio-art-image--complete,.atlas-feature>img,.atlas-card img,.hv3-topic-photo,.s3ff-cover,.s3ff-reader) { background-color: var(--graphite-base); }
  html body.studio-body .studio-backdrop { background: #09090ccf; }
  body.studio-body :is(.hv3-dialog,.atlas-pdf,.s3ff-dialog)::backdrop { background: #09090ccf; }
  .hv3 .hv3-hero-art::after { background: linear-gradient(90deg,#19191b38,transparent 32%); }
  /* Le visuel normand reste entier dans le cadre anthracite de la tuile. */
  html body.studio-body .hv3 .hv3-hero-art:has(img[src*="/accueil-normandie-"]) { background: #1d1d20; }
  html body.studio-body .hv3 .hv3-hero-art img[src*="/accueil-normandie-"] { border: 0; object-fit: contain; object-position: center; background: #1d1d20; }
  html body.studio-body .hv3 .hv3-hero-art:has(img[src*="/accueil-normandie-"])::after { display: none; }
  html body.studio-body :is(.hv3-lead,.atlas-intro>p:not(.atlas-kicker),.atlas-feature p,.atlas-panel table,.atlas-panel summary,.atlas-summary>summary) { color: #ddddE2; }
  html body.studio-body :is(.hv3-hero-links>span,.atlas-directory small,.atlas-search small,.atlas-count,.atlas-note,.atlas-crumb,.atlas-crumb a,.atlas-panel small) { color: var(--graphite-muted); }
  html body.studio-body :is(.atlas-intro em,.hv3-eyebrow,.hv3-text-link,.studio-nav-icon,.studio-symbol,.atlas-card b,.atlas-pdf a) { color: var(--graphite-blue); }
  html body.studio-body :is(.atlas-panel h2,.atlas-panel h3,.atlas-panel h4,.atlas-card span,.atlas-directory a) { color: var(--graphite-text); }
  html body.studio-body :is(.studio-search-row,.studio-formation-search,.hv3-finder,.hv3-search,.s3ff,.atlas-search,.hv3-gallery-controls) :is(input:not([type=submit]),select),
  html body.studio-body .atlas-filter { background: #151517; color: var(--graphite-text); border-color: #65656e; }
  html body.studio-body :is(.studio-search-row,.studio-formation-search,.hv3-finder,.hv3-search,.s3ff,.atlas-search) input::placeholder { color: #aaaab4; opacity: 1; }
  html body.studio-body :is(.s3ff-icon,.atlas-card .atlas-icon) { background: #19191de6; border-color: #666b74; color: var(--graphite-blue); }
  html body.studio-body :is(.atlas-kicker,.studio-title)::before { background: var(--graphite-wine); }
  html body.studio-body .atlas-panel th { background: var(--graphite-raised); }
  html body.studio-body :is(.atlas-panel th,.atlas-panel td,.s3v3-gallery details) { border-color: var(--graphite-line); }
  html body.studio-body .atlas-scroll { scrollbar-color: #71717d #242429; }
  html body.studio-body .atlas-panel .atlas-gauge { accent-color: var(--graphite-blue); }
  html body.studio-body .atlas-panel .atlas-gauge--satisfaction { accent-color: var(--st-satisfaction); }
  .atlas-gauge--satisfaction::-webkit-meter-optimum-value { background: var(--st-satisfaction); }
  .atlas-gauge--satisfaction::-moz-meter-bar { background: var(--st-satisfaction); }
  html body.studio-body .s3st-theme summary:hover { background: var(--graphite-raised); }
  html body.studio-body .s3st-dotplot path { stroke: #92929c; }

  /* Position selects the hue. Both the resting border and the highlighted border use this single pigment. */
  html body.studio-body :is(.studio-home-tiles,.studio-topic-index ul,.studio-results,#studio-navigation ul,.studio-footer-grid,.hv3-topic-grid,.hv3-roles,.hv3-services,.hv3-credentials,.hv3-chips,.hv3-review-grid,.hv3-questions,.hv3-method,.hv3-modes,.s3ff-cards,.s3st-cards,.s3st-small-multiples,.s3v3-gallery-grid,.atlas-grid,.atlas-directory,.atlas-main,.atlas-reading,.studio-editorial-entry)>* {
    --tile-edge: var(--graphite-blue);
  }
  html body.studio-body :is(.studio-home-tiles,.studio-topic-index ul,.studio-results,#studio-navigation ul,.studio-footer-grid,.hv3-topic-grid,.hv3-roles,.hv3-services,.hv3-credentials,.hv3-chips,.hv3-review-grid,.hv3-questions,.hv3-method,.hv3-modes,.s3ff-cards,.s3st-cards,.s3st-small-multiples,.s3v3-gallery-grid,.atlas-grid,.atlas-directory,.atlas-main,.atlas-reading,.studio-editorial-entry)>:nth-child(3n+2),
  html body.studio-body :is(.studio-footer-group,article[class*="-program-card"],.safe3-qcm-card):nth-child(3n+2) { --tile-edge: var(--graphite-wine); }
  html body.studio-body :is(.studio-home-tiles,.studio-topic-index ul,.studio-results,#studio-navigation ul,.studio-footer-grid,.hv3-topic-grid,.hv3-roles,.hv3-services,.hv3-credentials,.hv3-chips,.hv3-review-grid,.hv3-questions,.hv3-method,.hv3-modes,.s3ff-cards,.s3st-cards,.s3st-small-multiples,.s3v3-gallery-grid,.atlas-grid,.atlas-directory,.atlas-main,.atlas-reading,.studio-editorial-entry)>:nth-child(3n),
  html body.studio-body :is(.studio-footer-group,article[class*="-program-card"],.safe3-qcm-card):nth-child(3n) { --tile-edge: var(--graphite-violet); }
  html body.studio-body :is(.hv3-topic-grid li,.atlas-main .atlas-card,.atlas-main .atlas-panel,.atlas-main .atlas-directory a) {
    --hv3-edge: var(--tile-edge); --hv3-trim: color-mix(in srgb,var(--tile-edge) 33%,transparent); --edge: var(--tile-edge);
  }
  html body.studio-body .hv3-topic-grid li,
  html body.studio-body .hv3-topic-grid li:focus-within { background: transparent; padding: 0; }
  html body.studio-body .hv3-topic-grid .hv3-topic-photo { border-bottom: 1px solid #ffffff13; }
  html body.studio-body .hv3-topic-caption>img { border-color: #ffffff1c; background-color: #1a1a1d; }
  html body.studio-body .hv3-topic-caption>img.hv3-programme-logo { background: white; object-fit: contain; padding: 1px; }

  /* Rings use a separate pointer-transparent layer, so inner controls keep their normal hit areas. */
  html body.studio-body :is(#studio-navigation>ul>li>a,#studio-navigation .studio-default-pages>ul>li>a,.studio-formation-search,.studio-footer-group,.studio-results>li,.studio-home-tiles a,.studio-topic-index li a,.hv3-topic-grid a,.hv3-roles a,.hv3-services article,.hv3-credentials li,.hv3-chips a,.hv3-questions details,.hv3-review-link,.hv3-method li,.hv3-modes li,.s3ff-card,.s3st-card,.s3st-panel,.s3st-act-small,.atlas-panel,.atlas-summary,.atlas-feature,.atlas-card,.atlas-directory a,.studio-editorial-entry article[class*="-program-card"],.studio-editorial-entry article[class$="-app-card"],.studio-editorial-entry article[class$="-feature-card"],.tsdh-document-row,.safe3-qcm-card) {
    --studio-edge-mix: var(--tile-edge); position: relative; isolation: isolate; border: 0; border-radius: 0;
    background: var(--graphite-glass); clip-path: var(--tile-shape); color: var(--graphite-text);
  }
  html body.studio-body :is(#studio-navigation>ul>li>a,#studio-navigation .studio-default-pages>ul>li>a,.studio-formation-search,.studio-footer-group,.studio-results>li,.studio-home-tiles a,.studio-topic-index li a)::before { background: var(--graphite-glass); }
  html body.studio-body :is(#studio-navigation>ul>li>a,#studio-navigation .studio-default-pages>ul>li>a,.studio-formation-search,.studio-footer-group,.studio-results>li,.studio-home-tiles a,.studio-topic-index li a,.hv3-topic-grid a,.hv3-roles a,.hv3-services article,.hv3-credentials li,.hv3-chips a,.hv3-questions details,.hv3-review-link,.hv3-method li,.hv3-modes li,.s3ff-card,.s3st-card,.s3st-panel,.s3st-act-small,.atlas-panel,.atlas-summary,.atlas-feature,.atlas-card,.atlas-directory a,.studio-editorial-entry article[class*="-program-card"],.studio-editorial-entry article[class$="-app-card"],.studio-editorial-entry article[class$="-feature-card"],.tsdh-document-row,.safe3-qcm-card)::after {
    content: ""; position: absolute; inset: 0; width: auto; height: auto; pointer-events: none; z-index: 2;
    background: var(--tile-edge); clip-path: var(--tile-ring); opacity: var(--tile-opacity,.29); transition: opacity .16s ease;
  }
  html body.studio-body :is(#studio-navigation a,.studio-formation-search,.studio-footer-group,.studio-results>li,.studio-home-tiles a,.studio-topic-index li a,.hv3-topic-grid a,.hv3-roles a,.hv3-services article,.hv3-credentials li,.hv3-chips a,.hv3-questions details,.hv3-review-link,.hv3-method li,.hv3-modes li,.s3ff-card,.s3st-card,.s3st-panel,.s3st-act-small,.atlas-panel,.atlas-summary,.atlas-feature,.atlas-card,.atlas-directory a,article[class*="-program-card"],article[class$="-app-card"],article[class$="-feature-card"],.tsdh-document-row,.safe3-qcm-card) { --tile-opacity: .29; }
  html body.studio-body :is(#studio-navigation a,.studio-formation-search,.studio-footer-group,.studio-results>li,.studio-home-tiles a,.studio-topic-index li a,.hv3-topic-grid a,.hv3-roles a,.hv3-services article,.hv3-credentials li,.hv3-chips a,.hv3-questions details,.hv3-review-link,.hv3-method li,.hv3-modes li,.s3ff-card,.s3st-card,.s3st-panel,.s3st-act-small,.atlas-panel,.atlas-summary,.atlas-feature,.atlas-card,.atlas-directory a,article[class*="-program-card"],article[class$="-app-card"],article[class$="-feature-card"],.tsdh-document-row,.safe3-qcm-card):is(:hover,:focus-within) {
    --tile-opacity: 1; box-shadow: inset 0 0 16px color-mix(in srgb,var(--tile-edge) 12%,transparent);
  }
  html body.studio-body #studio-navigation a[aria-current=page] { --tile-opacity: .82; color: var(--graphite-text); box-shadow: inset 3px 0 var(--tile-edge); }
  html body.studio-body #studio-navigation .current-menu-ancestor>a { color: var(--graphite-blue); box-shadow: inset 3px 0 var(--tile-edge); }
  html body.studio-body :is(.hv3-topic-grid a,.hv3-roles a,.hv3-chips a,.atlas-card,.atlas-directory a,#studio-navigation a):focus-visible {
    outline: 2px solid var(--graphite-focus); outline-offset: -4px;
  }

  /* CTAs are real links throughout. In-text citations, breadcrumbs and lists of anchors retain link typography. */
  html body.studio-body :is(.hv3-text-link,.hv3-btn,.hv3-expand,.hv3-gallery-controls button,.hv3-dialog button,.s3ffbtn,.atlas-cta,.atlas-jump,.atlas-secondary a,.atlas-section-head>a,.atlas-note>a,.atlas-pdf a,.atlas-pdf button,.atlas-side-search,.studio-formation-link,.studio-action a,.studio-home-section-head a,.studio-stat-sources a,.s3v3-doc,.wp-block-button__link,.studio-home-cta,.studio-entry a[class*="-button"],.atlas-reading p:has(>a+a)>a,.atlas-reading p>a:only-child:is([href*="contact"],[href*="rejoindre"],[href*="/applications/"],[href$=".pdf"],[data-live]),.atlas-panel a[data-live],.hv3-dialog-visual a,.studio-footer address a) {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .35em; max-width: 100%;
    min-height: 40px; padding: .42em .78em; border: 1px solid #637386; border-radius: 5px;
    background: #262b33; color: #e6edfa; text-decoration: none; text-align: start; line-height: 1.32; font-weight: 620; overflow-wrap: anywhere;
  }
  html body.studio-body :is(.atlas-reading p:has(>a+a)>a,.atlas-reading p>a.s3v3-doc) { margin-block: .2rem; }
  html body.studio-body :is(.hv3-text-link,.hv3-btn,.s3ffbtn,.atlas-cta,.atlas-jump,.atlas-secondary a,.atlas-note>a,.atlas-pdf a,.atlas-panel a[data-live],.studio-action a,.studio-formation-link,.s3v3-doc,.atlas-reading p:has(>a+a)>a):hover {
    color: #fff; border-color: var(--graphite-blue); background: #353d49;
  }
  html body.studio-body :is(#studio-top .studio-action li:first-child a,.studio-action li:first-child a,.hv3-btn--primary,.s3ffbtn.primary,.wp-block-button__link:not(.has-background),.studio-home-cta,.studio-formation-search button) {
    background: #252b34; color: var(--brand-navy); border: 1px solid #657d9a;
  }
  html body.studio-body .studio-action li:first-child a .studio-symbol { color: inherit; }
  html body.studio-body :is(#studio-top .studio-action li:first-child a,.studio-action li:first-child a,.hv3-btn--primary,.s3ffbtn.primary,.studio-home-cta,.studio-formation-search button):hover { background: #303945; color: var(--brand-navy); }
  html body.studio-body .hv3 .hv3-finder input { flex: 1 1 0; width: auto; min-width: 0; }
  html body.studio-body .hv3 .hv3-finder button[type=submit] { flex: none; white-space: nowrap; overflow-wrap: normal; }
  html body.studio-body #studio-top .studio-action a { min-height: 44px; }
  html body.studio-body .studio-formation-link { display: flex; }
  html body.studio-body .s3v3-gallery-grid .s3v3-doc { display: grid; text-align: start; justify-content: stretch; }
  html body.studio-body .s3ff-dialog .s3ff-transcript { color: #1b1b1f; background: #f4f4f5; }
  html body.studio-body :is(.hv3-finder,.hv3-search,.atlas-search) input:focus-visible,
  html body.studio-body :is(a,button,summary,select,textarea,input):focus-visible { outline: 2px solid var(--graphite-focus); outline-offset: 2px; }
  html body.studio-body :is(.studio-prose,.atlas-reading,.hv3) :where(p,li)>a:not([class]) { text-underline-offset: .2em; }
  html body.studio-body .s3m-grid article.s3m-card {
    --tile-edge: var(--graphite-blue); --s3m-edge: color-mix(in srgb,var(--tile-edge) 29%,var(--graphite-surface));
    --s3m-surface: var(--graphite-surface); background: var(--s3m-edge); transition: background-color .16s ease;
  }
  html body.studio-body .s3m-grid article.s3m-card:nth-child(3n+2) { --tile-edge: var(--graphite-wine); }
  html body.studio-body .s3m-grid article.s3m-card:nth-child(3n) { --tile-edge: var(--graphite-violet); }
  html body.studio-body .s3m-grid article.s3m-card:is(:hover,:focus-within) { --s3m-edge: var(--tile-edge); --s3m-surface: var(--graphite-raised); }
  html body.studio-body .s3m-grid .s3m-info { border-top-width: 1px; }
  html body.studio-body .atlas-main a:not([class],.atlas-panel a[data-live],.atlas-reading p:has(>a+a)>a,.atlas-reading p>a[href*="contact"]) { color: var(--graphite-blue); }
  html body.studio-body .studio-editorial-entry :is([class$="-button--primary"],[class*="-button--primary "]) { background: #b6cbe7 !important; border-color: #b6cbe7 !important; color: #12171f !important; }
  html body.studio-body .studio-editorial-entry :is(a,button,input,select,textarea,summary):focus-visible { outline-color: var(--graphite-focus); box-shadow: 0 0 0 1px #202024; }
  html body.studio-body .studio-editorial-entry article[class*="-program-card"] > [class$="__prerequisite"] { color: #e5c8d5; background-color: #32262e; }
  html body.studio-body .studio-editorial-entry article[class*="-program-card"] > [class$="__prerequisite"] strong { color: #e5c8d5; }
  body.studio-body :is(.has-studio-menthe-color,.has-studio-bleu-color) { color: var(--graphite-blue); }
  body.studio-body :is(.has-studio-orange-color,.has-studio-bordeaux-color) { color: var(--graphite-wine); }
}
@media screen and (max-width: 390px) {
  html body.studio-body #studio-top .studio-action a { gap: .2rem; padding-inline: .26rem; }
}
@media screen {
  /* Each original app supplies its own scoring, printing and drawing behavior. Limit the common skin to UI. */
  html:has(>body>.studio-app-nav) {
    --bg: var(--graphite-base); --bg2: var(--graphite-surface); --page: var(--graphite-base); --canvas: var(--graphite-base);
    --surface: var(--graphite-surface); --panel: var(--graphite-surface); --panel2: var(--graphite-raised);
    --line: var(--graphite-line); --soft-line: #3a3a40; --ink: var(--graphite-text); --ink-deep: #fff; --muted: var(--graphite-muted);
    --teal: var(--graphite-blue); --brand: var(--graphite-blue); --blue: var(--graphite-blue); --cyan: var(--graphite-blue);
    --teal-hover: #cadcf3; --teal2: var(--graphite-blue); --teal-dark: #a2badc; --teal-pale: #262b33; --teal-soft: #2a303a;
    --blue-soft: #2a303a; --orange: var(--graphite-wine); --violet: var(--graphite-violet);
  }
  html body:has(>.studio-app-nav),html body .studio-app-nav { background: var(--graphite-base); color: var(--graphite-text); }
  html body:has(>.studio-app-nav) :is(.topbar,.top,.app-header,.sidebar,.tab-nav,.top-inner,.header-inner,.app-footer,.appFooter,.sidefoot) {
    background: var(--graphite-surface); color: var(--graphite-text); border-color: var(--graphite-line);
  }
  html body:has(>.studio-app-nav) :is(.studio-app-return,a.btn,footer a) {
    display: inline-flex; align-items: center; justify-content: center; gap: .45em; max-width: 100%; min-height: 40px; padding: .4em .77em;
    color: #e6edfa; background: #262b33; border: 1px solid #637386; border-radius: 5px; text-decoration: none; font-weight: 620;
  }
  html body:has(>.studio-app-nav) :is(.card,.box,.panel,.group,.result-panel,.result-card,.workspace-card,.signature-card,.risk-card,.employee-card,.unitcard,.formsection,.kpi,.step,.welcome,.method-intro) {
    --tile-edge: var(--graphite-blue); --tile-opacity: .29; --edge: var(--tile-edge);
    position: relative; border: 0; border-radius: 0; clip-path: none;
    background: linear-gradient(225deg,transparent 8.1px,#29292c 8.6px,#202023 50%,#232326 100%); color: var(--graphite-text); box-shadow: none;
  }
  html body:has(>.studio-app-nav) :is(.card,.box,.panel,.group,.result-panel,.result-card,.workspace-card,.signature-card,.risk-card,.employee-card,.unitcard,.formsection,.kpi,.step,.welcome,.method-intro):nth-child(3n+2) { --tile-edge: var(--graphite-wine); }
  html body:has(>.studio-app-nav) :is(.card,.box,.panel,.group,.result-panel,.result-card,.workspace-card,.signature-card,.risk-card,.employee-card,.unitcard,.formsection,.kpi,.step,.welcome,.method-intro):nth-child(3n) { --tile-edge: var(--graphite-violet); }
  html body:has(>.studio-app-nav) :is(.card,.box,.panel,.group,.result-panel,.result-card,.workspace-card,.signature-card,.risk-card,.employee-card,.unitcard,.formsection,.kpi,.step,.welcome,.method-intro)::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--tile-edge);
    clip-path: var(--tile-ring); opacity: var(--tile-opacity); transition: opacity .16s ease;
  }
  html body:has(>.studio-app-nav) :is(.card,.box,.panel,.group,.result-panel,.result-card,.workspace-card,.signature-card,.risk-card,.employee-card,.unitcard,.formsection,.kpi,.step,.welcome,.method-intro):is(:hover,:focus-within) { --tile-opacity: 1; }
  html body:has(>.studio-app-nav) :is(.studio-app-return,a.btn,footer a):hover { background: #353d49; color: #fff; border-color: var(--graphite-blue); }
  html body:has(>.studio-app-nav) :where(button:not(.danger),.btn):hover { border-color: var(--graphite-blue); }
  html body:has(>.studio-app-nav) :is(button.primary,.btn.primary,button.active,.tab.active,button[aria-selected=true],.choice.selected,.nav button.active) {
    background: #293340; border-color: #657d9a; color: var(--brand-navy);
  }
  html body:has(>.studio-app-nav) :focus-visible { outline: 2px solid var(--graphite-focus); outline-offset: 2px; }
  html body:has(>.studio-app-nav) :is(.brand,.section-label,.subtitle,.field-help,.credit) { color: var(--graphite-muted); }
  html body:has(>.studio-app-nav[data-app=ERGO3SAFE]) :is(.videoDropZone,.videoDemoBox,.videoDisplayBar,.videoReaderControls,.privacyStrip,.videoDiagnosticDetails) { background: var(--graphite-surface); color: var(--graphite-text); border-color: var(--graphite-line); }
  html body:has(>.studio-app-nav[data-app=ERGO3SAFE]) :is(.videoDropZone input,.stepNumber,.media-tabs button) { background: #2a2e36; border-color: #5b6675; color: #e5ecf6; }
  html body:has(>.studio-app-nav[data-app=ERGO3SAFE]) :is(.videoDropZone small,.videoDropZone label,.privacyStrip strong) { color: var(--graphite-muted); }
  html body:has(>.studio-app-nav[data-app=ERGO3SAFE]) .privacyStrip::before { background: var(--graphite-blue); }
  /* Mémo SST illustrations and the facsimile viewer have an intentionally light page area. */
  html:has(body.studio-memo-reader),body.studio-memo-reader {
    --ink: var(--graphite-text); --muted: var(--graphite-muted); --line: var(--graphite-line); --paper: var(--graphite-surface);
    --cyan: var(--graphite-blue); --blue: var(--graphite-blue); --violet: var(--graphite-violet); --wash: var(--graphite-base);
    --shadow: 0 10px 35px #05050735; --focus: var(--graphite-focus); background: var(--graphite-base); color: var(--graphite-text); color-scheme: dark;
  }
  body.studio-memo-reader :is(.topbar,.sidebar,.hero,.notice,.resourcepanel,.readerhero,.prose,.correction-notice,dialog,.homecard,.prevnext a,.skip) {
    background: var(--graphite-surface); color: var(--graphite-text); border-color: var(--graphite-line);
  }
  body.studio-memo-reader .hero,.studio-memo { background: var(--graphite-glass); }
  body.studio-memo-reader :is(.navitem,.navtabs button,.icon-button,.text-button,.secondary-button,.searchbox input,.readertools button) { background: #28282c; color: var(--graphite-text); border-color: #565660; }
  body.studio-memo-reader :is(.primary-button,.navitem[aria-current=page],.readertools button[aria-pressed=true],.navtabs button.active) { background: #293340; color: var(--brand-navy); border-color: #657d9a; }
  body.studio-memo-reader :is(.prevnext a,.resourceactions a,.herolinks a) { display: inline-flex; align-items: center; min-height: 42px; padding: .45rem .8rem; border: 1px solid #65748b; border-radius: 5px; font-weight: 650; text-decoration: none; }
  body.studio-memo-reader .homecard { --tile-edge: var(--graphite-blue); --tile-opacity: .29; position: relative; border: 0; border-radius: 0; clip-path: var(--tile-shape); background: var(--graphite-glass); }
  body.studio-memo-reader .homecard:nth-child(3n+2) { --tile-edge: var(--graphite-wine); }
  body.studio-memo-reader .homecard:nth-child(3n) { --tile-edge: var(--graphite-violet); }
  body.studio-memo-reader .homecard::after { content: ""; position: absolute; inset: 0; pointer-events: none; clip-path: var(--tile-ring); background: var(--tile-edge); opacity: var(--tile-opacity); transition: opacity .16s; }
  body.studio-memo-reader .homecard:is(:hover,:focus-within) { --tile-opacity: 1; }
  body.studio-memo-reader .homecard .cardnumber { color: var(--tile-edge); background: #303035; }
  body.studio-memo-reader .homecard .cardarrow { color: var(--tile-edge); }
  body.studio-memo-reader :is(.prose figure img,.prose .drawing img,#largeImage) { background-color: white; color-scheme: light; }
  body.studio-memo-reader>main>section { background: var(--graphite-surface); color: var(--graphite-text); border-color: var(--graphite-line); }
  body.studio-memo-reader>main :is(h1,h2,h3) { color: var(--graphite-text); }
  body.studio-memo-reader>main a,body.studio-memo-reader>header:not(.topbar) a { color: var(--graphite-blue); }
  body.studio-memo-reader>main .warning { color: #f1e2cb; background: #302a22; }
  body.studio-memo-reader>main figure img { background-color: #fff; }
  body.studio-memo-reader.contrast { --graphite-text: white; --graphite-muted: #e2e2e5; --graphite-line: #909098; --graphite-focus: #fff; }
  body.studio-memo-reader.contrast .homecard { --tile-opacity: .79; }
}
@media screen and (forced-colors: active) {
  html body.studio-body :is(.hv3-topic-grid a,.hv3-roles a,.hv3-btn,.s3ffbtn,.studio-action a,.s3ff-card,.atlas-card,.s3v3-doc,#studio-navigation a),body.studio-memo-reader .homecard { clip-path: none; border: 1px solid ButtonText; }
  html body :focus-visible { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  body.studio-body *::after, body:has(>.studio-app-nav) *::after { transition-duration: 0s !important; }
}

/* Couleurs de marque sur les surfaces anthracite et en verre. */
@media screen and (forced-colors: none) {
  html body.studio-body #studio-main :is(h1, .studio-home-title):not(.has-text-color),
  html body.studio-body :is(.studio-footer-brand > a,.studio-brand-name) {
    color: var(--brand-navy);
  }
  html body.studio-body #studio-main .hv3-hero h1 { max-width: min(100%,19ch); }
  html body.studio-body #studio-main :is(h1,.studio-home-title) em { color: var(--brand-burgundy); }
  html body.studio-body #studio-main :is(.hv3-heading h2,.atlas-panel h2,.atlas-section h2,.studio-home-section-head h2,.studio-statistics > h2,.studio-editorial-entry h2,.s3ff-dialog h2):not(.has-text-color),
  html body.studio-body :is(.studio-footer-group > h2,.hv3-dialog-head h2,.s3ff-dialog-head h2) {
    color: var(--brand-burgundy);
  }
  html body.studio-body #studio-main :is(.hv3-eyebrow,.atlas-kicker,.studio-home-location,.s3ff-family,.hv3-step,.s3st-group-name),
  html body.studio-body .s3ff-dialog .s3ff-family {
    color: var(--brand-burgundy);
  }
  html body.studio-body .atlas-kicker::before { background: currentColor; width: 1em; }
  html body.studio-body #studio-main :is(.hv3-topic-caption strong,.hv3-roles strong,.s3ff-card h3,.s3m-info h3,.atlas-panel article > h3,.studio-editorial-entry article[class*="-program-card"] > h3,.s3st-section-heading h3) {
    color: var(--brand-navy);
  }
  html body.studio-body #studio-main :is(.atlas-panel article > h3,.s3m-info h3,.studio-editorial-entry article[class*="-program-card"] > h3) a:not(.has-text-color),
  html body.studio-body #studio-main .s3m-info h3 a span { color: inherit; }
  html body.studio-body .qcm3-bibliotheque .qcm3-carte > span,
  html body.studio-body .qcm3-bibliotheque .qcm3-carte:visited > span {
    flex: 1;
    color: var(--brand-navy);
  }
  html body.studio-body .qcm3-bibliotheque li:nth-child(even) .qcm3-carte > span {
    color: var(--brand-burgundy);
  }
  html body.studio-body .studio-rail #studio-navigation li > a[aria-current=page],
  html body.studio-body .studio-rail #studio-navigation li.current-menu-item > a,
  html body.studio-body .studio-rail #studio-navigation li.current_page_item > a {
    color: var(--brand-navy);
  }
  html body.studio-body #studio-navigation a[aria-current=page] :is(.studio-nav-icon,.studio-symbol),
  html body.studio-body #studio-navigation :is(.current-menu-item,.current_page_item) > a :is(.studio-nav-icon,.studio-symbol) { color: inherit; }
  html body.studio-body #studio-navigation .current-menu-ancestor:not(.current-menu-item) > a { color: var(--graphite-text); }
  html body.studio-body :is(#studio-top .studio-action,.studio-action) li a,
  html body.studio-body #studio-main :is(.hv3 .hv3-text-link,.hv3 .hv3-hero-links a.hv3-btn,.studio-formation-link) {
    color: var(--brand-burgundy);
    background: #2c252b;
    border-color: #8a6877;
  }
  html body.studio-body :is(#studio-top .studio-action,.studio-action) li:first-child a,
  html body.studio-body :is(.hv3-btn--primary,.s3ffbtn.primary,.studio-home-cta,.studio-formation-search button,.wp-block-button__link:not(.has-background,.has-text-color),.studio-skip),
  html body.studio-body #studio-main :is(.hv3 .hv3-finder button.hv3-btn--primary,.hv3 .hv3-hero-links a.hv3-btn--primary,.hv3 .hv3-hero-links a[href$="contact.html"],.hv3 .hv3-hero-links a[href$="/contact/"],.s3ff .s3ffbtn.primary) {
    color: var(--brand-navy);
    background: #252b34;
    border-color: #657d9a;
  }
  html body.studio-body :is(#studio-top .studio-action,.studio-action) a .studio-symbol { color: inherit; }
  html body.studio-body :is(#studio-top .studio-action a,.studio-action a,.hv3-text-link,.hv3-btn--primary,.hv3-hero-links .hv3-btn,.s3ffbtn.primary,.studio-home-cta,.studio-formation-search button,.studio-formation-link):is(:hover,:focus-visible) {
    text-decoration: underline;
    text-underline-offset: .15em;
  }
  html body.studio-body .studio-editorial-entry :is([class$="-button--primary"],[class*="-button--primary "]) {
    color: var(--brand-navy) !important; background: #252b34 !important; border-color: #657d9a !important;
  }
  html body.studio-body .s3st :is(.s3st-card dd,.s3st-legend dd,.s3st-bar-label,.s3st-bar-label b) { color: var(--graphite-text); }
  html body.studio-body #studio-main :is(.hv3-lead,.hv3-block > p,.hv3-topic-caption div > span,.hv3-roles a > span,.hv3-method p,.hv3-modes p,.atlas-feature > div > p:not(.atlas-kicker),.s3m-info p) {
    color: var(--graphite-text);
  }
  /* Block colour presets can also be used for borders; scope the inks to text. */
  body.studio-body :is(.has-studio-encre-bleue-color,.has-studio-bleu-color,.has-studio-menthe-color) { --chosen-ink: var(--brand-navy); }
  body.studio-body :is(.has-studio-encre-bordeaux-color,.has-studio-bordeaux-color,.has-studio-orange-color) { --chosen-ink: var(--brand-burgundy); }
  body.studio-body :is(.has-studio-encre-bleue-color,.has-studio-bleu-color,.has-studio-menthe-color,.has-studio-encre-bordeaux-color,.has-studio-bordeaux-color,.has-studio-orange-color):not(:where(.has-background,.has-background *,[style*="background" i],[style*="background" i] *,[style*="color:" i])) { color: var(--chosen-ink) !important; }
}

/* Couleurs de lecture des applications autonomes et du Mémo SST. */
@media screen and (forced-colors: none) and (prefers-contrast: no-preference) {
  body:has(>.studio-app-nav[data-app]), body.studio-memo-reader:not(.contrast) {
    --app-title-ink: var(--brand-navy, #87b0e8);
    --app-action-ink: var(--brand-burgundy, #dd88a4);
  }

  /* Les titres sont posés directement sur le fond de leur composant. */
  html body:has(>.studio-app-nav[data-app]) :is(header h1, main h1, .page-heading h2, .pagehead h2, .welcome h2, .card-head>h2, .section-head>h2, :where(#preparer,#methodes)>h2, .dialog-top>h2),
  html body.studio-memo-reader:not(.contrast) :is(header>h1, .hero>h1, .readerhero>h1, .sectionheading h2, .resourcepanel>h2, main>section>h2):not(:empty) {
    box-sizing: border-box;
    max-width: 100%;
    color: var(--app-title-ink);
    overflow-wrap: anywhere;
    text-shadow: none;
  }
  html body:has(>.studio-app-nav[data-app]) :is(header h1, main h1) :is(em,strong),
  html body.studio-memo-reader:not(.contrast) :is(.hero>h1,.readerhero>h1) em { color: inherit; }
  html body:has(>.studio-app-nav[data-app]) :is(.identity,.brand) h1 { overflow-wrap: normal; }

  /* Les actions principales gardent leur état sélectionné. Les commandes de danger,
     les barèmes, le canevas, les images de soins et les commandes multimédias ont leur rendu métier. */
  html body:has(>.studio-app-nav[data-app]) :is(.studio-app-return, .header-actions>#loadBtn, .header-actions>#moreBtn,
      .topactions>button.quiet, .toolbar>#import, .toolbar>#help, .toolbar>#atlas, .toolbar>#backup,
      .export-bar .toolbar>.btn:not(.danger,.primary), button#shareBtn, .workflow>a, .workflow>#fullscreenBtn),
  html body.studio-memo-reader:not(.contrast) :is(.herolinks>.secondary-button, .resourceactions>a,
      .readertools>button:not([aria-pressed=true]), .readertop>.back, .prevnext>a,
      header:not(.topbar)>a, main>.toc>a, main>.warning>a, main>p>a, main>section>p>a) {
    background: #2c252b;
    color: var(--app-action-ink);
    border-color: #8a6877;
    text-shadow: none;
  }
  html body.studio-memo-reader:not(.contrast) :is(header:not(.topbar)>a, main>.toc>a, main>.warning>a, main>p>a, main>section>p>a) {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    overflow-wrap: anywhere;
    background: transparent;
    text-decoration: underline;
  }
  html body:has(>.studio-app-nav[data-app]) :is(.studio-app-return, .workflow>a):is(:hover,:focus-visible),
  html body.studio-memo-reader:not(.contrast) :is(.resourceactions>a,.herolinks>a,.readertop>.back,.prevnext>a):is(:hover,:focus-visible) {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: .14em;
  }
  html body.studio-memo-reader:not(.contrast) :is(.hero .eyebrow,.readerhero .eyebrow,.headername .eyebrow,.sectionheading .eyebrow,
      .homecard .cardnumber) {
    color: var(--app-title-ink);
  }
  html body.studio-memo-reader:not(.contrast) :is(.hero,.readerhero,.headername,.sectionheading) .eyebrow {
    display: inline-block;
    max-width: 100%;
  }
  html body.studio-memo-reader:not(.contrast) .homecard:nth-child(2n) .cardnumber {
    color: var(--app-action-ink);
  }
  html body.studio-memo-reader:not(.contrast) .homecard .cardarrow { color: var(--graphite-text,#f5f5f7); }
}

/* Contact actions, complete footer navigation and official team portrait. */
@media screen {
  html body.studio-body #studio-main .studio-contact-cta,
  html body.studio-body footer.studio-footer a[href] {
    --contact-ink: var(--brand-navy, #87b0e8);
    --contact-glass: #252b34;
    --contact-line: #506984;
    display: inline-flex; align-items: center; justify-content: flex-start; box-sizing: border-box;
    width: fit-content; max-width: 100%; min-height: 2.75rem; padding: .48rem .82rem;
    color: var(--contact-ink) !important;
    background: linear-gradient(155deg, color-mix(in srgb, var(--contact-glass) 87%, #999 13%), var(--contact-glass) 60%) !important;
    border: 1px solid var(--contact-line) !important; border-radius: .4rem;
    box-shadow: inset 0 1px 0 #ffffff12;
    text-align: start; line-height: 1.28; text-decoration: none; white-space: normal; overflow-wrap: anywhere;
    clip-path: none; scroll-margin-block-start: 6rem;
  }
  html body.studio-body #studio-main .studio-contact-cta:is(.studio-contact-cta--question,.studio-contact-cta--custom_action),
  html body.studio-body footer.studio-footer :is(.studio-footer-group:nth-of-type(even),.studio-contact) a[href],
  html body.studio-body footer.studio-footer .studio-action li:nth-child(even) a[href] {
    --contact-ink: var(--brand-burgundy, #dd88a4); --contact-glass: #2c252b; --contact-line: #795164;
  }
  html body.studio-body #studio-main .studio-contact-cta:is(:hover,:focus-visible),
  html body.studio-body footer.studio-footer a[href]:is(:hover,:focus-visible) {
    color: var(--contact-ink) !important; border-color: var(--contact-ink) !important;
    box-shadow: inset 0 1px 0 #ffffff26, 0 0 .6rem color-mix(in srgb, var(--contact-ink) 28%, transparent);
  }
  html body.studio-body #studio-main .studio-contact-cta:focus-visible,
  html body.studio-body footer.studio-footer a[href]:focus-visible {
    outline: 2px solid var(--contact-ink); outline-offset: 2px;
  }
  html body.studio-body footer.studio-footer .studio-footer-group ul { display: grid; justify-items: start; gap: .4rem; }
  html body.studio-body footer.studio-footer .studio-footer-group ul ul { margin: .4rem 0 0 .5rem; }
  html body.studio-body footer.studio-footer .studio-contact { gap: .4rem; }
  html body.studio-body .studio-contact-choices { display: flex; flex-wrap: wrap; gap: .6rem; }
  html body.studio-body #studio-main .studio-profil-morgan { display: flow-root; }
  html body.studio-body #studio-main img.studio-portrait-morgan {
    display: block; box-sizing: border-box; width: min(42%, 340px); max-width: 100%;
    height: auto; aspect-ratio: 640 / 954; object-fit: contain; object-position: center;
    border: 1px solid #555760; border-radius: .55rem; filter: saturate(.96) contrast(1.035);
  }
  html body.studio-body #studio-main .studio-profil-morgan > .studio-portrait-morgan { float: left; margin: 0 clamp(1rem, 3vw, 2.2rem) .8rem 0; }
  html body.studio-body #studio-main .s3ap-identity__image { aspect-ratio: auto; height: auto; min-height: 0; }
  html body.studio-body #studio-main .s3ap-identity__image .studio-portrait-morgan { position: static; margin-inline: auto; width: min(100%,340px); }
  @media (max-width: 540px) {
    html body.studio-body #studio-main .studio-profil-morgan > .studio-portrait-morgan,
    html body.studio-body #studio-main .s3ap-identity__image .studio-portrait-morgan {
      width: min(80vw, 100%, 295px); float: none; margin: 0 auto 1rem;
    }
  }
}
@media (forced-colors: active) {
  html body.studio-body #studio-main .studio-contact-cta,
  html body.studio-body footer.studio-footer a[href] { color: LinkText !important; background: Canvas !important; border-color: ButtonText !important; }
}

/* 3SAFE public editorial pages. Existing shortcodes retain their markup and interactions. */
@media screen {
  html body.studio-body #studio-main :is(
    .s3cse, .s3mgr, .s3ref, .s3aipr-page, .s3duerp, .s3rps, .s3fi-root, .s3rc-page,
    .s3sos, .s3et, .s3th, .s3he, .s3rr, .s3rm, .s3aib-page, .s3hse, .ts-quality-page, .s3ap
  ) {
    color-scheme: dark;
    color: var(--graphite-text);
    background: var(--graphite-base) !important;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;

    & :where(p, li, dd, dt, small, label, b, strong, em, span, blockquote, td):not(:where(
      .s3st *, svg *, [role="alert"], [role="status"], [role="alert"] *, [role="status"] *, [class*="form-status"], [class*="form__status"], [class*="form-status"] *, [class*="form__status"] *,
      [class*="-chart"] *, [class*="-stat-"] *, [class*="-ring"] *, [class*="-visual"] *, [class*="-logo"] *
    )) { color: var(--graphite-text) !important; }

    /* The legacy templates mix white, bright blue and tinted panels, sometimes with gradients. */
    & :is([class$="-main"], section:not(.s3st):not(.s3st *), [class$="-container"], [class*="-container "], [class*="-program-section__content"],
       [class$="-program-section__body"], [class$="-program-grid"], [class*="-program-grid "], [class$="-choice-grid"], [class$="-domain-grid"]) {
      background: var(--graphite-surface) !important;
      border-color: var(--graphite-line);
    }
    & :is([class$="-hero"], [class$="-cta"], [class$="-cta-card"], [class$="-anchor-nav"], [class$="-legal-panel__header"],
       [class$="-modal__header"], [class*="-dialog__header"], [class*="-dialog__footer"], [class$="-viewer-toolbar"],
       [class$="-mobile-actions"], [class$="-mobile-cta"]) {
      background: var(--graphite-glass) !important; color: var(--graphite-text); border-color: var(--graphite-line);
    }
    & :is(article, details, summary, aside, [class$="-search-panel"], [class$="-program-toolbar"], [class$="-accordion-toolbar"],
       [class$="-card"], [class*="-card "], [class$="-panel"], [class$="-quality-link"], [class$="-fit-banner"],
       [class$="-process"], [class$="-legal-callout"], [class$="-legal-note"], [class$="-program-note"], [class$="-reference-box"],
       [class$="-program-meta"], [class$="__meta"], [class$="__result"], [class$="__highlights"], [class$="-resource-links"],
       [class$="-practical-grid"], [class$="-dialog"], [class$="__shell"], [class*="-dialog__panel"], [class$="-modal__dialog"],
       [class$="-dialog__content"], [class$="-dialog__note"], [class$="-viewer-placeholder"], [class$="-viewer-fallback"], .s3csefix-law-update,
       [class$="-comparison__head"], [class$="-comparison__cell"], [class$="-program-card__visual"], [class$="-resource-row"],
       [class$="-methods-cards"] > a, [class$="-resource-links"] > a, [class$="-process"] > li, .s3ap-timeline > li, .s3ap-resource-list > a,
       table, th, td):not(:where(.s3st, .s3st *, [class$="-chart"] *, [class*="-logo"], [class*="-source-card__image"])) {
      color: var(--graphite-text); background: var(--graphite-glass) !important; border-color: var(--graphite-line) !important;
    }
    & :is([class$="-icon-box"], [class$="-card-icon"], [class$="__icon"], [class*="__icon--"], [class$="__count"],
       [class$="-group-count"], [class$="-summary-count"], [class$="-summary-icon"], [class$="__chevron"],
       [class$="__version"], [class$="__badge"], [class$="__category"], [class$="-chip"], [class*="-chip "],
       [class$="-legal-link__reference"], [class$="-legal-link__ref"], [class$="-resource-card__arrow"],
       [class$="-search-field__control"], [class$="-filter-status"], [class$="-process"] > li > span:first-child,
       [class$="-resource-links"] > a > span:first-child, [class$="-practical-grid"] > article > span:first-child,
       [class$="__chips"] > span, [class$="__badges"] > span:not([class*="--sst"],[class*="--pssm"]), [class*="-legal-link__ref "],
       [class$="-reference-links"] a, [class$="-summary-copy"] em, [class$="-program-section__meta"] em,
       [class$="-quality-link"] > span:first-child, [class$="-feature-card"] > span:first-child,
       [class$="-choice-card"] > span:first-child, [class$="-overview-card"] > span:first-child,
       [class$="-legal-callout"] > span:first-child, [class$="-reference-box"] > div > span,
       [class$="-program-group"] > summary > i, .s3ap-credential > span:first-child,
       .s3ap-quote-card__footer > span, .s3csefix-icon) {
      color: var(--graphite-text); background: var(--graphite-raised) !important; border-color: var(--graphite-line);
    }
    & :is(a:not([class]), [class$="-text-link"], [class$="-legal-link"], [class$="-email"], [class$="__email"], [class$="__mail"]) {
      color: var(--brand-navy);
    }
    & :is(input:not([type="checkbox"],[type="radio"],[type="hidden"],[type="submit"]), select, textarea) {
      background: var(--graphite-base) !important; color: var(--graphite-text) !important; border-color: #666873 !important;
    }
    & :is(input,textarea)::placeholder { color: #c2c5ce !important; opacity: 1; }
    & :is(button:not([class*="source-card__image"]), input[type="submit"], a[class*="-button"], a[class*="-back-top"],
       a[class*="-skip"], a.s3prog-action) {
      background: #252b34 !important; color: var(--brand-navy) !important; border-color: #657d9a !important;
    }
    & :is(button, a[class*="-button"], a.s3prog-action):is(:hover,:focus-visible) { background: #303945 !important; border-color: var(--brand-navy) !important; }
    & :is(a[class*="--burgundy"], button[class*="--quote"], button[class*="--accent"], [class*="-prerequisite"]) {
      color: var(--brand-burgundy) !important; border-color: #9a6980 !important; background: #30262d !important;
    }
    & :is(button, a[class*="-button"], a.s3prog-action) > span:not([class]) { color: inherit !important; }
    & :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--graphite-focus) !important; outline-offset: 2px; }
  }

  /* Form controls and document chrome of the native finder, separate from the document itself. */
  html body.studio-body :is(.s3ff,.s3ff-dialog) :is(.s3ffbtn, button) {
    background: #252b34 !important; color: var(--brand-navy) !important; border-color: #657d9a !important;
  }
  html body.studio-body :is(.s3ff,.s3ff-dialog) :is(label, .s3ff-meta, .s3ff-summary p, dt, dd, .s3ff-status, .s3ff-empty) { color: var(--graphite-text); }
  html body.studio-body.studio-formations-046 #studio-main :is(.atlas-panel,.atlas-summary,.atlas-feature,.atlas-panel details,.atlas-section) {
    color: var(--graphite-text); background-color: var(--graphite-surface); border-color: var(--graphite-line);
  }
  html body.studio-body #studio-main :is(.studio-entry > p,.atlas-reading p,.atlas-reading li,.atlas-panel td,.hv3-lead,.hv3 p) { color: var(--graphite-text); }
  html body.studio-body #studio-main :is(.studio-editorial-head .studio-art-image, .s3prog-thumbnail) { border: 0; }
  /* Wide document previews must fit the content column without cropping the artwork. */
  html body.studio-body #studio-main .studio-entry:has([id^="s3safe-espace_stagiaire-"]) .elementor-widget-image {
    min-width: 0; max-width: 100%;
    & :is(.elementor-widget-container, a, img) { box-sizing: border-box; max-width: 100%; min-width: 0; }
    & img { height: auto; }
  }
  html body.studio-body #studio-main #cmplz-document .cmplz-dropdown {
    & :is(.cmplz-service-description,.cmplz-sharing-data) { box-sizing: border-box; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  }

  /* Headings and editorial subtitles, including headings produced inside page-builder widgets. */
  html body.studio-body :is(#studio-main, .studio-footer, .s3ff-dialog, .hv3-dialog) :is(h1,h2,h3,h4,h5,h6,
    .hv3-eyebrow,.hv3-topic-caption strong,.hv3-roles strong,.atlas-kicker,.atlas-card strong,.studio-home-title,
    .s3ff-family,.s3ff-title,.s3ff-result-head strong,.s3st-group-name,.s3st-section-heading,.qcm3-carte strong,
    [class$="-kicker"],[class*="-kicker "],[class$="__kicker"],[class$="__eyebrow"],[class$="-eyebrow"],
    [class$="__subtitle"],[class$="__title"],[class$="__heading"] > strong,[class$="-overview-card"] strong
  ):not(:where(.s3ff-transcript *, svg *, .s3ql *, .s3ql-app *, .s3ql-wrap *, [role="alert"] *, [role="status"] *)),
  html body.studio-body :is(#studio-main, .studio-footer, .s3ff-dialog, .hv3-dialog) :is(h1,h2,h3,h4,h5,h6):not(:empty) :is(em,b,span,strong,a):not(:where(
    .s3ff-transcript *, svg *, .s3ql *, .s3ql-app *, .s3ql-wrap *, [role="alert"] *, [role="status"] *
  )) { color: var(--brand-navy) !important; }
}
