/* WikiLeXiK — feuille de style (sobre, texte d'abord, sans dépendance) */
:root {
  --fond: #fff; --fond2: #f6f6f3; --texte: #1b1b1b; --texte2: #5a5a5a; --accent: #2a5ea8; --accent2: #1d4580;
  --bord: #dcdcd8; --bord2: #ececea; --puce: #e8eff8; --ipa: #6b4c9a; --domaine: #3c6e47; --domaine-fond: #e6f1e8;
  --registre: #7a5c00; --registre-fond: #fbf1d2;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Code", "Source Code Pro", monospace; --largeur: 58rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--texte); background: var(--fond); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent2); }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 1rem; width: 100%; }
main.conteneur { flex: 1; padding-top: 1.25rem; padding-bottom: 3rem; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; line-height: 1.15; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .6rem; }
h2 small { font-weight: normal; color: var(--texte2); font-size: .9rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
small { color: var(--texte2); }
code { font-family: var(--mono); font-size: .9em; background: var(--fond2); padding: 0 .25em; }

/* en-tête */
.entete { background: var(--fond2); border-bottom: 1px solid var(--bord); padding: .6rem 0; }
.entete .conteneur { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo img { height: 28px; display: block; }
.recherche-entete { display: flex; flex: 1; min-width: 12rem; }
.recherche-entete input, .recherche-grande input { flex: 1; padding: .45rem .7rem; border: 1px solid var(--bord); border-radius: 4px 0 0 4px; font: inherit; }
.recherche-entete button, .recherche-grande button { padding: .45rem .9rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 0 4px 4px 0; font: inherit; cursor: pointer; }
.recherche-grande select { border: 1px solid var(--bord); border-left: 0; font: inherit; padding: 0 .4rem; }
.nav { display: flex; gap: 1rem; font-size: .9rem; align-items: center; }
.nav a { color: var(--texte2); }
.nav .lectura img { height: 16px; vertical-align: -3px; }

/* accueil */
.accueil { text-align: center; padding: 2.5rem 0; }
.accueil h1 { margin-bottom: .5rem; }
.sous-titre { color: var(--texte2); max-width: 36rem; margin: 0 auto 1.5rem; }
.recherche-grande { display: flex; max-width: 34rem; margin: 0 auto 1.5rem; }
.recherche-grande input { font-size: 1.1rem; }
.chiffres { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; color: var(--texte2); font-size: .9rem; }
.chiffres strong { color: var(--texte); display: block; font-size: 1.2rem; }
.exemples { margin-top: 1.5rem; color: var(--texte2); }

/* page de mot */
.mot-entete { border-bottom: 1px solid var(--bord2); padding-bottom: .75rem; margin-bottom: .75rem; }
.lemmes-resume { list-style: none; display: flex; flex-direction: column; gap: .2rem; margin-top: .4rem; }
.lemmes-resume li, .lemmes-resume p { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.upos { background: var(--puce); color: var(--accent); padding: .05rem .5rem; border-radius: 3px; font-size: .9rem; }
.trait { color: var(--texte2); font-size: .9rem; }
.phone, .ipa { font-family: var(--serif); color: var(--ipa); }
.freq { color: var(--texte2); font-size: .8rem; }
.description { color: var(--texte2); }
.onglets { display: flex; gap: .25rem; border-bottom: 2px solid var(--bord); margin-bottom: 1rem; }
.onglet { padding: .5rem 1rem; color: var(--texte2); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.onglet:hover { text-decoration: none; color: var(--accent); }
.onglet.actif { color: var(--texte); border-color: var(--accent); font-weight: 600; }
.onglet .n { color: var(--texte2); font-weight: normal; font-size: .85rem; margin-left: .3rem; }
.panneau { display: none; }
.panneau.actif { display: block; }
.vide { color: var(--texte2); font-style: italic; }
.source { color: var(--texte2); font-size: .8rem; margin-top: 1rem; }
.bouton { display: inline-block; border: 1px solid var(--accent); padding: .25rem .7rem; border-radius: 4px; font-size: .9rem; }

/* formes */
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .3rem .5rem; border-bottom: 1px solid var(--bord2); vertical-align: top; }
th { font-weight: 600; color: var(--texte2); font-size: .85rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.ortho { font-weight: 600; }
.analyse { display: inline-block; margin-right: .6rem; color: var(--texte2); font-size: .9rem; }
.homophones { margin-top: .75rem; font-size: .95rem; }

/* lexèmes */
.lexeme { margin-bottom: 2rem; }
.lexeme h2 { font-family: var(--serif); font-size: 1.35rem; }
.etymologie { color: var(--texte2); margin-bottom: .6rem; font-size: .95rem; }
ol.sens { padding-left: 1.6rem; }
ol.sens > li { margin-bottom: .5rem; }
.parente { color: var(--texte2); }
.domaine, .registre { display: inline-block; font-size: .78rem; padding: 0 .4rem; border-radius: 3px; margin-right: .25rem; vertical-align: 1px; }
.domaine { background: var(--domaine-fond); color: var(--domaine); }
.registre { background: var(--registre-fond); color: var(--registre); }
.exemples { list-style: none; margin: .3rem 0 0; padding-left: .75rem; border-left: 2px solid var(--bord2); font-size: .92rem; color: var(--texte2); }
.exemples li { margin-bottom: .2rem; }
.ref { font-size: .82rem; }
details summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
dl.relations, .traductions dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; margin-top: .8rem; font-size: .95rem; }
dl.relations dt, .traductions dt { color: var(--texte2); }
.traductions { margin-top: .8rem; }
.sens-cible { color: var(--texte2); font-size: .85rem; }
.proverbes ul { padding-left: 1.2rem; }

/* entités */
ul.entites, ol.entites { list-style: none; padding: 0; }
ol.entites { list-style: decimal; padding-left: 2rem; }
.entites li { padding: .3rem 0; border-bottom: 1px solid var(--bord2); }
.entites .type { background: var(--puce); color: var(--accent); font-size: .78rem; padding: 0 .4rem; border-radius: 3px; margin-left: .3rem; }
.entites li.homonyme strong { font-size: 1.05rem; }
.filtres a { display: inline-block; margin: 0 .5rem .4rem 0; font-size: .9rem; color: var(--texte2); }
.filtres a.actif { color: var(--texte); font-weight: 600; }
.pagination { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; color: var(--texte2); }
.entite-corps { display: flow-root; }
.illustration { float: right; margin: 0 0 1rem 1.5rem; max-width: 320px; }
.illustration img { max-width: 100%; height: auto; display: block; border: 1px solid var(--bord2); }
.illustration figcaption { font-size: .75rem; color: var(--texte2); text-align: right; }
.extrait { margin-bottom: 1rem; }
dl.proprietes { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; font-size: .92rem; margin-bottom: 1rem; }
dl.proprietes dt { color: var(--texte2); }
.categories, .mots-lies, .liens-ext, .alias { margin-top: .6rem; font-size: .95rem; }
.fil { font-size: .85rem; color: var(--texte2); }
.sous-categories { margin-bottom: 1rem; }
.racines { list-style: none; columns: 2; margin-bottom: 1rem; }
.nuage { line-height: 1.9; }

/* recherche, rimes, conjugaison */
ul.resultats { list-style: none; }
ul.resultats li { padding: .2rem 0; }
ul.colonnes { columns: 3; }
.grille-conjugaison { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1rem 0; }
table.temps caption { text-align: left; font-weight: 600; padding: .3rem 0; }
table.temps th { width: 5rem; font-weight: normal; }
.doc p, .doc ul { margin-bottom: .8rem; }
.doc ul { padding-left: 1.4rem; }

/* pied */
.pied { background: var(--fond2); border-top: 1px solid var(--bord); padding: 1rem 0; font-size: .82rem; color: var(--texte2); }

@media (max-width: 40rem) {
  h1 { font-size: 1.7rem; }
  .illustration { float: none; margin: 0 0 1rem; }
  ul.colonnes { columns: 2; }
  .racines { columns: 1; }
  dl.relations, .traductions dl, dl.proprietes { grid-template-columns: 1fr; }
}
.variantes { color: var(--texte2); }
.trad[title] { border-bottom: 1px dotted var(--bord); cursor: help; }
.nature { margin-bottom: .6rem; font-size: .95rem; }
