#roadmapDialog{width:min(1480px,96vw);max-width:96vw;max-height:92vh;box-sizing:border-box;padding:30px;border:1px solid #dce3ed;border-radius:24px;background:#f6f8fc;color:#1e293b;box-shadow:0 30px 100px #0005;overflow:auto;font-family:Inter,system-ui,sans-serif}
#roadmapDialog::backdrop{background:#101c35aa;backdrop-filter:blur(6px)}
.roadmap-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.roadmap-header h2{font-size:clamp(23px,2vw,32px);letter-spacing:-.04em;margin:8px 0;color:#16243b}.roadmap-header small{font-size:10px;letter-spacing:.18em;font-weight:800;color:#6b7b93}.roadmap-header p{color:#64748b;margin:0}.roadmap-header .close{position:static;border:1px solid #dce3ed!important;border-radius:12px;background:#fff!important;color:#64748b!important;width:40px;height:40px;font-size:22px;flex-shrink:0}
#roadmapDialog button{border:1px solid #dbe3ee;border-radius:9px;padding:9px 12px;background:#fff;color:#334155;font:600 12px/1.3 system-ui,sans-serif;box-shadow:none;cursor:pointer;transition:background .15s,transform .15s}#roadmapDialog button:hover{background:#eef2f8}#roadmapDialog button:disabled{opacity:.5;cursor:wait}#roadmapDialog :focus-visible{outline:3px solid #90b8ff;outline-offset:3px}
.roadmap-tools{display:flex;align-items:center;gap:12px;margin:24px 0 8px}.roadmap-tools input{flex:1;min-width:0;border:1px solid #dce3ed;border-radius:12px;padding:12px 16px;background:#fff;color:#334155;font-size:14px}.roadmap-tools button,#roadmapDialog .roadmap-editor button[type=submit]{background:#243d60;color:#fff;border-color:#243d60;padding:12px 18px;border-radius:12px}.roadmap-tools button:hover{background:#31527e!important}#roadmapDialog>[role=status]{font-size:12px;color:#64748b;min-height:18px}
.roadmap-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px;margin-top:20px}
.roadmap-board section{--accent:#537edb;--tint:#eaf0ff;--border:#cbdaf9;background:#edf1f7;border:1px solid #e0e6ef;border-radius:16px;padding:14px;min-height:350px;transition:background .15s,box-shadow .15s}
.roadmap-board section[data-column="1"]{--accent:#c48a18;--tint:#fff5d9;--border:#eedaa5}.roadmap-board section[data-column="2"]{--accent:#8c63cb;--tint:#f3ecff;--border:#decef4}.roadmap-board section[data-column="3"]{--accent:#368f70;--tint:#e2f5ec;--border:#b6e0ce}
.roadmap-board section>h3{display:flex;align-items:center;gap:8px;margin:2px 0 14px;font-size:14px;font-weight:750;color:#26354c}.roadmap-board section>h3::before{content:'';width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--tint)}
#roadmapDialog .roadmap-board section>button{width:100%;background:transparent;border:1px dashed #c2ccdb;color:#64748b;text-align:left;margin-bottom:4px}.roadmap-board section>p{font-size:12px;line-height:1.6;color:#8590a3;margin:30px 10px}
.roadmap-board article{position:relative;background:var(--tint);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:12px;padding:16px 14px;margin-top:12px;box-shadow:0 3px 8px #26354c08;cursor:grab;transition:box-shadow .15s,transform .15s;overflow-wrap:anywhere}.roadmap-board article:hover{transform:translateY(-2px);box-shadow:0 7px 18px #26354c14}.roadmap-board article:active{cursor:grabbing}.roadmap-board article.dragging{opacity:.4;transform:rotate(2deg)}.roadmap-board section.drop-target{background:var(--tint);box-shadow:inset 0 0 0 2px var(--accent)}
.roadmap-board article>small{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.03em;color:var(--accent);background:#ffffffa6;border-radius:6px;padding:4px 7px;margin-bottom:12px}.roadmap-board h4{font-size:14px;line-height:1.45;margin:0 0 10px;color:#24344c;letter-spacing:-.015em}.roadmap-description{font-size:12px;line-height:1.7;color:#536278;white-space:pre-wrap}.roadmap-description p{margin:0 0 6px}.roadmap-description ul,.roadmap-description ol{padding-left:20px;white-space:normal}.roadmap-description blockquote{margin:8px 0;padding-left:10px;border-left:2px solid var(--accent)}
.roadmap-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}#roadmapDialog .roadmap-actions button{background:#ffffff80;border-color:transparent;padding:6px 8px;font-size:11px;color:#56657c}#roadmapDialog .roadmap-actions button:hover{background:#fff;color:#1e293b}.roadmap-actions span{font-size:12px;width:100%;color:#9b4040}
.roadmap-editor{grid-column:1/-1;background:#fff;border:1px solid #ced9e8;padding:24px;border-radius:16px;box-shadow:0 12px 32px #26354c12}.roadmap-editor h3{margin:0 0 20px;color:#24344c}.roadmap-editor label{display:grid;gap:8px;margin:14px 0;font-size:12px;font-weight:650;color:#536278}.roadmap-editor input,.roadmap-editor textarea,.roadmap-editor select{width:100%;box-sizing:border-box;border:1px solid #ced9e8;border-radius:8px;padding:10px;color:#24344c;background:#fff;font:14px system-ui,sans-serif}.roadmap-editor button{margin-right:8px}.roadmap-editor .tox-tinymce{border-radius:10px}
@media(max-width:1050px){.roadmap-board{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){#roadmapDialog{padding:18px;border-radius:18px}.roadmap-board{grid-template-columns:1fr}.roadmap-tools{flex-wrap:wrap}.roadmap-tools input{flex-basis:100%}.roadmap-board section{min-height:180px}}
@media(prefers-reduced-motion:reduce){#roadmapDialog *{transition:none!important}}

.roadmap-board article{touch-action:none}.roadmap-board article button{touch-action:manipulation}
#roadmapDialog .roadmap-tools button{background:#243d60;color:#fff;border-color:#243d60}

/* Visualidar : anthracite et vert clair */
#roadmapDialog{background:#191d18;color:#f1f3ed;border-color:#343b31;box-shadow:0 30px 100px #0009;color-scheme:dark}
#roadmapDialog::backdrop{background:#080c09ba}
.roadmap-header h2{color:#caf46c}.roadmap-header small{color:#b8c5ad}.roadmap-header p,#roadmapDialog>[role=status]{color:#9da798}
#roadmapDialog .roadmap-header .close{background:#252c22!important;color:#caf46c!important;border-color:#46513d!important}
#roadmapDialog button{background:#252c22;border-color:#46513d;color:#edf5e6}#roadmapDialog button:hover{background:#34412a}
#roadmapDialog :focus-visible{outline-color:#caf46c}
.roadmap-tools input{background:#111410;border-color:#3c4834;color:#f1f3ed}
#roadmapDialog .roadmap-tools button,#roadmapDialog .roadmap-editor button[type=submit]{background:#caf46c;color:#19210f;border-color:#caf46c}
#roadmapDialog .roadmap-tools button:hover{background:#dcff8e!important}
.roadmap-board section{background:#111410;border-color:#343b31}.roadmap-board section>h3{color:#e8f0df}
#roadmapDialog .roadmap-board section>button{border-color:#49553f;color:#aebaa2}.roadmap-board section>p{color:#87967b}
.roadmap-board section.drop-target{background:#24311b;box-shadow:inset 0 0 0 2px var(--accent)}
.roadmap-editor{background:#20271c;border-color:#566549;box-shadow:0 12px 32px #0004}.roadmap-editor h3{color:#caf46c}.roadmap-editor label{color:#c4d0ba}.roadmap-editor input,.roadmap-editor textarea,.roadmap-editor select{background:#111410;border-color:#46513d;color:#f1f3ed}
.roadmap-description{white-space:normal}.roadmap-description img,.roadmap-description video,.roadmap-description iframe{display:block;max-width:100%;width:100%;height:auto;border-radius:8px;margin:10px 0}.roadmap-description iframe{aspect-ratio:16/9;border:0}.roadmap-description table{border-collapse:collapse;display:block;max-width:100%;overflow-x:auto;font-size:11px;margin:10px 0}.roadmap-description td,.roadmap-description th{border:1px solid var(--border);padding:6px}.roadmap-description a{color:var(--accent);text-decoration:underline}.roadmap-description video,.roadmap-description iframe,.roadmap-description a{touch-action:auto}
#roadmapDialog:has(.tox-fullscreen){width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;border-radius:0;overflow:visible}
#roadmapDialog .tox-fullscreen{z-index:10000}

.roadmap-board article.dragging{pointer-events:none}.roadmap-access{display:inline-block;margin:0 0 12px 6px;font-size:10px;color:#52634a}.roadmap-access.plus{padding:4px 7px;border-radius:6px;background:#ffdb80;color:#594000;font-weight:700}

/* TinyMCE conserve un contraste lisible indépendamment des boutons Visualidar. */
#roadmapDialog .tox{color-scheme:light;color:#222f3e}#roadmapDialog .tox .tox-tbtn{background:transparent;color:#222f3e;border:0;box-shadow:none;border-radius:6px;padding:0;font-weight:400;margin:0;min-height:0}#roadmapDialog .tox .tox-tbtn svg{fill:#222f3e}#roadmapDialog .tox .tox-tbtn:hover{background:#e8edf2;color:#15212d}#roadmapDialog .tox .tox-tbtn--enabled{background:#d5e7ba}#roadmapDialog .tox .tox-tbtn--disabled{opacity:.45;cursor:default}#roadmapDialog .tox .tox-button{background:#466f20;color:#fff;border-color:#466f20}#roadmapDialog .tox .tox-button--secondary{background:#fff;color:#222f3e;border-color:#c5cdd5}#roadmapDialog .tox .tox-dialog__body label{color:#222f3e}#roadmapDialog .tox .tox-textfield,#roadmapDialog .tox .tox-textarea{background:#fff;color:#222f3e;border-color:#c5cdd5}
.roadmap-filters{display:flex;gap:12px;flex-basis:100%;flex-wrap:wrap}.roadmap-filters label{display:grid;gap:6px;color:#c4d0ba;font-size:11px}.roadmap-filters select{background:#111410;color:#f1f3ed;border:1px solid #46513d;padding:8px;border-radius:8px;min-width:130px}.roadmap-tools{flex-wrap:wrap}
.roadmap-meta{display:grid;gap:4px;font-size:11px;color:#536278;margin-bottom:12px}.roadmap-meta .overdue{color:#a52a23;font-weight:bold}.roadmap-checklist{margin-top:12px}.roadmap-checklist progress{display:block;width:100%;height:6px;margin:7px 0;accent-color:var(--accent)}.roadmap-checklist label{display:flex;gap:6px;align-items:flex-start;font-size:12px;color:#334155;margin:5px 0}.roadmap-checklist input{flex:0 0 auto;accent-color:var(--accent)}.roadmap-task-row{display:flex;align-items:center;gap:8px;margin:8px 0}.roadmap-task-row input[type=checkbox]{width:auto}.roadmap-task-row input[type=text]{flex:1;min-width:0}.roadmap-comments{margin-top:12px;color:#334155;font-size:12px}.roadmap-comments summary{cursor:pointer}.roadmap-comments p{white-space:pre-wrap;overflow-wrap:anywhere}.roadmap-comments small{color:#607080}.roadmap-comments textarea{width:100%;box-sizing:border-box;margin-top:8px;border:1px solid var(--border);border-radius:6px;padding:8px;background:#fff;color:#24344c}.roadmap-comments>div{margin-top:12px;padding-top:8px;border-top:1px solid var(--border)}

.roadmap-column-head{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:12px}.roadmap-column-head h3{font-size:14px;color:#e8f0df;margin:0}.roadmap-column-head>div{display:flex;gap:2px}#roadmapDialog .roadmap-column-head button{padding:4px 6px;font-size:12px}.roadmap-editor input[type=color]{width:90px;height:42px}

.roadmap-column-head h3{display:flex;align-items:center;gap:8px}.roadmap-column-head h3::before{content:"";width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:var(--accent)}

.roadmap-access.internal{padding:4px 7px;border-radius:6px;background:#e2e7ed;color:#425364;font-weight:700}

.roadmap-board article>.roadmap-priority.high{background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5}.roadmap-board article>.roadmap-priority.normal{background:#ffedd5;color:#9a3412;border:1px solid #fdba74}.roadmap-board article>.roadmap-priority.low{background:#fef9c3;color:#854d0e;border:1px solid #fde047}

.roadmap-option-status{font-size:11px;font-weight:700;padding:7px 9px;border-radius:7px;margin-bottom:12px;line-height:1.5}.roadmap-option-status.active{background:#d5f5df;color:#176636;border:1px solid #83d5a0}.roadmap-option-status.soon{background:#fff0ba;color:#855500;border:1px solid #e9c867}.roadmap-option-status.locked,.roadmap-option-status.unlinked{background:#e9edf2;color:#536278;border:1px solid #bfcbd6}

.roadmap-product{display:table;font-size:10px;font-weight:750;padding:5px 8px;border-radius:6px;margin-bottom:10px;line-height:1.5}.roadmap-product.scan{background:#dbeafe;color:#174e9b;border:1px solid #93bdf4}.roadmap-product.web{background:#e1f5ca;color:#396714;border:1px solid #a8d473}.roadmap-product.pipeline{background:#eee0fc;color:#6c32a5;border:1px solid #c7a0e8}

.roadmap-editor label:has(input[name=catalogVisible]){display:flex;align-items:center;gap:8px}.roadmap-editor input[name=catalogVisible]{width:auto}

.roadmap-option-status.development{background:#dcecff;color:#1b5797;border:1px solid #93b9e9}
