/* The readers' search engine (D-090). A column of results the eye reads down: what it
   is, the title, its dates, the stored text with the words found marked, then what one
   can do. The marks are the page's own highlight; colours and faces are index.html's. */
.moteur { max-width: 780px; margin: 0 auto; padding: 4px 0 48px; }
.moteur-barre { display: grid; gap: 10px; margin: 0 0 14px; }
.moteur-champ { position: relative; display: flex; gap: 8px; align-items: stretch; }
.moteur-q { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid var(--filet-fort); border-radius: 999px;
            background: var(--page); color: var(--encre); font: 400 18px/1 var(--serif); }
.moteur-q:focus { outline: 2px solid transparent; border-color: var(--emeraude); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emeraude) 18%, transparent); }
.moteur-q::placeholder { color: var(--encre-2); font-style: italic; }
.moteur-go { flex: none; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
             background: var(--emeraude); color: var(--sur-accent, #fff); font: 600 15.5px/1 var(--sans); }
.moteur-go:hover { background: var(--emeraude-fonce); }
.moteur-sug { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px 0; list-style: none;
              background: var(--page); border: 1px solid var(--filet-fort); border-radius: 14px; box-shadow: 0 14px 34px -16px rgba(27, 43, 58, .35); }
.moteur-sug li { display: flex; gap: 10px; align-items: baseline; padding: 8px 18px; cursor: pointer; font: 400 16px/1.35 var(--serif); }
.moteur-sug li[aria-selected="true"], .moteur-sug li:hover { background: var(--surligne); }
.moteur-sug-genre { flex: none; font: 600 12px/1 var(--sans); color: var(--emeraude); }
.moteur-reglages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--encre-2); padding: 0 6px; }
.moteur-date { height: 32px; padding: 0 10px; border: 1px solid var(--filet-fort); border-radius: 999px; background: var(--page); color: var(--encre); font: inherit; }
.moteur-onglets { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 0 0 6px; border-bottom: 1px solid var(--filet); }
.moteur-onglet { display: inline-flex; gap: 6px; align-items: baseline; padding: 10px 12px 9px; border: 0; border-bottom: 3px solid transparent;
                 background: none; color: var(--encre-2); cursor: pointer; font: 600 14.5px/1 var(--sans); margin-bottom: -1px; }
