@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@500;600;700&display=swap");
*{box-sizing:border-box}body{margin:0;background:#f5f7f6;color:#203b3d;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}header{padding:22px max(24px,calc((100vw - 940px)/2));display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e9e7;background:white}header strong{font-size:21px}header strong span{font-weight:400;color:#647c7d}header small,footer{color:#7c8d8b;font-size:12px}main{max-width:920px;padding:55px 22px 80px;margin:auto;min-height:75vh}.panel{background:white;border:1px solid #e1eae6;border-radius:20px;box-shadow:0 12px 45px #20433d0a;padding:48px;max-width:820px;margin:auto}.hidden{display:none!important}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:12px;font-weight:700;color:#498077}h1{font-size:clamp(30px,4vw,47px);line-height:1.18;font-weight:650;letter-spacing:-.03em;margin:20px 0}h2{font-size:30px}h3{margin-top:30px}p{line-height:1.7;color:#4e6461}button{border:0;border-radius:11px;padding:14px 22px;cursor:pointer;font:inherit;font-weight:650;margin:14px 8px 0 0}.primary{background:#1e6960;color:white}.primary:hover{background:#14534b}.secondary{background:#e7f1ed;color:#245d53}.pill{display:inline-block;padding:10px 16px;background:#e8f3ee;color:#2a665c;border-radius:30px;font-size:14px}.notice{font-size:13px;color:#71817d;margin-top:25px}.intro{display:block;max-width:430px;max-height:180px;margin:25px auto;object-fit:contain}.dark{background:#111c21;color:white}.tasktop{display:flex;justify-content:space-between;font-weight:650}.progress{height:7px;background:#43595b;border-radius:10px;margin:20px 0 35px}.progress>div{height:100%;width:0%;background:#63c3b2;border-radius:10px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width:600px;margin:auto}.card{aspect-ratio: .7;background:url('images/0.jpg') center/cover;border:2px solid #697e79;border-radius:10px;cursor:pointer;transition:transform .15s}.card:hover{transform:translateY(-5px)}.reveal{height:280px;display:flex;align-items:center;justify-content:center}.reveal img{max-height:270px;max-width:100%;object-fit:contain}.taskhint{color:#b1c5c0;text-align:center;margin-top:30px}.scale{display:flex;gap:9px;flex-wrap:wrap}.scale button{background:#e7f2ee;color:#225c51;min-width:55px;margin:0}.scale button:hover{background:#2b8073;color:white}.ends{display:flex;justify-content:space-between;color:#667b75;font-size:13px;margin-top:14px}.measure{margin:28px 0}.measuretop{display:flex;justify-content:space-between;margin-bottom:11px}.measuretop span{font-weight:650}.bar{height:15px;background:#edf0ee;border-radius:20px;overflow:hidden}.bar>div{height:100%;background:#498d7c;border-radius:20px}.measure small{color:#71847c}.concord{background:#eaf4f1;border-radius:14px;padding:20px}.concord p{margin-bottom:0}footer{text-align:center;padding:20px}@media(max-width:600px){header{padding:16px;gap:15px;flex-wrap:wrap}.panel{padding:24px}main{padding:25px 10px}.cards{gap:8px}.card{min-height:125px}.scale button{min-width:35px;padding:12px}}
@media print{header,footer,button,.taskhint{display:none!important}body,main{background:white;padding:0}.panel{border:0;box-shadow:none;padding:10px;max-width:100%}#results{display:block!important}#results .notice{font-size:11px}h1{font-size:28px}p{font-size:13px}}

/* V4 : onboarding ImpliSight – les autres étapes V3 restent inchangées */
body:has(#welcome:not(.hidden)) .site-header,body:has(#welcome:not(.hidden)) body>footer{display:none}
body:has(#welcome:not(.hidden)) main{max-width:1120px;padding:24px 20px 30px;min-height:100vh;display:flex;align-items:center}
.welcome-shell{background:#fff;width:100%;border:1px solid #e0e8eb;border-radius:23px;box-shadow:0 18px 54px #11345b10;padding:30px 44px 25px;min-height:min(740px,90vh);display:flex;flex-direction:column;color:#071c36}
.welcome-header,.welcome-brand,.welcome-partner{display:flex;align-items:center}.welcome-header{justify-content:space-between;gap:12px}.welcome-brand{gap:14px}.welcome-brand img{width:76px;height:76px;object-fit:contain}.welcome-brand span{font-size:26px;letter-spacing:.01em;color:#00a9bb;font-weight:500}.welcome-partner{gap:15px}.welcome-partner img{height:67px;width:67px;object-fit:contain}.demo-pill{background:#edf2fa;color:#153456;font-weight:600;border-radius:30px;padding:6px 16px;font-size:14px}
.welcome-pages{flex:1;display:flex;flex-direction:column}.intro-page{display:none;flex:1;flex-direction:column;justify-content:space-between}.intro-page.active{display:flex}.intro-content{padding:36px 8px 25px}.welcome-eyebrow{font-size:12px;font-weight:700;letter-spacing:.15em;color:#6385a3;margin-bottom:15px}.intro-content h1{font-size:clamp(30px,3.65vw,44px);font-weight:720;line-height:1.16;color:#071c36;margin:0 0 24px;letter-spacing:-.035em}.intro-content p{color:#29415e;font-size:16px;line-height:1.69;margin:0 0 16px;max-width:980px}.intro-content p strong{color:#102944}.intro-content .intro-muted{color:#687e91;font-size:15px;margin-top:20px}.privacy-strip{border-top:1px solid #e5ecf1;padding:20px 5px 13px;display:flex;gap:15px;align-items:flex-start}.privacy-icon{color:#159879;font-size:29px;line-height:1}.privacy-strip strong{color:#132c48;font-size:14px}.privacy-strip p{font-size:13px;line-height:1.55;color:#6b7888;margin:6px 0 0;max-width:930px}.intro-footer{border-top:1px solid #e8edf2;display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:18px}.intro-footer button{font-size:15px;margin:0;border-radius:12px;padding:12px 20px}.intro-prev{color:#193956;background:#f8fafd;border:1px solid #d6e2ee}.intro-prev:disabled{opacity:.42;cursor:default}.intro-next{color:white;background:#00284a;border:1px solid #00284a;margin-left:auto!important}.intro-footer>span{position:absolute;left:50%;transform:translateX(-50%);color:#738498;font-size:14px}.intro-footer{position:relative}.intro-footer button:hover:not(:disabled){filter:brightness(1.10)}
@media(max-width:650px){body:has(#welcome:not(.hidden)) main{padding:0;display:block}.welcome-shell{padding:20px 21px;min-height:100dvh;border:0;border-radius:0}.welcome-brand img{width:57px;height:57px}.welcome-brand span{font-size:20px}.welcome-partner img{width:50px;height:50px}.welcome-partner{gap:8px}.demo-pill{font-size:12px;padding:5px 10px}.intro-content{padding:36px 0 12px}.intro-content h1{font-size:29px}.intro-content p{font-size:15px}.privacy-strip p{font-size:12px}.intro-footer button{padding:11px 13px;font-size:13px}.intro-footer>span{font-size:12px}}
@media print{.welcome-shell{display:none!important}}

/* V5 : restitution normative, parcours de sortie et interface épurée */
.site-header{justify-content:flex-start}.site-header strong{font-size:21px}
.norm-scale{height:22px;width:100%;display:flex;position:relative;border-radius:12px;overflow:visible;gap:3px;margin:14px 0 8px}
.norm-segment{height:100%;border-radius:4px;background:#e3eeea}
.norm-segment.low{width:20%;background:#e2ede9}
.norm-segment.middle{width:60%;background:#d0e4dd}
.norm-segment.high{width:20%;background:#afcebf}
.norm-marker{position:absolute;top:-7px;bottom:-7px;width:4px;background:#153f50;border:2px solid white;box-sizing:content-box;border-radius:4px;transform:translateX(-50%);box-shadow:0 0 0 1px #153f50,0 2px 5px #1e374450}
.norm-labels{display:flex;justify-content:space-between;color:#435e58;font-size:13px;font-weight:650;margin:0 0 8px}
.norm-labels span:nth-child(1){width:20%;text-align:left}.norm-labels span:nth-child(2){width:60%;text-align:center}.norm-labels span:nth-child(3){width:20%;text-align:right}
.end-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px}.end-actions button{margin:0}
.quiet{background:transparent;color:#627b75;font-size:14px;font-weight:550;padding:13px 4px}
.quiet:hover{text-decoration:underline}
.final-panel{text-align:center;padding-top:65px;padding-bottom:65px}.final-check{border-radius:50%;background:#dff1e8;color:#1c7664;font-size:28px;font-weight:800;width:60px;height:60px;line-height:60px;margin:0 auto 20px}.final-panel p{max-width:560px;margin:15px auto}
@media print{.norm-scale{-webkit-print-color-adjust:exact;print-color-adjust:exact}.norm-labels{font-size:12px}.final-panel{display:none!important}}

/* V6 : rapport personnalisé et actions, mêmes repères visuels que V5 */
.profile-copy p{line-height:1.72;margin:.9rem 0;color:#344b4d}
.reco-preview{margin-top:30px;padding:23px 27px;background:#f2f8f7;border:1px solid #dcebe6;border-radius:17px}
.reco-preview h3{margin:0 0 14px;color:#153a45}
.reco-preview h4{font-size:19px;color:#187b80;margin:10px 0}
.reco-preview ol{padding-left:25px}
.reco-preview li{line-height:1.65;margin:12px 0;color:#385356}
.reco-preview li::marker{font-weight:700;color:#168e92}
#results{max-width:850px}
#results .measure{margin:23px 0}
#results .end-actions{margin-top:30px}
#results .primary:disabled{opacity:.6;cursor:wait}
@media(max-width:600px){.reco-preview{padding:18px 20px}}

/* V7 — restitution synthétique à l'écran ; aucun changement des écrans du test */
#results{max-width:850px}
#results h1{margin-bottom:10px}
#results .results-lead{margin-top:0;color:#607875;font-size:15px;line-height:1.55}
#results .result-measures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:26px 0 19px}
#results .measure{margin:0;padding:18px 18px 16px;border:1px solid #dfebe7;border-radius:15px;background:#fcfefd}
#results .measuretop{font-size:15px;min-height:23px}
#results .norm-scale{height:18px;margin:12px 0 9px}
#results .norm-labels{font-size:11px;margin-bottom:7px}
#results .measure small{display:block;line-height:1.4;font-size:12px}
#results .results-explain{background:#edf7f5;padding:17px 19px;border-radius:14px;margin:15px 0 18px;border:1px solid #e0efeb}
#results .results-explain h3{font-size:16px;margin:0 0 5px;color:#20545a}
#results .results-explain p{font-size:13.5px;line-height:1.57;margin:0;color:#385c5a}
#results .profile-summary{margin:18px 0 18px}
#results .profile-summary h3{font-size:20px;line-height:1.3;margin:0 0 9px;color:#173b42}
#results .profile-summary p{margin:0;line-height:1.58;color:#3b5252;font-size:14.5px}
#results .reco-preview{margin:16px 0 17px;padding:19px 20px;border:1px solid #dfebe7;background:#f7faf9;border-radius:15px}
#results .recos-eyebrow{font-size:11px;letter-spacing:.08em;color:#218a89;font-weight:800;margin-bottom:6px}
#results .reco-preview h3{font-size:18px;line-height:1.35;margin:0 0 12px;color:#1b5358}
#results .short-actions{counter-reset:actions;list-style:none;padding:0;margin:0;display:grid;gap:12px}
#results .short-actions li{position:relative;counter-increment:actions;min-height:28px;padding-left:43px;color:#3b5252;font-size:13.5px;line-height:1.48;margin:0}
#results .short-actions li:before{content:counter(actions,decimal-leading-zero);position:absolute;left:0;top:0;background:#e6f3f1;border-radius:9px;color:#198d93;font-weight:800;text-align:center;padding:5px 0;width:30px;line-height:21px;font-size:12px}
#results .short-actions li strong{color:#24484c}
#results .results-download{border-top:1px solid #e1e9e7;padding-top:18px;margin-top:20px}
#results .results-download h3{margin:0 0 6px;font-size:18px;color:#163f4b}
#results .results-download p{font-size:13px;margin:0;color:#59716e;line-height:1.55}
#results .results-download .end-actions{margin-top:15px}
@media(max-width:660px){
 #results .result-measures{grid-template-columns:1fr;gap:10px}
 #results .measure{padding:15px}
 #results .results-explain{padding:15px}
 #results .reco-preview{padding:16px}
 #results .results-download .end-actions button{font-size:14px}
}

/* V8 — interface harmonisée, restitution sur deux écrans et meilleure lisibilité.
   La passation, le scoring original et le document PDF restent inchangés. */
main{max-width:1190px;padding:38px 26px 60px}
.panel{width:100%;max-width:960px;padding:clamp(35px,4.6vw,62px)}
body:has(main>section.panel:not(.hidden)) main{min-height:calc(100dvh - 74px);display:flex;flex-direction:column;align-items:center;justify-content:center}
.panel p{font-size:16.5px;line-height:1.67}
.panel h2{font-size:clamp(29px,3vw,38px);line-height:1.2;margin:19px 0 22px}
.panel button{min-height:48px}
#instructions,#qintro,#end,#goodbye{max-width:930px}
#instructions .intro{max-width:520px;max-height:220px}
#task{max-width:980px;padding:clamp(32px,4vw,56px)}
#task .cards{max-width:760px;gap:22px}
#task .card{min-height:0;margin:0;padding:0;aspect-ratio:.73;border-radius:14px}
#task .progress{margin:25px 0 32px;height:9px}
#task .tasktop{font-size:18px}
#task .reveal{height:345px}
#task .reveal img{max-height:335px}
#task .taskhint{font-size:15.5px;margin-top:28px}
#questionnaire{max-width:930px}
#questionnaire h2{font-size:clamp(25px,3vw,35px);min-height:80px;display:flex;align-items:center}
#questionnaire .scale{gap:13px;justify-content:space-between;margin-top:25px;flex-wrap:nowrap}
#questionnaire .scale button{margin:0;flex:1;min-width:0;font-size:19px;padding:16px 0}
#questionnaire .ends{font-size:14px;margin-top:17px}
.transition-complete{display:flex;align-items:center;gap:12px;color:#237e78;font-size:13px;font-weight:800;letter-spacing:.105em}
.transition-check{display:inline-flex;justify-content:center;align-items:center;background:#e5f4ed;color:#188268;font-size:18px;border-radius:50%;width:38px;height:38px;letter-spacing:0}
#qintro p{max-width:760px}
#qintro button{margin-top:23px}
#end h1{font-size:clamp(35px,4vw,50px);max-width:100%}

/* Résultats en deux étapes : les jauges et le profil, puis les actions et le PDF. */
#results,#resultsActions{max-width:1000px}
.results-stage .stage-top{display:flex;justify-content:space-between;gap:18px;align-items:center}
.results-stage .stage-count{border-radius:30px;background:#edf5f2;padding:7px 13px;color:#41746c;font-weight:700;font-size:13px}
.results-stage h1{font-size:clamp(33px,3.6vw,46px);margin:17px 0 9px}
.results-stage .results-lead{font-size:16px;line-height:1.58;margin-bottom:8px}
#results .result-measures{gap:19px;margin:23px 0 18px}
#results .measure{padding:20px 23px 19px}
#results .measuretop{font-size:17px}
#results .norm-scale{height:22px;margin:16px 0 10px}
#results .norm-labels{font-size:13px}
#results .measure small{font-size:14px;line-height:1.45}
#results .results-explain{padding:22px 25px;margin:20px 0 22px}
#results .results-explain h3{font-size:20px;margin:0 0 10px}
#results .results-explain p{font-size:16px;line-height:1.65}
#results .profile-summary{margin:21px 0 22px}
#results .profile-summary h3{font-size:23px;margin-bottom:12px}
#results .profile-summary p{font-size:16.5px;line-height:1.7}
.stage-actions{border-top:1px solid #e2ece8;margin-top:24px;padding-top:22px;display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.stage-actions button{margin:0}
.stage-hint{font-size:14px;color:#637d77}
#resultsActions .reco-preview{padding:27px 29px;background:#f8fbfa;margin:24px 0}
#resultsActions .reco-preview h3{font-size:24px;margin:0 0 22px;color:#1a5257}
#resultsActions .short-actions{display:grid;gap:0;list-style:none;margin:0;padding:0;counter-reset:actions}
#resultsActions .short-actions li{position:relative;counter-increment:actions;padding:17px 6px 17px 55px;font-size:16px;line-height:1.65;margin:0;border-bottom:1px solid #e2eeeb;color:#3a5252}
#resultsActions .short-actions li:last-child{border-bottom:0}
#resultsActions .short-actions li:before{content:counter(actions,decimal-leading-zero);position:absolute;top:20px;left:0;background:#e2f3ef;border-radius:10px;color:#167b80;font-size:14px;font-weight:800;width:39px;height:35px;line-height:35px;text-align:center}
#resultsActions .short-actions li strong{color:#214e50}
#resultsActions .results-download{margin-top:27px;padding:22px 24px;background:#eff7f5;border:1px solid #dcece7;border-radius:15px}
#resultsActions .results-download h3{font-size:22px;margin:0 0 10px}
#resultsActions .results-download p{font-size:16px;line-height:1.65;margin:0;color:#3e5c58}
#resultsActions .results-download p strong{color:#1c4b50}
#resultsActions .results-download .end-actions{margin-top:19px}
#resultsActions .results-download .primary{margin:0}
#resultsActions .stage-actions-last{border-top:0;padding-top:4px;margin-top:15px}
@media(max-width:760px){
 main{padding:22px 13px 34px}
 .panel{padding:clamp(22px,4.4vw,35px)}
 .panel p{font-size:15.5px}
 #task{padding:24px 16px}
 #task .cards{gap:9px}
 #task .card{border-radius:9px}
 #task .reveal{height:245px}
 #task .reveal img{max-height:230px}
 #questionnaire h2{min-height:95px}
 #questionnaire .scale{gap:5px}
 #questionnaire .scale button{padding:13px 0;font-size:16px}
 #results .result-measures{grid-template-columns:1fr;gap:12px}
 #results .measure{padding:16px 18px}
 #results .results-explain{padding:18px}
 #results .results-explain p{font-size:15px}
 #results .profile-summary p{font-size:15.5px}
 #resultsActions .reco-preview{padding:19px}
 #resultsActions .short-actions li{font-size:15px;padding-left:45px}
 #resultsActions .results-download{padding:20px}
 #resultsActions .results-download p{font-size:15px}
 .stage-actions button{width:100%}
 .stage-hint{display:none}
 #resultsActions .stage-actions-last button{width:auto;flex:1}
}
@media(max-width:390px){
 #task .cards{gap:6px}
 #task .card{border-width:1px}
 .stage-actions-last{gap:7px}
 #resultsActions .stage-actions-last button{padding:12px 9px;font-size:13px}
}
@media print{body:has(main>section.panel:not(.hidden)) main{display:block;min-height:0}}


/* V10 — LECTURE CONFORTABLE SUR ÉCRAN DE PORTABLE
   Ajustement typographique uniquement ; aucun changement du parcours ou du PDF.
   Les textes ordinaires sont >= 18px, et les légendes >= 15px sur ordinateur.
   Les contenus peuvent défiler verticalement sur les écrans de faible hauteur. */
@media screen {
 body {font-size:18px;}
 .panel p {font-size:18.5px;line-height:1.67;}
 .panel button {font-size:17.5px;line-height:1.35;padding:15px 22px;}
 .eyebrow,.welcome-eyebrow {font-size:14.5px;line-height:1.5;}
 .notice {font-size:16px;line-height:1.5;}
 .site-header strong {font-size:22px;}
 .pill {font-size:16px;}

 /* Accueil : les blocs informatifs et la confidentialité doivent être lisibles. */
 .welcome-brand span {font-size:26px;}
 .demo-pill {font-size:15px;}
 .intro-content p {font-size:18.5px;line-height:1.68;}
 .intro-content .intro-muted {font-size:17px;}
 .privacy-strip strong {font-size:16px;line-height:1.45;}
 .privacy-strip p {font-size:16px;line-height:1.6;}
 .intro-footer button {font-size:17px;}
 .intro-footer>span {font-size:16px;}

 /* Cartes, instructions et passage au questionnaire. */
 #task .tasktop {font-size:19px;}
 #task .taskhint {font-size:18px;line-height:1.55;}
 #qintro .transition-complete {font-size:15px;}
 #questionnaire .scale button {font-size:21px;}
 #questionnaire .ends {font-size:16px;}
 #end .quiet {font-size:16px;}

 /* Résultats / encadrés : ne pas réserver la taille de 18px aux seuls titres. */
 .results-stage .stage-count {font-size:16px;}
 .results-stage .results-lead {font-size:18px;line-height:1.58;}
 #results .results-lead {font-size:18px;}
 #results .measuretop {font-size:18px;}
 #results .norm-labels {font-size:15.5px;}
 #results .measure small {font-size:16px;line-height:1.48;}
 #results .results-explain p {font-size:18px;line-height:1.63;}
 #results .profile-summary p {font-size:18.5px;line-height:1.68;}
 .stage-hint {font-size:16px;}
 #resultsActions .short-actions li {font-size:18.5px;line-height:1.63;}
 #resultsActions .short-actions li:before {font-size:16px;}
 #resultsActions .results-download p {font-size:18px;line-height:1.62;}
 #resultsActions .results-download .primary {font-size:17.5px;}
 #goodbye .notice {font-size:16px;}
}
@media screen and (max-width:760px) {
 body {font-size:17px;}
 .panel p {font-size:17px;line-height:1.65;}
 .panel button {font-size:16px;}
 .eyebrow,.welcome-eyebrow {font-size:13.5px;}
 .intro-content p {font-size:17px;}
 .intro-content .intro-muted {font-size:16px;}
 .privacy-strip strong {font-size:15.5px;}
 .privacy-strip p {font-size:15px;}
 .intro-footer button {font-size:15.5px;}
 .intro-footer>span {font-size:14px;}
 .results-stage .results-lead,#results .results-lead {font-size:17px;}
 #results .measuretop {font-size:17.5px;}
 #results .norm-labels {font-size:15px;}
 #results .measure small {font-size:15.5px;}
 #results .results-explain p {font-size:17px;}
 #results .profile-summary p {font-size:17px;}
 #resultsActions .short-actions li {font-size:17px;}
 #resultsActions .results-download p {font-size:17px;}
 #task .tasktop {font-size:17px;}
 #task .taskhint {font-size:16px;}
 #questionnaire .scale button {font-size:18px;}
 #questionnaire .ends {font-size:15px;}
}
@media screen and (max-width:390px) {
 /* Un peu plus d'espace pour les 7 réponses et les boutons. */
 #questionnaire .scale button {font-size:17px;}
 #resultsActions .stage-actions-last button {font-size:15px;}
}

/* V11 — FENÊTRES PLUS AMPLES SUR DESKTOP ET MACBOOK
   Évolution exclusivement visuelle : aucune modification des tests, scores,
   textes, profils ni rapports PDF. Conserve la typographie lisible de V10.
   Les petits écrans gardent la géométrie responsive de V10. */
@media screen and (min-width: 761px) {
  /* La page mobilise l'espace horizontal disponible plutôt qu'une petite carte. */
  main {
    width: 100%;
    max-width: 1540px;
    padding: clamp(20px, 2.4vw, 36px) clamp(20px, 2.8vw, 42px) 54px;
  }
  .panel {
    width: 100%;
    max-width: 1320px;
    padding: clamp(38px, 4vw, 65px);
  }
  #instructions, #qintro, #questionnaire, #end, #goodbye {
    max-width: 1240px;
  }
  #task {
    max-width: 1250px;
    padding: clamp(36px, 3.8vw, 60px);
  }
  #task .cards {
    width: 100%;
    max-width: 850px;
    gap: clamp(15px, 1.7vw, 25px);
  }
  #task .reveal {height: min(350px, 43vh)}
  #task .reveal img {max-height: min(340px, 42vh)}
  #questionnaire h2 {max-width: 1080px;}
  #qintro p, #instructions p, #end p {max-width: 1020px;}
  #results, #resultsActions {max-width: 1320px;}
  #results .profile-summary p {max-width: 1080px;}
  #resultsActions .results-download p {max-width: 1100px;}

  /* Page d'accueil : élargissement cohérent avec les autres écrans. */
  body:has(#welcome:not(.hidden)) main {
    width: 100%;
    max-width: 1540px;
    padding: clamp(18px, 2.2vw, 38px) clamp(20px, 2.8vw, 42px);
  }
  .welcome-shell {
    padding: clamp(33px, 3vw, 52px) clamp(36px, 4.2vw, 72px) 30px;
    min-height: min(750px, calc(100dvh - 65px));
  }
  .intro-content {padding: clamp(26px, 2.5vw, 42px) 8px 24px;}
  .intro-content h1 {max-width: 1130px;}
  .intro-content p {max-width: 1120px;}
  .privacy-strip p {max-width: 1090px;}

  /* Header aligné sur les nouvelles marges des panneaux. */
  .site-header {padding-left: max(30px, calc((100vw - 1340px) / 2));
                padding-right: max(30px, calc((100vw - 1340px) / 2));}
}
/* Sur petits écrans, le remaniement desktop ne s'applique pas. */

/* V11.1 — information confidentielle sur la première page uniquement.
   Aucun changement apporté aux pages du test, à la notation ou aux PDF. */
.usage-notice { display:flex; align-items:flex-start; gap:14px; margin: 8px 4px 16px; padding:16px 19px; background:#f4f8fa; border:1px solid #e0e9ed; border-radius:13px; }
.usage-icon { font-size:22px; line-height:1.15; flex:0 0 auto; }
.usage-notice strong { font-size:16.5px; line-height:1.4; color:#13324c; }
.usage-notice p { color:#41576a; font-size:15.5px; line-height:1.52; margin:6px 0; }
.usage-copyright {display:block; font-size:14.5px; font-weight:650; color:#516879; margin-top:7px;}
@media(max-width:650px){ .usage-notice{gap:9px;margin:6px 0 16px;padding:14px 13px;} .usage-icon{font-size:19px;} .usage-notice strong{font-size:15.5px;} .usage-notice p{font-size:15px;} .usage-copyright{font-size:14px;} }

/* V11.2 — première page uniquement : encadré juridique plus concis et
   espacements verticaux légèrement réduits, sans diminuer la lisibilité. */
#welcome .intro-page[data-page="0"] .intro-content {padding-bottom:17px;}
#welcome .intro-page[data-page="0"] .intro-content h1 {margin-bottom:20px;}
#welcome .intro-page[data-page="0"] .intro-content .intro-muted {margin-top:15px;}
#welcome .intro-page[data-page="0"] .privacy-strip {padding-top:15px;padding-bottom:10px;}
#welcome .intro-page[data-page="0"] .usage-notice {margin-top:4px;margin-bottom:12px;padding:12px 16px;}
#welcome .intro-page[data-page="0"] .usage-notice p {margin:5px 0 0;}
#welcome .intro-page[data-page="0"] .usage-copyright {margin-top:5px;}
@media (max-width:650px) {
  #welcome .intro-page[data-page="0"] .intro-content {padding-bottom:12px;}
  #welcome .intro-page[data-page="0"] .usage-notice {padding:12px 13px;}
}

/* V11.3 : encadré compact sur l'accueil ; copyright à droite de la
   phrase de restriction, licence CNRS conservée en haut. */
#welcome .intro-page[data-page="0"] .privacy-strip {padding-bottom:9px;}
#welcome .intro-page[data-page="0"] .usage-notice {margin-top:17px;margin-bottom:13px;padding:11px 15px;}
#welcome .intro-page[data-page="0"] .usage-body {flex:1;min-width:0;}
#welcome .intro-page[data-page="0"] .usage-head {display:flex;justify-content:space-between;align-items:baseline;gap:6px 24px;flex-wrap:wrap;}
#welcome .intro-page[data-page="0"] .usage-license {font-size:13.5px;color:#5a7080;font-weight:550;line-height:1.5;}
#welcome .intro-page[data-page="0"] .usage-row {display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-top:6px;}
#welcome .intro-page[data-page="0"] .usage-row p {margin:0;min-width:0;flex:1;font-size:14px;line-height:1.5;}
#welcome .intro-page[data-page="0"] .usage-row .usage-copyright {display:block;flex:0 0 auto;white-space:nowrap;margin:0;font-size:13.5px;line-height:1.5;}
@media(max-width:950px) {
  #welcome .intro-page[data-page="0"] .usage-row {flex-wrap:wrap;align-items:baseline;gap:6px 16px;}
}
@media(max-width:650px) {
  #welcome .intro-page[data-page="0"] .usage-notice {margin:15px 0 12px;padding:12px 13px;}
  #welcome .intro-page[data-page="0"] .usage-head {gap:4px 8px;}
  #welcome .intro-page[data-page="0"] .usage-license {font-size:13.5px;}
  #welcome .intro-page[data-page="0"] .usage-row p {font-size:14px;}
  #welcome .intro-page[data-page="0"] .usage-row .usage-copyright {font-size:13px;}
}


/* V11.4 — accueil uniquement : sobriété, mention CNRS dans la phrase
   d'utilisation et bloc de confidentialité légèrement remonté. */
#welcome .intro-page[data-page="0"] .intro-content {padding-bottom:3px;}
#welcome .intro-page[data-page="0"] .usage-notice {display:block;margin-top:20px;}
#welcome .intro-page[data-page="0"] .usage-body {width:100%;}
#welcome .intro-page[data-page="0"] .usage-row {margin-top:6px;}
@media(max-width:650px){
  #welcome .intro-page[data-page="0"] .intro-content {padding-bottom:5px;}
  #welcome .intro-page[data-page="0"] .usage-notice {margin-top:17px;}
}


/* V11.6 — un seul emplacement stable pour les piles et l'image révélée.
   Les deux vues contribuent à la hauteur de la même ligne de grille, même
   lorsqu'une est masquée. Ni cartes ni images ne sont redimensionnées. */
#task {
  display:grid;
  grid-template-columns:minmax(0,1fr);
}
#task .tasktop {grid-row:1;grid-column:1}
#task .progress {grid-row:2;grid-column:1}
#task .cards,
#task .reveal {grid-row:3;grid-column:1;align-self:center}
#task .cards {justify-self:center;width:100%}
#task .taskhint {grid-row:4;grid-column:1}
/* Le contenu inactif reste dans la grille, mais ne s'affiche ni ne répond aux clics. */
#task .cards.hidden {display:grid!important;visibility:hidden;pointer-events:none}
#task .reveal.hidden {display:flex!important;visibility:hidden;pointer-events:none}


/* V11.7 — deux ajustements de marges uniquement (accueil et résultats).
   Aucun changement des mesures, du test ni des rapports PDF. */
@media screen {
  /* Alignement du profil sur le contenu de l'encadré explicatif supérieur.
     La largeur disponible est la même : pas de coupure anticipée du texte. */
  #results .profile-summary {padding-inline:25px;}
  #results .profile-summary p {max-width:none;}

  /* Le copyright ne réduit plus artificiellement la largeur du paragraphe. */
  #welcome .intro-page[data-page="0"] .usage-row {display:block;}
  #welcome .intro-page[data-page="0"] .usage-row p {
    display:block; width:100%; max-width:1116px;
  }
  #welcome .intro-page[data-page="0"] .usage-row .usage-copyright {
    display:block; width:100%; text-align:right; margin-top:6px;
    white-space:normal;
  }
}
@media screen and (max-width:760px) {
  #results .profile-summary {padding-inline:18px;}
}


/* V11.8 — accueil : deux sections discrètes et strictement alignées.
   Supprime les éléments décoratifs et harmonise les titres, textes et marges.
   Aucun changement du test, du scoring, du timing ou des PDF. */
#welcome .intro-page[data-page="0"] .privacy-strip,
#welcome .intro-page[data-page="0"] .usage-notice {
  display:block;
  width:100%;
  margin:0;
  padding:16px 8px 13px;
  background:transparent;
  border:0;
  border-top:1px solid #e3eaee;
  border-radius:0;
}
#welcome .intro-page[data-page="0"] .privacy-strip {padding-top:18px;padding-bottom:17px;}
#welcome .intro-page[data-page="0"] .usage-notice {padding-top:17px;padding-bottom:15px;}
#welcome .intro-page[data-page="0"] .privacy-strip > div,
#welcome .intro-page[data-page="0"] .usage-body {width:100%;min-width:0;}
#welcome .intro-page[data-page="0"] .privacy-strip strong,
#welcome .intro-page[data-page="0"] .usage-notice strong {
  display:block;
  color:#17334b;
  font-size:16.5px;
  line-height:1.42;
  font-weight:700;
}
#welcome .intro-page[data-page="0"] .privacy-strip p,
#welcome .intro-page[data-page="0"] .usage-row p {
  display:block;
  margin:7px 0 0;
  width:100%;
  max-width:none;
  color:#536c80;
  font-size:16px;
  line-height:1.6;
  font-weight:400;
}
#welcome .intro-page[data-page="0"] .usage-row {display:block;margin-top:0;}
#welcome .intro-page[data-page="0"] .usage-row .usage-copyright {
  display:block;
  width:100%;
  margin:9px 0 0;
  text-align:left;
  white-space:normal;
  color:#6c7e8d;
  font-size:14px;
  line-height:1.5;
  font-weight:500;
}
@media screen and (max-width:760px) {
  #welcome .intro-page[data-page="0"] .privacy-strip,
  #welcome .intro-page[data-page="0"] .usage-notice {
    padding-left:0;
    padding-right:0;
    padding-top:16px;
    padding-bottom:15px;
  }
  #welcome .intro-page[data-page="0"] .privacy-strip strong,
  #welcome .intro-page[data-page="0"] .usage-notice strong {font-size:15.5px;}
  #welcome .intro-page[data-page="0"] .privacy-strip p,
  #welcome .intro-page[data-page="0"] .usage-row p {font-size:15px;line-height:1.6;}
  #welcome .intro-page[data-page="0"] .usage-row .usage-copyright {font-size:13.5px;}
}

/* V11.9 — informations d'étude et questions collectives, sans changement de scoring. */
.participant-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:25px}
.participant-form label{display:flex;flex-direction:column;gap:9px;font-size:16px;font-weight:650;color:#284a4c}
.participant-form input,.participant-form select{width:100%;min-height:52px;padding:11px 14px;font:inherit;border:1px solid #b8cbc7;border-radius:10px;background:white;color:#1b3f42}
.participant-form input:focus,.participant-form select:focus{outline:2px solid #4c9992;outline-offset:2px}
.participant-actions{grid-column:1/-1}
#questionnaire .scale.scale-5{display:flex;gap:10px;flex-wrap:wrap;justify-content:stretch}
#questionnaire .scale.scale-5 button{flex:1 1 145px;white-space:normal;min-height:68px;padding:12px 13px;font-size:16px;line-height:1.25}
#questionnaire:has(.scale-5) .ends{display:block;text-align:center}
.data-export{border-top:1px solid #dce9e5;padding-top:15px;margin-top:20px}
.data-export button{margin:0}
.data-export .notice{margin:9px 0;font-size:14px;line-height:1.5}
@media(max-width:650px){.participant-form{grid-template-columns:1fr;gap:15px}#questionnaire .scale.scale-5 button{flex:1 1 100%;min-height:52px;font-size:15px}}

/* =============================================================
   V11.9.2 — Pédagogie de l'introduction, sans modification du test.
   Trois diapositives : contexte, infos/confidentialité, regards croisés.
   Puis explication du défi de cartes et message rassurant.
   ============================================================= */
:root{--v119-ink:#143641;--v119-teal:#0e7775;--v119-sea:#d8f0ea;--v119-pale:#f2faf7}
#welcome .intro-content{padding-top:clamp(22px,2.6vw,36px)}
#welcome .intro-content h1{font-size:clamp(34px,3.5vw,50px);line-height:1.15;max-width:1120px}
#welcome .intro-content .accent-line{color:var(--v119-teal)}
#welcome .intro-content .narrative-lead{font-size:clamp(20px,2.1vw,26px);line-height:1.5;color:#173e46;font-weight:650;max-width:980px;margin-bottom:22px}
#welcome .intro-highlight{padding:19px 24px;border-left:4px solid var(--v119-teal);background:#edf8f4;color:#1c494e;border-radius:0 14px 14px 0;font-size:17px;line-height:1.62;margin-top:29px;max-width:1050px}
#welcome .journey-strip{margin-top:32px;display:flex;flex-wrap:wrap;align-items:center;gap:15px;color:#1f4a4e;font-size:16px;font-weight:700}
#welcome .journey-strip span:not(.journey-arrow){background:#f2f7f5;border:1px solid #e0ece8;padding:13px 20px;border-radius:12px}
#welcome .journey-strip b{color:var(--v119-teal);margin-right:7px}
#welcome .journey-arrow{font-size:23px;color:#6f9490}
#welcome .intro-overview .intro-muted{margin-top:18px}
/* Slide 2 : la collecte et les informations sont dans la même diapositive. */
#welcome .intro-info .intro-content{padding-top:24px;padding-bottom:10px}
#welcome .intro-info .intro-content h1{font-size:clamp(30px,3vw,43px);margin-bottom:12px}
#welcome .intro-info .intro-content .info-lead{font-size:17px;line-height:1.5;margin-bottom:18px}
#welcome .onboarding-split{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);gap:24px;align-items:start}
#welcome .onboarding-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;padding:21px;border:1px solid #dce7e4;border-radius:15px;background:#f8fbfa}
#welcome .onboarding-form label{font-size:14.5px;gap:7px}
#welcome .onboarding-form input,#welcome .onboarding-form select{min-height:46px;padding:9px 11px;font-size:15px;background:#fff}
#welcome .privacy-column{display:grid;gap:12px}
#welcome .privacy-card{border:1px solid #cde3dd;border-radius:15px;padding:19px 20px;background:#edf8f4}
#welcome .privacy-card h3{margin:0 0 10px;font-size:21px;color:#123e45}
#welcome .privacy-card-icon{color:#15857c;display:inline-block;float:right;font-size:26px;line-height:1}
#welcome .privacy-card p{color:#2d5558;font-size:14.7px;line-height:1.5;margin:0 0 9px}
#welcome .legal-mini{padding:13px 16px;border:1px solid #e0e8e7;border-radius:12px;background:#fff}
#welcome .legal-mini strong{font-size:14px;color:#23464d}
#welcome .legal-mini p{font-size:13.5px;line-height:1.5;color:#637a7c;margin:5px 0 0}
#welcome .intro-info .page-hint{font-size:14px;margin:11px 0 0;color:#5e7c7c}
/* Slide 3 : Regards croisés, visuel éditorial (aucune photo de stimulus dévoilée). */
#welcome .intro-crossed .intro-content{padding:24px 4px 10px}
#welcome .crossed-hero{background:linear-gradient(123deg,#102d3e 4%,#09595b 100%);color:white;border-radius:22px;padding:clamp(28px,4vw,45px);display:grid;grid-template-columns:1.4fr .6fr;gap:25px;position:relative;overflow:hidden;min-height:290px}
#welcome .crossed-hero:before{content:"";position:absolute;right:30px;top:-160px;width:400px;height:400px;border:1px solid #ffffff27;border-radius:50%;box-shadow:0 0 0 60px #ffffff07,0 0 0 120px #ffffff06;pointer-events:none}
#welcome .crossed-hero .welcome-eyebrow{color:#81ddd2;font-size:12px}
#welcome .crossed-hero h1{font-size:clamp(32px,3.7vw,50px);max-width:700px;color:white;margin:10px 0 14px}
#welcome .crossed-hero h1 span{color:#8ae0cc;display:block}
#welcome .crossed-hero p{font-size:17px;line-height:1.56;color:#e4f4ef;max-width:780px}
#welcome .crossed-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
#welcome .crossed-tags span{background:#ffffff18;color:#dcf4e9;border:1px solid #ffffff40;padding:8px 11px;border-radius:8px;font-size:12px;letter-spacing:.1em;font-weight:700}
#welcome .crossed-art{position:relative;min-height:210px}
#welcome .art-card{position:absolute;top:15px;left:14%;width:115px;height:175px;border-radius:10px;box-shadow:0 12px 25px #001b2370;border:5px solid #f7f9f5}
#welcome .art-card-back{transform:rotate(-14deg);background:url('images/0.jpg') center/cover no-repeat}
#welcome .art-card-front{transform:rotate(12deg);left:40%;top:39px;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#ebdaba,#d7b895)}
#welcome .art-card-front span{font-size:60px;color:#936f49;font-weight:800}
#welcome .art-questionnaire{position:absolute;z-index:2;bottom:0;right:0;background:#fff;padding:20px 16px;width:175px;transform:rotate(-7deg);border-radius:12px;box-shadow:0 14px 30px #001b2380}
#welcome .art-q-heading{font-size:9px;font-weight:800;letter-spacing:.08em;color:#0a7872}
#welcome .art-q-line{height:6px;border-radius:3px;background:#dce8e5;margin-top:13px}
#welcome .art-q-line.short{width:65%}
#welcome .art-q-dots{display:flex;gap:6px;margin-top:19px}
#welcome .art-q-dots i{width:24px;height:22px;border-radius:5px;border:1px solid #9ac5bf}
#welcome .art-q-dots i.selected{background:#16867c}
#welcome .two-approaches{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
#welcome .two-approaches>div{background:#f5faf8;border:1px solid #ddece8;border-radius:15px;padding:20px 22px}
#welcome .approach-num{font-size:12px;letter-spacing:.11em;color:#0d8078;font-weight:800}
#welcome .two-approaches h3{font-size:23px;color:#143641;margin:9px 0}
#welcome .two-approaches p{color:#4a676b;font-size:15.7px;line-height:1.52;margin:0}
#welcome .crossed-outro{font-size:14.5px;margin:13px 0 0}
/* Consignes : matérialiser les quatre piles et décrire la vraie règle. */
#instructions{max-width:1140px}
#instructions .instructions-head{display:flex;align-items:center;justify-content:space-between;gap:24px}
#instructions h2{font-size:clamp(30px,3.2vw,42px);color:#133945;margin:13px 0 13px}
#instructions h2 span{color:#138178}
#instructions .instructions-head p{max-width:780px;margin:0 0 13px}
#instructions .trial-stat{flex:0 0 136px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#eaf7f2;border:1px solid #c6e2da;padding:16px;border-radius:16px;text-align:center}
#instructions .trial-stat strong{font-size:57px;line-height:1;color:#0d7c74}
#instructions .trial-stat span{font-size:13px;color:#497674;line-height:1.3}
#instructions .cards-demo{background:#f2f8f6;border:1px solid #d8e9e4;border-radius:18px;padding:19px 24px 15px;margin:20px 0}
#instructions .cards-demo-label{font-size:12px;font-weight:800;color:#42706c;letter-spacing:.12em;text-align:center}
#instructions .four-decks{display:flex;justify-content:center;gap:clamp(14px,3.4vw,48px);align-items:center;margin:17px auto 10px}
#instructions .demo-deck{display:flex;flex-direction:column;align-items:center;gap:11px}
#instructions .demo-card{display:block;width:clamp(65px,8vw,94px);aspect-ratio:.7;background:url('images/0.jpg') center/cover;border:3px solid #a4c3ba;border-radius:9px;box-shadow:4px 5px 0 #d2e2dd,7px 8px 0 #a9c7be,0 9px 16px #20383418}
#instructions .demo-deck small{font-weight:700;color:#2c5557;font-size:13px}
#instructions .cards-demo p{font-size:14px;line-height:1.48;color:#5a7775;text-align:center;margin:0}
#instructions .howto-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#instructions .howto-step{background:white;border:1px solid #e1e9e6;border-radius:14px;padding:17px 19px}
#instructions .howto-step .step-number{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:10px;background:#e0f2eb;color:#0d7d72;font-size:13px;font-weight:850}
#instructions .howto-step h3{font-size:18.5px;color:#173e48;margin:11px 0 6px}
#instructions .howto-step p{font-size:15px;line-height:1.53;margin:0}
#instructions .card-types{margin-top:22px}
#instructions .card-types h3{font-size:21px;margin:4px 0 6px;color:#163b43}
#instructions .card-types>p{font-size:15.5px;margin:3px 0 11px}
#instructions .type-pills{display:flex;flex-wrap:wrap;gap:9px}
#instructions .type-pills span{font-size:14px;font-weight:700;color:#1c5858;background:#ecf7f3;border:1px solid #d2e9e2;border-radius:12px;padding:10px 12px}
#instructions .type-pills b{font-size:11px;color:#13847b;margin-right:7px}
#instructions .mechanism-note{background:#f5faf8;border-left:3px solid #6cc0ac;border-radius:0 9px 9px 0;padding:12px 16px;color:#325c5c;font-size:15px;line-height:1.52;margin-top:14px}
#instructions .reassurance{display:flex;gap:18px;background:#e8f6f1;border:1px solid #c8e6dc;border-radius:16px;margin-top:19px;padding:20px 24px}
#instructions .reassurance-symbol{font-size:27px;color:#15877c;line-height:1}
#instructions .reassurance h3{font-size:21px;color:#14554f;margin:0 0 8px}
#instructions .reassurance p{font-size:16px;line-height:1.53;margin:0;color:#285a59}
#instructions .instructions-actions{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:20px}
#instructions .instructions-actions button{margin:0}
@media(max-width:950px){
  #welcome .onboarding-split{grid-template-columns:1fr}
  #welcome .intro-info .intro-content{padding-bottom:18px}
  #welcome .crossed-hero{grid-template-columns:1fr}
  #welcome .crossed-art{display:none}
}
@media(max-width:680px){
  #welcome .journey-strip{gap:7px;font-size:12px}
  #welcome .journey-strip span:not(.journey-arrow){padding:10px}
  #welcome .intro-info .intro-content h1{font-size:28px}
  #welcome .onboarding-form{grid-template-columns:1fr;padding:15px}
  #welcome .crossed-hero{padding:23px 20px}
  #welcome .two-approaches{grid-template-columns:1fr}
  #instructions .instructions-head{align-items:start;flex-direction:column}
  #instructions .trial-stat{flex:auto;align-self:start;flex-direction:row;padding:9px 17px;gap:15px}
  #instructions .trial-stat strong{font-size:38px}
  #instructions .four-decks{gap:13px}
  #instructions .howto-grid{grid-template-columns:1fr}
  #instructions .reassurance{padding:16px;gap:10px}
  #instructions .instructions-actions{flex-direction:column-reverse;align-items:stretch}
  #instructions .instructions-actions button{width:100%}
}
/* Correction de contraste : les emphases sur le fond bleu foncé restent lisibles. */
#welcome .crossed-hero p strong{color:#ffffff}


/* V11.9.3 : confidentialité EN PREMIER, puis formulaire en pleine largeur. */
#welcome .intro-info .intro-content{padding-top:24px;padding-bottom:8px}
#welcome .intro-info .intro-content h1{margin:6px 0 12px}
#welcome .intro-info .intro-content .info-lead{max-width:1100px;margin-bottom:17px}
#welcome .privacy-first{display:flex;flex-direction:column;gap:18px}
#welcome .privacy-first .privacy-card{width:100%;background:#edf8f4;border:1px solid #cbe4d9;border-radius:16px;padding:24px 30px}
#welcome .privacy-first .privacy-card h2{color:#123e45;font-size:24px;margin:0 0 13px;letter-spacing:-.02em}
#welcome .privacy-first .privacy-card p{color:#2b5358;font-size:15px;line-height:1.54;margin:0 0 11px;max-width:none}
#welcome .privacy-first .privacy-card .privacy-lead{font-size:16px;line-height:1.5}
#welcome .privacy-first .privacy-download{display:inline-flex;align-items:center;gap:10px;padding:10px 15px;margin-top:3px;border:1px solid #84bdb0;border-radius:10px;color:#0d655f;background:#fff;font-size:14px;font-weight:750;text-decoration:none;max-width:100%;line-height:1.4}
#welcome .privacy-first .privacy-download:hover,#welcome .privacy-first .privacy-download:focus-visible{background:#d9f2e9;outline:2px solid transparent}
#welcome .privacy-first .privacy-download span{display:inline-flex;justify-content:center;align-items:center;border-radius:50%;background:#e4f4ef;height:26px;width:26px;flex:none;font-size:17px}
#welcome .demographics-intro{margin:0 0 -9px}
#welcome .demographics-intro h3{font-size:20px;color:#153d44;margin:0 0 5px}
#welcome .demographics-intro p{font-size:14.5px;line-height:1.45;margin:0;color:#5c7c7d}
#welcome .privacy-first .onboarding-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px 22px;gap:15px 21px;background:#f9fcfb}
#welcome .privacy-first .onboarding-form label{font-size:14.5px}
#welcome .intro-info .page-hint{margin:12px 0 0;font-size:13px}
@media(max-width:650px){
  #welcome .privacy-first{gap:14px}
  #welcome .privacy-first .privacy-card{padding:18px 17px}
  #welcome .privacy-first .privacy-card h2{font-size:21px}
  #welcome .privacy-first .privacy-card p{font-size:14px}
  #welcome .privacy-first .privacy-download{width:100%;font-size:13.5px}
  #welcome .privacy-first .onboarding-form{grid-template-columns:1fr;padding:16px}
  #welcome .demographics-intro h3{font-size:18px}
}

/* V11.9.4 — identité B : institutionnel contemporain, proche des logos fixes.
   TYPO : IBM Plex Serif (titres éditoriaux) + IBM Plex Sans (UI).
   En cas de connexion hors ligne, les polices système de repli restent lisibles.
   Une seule zone modifiée : présentation, aucune règle de score/timing. */
:root{
  --brand-navy:#002B49;
  --brand-cyan:#00BFCB;
  --ui-ink:#1C3444;
  --ui-text:#344E5D;
  --ui-muted:#607787;
  --ui-pearl:#F2F5F6;
  --ui-paper:#FFFFFF;
  --ui-pale:#EAF3F3;
  --ui-line:#D9E3E6;
  --ui-accent:#007D88;
}
body{font-family:'IBM Plex Sans','Segoe UI',Arial,sans-serif;background:#F2F5F6;color:var(--ui-ink);}
body p,.panel p{color:var(--ui-text)}
button,input,select{font-family:'IBM Plex Sans','Segoe UI',Arial,sans-serif;}
button{font-weight:600;letter-spacing:0;}
.site-header{background:white;border-bottom:1px solid var(--ui-line);color:var(--brand-navy);}
.site-header strong{color:var(--brand-navy);}
.primary{background:var(--brand-navy);color:white;}
.primary:hover,.primary:focus-visible{background:#06456b;}
.secondary{background:#E9F1F2;color:var(--brand-navy);}
.secondary:hover,.secondary:focus-visible{background:#D9E8EA;}
.eyebrow,#welcome .welcome-eyebrow{color:var(--ui-accent);font-weight:700;letter-spacing:.10em;}
#task .progress>div{background:var(--brand-cyan);}
.panel{border-color:var(--ui-line);border-radius:16px;box-shadow:0 12px 35px #002B4908;}
/* Grand titres seulement : une touche éditoriale sans pénaliser les contrôles. */
#welcome .intro-content h1,#instructions h2,#qintro h2,#end h1,#results h1,#resultsActions h1,#goodbye h1{
  font-family:'IBM Plex Serif',Georgia,serif;
  font-weight:600;
  letter-spacing:-.022em;
  line-height:1.2;
}
#welcome .welcome-shell{border:1px solid var(--ui-line);box-shadow:0 12px 35px #002B4908;color:var(--ui-ink);}
#welcome .welcome-brand span{color:#008C9B;font-weight:600;}
#welcome .intro-content h1{color:var(--brand-navy);letter-spacing:-.028em;}
#welcome .intro-content .accent-line{color:#008F99;}
#welcome .intro-content p{color:var(--ui-text)}
#welcome .intro-content .narrative-lead{color:var(--brand-navy);font-weight:600;font-size:clamp(19px,1.7vw,23px);}
#welcome .intro-content .intro-muted{color:var(--ui-muted);}
#welcome .intro-footer{border-color:var(--ui-line);}
#welcome .intro-prev{border:1px solid var(--ui-line);background:#F5F7F8;color:var(--brand-navy);}
#welcome .intro-footer .intro-next,#welcome .intro-footer #go{background:var(--brand-navy);color:white;}
#welcome .intro-footer button:hover:not(:disabled){filter:brightness(1.1)}
/* Slide 1 — reprendre le texte et l'ordre éditorial d'Adrien. */
#welcome .intro-editorial{max-width:1160px;padding-top:clamp(26px,2.8vw,44px);padding-bottom:27px;}
#welcome .intro-editorial h1{font-size:clamp(34px,3vw,49px);max-width:950px;margin-bottom:18px;}
#welcome .intro-editorial h1 .accent-line{display:block;}
#welcome .intro-editorial p{max-width:1090px;font-size:clamp(16px,1.35vw,18px);line-height:1.62;margin-bottom:16px;}
#welcome .intro-editorial .narrative-lead{font-size:clamp(18px,1.75vw,24px);line-height:1.38;margin:0 0 23px;}
#welcome .intro-editorial .intro-highlight{background:#E8F3F2;border-left:4px solid var(--ui-accent);border-radius:0 10px 10px 0;color:var(--brand-navy);padding:16px 22px;max-width:1080px;font-weight:650;font-size:clamp(17px,1.4vw,19px);line-height:1.52;margin:20px 0 19px;}
#welcome .duration-panel{display:flex;align-items:center;gap:15px;background:#F3F7F7;border:1px solid #D4E6E6;border-radius:12px;padding:15px 20px;margin-top:19px;max-width:1080px;color:var(--brand-navy)}
#welcome .duration-panel .duration-icon{font-size:29px;line-height:1;color:var(--ui-accent);}
#welcome .duration-panel div{display:flex;flex-direction:column;gap:2px;}
#welcome .duration-panel strong{font-size:17px;}
#welcome .duration-panel div span{font-size:14px;color:var(--ui-muted);}
/* Slide 2 — RGPD en premier, puis les 4 champs, sans formulations inutiles. */
#welcome .intro-info .privacy-card{background:#F0F6F6;border-color:var(--ui-line);}
#welcome .intro-info .privacy-card h2{color:var(--brand-navy);font-family:'IBM Plex Sans','Segoe UI',sans-serif;}
#welcome .intro-info .privacy-card p{color:var(--ui-text);}
#welcome .intro-info .privacy-download{border-color:#A5CDCE;color:var(--brand-navy);background:#fff;}
#welcome .intro-info .demographics-intro h3{color:var(--brand-navy);}
#welcome .privacy-first .onboarding-form{background:#F6F8F9;border-color:var(--ui-line);}
#welcome .participant-form input:focus,#welcome .participant-form select:focus{outline:2px solid var(--ui-accent);}
/* Slide 3 — fond papier/gris perle, aucun dégradé, halo, ni élément techno superflu. */
#welcome .crossed-hero{background:#F1F4F5;border:1px solid #D9E2E6;box-shadow:none;min-height:286px;color:var(--brand-navy);grid-template-columns:minmax(0,1.52fr) minmax(250px,.48fr);}
#welcome .crossed-hero:before{display:none!important;content:none!important;box-shadow:none!important;}
#welcome .crossed-hero .welcome-eyebrow{color:var(--ui-accent);}
#welcome .crossed-hero h1{color:var(--brand-navy);font-size:clamp(36px,3.6vw,54px);line-height:1.16;}
#welcome .crossed-hero h1 span{color:#008F99;}
#welcome .crossed-hero p{color:var(--ui-text);font-size:clamp(16px,1.2vw,18px);max-width:800px;line-height:1.6;}
#welcome .crossed-hero p strong{color:var(--brand-navy);}
#welcome .crossed-art{border-left:1px solid #D7E1E3;min-height:222px;margin:0 0 0 12px;}
#welcome .art-card{box-shadow:0 7px 14px #002B491f;}
#welcome .art-card-front{background:#E6D8BE;}
#welcome .art-questionnaire{box-shadow:0 7px 14px #002B4920;}
#welcome .art-q-heading{color:var(--ui-accent);}
#welcome .art-q-dots i.selected{background:var(--ui-accent)}
#welcome .crossed-tags{display:none!important;}
#welcome .two-approaches>div{background:#FAFBFC;border:1px solid var(--ui-line);}
#welcome .approach-num{color:var(--ui-accent);}
#welcome .two-approaches h3{color:var(--brand-navy);font-size:24px;line-height:1.3;}
#welcome .two-approaches p{color:var(--ui-text);font-size:17px;line-height:1.6;}
#welcome .crossed-outro{color:var(--ui-muted);font-size:16px;margin-top:17px;}
/* Slide 4 — quatre piles SANS NUMEROTATION, sans changement des cartes. */
#instructions .demo-deck small{display:none;}
#instructions .demo-deck{gap:0;}
#instructions .cards-demo{background:#F1F6F7;border-color:var(--ui-line);}
#instructions .cards-demo-label{color:var(--ui-muted);}
#instructions h2{color:var(--brand-navy);}
#instructions h2 span{color:#008F99;}
#instructions .trial-stat,#instructions .reassurance{background:#EAF4F4;border-color:#CDE2E4;}
#instructions .trial-stat strong,#instructions .trial-stat span{color:var(--brand-navy);}
#instructions .howto-step{border-color:var(--ui-line);}
#instructions .howto-step .step-number{background:#E8F3F3;color:var(--ui-accent);}
#instructions .howto-step h3,#instructions .card-types h3{color:var(--brand-navy);}
#instructions .type-pills span,#instructions .mechanism-note{background:#F0F6F7;border-color:var(--ui-line);color:var(--ui-text);}
#instructions .type-pills b{color:var(--ui-accent);}
#instructions .reassurance h3,#instructions .reassurance-symbol{color:var(--brand-navy)}
#instructions .reassurance p{color:var(--ui-text)}
/* Alignement des écrans : introduction, cartes, questionnaire, feedback, PDF. */
@media screen and (min-width: 761px){
  main{max-width:1620px;width:100%;padding:clamp(25px,2.5vw,42px) clamp(22px,3vw,52px) 65px;}
  body:has(#welcome:not(.hidden)) main{max-width:1620px;}
  .panel{max-width:1420px;width:100%;padding:clamp(40px,4.3vw,72px);}
  #instructions,#qintro,#questionnaire,#end,#goodbye,#task,#results,#resultsActions{max-width:1420px;}
  #task .cards{max-width:950px;width:100%;gap:clamp(17px,2vw,28px);}
  #task .reveal{height:365px;}
  #task .reveal img{max-height:355px;max-width:100%;object-fit:contain;}
  #task .tasktop{font-size:22px;}
  #task .taskhint{font-size:18px;}
  #questionnaire h2{font-size:clamp(31px,3.1vw,43px);max-width:1170px;line-height:1.35;min-height:108px;}
  #questionnaire .scale:not(.scale-5){max-width:1100px;margin:31px auto 8px;}
  #questionnaire .scale:not(.scale-5) button{min-height:80px;font-size:24px;}
  #questionnaire .scale.scale-5{margin-top:26px;}
  #questionnaire .scale.scale-5 button{font-size:19px;min-height:94px;}
  #results .result-measures{gap:26px;margin-top:30px;}
  #results .measure{padding:26px 30px;}
  #results .norm-scale{height:26px;margin:19px 0 13px;}
  #results .norm-labels{font-size:16px;}
  #results .measuretop{font-size:21px;}
  #results .measure small{font-size:17px;}
  #results .results-explain{padding:28px 32px;}
  #results .profile-summary h3{font-size:26px;}
  #results .profile-summary p{font-size:20px;}
  #resultsActions .reco-preview{padding:34px 40px;}
  #resultsActions .reco-preview h3{font-size:27px;}
  #resultsActions .short-actions li{font-size:19px;}
  #resultsActions .results-download{padding:28px 34px;}
  #resultsActions .results-download p{font-size:19px;}
}
@media screen and (max-width: 760px){
  .panel{width:100%;}
  #welcome .intro-editorial{padding:22px 0;}
  #welcome .intro-editorial h1{font-size:clamp(28px,7.5vw,40px);}
  #welcome .intro-editorial p{font-size:16.5px;}
  #welcome .intro-editorial .narrative-lead{font-size:18px;}
  #welcome .intro-editorial .intro-highlight{font-size:16px;padding:14px 16px;}
  #welcome .duration-panel{padding:13px 16px;}
  #welcome .crossed-hero{grid-template-columns:1fr;}
  #welcome .crossed-hero h1{font-size:clamp(30px,7vw,43px);}
  #welcome .crossed-hero .crossed-art{display:none;}
  #welcome .two-approaches h3{font-size:22px;}
  #welcome .two-approaches p{font-size:16px;}
  #instructions .four-decks{gap:clamp(7px,2.4vw,18px);}
  #instructions .demo-card{width:clamp(44px,15.7vw,86px);}
  #task .cards{max-width:100%;}
  #questionnaire .scale.scale-5 button{min-height:60px;}
}
/* Contraste explicite de la tâche : les consignes restent lisibles sur le bleu nuit. */
#task{background:var(--brand-navy);color:#fff;}
#task .taskhint{color:#DAE9EF!important;}
#task .progress{background:#3B627A;}
#task .card{border-color:#AEC8D4;}


/* V11.9.4.1 — CALIBRE DES TROIS SLIDES D’ACCUEIL.
   Rééquilibre la taille de la présentation après l’agrandissement des écrans de
   passation. Seules les slides 1–3 sont concernées ; tâche, questions, scores,
   photographies et rapports restent strictement inchangés. */
@media screen and (min-width: 761px) {
  /* Réintroduire l'ampleur de l'accueil V11.9.3 sans changer la charte B. */
  body:has(#welcome:not(.hidden)) main {
    max-width:1540px;
    padding:clamp(18px,2.2vw,38px) clamp(20px,2.8vw,42px);
  }
  #welcome .welcome-shell {
    padding:clamp(33px,3vw,52px) clamp(36px,4.2vw,72px) 30px;
    min-height:min(750px, calc(100dvh - 65px));
  }
  #welcome .welcome-brand img {width:80px;height:80px;}
  #welcome .welcome-brand span {font-size:29px;}
  #welcome .welcome-partner img {width:72px;height:72px;}
  #welcome .intro-footer button {font-size:18px;padding:14px 23px;}
  #welcome .intro-footer>span {font-size:17px;}
  #welcome .welcome-eyebrow {font-size:15px;}
  /* Slide 1 : typographie et paragraphes plus présents. */
  #welcome .intro-editorial {max-width:1200px;padding-top:clamp(31px,3.1vw,48px);padding-bottom:30px;}
  #welcome .intro-editorial h1 {font-size:clamp(46px,4.2vw,62px);max-width:1040px;margin-bottom:24px;}
  #welcome .intro-editorial p {font-size:19px;line-height:1.68;max-width:1150px;margin-bottom:19px;}
  #welcome .intro-editorial .narrative-lead {font-size:clamp(21px,1.8vw,25px);max-width:1170px;margin-bottom:27px;}
  #welcome .intro-editorial .intro-highlight {font-size:20px;max-width:1150px;padding:20px 26px;margin:22px 0;}
  #welcome .duration-panel {max-width:1150px;padding:18px 23px;margin-top:23px;}
  #welcome .duration-panel strong {font-size:19px;}
  #welcome .duration-panel div span {font-size:16px;}
  /* Slide 2 : ne pas réduire les informations RGPD/formulaire à des légendes. */
  #welcome .intro-info .intro-content h1 {font-size:clamp(42px,3.7vw,54px);}
  #welcome .intro-info .intro-content .info-lead {font-size:19px;line-height:1.58;}
  #welcome .privacy-first .privacy-card {padding:28px 32px;}
  #welcome .privacy-first .privacy-card h2 {font-size:27px;}
  #welcome .privacy-first .privacy-card p {font-size:17px;line-height:1.6;}
  #welcome .privacy-first .privacy-card .privacy-lead {font-size:18px;}
  #welcome .privacy-first .privacy-download {font-size:16px;padding:12px 18px;}
  #welcome .demographics-intro h3 {font-size:23px;}
  #welcome .privacy-first .onboarding-form {padding:24px 27px;gap:20px 24px;}
  #welcome .privacy-first .onboarding-form label {font-size:16px;}
  #welcome .privacy-first .onboarding-form input,
  #welcome .privacy-first .onboarding-form select {font-size:17px;min-height:50px;}
  #welcome .intro-info .page-hint {font-size:16px;}
  /* Slide 3 : bloc de présentation ample comme l'ancienne version. */
  #welcome .intro-crossed .intro-content {padding-top:29px;}
  #welcome .crossed-hero {min-height:372px;padding:clamp(40px,4vw,57px);}
  #welcome .crossed-hero h1 {font-size:clamp(44px,4.25vw,64px);max-width:830px;}
  #welcome .crossed-hero p {font-size:19px;line-height:1.65;}
  #welcome .two-approaches {gap:22px;margin-top:22px;}
  #welcome .two-approaches>div {padding:25px 29px;}
  #welcome .two-approaches h3 {font-size:27px;}
  #welcome .two-approaches p {font-size:19px;line-height:1.63;}
  #welcome .crossed-outro {font-size:18px;line-height:1.6;margin-top:22px;}
}


/* V11.9.4.2 — Palette homogène du questionnaire jusqu'à la clôture.
   Correctif visuel seulement : pas de modification des tailles, contenus,
   stimuli, réponses, scores, rapports, ni timings du WLB-IT. */
#qintro .transition-complete {color:var(--ui-accent);}
#qintro .transition-check {background:#E3F1F3;color:var(--ui-accent);}
#qintro h2,#questionnaire h2,#end h1,#goodbye h1 {color:var(--brand-navy);}
#questionnaire .scale button {
  background:#E9F2F5;
  color:var(--brand-navy);
  border:1px solid #C8DDE3;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease;
}
#questionnaire .scale button:hover,
#questionnaire .scale button:focus-visible {
  background:var(--brand-navy);
  color:#FFFFFF;
  border-color:var(--brand-navy);
  outline-offset:3px;
}
#questionnaire .ends {color:var(--ui-muted);}
#end .quiet {color:var(--ui-muted);}
#end .quiet:hover,#end .quiet:focus-visible {color:var(--brand-navy);}
.results-stage .stage-count {background:#E9F2F5;color:var(--brand-navy);}
#results .results-lead,#resultsActions .results-lead {color:var(--ui-text);}
#results .measure {
  background:#FBFCFD;
  border-color:var(--ui-line);
}
#results .measuretop,#results .measuretop strong {color:var(--brand-navy);}
#results .norm-segment.low {background:#E5EDF1;}
#results .norm-segment.middle {background:#C8DCE4;}
#results .norm-segment.high {background:#91BECA;}
#results .norm-marker {
  background:var(--brand-navy);
  box-shadow:0 0 0 1px var(--brand-navy),0 2px 5px #002B4933;
}
#results .norm-labels,#results .measure small {color:var(--ui-muted);}
#results .results-explain {
  background:#EDF5F7;
  border-color:var(--ui-line);
}
#results .results-explain h3,#results .profile-summary h3,
#resultsActions .reco-preview h3,#resultsActions .results-download h3 {
  color:var(--brand-navy);
}
#results .results-explain p,#results .profile-summary p,
#resultsActions .short-actions li,#resultsActions .results-download p {
  color:var(--ui-text);
}
#results .profile-summary,#resultsActions .reco-preview {border-color:var(--ui-line);}
#resultsActions .reco-preview {
  background:#F8FAFB;
  border-color:var(--ui-line);
}
#resultsActions .short-actions li {border-color:#E1EAEE;}
#resultsActions .short-actions li:before {
  background:#E2F0F3;
  color:var(--ui-accent);
}
#resultsActions .short-actions li strong {color:var(--brand-navy);}
#resultsActions .results-download {
  background:#EDF5F7;
  border-color:var(--ui-line);
}
#resultsActions .results-download p strong {color:var(--brand-navy);}
.results-stage .stage-actions {border-color:var(--ui-line);}
.results-stage .stage-hint {color:var(--ui-muted);}
#goodbye .final-check {background:#E2F0F3;color:var(--ui-accent);}
#goodbye .notice {color:var(--ui-muted);}


/* V11.9.4.3 — retouches typographiques et éditoriales validées.
   Seules la lecture des consignes, la teinte du mot-symbole, et la police des
   questions changent : aucun scoring, stimulus, comportement ou PDF modifié. */
/* La première slide est la référence pour le mot « ImpliSight ». */
.site-header strong {color:#008C9B;}
/* Légère réduction de la taille des seules formulations des questions. */
#questionnaire h2 {font-size:clamp(23px,2.8vw,33px);}
@media screen and (min-width:761px) {
  #questionnaire h2 {font-size:clamp(29px,2.9vw,39px);}
}
/* Phrase explicative juste sous les quatre cartes, plus aérée et centrée. */
#instructions .cards-demo .four-decks {margin-bottom:16px;}
#instructions .cards-demo p {display:block;width:100%;max-width:none;text-align:center;margin:4px auto 0;}
/* Aération discrète des deux phrases finales du rappel sur les piles. */
#instructions .mechanism-note .mechanism-explore {display:block;margin-top:8px;}
#instructions .mechanism-note .mechanism-cta {display:block;margin-top:8px;color:var(--brand-navy);}


/* V11.9.4.4 — consignes alignées et restitution centrée sur les résultats.
   Les jauges, leur échelle et leurs marqueurs gardent exactement les styles
   et les calculs des versions antérieures ; seule la copie est clarifiée. */
#instructions .card-types .mechanism-note {
  display:block;
  width:100%;
  max-width:none;
  margin:14px 0 0;
  padding:20px 25px 20px 63px;
  font-size:16px;
  line-height:1.53;
  border-left:3px solid var(--ui-accent);
}
#instructions .mechanism-note .mechanism-cta {
  display:inline;
  white-space:nowrap;
  margin-top:0;
}
#results .measure-context {
  color:var(--ui-muted);
  font-size:14px;
  line-height:1.45;
  margin-top:6px;
}
#results .measure small {
  color:var(--brand-navy);
  font-weight:650;
  margin-top:11px;
}
@media screen and (min-width:761px) {
  #results .measure-context {font-size:16px;}
  #results .measure small {font-size:17px;}
}
@media screen and (max-width:680px) {
  #instructions .card-types .mechanism-note {padding:16px 14px 16px 43px;font-size:15px;}
  #results .measure-context {font-size:13px;}
  #results .measure small {font-size:14px;}
}


/* V11.9.4.5 : intitulés plus longs, lisibles sur smartphone.
   La géométrie des segments et la position des curseurs ne changent pas. */
@media screen and (max-width:680px) {
  #results .norm-labels { font-size:12px; }
  #results .norm-labels span:nth-child(1) { width:30%; }
  #results .norm-labels span:nth-child(2) { width:40%; }
  #results .norm-labels span:nth-child(3) { width:30%; }
}
@media screen and (max-width:360px) {
  #results .norm-labels { font-size:11px; }
}


/* ImpliSight V12 : consignes en deux écrans, quatre exemples issus des vraies
   images de la tâche. Règles exclusivement graphiques ; aucun scoring modifié. */
#instructionsFinal {max-width:1420px;}
.final-instructions-top {display:flex;align-items:center;justify-content:space-between;gap:16px;}
.instruction-step-count {flex:none;border-radius:50px;padding:6px 13px;background:#E9F2F4;color:var(--brand-navy);font-size:13px;font-weight:750;}
#instructionsFinal h2 {color:var(--brand-navy);margin:12px 0 20px;font-size:clamp(32px,3.5vw,44px);}
#instructionsFinal .final-families h3 {margin:0 0 6px;color:var(--brand-navy);font-size:clamp(20px,2.15vw,25px);}
#instructionsFinal .final-families>p:not(.family-mechanism) {margin:0 0 14px;font-size:16px;}
#instructionsFinal .family-gallery {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
#instructionsFinal .family-tile {margin:0;overflow:hidden;border:1px solid var(--ui-line);border-radius:13px;background:#F7FAFB;min-width:0;}
#instructionsFinal .family-tile img {display:block;width:100%;height:clamp(115px,11.5vw,162px);object-fit:cover;object-position:center;}
#instructionsFinal .family-tile:nth-child(2) img {object-position:center 15%;}
#instructionsFinal .family-tile figcaption {display:flex;gap:8px;align-items:center;min-height:54px;padding:10px 11px;color:var(--brand-navy);font-size:14px;line-height:1.25;}
#instructionsFinal .family-tile .family-number {flex:none;border-radius:8px;background:#DCEFF1;color:#008C9B;padding:6px 7px;font-weight:800;font-size:12px;}
#instructionsFinal .family-mechanism {margin:16px 0 0;padding:14px 17px 14px 60px;border-left:3px solid #008C9B;border-radius:0 9px 9px 0;background:#F0F6F7;color:var(--ui-text);font-size:15px;line-height:1.57;}
#instructionsFinal .reassurance {display:flex;gap:16px;margin-top:18px;padding:18px 21px;border-radius:14px;border:1px solid #CDE2E4;background:#EAF4F4;}
#instructionsFinal .reassurance-symbol {color:var(--brand-navy);font-size:26px;line-height:1.1;}
#instructionsFinal .reassurance h3 {margin:0 0 6px;font-size:20px;color:var(--brand-navy);}
#instructionsFinal .reassurance p {font-size:15px;line-height:1.53;margin:0;color:var(--ui-text);}
#instructionsFinal .final-readiness {text-align:center;margin:20px auto 0;color:var(--brand-navy);font-weight:650;font-size:15px;}
#instructionsFinal .instructions-actions {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:17px;}
#instructionsFinal .instructions-actions button {margin:0;}
@media screen and (max-width:1000px) {
  #instructionsFinal .family-gallery {gap:10px;}
  #instructionsFinal .family-tile figcaption {font-size:12px;padding:9px 7px;gap:6px;}
  #instructionsFinal .family-tile .family-number {font-size:11px;padding:6px;}
  #instructionsFinal .family-tile img {height:125px;}
}
@media screen and (max-width:650px) {
  #instructionsFinal .family-gallery {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  #instructionsFinal .family-tile img {height:130px;}
  #instructionsFinal .family-tile figcaption {min-height:48px;font-size:12px;}
  #instructionsFinal .family-mechanism {font-size:14px;padding:13px 14px 13px 45px;}
  #instructionsFinal .reassurance {padding:16px;gap:10px;}
  #instructionsFinal .reassurance p {font-size:14px;}
  #instructionsFinal .instructions-actions {flex-direction:column-reverse;align-items:stretch;}
  #instructionsFinal .instructions-actions button {width:100%;}
  #instructionsFinal .final-readiness {font-size:14px;}
}


/* ImpliSight V12 — deux écrans de consignes : cartes illustrées et
   présentation plus progressive. Aucun changement des images/stimuli. */
#instructionsFinal .family-mechanism {
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin:18px 0 0;
  padding:18px 21px;
  border:1px solid #CDE2E4;
  border-radius:14px;
  background:#EAF4F4;
  color:var(--ui-text);
  font-size:15px;
  line-height:1.53;
}
#instructionsFinal .family-mechanism-symbol {
  flex:none;
  color:var(--brand-navy);
  font-size:27px;
  line-height:1.15;
}
#instructionsFinal .family-mechanism h3 {
  color:var(--brand-navy);
  font-size:20px;
  line-height:1.25;
  margin:0 0 6px;
}
#instructionsFinal .family-mechanism p {
  color:var(--ui-text);
  font-size:15px;
  line-height:1.53;
  margin:0;
}
/* Ce recadrage est désormais sur la vignette « Vie personnelle » (2e). */
#instructionsFinal .family-tile:nth-child(2) img {object-position:center 15%;}

/* V12 — ajustement ciblé de l'écran des 60 choix.
   La largeur des cartes dépend aussi de la hauteur disponible, pour
   garder l'ensemble à l'écran à un zoom navigateur de 100 %.
   Les 60 essais, photos, conditions et temps de 850 ms sont inchangés. */
@media screen and (min-width:761px) {
  #task {
    max-width: min(1080px, calc(100vw - 48px));
    padding:clamp(22px, 3vh, 38px) clamp(24px, 3vw, 44px);
  }
  #task .cards {
    width:100%;
    max-width:min(830px, max(420px, calc((100dvh - 330px) * 2.25)));
    gap:clamp(12px, 1.2vw, 18px);
  }
  #task .card { min-height:0; margin:0; padding:0; }
  #task .reveal {height:clamp(175px, calc(100dvh - 370px), 265px);}
  #task .reveal img {max-height:100%;max-width:100%;object-fit:contain;}
  #task .progress {margin:clamp(12px, 2vh, 19px) 0 clamp(16px, 2.5vh, 24px);}
  #task .tasktop {font-size:clamp(17px, 1.55vw, 20px);}
  #task .taskhint {font-size:16px;margin:clamp(12px, 2vh, 19px) 0 0;}
}
@media screen and (max-width:760px) {
  #task .cards {max-width:min(100%, 500px);gap:clamp(7px, 1.9vw, 11px);}
  #task .card {min-height:0;margin:0;padding:0;}
  #task .reveal {height:clamp(150px, calc(100dvh - 310px), 255px);}
  #task .reveal img {max-height:100%;max-width:100%;object-fit:contain;}
  #task .progress {margin:15px 0 20px;}
  #task .taskhint {margin:16px 0 0;}
  #instructionsFinal .family-mechanism {padding:16px;gap:10px;}
  #instructionsFinal .family-mechanism h3 {font-size:18px;}
  #instructionsFinal .family-mechanism p {font-size:14px;}
}


/* ImpliSight V12.2 — phrase de confidentialité complète sur une ligne
   lorsque le bureau est suffisamment large, sans débordement sur mobile.
   Le texte et toutes les autres dimensions d'interface sont inchangés. */
@media screen and (min-width: 1200px) {
  #welcome .intro-info .intro-content .info-lead {
    max-width: 100%;
    font-size: clamp(17.3px, 1.4vw, 19px);
  }
}

/* V12.3 — Consentement explicite avant le jeu (2 finalités distinctes).
   Aucun stockage ni envoi réseau de consentement tant que Supabase n'est pas intégré. */
#welcome .consent-panel{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;padding:21px 24px;margin-top:5px;border:1px solid #c9e0e6;background:#f5fafb;border-radius:16px;}
#welcome .consent-panel h3{margin:0;color:var(--brand-navy,#002b49);font-size:21px;}
#welcome .consent-panel .consent-explain{margin:0 0 3px;font-size:15px;line-height:1.5;max-width:none;}
#welcome .consent-panel .consent-explain a{color:#067d8f;text-decoration:underline;font-weight:650;}
#welcome .consent-choice{display:flex;align-items:flex-start;gap:13px;line-height:1.5;background:#fff;border:1px solid #d4e4e8;border-radius:10px;padding:13px 15px;cursor:pointer;color:#294355;font-size:15px;}
#welcome .consent-choice span{flex:1;}
#welcome .consent-choice input{flex:0 0 21px;width:21px;height:21px;min-height:0;margin:1px 0 0;accent-color:#168f9e;cursor:pointer;}
#welcome .consent-choice strong{color:#002b49;}
#welcome .consent-choice em{font-style:normal;color:#617b8c;}
#welcome .consent-panel .consent-note{font-size:13.5px;line-height:1.5;color:#567082;margin:2px 0;max-width:none;}
#welcome .consent-panel .decline-link{font-size:14px;align-self:flex-start;background:transparent;color:#425f6c;text-decoration:underline;border:0;padding:4px 0;margin:0;}
#optout{max-width:780px;text-align:center;}
@media(max-width:760px){#welcome .consent-panel{padding:16px;gap:9px;}#welcome .consent-choice{padding:11px;font-size:14px;}#welcome .consent-panel h3{font-size:19px;}}
/* V12.3 — grand écran : seuls les textes secondaires et la tâche s'agrandissent.
   Les gros titres, scores et l'interface scientifique sont inchangés. */
@media screen and (min-width:1650px) {
  #task{max-width:min(1450px,calc(100vw - 100px));padding:clamp(38px,4vh,56px) clamp(48px,4vw,70px);}
  #task .cards{max-width:min(1180px,calc((100dvh - 315px) * 2.12),100%);gap:clamp(18px,1.2vw,26px);}
  #task .tasktop{font-size:clamp(21px,1.2vw,25px);}
  #task .taskhint{font-size:clamp(18px,1.03vw,22px);}
  #task .reveal{height:clamp(260px,calc(100dvh - 380px),440px);}
  #task .progress{height:10px;}
  #welcome .welcome-eyebrow,#instructions .eyebrow,#instructionsFinal .eyebrow,#qcounter,#results .eyebrow,#resultsActions .eyebrow{font-size:17px;}
  #welcome .intro-info .page-hint,#welcome .consent-panel .consent-explain{font-size:17px;}
  #welcome .consent-choice{font-size:17px;}
  #welcome .consent-panel .consent-note{font-size:16px;}
  #instructionsFinal .family-mechanism p,#instructionsFinal .reassurance p,#instructions .howto-step p{font-size:18px;}
  #instructionsFinal .family-tile figcaption,#instructionsFinal .final-readiness{font-size:18px;}
  #results .norm-labels,#resultsActions .stage-hint,#results .stage-hint{font-size:15px;}
  #results .measure-context,#results .measure small{font-size:16px;}
  #results .results-lead,#resultsActions .results-lead{font-size:18px;}
}
@media screen and (min-width:1200px) and (max-width:1649px) {
  #instructionsFinal .family-mechanism p,#instructionsFinal .reassurance p{font-size:16px;}
  #results .norm-labels{font-size:13px;}
  #results .measure small{font-size:14px;}
}
/* Les cases de consentement ne doivent pas hériter du layout vertical des champs. */
#welcome .privacy-first .onboarding-form label.consent-choice{display:flex;flex-direction:row;align-items:flex-start;gap:13px;font-weight:450;}
#welcome .privacy-first .onboarding-form label.consent-choice input[type="checkbox"]{width:21px;height:21px;min-height:21px;max-height:21px;padding:0;margin:2px 0 0;flex:0 0 21px;}

/* ImpliSight V12.4 — corrections ciblées de restitution et lisibilité. */
#task .reveal canvas.shown-stimulus {
  display:block; width:auto; height:auto; max-width:100%; max-height:100%;
  object-fit:contain; border-radius:3px;
}
/* Slide 2 : regrouper les consentements sans réduire la taille de police. */
#welcome .intro-info .intro-content{padding-top:13px;padding-bottom:0;}
#welcome .intro-info .intro-content h1{margin:2px 0 8px;}
#welcome .intro-info .intro-content .info-lead{margin-bottom:11px;}
#welcome .intro-info .privacy-first{gap:10px;}
#welcome .intro-info .privacy-first .privacy-card{padding:15px 21px;}
#welcome .intro-info .privacy-first .privacy-card h2{margin:0 0 7px;font-size:22px;}
#welcome .intro-info .privacy-first .privacy-card p{font-size:16px;line-height:1.46;margin:0 0 6px;}
#welcome .intro-info .privacy-first .privacy-download{margin:5px 0 0;padding:8px 13px;font-size:15px;}
#welcome .intro-info .demographics-intro h3{margin:3px 0 0;font-size:19px;}
#welcome .intro-info .onboarding-form{gap:11px 15px;padding:15px 19px;}
#welcome .intro-info .onboarding-form>label{font-size:16px;gap:4px;}
#welcome .intro-info .onboarding-form input:not([type=checkbox]),
#welcome .intro-info .onboarding-form select{min-height:41px;padding:7px 10px;font-size:16px;}
#welcome .intro-info .consent-panel{gap:8px;margin-top:0;padding:13px 15px;}
#welcome .intro-info .consent-panel h3{font-size:19px;}
#welcome .intro-info .consent-choice{padding:8px 10px;font-size:15.5px;line-height:1.43;}
#welcome .intro-info .consent-choice a{color:#007e91;text-decoration:underline;font-weight:650;}
#welcome .intro-info .consent-collective-row{display:flex;align-items:center;justify-content:space-between;gap:13px;}
#welcome .intro-info .onboarding-form .consent-collective-row label{flex:1 1 auto;display:block;min-width:0;font-size:15px;color:var(--brand-navy);font-weight:650;line-height:1.3;}
#welcome .intro-info .consent-collective-row label span{display:block;font-size:13px;font-weight:400;color:var(--ui-muted);}
#welcome .intro-info .consent-collective-row select{flex:0 1 51%;min-width:230px;max-width:490px;font-size:14.5px;}
#welcome .intro-info .decline-link{font-size:14px;padding:0;}
/* Restaurer la lecture des petits caractères sur tous les écrans. */
#welcome .intro-info .welcome-eyebrow,#instructions .eyebrow,
#instructionsFinal .eyebrow {font-size:clamp(14px,0.9vw,16px);}
#instructions .cards-demo-label,#instructionsFinal .cards-demo-label {font-size:clamp(13px,0.85vw,15px);}
#instructions .howto-step p {font-size:clamp(16px,1vw,18px);}
#instructionsFinal .family-mechanism p,#instructionsFinal .reassurance p {font-size:clamp(16px,1vw,18px);}
#instructionsFinal .family-tile figcaption {font-size:clamp(14px,.95vw,17px);}
#instructionsFinal .final-readiness {font-size:clamp(16px,.98vw,18px);}
#questionnaire .ends,#questionnaire .qlegend {font-size:16px;}
#results .norm-labels {font-size:clamp(14px,0.9vw,17px);}
#results .measure small,#results .measure-context {font-size:clamp(15.5px,.98vw,18px);}
@media(max-width:760px) {
  #welcome .intro-info .privacy-first .privacy-card{padding:14px;}
  #welcome .intro-info .intro-content{padding-top:18px;}
  #welcome .intro-info .onboarding-form{padding:14px;gap:12px;}
  #welcome .intro-info .consent-collective-row{flex-direction:column;align-items:stretch;gap:6px;}
  #welcome .intro-info .consent-collective-row select{flex:auto;max-width:none;min-width:0;width:100%;}
  #welcome .intro-info .consent-choice{font-size:15px;}
}
/* Toujours laisser la navigation visible sur la slide de confidentialité.
   Le contenu défile dans la carte, jamais derrière un bouton masqué. */
@media screen and (min-width:761px) and (max-height:1050px) {
  body:has(#welcome .intro-info.active) main {height:100dvh; min-height:0; align-items:center;}
  #welcome:has(.intro-info.active) {height:calc(100dvh - 80px); max-height:calc(100dvh - 80px); min-height:0;}
  #welcome:has(.intro-info.active) .welcome-header {flex:0 0 auto;}
  #welcome:has(.intro-info.active) .welcome-pages {flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;}
  #welcome:has(.intro-info.active) .intro-info.active {flex:0 0 auto;}
  #welcome:has(.intro-info.active) .intro-footer {flex:0 0 auto;background:white;padding-top:12px;}
}
@media(max-width:760px) {
  #welcome .intro-info .privacy-download {display:flex;width:100%;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.35;font-size:14px;}
}
@media(max-width:760px) {
  #welcome, #welcome .welcome-pages, #welcome .intro-page.active,
  #welcome .intro-info .intro-content, #welcome .intro-info .privacy-first,
  #welcome .intro-info .privacy-card, #welcome .intro-info .onboarding-form {
    min-width:0; max-width:100%;
  }
  #welcome {width:100%;}
  #welcome .intro-info .privacy-download {
    display:flex;max-width:100%;min-width:0;width:100%;overflow-wrap:anywhere;
  }
  #welcome .intro-info .onboarding-form input:not([type=checkbox]),
  #welcome .intro-info .onboarding-form select {min-width:0;}
}
@media(max-width:760px) {
  body:has(#welcome:not(.hidden)) main {width:100vw;max-width:100vw;min-width:0;padding:0;margin:0;overflow-x:hidden;}
  #welcome {box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;min-width:0!important;padding:20px 21px!important;}
  #welcome .intro-info .privacy-card {box-sizing:border-box;width:100%;max-width:100%;}
  #welcome .intro-info .privacy-download {box-sizing:border-box;width:100%;max-width:100%;}
}

/* ImpliSight V12.5 — retour au moteur d'images validé V11.9.1.
   Aucune conversion canvas/ImageBitmap pour les photographies révélées. */
#task .reveal img#shown {display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:3px;}

/* Lire aisément les PETITS textes de l'interface sans agrandir les titres. */
#welcome .intro-info .privacy-first .privacy-card p {font-size:17px;line-height:1.46;}
#welcome .intro-info .privacy-first .privacy-download {font-size:16px;}
#welcome .intro-info .onboarding-form>label {font-size:17px;}
#welcome .intro-info .consent-choice {font-size:16.5px;line-height:1.44;}
#welcome .intro-info .decline-link {font-size:15.5px;}
#welcome .intro-info .onboarding-form input:not([type=checkbox]),
#welcome .intro-info .onboarding-form select {font-size:17px;}
#welcome .intro-info .welcome-eyebrow {font-size:15px;}
#instructions .cards-demo-label,#instructionsFinal .cards-demo-label{font-size:15px;}
#instructions .howto-step p{font-size:17px;}
#instructionsFinal .family-mechanism p,#instructionsFinal .reassurance p{font-size:17px;}
#instructionsFinal .family-tile figcaption {font-size:16px;}
#instructionsFinal .final-readiness{font-size:17px;}
#questionnaire .ends,#questionnaire .qlegend {font-size:17px;}
#results .norm-labels {font-size:15px;}
#results .measure small,#results .measure-context{font-size:17px;}
#resultsActions .stage-hint,#results .stage-hint {font-size:15px;}
@media screen and (min-width:1650px){
 #welcome .intro-info .privacy-first .privacy-card p{font-size:18px;}
 #welcome .intro-info .consent-choice{font-size:18px;}
 #instructionsFinal .family-mechanism p,#instructionsFinal .reassurance p{font-size:19px;}
 #results .measure small,#results .measure-context{font-size:18px;}
}
@media screen and (max-width:760px){
 #welcome .intro-info .privacy-first .privacy-card p{font-size:15.5px;}
 #welcome .intro-info .consent-choice{font-size:15px;}
 #welcome .intro-info .onboarding-form>label{font-size:15px;}
 #welcome .intro-info .onboarding-form input:not([type=checkbox]),
 #welcome .intro-info .onboarding-form select{font-size:16px;}
 #instructionsFinal .family-mechanism p,#instructionsFinal .reassurance p{font-size:15.5px;}
 #instructionsFinal .family-tile figcaption{font-size:13px;}
 #instructionsFinal .final-readiness{font-size:15.5px;}
 #results .norm-labels{font-size:12.5px;}
 #results .measure small,#results .measure-context{font-size:15px;}
}

/* ImpliSight WLB — raccord Supabase, hors instrument scientifique V12.5 */
.production-collection{margin:22px auto 18px;max-width:580px;padding:16px 20px;border:1px solid #d5e4ea;border-radius:14px;background:#f6f9fa;color:#233d51;text-align:left}
.production-collection p{margin:0 0 8px;font-size:15px;line-height:1.5}
.production-collection #implisight-turnstile{min-height:0}
.production-collection button{margin-top:10px}
.production-collection-note{font-size:14px;line-height:1.5;color:#657f90;margin:10px 0 0}
