/* Page Lexique (lexique.html) */
.lex-intro { line-height: 1.7; font-size: 16px; margin: 0 0 26px; }
.lex-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.lex-input {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: 'EB Garamond', serif;
  font-size: 16.5px;
  padding: 10px 14px;
  border-radius: 3px;
  outline: none;
}
.lex-input:focus { border-color: var(--accent); }
#lex-search { flex: 1 1 260px; font-style: italic; }
#lex-search::placeholder { color: var(--muted); }
#lex-philo { flex: 0 1 240px; cursor: pointer; }
.lex-letters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.lex-letters a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 18px;
  color: var(--accent); text-decoration: none;
}
.lex-letters a:hover { text-decoration: underline; }
.lex-letters a.off { color: var(--muted); opacity: 0.4; pointer-events: none; }
.lex-count { font-size: 14px; font-style: italic; color: var(--muted); margin: 0 0 8px; }
.lex-letter {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 28px;
  color: var(--accent);
  margin: 30px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.lex-entry { padding: 18px 0 16px; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.lex-entry:target { background: rgba(var(--accent-rgb), 0.07); box-shadow: -12px 0 0 rgba(var(--accent-rgb), 0.07), 12px 0 0 rgba(var(--accent-rgb), 0.07); }
.lex-term {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 23px; letter-spacing: 0.02em;
  margin: 0 0 6px;
}
.lex-variant { font-family: 'EB Garamond', serif; font-weight: 400; font-style: italic; font-size: 17px; color: var(--muted); letter-spacing: 0; }
.lex-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; }
.lex-who { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.lex-seal {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; color: var(--who-color);
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 9.5px;
}
.lex-def { font-size: 17px; line-height: 1.68; margin: 0 0 8px; max-width: 860px; }
.lex-see { font-size: 14.5px; font-style: italic; color: var(--muted); margin: 0; }
.lex-empty { text-align: center; color: var(--muted); font-style: italic; font-size: 16.5px; padding: 30px 0; }

@media (max-width: 640px) {
  .lex-term { font-size: 21px; }
  .lex-def { font-size: 16px; }
  #lex-philo { flex: 1 1 100%; }
}

/* Ecritures sans italique (chinois, japonais, hindi) */
:lang(zh) #lex-search, :lang(ja) #lex-search, :lang(hi) #lex-search,
:lang(zh) .lex-variant, :lang(ja) .lex-variant, :lang(hi) .lex-variant,
:lang(zh) .lex-see, :lang(ja) .lex-see, :lang(hi) .lex-see,
:lang(zh) .lex-count, :lang(ja) .lex-count, :lang(hi) .lex-count { font-style: normal; }
:lang(zh) .lex-def, :lang(ja) .lex-def { line-height: 1.85; }
