/* EbSelect — habillage unique de tous les <select> du projet */
select.ebs-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important;
  width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden; }
.ebs { --ebs-primary: var(--vz-primary, var(--color-primary, #405189)); position: relative; display: block; width: 100%; font-size: .9rem; }
.ebs.ebs-auto { display: inline-block; width: auto; min-width: 160px; vertical-align: middle; }
.ebs.ebs-hidden { display: none !important; }
.ebs-toggle { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-align: left;
  padding: .45rem .75rem; background: var(--vz-input-bg, #fff); color: var(--vz-body-color, #495057);
  border: 1px solid var(--vz-input-border-custom, var(--vz-border-color, #ced4da)); border-radius: .375rem; transition: border-color .15s, box-shadow .15s; }
.ebs-sm .ebs-toggle { min-height: 31px; padding: .25rem .6rem; font-size: .8rem; }
.ebs-lg .ebs-toggle { min-height: 46px; padding: .6rem 1rem; font-size: 1rem; }
.ebs-toggle::after { content: ""; flex: none; width: .45rem; height: .45rem; border-right: 2px solid #8a94a6; border-bottom: 2px solid #8a94a6; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.ebs.open .ebs-toggle { border-color: var(--ebs-primary); box-shadow: 0 0 0 .2rem rgba(64,81,137,.15); }
.ebs.open .ebs-toggle::after { transform: rotate(-135deg) translateY(-2px); }
.ebs.disabled .ebs-toggle { background: var(--vz-secondary-bg, #eff2f7); opacity: .7; cursor: not-allowed; }
.ebs.invalid .ebs-toggle { border-color: #f06548; }
.ebs-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebs-ph { color: #8a94a6; }
.ebs-panel { position: fixed; z-index: 2147483000; display: none; background-color: #fff; background-image: none; opacity: 1; color: #495057;
  border: 1px solid #ced4da; border-radius: .5rem; box-shadow: 0 10px 28px rgba(0,0,0,.16); overflow: hidden; }
.ebs.open .ebs-panel { display: block; }
.ebs-list { background-color: inherit; }
.ebs-search { display: block; width: calc(100% - 16px); margin: 8px; padding: .3rem .6rem; font-size: .85rem;
  border: 1px solid #ced4da; border-radius: .375rem; background: #fff; color: inherit; outline: 0; }
.ebs-search:focus { border-color: var(--ebs-primary); }
.ebs-list { max-height: 240px; overflow-y: auto; margin: 0; padding: 0 0 6px; list-style: none; }
.ebs-group { padding: 8px 12px 4px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #8a94a6; }
.ebs-opt { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; }
.ebs-opt:hover, .ebs-opt.hl { background: rgba(64,81,137,.09); }
.ebs-opt.sel { color: var(--ebs-primary); font-weight: 600; }
.ebs-opt.sel:not(.multi)::after { content: "✓"; margin-left: auto; }
.ebs-opt.dis { color: #adb5bd; cursor: not-allowed; background: transparent; }
.ebs-opt small { margin-left: auto; font-size: .72rem; }
.ebs-opt .ebs-ph { color: #8a94a6; }
.ebs-empty { padding: 10px 12px; color: #8a94a6; font-size: .85rem; }
.ebs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ebs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; background: var(--ebs-primary); color: #fff; border-radius: 999px; font-size: .8rem; }
.ebs-chip button { border: 0; background: rgba(255,255,255,.22); color: #fff; width: 18px; height: 18px; border-radius: 50%; line-height: 1; padding: 0; font-size: 12px; }
.ebs-chip button:hover { background: rgba(255,255,255,.45); }
.input-group > .ebs { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group > .ebs > .ebs-toggle { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .ebs:not(:first-child) > .ebs-toggle { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Thème sombre */
[data-bs-theme="dark"] .ebs-panel { background-color: #292e32; color: #ced4da; border-color: #3a4147; }
[data-bs-theme="dark"] .ebs-search { background: #212529; border-color: #3a4147; color: #ced4da; }
[data-bs-theme="dark"] .ebs-opt:hover, [data-bs-theme="dark"] .ebs-opt.hl { background: rgba(255,255,255,.08); }
