/* ============================================================
   ANIMA — recherche globale native Le Fil (js/recherche/palette.js ; « Demander ou chercher », ⌘K / Ctrl+K ; lot 3A)
   Une palette en haut de l'écran : champ, résultats groupés par type, aide au clavier. Préfixe frch-, jetons --f-* de css/fil.css (clair et sombre par html[data-theme]),
   filets plutôt qu'ombres, aucun verre ni halo, actions à l'encre. Téléphone : pleine largeur, lignes de 56 px ; bureau : colonne de 640 px sous le haut de l'écran.
   Remplace les règles .rch-* de css/coque.css et css/couleur.css (et le bouton de l'ancien en-tête, supprimé avec lui).
   ============================================================ */
html.frch-ouverte { overflow: hidden; }
.frch-voile { position: fixed; inset: 0; z-index: 220; display: grid; place-items: start center; padding: 12px; overflow: auto; overscroll-behavior: contain;
  background: color-mix(in srgb, var(--f-encre) 32%, transparent); color: var(--f-encre); font: 400 16px/1.5 Inter, system-ui, sans-serif; animation: frch-voile-in 140ms ease both; }
.frch-voile *, .frch-voile *::before, .frch-voile *::after { box-sizing: border-box; }
.frch { width: 100%; max-width: 640px; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--f-surface); border: 1px solid var(--f-filet); border-radius: 24px; animation: frch-in 320ms var(--f-spring) both; }
.frch-champ { display: flex; align-items: center; gap: 12px; padding: 4px 18px; border-bottom: 1px solid var(--f-filet); color: var(--f-encre-3); }
.frch-champ .ico { width: 20px; height: 20px; flex: none; }
.frch-champ input { flex: 1; min-width: 0; min-height: 56px; padding: 0; font: 400 18px/1.3 Inter, system-ui, sans-serif; background: transparent; border: 0; color: var(--f-encre); outline: none; }
.frch-champ input::placeholder { color: var(--f-encre-3); opacity: 1; }
.frch-champ:focus-within { color: var(--f-encre); }
.frch kbd { font: 500 12px/1 Inter, system-ui, sans-serif; color: var(--f-encre-3); border: 1px solid var(--f-filet); border-radius: 6px; padding: 4px 6px; background: var(--f-surface-2); }
.frch-resultats { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.frch-groupe-titre { margin: 0; padding: 12px 10px 4px; font: 600 12px/1.3 Inter, system-ui, sans-serif; color: var(--f-encre-3); }
.frch-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 56px; padding: 8px 10px; text-align: left; border-radius: 14px;
  color: inherit; text-decoration: none; cursor: pointer; }
.frch-item:hover, .frch-item.est-actif { background: var(--f-surface-2); }
.frch-item.est-actif { outline: 2px solid var(--f-encre); outline-offset: -2px; }
.frch-ico { display: inline-flex; color: var(--f-encre-2); }
.frch-ico .ico { width: 22px; height: 22px; }
.frch-corps { min-width: 0; }
.frch-item b { display: block; font: 600 16px/1.35 Inter, system-ui, sans-serif; color: var(--f-encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frch-item small { display: block; color: var(--f-encre-2); font: 400 14px/1.4 Inter, system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frch-ou { max-width: 11rem; font: 400 12px/1.3 Inter, system-ui, sans-serif; color: var(--f-encre-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frch-hit { background: var(--f-surface-2); color: inherit; font-weight: 700; border-radius: 4px; padding: 0 1px; text-decoration: underline; text-underline-offset: 2px; }
.frch-vide { padding: 18px 10px 12px; color: var(--f-encre-2); }
.frch-vide p { margin: 0 0 8px; }
.frch-vide b { color: var(--f-encre); font-weight: 600; }
.frch-vide-note { font: 400 14px/1.45 Inter, system-ui, sans-serif; color: var(--f-encre-3); }
.frch-sugg { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0; font: 500 14px/1 Inter, system-ui, sans-serif; color: var(--f-encre); background: var(--f-surface-2); border: 1px solid var(--f-filet); border-radius: 14px; padding: 0 14px; cursor: pointer; }
.frch-sugg:hover { border-color: var(--f-encre-3); }
.frch-statut { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.frch-aide { display: none; gap: 16px; padding: 10px 18px 12px; border-top: 1px solid var(--f-filet); font: 400 12px/1.3 Inter, system-ui, sans-serif; color: var(--f-encre-3); }
.frch-aide kbd { margin-right: 4px; }
.frch :focus-visible, .frch-sugg:focus-visible { outline: 2px solid var(--f-encre); outline-offset: 2px; }
.frch-champ input:focus-visible { outline: none; }

/* Les boutons « Demander ou chercher » de la coque (js/fil/coquille.js) : le raccourci s'affiche à droite du libellé, au bureau. */
[data-interface="fil"] [data-fil-recherche] { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 0 12px 0 16px; text-align: left; white-space: nowrap; }
[data-interface="fil"] [data-fil-recherche] kbd { flex: none; font: 500 12px/1 Inter, system-ui, sans-serif; color: var(--f-encre-3); border: 1px solid var(--f-filet); border-radius: 6px; padding: 4px 5px; background: var(--f-surface-2); }

@media (max-width: 899px) {
  /* Téléphone : le lieu du résultat (« Point essentiel · Arrêté du… ») ne prend pas la place du titre et de l'extrait. */
  .frch-item { grid-template-columns: auto minmax(0, 1fr); }
  .frch-ou { display: none; }
}
@media (min-width: 900px) {
  .frch-voile { padding: 12vh 16px 16px; }
  .frch { max-height: min(70vh, 640px); }
  .frch-aide { display: flex; }
}
@keyframes frch-voile-in { from { opacity: 0; } }
@keyframes frch-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .frch-voile, .frch { animation: none; } }
@media print { .frch-voile { display: none !important; } }
