:root{--bg:#f6f8fb;--surface:#fff;--ink:#1b2740;--muted:#66748b;--line:#e2e8f1;--accent:#146a75;--accent-dark:#105661;--mint:#e6f3f1;--blue:#edf3fc;--danger:#a73535;--shadow:0 20px 60px rgba(29,56,87,.08);font-synthesis:none}
*{box-sizing:border-box}
html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.52}
body{margin:0;min-height:100vh}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45}
.shell{width:min(1120px,100% - 40px);margin:0 auto}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 0;border-bottom:1px solid var(--line)}
.brand{font-weight:800;letter-spacing:-.035em;font-size:17px;display:flex;align-items:center;gap:10px}
.brand-mark{background:var(--mint);color:var(--accent);display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;font-size:24px}
.top-note,.text-link{font-size:13px;font-weight:650;color:var(--muted)}
.student-layout{max-width:760px;margin:0 auto}
.intro{text-align:center;padding:56px 0 25px}
.eyebrow{font-weight:850;font-size:11px;letter-spacing:.12em;color:var(--accent);text-transform:uppercase}
h1{font-size:clamp(32px,5.5vw,48px);letter-spacing:-.055em;line-height:1.13;margin:13px 0 17px}
.accent{color:var(--accent)}
.intro>p,.dashboard-head p{color:var(--muted);font-size:16px;margin:0 auto;max-width:620px}
.privacy{background:var(--mint);color:#285e60;border:1px solid #d1e9e4;border-radius:12px;text-align:left;display:flex;gap:11px;align-items:flex-start;padding:12px 15px;font-size:13px;margin:26px auto 0;max-width:620px}
.privacy span:first-child{font-size:18px;line-height:1}
.survey-card,.login-card,.result-card,.metric{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px}
.survey-card{padding:clamp(22px,4vw,43px);margin:18px 0 22px}
.survey-meta{display:flex;justify-content:space-between;font-size:12px;font-weight:750;color:var(--muted);margin-bottom:13px}
.survey-meta span:last-child{color:var(--accent)}
.progress-track{height:7px;background:#e8edf3;border-radius:8px;overflow:hidden;margin-bottom:35px}
.progress-fill{height:100%;background:linear-gradient(90deg,#45a7a4,#146a75);border-radius:8px;transition:width .25s}
.survey-card h2{letter-spacing:-.035em;font-size:clamp(22px,3.7vw,28px);line-height:1.3;margin:0 0 10px}
.choice-hint{margin:0 0 24px;color:var(--muted);font-size:14px}
.options-list{border:0;padding:0;margin:0;display:grid;gap:10px}
.choice-card{display:flex;align-items:center;gap:14px;background:#fff;border:1.5px solid #e2e8f1;border-radius:12px;padding:14px 16px;font-size:14px;cursor:pointer;transition:border-color .15s,background .15s}
.choice-card:hover{background:#f7fbfb;border-color:#9dcacc}
.choice-card.selected{background:var(--mint);border-color:#54a19e}
.choice-card input{position:absolute;opacity:0;width:1px;height:1px}
.choice-card:focus-within{outline:3px solid #8de0d8;outline-offset:2px}
.choice-indicator{flex:none;width:20px;height:20px;border:2px solid #a6b5c5;border-radius:50%;display:grid;place-items:center;background:white}
.choice-card:has(input[type=checkbox]) .choice-indicator{border-radius:6px}
.choice-card.selected .choice-indicator{border-color:var(--accent);background:var(--accent)}
.choice-card.selected .choice-indicator:after{content:'✓';color:#fff;font-size:13px;font-weight:900}
.survey-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:12px 17px;border:1px solid transparent;font-weight:750;font-size:13px;min-height:43px}
.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-dark)}
.btn-ghost{background:#fff;border:1px solid var(--line);color:var(--muted)}.btn-ghost:hover{background:#f7fafb}
.btn-outline{background:#fff;border-color:#b6d0d4;color:var(--accent)}.btn-outline:hover{background:#effafa}
.btn-danger{background:#fff0f0;color:var(--danger);border:1px solid #e7b0b0}
.feedback{font-size:13px;min-height:0;color:var(--accent);margin:12px 0 0}
.feedback:empty{display:none}.feedback.error{color:var(--danger)}
.footnote{text-align:center;color:#8290a1;font-size:12px;margin:18px auto 40px}
.success-card{text-align:center;padding:66px 30px}
.success-card p{max-width:450px;margin:12px auto;color:var(--muted)}
.success-icon{background:var(--mint);border-radius:50%;width:66px;height:66px;margin:0 auto 24px;display:grid;place-items:center;font-size:36px;color:var(--accent)}
.login-wrap{min-height:70vh;display:grid;place-items:center;padding:60px 0}
.login-card{padding:40px;width:min(440px,100%)}.login-card h1{font-size:32px}
.login-card p{color:var(--muted);font-size:14px;margin:10px 0 24px}
.login-card label,.controls label{font-size:13px;font-weight:700;display:block;margin-bottom:8px}
.login-card input,.controls input[type=text]{width:100%;padding:12px 14px;border:1px solid #bcc8d8;border-radius:10px;margin-bottom:16px;color:var(--ink)}
.btn-full{width:100%}
.admin-tag{font-size:10px;font-weight:900;letter-spacing:.08em;padding:5px 8px;background:var(--blue);border-radius:7px;color:var(--accent)}
.dashboard{padding-top:46px}.dashboard-head{display:flex;justify-content:space-between;gap:22px;align-items:start;margin-bottom:28px}
.dashboard-head h1{font-size:clamp(28px,4.3vw,42px)}.dashboard-head p{margin:0}
.overview{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:17px}
.metric{padding:24px;box-shadow:none;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.metric-label{color:var(--muted);font-size:12px;font-weight:750}
.metric-number{font-size:40px;letter-spacing:-.055em;line-height:1}
.metric-caption{color:#8390a2;font-size:12px;line-height:1.3}
.status-text{font-size:25px;letter-spacing:-.03em;color:#b25f22}.status-text.open{color:#227c61}.status-text.closed{color:#a74646}
.controls{display:flex;gap:18px;align-items:start;flex-wrap:wrap;margin-bottom:46px}
.controls details{border:1px solid var(--line);border-radius:10px;padding:10px 14px;background:white;font-size:13px;max-width:360px}
.controls summary{cursor:pointer;font-weight:700;color:var(--muted)}.controls p{color:var(--danger)}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:19px}
.section-title h2{margin:0 0 6px;font-size:24px;letter-spacing:-.035em}
.section-title p{margin:0;color:var(--muted);font-size:13px}
.pulse{font-size:12px;font-weight:700;color:#18765c;white-space:nowrap}
.result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.result-card{box-shadow:none;padding:25px}
.result-head{margin-bottom:24px}.result-head h3{font-size:17px;letter-spacing:-.02em;line-height:1.35;margin:9px 0 5px}
.muted{color:var(--muted);font-size:12px;margin:0}
.result-row{margin:0 0 16px}.result-row:last-child{margin:0}
.answer-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;margin-bottom:6px}
.answer-line span:first-child{min-width:0}.answer-figure{white-space:nowrap;font-weight:750;color:var(--muted)}
.result-track{height:8px;background:#edf1f7;border-radius:999px;overflow:hidden}.result-bar{height:100%;border-radius:999px;background:linear-gradient(90deg,#68b4b0,#187680);transition:width .3s}
.notice{background:var(--mint);color:var(--accent-dark);padding:13px 16px;border-radius:12px;margin-bottom:20px;font-size:14px}
.loading{color:var(--muted)}
@media (max-width:800px){.overview{grid-template-columns:1fr 1fr}.overview .tools{grid-column:1/-1}.result-grid{grid-template-columns:1fr}.dashboard-head{flex-direction:column}}
@media (max-width:560px){.shell{width:min(100% - 24px,1120px)}.topbar{padding:16px 0}.top-note{display:none}.intro{padding-top:38px}.intro h1{font-size:36px}.survey-card{padding:23px 18px}.choice-card{padding:12px}.overview{grid-template-columns:1fr}.overview .tools{grid-column:auto}.dashboard{padding-top:28px}.section-title{align-items:start;flex-direction:column}.survey-actions .btn{padding:11px 12px}.result-card{padding:19px}}
/* VERSION 3 : questions stables et projection des statistiques */
#question-title{scroll-margin-top:22px}
.result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.result-head>div{min-width:0;flex:1}
.zoom-button{flex:none;padding:8px 11px;min-height:36px;white-space:nowrap;font-size:12px}
.controls .security-setting{max-width:410px}
.controls .setting-help{color:var(--muted);margin:12px 0}
.controls input[type=password]{width:100%;padding:12px 14px;border:1px solid #bcc8d8;border-radius:10px;margin:0 0 16px;color:var(--ink);background:#fff}
.zoom-dialog{width:min(1040px,calc(100% - 34px));max-width:none;max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:22px;padding:24px 32px 26px;box-shadow:0 30px 90px rgba(0,0,0,.22);background:white;color:var(--ink);overflow:auto}
.zoom-dialog::backdrop{background:rgba(13,28,45,.65)}
.zoom-topbar,.zoom-actions{display:flex;justify-content:space-between;align-items:center;gap:15px}
.zoom-topbar{margin-bottom:20px}
.zoom-actions{margin-top:25px;padding-top:22px;border-top:1px solid var(--line)}
.result-card-large{border:none;box-shadow:none;padding:0;border-radius:0}
.result-card-large .result-head{margin-bottom:30px}
.result-card-large h2{font-size:clamp(24px,3vw,35px);margin:10px 0 8px;line-height:1.25;letter-spacing:-.035em}
.result-card-large .muted{font-size:15px}
.result-card-large .result-row{margin-bottom:24px}
.result-card-large .answer-line{font-size:clamp(16px,1.8vw,21px);margin-bottom:10px;line-height:1.4;align-items:center}
.result-card-large .answer-figure{font-size:clamp(15px,1.7vw,20px)}
.result-card-large .result-track{height:19px}
@media(max-width:620px){.zoom-dialog{padding:18px 15px;width:calc(100% - 16px)}.zoom-button{font-size:11px;padding:7px}.result-head{gap:8px}.zoom-actions{flex-wrap:wrap}.zoom-actions .muted{order:3;width:100%;text-align:center}}
