.dgdc-a {
    --dgdc-color: #0b3470; --dgdc-dark: #062654; --dgdc-blue: #1768c7; --dgdc-blue-soft: #edf5ff;
    --dgdc-gold: #e5a600; --dgdc-red: #ce1126; --dgdc-soft: #f4f7fc; --dgdc-line: #d8e2ef;
    position: fixed; right: 20px; bottom: 20px; z-index: 999999;
    font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #10284c;
}
.dgdc-a * { box-sizing: border-box; }
.dgdc-a button, .dgdc-a input { font: inherit; letter-spacing: normal; text-transform: none; }
.dgdc-a button { -webkit-appearance: none !important; appearance: none !important; }

.dgdc-a__launcher {
    position: relative; width: 62px; height: 62px; border-radius: 50% !important;
    border: 3px solid var(--dgdc-gold) !important; background: var(--dgdc-color) !important;
    color: #fff !important; cursor: pointer; box-shadow: 0 8px 24px rgba(11,52,112,.3) !important;
    display: flex; align-items: center; justify-content: center; margin-left: auto; padding: 0 !important;
    transition: transform .2s, background .2s;
}
.dgdc-a__launcher:hover { transform: scale(1.05); background: var(--dgdc-dark) !important; }
.dgdc-a__launcher svg { width: 28px; height: 28px; }
.dgdc-a__ico-close { display: none; }
.dgdc-a.is-open .dgdc-a__ico-chat { display: none; }
.dgdc-a.is-open .dgdc-a__ico-close { display: block; }
.dgdc-a__badge {
    position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px;
    border-radius: 11px; background: var(--dgdc-red); border: 2px solid #fff;
    font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.dgdc-a.is-seen .dgdc-a__badge { display: none; }
.dgdc-a.is-open .dgdc-a__launcher { display: none; }

.dgdc-a__panel {
    width: 420px; max-width: calc(100vw - 32px); height: 610px; max-height: calc(100vh - 112px);
    margin-bottom: 12px; background: #fff; border: 1px solid var(--dgdc-line); border-radius: 24px;
    box-shadow: 0 18px 52px rgba(11,52,112,.22); overflow: hidden; display: flex; flex-direction: column;
    transform-origin: bottom right; animation: dgdc-in .2s ease-out;
}
.dgdc-a__panel[hidden] { display: none; }
.dgdc-a.is-minimized .dgdc-a__panel { height: auto; }
.dgdc-a.is-minimized .dgdc-a__body { display: none; }

.dgdc-a__flag { height: 5px; display: flex; flex: 0 0 auto; }
.dgdc-a__flag i { flex: 1; }
.dgdc-a__flag i:nth-child(1) { background: #14b53a; }
.dgdc-a__flag i:nth-child(2) { background: #fcd116; }
.dgdc-a__flag i:nth-child(3) { background: var(--dgdc-red); }

.dgdc-a__header {
    display: flex; align-items: center; gap: 10px; padding: 14px;
    background: linear-gradient(135deg, #0b3470, #092b60); color: #fff; flex: 0 0 auto;
}
.dgdc-a__avatar {
    width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--dgdc-dark);
    border: 3px solid var(--dgdc-gold); font-size: 14px; font-weight: 800;
    display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(0,0,0,.16);
}
.dgdc-a__titles { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.dgdc-a__title { font-size: 17px; }
.dgdc-a__sub { font-size: 11.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgdc-a__sub i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #13c765; margin-right: 4px; }

.dgdc-a__hbtn {
    width: 40px !important; min-width: 40px !important; max-width: 40px !important;
    height: 40px !important; min-height: 40px !important; max-height: 40px !important;
    aspect-ratio: 1/1; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 50% !important;
    background: rgba(255,255,255,.14) !important; color: #fff !important; cursor: pointer;
    display: grid !important; place-items: center; padding: 0 !important; line-height: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.12) !important;
    flex: 0 0 40px !important; transition: background .16s, transform .16s, box-shadow .16s;
}
.dgdc-a__hbtn:hover { background: rgba(255,255,255,.24) !important; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 5px 12px rgba(0,0,0,.18) !important; }
.dgdc-a__hbtn:active { transform: translateY(0) scale(.95); }
.dgdc-a__close:hover { background: #b7233a !important; border-color: #d94a61 !important; }
.dgdc-a__hbtn svg { display: block; width: 18px; height: 18px; pointer-events: none; }
.dgdc-a__minimize svg { width: 19px; }

.dgdc-a__body { display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; }
.dgdc-a__log {
    flex: 1; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    padding: 20px 18px 10px; background: linear-gradient(180deg, #fff 0, #f7f9fd 38%, #f2f6fc 100%);
}
.dgdc-a__row { display: flex; min-width: 0; margin-bottom: 12px; }
.dgdc-a__row--user { justify-content: flex-end; }
.dgdc-a__msg {
    max-width: 90%; padding: 12px 14px; border-radius: 20px; overflow-wrap: anywhere;
    white-space: pre-line; animation: dgdc-in .2s ease-out;
}
.dgdc-a__row--bot .dgdc-a__msg { background: linear-gradient(135deg, #f4f7fc, #eaf0f8); border: 1px solid #dce5f0; border-top-left-radius: 8px; }
.dgdc-a__row--user .dgdc-a__msg { background: linear-gradient(135deg, var(--dgdc-color), var(--dgdc-blue)); color: #fff; border-top-right-radius: 8px; }
.dgdc-a__msg p { margin: 0 0 7px; }
.dgdc-a__msg p:last-child { margin-bottom: 0; }
.dgdc-a__msg a { color: var(--dgdc-dark); font-weight: 650; text-decoration: underline; }
.dgdc-a__row.is-wait .dgdc-a__msg { color: #5b6576; }

.dgdc-a__lead { color: #10284c; }
.dgdc-a__excerpt { font-size: 14px; color: #1f2937; background: #fff; border: 1px solid var(--dgdc-line); border-radius: 12px; padding: 9px 12px; }
.dgdc-a__source, .dgdc-a__also { font-size: 13.5px; }
.dgdc-a__also { color: #4a5568; }
.dgdc-a__contact, .dgdc-a__tip { font-size: 13px; background: #fff8dc; border: 1px solid #f1e3a6; padding: 8px 10px; border-radius: 10px; }

.dgdc-a__row.is-security .dgdc-a__msg { border: 1px solid #f0b4bb; background: #fff4f5; }
.dgdc-a__feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--dgdc-line); font-size: 12px; color: #5b6576; }
.dgdc-a__feedback button { min-width: 44px; min-height: 30px; border: 1px solid var(--dgdc-line); border-radius: 15px; background: #fff; color: var(--dgdc-dark); cursor: pointer; }
.dgdc-a__feedback button:hover { border-color: var(--dgdc-color); }
.dgdc-a__feedback button:disabled { opacity: .55; cursor: default; }

.dgdc-a__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 100%; margin: 2px 0 12px; padding: 0; }
.dgdc-a__chip {
    width: 100%; min-width: 0; min-height: 62px; border: 1px solid #cfe0f5 !important;
    color: #0c4fa6 !important; background: #edf5ff !important; border-radius: 18px !important;
    padding: 9px 10px !important; font-size: 13px !important; font-weight: 700 !important;
    line-height: 1.25 !important; cursor: pointer; text-align: left !important;
    white-space: normal !important; overflow: hidden !important; box-shadow: none !important;
    display: grid !important; grid-template-columns: 24px minmax(0, 1fr) 16px;
    align-items: center; column-gap: 7px; transition: transform .15s, box-shadow .15s;
}
.dgdc-a__chip-icon { display: grid; place-items: center; width: 24px; min-width: 24px; font-size: 18px; line-height: 1; }
.dgdc-a__chip-label { display: block; min-width: 0; white-space: normal !important; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.dgdc-a__chip-arrow { display: block; font-size: 22px; font-weight: 500; line-height: 1; text-align: right; }
.dgdc-a__chip:nth-child(2) { color: #123f82 !important; background: #e8f1fd !important; }
.dgdc-a__chip:nth-child(3) { color: #175da9 !important; background: #f2f7fd !important; }
.dgdc-a__chip:nth-child(4) { color: #294a8a !important; background: #edf0fb !important; }
.dgdc-a__chip:nth-child(5) { color: #0f579f !important; background: #e6f2ff !important; }
.dgdc-a__chip:nth-child(6) { color: #344f78 !important; background: #edf2f8 !important; }
.dgdc-a__chip:hover { transform: translateY(-1px); border-color: #8eb8e8 !important; box-shadow: 0 6px 14px rgba(11,52,112,.13) !important; }

/* Parcours métier guidés */
.dgdc-a__flow-choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.dgdc-a__flow-choice { min-height: 40px; border: 1px solid #b9d0ec !important; border-radius: 14px !important; padding: 7px 10px !important; background: #f4f8fd !important; color: var(--dgdc-dark) !important; font-size: 12.5px !important; font-weight: 700 !important; line-height: 1.25 !important; text-align: center; cursor: pointer; box-shadow: none !important; }
.dgdc-a__flow-choice:hover { border-color: var(--dgdc-blue) !important; background: #e7f1fd !important; }
.dgdc-a__flow-choice:disabled { opacity: .55; cursor: default; }
.dgdc-a__flow-list { margin: 8px 0; padding-left: 20px; }
.dgdc-a__flow-list li { margin: 5px 0; }
.dgdc-a__flow-link { margin-top: 10px !important; padding-top: 8px; border-top: 1px solid var(--dgdc-line); }
.dgdc-a__news { margin-top: 10px; padding: 11px 12px; border: 1px solid #cfdef0; border-radius: 15px; background: #fff; }
.dgdc-a__news-title { display: block; color: var(--dgdc-dark); font-size: 13.5px; line-height: 1.35; }
.dgdc-a__news-date { display: block; margin-top: 3px; color: #66758b; font-size: 11px; }
.dgdc-a__news-excerpt { margin: 7px 0 0 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dgdc-a__news .dgdc-a__source { margin-bottom: 0 !important; }
.dgdc-a__portal-load { width: 100%; margin-top: 8px; }
.dgdc-a__portal-list { display: grid; gap: 8px; margin-top: 8px; }
.dgdc-a__portal-request { width: 100%; padding: 10px 12px !important; border: 1px solid #bfd2ea !important; border-radius: 14px !important; background: #fff !important; color: var(--dgdc-dark) !important; text-align: left; cursor: pointer; box-shadow: none !important; }
.dgdc-a__portal-request strong, .dgdc-a__portal-request span, .dgdc-a__portal-request small { display: block; }
.dgdc-a__portal-request strong { font-size: 13px; }
.dgdc-a__portal-request span { margin-top: 3px; font-size: 11.5px; }
.dgdc-a__portal-request small { margin-top: 3px; color: #687386; font-size: 10.5px; }
.dgdc-a__portal-request:hover { border-color: var(--dgdc-blue) !important; background: #f4f8fd !important; }
.dgdc-a__portal-request:disabled { opacity: .6; cursor: wait; }
.dgdc-a__portal-heading, .dgdc-a__portal-subheading { display: block; margin-bottom: 8px; color: var(--dgdc-dark); }
.dgdc-a__portal-subheading { margin-top: 10px; font-size: 12.5px; }
.dgdc-a__portal-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 0; }
.dgdc-a__portal-facts div { padding: 7px 8px; border-radius: 10px; background: #f2f6fb; }
.dgdc-a__portal-facts dt { color: #687386; font-size: 10px; }
.dgdc-a__portal-facts dd { margin: 2px 0 0; color: var(--dgdc-dark); font-size: 11.5px; font-weight: 700; }
.dgdc-a__deposit-form { display: grid; gap: 10px; width: 100%; }
.dgdc-a__secure-note { padding: 10px; border-left: 4px solid #0b8b64; border-radius: 10px; background: #ecf8f4; }
.dgdc-a__secure-note strong, .dgdc-a__secure-note span { display: block; }
.dgdc-a__secure-note span { margin-top: 3px; color: #4f6177; font-size: 10.5px; }
.dgdc-a__deposit-form fieldset { min-width: 0; margin: 0; padding: 10px; border: 1px solid #c9d9ec; border-radius: 13px; }
.dgdc-a__deposit-form legend { padding: 0 5px; color: var(--dgdc-dark); font-size: 12px; font-weight: 800; }
.dgdc-a__deposit-form label, .dgdc-a__deposit-label { display: grid; gap: 4px; margin: 7px 0; color: #263b59; font-size: 10.5px; font-weight: 700; }
.dgdc-a__deposit-form input:not([type="checkbox"]), .dgdc-a__deposit-form select, .dgdc-a__deposit-form textarea { width: 100%; min-width: 0; padding: 8px 9px !important; border: 1px solid #aec5e1 !important; border-radius: 9px !important; background: #fff !important; color: #17243a !important; font: inherit; font-weight: 400; box-shadow: none !important; }
.dgdc-a__deposit-form input[type="file"] { font-size: 9.5px; }
.dgdc-a__deposit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 8px; }
.dgdc-a__deposit-check { grid-template-columns: 18px 1fr !important; align-items: start; }
.dgdc-a__deposit-check input { margin-top: 2px; }
.dgdc-a__signature { position: relative; overflow: hidden; border: 1px solid #aec5e1; border-radius: 10px; background: #fff; }
.dgdc-a__signature canvas { display: block; width: 100%; height: 80px; touch-action: none; }
.dgdc-a__signature button { position: absolute; top: 4px; right: 4px; padding: 3px 6px !important; border: 0 !important; border-radius: 6px !important; background: #e8eef7 !important; color: var(--dgdc-dark) !important; font-size: 9px !important; }
.dgdc-a__deposit-actions button { width: 100%; padding: 10px 12px !important; border: 0 !important; border-radius: 12px !important; background: var(--dgdc-color) !important; color: #fff !important; font-weight: 800 !important; cursor: pointer; }
.dgdc-a__deposit-actions button:disabled { opacity: .6; cursor: wait; }
.dgdc-a__deposit-result { padding: 8px 0; color: #4f6177; font-size: 11px; }
.dgdc-a__deposit-result.is-error { color: #a0192d; font-weight: 700; }
.dgdc-a__deposit-result.is-success { padding: 10px; border-radius: 10px; background: #e9f8ef; color: #12623b; font-weight: 800; }

.dgdc-a__form { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--dgdc-line); background: #fff; }
.dgdc-a__input {
    flex: 1; min-width: 0; height: 48px; border: 1.5px solid var(--dgdc-color) !important;
    border-radius: 24px !important; padding: 10px 16px !important; color: #1a2433 !important;
    background: #fff !important; box-shadow: none !important;
}
.dgdc-a__input:focus { border-color: var(--dgdc-blue) !important; }
.dgdc-a__send {
    width: 48px !important; min-width: 48px !important; max-width: 48px !important;
    height: 48px !important; min-height: 48px !important; max-height: 48px !important;
    aspect-ratio: 1/1; border: 1px solid rgba(255,255,255,.16) !important; border-radius: 50% !important;
    background: linear-gradient(145deg, #1d72d2, #0b3470) !important; color: #fff !important;
    cursor: pointer; display: grid !important; place-items: center; padding: 0 !important;
    line-height: 0 !important; flex: 0 0 48px !important;
    box-shadow: 0 6px 16px rgba(11,52,112,.3), inset 0 1px 0 rgba(255,255,255,.18) !important;
    transition: transform .16s, box-shadow .16s, background .16s;
}
.dgdc-a__send:hover { background: linear-gradient(145deg, #2a7dde, #082d63) !important; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,52,112,.36), inset 0 1px 0 rgba(255,255,255,.2) !important; }
.dgdc-a__send:active { transform: translateY(0) scale(.95); }
.dgdc-a__send svg { display: block; width: 21px; height: 21px; transform: translateX(1px); pointer-events: none; }
.dgdc-a__send:disabled { opacity: .55; cursor: wait; transform: none; }
.dgdc-a__foot { margin: 0; padding: 0 14px 10px; font-size: 10.5px; text-align: center; color: #687386; background: #fff; }

.dgdc-a :focus { outline: none; }
.dgdc-a :focus-visible { outline: 3px solid var(--dgdc-gold) !important; outline-offset: 2px; }
.dgdc-a .dgdc-a__input:focus-visible { outline: 3px solid rgba(23,104,199,.28) !important; outline-offset: 2px; }
.dgdc-a__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes dgdc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dgdc-a__typing { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.dgdc-a__dots { display: inline-flex; gap: 4px; align-items: center; }
.dgdc-a__dots i { width: 7px; height: 7px; border-radius: 50%; background: #7d93b5; animation: dgdc-dot 1.2s infinite ease-in-out; }
.dgdc-a__dots i:nth-child(2) { animation-delay: .18s; }
.dgdc-a__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dgdc-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Voix : micro, lecture */
.dgdc-a__mic {
    width: 48px !important; min-width: 48px !important; max-width: 48px !important;
    height: 48px !important; min-height: 48px !important; max-height: 48px !important;
    aspect-ratio: 1/1; border: 1.5px solid var(--dgdc-color) !important; border-radius: 50% !important;
    background: #fff !important; color: var(--dgdc-color) !important; cursor: pointer;
    display: grid !important; place-items: center; padding: 0 !important; line-height: 0 !important;
    flex: 0 0 48px !important; box-shadow: none !important; transition: transform .16s, background .16s, color .16s;
}
.dgdc-a__mic[hidden], .dgdc-a__speak[hidden] { display: none !important; }
.dgdc-a__mic:hover { background: var(--dgdc-blue-soft) !important; transform: translateY(-1px); }
.dgdc-a__mic:disabled { opacity: .55; cursor: wait; transform: none; }
.dgdc-a__mic svg { display: block; width: 22px; height: 22px; pointer-events: none; }
.dgdc-a.is-listening .dgdc-a__mic { background: var(--dgdc-red) !important; border-color: var(--dgdc-red) !important; color: #fff !important; animation: dgdc-pulse 1.4s infinite; }
.dgdc-a.is-listening .dgdc-a__input { border-color: var(--dgdc-red) !important; }
.dgdc-a__speak[aria-pressed="true"] { background: rgba(255,255,255,.32) !important; border-color: rgba(255,255,255,.5) !important; }
.dgdc-a__feedback .dgdc-a__listen { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; }
.dgdc-a__listen svg { width: 15px; height: 15px; }
@keyframes dgdc-pulse { 0% { box-shadow: 0 0 0 0 rgba(206,17,38,.45); } 70% { box-shadow: 0 0 0 12px rgba(206,17,38,0); } 100% { box-shadow: 0 0 0 0 rgba(206,17,38,0); } }

@media (min-width: 481px) and (max-width: 700px) { .dgdc-a__panel { width: 400px; } }
@media (max-width: 480px) {
    .dgdc-a { right: 0; bottom: 0; max-width: 100vw; }
    .dgdc-a__panel { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
    .dgdc-a__header { min-width: 0; padding-right: max(12px, env(safe-area-inset-right, 0px)); padding-left: max(14px, env(safe-area-inset-left, 0px)); }
    .dgdc-a__avatar { width: 40px; height: 40px; }
    .dgdc-a__title { font-size: 15px; }
    .dgdc-a__sub { font-size: 10.5px; }
    .dgdc-a__hbtn { width: 38px; height: 38px; flex: 0 0 38px; }
    .dgdc-a__log { padding: 16px max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px)); }
    .dgdc-a__msg { max-width: 94%; }
    .dgdc-a__chips { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .dgdc-a__chip { min-height: 52px; font-size: 13.5px !important; padding: 8px 12px !important; grid-template-columns: 26px minmax(0, 1fr) 18px; }
    .dgdc-a__flow-choices { grid-template-columns: minmax(0,1fr); }
    .dgdc-a__deposit-grid { grid-template-columns: minmax(0,1fr); }
    .dgdc-a__form { padding-right: max(12px, env(safe-area-inset-right, 0px)); padding-left: max(12px, env(safe-area-inset-left, 0px)); }
    .dgdc-a__foot { padding-bottom: max(9px, env(safe-area-inset-bottom, 0px)); }
    .dgdc-a:not(.is-open) .dgdc-a__launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
    .dgdc-a.is-minimized .dgdc-a__panel { width: calc(100vw - 24px); height: auto; margin: 0 12px max(12px, env(safe-area-inset-bottom, 0px)); border-radius: 14px; }
}
@media (max-width: 400px) { .dgdc-a__form { gap: 7px; } .dgdc-a__mic, .dgdc-a__send { width: 44px !important; min-width: 44px !important; max-width: 44px !important; height: 44px !important; min-height: 44px !important; max-height: 44px !important; flex-basis: 44px !important; } .dgdc-a__input { height: 44px; } }
@media (max-width: 359px) { .dgdc-a__titles .dgdc-a__sub { display: none; } .dgdc-a__chips { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .dgdc-a__panel, .dgdc-a__msg, .dgdc-a__launcher, .dgdc-a__dots i, .dgdc-a.is-listening .dgdc-a__mic { animation: none; transition: none; } }
