/* ─── Tooltips (inchangé) ─────────────────────────────── */
.lexique-term {
    border-bottom: 2px dotted var(--lexique-tooltip-border-color);
    cursor: pointer;
}
.tooltip {
    position: absolute;
    display: none;
    z-index: 9999999;
    color: var(--lexique-text-color);
    width: 400px;
    max-width: 80%;
    font-size: 14px;
    line-height: 20px;
    background-color: var(--lexique-background-color);
    text-align: left;
    border: 2px solid var(--lexique-border-color);
    padding: 10px;
    border-radius: 4px;
    box-shadow: 4px 4px 3px 1px rgba(0,0,0,.15);
}
.tooltip::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent var(--lexique-border-color) transparent;
    transform: translateX(-50%);
}
.tooltip:first-letter { text-transform: uppercase; }


/* ─── Page lexique ────────────────────────────────────── */
.titre-page-lexique {
    margin: 30px 0;
    text-align: center;
    color: var(--couleur-principale);
}
.page-lexique .image-lexique { text-align: center; }


/* ─── Navigation A-Z ─────────────────────────────────── */
.lexique-nav {
    position: sticky;
    top: 75px; /* offset header sticky */
    z-index: 8;
    background-color: var(--couleur-blanc, #fff);
    padding: 10px 20px;
    box-shadow: none;
    margin-bottom: 2.5rem;
    width: 100%;
}

.lexique-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Annule le ::marker du thème sur les <li> de la navigation */
.lexique-nav-list li::marker {
    content: none;
    font-size: 0;
}

.lexique-nav-lettre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 200ms ease, color 200ms ease;
    color: var(--couleur-texte, #444);
}

a.lexique-nav-lettre:hover,
a.lexique-nav-lettre.active {
    background-color: var(--couleur-principale);
    color: #fff;
}

.lexique-nav-disabled {
    opacity: 0.22;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--couleur-texte, #444);
}

@media screen and (min-width: 768px) {
    .lexique-nav { padding: 12px 4rem; }
    .lexique-nav-lettre { width: 38px; height: 38px; font-size: 14px; }
}


/* ─── Sections par lettre ────────────────────────────── */
.lexique-section-lettre {
    scroll-margin-top: 140px; /* header + nav sticky */
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--couleur-fond, #f5f5f5);
    margin-bottom: 1.5rem;
}
.lexique-section-lettre:last-child { border-bottom: none; }

.lettre-lexique {
    text-transform: uppercase !important;
    color: var(--couleur-principale);
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
}


/* ─── Liste de définitions ───────────────────────────── */
.lexique-dl { margin: 0; }

.lexique-entry {
    display: block;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--couleur-fond, #f5f5f5);
    line-height: 1.55;
}
.lexique-entry:last-child { border-bottom: none; margin-bottom: 0; }

.lexique-dt {
    display: inline;
    font-weight: 700;
    color: var(--couleur-noir, #222);
    font-size: 14px;
}
.lexique-dt::after { content: ' \00a0:\00a0'; }

.lexique-dd {
    display: inline;
    margin: 0;
    padding: 0;
    color: var(--couleur-texte, #444);
    font-size: 14px;
}
