/* Glossaire : infobulles des termes dans les guides (assets/js/glossary.js) et page Glossaire (scripts/blocks/glossary.mjs). */
.gl-t { text-decoration: underline dotted; text-decoration-color: var(--copper-ink); text-decoration-thickness: 1.5px; text-underline-offset: .28em; }
.js-gl .gl-t { cursor: help; border-radius: 3px; }
.gl-t:hover, .gl-t[aria-expanded="true"] { text-decoration-style: solid; }
.gl-t:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 2px; }
.gl-pop { position: absolute; z-index: 60; left: 0; top: 0; width: max-content; max-width: min(23rem, calc(100vw - 1.5rem)); padding: .85rem 1rem .9rem; border-radius: 14px;
  background: #0b0d22; color: #eceaff; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(201, 198, 244, .18); font-size: .95rem; line-height: 1.55; text-align: start; }
.gl-pop[hidden] { display: none; }
.gl-pop b { display: block; margin-bottom: .25rem; color: #e0995c; font-weight: 700; }
.gl-pop small { display: block; margin-top: .45rem; color: #b3b0d6; font-size: .8rem; }
.gl-pop::before { content: ""; position: absolute; left: var(--gl-x, 1.2rem); margin-left: -5px; width: 10px; height: 10px; background: #0b0d22; transform: rotate(45deg); top: -5px; box-shadow: -1px -1px 0 rgba(201, 198, 244, .18); }
.gl-pop.up::before { top: auto; bottom: -5px; box-shadow: 1px 1px 0 rgba(201, 198, 244, .18); }

/* Page Glossaire */
.gl-page .wrap { max-width: 980px; }
.gl-note { color: var(--muted); max-width: 62ch; margin: 0 0 1.5rem; }
.gl-tools { margin-bottom: 1.2rem; }
.gl-tools label { display: block; font-weight: 650; margin-bottom: .4rem; }
.gl-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.gl-row input { flex: 1 1 16rem; min-width: 0; min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--input-line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.gl-row input:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 1px; }
.gl-reset { min-height: 48px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.gl-count { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; min-height: 1.4em; }
.gl-az { position: sticky; top: 76px; z-index: 5; margin: 0 0 1.5rem; padding: .5rem 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.gl-az ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.gl-az a { display: grid; place-items: center; min-width: 2.4rem; min-height: 2.4rem; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-family: var(--mono); }
[dir="rtl"] .gl-az a { font-family: var(--sans); }
.gl-az a:hover { border-color: var(--copper-ink); color: var(--copper-ink); }
.gl-az a.off { opacity: .35; pointer-events: none; }
.gl-letter { scroll-margin-top: 150px; }
.gl-letter h2 { margin: 2rem 0 .4rem; font-family: var(--mono); font-size: 1.6rem; color: var(--copper-ink); border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
[dir="rtl"] .gl-letter h2 { font-family: var(--sans); }
.gl-letter dl { margin: 0; }
.gl-entry { padding: 1.1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.gl-entry:target { background: linear-gradient(90deg, rgba(200, 123, 66, .12), transparent); border-radius: 10px; padding-inline: .8rem; }
.gl-entry dt { font-size: 1.1rem; font-weight: 700; }
.gl-entry dfn { font-style: normal; }
.gl-other { display: inline-block; margin-inline-start: .5rem; font-weight: 500; font-size: .95rem; color: var(--muted); }
.gl-entry dd { margin: .35rem 0 0; }
.gl-entry dd p { margin: 0 0 .4rem; max-width: 70ch; }
.gl-src { font-size: .92rem; color: var(--muted); }
.gl-src a { color: var(--g-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.gl-see { display: block; margin-top: .2rem; }
.gl-none { padding: 1rem 1.2rem; border-inline-start: 3px solid var(--copper); background: var(--surface); border-radius: 10px; }
@media (max-width: 700px) { .gl-az { position: static; } .gl-letter, .gl-entry { scroll-margin-top: 90px; } }
