:root{--navy:#061a3a;--navy2:#0b2f63;--gold:#ffd21c;--bg:#f3f6fb;--card:#fff;--text:#17243a;--muted:#718096;--line:#e5eaf2;--green:#138a5b;--red:#c73a45;--shadow:0 14px 40px rgba(6,26,58,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}button{cursor:pointer}.ad-top{height:68px;background:linear-gradient(110deg,#04142d,#0b2f63);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.ad-logo{display:flex;align-items:center;gap:10px}.ad-logo-mark,.ad-ai-orb{width:38px;height:38px;border-radius:12px;background:var(--gold);color:var(--navy);display:grid;place-items:center;font-weight:900}.ad-logo small,.ad-sidebar-bottom small{display:block;opacity:.65;font-size:11px;margin-top:2px}.ad-top-actions{display:flex;gap:20px;font-size:13px;opacity:.92}.ad-shell{display:flex;min-height:calc(100vh - 68px)}.ad-sidebar{width:245px;background:#fff;border-right:1px solid var(--line);padding:24px 14px;display:flex;flex-direction:column;gap:5px}.ad-sidebar-title,.ad-eyebrow,.ad-kicker{font-size:10px;letter-spacing:.13em;font-weight:800;color:#8793a7}.ad-sidebar-title{padding:0 12px 12px}.ad-nav-item{display:flex;align-items:center;gap:11px;padding:12px;border-radius:10px;color:#5c687b;font-size:13px}.ad-nav-item span{width:24px;height:24px;border-radius:7px;background:#f1f4f8;display:grid;place-items:center;font-weight:800}.ad-nav-item:hover,.ad-nav-item.is-active{background:#edf3fb;color:var(--navy);font-weight:700}.ad-nav-item.is-active span{background:var(--gold)}.ad-sidebar-bottom{margin-top:auto;padding:14px;border-top:1px solid var(--line);display:flex;gap:9px;align-items:center;font-size:12px}.ad-admin-dot{width:10px;height:10px;border-radius:50%;background:#20b879}.ad-main{flex:1;max-width:1500px;padding:30px 34px;margin:auto;width:100%}.ad-page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.ad-page-head h1{margin:4px 0 0;font-size:28px;color:var(--navy)}.ad-btn{border:0;border-radius:9px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:750;font-size:13px}.ad-btn-primary{background:var(--navy);color:#fff}.ad-btn-soft{background:#eef3f9;color:var(--navy)}.ad-card{background:var(--card);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:22px}.ad-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.ad-card-head h3{margin:4px 0;font-size:18px;color:var(--navy)}.ad-card-head p{margin:4px 0;color:var(--muted);font-size:13px}.ad-hero{background:linear-gradient(120deg,#061a3a,#0d3a76);color:#fff;border-radius:18px;padding:34px;display:flex;justify-content:space-between;overflow:hidden;margin-bottom:22px}.ad-hero h2{font-size:30px;max-width:700px;margin:8px 0}.ad-hero p{max-width:700px;color:#c9d5e7;line-height:1.6}.ad-hero-orb{width:130px;height:130px;border-radius:50%;background:rgba(255,210,28,.16);border:1px solid rgba(255,210,28,.4);display:grid;place-items:center;font-size:55px;color:var(--gold)}.ad-actions,.ad-form-actions{display:flex;gap:10px;margin-top:20px}.ad-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.ad-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.ad-stat span,.ad-stat small{display:block;color:var(--muted);font-size:12px}.ad-stat strong{display:block;font-size:30px;color:var(--navy);margin:5px 0}.ad-stat.good strong{color:var(--green)}.ad-stat.warn strong{color:#b77a00}.ad-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.ad-module{background:#fff;border:1px solid var(--line);padding:22px;border-radius:15px;transition:.15s}.ad-module:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.ad-module>b{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eef3f9;color:var(--navy);font-size:20px}.ad-module h3{margin:15px 0 6px}.ad-module p{color:var(--muted);font-size:13px;line-height:1.55}.ad-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;gap:12px}.ad-flow>div{background:#f7f9fc;border:1px solid var(--line);padding:16px;border-radius:12px}.ad-flow i{display:block;color:var(--gold);font-style:normal;font-weight:900}.ad-flow b,.ad-flow small{display:block;margin-top:4px}.ad-flow small{color:var(--muted);font-size:11px}.ad-learning-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px}.ad-side-stack{display:flex;flex-direction:column;gap:15px}.ad-source-banner{background:#fff8d9;border:1px solid #f2dd76;border-radius:11px;padding:12px;margin-bottom:18px}.ad-source-banner span{display:block;font-weight:700;margin:4px 0}.ad-source-banner small{color:#8b7a34}.ad-form-section{border-top:1px solid var(--line);padding:24px 0}.ad-form-section:first-of-type{border-top:0}.ad-section-title{display:flex;gap:12px;margin-bottom:15px}.ad-section-title>span{width:30px;height:30px;border-radius:9px;background:#edf3fb;color:var(--navy);display:grid;place-items:center;font-weight:900;font-size:11px}.ad-section-title b,.ad-section-title small{display:block}.ad-section-title small{font-size:12px;color:var(--muted);margin-top:3px}.ad-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ad-form-grid.two{grid-template-columns:1fr 1fr}.ad-form-grid label,.ad-simple-form>label,.ad-answer-form>label{display:block;font-size:12px;font-weight:750;color:#48566b}.ad-form-grid input,.ad-form-grid select,.ad-simple-form input,.ad-simple-form select,.ad-simple-form textarea,.ad-answer-form input,.ad-answer-form select,.ad-answer-form textarea,.ad-filter-grid input,.ad-filter-grid select{display:block;width:100%;margin-top:7px;border:1px solid #dbe2ec;background:#fbfcfe;border-radius:9px;padding:11px 12px;outline:none;color:var(--text)}textarea{resize:vertical;line-height:1.5}.ad-form-grid input:focus,.ad-form-grid select:focus,textarea:focus{border-color:#7898c4;box-shadow:0 0 0 3px #eaf0f8}.ad-check{display:flex;align-items:center;gap:7px;margin-top:14px;font-size:12px}.ad-check input{width:auto}.ad-rich-wrap{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.ad-rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;background:#f6f8fb;border-bottom:1px solid var(--line)}.ad-rich-toolbar button{border:1px solid #dce3ec;background:#fff;border-radius:7px;padding:6px 9px;color:var(--navy);font-size:12px}.ad-rich-toolbar button:hover{background:#edf3fb}.ad-tool-sep{width:1px;background:#d6deea;margin:2px 3px}.ad-color-tool{display:flex!important;align-items:center;gap:3px;border:1px solid #dce3ec;background:#fff;border-radius:7px;padding:4px 6px;font-size:12px}.ad-color-tool input{margin:0!important;padding:0!important;width:24px!important;height:22px;border:0!important;background:none!important}.ad-rich-editor{min-height:150px;padding:14px;outline:none;line-height:1.6}.ad-rich-editor:empty:before{content:'Commencez à rédiger…';color:#a2adbc}.ad-rich-editor img,.ad-rich-editor video{max-width:100%;border-radius:9px}.ad-rich-editor audio{max-width:100%}.ad-rich-editor a.af-chat-button{display:inline-block;padding:8px 14px;border-radius:8px;font-weight:800}.ad-steps-list{display:flex;flex-direction:column;gap:14px;margin-bottom:12px}.ad-step-item{border:1px solid var(--line);border-radius:12px;overflow:hidden}.ad-step-head{display:flex;justify-content:space-between;padding:10px 13px;background:#f7f9fc}.ad-step-head strong{font-size:12px}.ad-step-remove{border:0;background:none;color:var(--red);font-size:11px}.ad-step-title{width:100%;border:0;border-bottom:1px solid var(--line);padding:12px;outline:none;font-weight:700}.ad-step-editor{min-height:120px;padding:13px;outline:none}.ad-step-toolbar{border-top:1px solid var(--line);border-bottom:0}.ad-upload{margin-top:7px;width:100%;border:1px dashed #aebbd0;background:#f7f9fc;color:var(--navy);padding:11px;border-radius:9px;font-weight:750}.ad-media-preview{margin-top:9px}.ad-media-preview img,.ad-media-preview video{max-width:100%;max-height:180px;border-radius:9px}.ad-pending{display:block;border-top:1px solid var(--line);padding:12px 0}.ad-pending b{display:block;font-size:12px}.ad-pending small{color:var(--muted)}.ad-tip{background:#fff8d9;border:1px solid #f2df82;border-radius:14px;padding:16px;font-size:12px;line-height:1.5}.ad-tip p{margin:7px 0 0}.ad-filter-card{margin-bottom:20px}.ad-filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.ad-filter-grid label{font-size:11px;font-weight:800;color:#59677a}.ad-filter-grid input,.ad-filter-grid select{margin-top:6px}.ad-list-head{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px}.ad-list-head h2{margin:4px 0;color:var(--navy)}.ad-knowledge-list{display:flex;flex-direction:column;gap:10px}.ad-knowledge-row{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px}.ad-knowledge-icon{width:48px;height:48px;border-radius:13px;background:#edf3fb;color:var(--navy);display:grid;place-items:center;font-size:11px;font-weight:900}.ad-knowledge-main{flex:1;min-width:0}.ad-row-top{display:flex;gap:7px;align-items:center}.ad-pill,.ad-status,.ad-occ,.ad-count{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eef2f7;color:#5e6b7f;font-size:10px;font-weight:800}.ad-status.on{background:#e5f7ee;color:var(--green)}.ad-status.off{background:#f1f2f4;color:#7d8490}.ad-status.pending{background:#fff2cf;color:#9b6d00}.ad-knowledge-main h3{margin:6px 0 3px;font-size:15px;color:var(--navy)}.ad-knowledge-main p{margin:0;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-row-meta{display:flex;gap:15px;color:#8a95a5;font-size:10px;margin-top:8px}.ad-row-actions{display:flex;gap:5px;align-items:center}.ad-row-actions form{margin:0}.ad-icon-btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px;color:var(--navy)}.ad-icon-btn.danger{color:var(--red)}.ad-stat-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}.ad-stat-strip>div{background:#fff;border:1px solid var(--line);padding:14px;border-radius:12px}.ad-stat-strip b{display:block;font-size:22px;color:var(--navy)}.ad-stat-strip span{font-size:11px;color:var(--muted)}.ad-question-list{display:flex;flex-direction:column;gap:12px}.ad-question{border:1px solid var(--line);border-radius:12px;padding:17px}.ad-question-top{display:flex;gap:7px}.ad-question h3{font-size:16px;margin:10px 0 4px}.ad-muted{color:var(--muted);font-size:11px}.ad-answer-form{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:14px}.ad-answer-form label{display:block;font-size:11px;font-weight:800;margin-top:10px}.ad-mini-actions{display:flex;gap:12px;margin-top:12px}.ad-link{border:0;background:none;color:var(--navy);font-size:11px;font-weight:800;padding:0}.ad-link.danger{color:var(--red)}.ad-answer-preview{background:#f8fafc;padding:13px;border-radius:10px;margin-top:12px;font-size:12px}.ad-answer-preview a{display:inline-block;margin-top:8px;color:#195aa5;font-weight:800}.ad-empty{padding:30px;text-align:center;color:var(--muted)}.ad-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.ad-simple-form label{display:block;font-size:12px;font-weight:750;margin-bottom:14px}.ad-text-list{display:flex;flex-direction:column}.ad-text-row{padding:13px 0;border-top:1px solid var(--line)}.ad-text-row:first-child{border-top:0}.ad-text-row>b{display:block;margin:7px 0;font-size:13px}.ad-text-row p{margin:0;color:var(--muted);font-size:11px}.ad-text-row button,.ad-text-row a{border:0;background:none;font-size:10px;color:var(--navy);font-weight:800}.ad-text-row button.danger{color:var(--red)}.ad-footer{text-align:center;color:#99a3b2;font-size:10px;padding:25px}.ad-chat-page{background:#eef2f8}.ad-chat-shell{max-width:1450px;margin:auto;height:100vh;background:#fff;display:flex;flex-direction:column}.ad-chat-head{height:70px;background:linear-gradient(110deg,#04142d,#0b2f63);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px}.ad-chat-brand{display:flex;align-items:center;gap:10px}.ad-chat-brand>span{width:38px;height:38px;background:var(--gold);color:var(--navy);border-radius:11px;display:grid;place-items:center;font-weight:900}.ad-chat-brand small,.ad-chat-profile span{display:block;color:#aebed4;font-size:11px;margin-top:2px}.ad-chat-tools{display:flex;align-items:center;gap:14px;font-size:12px}.ad-chat-tools select{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:7px}.ad-chat-main{display:grid;grid-template-columns:300px 1fr;min-height:0;flex:1}.ad-chat-side{background:#f8fafd;border-right:1px solid var(--line);padding:20px}.ad-chat-profile{display:flex;align-items:center;gap:10px;padding-bottom:20px;border-bottom:1px solid var(--line)}.ad-chat-profile strong{display:block;font-size:13px}.ad-common{padding-top:20px}.ad-common>label{display:block;font-size:10px;letter-spacing:.12em;font-weight:900;color:#8995a8;margin-bottom:10px}.ad-common-q{width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px;margin-bottom:7px;color:#45536a;font-size:11px}.ad-common-q:hover{border-color:#9cb1cf;color:var(--navy)}.ad-chat-window{display:flex;flex-direction:column;min-width:0}.ad-chat-messages{flex:1;overflow:auto;padding:28px;display:flex;flex-direction:column;gap:16px;background:linear-gradient(#fff,#f8fafd)}.ad-chat-row{display:flex;gap:10px;max-width:850px}.ad-chat-row.user{margin-left:auto;flex-direction:row-reverse}.ad-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:900}.ad-message{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 15px;line-height:1.6;font-size:13px;box-shadow:0 5px 20px rgba(6,26,58,.04);max-width:100%}.ad-chat-row.user .ad-message{background:#061a3a;color:#fff;border-color:#061a3a}.ad-message img,.ad-message video{max-width:100%;border-radius:9px}.ad-message audio{max-width:100%}.ad-composer-wrap{padding:12px 18px 17px;border-top:1px solid var(--line);background:#fff}.ad-composer-hint{font-size:10px;color:#9aa4b2;margin-bottom:7px}.ad-composer-wrap form{display:flex;gap:8px}.ad-composer-wrap textarea{flex:1;min-height:50px;max-height:140px;border:1px solid #d7dfeb;border-radius:12px;padding:12px;outline:none}.ad-composer-wrap button{width:50px;border:0;border-radius:12px;background:var(--gold);color:var(--navy);font-size:22px;font-weight:900}.ad-response-title{font-size:18px;font-weight:900;color:var(--navy);margin-bottom:8px}.ad-response-section{margin-top:13px}.ad-response-section h4{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#7c8798}.ad-response-steps{display:flex;flex-direction:column;gap:8px}.ad-response-step{border:1px solid var(--line);border-radius:9px;padding:10px}.ad-response-step-head{display:flex;gap:8px;align-items:center}.ad-response-step-head span{width:24px;height:24px;border-radius:7px;background:var(--gold);display:grid;place-items:center;font-weight:900}.ad-response-step-body{margin-top:8px}.ad-suggestions{display:flex;flex-wrap:wrap;gap:6px}.ad-suggestion{border:1px solid #d8e0ec;background:#f7f9fc;border-radius:999px;padding:7px 10px;font-size:11px;color:var(--navy)}.ad-response-media{display:flex;flex-direction:column;gap:8px;margin-top:13px}.ad-response-media img,.ad-response-media video{max-width:100%;max-height:360px;border-radius:10px}.ad-response-media audio{width:100%}.ad-chat-error{color:var(--red)}@media(max-width:1000px){.ad-sidebar{width:72px}.ad-sidebar-title,.ad-nav-item:not(.is-active)::after,.ad-nav-item{font-size:0}.ad-nav-item{justify-content:center}.ad-nav-item span{font-size:13px}.ad-sidebar-bottom{display:none}.ad-grid-3,.ad-stat-grid,.ad-stat-strip{grid-template-columns:1fr 1fr}.ad-flow{grid-template-columns:1fr 1fr}.ad-flow>em{display:none}.ad-learning-layout,.ad-split{grid-template-columns:1fr}.ad-chat-main{grid-template-columns:1fr}.ad-chat-side{display:none}}@media(max-width:650px){.ad-top{padding:0 12px}.ad-top-actions a{display:none}.ad-main{padding:18px 12px}.ad-page-head{align-items:flex-start;gap:10px}.ad-page-head h1{font-size:22px}.ad-stat-grid,.ad-grid-3,.ad-stat-strip,.ad-form-grid,.ad-form-grid.two{grid-template-columns:1fr}.ad-filter-grid{grid-template-columns:1fr}.ad-knowledge-row{align-items:flex-start;flex-wrap:wrap}.ad-row-actions{width:100%}.ad-hero{padding:23px}.ad-hero h2{font-size:23px}.ad-hero-orb{display:none}.ad-chat-head{padding:0 12px}.ad-chat-tools a{display:none}.ad-chat-messages{padding:15px}.ad-composer-wrap{padding:10px}.ad-form-actions{flex-wrap:wrap}}

/* Guided conversation: readable one-step-at-a-time panel. */
.ad-guidance-step{margin:14px 0;padding:14px;border:1px solid #dce5f1;border-radius:12px;background:#f7faff;color:#122747}.ad-guidance-step-title{font-weight:800;margin-bottom:8px;color:#061a3a}.ad-guidance-step-body{line-height:1.6;overflow-wrap:anywhere}.ad-guidance-confirm{margin-top:10px;font-size:.94em;color:#45546b}

/* Affichage enrichi des réponses du chat : hiérarchie, typographie et galeries médias. */
.ad-response{min-width:0;overflow-wrap:anywhere;color:#263449}.ad-response-title{font-size:20px;line-height:1.3;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #e7edf5}.ad-response-intro{background:#f5f8fd;border-left:3px solid var(--gold);padding:11px 14px;border-radius:0 10px 10px 0;margin:10px 0 14px}.ad-response-section{line-height:1.75}.ad-response-section h4{margin:18px 0 9px;padding-bottom:5px;border-bottom:1px solid #edf1f6}.ad-response-section p,.ad-response-step-body p,.ad-response-intro p{margin:7px 0}.ad-response-section h1,.ad-response-section h2,.ad-response-section h3,.ad-response-section h4,.ad-response-section h5{line-height:1.35;color:#061a3a;text-transform:none;letter-spacing:normal}.ad-response-section h1{font-size:1.45em}.ad-response-section h2{font-size:1.3em}.ad-response-section h3{font-size:1.15em}.ad-response-section ol,.ad-response-section ul,.ad-response-step-body ol,.ad-response-step-body ul{padding-left:25px;margin:8px 0}.ad-response-part{border:1px solid #dce5f1;border-radius:12px;margin:12px 0;overflow:hidden;background:#fbfcfe}.ad-response-part>h5{margin:0;padding:11px 14px;background:linear-gradient(100deg,#edf3fb,#f8faff);border-bottom:1px solid #dce5f1;font-size:13px;font-weight:850}.ad-response-part-steps{display:flex;flex-direction:column;gap:9px;padding:10px}.ad-response-part .ad-response-step{background:#fff;border-color:#e3eaf3}.ad-response-step{min-width:0}.ad-response-step-head strong{min-width:0;overflow-wrap:anywhere}.ad-response-step-body{line-height:1.7;overflow-wrap:anywhere}.ad-response-step-body img,.ad-response-step-body video,.ad-response-answer img,.ad-response-answer video,.ad-response-intro img,.ad-response-intro video,.ad-response-section img,.ad-response-section video{max-width:100%;height:auto}.ad-media-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px;align-items:stretch;margin:12px 0}.ad-media-gallery>img,.ad-media-gallery>video,.ad-media-gallery>p,.ad-media-gallery>div{width:100%;min-width:0;max-width:100%;margin:0;overflow:hidden;border-radius:10px;background:#f1f4f8}.ad-media-gallery>img,.ad-media-gallery>video{display:block;width:100%;height:auto;max-height:330px;object-fit:contain}.ad-response-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;align-items:start}.ad-response-media img,.ad-response-media video{display:block;width:100%;max-height:360px;object-fit:contain;background:#f1f4f8}.ad-step-part-label{display:block;padding:10px 12px 0;font-size:11px;font-weight:750;color:#526176}.ad-step-part{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #dce4ef;border-radius:8px;font:inherit;font-size:12px;font-weight:500;box-sizing:border-box}.ad-step-title{display:block;box-sizing:border-box}.ad-response-suggestions{margin-top:18px;padding-top:12px;border-top:1px solid #e8edf4}.ad-response-suggestions-title{font-weight:850;color:#59677a;font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:9px}.ad-guidance-step{border:1px solid #f0d875;border-radius:12px;padding:13px;background:#fffbed;margin-top:14px}.ad-guidance-step-title{font-weight:850;color:#061a3a;margin-bottom:8px}.ad-guidance-confirm{margin-top:10px;padding-top:9px;border-top:1px solid #f0e4ad;font-weight:700;font-size:12px}
@media(max-width:650px){.ad-response-title{font-size:18px}.ad-response-part-steps{padding:7px}.ad-response-step{padding:9px}.ad-media-gallery,.ad-response-media{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:7px}.ad-media-gallery>img,.ad-media-gallery>video{max-height:240px}.ad-response-section h4{font-size:11px}.ad-response-part>h5{padding:10px 11px}}

/* Conditions de l'accompagnement et étape active. */
.ad-guidance-conditions{margin:12px 0;padding:11px 12px;border:1px solid #dce5f1;border-radius:11px;background:#f7faff}.ad-guidance-conditions-title{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;color:#53647c;margin-bottom:8px}.ad-guidance-condition-label{display:inline-flex;max-width:100%;padding:5px 9px;border-radius:7px;background:#eaf1fb;color:#0b2f63;font-size:11px;font-weight:850;margin-bottom:8px;overflow-wrap:anywhere}.ad-condition-choice{border-color:#d7e1ef;background:#fff}.ad-guidance-step-body img,.ad-guidance-step-body video{display:block;max-width:100%;height:auto;max-height:420px;margin:10px 0;border-radius:10px;object-fit:contain}.ad-guidance-step-body audio{display:block;max-width:100%;width:100%;margin:10px 0}.ad-guidance-step-title{line-height:1.45;overflow-wrap:anywhere}
@media(max-width:650px){.ad-guidance-conditions{padding:9px}.ad-guidance-step-body img,.ad-guidance-step-body video{max-height:260px}}

/* Résultats commerciaux dans le chat : cartes responsive avec images alignées. */
.ad-domain-results{margin-top:18px;padding-top:14px;border-top:1px solid #e6ebf3}.ad-domain-results-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px;color:#10294f;font-size:13px}.ad-domain-results-head span{border-radius:999px;background:#eef3fa;padding:3px 8px;font-size:11px;font-weight:800}.ad-domain-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;align-items:stretch}.ad-domain-card{min-width:0;overflow:hidden;border:1px solid #e0e7f0;border-radius:12px;background:#fff;display:flex;flex-direction:column;box-shadow:0 4px 14px rgba(6,26,58,.045)}.ad-domain-image{display:block;width:100%;height:145px;object-fit:cover;background:#f0f3f8}.ad-domain-placeholder{display:grid;place-items:center;font-size:36px}.ad-domain-card-body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:11px;flex:1}.ad-domain-kind{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#718096;font-weight:850}.ad-domain-title{font-size:13px;line-height:1.4;color:#10294f;overflow-wrap:anywhere}.ad-domain-price{font-weight:900;color:#08764c;font-size:14px}.ad-domain-meta{font-size:10px;color:#718096}.ad-domain-card p{font-size:11px;line-height:1.5;color:#526176;margin:0;overflow-wrap:anywhere}.ad-domain-link{margin-top:auto;padding-top:6px;color:#0b4e9b;font-size:11px;font-weight:850}.ad-domain-link:hover{text-decoration:underline}@media(max-width:500px){.ad-domain-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ad-domain-image{height:110px}.ad-domain-card-body{padding:8px}.ad-domain-title{font-size:12px}}

/* Amélioration de lisibilité du chat : médias discrets, cartes compactes et arrivée progressive. */
.ad-msg.bot .ad-bubble{min-width:0;overflow-wrap:anywhere}
.ad-msg.bot .ad-bubble.ad-response-arriving{animation:ad-response-enter .32s ease-out both}
.ad-msg.bot .ad-response-arriving .ad-response-title,
.ad-msg.bot .ad-response-arriving .ad-response-intro,
.ad-msg.bot .ad-response-arriving .ad-response-section,
.ad-msg.bot .ad-response-arriving .ad-response-media,
.ad-msg.bot .ad-response-arriving .ad-domain-results,
.ad-msg.bot .ad-response-arriving .ad-response-suggestions{animation:ad-content-enter .38s ease-out both}
.ad-msg.bot .ad-response-arriving .ad-response-title{animation-delay:.02s}
.ad-msg.bot .ad-response-arriving .ad-response-intro{animation-delay:.06s}
.ad-msg.bot .ad-response-arriving .ad-response-section{animation-delay:.09s}
.ad-msg.bot .ad-response-arriving .ad-domain-results{animation-delay:.13s}
.ad-msg.bot .ad-response-arriving .ad-response-suggestions{animation-delay:.16s}
@keyframes ad-response-enter{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes ad-content-enter{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.ad-msg.bot .ad-bubble img:not(.ad-domain-image),
.ad-msg.bot .ad-bubble video{display:block;width:auto;max-width:min(100%,280px);max-height:190px;object-fit:contain;border-radius:9px;margin:7px 0;background:#f3f6fa}
.ad-msg.bot .ad-bubble .ad-media-gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr));gap:8px}
.ad-msg.bot .ad-bubble .ad-media-gallery>img,
.ad-msg.bot .ad-bubble .ad-media-gallery>video{width:100%;max-width:100%;max-height:150px;object-fit:contain}
.ad-msg.bot .ad-bubble .ad-response-media{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}
.ad-msg.bot .ad-bubble .ad-response-media img,
.ad-msg.bot .ad-bubble .ad-response-media video{width:100%;max-height:170px;object-fit:contain}
.ad-domain-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:9px}
.ad-domain-card{border-radius:10px;box-shadow:0 2px 8px rgba(6,26,58,.035)}
.ad-domain-image{height:88px;object-fit:contain;padding:3px;box-sizing:border-box;background:#f6f8fb}
.ad-domain-card-body{gap:5px;padding:9px}
.ad-domain-title{font-size:12px;line-height:1.35}
.ad-domain-price{font-size:12px}
.ad-domain-card p{font-size:10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ad-domain-link{font-size:10px}
.ad-steps-help{font-size:12px;line-height:1.6;color:#65748a;background:#f5f8fc;border:1px solid #e2eaf4;padding:10px 12px;border-radius:9px;margin:0 0 12px}
.ad-steps-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ad-step-item{background:#fff;box-shadow:0 2px 9px rgba(6,26,58,.035)}
.ad-step-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#f6f8fb;border-bottom:1px solid #e6ebf2}
.ad-step-head strong{font-size:12px;color:#10294f}
.ad-step-part-label{padding:10px 12px 0}
.ad-step-editor{min-height:96px;line-height:1.55;overflow-wrap:anywhere}
.ad-step-editor img,.ad-rich-editor img.ad-inline-image{display:inline-block!important;width:auto!important;max-width:min(140px,100%)!important;height:auto!important;max-height:92px!important;object-fit:contain!important;vertical-align:middle;border-radius:6px;margin:4px 6px 4px 0;background:#f3f6fa}
.ad-step-editor video,.ad-rich-editor video.ad-inline-video{display:inline-block;width:auto;max-width:min(220px,100%);height:auto;max-height:115px;vertical-align:middle;border-radius:6px;margin:4px 6px 4px 0;background:#f3f6fa}
.ad-step-editor audio{display:block;width:min(280px,100%);height:34px;margin:5px 0}
@media(max-width:650px){
 .ad-domain-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .ad-domain-image{height:76px}
 .ad-msg.bot .ad-bubble img:not(.ad-domain-image),.ad-msg.bot .ad-bubble video{max-width:min(100%,220px);max-height:155px}
 .ad-msg.bot .ad-bubble .ad-media-gallery>img,.ad-msg.bot .ad-bubble .ad-media-gallery>video{max-height:125px}
 .ad-steps-actions>*{flex:1 1 180px}
}
@media(prefers-reduced-motion:reduce){.ad-msg.bot .ad-bubble.ad-response-arriving,.ad-msg.bot .ad-response-arriving *{animation:none!important;scroll-behavior:auto!important}}
.ad-step-condition-group{border:1px solid #d8e2ef;border-radius:12px;padding:10px;margin:0 0 14px;background:#fbfcfe}
.ad-condition-head{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;padding:4px 2px 11px;margin-bottom:10px;border-bottom:1px solid #e1e8f1}
.ad-condition-head label{display:block;flex:1 1 230px;font-size:12px;font-weight:850;color:#10294f}
.ad-condition-name{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px 11px;border:1px solid #d4deeb;border-radius:8px;font:inherit;font-weight:500;background:#fff}
.ad-condition-add-step,.ad-condition-remove{font-size:11px!important;padding:8px 10px!important}
.ad-condition-remove{border:1px solid #f0d6d6;background:#fff7f7;color:#a43333;border-radius:8px;cursor:pointer}
.ad-step-group-steps{display:flex;flex-direction:column;gap:10px}
.ad-step-item{min-width:0}
.ad-step-item .ad-step-editor{background:#fff;min-height:88px}
@media(max-width:650px){.ad-step-condition-group{padding:7px}.ad-condition-head{align-items:stretch}.ad-condition-head>*{flex:1 1 100%}.ad-step-item .ad-step-toolbar{overflow-x:auto;flex-wrap:nowrap}.ad-step-item .ad-step-toolbar button{flex:0 0 auto}}

/* Correctif ferme des medias dans les bulles du chat : aucune image ne doit prendre toute la largeur/hauteur. */
#ad-chat .ad-chat-messages .ad-message img,
#ad-chat .ad-chat-messages .ad-bubble img,
.ad-chat-page .ad-chat-messages img:not(.ad-domain-image),
.ad-chat-page .ad-chat-messages video,
.ad-msg.bot .ad-bubble .ad-response-step-body img,
.ad-msg.bot .ad-bubble .ad-response-step-body video,
.ad-msg.bot .ad-bubble .ad-guidance-step-body img,
.ad-msg.bot .ad-bubble .ad-guidance-step-body video,
.ad-msg.bot .ad-bubble .ad-response-media img,
.ad-msg.bot .ad-bubble .ad-response-media video {
  display:inline-block !important; width:auto !important; max-width:min(100%, 160px) !important; height:auto !important; max-height:100px !important; object-fit:contain !important; vertical-align:middle; margin:5px 7px 5px 0; border-radius:7px;
}
.ad-chat-page .ad-chat-messages .ad-media-gallery,
.ad-msg.bot .ad-bubble .ad-media-gallery {display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:7px;align-items:start}
.ad-chat-page .ad-chat-messages .ad-media-gallery img,
.ad-chat-page .ad-chat-messages .ad-media-gallery video,
.ad-msg.bot .ad-bubble .ad-media-gallery img,
.ad-msg.bot .ad-bubble .ad-media-gallery video {width:100% !important;max-width:130px !important;max-height:86px !important}
.ad-step-editor img.ad-inline-image {width:auto !important;max-width:120px !important;max-height:76px !important;height:auto !important;object-fit:contain !important;vertical-align:middle}
.ad-step-editor video.ad-inline-video {width:auto !important;max-width:180px !important;max-height:90px !important;height:auto !important;vertical-align:middle}
@media(max-width:650px){.ad-chat-page .ad-chat-messages .ad-bubble img:not(.ad-domain-image),.ad-chat-page .ad-chat-messages .ad-bubble video{max-width:125px !important;max-height:82px !important}.ad-chat-page .ad-chat-messages .ad-media-gallery img,.ad-chat-page .ad-chat-messages .ad-media-gallery video{max-width:110px !important;max-height:74px !important}}

/* Version 4 : règles alignées sur les classes réellement utilisées par le chat et l'éditeur. */
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble video {width:auto!important;max-width:min(100%,150px)!important;max-height:100px!important;object-fit:contain!important}
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-domain-image {width:100%!important;max-width:100%!important;height:76px!important;max-height:76px!important;object-fit:contain!important}
.ad-domain-schedule{font-size:11px;font-weight:800;color:#0b2f63;background:#eef4fb;border-radius:7px;padding:5px 7px;overflow-wrap:anywhere}
.ad-step-editor img,.ad-step-editor video{max-width:140px!important;max-height:92px!important;width:auto!important;height:auto!important;object-fit:contain!important;vertical-align:middle}
.ad-step-group-steps .ad-step-item{scroll-margin:18px}
.ad-msg.bot .ad-bubble.ad-response-arriving{animation:ad-response-enter .32s ease-out both}
@media(max-width:650px){.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble img,.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble video{max-width:120px!important;max-height:78px!important}.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-domain-image{height:68px!important;max-height:68px!important}}

.ad-save-notice{padding:12px 14px;border-radius:9px;margin:0 0 15px;font-size:13px;font-weight:700}.ad-save-notice.success{background:#eaf8f0;border:1px solid #bfe8d0;color:#146c43}.ad-save-notice.error{background:#fff0f0;border:1px solid #f1c4c4;color:#9d2525}


/* Version 5: médias des étapes lisibles sans dominer toute la conversation. */
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-step-body img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-guidance-step-body img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-answer img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-intro img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-section img {
  display:inline-block!important;width:auto!important;max-width:min(100%,280px)!important;max-height:220px!important;height:auto!important;object-fit:contain!important;vertical-align:middle;margin:7px 9px 7px 0;border-radius:9px;background:#f3f6fa
}
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-step-body video,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-guidance-step-body video,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-answer video,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-intro video,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-section video {
  display:inline-block!important;width:auto!important;max-width:min(100%,320px)!important;max-height:240px!important;height:auto!important;object-fit:contain!important;vertical-align:middle;margin:7px 9px 7px 0;border-radius:9px;background:#111
}
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-media-gallery {grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px}
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-media-gallery img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-media-gallery video {width:100%!important;max-width:100%!important;max-height:240px!important;object-fit:contain!important}
.ad-step-editor img,.ad-step-editor img.ad-inline-image {max-width:220px!important;max-height:150px!important}
.ad-step-editor video,.ad-step-editor video.ad-inline-video {max-width:270px!important;max-height:175px!important}
#ad-chat-body .ad-msg.bot .ad-bubble .ad-response-media img,
#ad-chat-body .ad-msg.bot .ad-bubble .ad-response-media video {max-width:100%!important;max-height:260px!important;width:auto!important}
@media(max-width:650px){
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-step-body img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-guidance-step-body img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-answer img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-intro img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-section img {max-width:min(100%,200px)!important;max-height:170px!important}
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-step-body video,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-guidance-step-body video,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-answer video,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-intro video,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-section video {max-width:min(100%,240px)!important;max-height:185px!important}
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-media-gallery {grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-media-gallery img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-media-gallery video {max-height:180px!important}
 .ad-step-editor img,.ad-step-editor img.ad-inline-image {max-width:180px!important;max-height:125px!important}
 .ad-step-editor video,.ad-step-editor video.ad-inline-video {max-width:220px!important;max-height:145px!important}
}

/* Assistant conversation enhancements */
.ad-domain-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto;padding-top:7px}.ad-domain-link.primary,.ad-domain-link.secondary{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:8px;background:#0b2f63;color:#fff;text-decoration:none;font-weight:800}.ad-domain-link.secondary{background:#eaf1fb;color:#0b2f63;border:1px solid #d4dfef}.ad-bubble img,.ad-domain-image{cursor:zoom-in}.ad-image-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(4,15,35,.9);display:flex;align-items:center;justify-content:center;padding:4vh 4vw}.ad-image-lightbox img{max-width:92vw;max-height:90vh;object-fit:contain;border-radius:10px;box-shadow:0 15px 50px #0008}.ad-image-lightbox-close{position:absolute;top:18px;right:22px;width:44px;height:44px;border:0;border-radius:50%;font-size:30px;background:#fff;color:#10294f}.ad-response-mode-section select{max-width:100%;width:100%;padding:11px;border:1px solid var(--line);border-radius:9px;background:#fff}.ad-response-mode-section .ad-form-help{font-size:12px;color:var(--muted);line-height:1.6}.ad-field-disabled{opacity:.48;filter:grayscale(.35)}.ad-field-disabled input,.ad-field-disabled textarea,.ad-field-disabled button{pointer-events:none}

.ad-domain-video{display:block;width:100%;max-height:230px;object-fit:contain;background:#101827}.ad-domain-actions a{text-decoration:none}

/* Correctif régression v6 : les suggestions restent des questions entières, lisibles et cliquables. */
.ad-response-suggestions .ad-suggestions{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;min-width:0}
.ad-response-suggestions .ad-suggestion{display:block;flex:0 0 auto;width:100%;max-width:100%;min-width:0;box-sizing:border-box;text-align:left;white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.45;padding:10px 12px;border-radius:10px}
.ad-response-suggestions .ad-suggestion:hover,.ad-response-suggestions .ad-suggestion:focus-visible{background:#edf3fb;border-color:#8ba7cc;outline:none}
.ad-response-suggestions .ad-suggestion:active{transform:translateY(1px)}

/* Commandes visibles d’agrandissement des médias dans le chat. */
.ad-media-expand{position:absolute;right:7px;bottom:7px;z-index:5;border:1px solid rgba(255,255,255,.8);border-radius:7px;padding:6px 9px;background:rgba(7,27,58,.92);color:#fff;font-size:11px;font-weight:800;line-height:1.2;cursor:pointer;box-shadow:0 2px 8px #0003}
.ad-media-expand:hover,.ad-media-expand:focus{background:#0b4e9b;outline:2px solid #fff;outline-offset:1px}
.ad-media-expand-video{bottom:9px;right:9px}
.ad-media-lightbox{z-index:100000}
.ad-media-lightbox video{object-fit:contain;border-radius:10px;box-shadow:0 15px 50px #0008}
.ad-domain-card> .ad-media-expand{bottom:auto;top:7px}
@media(max-width:650px){.ad-media-expand{font-size:10px;padding:5px 7px;right:5px;bottom:5px}.ad-media-expand-video{right:5px;bottom:5px}}

.ad-guidance-offer{margin:14px 0;padding:12px 14px;border:1px solid #cbdaf0;border-radius:12px;background:#f3f7fd;color:#10294f;line-height:1.5}
.ad-guidance-offer>strong{display:block;font-size:13px;margin-bottom:9px}
.ad-guidance-offer-actions{display:flex;gap:8px;flex-wrap:wrap}
.ad-guidance-offer-actions button{border:0;border-radius:8px;padding:8px 15px;font-weight:800;cursor:pointer}
.ad-guidance-offer-yes{background:#08764c;color:#fff}.ad-guidance-offer-no{background:#e6edf6;color:#10294f;border:1px solid #d1dceb!important}


/* v4 : aperçus multimédias plus lisibles et agrandissement fiable sur ordinateur/mobile. */
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-step-body img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-guidance-step-body img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-answer img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-intro img,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-section img,
#ad-chat-body .ad-msg.bot .ad-bubble .ad-response-media img {
  display:block!important; max-width:min(100%,340px)!important; max-height:280px!important;
  width:auto!important; height:auto!important; object-fit:contain!important; border-radius:10px;
  background:#f1f4f8; cursor:zoom-in; margin:8px 0;
}
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-step-body video,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-guidance-step-body video,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-answer video,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-intro video,
.ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-section video,
#ad-chat-body .ad-msg.bot .ad-bubble .ad-response-media video {
  display:block!important; width:min(100%,460px)!important; max-width:100%!important;
  max-height:310px!important; height:auto!important; object-fit:contain!important;
  background:#101827; border-radius:10px; margin:8px 0;
}
.ad-bubble .ad-media-expand { min-height:30px; padding:7px 10px; border-radius:8px; }
.ad-media-lightbox { padding:3vh 3vw!important; }
.ad-media-lightbox img { max-width:94vw!important; max-height:92vh!important; }
.ad-media-lightbox video { width:min(1200px,94vw)!important; max-width:94vw!important; max-height:90vh!important; }
@media(max-width:650px){
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-step-body img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-guidance-step-body img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-answer img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-intro img,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-section img,
 #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-media img {max-width:min(100%,280px)!important;max-height:220px!important}
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-step-body video,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-guidance-step-body video,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-answer video,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-intro video,
 .ad-chat-page #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-section video,
 #ad-chat-body .ad-msg.bot .ad-bubble .ad-response-media video {width:100%!important;max-height:240px!important}
}
/* Pièces jointes attachées à chaque sous-étape : elles ne sont jamais regroupées en fin de procédure. */
.ad-step-attachments{display:grid;gap:7px;margin-top:9px}.ad-step-attachment{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:8px;border:1px solid var(--ad-border);border-radius:9px;background:#f7f9fc}.ad-step-attachment img,.ad-step-attachment video{display:block;width:auto;max-width:min(220px,100%);max-height:135px;object-fit:contain;border-radius:7px;background:#eef2f7}.ad-step-attachment audio{width:min(280px,100%);max-width:100%;height:34px}.ad-step-attachment span{font-size:12px;font-weight:700;color:var(--ad-muted)}.ad-step-attachment-remove{margin-left:auto;border:0;border-radius:7px;padding:6px 9px;background:#fdeaea;color:#9b1c1c;font-size:11px;font-weight:800;cursor:pointer}
.ad-rich-editor a.af-chat-link,.ad-step-editor a.af-chat-link{color:#0c4aa6!important;text-decoration:underline!important;text-underline-offset:2px;cursor:pointer}.ad-rich-editor a.af-chat-button,.ad-step-editor a.af-chat-button,.ad-bubble a.af-chat-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 14px;margin:5px 5px 5px 0;border-radius:10px;background:#f4c400;color:#071b3a;font-weight:800;text-decoration:none;border:1px solid rgba(7,27,58,.12);box-shadow:0 3px 8px rgba(23,35,59,.08);cursor:pointer;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.ad-rich-editor a.af-chat-button:hover,.ad-step-editor a.af-chat-button:hover,.ad-bubble a.af-chat-button:hover{filter:brightness(.96);transform:translateY(-1px)}
.ad-response-step-body .ad-step-chat-attachment{display:block;width:auto;max-width:100%;max-height:240px;object-fit:contain;margin:8px 0;border-radius:9px}.ad-response-step-body audio.ad-step-chat-attachment{width:min(360px,100%);max-width:100%;height:36px}