.moteur-onglet:hover { color: var(--encre); }
.moteur-onglet[aria-pressed="true"] { color: var(--emeraude); border-bottom-color: var(--emeraude); }
.moteur-etat:focus { outline: none; }
.moteur-onglet .n { font-weight: 400; font-size: 12.5px; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.moteur-etat { min-height: 1.5em; margin: 10px 6px 4px; font-size: 13.5px; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.moteur.cherche .moteur-zone { opacity: .45; transition: opacity .2s; }
.moteur-corr { margin: 4px 6px 14px; font-size: 15px; }
.moteur-mot { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--emeraude);
              text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.moteur-mot:hover { text-decoration-thickness: 2px; }
.moteur-mot:disabled { opacity: .5; cursor: progress; }

.moteur-refs, .moteur-rubrique { margin: 18px 0 0; }
.moteur-refs { padding: 4px 18px 6px; border-left: 3px solid var(--emeraude); background: var(--page); border-radius: 0 12px 12px 0; }
.moteur-refs > h2, .moteur-rubrique-tete h2 { margin: 12px 0 2px; font: 600 13px/1.4 var(--sans); color: var(--encre-2); }
.moteur-rubrique-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 6px; border-bottom: 1px solid var(--filet); }
.moteur-rubrique-tete .moteur-mot { font-size: 13.5px; }
.moteur-liste { list-style: none; margin: 0; padding: 0; }
.moteur-res { padding: 16px 6px 14px; border-bottom: 1px solid var(--filet); animation: moteur-vient .35s var(--sortie) both; }
.moteur-liste > .moteur-res:nth-child(2) { animation-delay: .03s; } .moteur-liste > .moteur-res:nth-child(3) { animation-delay: .06s; }
.moteur-liste > .moteur-res:nth-child(4) { animation-delay: .09s; } .moteur-liste > .moteur-res:nth-child(n+5) { animation-delay: .12s; }
@keyframes moteur-vient { from { opacity: 0; transform: translateY(4px); } }
.moteur-fil { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 3px; font-size: 13px; color: var(--encre-2); }
.moteur-genre { font: 600 11.5px/1.5 var(--sans); color: var(--emeraude); text-transform: none; }
.moteur-titre { margin: 0; font: 600 18.5px/1.3 var(--serif); color: var(--encre); text-wrap: pretty; }
.moteur-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 5px 0 0; font-size: 13.5px; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.moteur-vig { color: var(--emeraude); font-weight: 600; }
.moteur-vig.finie { color: var(--ambre); }
.moteur-local { color: var(--ambre); font-weight: 600; }
.moteur-datee { font-style: italic; }
.moteur-statut { padding: 0 6px; border-radius: 3px; font: 600 12px/1.6 var(--sans); }
.moteur-statut.verifier { color: var(--ambre); background: var(--ambre-fond); border-bottom: 1px dotted var(--ambre); }
.moteur-statut.depasse { color: var(--rouge); background: var(--rouge-fond); border-bottom: 1px dotted var(--rouge); }
.moteur-extrait { margin: 8px 0 0; font: 400 16.5px/1.6 var(--serif); color: var(--encre); overflow-wrap: anywhere; }
.moteur-extrait mark { background: var(--surligne); color: inherit; padding: 0 1px; box-shadow: inset 0 -2px 0 var(--emeraude); border-radius: 1px; }
.moteur-gestes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 9px 0 0; font-size: 14px; }
.moteur-lien { color: var(--emeraude); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.moteur-article { margin: 12px 0 0; padding: 12px 16px; border-left: 2px solid var(--filet-fort); background: var(--page); border-radius: 0 10px 10px 0;
                  animation: moteur-vient .3s var(--sortie) both; }
.moteur-article .moteur-vig { margin: 0 0 8px; font-size: 13.5px; }
.moteur-alinea { margin: 0 0 8px; font: 400 16.5px/1.6 var(--serif); }
.moteur-vide { margin: 26px 6px; font-size: 15px; color: var(--encre-2); }
.moteur-vide ul { margin: 8px 0 0; padding-left: 1.2em; }
.moteur-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 8px; }
.moteur-page { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--filet); border-radius: 999px; background: var(--page);
               color: var(--encre); cursor: pointer; font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.moteur-page:hover { border-color: var(--emeraude); color: var(--emeraude); }
.moteur-page.courante { background: var(--emeraude); border-color: var(--emeraude); color: var(--sur-accent, #fff); cursor: default; }
.moteur-mention { margin: 26px 6px 0; font: italic 400 14.5px/1.5 var(--serif); color: var(--encre-2); }

/* in the rail */
.vers-moteur { margin: -8px 14px 18px; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 0;
               border-radius: 999px; background: none; color: var(--sur-marine); cursor: pointer; font: 600 15px/1 var(--sans); }
.vers-moteur:hover { background: var(--marine-2); }
.vers-moteur[aria-current="true"] { background: var(--marine-2); color: #fff; box-shadow: inset 3px 0 0 var(--menthe); }

@media (max-width: 720px) {
  .moteur-q, .moteur-go { height: 48px; }
  .moteur-q { font-size: 16px; }
  .moteur-go { padding: 0 16px; }
  .moteur-titre { font-size: 17px; }
  .moteur-extrait { font-size: 16px; }
  .moteur-gestes { gap: 10px 16px; }
  .moteur-gestes > * { min-height: 32px; display: inline-flex; align-items: center; }
  .moteur-date { font-size: 16px; height: 44px; }
  .moteur-onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .moteur-onglets::-webkit-scrollbar { display: none; }
  .moteur-onglet { flex: none; }
}
@media (forced-colors: active) {
  .moteur-sug li[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .moteur-res, .moteur-article { animation: none; }
  .moteur.cherche .moteur-zone { transition: none; }
}
