.diagnostic-page{background:#FBEEEA;color:#40482B}.dg-header{max-width:1400px;margin:auto;padding:24px 5vw;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #64695130}.dg-header img{width:150px}.dg-header a{font-size:14px}.dg-layout{max-width:800px;margin:0 auto;padding:32px 5vw 64px}.dg-eyebrow{font-size:12px;font-weight:700;letter-spacing:.2em;color:#9E4C6E}.dg-note{font-size:13px;line-height:1.65;color:#646951}.dg-themes{padding:0;list-style:none;counter-reset:themes;display:grid;gap:10px;margin:32px 0}.dg-themes li{counter-increment:themes;font-size:14px;color:#646951}.dg-themes li:before{content:'0' counter(themes);font-size:11px;color:#9E4C6E;display:inline-block;width:32px}.dg-panel{background:#fffaf7;border:1px solid #64695130;border-radius:22px;box-shadow:0 14px 55px #40482B09;overflow:hidden;padding:0 32px 32px}.dg-panel-head{margin:0 -32px 30px;padding:20px 28px;border-bottom:1px solid #64695125;display:flex;gap:10px;align-items:center;font-size:14px}.dg-panel-head>span:last-child{margin-left:auto;font-size:11px;color:#646951}.dg-dot{width:8px;height:8px;border-radius:50%;background:#646951}.dg-hello{font-family:Gellatio,serif;font-size:34px;color:#9E4C6E;margin:18px 0}.dg-panel h2{font-size:27px;line-height:1.2;letter-spacing:-.02em}.dg-panel p{font-size:15px}.dg-primary,.dg-secondary{font:600 14px Asap,system-ui,sans-serif;cursor:pointer;border:0;border-radius:10px;padding:14px 20px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.dg-primary{background:#3F526F;color:#FBEEEA}.dg-primary:hover{background:#30415b;color:white}.dg-secondary{background:transparent;color:#646951}.dg-consent{font-size:13px;display:flex;align-items:flex-start;gap:12px;margin:28px 0;line-height:1.6}.dg-consent input{margin-top:5px;accent-color:#646951;flex-shrink:0;width:18px;height:18px}.dg-progress{height:3px;background:#64695120;border-radius:10px}.dg-progress>div{height:100%;background:#9E4C6E;transition:width .4s}.dg-message{max-width:92%;padding:16px 19px;border-radius:15px;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6;background:#f1eee3}.dg-message.user{background:#3F526F;color:#fffaf7;margin-left:auto}.dg-message small{display:block;font-size:10px;font-weight:700;letter-spacing:.12em;margin-bottom:5px;opacity:.7}#dg-messages{max-height:440px;overflow:auto;scroll-behavior:smooth;padding:5px 0}#dg-options{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}#dg-options button{font:inherit;font-size:13px;text-align:left;color:#40482B;background:transparent;border:1px solid #64695155;border-radius:20px;padding:9px 14px;cursor:pointer}#dg-options button:hover{background:#f1eee3}#dg-options button[aria-pressed=true]{background:#646951;color:white}.dg-panel textarea,.dg-panel input:not([type=checkbox]){width:100%;border:1px solid #64695155;border-radius:10px;padding:12px;background:#fffdfb;color:#40482B;font:inherit;font-size:15px;resize:vertical;box-sizing:border-box}.dg-actions{display:flex;justify-content:space-between;margin-top:10px;gap:8px}#dg-error{padding:12px;border-radius:8px;color:#86324d;background:#f7e2e7}#dg-busy{font-size:13px;color:#646951}.dg-panel button:disabled{opacity:.55;cursor:wait}#dg-review-fields label{display:block;font-size:13px;font-weight:600;margin:20px 0 6px}#dg-review-fields fieldset{border:0;padding:0;margin:24px 0}#dg-review-fields legend{font-size:17px;font-weight:700;color:#9E4C6E}[hidden]{display:none!important}@media(max-width:850px){.dg-layout{padding-top:24px}.dg-themes{display:none}.dg-panel{padding:0 20px 24px}.dg-panel-head{margin:0 -20px 20px;padding:18px 20px}.dg-header img{width:125px}.dg-layout{padding-left:5vw;padding-right:5vw}#dg-messages{max-height:48vh}}@media(prefers-reduced-motion:reduce){#dg-messages{scroll-behavior:auto}}
#dg-current-question{font-weight:800;font-size:clamp(20px,2.2vw,26px);line-height:1.35;color:#40482B;margin:26px 0 18px;letter-spacing:-.3px}#dg-current-question:focus{outline:none}.dg-progress{margin:4px 0 20px;height:4px}.dg-key-hint{font-size:11px!important;color:#7b806e;margin:8px 0 0}.dg-actions{justify-content:flex-start;flex-wrap:wrap}.dg-actions #dg-send{margin-left:auto}#dg-messages:empty{display:none}#dg-review-back{padding-left:0;margin-bottom:12px}
/* Conversation SMS : seul le fil défile ; le champ reste au même endroit. */
#dg-conversation{display:flex;flex-direction:column;height:clamp(460px,72dvh,700px);min-height:0;margin-bottom:-16px}#dg-conversation>.dg-progress{flex-shrink:0}#dg-thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;padding:0 3px 18px}#dg-messages{max-height:none;overflow:visible;padding:0}.dg-message:not(.user){background:#F5D8D2;color:#646951;border-bottom-left-radius:4px}.dg-message.user{border-bottom-right-radius:4px}#dg-current-question{background:#F5D8D2;color:#646951;border-radius:15px 15px 15px 4px;padding:17px 19px;margin:14px 0;font-size:20px;max-width:92%}#dg-form{flex-shrink:0;background:#fffaf7;border-top:1px solid #64695125;padding-top:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px}#dg-form>label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}#dg-answer{grid-column:1;grid-row:1;height:46px!important;min-height:46px!important;max-height:46px!important;border-radius:23px!important;padding:11px 17px!important;white-space:nowrap;overflow-x:auto;resize:none}#dg-form .dg-actions{display:contents}#dg-send{grid-column:2;grid-row:1;min-height:46px;border-radius:23px;padding:10px 18px}#dg-back,#dg-skip{grid-row:3;min-height:34px;font-size:12px;padding:5px 0;justify-content:flex-start}#dg-back{grid-column:1}#dg-skip{grid-column:2;white-space:nowrap;justify-content:flex-end}.dg-key-hint{grid-column:1/-1;grid-row:2;margin:7px 0 2px!important;font-size:10px!important}#dg-options{margin-bottom:0}#dg-options button{background:#fffaf7}#dg-options button:hover{background:#F5D8D2;color:#646951}@media(max-width:850px){#dg-conversation{height:clamp(420px,70dvh,640px)}#dg-current-question{font-size:19px}#dg-thread{padding-bottom:14px}}@media(prefers-reduced-motion:reduce){#dg-thread{scroll-behavior:auto}}




.dg-message .dg-greeting{font-style:italic}
#dg-current-question{font-size:17px;font-weight:700}
.dg-privacy{margin:16px 0}
.dg-privacy summary{cursor:pointer;text-decoration:underline}
#dg-options button[aria-pressed="true"]{background:#40482B;color:#fffaf7;border-color:#40482B}

.dg-panel-head .dg-title{margin:0;font-weight:400;color:#40482B;font-size:clamp(17px,2vw,20px);line-height:1.3}
.dg-message .dg-speaker{font-family:Gellatio,serif;font-size:16px;font-weight:400;letter-spacing:0;line-height:1.35;opacity:1}
#dg-stage:empty{display:none}

#dg-welcome .dg-welcome-greeting{font-family:Gellatio,serif;font-weight:400;font-size:24px;line-height:1.3}

.dg-preview-banner{box-sizing:border-box;max-width:800px;margin:20px auto 0;padding:18px 24px;background:#f7dfc8;border:1px solid #bda583;border-radius:12px;color:#40482b;font:14px/1.6 Asap,system-ui,sans-serif}.dg-preview-banner strong{font-weight:700;overflow-wrap:anywhere}.dg-preview-banner p{margin:6px 0 0}.dg-preview-warning{font-weight:600}.dg-preview-banner+.dg-layout{padding-top:20px}#dg-preview-summary{border-top:1px solid #64695133;margin-top:24px;padding-top:16px}#dg-preview-summary h3{font-size:20px}#dg-preview-summary h4{font-size:16px;margin-top:22px}#dg-preview-summary p,#dg-preview-summary li{font-size:14px;line-height:1.6;white-space:pre-wrap}@media(max-width:850px){.dg-preview-banner{margin-left:5vw;margin-right:5vw;padding:14px 18px}}

.dg-preview-ribbon{position:sticky;top:0;z-index:30;background:#40482b;color:#f5d8d2;padding:7px 16px;text-align:center;font:600 12px/1.4 Asap,system-ui,sans-serif;box-shadow:0 1px 5px #40482b22}
