/* Onglets « Recherche classique » / « Agent » : sur l'accueil, sous la barre de recherche,
   et en haut d'Autopilote (partials/_search_tabs.html). */
.search-tabs { display: flex; justify-content: center; margin: 14px 0 4px; }
.search-tabs__pill { display: inline-flex; padding: 3px; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff; }
.search-tabs__pill a { position: relative; isolation: isolate; 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; white-space: nowrap; transition: background-color .2s, color .3s; }
.search-tabs__pill a:hover { color: #0a0a0a; }
.search-tabs__pill a[aria-current="page"] { color: #fff; }
/* Le curseur sombre de l'onglet actif : un élément à part, pour glisser d'un onglet à l'autre. */
.search-tabs__thumb { position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: #0a0a0a; view-transition-name: search-tabs-thumb; }
.search-tabs__pill a:focus-visible { outline: 1.5px solid #0a0a0a; outline-offset: 2px; }
/* Étoiles IA, de la couleur du texte (blanches sur l'onglet actif). */
.search-tabs__sparkles { flex: none; width: 14px; height: 14px; }
@media (max-width: 767px) {
  .search-tabs__pill a { padding: 0 12px; font-size: .75rem; }
}

/* Passage entre « Recherche classique » et « Agent » : le curseur glisse, la pilule et la barre
   du site restent en place, le reste (ciel et prairie compris) se fond enchaîné, en 380 ms. */
@media (prefers-reduced-motion: no-preference) {
  .search-tabs__pill { view-transition-name: search-tabs; }
  body:has(.search-tabs) #site-header { view-transition-name: site-header; }
  ::view-transition-group(*) { animation-duration: 380ms; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  ::view-transition-old(root) { animation: 380ms cubic-bezier(.4, 0, .2, 1) both search-tabs-out; }
  ::view-transition-new(root) { animation: 380ms cubic-bezier(.4, 0, .2, 1) both search-tabs-in; }
  ::view-transition-old(search-tabs), ::view-transition-new(search-tabs) { animation: none; mix-blend-mode: normal; }
  ::view-transition-old(search-tabs) { display: none; }
}
@keyframes search-tabs-out { to { opacity: 0; } }
@keyframes search-tabs-in { from { opacity: 0; } }
