/* Choix temporaire, sans stockage ni requête réseau. */
body header .theme-switch{display:inline-flex;align-items:center;gap:9px;padding:7px 10px;border:1px solid #c7dce1;border-radius:24px;background:#f7fafb;color:#244652;font:600 11px/1.4 system-ui;cursor:pointer;flex-shrink:0;white-space:nowrap}
.theme-switch-track{position:relative;display:block;width:40px;height:23px;border-radius:20px;background:#a3b5be;transition:background .18s}.theme-switch-track:before{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;background:white;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .18s}.theme-switch[aria-checked=true] .theme-switch-track{background:#26a696}.theme-switch[aria-checked=true] .theme-switch-track:before{transform:translateX(17px)}.theme-switch:focus-visible{outline:3px solid #268fba;outline-offset:4px}
html[data-theme=dark]{color-scheme:dark;--paper:#101d25;--ink:#e1edf2;--muted:#adbec9;--line:#354b58;--green:#64d1b6}
html[data-theme=dark] body{background:radial-gradient(ellipse at top right,#173a40,transparent 60%),#101d25!important;color:#e1edf2}
html[data-theme=dark] body header{border-color:#354b58}html[data-theme=dark] :is(header .brand,header .back-home,footer,footer a,.legal-footer,.legal-footer strong,.home-intro>p,.community-help){color:#c5d8e2!important}
html[data-theme=dark] body header .theme-switch{background:#213742;color:#e1edf2;border-color:#506b79}
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(.space,.community,.panel,.metric,.service-panel,.app-click-panel,.level,.criterion,.stat,.notice,.theme-nav,.qcard,.report-card,.card,.topic-card){background:#1b2e39!important;border-color:#354e5c!important;color:#e1edf2}
html[data-theme=dark] .home .app-tile{background:#243b48!important;border-color:#3b5564!important;color:#e1edf2}html[data-theme=dark] .home .app-tile:hover{background:#2e4856!important}html[data-theme=dark] .home .admin h3{color:#e1edf2}
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(h1,h2,h3,h4,label,summary){color:#e1edf2}html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(p,small,.help,.micro,.dashboard-note,.app-summary,.community-meta time,.bar-value,.priority a){color:#b9ccd6!important}
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(input,textarea,select,.answer,.btn.secondary,.community-delete){background:#142630!important;color:#e1edf2!important;border-color:#4c6979!important}
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(.answer.selected,.answer[aria-pressed=true],.score-option:has(input:checked) span){background:#286858!important;color:#fff!important}
html[data-theme=dark] :is(th,td,.app-click-row,.community-comment){border-color:#3a5360}html[data-theme=dark] :is(th,.changed,.scope-note,.score-option span){background:#243b48;color:#d6e7ed}
@media(prefers-reduced-motion:reduce){.theme-switch-track,.theme-switch-track:before{transition:none}}@media print{body header .theme-switch{display:none!important}html[data-theme=dark] body{background:white!important;color:black!important}html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(.panel,.metric,.service-panel,.app-click-panel,.criterion,.stat,.card){background:white!important;color:black!important}html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(h1,h2,h3,h4,p,small){color:black!important}}
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(h1 em,.eyebrow,.brand-dot){color:#73dac5!important}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a5bac6!important}

:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #268fba;outline-offset:4px}.build-version{display:block;margin:8px 0;opacity:.8}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Panneaux et sous-panneaux : conserver des fonds sombres avec les textes clairs. */
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(.report-panel,.brief,.lever,.import-zone,.import-panel,.benchmark,.slot,.session-bar,.retro-prime,.action-entry,.summary-banner){background:#1b2e39!important;border-color:#405b69!important;color:#e1edf2}
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(.confidence-pills span,.result-vote,.retained){background:#243b48;color:#e1edf2;border-color:#405b69}
/* Les cartes de poker conservent leur papier clair et leurs valeurs foncées. */
html[data-theme=dark] body .playing-card :is(small,span){color:#243b40!important}
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) .resume-bar{background:#243b48;border-color:#405b69}
html[data-theme=dark] body:not(.evil):not(.kart):not(.scrumanji) :is(.text-button,.app-link,.lever a){color:#8be0d1!important}
html[data-theme=dark] body > header a{color:#c5d8e2!important}
html[data-theme=dark] :is(.kart,.evil,.scrumanji) .eyebrow{color:#b1dccf}
/* Navigation de confidentialité : même typographie sur toutes les pages. */
body footer a.privacy-link{font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700;line-height:1.6;color:#546761;text-decoration:none}
html[data-theme=dark] body footer a.privacy-link{color:#c5d8e2!important}

/* En-tête unique, partagé par les applications et leurs démonstrations. */
@media screen{body:is(.evil,.kart,.scrumanji) > main{max-width:1400px;margin:0 auto;padding:24px}}
@media screen and (max-width:850px){body:is(.evil,.kart,.scrumanji) > main{padding:14px}}
body > header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:20px!important}
body > header .station-header-left{display:grid;gap:12px;min-width:0}
body > header .station-header-row{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
body > header .station-header-row .brand{display:flex;align-items:center;gap:10px;margin:0;flex:none}
body > header .station-header-row a.back-home{display:inline-flex;align-items:center;margin:0!important;padding:0;background:none;border:0;border-radius:0;box-shadow:none;color:#546761;font:700 13px/1.6 system-ui,-apple-system,sans-serif;letter-spacing:normal;text-transform:none;text-decoration:none;white-space:nowrap}
body > header .station-header-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:10px;min-width:0}
body > header .station-header-right .theme-switch{margin:0!important;align-self:flex-end}
body > header .station-header-left .tag{justify-self:start}
@media(max-width:720px){body > header{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}body > header .station-header-right{justify-self:end}body > header .station-header-row{gap:12px}body > header .station-header-row .brand{flex-wrap:wrap}body > header .station-header-row a.back-home{white-space:normal}}

/* ───────── V4.1 : corrections d'affichage ───────── */
/* Accueil : les tuiles « Amélioration continue » prennent toutes la même largeur (EVILSPECTIVE n'est plus écrasé) */
.home .retro .app-list{display:grid!important;align-items:stretch;min-height:0}
.home .space .app-list>*{height:100%}
/* Mobile : en-tête compact, lien de retour sur une seule ligne, logos réduits */
@media(max-width:720px){
 body > header{grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:12px!important}
 body > header .station-header-row{flex-direction:column;align-items:flex-start;gap:4px}
 body > header .station-header-row a.back-home{white-space:nowrap}
 body > header .station-header-right{gap:8px}
 body > header .theme-switch>span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* Bandeau de maintenance dans les applications */
.maintenance-notice{padding:14px 18px;border-radius:8px;background:#ffe1b6!important;color:#873d00!important;font:600 14px/1.6 system-ui,-apple-system,sans-serif}
.maintenance-notice.unavailable{background:#ffdce0!important;color:#991525!important}

/* Langue : masque la page le temps de la traduire (au plus 2,5 s) pour éviter un flash de français */
html[data-i18n-pending] body{visibility:hidden}
.lang-switch{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:32px;padding:0 10px;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit;font:700 12px/1 system-ui,-apple-system,sans-serif;letter-spacing:.06em;cursor:pointer;opacity:.85}
.lang-switch:hover,.lang-switch:focus-visible{opacity:1}
.station-header-right .header-toggles{display:flex;align-items:center;gap:10px;justify-content:flex-end}
