/* Cadre commun : même géométrie sur desktop, tablette et téléphone. */
:root{--st-safe-bottom:env(safe-area-inset-bottom,0px);--st-actions-height:calc(72px + var(--st-safe-bottom));--st-dialog-gap:12px}
html{scroll-padding-bottom:var(--st-actions-height)}
body{padding-bottom:var(--st-actions-height)!important}
.st-action-dock{position:fixed;inset:auto 0 0;z-index:2000;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:var(--st-actions-height);padding:10px max(12px,env(safe-area-inset-right)) calc(10px + var(--st-safe-bottom)) max(12px,env(safe-area-inset-left));background:#fff;border-top:1px solid #dedbe4;box-sizing:border-box}
.st-action-dock #redBugButton,.st-action-dock #backToTopBtn{position:relative!important;inset:auto!important;transform:none!important;flex:0 0 52px!important;width:52px!important;min-width:52px!important;height:52px!important;margin:0!important;border-radius:50%!important;z-index:auto!important}
.st-action-dock #backToTopBtn:not(.visible),body.st-dialog-open #backToTopBtn{display:none!important}
.st-action-dock #redBugButton{display:grid!important;place-items:center!important}
.st-action-dock:has(#redBugButton[hidden]) #redBugButton{display:none!important}
.st-action-status{margin-right:auto;display:flex;align-items:center;gap:10px;min-width:0}
.st-action-status #serviceStatusCard,.st-action-status .version{position:static!important;inset:auto!important;display:block!important;width:auto!important;margin:0!important;padding:4px!important;box-shadow:none!important;background:transparent!important;color:#48414f!important;border:0!important;font-size:10px!important}
.st-action-status strong{color:#211729!important;font-size:11px!important}
html.st-dialog-open,body.st-dialog-open{overflow:hidden!important;overscroll-behavior:none}
.st-dialog-shell{position:fixed!important;inset:0!important;width:auto!important;height:auto!important;padding:var(--st-dialog-gap) var(--st-dialog-gap) calc(var(--st-actions-height) + var(--st-dialog-gap))!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;z-index:var(--st-dialog-layer,1500)!important}
.st-dialog-panel{position:relative!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column!important;width:min(var(--st-dialog-width,900px),100%)!important;max-width:100%!important;height:auto!important;max-height:calc(100vh - var(--st-actions-height) - 2*var(--st-dialog-gap))!important;max-height:calc(100dvh - var(--st-actions-height) - 2*var(--st-dialog-gap))!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;border-radius:16px!important;background:#fff;color:#18212b;box-sizing:border-box}
.st-dialog-panel.hidden{display:none!important}
.st-dialog-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e0dce6;background:#fff;color:#18212b;position:relative;z-index:2;min-width:0}
.st-dialog-heading{min-width:0;flex:1}
.st-dialog-heading>.modal-title,.st-dialog-heading>.modal-window-header,.st-dialog-heading>.access-panel-head{position:static!important;inset:auto!important;padding:0!important;margin:0!important;min-height:0!important;height:auto!important;background:transparent!important;color:inherit!important;border:0!important;box-shadow:none!important;display:block!important;cursor:default!important}
.st-dialog-heading h2,.st-dialog-heading h3{font-size:clamp(17px,2.2vw,23px)!important;line-height:1.25;margin:4px 0!important;overflow-wrap:anywhere;color:#211729!important}
.st-dialog-heading .eyebrow{color:#604279!important}.st-dialog-heading p{margin:6px 0 0;line-height:1.4;font-size:13px;overflow-wrap:anywhere}
.st-dialog-heading p{color:#55505e!important;opacity:1!important}
.st-dialog-heading>.modal-window-header{display:flex!important;align-items:flex-start;gap:10px}
.st-dialog-heading .window-title-icon{flex:0 0 34px}.st-dialog-heading .modal-window-header>div{min-width:0}
.st-dialog-heading #toolWindowSubtitle{white-space:normal;max-width:100%;overflow:visible;overflow-wrap:anywhere}
.st-dialog-body .public-topbar{flex-wrap:wrap;gap:12px}.st-dialog-body .public-topbar>div{flex:1 0 100px}
.st-dialog-head .st-dialog-close{position:static!important;inset:auto!important;transform:none!important;display:grid!important;place-items:center;flex:0 0 44px;width:44px!important;height:44px!important;margin:0!important;padding:0!important;z-index:3!important;border:1px solid #ded9e5;background:#f3f0f7;color:#211729;border-radius:10px;font-size:24px!important;cursor:pointer}
.st-dialog-body{flex:1 1 auto;min-height:0;min-width:0;padding:16px;overflow:auto;overscroll-behavior:contain;scroll-padding-block:12px;overflow-wrap:anywhere}
.st-dialog-body form,.st-dialog-body input,.st-dialog-body select,.st-dialog-body textarea{max-width:100%;min-width:0;box-sizing:border-box}
.st-dialog-body img,.st-dialog-body video{max-width:100%;height:auto;object-fit:contain}
.st-dialog-body .form-grid{margin-top:0}.st-dialog-body .form-actions,.st-dialog-body .modal-actions{flex-wrap:wrap;gap:10px}
.st-dialog-panel.pdf-panel,.st-dialog-panel.video-panel{--st-dialog-width:1100px}
.st-dialog-panel.pdf-panel .st-dialog-body{display:flex;flex-direction:column;gap:12px;min-height:0}
.st-dialog-panel.pdf-panel #pdfViewer{display:block;width:100%!important;min-height:140px!important;height:clamp(140px,50dvh,650px)!important;max-height:none!important;flex:1 1 auto!important;border:0}
.st-dialog-panel .field-error{flex:0 0 auto;white-space:normal;overflow-wrap:anywhere;margin:0!important;color:#a62222!important}
.st-dialog-panel #videoStage,.st-dialog-panel #videoPlayer{min-height:0!important;max-height:50dvh!important;width:100%!important}
.st-dialog-panel .pdf-title-actions{margin:8px 0 0!important;display:flex;flex-wrap:wrap}.st-dialog-panel #downloadOpenPdf{max-width:100%;width:auto!important;min-height:40px}
dialog.st-dialog-panel{position:fixed!important;inset:var(--st-dialog-gap) 0 var(--st-actions-height)!important;margin:auto!important;width:min(520px,calc(100% - 24px))!important}
dialog.st-dialog-panel:not([open]){display:none!important}
.st-filter-value{display:block;min-height:44px;padding:10px 64px 10px 12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;background:#fff;border:1px solid #dedbe4;border-radius:9px;color:#251c30;font-size:14px;pointer-events:none}
.st-filter-value::after{content:'⌄';position:absolute;right:38px;top:12px;color:#574767}
.filter-field .st-filter-value{font-size:14px!important;font-weight:400!important;line-height:1.4!important;letter-spacing:normal!important;text-transform:none!important}
.control-stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))!important}
.control-stat-copy{min-width:0;overflow-wrap:anywhere}
.filter-field select.st-native-filter{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer;z-index:1}
.filter-field:has(.st-native-filter):focus-within{outline:3px solid #6d28bd;outline-offset:3px;border-radius:9px}
.results-line,.results-actions,.catalogue-results-actions{flex-wrap:wrap!important;gap:10px!important;align-items:center!important}
.tools-results-line{display:flex!important;flex-direction:row!important}
.tools-results-line .results-meta{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;flex:1 1 240px}
.tools-results-line .active-filter-count{margin-left:0!important;white-space:normal}
.tools-results-line .results-actions{display:flex!important;flex:1 1 320px;justify-content:flex-end;margin:0!important}
.tools-results-line .results-actions .btn{width:auto!important;flex:1 1 125px;white-space:normal;min-height:44px}
.tools-results-line #viewToggle{flex:0 0 44px;width:44px!important;min-height:44px;color:#4913a7!important}
.tools-results-line #viewToggle .st237-btn-picto{width:20px;height:20px;background-color:#4913a7!important;mask:var(--picto) center/48px 48px no-repeat;-webkit-mask:var(--picto) center/48px 48px no-repeat}
.tool-card h4,.tool-card .tool-title{display:block!important;-webkit-line-clamp:unset!important;max-height:none!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere}

