:root{--bg:#f4f6f7;--card:#fff;--text:#19313f;--muted:#536674;--line:#d6e1e7;--accent:#245573;--accent2:#edf4f8;--ok:#276344;--warn:#805910;--bad:#9b3636;--teal:#246b70;--violet:#665786}
html{scroll-padding-top:100px}body{background:var(--bg)}.wrap{max-width:1440px}.brand{font-weight:700;letter-spacing:.01em}.card{border-radius:13px;box-shadow:0 2px 7px #19313f05;padding:20px}p,li{line-height:1.6}.btn{font-weight:600;min-height:42px}.btn.secondary{background:var(--accent2);color:#245573}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #647ba7;outline-offset:3px}textarea,select,input{font-size:16px}h1{font-size:24px;font-weight:650}h2{font-size:19px;font-weight:650}h3{font-weight:650}.small,.source{font-size:13px}.delta.pos,.delta.neg,.good,.risk{color:var(--text)}
.hss-context{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:#eaf1f5;border:1px solid var(--line);border-radius:12px;padding:15px 20px;margin-bottom:16px}.hss-context>div{display:flex;flex-direction:column;gap:5px}.hss-context span{font-size:13px}.hss-context .hss-notices{flex-direction:row;flex-wrap:wrap}.hss-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:start}.hss-nav{position:sticky;top:90px;display:flex;flex-direction:column;gap:7px;padding:10px;background:var(--card);border:1px solid var(--line);border-radius:12px}.hss-nav button{text-align:left}.hss-nav-note{font-size:12px;color:var(--muted);line-height:1.6;margin:14px 8px 5px}.hss-work{min-width:0}.hss-work-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:18px;align-items:start}.hss-single{grid-template-columns:1fr}.hss-central,.hss-consult{min-width:0}.hss-consult>.hss-detail{background:var(--card);padding:15px;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}.hss-detail{margin:14px 0;padding-top:10px;border-top:1px solid var(--line)}.hss-detail>summary,.hss-tools>summary{font-size:14px;font-weight:600;color:var(--accent);padding:7px 0;min-height:40px}.hss-detail>.card{margin-top:12px}.hss-detail[open]>summary{margin-bottom:12px}.hss-role-guide{border-left:4px solid #477d8b}.hss-role-guide dl{display:grid;grid-template-columns:1fr;gap:7px;font-size:13px;line-height:1.55;margin:12px 0}.hss-role-guide dt{font-weight:650;color:var(--accent)}.hss-role-guide dd{margin:0 0 6px}.hss-event{border-left:4px solid #a0742a;background:#fff9ef;border-radius:12px;padding:16px;margin-bottom:16px}.hss-event-badge{background:#f8edd5;color:#74551c}.hss-event .card{background:transparent;border:0;padding:0;box-shadow:none}.hss-consult .threecol,.hss-consult .metrics,.hss-consult .topgrid,.hss-consult .common-metrics{grid-template-columns:1fr}.hss-consult .stakeholder-row{grid-template-columns:1fr}.hss-tools{margin-bottom:10px}.hss-tools .toolbar{margin:12px 0}.hss-reference{margin-top:24px}.hss-report-map{display:flex;flex-wrap:wrap;gap:12px;align-items:start;margin-bottom:20px;padding:16px;background:var(--card);border:1px solid var(--line);border-radius:12px}.hss-report-map>div{display:flex;flex-direction:column;gap:8px}.hss-round-links{display:flex;gap:5px}.hss-round-links .btn{padding:7px 9px;font-size:12px}.hss-page-title{margin:16px 0}.hss-page-title h1{margin-top:8px}.hss-team-role{margin-bottom:16px}.tablewrap{overflow-x:auto;max-width:100%}.hss-central table{width:100%;border-collapse:collapse}.hss-central th,.hss-central td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid var(--line);font-size:14px}.hss-central td>span{display:block;margin-top:7px}.hss-central .hl-field textarea{min-height:90px}.hss-central .twocol,.hss-central .threecol{grid-template-columns:1fr 1fr}.hss-consult .badge{white-space:normal}.hss-central .course-summary{background:#fff}.hl-line{gap:12px}dialog{max-width:min(900px,95vw);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:14px}body:has(dialog[open]){overflow:hidden}
@media(min-width:1200px){.hss-central .common-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1080px){.hss-work-grid{grid-template-columns:1fr}.hss-consult{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hss-consult>.hss-role-guide{grid-column:1/-1}.hss-consult>.card,.hss-consult>.hss-detail{margin:0}.hss-layout{grid-template-columns:165px minmax(0,1fr)}.hss-consult .metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){main{padding:12px}.card{padding:16px}.hss-layout{display:block}.hss-nav{position:static;flex-direction:row;flex-wrap:wrap;margin-bottom:16px}.hss-nav-note{display:none}.hss-context{padding:12px;gap:12px}.hss-consult{display:block}.hss-consult>.card,.hss-consult>.hss-detail{margin-bottom:14px}.hss-central .twocol,.hss-central .threecol,.hss-central .topgrid{grid-template-columns:1fr}.hss-central .metrics{grid-template-columns:repeat(2,1fr)}.hss-report-map{padding:12px;gap:10px}.hss-report-map>div{flex:1 1 170px}.hss-round-links button{flex:1}.hss-central th,.hss-central td{padding:9px;font-size:13px}header{position:relative}html{scroll-padding-top:12px}.btn{min-height:44px}.common-metrics{grid-template-columns:repeat(2,1fr)!important}.hss-nav button{flex:1 1 auto;text-align:center}.hss-central .toolbar{align-items:stretch}.hss-central .toolbar .btn{flex:1 1 150px}.brand{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#app>.card:first-child{padding:10px 20px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}#app>.card:first-child .server-status{display:none}#app>.card:first-child #save-status{margin:0;margin-left:auto}#app>.card:first-child .hss-tools{margin:0}#app>.card:first-child .hss-tools[open]{width:100%}.hss-consult details>.common-situation{padding:8px}.hss-work-grid:has(.hss-report-map){grid-template-columns:1fr}.hss-work-grid:has(.hss-report-map)>.hss-consult{display:block}.hss-work-grid:has(.hss-report-map) .hss-role-guide{margin-top:16px}

.hss-event>.hss-detail{margin:0;border:0;padding:0}.hss-event>.hss-detail>summary{color:#74551c}.hss-draft-tools{font-size:13px;color:var(--muted)}.hss-team-role{margin-bottom:12px}.hss-team-role>#learning-save{margin:0 0 6px}@media(max-width:760px){.hss-nav{display:grid;grid-template-columns:1fr 1fr}.hss-nav button{text-align:center;font-size:14px}.hss-context{font-size:14px}.hss-context span{font-size:12px}header .subtitle{font-size:12px}#app>.card:first-child #save-status{font-size:12px;margin-left:0}.hss-tools>summary{font-size:13px;min-height:28px}.hss-team-role .hss-draft-tools>summary{min-height:32px;padding:6px 0}}

.welcome-guides{margin:20px 0;color:var(--accent)}.welcome-guides>summary{padding:12px 0;font-weight:600}

/* Sizing inside the work area: reserve real space for the contextual help button. */
.hss-work select,.hss-work textarea{box-sizing:border-box;max-width:100%;min-width:0}
.hss-work .hl-line>label{flex:1 1 260px;min-width:0;max-width:100%}
.hss-work .hl-line>label select{display:block;width:100%;box-sizing:border-box}
.hss-work .hl-line>.btn{flex:0 0 auto;max-width:100%;white-space:normal}
@media(max-width:640px){.hss-work .hl-line>label{flex-basis:100%}}

/* Accueil : identité et parcours, sans effet sur les espaces de jeu. */
.welcome-page .welcome-masthead{display:flex;align-items:center;justify-content:space-between;gap:32px;padding-top:18px;padding-bottom:18px}
.welcome-page .welcome-identity{min-width:0;max-width:780px}
.welcome-page .welcome-identity .brand{line-height:1.35;font-size:clamp(17px,2vw,22px);color:#183d54}
.welcome-page .welcome-identity .sub{line-height:1.5;margin-top:5px}
.welcome-page .welcome-logo{width:160px;height:auto;display:block;flex:0 0 auto}
.welcome-page .welcome-header{position:static}
.welcome-page .welcome-skip{position:absolute;left:16px;top:-200px;z-index:100;background:white;color:#183d54;padding:12px;border:2px solid #582583;border-radius:8px}
.welcome-page .welcome-skip:focus{top:10px}
.welcome-page :is(a,button,summary):focus-visible{outline:3px solid #9257be;outline-offset:4px}
.welcome-page .welcome-hero{background:linear-gradient(120deg,#18354e 0%,#22465d 64%,#324564 100%);box-shadow:0 12px 30px #203c5412}
.welcome-page .welcome-hero h1{font-size:clamp(28px,3.6vw,43px);line-height:1.2;letter-spacing:-.025em;max-width:850px;margin:18px 0 22px}
.welcome-page .welcome-eyebrow{color:#d5e8ee;line-height:1.5}
.welcome-page .welcome-lead{font-size:17px;line-height:1.7;max-width:840px}
.welcome-page .welcome-access-note{font-size:12px;line-height:1.6;color:#e1ebf0;margin:16px 0 0}
.welcome-page .welcome-facts{margin:24px 0}
.welcome-page .welcome-actions{gap:12px;flex-wrap:wrap}
.welcome-page .welcome-actions .btn{padding:13px 19px;line-height:1.4;text-decoration:none;text-align:center}
.welcome-page .welcome-themes{margin:26px 0}
.welcome-page .welcome-themes .card{border-top:3px solid #dad0e5;padding:24px}
.welcome-page .welcome-number{color:#714590;letter-spacing:.1em;font-size:12px;font-weight:700}
.welcome-page .welcome-themes h2{font-size:19px;line-height:1.35;margin:12px 0}
.welcome-page .welcome-themes p{line-height:1.7;margin-bottom:0}
.welcome-page .welcome-kicker{text-transform:uppercase;font-size:11px;font-weight:700;letter-spacing:.12em;color:#6b4b86;margin:0 0 9px;line-height:1.5}
.welcome-page .welcome-section-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:26px}
.welcome-page .welcome-section-head h2{margin:0;font-size:24px;line-height:1.35}
.welcome-page .welcome-section-head>p{max-width:235px;color:#597080;font-size:13px;margin:0;line-height:1.6}
.welcome-page .welcome-journey{padding:30px;margin-bottom:26px}
.welcome-page .welcome-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;list-style:none;padding:0;margin:0 0 26px}
.welcome-page .welcome-steps li{min-width:0;position:relative}
.welcome-page .welcome-step-number{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;border-radius:50%;background:#edf2f6;color:#31566c;font-size:13px;font-weight:700}
.welcome-page .welcome-steps h3{font-size:17px;color:#183d54;margin:12px 0 10px}
.welcome-page .welcome-steps p{font-size:14px;line-height:1.7;margin:0;color:#455e6b}
.welcome-page .welcome-journey-note{border-left:3px solid #b9cbd6;background:#f3f7fa;border-radius:0 8px 8px 0;padding:16px 18px;color:#455e6b;font-size:13px;line-height:1.75}
.welcome-page .welcome-reflection{display:grid;grid-template-columns:1.05fr 1fr;gap:34px;align-items:center;background:#edf2f8;border:1px solid #dbe4ed;border-radius:18px;padding:32px;margin-bottom:26px}
.welcome-page .welcome-reflection h2{font-size:26px;line-height:1.35;color:#183d54;margin:0 0 18px}
.welcome-page .welcome-reflection-intro>p:not(.welcome-kicker){font-size:15px;line-height:1.75;color:#455e6b}
.welcome-page .welcome-reflection-intro>p.welcome-model-tagline{margin:20px 0 0;text-align:center;font-size:clamp(13px,1.1vw,14px);font-weight:400;font-style:italic;line-height:1.65;color:#597080;text-wrap:balance}
.welcome-page .welcome-report-levels{display:grid;gap:12px}
.welcome-page .welcome-report-levels article{background:#fff;border:1px solid #dbe4ed;border-radius:12px;padding:18px 20px}
.welcome-page .welcome-report-levels span{font-size:11px;letter-spacing:.04em;color:#6b4b86;font-weight:700}
.welcome-page .welcome-report-levels h3{font-size:17px;color:#183d54;margin:8px 0}
.welcome-page .welcome-report-levels p{font-size:13px;line-height:1.65;color:#455e6b;margin:0}
.welcome-page .welcome-practical{margin-bottom:26px;align-items:start}
.welcome-page .welcome-practical .card{padding:26px}
.welcome-page .welcome-practical h2{font-size:21px;line-height:1.35;margin:10px 0 16px}
.welcome-page .welcome-practical p:not(.welcome-kicker),.welcome-page .welcome-practical li{font-size:14px;line-height:1.75;color:#455e6b}
.welcome-page .welcome-practical details{border-top:1px solid #dde6ed;margin-top:20px;padding-top:16px}
.welcome-page summary{cursor:pointer;line-height:1.6;color:#31566c;font-size:14px;font-weight:600}
.welcome-page .welcome-practical ul{padding-left:20px}
.welcome-page .welcome-practical li{margin-bottom:8px}
.welcome-page .welcome-data{padding:26px}
.welcome-page .welcome-data h2{font-size:21px;line-height:1.35}
.welcome-page .welcome-bottom-panel{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0 22px;padding:24px 26px;border-radius:14px;background:#edf3f5}
.welcome-page .welcome-bottom-panel h2{font-size:20px;line-height:1.35;margin:0 0 8px}
.welcome-page .welcome-bottom-panel p{font-size:13px;color:#597080;margin:0;line-height:1.6}
.welcome-page .welcome-bottom{margin:0}
.welcome-page .welcome-guides{margin:20px 0}
@media(max-width:900px){.welcome-page .welcome-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.welcome-page .welcome-section-head{align-items:start}.welcome-page .welcome-reflection{gap:24px;padding:26px}.welcome-page .welcome-bottom-panel{flex-direction:column;align-items:flex-start}}
@media(max-width:640px){.welcome-page .welcome-masthead{gap:16px;padding:18px;align-items:flex-start}.welcome-page .welcome-identity .brand{font-size:17px}.welcome-page .welcome-identity .sub{font-size:12px}.welcome-page .welcome-logo{width:100px;margin-top:3px}.welcome-page .welcome-hero{padding:26px 22px}.welcome-page .welcome-hero h1{font-size:29px;line-height:1.25}.welcome-page .welcome-lead{font-size:15px}.welcome-page .welcome-eyebrow{font-size:10px}.welcome-page .welcome-facts{gap:8px;margin:20px 0}.welcome-page .welcome-facts span{font-size:11px}.welcome-page .welcome-actions{display:grid;grid-template-columns:1fr;width:100%}.welcome-page .welcome-journey{padding:24px}.welcome-page .welcome-section-head{display:block}.welcome-page .welcome-section-head h2{font-size:22px}.welcome-page .welcome-section-head>p{max-width:none;margin-top:12px}.welcome-page .welcome-steps{grid-template-columns:1fr;gap:22px}.welcome-page .welcome-steps li{padding-left:46px}.welcome-page .welcome-step-number{position:absolute;left:0;top:0}.welcome-page .welcome-steps h3{margin-top:4px}.welcome-page .welcome-reflection{grid-template-columns:1fr;padding:24px;gap:14px}.welcome-page .welcome-reflection h2{font-size:24px}.welcome-page .welcome-practical .card,.welcome-page .welcome-data{padding:24px}.welcome-page .welcome-bottom-panel{padding:24px}.welcome-page .welcome-journey-note{padding:14px}.welcome-page .welcome-guides .btn{display:inline-block;margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.welcome-page *{scroll-behavior:auto}}

/* Synthèse de lecture : les analyses détaillées sont conservées. */
.hss-takeaways{border-top:3px solid #237c80;background:#f2f8f7}.hss-takeaways ul{padding-left:1.25rem;margin:.75rem 0}.hss-takeaways li{margin:.65rem 0;line-height:1.55;overflow-wrap:anywhere}.hss-takeaway-trends{padding-top:.6rem;border-top:1px solid #d4e7e4;line-height:1.6}@media(max-width:650px){.hss-takeaways{padding:14px}.hss-takeaways li{margin:.7rem 0}}

/* Recette : contenir les grilles et les intitulés longs sur les petits écrans. */
.hss-work .threecol,.hss-work .twocol{grid-template-columns:repeat(2,minmax(0,1fr))}
.hss-work :is(.threecol,.twocol,.prediction,.choice-row)>*{min-width:0}
.hss-work label select{display:block;width:100%;min-width:0}
.hss-work .card,.hl-help,.server-shell .session-entry,.hss-context strong{overflow-wrap:anywhere}
:is(.tablewrap,.table-scroll,.movement-scroll,.history):focus-visible{outline:3px solid #647ba7;outline-offset:3px}
@media(max-width:760px){.hss-work .threecol,.hss-work .twocol{grid-template-columns:minmax(0,1fr)}}

.hss-takeaway-actors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin-top:8px}.hss-takeaway-actors>span{min-width:0;line-height:1.55}@media(max-width:760px){.hss-takeaway-actors{grid-template-columns:minmax(0,1fr)}}

/* Keep the team follow-up columns readable; scrolling stays inside tablewrap. */
.hss-follow-table{min-width:640px}.hss-central .hss-follow-table th,.hss-central .hss-follow-table td{overflow-wrap:normal;word-break:normal;padding:9px;font-size:13px}.hss-follow-table th:nth-child(2),.hss-follow-table td:nth-child(2){min-width:85px}.hss-follow-table th:nth-child(4),.hss-follow-table td:nth-child(4){min-width:94px}.hss-follow-table th:nth-child(5),.hss-follow-table td:nth-child(5){min-width:100px}
