.recherche { max-width: 760px; margin: 8px auto 40px; }
.recherche-champ { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--gris-ligne); border-radius: 999px; box-shadow: var(--ombre); padding: 0 14px 0 52px; transition: border-color .15s, box-shadow .15s; }
.recherche-champ:focus-within { border-color: var(--action); box-shadow: 0 0 0 4px var(--action-doux), var(--ombre); }
.recherche-champ svg { position: absolute; left: 20px; width: 20px; height: 20px; fill: none; stroke: var(--gris-texte); stroke-width: 2; stroke-linecap: round; }
.recherche-champ input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--encre); padding: 17px 0; }
.recherche-champ input::-webkit-search-cancel-button { display: none; }
.recherche-champ input:focus, .recherche-champ input:focus-visible { outline: 0; box-shadow: none; border: 0; }
.recherche-champ kbd { font: 600 .8rem var(--police); color: var(--gris-texte); border: 1px solid var(--gris-ligne); border-radius: 6px; padding: 2px 8px; }
.recherche-champ input:not(:placeholder-shown) ~ kbd { display: none; }
.recherche-champ .effacer { border: 0; background: var(--gris-fond); color: var(--gris-texte); width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.recherche-champ .effacer:hover { color: var(--encre); }
.recherche-etat { text-align: center; color: var(--gris-texte); font-size: .95rem; min-height: 1.4em; margin: 18px 0 10px; }
.resultats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.resultat a { display: block; background: #fff; border: 1px solid var(--gris-ligne); border-radius: var(--r-m); padding: 18px 22px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.resultat a:hover, .resultat a.actif, .resultat a:focus-visible { border-color: var(--action); transform: translateY(-1px); outline: 0; }
.res-theme { display: block; font-size: .82rem; font-weight: 600; color: var(--action); margin-bottom: 4px; }
.res-titre { display: block; font-family: var(--police-titre); font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: var(--encre); }
.res-extrait { display: block; color: var(--gris-texte); font-size: .95rem; line-height: 1.5; margin-top: 6px; }
.resultats mark { background: #fff3b0; color: inherit; border-radius: 3px; padding: 0 1px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 28px; }
.puce { font: inherit; font-size: .9rem; background: #fff; color: var(--encre); border: 1px solid var(--gris-ligne); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.puce span { color: var(--gris-texte); margin-left: 2px; }
.puce[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.puce[aria-pressed="true"] span { color: rgba(255,255,255,.7); }
.carte-guide[hidden] { display: none; }
.recherche-mini { display: flex; gap: 10px; margin-top: 24px; }
.recherche-mini input { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--gris-ligne); border-radius: 999px; padding: 12px 18px; }
.recherche-mini input:focus { outline: 0; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-doux); }
@media (max-width: 600px) {
  .recherche-champ { padding-left: 46px; }
  .recherche-champ svg { left: 17px; }
  .recherche-champ input { font-size: 1rem; padding: 15px 0; }
  .recherche-champ kbd { display: none; }
  .resultat a { padding: 16px 18px; }
  .recherche-mini { flex-direction: column; }
}
.carte-guide { --c: var(--action); border-top: 4px solid var(--c); }
.carte-guide[data-theme="Premiers pas"],
.carte-guide[data-theme="Démarches"],
.carte-guide[data-theme="Transport"] { --c: #0062c4; }
.carte-guide[data-theme="Impôts"],
.carte-guide[data-theme="Télétravail"] { --c: #6b3fd4; }
.carte-guide[data-theme="Assurance maladie"] { --c: #0f7f6f; }
.carte-guide[data-theme="Salaire"],
.carte-guide[data-theme="Banque et change"] { --c: #a85d00; }
.carte-guide[data-theme="Retraite"],
.carte-guide[data-theme="Famille"] { --c: #b0306a; }
.carte-guide[data-theme="Chômage"],
.carte-guide[data-theme="Contrat de travail"] { --c: #b3261e; }
.carte-guide[data-theme="CV suisse"],
.carte-guide[data-theme="Lettre de motivation"],
.carte-guide[data-theme="Candidature"] { --c: #3a4fc0; }
.carte-guide[data-theme="Glossaire"] { --c: #5f6368; }
.carte-guide .theme { color: var(--c); display: flex; align-items: center; gap: 8px; }
.carte-guide .bas .lien-fleche { color: var(--c); }
.carte-guide.epingle { box-shadow: 0 0 0 2px var(--c), var(--ombre); }
.epingle-ico { width: 18px; height: 18px; flex: none; fill: var(--c); }
