/* Recherche CBE : liste sous la barre de l'en-tête, plein écran sur mobile, page de résultats. */
.cbe-rech, .cbe-rech-page { --mf-vert: #235A3E; --mf-brique: #C84738; --mf-noir: #1A1A1A; --mf-gris: #5D615B; --mf-ligne: #D8D3C4; --mf-beige-clair: #F4F2EB; --mf-ok: #24764A;
  --mf-ref: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; font-family: var(--e-global-typography-text-font-family, inherit), sans-serif; }
.cbe-rech { position: fixed; z-index: 100001; overflow-y: auto; background: #fff; color: var(--mf-noir); border: 1px solid var(--mf-ligne); border-radius: 8px; box-shadow: 0 14px 40px rgba(0, 0, 0, .18); font-size: 15px; line-height: 1.35; text-align: left; overscroll-behavior: contain; }
.cbe-rech[hidden] { display: none; }
.cbe-rech *, .cbe-rech-page * { box-sizing: border-box; }
.cbe-rech p { margin: 0; }
.cbe-rech-t { padding: 12px 14px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mf-brique); }
.cbe-rech-info { padding: 12px 14px; color: var(--mf-gris); }
.cbe-rech .cbe-rech-l, .cbe-rech-page .cbe-rech-l { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--mf-noir); text-decoration: none; }
.cbe-rech .cbe-rech-l:hover, .cbe-rech .cbe-rech-l.actif, .cbe-rech .cbe-rech-l:focus-visible { background: var(--mf-beige-clair); color: var(--mf-noir); outline: none; }
.cbe-rech-img { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--mf-ligne); border-radius: 4px; background: var(--mf-beige-clair); overflow: hidden; }
.cbe-rech-img img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 0; }
.cbe-rech-x { flex: 1 1 auto; min-width: 0; }
.cbe-rech-x b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cbe-rech-x mark { background: none; color: var(--mf-vert); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.cbe-rech-s { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--mf-gris); font-size: .82rem; }
.cbe-rech-ref { font-family: var(--mf-ref); color: var(--mf-noir); }
.cbe-rech-p { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.cbe-rech-p b { display: block; font-weight: 700; }
.cbe-rech-p i { font-style: normal; font-size: .78rem; color: var(--mf-gris); }
.cbe-rech-p i.ok { color: var(--mf-ok); }
.cbe-rech .cbe-rech-tout { display: block; margin-top: 8px; padding: 12px 14px; border-top: 1px solid var(--mf-ligne); color: var(--mf-vert); font-weight: 700; text-decoration: none; }
.cbe-rech .cbe-rech-tout:hover, .cbe-rech .cbe-rech-tout.actif { background: var(--mf-beige-clair); color: var(--mf-vert); }
.cbe-rech-vide { padding: 14px; display: grid; gap: 6px; }
.cbe-rech-vide a { color: var(--mf-vert); }

/* petit écran : plein écran avec son propre champ */
html.cbe-rech-ouvert { overflow: hidden; }
.cbe-rech.plein { inset: 0; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0); }
.cbe-rech-haut { position: sticky; top: 0; z-index: 1; display: flex; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: #fff; border-bottom: 1px solid var(--mf-ligne); }
.cbe-rech.cbe-rech .cbe-rech-champ { flex: 1 1 auto; min-width: 0; height: 46px; margin: 0; padding: 0 14px; border: 2px solid var(--mf-vert); border-radius: 8px; background: #fff; color: var(--mf-noir); font-size: 16px; font-family: inherit; box-shadow: none; }
.cbe-rech.cbe-rech .cbe-rech-x2 { flex: 0 0 46px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: var(--mf-beige-clair); color: var(--mf-noir); font-size: 18px; line-height: 1; cursor: pointer; }
body.admin-bar .cbe-rech.plein { top: 0; }

/* champ de l'en-tête : loupe seule quand la place manque, repère de saisie discret */
.cbe-rech-loupe { display: none; }
.cbe-rech-mini > .elementor-widget-container, .cbe-rech-mini > form, .cbe-rech-mini > search { display: none; }
.cbe-rech-mini .cbe-rech-loupe.cbe-rech-loupe { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: 0 auto; padding: 0; border: 0; border-radius: 8px; background: none; box-shadow: none; color: #1A1A1A; cursor: pointer; }
.cbe-rech-mini .cbe-rech-loupe.cbe-rech-loupe:hover, .cbe-rech-mini .cbe-rech-loupe.cbe-rech-loupe:focus-visible { background: rgba(0, 0, 0, .06); color: #1A1A1A; }
.cbe-rech-loupe svg { width: 20px; height: 20px; fill: currentColor; }
.elementor-widget-search-form.elementor-search-form--skin-minimal:focus-within { outline: none; }
.elementor-widget-search-form.elementor-search-form--skin-minimal:focus-within .elementor-search-form { box-shadow: 0 2px 0 #235A3E; }

/* page de résultats */
.cbe-rech-page { display: grid; width: 100%; gap: 22px; margin-bottom: 32px; color: var(--mf-noir); font-size: 16px; line-height: 1.4; }
.cbe-rech-page .cbe-rech-info { padding: 0; margin: 0; }
.cbe-rech-page h2 { margin: 0 0 10px; font-size: 1.35rem; font-family: var(--e-global-typography-primary-font-family, inherit), sans-serif; }
.cbe-rech-page h2 span { color: var(--mf-gris); font-size: .9rem; font-weight: 400; }
.cbe-rech-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 8px; }
.cbe-rech-page .cbe-rech-l { border: 1px solid var(--mf-ligne); border-radius: 6px; background: #fff; }
.cbe-rech-page .cbe-rech-l:hover, .cbe-rech-page .cbe-rech-l:focus-visible { border-color: var(--mf-vert); color: var(--mf-noir); }
.cbe-rech-page .cbe-rech-plus { margin: 12px 0 0; }
.cbe-rech-page.cbe-rech-page .cbe-rech-plus button { min-height: 0; margin: 0; padding: 8px 16px; border: 2px solid var(--mf-vert); border-radius: 999px; background: #fff; color: var(--mf-vert); font: inherit; font-weight: 700; cursor: pointer; }
.cbe-rech-page .cbe-rech-vide { padding: 0; }

/* repère atteint depuis la recherche */
.cbe-mf .item.cbe-vise { box-shadow: inset 4px 0 0 var(--mf-brique, #C84738); background: #FFF6E6; }
