/* Hard Déco 11A-8.15.3 — panneau de recherche aligné sous la loupe. */
.header.app-shell .hd-topbar-middle { position:relative;display:flex;justify-content:stretch;align-items:center;min-width:0; }
.header.app-shell .hd-search-field { position:relative;box-sizing:border-box;display:flex;align-items:center;gap:11px;width:100%;height:var(--app-topbar-h,64px);padding:0 7px;border:0;border-radius:0;background:transparent;color:var(--muted);box-shadow:none;cursor:text; }
.header.app-shell .hd-search-field::after { content:"";position:absolute;bottom:5px;left:7px;width:55px;height:2px;border-radius:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .18s ease;pointer-events:none; }
.header.app-shell .hd-search-field:focus-within::after { transform:scaleX(1); }
.header.app-shell .hd-search-field:focus-within > .lucide { color:var(--accent); }
.header.app-shell .hd-search-field > .lucide { flex:none;width:17px;height:17px;pointer-events:none; }
.header.app-shell .hd-search-field input { flex:1;min-width:0;height:100%;padding:0;border:0!important;border-radius:0;background:transparent!important;color:var(--text);font:inherit;font-size:12.5px;box-shadow:none; }
.header.app-shell .hd-search-field #hdGlobalSearchInput:focus-visible { outline:none!important;box-shadow:none!important; }
.header.app-shell .hd-search-field input::placeholder { color:var(--muted);opacity:1; }
.header.app-shell .hd-search-field input::-webkit-search-cancel-button { cursor:pointer; }
#main-content .home-command .home-search .searchbar > #searchBar { display:block;box-sizing:border-box;width:100%;min-height:46px;padding:11px 44px 11px 48px;border:1px solid var(--border);border-radius:11px;background:var(--panel);color:var(--muted);font:inherit;font-size:15px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;transition:border-color 150ms ease,box-shadow 150ms ease,background-color 150ms ease; }
#main-content .home-command .home-search .searchbar > #searchBar:hover { border-color:color-mix(in srgb,var(--accent) 25%,var(--border)); }
#main-content .home-command .home-search .searchbar > #searchBar:focus-visible { border-color:var(--accent);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent); }
.home-search #searchBar[readonly] { cursor:pointer; }
.hd-search-panel[hidden] { display:none !important; }
.hd-search-panel { position:absolute;z-index:1010;top:calc(100% + 2px);left:7px;box-sizing:border-box;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(780px,calc(100vw - 32px));min-height:175px;max-height:min(69dvh,620px);padding:0;border:1px solid var(--border);border-radius:13px;background:var(--panel);color:var(--text);box-shadow:0 20px 55px rgba(15,23,42,.18),0 2px 9px rgba(15,23,42,.06);overflow:hidden; }
.hd-search-filters { display:flex;gap:5px;align-items:center;min-width:0;padding:12px 14px 10px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--border); }
.hd-search-filters::-webkit-scrollbar { display:none; }
.hd-search-filters > button { flex:none;min-height:30px;padding:5px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-size:11.5px;font-weight:620;white-space:nowrap;cursor:pointer; }
.hd-search-filters > button:hover,.hd-search-filters > button:focus-visible { background:var(--hover);outline:none; }
.hd-search-filters > button[aria-pressed="true"] { border-color:color-mix(in srgb,var(--accent) 16%,var(--border));background:color-mix(in srgb,var(--accent) 9%,var(--panel));color:var(--accent);font-weight:720; }
.hd-search-archive { display:flex;align-items:center;gap:5px;flex:none;margin-left:auto;padding:0 5px;color:var(--muted);font-size:11px;white-space:nowrap;cursor:pointer; }
.hd-search-archive input { accent-color:var(--accent); }
.hd-search-panel-meta { display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding:4px 16px 0; }
.hd-search-status { min-width:0;color:var(--muted);font-size:11px;line-height:1.4; }
.hd-search-panel-meta > button { flex:none;display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:var(--muted);cursor:pointer; }
.hd-search-panel-meta > button:hover,.hd-search-panel-meta > button:focus-visible { background:var(--hover);color:var(--text);outline:none; }
.hd-search-panel-meta > button .lucide { width:15px;height:15px; }
.hd-search-results { min-height:0;padding:1px 9px 12px;overflow:auto;overscroll-behavior:contain; }
.hd-search-group { padding-top:5px; }
.hd-search-group-title { display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 11px 6px;color:var(--muted);font-size:10.5px;letter-spacing:.055em;text-transform:uppercase; }
.hd-search-group-title strong { font-weight:730; }
.hd-search-group-title button { border:0;background:transparent;color:var(--accent);font:inherit;font-size:11px;font-weight:650;text-transform:none;cursor:pointer; }
.hd-search-group-title button:disabled { color:var(--muted);cursor:default; }
.hd-search-item { display:flex;align-items:center;gap:11px;width:100%;min-height:55px;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer; }
.hd-search-item:hover,.hd-search-item.is-active,.hd-search-item:focus-visible { background:color-mix(in srgb,var(--accent) 6%,var(--panel));outline:none; }
.hd-search-item-icon { display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:8px;background:color-mix(in srgb,var(--accent) 9%,var(--panel));color:var(--accent); }
.hd-search-item-icon svg { width:17px;height:17px; }
.hd-search-item-copy { display:grid;gap:3px;flex:1;min-width:0; }
.hd-search-item-copy strong,.hd-search-item-copy small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.hd-search-item-copy strong { font-size:13px;font-weight:650; }
.hd-search-item-copy small { color:var(--muted);font-size:11.5px; }
.hd-search-item-badge { flex:none;padding:4px 7px;border-radius:6px;background:var(--hover);color:var(--muted);font-size:10px;font-weight:600; }
.hd-search-hint { margin:16px 12px;color:var(--muted);font-size:12px;line-height:1.5; }
.hd-search-footer { display:flex;justify-content:space-between;gap:8px;padding:10px 17px;border-top:1px solid var(--border);color:var(--muted);font-size:10px; }
.hd-search-footer kbd { display:inline-block;padding:2px 5px;border:1px solid var(--border);border-radius:5px;background:var(--hover);font:inherit; }
@media (min-width:901px) and (max-width:1100px) { .hd-search-panel { width:min(680px,calc(100vw - 32px)); } }
@media (max-width:900px) {
  #main-content .home-command .home-search .searchbar > #searchBar { padding-left:50px; }
  .hd-search-panel { width:min(560px,calc(100vw - 32px)); }
}
@media (max-width:720px) {
  .header.app-shell .hd-search-field { width:38px;height:38px;padding:0;justify-content:center;border-color:transparent;background:transparent;box-shadow:none;cursor:pointer; }
  .header.app-shell .hd-search-field::after { display:none; }
  .header.app-shell .hd-search-field input { position:absolute;width:1px;height:1px;opacity:0;pointer-events:none; }
  .header.app-shell .hd-search-field kbd { display:none; }
  .header.app-shell .hd-search-field.is-open { position:fixed;z-index:1012;top:calc(6px + env(safe-area-inset-top,0px));right:8px;left:8px;width:auto;height:45px;padding:0 12px;justify-content:initial;border:1px solid var(--border);border-radius:10px;background:var(--panel);box-shadow:0 8px 28px rgba(15,23,42,.12);cursor:text; }
  .header.app-shell .hd-search-field.is-open input { position:static;flex:1;width:auto;height:100%;opacity:1;pointer-events:auto;font-size:16px; }
  .hd-search-panel { position:fixed;top:calc(var(--app-topbar-h,58px) + env(safe-area-inset-top,0px) + 2px);right:8px;left:8px;transform:none;width:auto;max-height:calc(100dvh - var(--app-topbar-h,58px) - var(--app-mobile-nav-h,68px) - env(safe-area-inset-top,0px) - 16px);border-radius:12px; }
  .hd-search-filters { padding:9px; }
  .hd-search-archive { margin-left:0; }
  .hd-search-footer { display:none; }
}
