.glossaire {
    padding: 60px 0 100px;
}

.glossaire .wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Nav alphabet === */
.glossaire-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 22px;
    margin: 0 0 80px;
    padding: 0;
}

.glossaire-nav__letter {
    font-family: "Monteserrat", "Roboto Slab", serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: rgba(90, 145, 67, 0.35);
    text-transform: lowercase;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
    position: relative;
    padding: 2px 4px;
}

.glossaire-nav__letter:hover,
.glossaire-nav__letter:focus-visible {
    color: var(--c-orange-500, #5A9143);
    outline: none;
}

.glossaire-nav__letter--active {
    color: var(--c-orange-900, #085D2D);
}

/* Petits séparateurs verticaux entre les lettres */
.glossaire-nav__letter + .glossaire-nav__letter::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(90, 145, 67, 0.25);
}

/* === Sections === */
.glossaire-sections {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.glossaire-section {
    scroll-margin-top: 120px;
}

.glossaire-section__letter {
    font-family: "Monteserrat", "Roboto Slab", serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--c-orange-500, #5A9143);
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(90, 145, 67, 0.45);
    text-transform: uppercase;
    letter-spacing: 0;
}

.glossaire-section__dots {
    font-weight: 400;
}

.glossaire-section__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.glossaire-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 0;
    padding: 4px 0;
}

.glossaire-entry__term {
    color: var(--c-noir-500, #2b2b2b);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    flex: 0 0 auto;
}

.glossaire-entry__dash {
    color: var(--c-noir-500, #2b2b2b);
    font-weight: 400;
}

.glossaire-entry__definition {
    color: var(--c-noir-500, #2b2b2b);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    flex: 1 1 0;
    min-width: 240px;
}

.glossaire-entry__definition p {
    margin: 0;
}

.glossaire-entry__definition p + p {
    margin-top: 6px;
}

.glossaire-entry__definition a {
    color: var(--c-orange-500, #5A9143);
    text-decoration: underline;
}

/* Désactive la puce-feuille globale appliquée aux listes du main */
body:not(.elementor-editor-active) main .glossaire-section__list li::before,
body:not(.elementor-editor-active) main .glossaire-section__list dt::before,
body:not(.elementor-editor-active) main .glossaire-section__list dd::before {
    content: none;
    background-image: none;
}

@media (max-width: 640px) {
    .glossaire {
        padding: 40px 0 60px;
    }

    .glossaire-nav {
        gap: 12px 14px;
        margin-bottom: 50px;
    }

    .glossaire-nav__letter {
        font-size: 20px;
    }

    .glossaire-nav__letter + .glossaire-nav__letter::before {
        left: -8px;
        height: 12px;
    }

    .glossaire-sections {
        gap: 40px;
    }

    .glossaire-section__letter {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .glossaire-entry__definition {
        min-width: 100%;
    }
}

/* === Nav en mode fixe (bas d'écran) === */
.glossaire-nav--fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    margin: 0;
    padding: 14px 20px;
    gap: 12px 18px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(90, 145, 67, 0.25);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
    max-height: 40vh;
    overflow-y: auto;
}

/* Placeholder qui réserve la hauteur quand la nav passe en fixed */
.glossaire-nav-placeholder {
    display: none;
}

.glossaire-nav-placeholder--active {
    display: block;
}

@media (max-width: 640px) {
    .glossaire-nav--fixed {
        padding: 10px 14px;
        gap: 10px 14px;
    }
}

.glossaire-cta {
    display: flex;
    justify-content: center;
    margin: 4rem 0 0 0;
}

.glossaire-cta__link {
    padding: 1rem 3rem;
    color: #FFFFFF;
    background-color: var(--c-orange-500);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--c-orange-500);
    border-radius: 30px;
    transition: color .2s ease-in-out, background-color .2s ease-in-out;
}

.glossaire-cta__link:hover,
.glossaire-cta__link:focus {
    color: var(--c-orange-500);
    background-color: #FFFFFF;
}
