/* Recherche universelle (décision 0018) : champ de l'en-tête et liste de résultats. */
.recherche { position: relative; display: flex; align-items: center; flex: 1 1 16rem; max-width: 30rem;
  margin: 0; border: 1px solid var(--ligne); border-radius: 10px; background: var(--fond); }
.recherche:focus-within { border-color: var(--or-vif); }
.recherche-etiquette { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.recherche input { flex: 1; min-width: 0; min-height: 40px; padding: .35rem .7rem; border: 0; background: none;
  color: var(--texte); font: inherit; font-size: .9rem; outline: none; }
.recherche button { min-width: 40px; min-height: 40px; border: 0; background: none; color: var(--discret);
  font-size: 1.15rem; cursor: pointer; }
.recherche-raccourci { margin-inline-end: .15rem; padding: 0 .38rem; border: 1px solid var(--ligne); border-radius: 5px;
  font: 600 .72rem/1.45 var(--corps); color: var(--discret); }
.recherche:focus-within .recherche-raccourci { display: none; }
@media (hover: none) { .recherche-raccourci { display: none; } }
.recherche-suggestions { position: absolute; z-index: 20; top: calc(100% + 4px); inset-inline: 0;
  max-height: min(70vh, 32rem); overflow: auto; border: 1px solid var(--ligne); border-radius: 12px;
  background: var(--carte); box-shadow: 0 12px 28px rgba(0, 0, 0, .14); }
.recherche-suggestions:empty { display: none; }
.recherche-liste { padding: .35rem 0; }
.recherche-groupe h3 { margin: .45rem .8rem .15rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--or); }
[dir="rtl"] .recherche-groupe h3 { letter-spacing: 0; font-size: .8rem; }
.recherche-groupe ul { list-style: none; margin: 0; padding: 0; }
.recherche-groupe a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; min-height: 40px;
  padding: .4rem .8rem; color: var(--texte); text-decoration: none; }
.recherche-groupe a:hover, .recherche-groupe a:focus { background: var(--doux); outline: none; }
.recherche-nom { font-weight: 600; }
.recherche-ar { font-size: .9rem; color: var(--discret); }
.recherche-detail { font-size: .8rem; color: var(--discret); margin-inline-start: auto; }
.recherche-statut { color: var(--alerte); font-weight: 600; }
.recherche-tout, .recherche-rien { margin: .3rem .8rem .5rem; font-size: .85rem; }
.recherche-tout a { color: var(--or); }
.page-recherche { width: 100%; margin-block: 1.25rem; }
.recherche-page { border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); }
.recherche-simple { padding-inline-start: 1.2rem; }
.recherche-simple li { margin: .35rem 0; }
/* Téléphone : le champ prend sa propre ligne sous la marque. */
@media (max-width: 48rem) {
  .recherche { order: 3; flex-basis: 100%; max-width: none; }
}
.recherche-convertir { margin: 0 0 .4rem; }
.recherche-convertir a { display: flex; gap: .4rem; align-items: center; min-height: 40px; padding: .3rem .7rem; border-radius: 8px; background: var(--doux); color: var(--or); font-weight: 600; text-decoration: none; }
/* Menu groupé et page filtrable (décision 0142, maquette validée le 23/11/2026). */
.recherche-ctrlk { white-space: nowrap; }
.r-menu { padding: .3rem 0 0; }
.r-menu .recherche-convertir { margin: .2rem .5rem .35rem; }
.r-menu .recherche-rien { margin: .5rem .9rem .7rem; }
.r-groupe h3, .r-carte h2 { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  margin: .55rem .9rem .15rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.r-carte h2 { margin: .45rem .9rem .3rem; font-size: .78rem; }
[dir="rtl"] .r-groupe h3, [dir="rtl"] .r-carte h2 { letter-spacing: 0; font-size: .82rem; }
.r-compte, .r-plus { font: 600 .74rem var(--corps); letter-spacing: 0; text-transform: none; color: var(--discret); }
.r-plus { color: var(--or); text-decoration: none; }
.r-groupe ul, .r-carte ul { list-style: none; margin: 0; padding: 0; }
.r-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "nom ar date";
  align-items: baseline; column-gap: .9rem; min-height: 40px; padding: .35rem .9rem; color: var(--texte);
  text-decoration: none; border-inline-start: 3px solid transparent; }
.r-ligne:hover, .r-ligne:focus, .r-ligne.actif { background: var(--doux); border-inline-start-color: var(--or-vif); outline: none; }
.r-nom { grid-area: nom; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-ar { grid-area: ar; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .92rem; color: var(--discret); }
.r-date { grid-area: date; min-width: 7rem; text-align: end; font-size: .8rem; color: var(--discret); }
.r-badge { grid-area: nom; justify-self: end; padding: 0 .45rem; border-radius: 999px; background: var(--or-vif);
  color: #0f172a; font-size: .7rem; font-weight: 700; }
.r-raccourci { display: flex; gap: .4rem; border-radius: 8px; }
.r-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem;
  margin-top: .4rem; padding: .55rem .9rem; border-top: 1px solid var(--ligne); font-size: .84rem; }
.r-pied a { color: var(--or); font-weight: 600; text-decoration: none; }
.r-touches { color: var(--discret); font-size: .76rem; }
.r-touches kbd { margin: 0 .1rem; padding: 0 .3rem; border: 1px solid var(--ligne); border-radius: 4px; font: 600 .7rem/1.4 var(--corps); }
@media (hover: none) { .r-touches, .recherche-ctrlk { display: none; } }
.r-resume { margin-top: -.4rem; }
.r-onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--ligne); }
.r-onglets a { display: inline-flex; gap: .4rem; align-items: center; min-height: 36px; padding: .1rem .8rem;
  border: 1px solid var(--ligne); border-radius: 999px; color: var(--texte); text-decoration: none; font-size: .88rem; }
.r-onglets a b { font-weight: 600; color: var(--discret); }
.r-onglets a.actif { background: var(--encre); color: var(--encre-texte); border-color: var(--encre); }
.r-onglets a.actif b { color: inherit; }
.r-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 1rem; align-items: start; }
.r-grille-seule { grid-template-columns: minmax(0, 1fr); }
.r-carte { padding: .3rem 0 .5rem; border: 1px solid var(--ligne); border-radius: 12px; background: var(--carte); }
.r-suite { display: block; margin: .3rem .9rem 0; color: var(--or); font-size: .84rem; font-weight: 600; text-decoration: none; }
/* Téléphone : nom et date sur une ligne, nom arabe dessous. */
@media (max-width: 48rem) {
  .r-ligne { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom date" "ar ar"; }
  .r-ar { max-width: none; justify-self: start; }
  .r-date { min-width: 0; }
}
