/* Recherche par agent sur l'accueil (comptes Autopilote) : une pilule de mode, un champ
   texte au-dessus des offres, puis la barre descend et la page devient Autopilote. */
.agent-search { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
.agent-search__modes-row { display: flex; justify-content: center; margin: 14px 0 4px; }
.agent-search__modes { display: inline-flex; padding: 3px; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff; }
.agent-search__modes button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: .8125rem; font-weight: 500; color: #737373; transition: background-color .2s, color .2s; }
.agent-search__modes button:hover { color: #0a0a0a; }
.agent-search__modes button[aria-checked="true"] { background: #0a0a0a; color: #fff; }
.agent-search__modes button:focus-visible { outline: 1.5px solid #0a0a0a; outline-offset: 2px; }
/* Étoiles IA, de la couleur du texte (blanches sur l'option active). */
.agent-search__sparkles { flex: none; width: 14px; height: 14px; }

.agent-search__form { display: flex; align-items: flex-end; gap: 8px; width: 100%; padding: 6px 6px 6px 16px; border: 1px solid #e5e5e5; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px #0000000a; transition: border-color .15s, box-shadow .15s; }
.agent-search__form:focus-within { border-color: #a3a3a3; box-shadow: 0 2px 10px #0000000d; }
.agent-search__form textarea { flex: 1 1 auto; min-height: 38px; max-height: 160px; padding: 8px 0; border: 0; background: transparent; font-size: 1rem; line-height: 1.5; color: #0a0a0a; resize: none; }
.agent-search__form textarea:focus { outline: none; box-shadow: none; }
.agent-search__form textarea::placeholder { color: #a3a3a3; }
.agent-search__form button { display: flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 2px; border-radius: 9px; background: #0a0a0a; color: #fff; transition: opacity .15s, transform .15s; }
.agent-search__form button:hover { opacity: .85; }
.agent-search__form button:active { transform: scale(.94); }
.agent-search__form button svg { width: 16px; height: 16px; }

/* Mode agent : ni barre de recherche classique ni filtres rapides. */
.offer-search-hero[data-search-mode="agent"] #search-form,
.offer-search-hero[data-search-mode="agent"] .offer-quick-filters { display: none; }
.offer-search-hero[data-search-mode="classic"] .agent-search { display: none; }

/* Départ vers Autopilote : la page s'efface, la barre glisse en bas de l'écran. */
.agent-search-leaving main > *:not(.agent-search__ghost) { opacity: 0; transition: opacity .3s ease; }
.agent-search__ghost { position: fixed; z-index: 70; margin: 0; }
/* Même rendu que la bulle de question d'Autopilote, qui prend le relais à l'arrivée. */
.agent-search__bubble { position: fixed; z-index: 71; margin: 0; padding: 8px 14px; border-radius: 12px; font-size: .9375rem; line-height: 1.65; color: #0a0a0a; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .agent-search { margin-top: 12px; }
  .agent-search__modes button { padding: 0 10px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-search-leaving main > * { transition: none; }
}

/* Exemples de demandes : repère Tab discret. */
.prompt-tab { flex: none; align-self: center; padding: 1px 6px; border: 1px solid #e5e5e5; border-radius: 5px; font-family: inherit; font-size: .6875rem; line-height: 1.5; color: #a3a3a3; }
.prompt-tab[hidden] { display: none; }
