/* MkDigital v3 — gloss.css : le mot cliquable + la fiche-terme (V4, 15/08/2026). DA 6A. */
.gl {
  color: var(--c2); font-weight: 700; cursor: pointer;
  text-decoration: underline dotted; text-decoration-color: rgba(0,208,255,.55);
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
  border-radius: 4px; transition: background .2s, color .2s;
}
.gl::after {
  content: "?"; display: inline-block; margin-left: 3px; font-size: .68em; font-weight: 800;
  vertical-align: super; line-height: 1; color: var(--c2); opacity: .8; text-decoration: none;
}
.gl:hover, .gl:focus-visible { background: rgba(0,208,255,.12); outline: none; }
.gl.gl-missing { color: var(--bad); text-decoration-color: var(--bad); }
.gl.gl-missing::after { content: "?!"; color: var(--bad); }

.glossbd {
  position: fixed; inset: 0; z-index: 9000; display: none;
  background: rgba(0,0,0,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.glossbd[data-open="1"] { display: flex; }
.glosscard {
  width: min(440px, 100%); max-height: 70vh; overflow: auto;
  background: var(--card2); color: var(--txt);
  border: 1.5px solid rgba(0,208,255,.45); border-radius: 18px;
  padding: 14px 18px 18px; box-shadow: 0 20px 70px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: glossin .22s ease-out both;
}
@keyframes glossin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .glosscard { animation: none; } }

.glosstop { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.glossback, .glossclose {
  background: transparent; border: 1px solid rgba(255,255,255,.18); color: var(--txt);
  border-radius: 99px; padding: 4px 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.glossback:hover, .glossclose:hover { border-color: var(--c2); color: var(--c2); }
.glossclose { margin-left: auto; font-size: 20px; line-height: 1; padding: 2px 11px; }
.glossdepth { color: var(--mut); font-size: 13px; }
.glosseye { color: var(--mut); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.glossterm {
  font-size: 22px; font-weight: 900; line-height: 1.15; margin: 2px 0 6px;
  background: linear-gradient(90deg, var(--c3t), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* la définition en 1 ligne, juste sous le mot : ce qu'il dirait à l'oral (R2 §5) */
.glossdef { font-size: 15px; font-weight: 700; line-height: 1.4; color: #dfe6ff; margin: 0 0 4px; }
.glosslab { color: var(--c2); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 10px 0 3px; }
.glossbriques { list-style: none; padding: 0; margin: 0; }
.glossbriques li {
  position: relative; padding: 5px 9px 5px 26px; margin: 3px 0; font-size: 14.5px; font-weight: 600; line-height: 1.3;
  background: rgba(31,91,255,.12); border-left: 3px solid var(--c1t); border-radius: 0 10px 10px 0;
}
.glossbriques li::before { content: "▸"; position: absolute; left: 10px; top: 5px; color: var(--c1t); font-weight: 900; }
.glosstxt { font-size: 14px; line-height: 1.4; color: var(--txt); }
.glossex .glosstxt { color: #dfe6ff; font-style: italic; }
.glossschema .glosstxt { color: var(--c4); font-weight: 700; }
.glosschips { display: flex; flex-wrap: wrap; gap: 6px; }
.glosschip {
  display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 14px; font-weight: 700;
  color: var(--c2); border: 1px solid rgba(0,208,255,.45); text-decoration: none; background: rgba(0,208,255,.08);
}
.glosschip:hover { background: rgba(0,208,255,.2); }
.glosscap { color: var(--mut); font-size: 13px; margin-top: 12px; }
