.hug-glossary{
    --primary: #00b0af;
    --body-color: #343E47;
    --border-color: #ccc;
}

.hug-glossary__filters{
    display: flex; 
    gap: 16px;
}
@media screen and (max-width: 800px){
    .hug-glossary__filters{
        flex-direction: column;
    }
}
.hug-glossary__term{
    padding: 0;
    color: black;
    color: var(--body-color);
    background-color: transparent;
}
.hug-glossary__term:hover,
.hug-glossary__term:focus{
    color: var(--primary);
    background-color: transparent;
}

.hug-glossary-section{
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 3em;
    padding-top: 3em;
}
.hug-glossary-section:not(:first-child){
    border-bottom: 1px solid var(--border-color);
}

.hug-glossary-section__items{
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 3;
    flex-grow: 1;
}
@media screen and (max-width: 700px) {
    .hug-glossary-section__items{
        column-count: 2;
    }
}
.hug-glossary__item{
    padding-right: 16px;
}

.hug-glossary-section__letter{
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
}


/**
* ================== MODAL =====================
*/
.hug-glossary-modal,
.hug-glossary-modal__backdrop{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.hug-glossary-modal__backdrop{
    cursor: pointer;
}
.hug-glossary-modal{
    z-index: 999999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 24px;
}

.hug-glossary-modal--open{
    pointer-events: all;
    opacity: 1;
}
.hug-glossary-modal__backdrop{
    background-color: black;
    opacity: 0.5;
}
.hug-glossary-modal__inner{
    background-color: white;
    position: relative;
    border-radius: 3px;
    display: flex;
    max-height: 100%;
    width: 100%;
    max-width: 800px;
    padding-top: 20px;
}
.hug-glossary-modal__scrollbox{
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-height: 100%;
}
.hug-glossary-modal__close{
    width: 36px;
    height: 36px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(50%,-50%);
    font-size: 0;
    padding: 0;
}
.hug-glossary-modal__close::before,
.hug-glossary-modal__close::after{
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background-color: white;
    position: absolute;
    left: 50%;
    transform: translate(-50%,0px) rotate(45deg)
}
.hug-glossary-modal__close::after{
    transform: translate(-50%,0px) rotate(-45deg)
}
.hug-glossary-modal__content{
    padding: 36px;
}

.hug-glossary__reset-filters{
    padding: 0;
    background: transparent;
    margin-top: 8px;
    color: var(--primary);
}
.hug-glossary__reset-filters:hover{
    background: transparent;
    color: var(--body-color)
}


/**
* ================== MODAL CONTENT =====================
*/
.hug-glossary-content__title-en{
    font-size: 0.7em;
    opacity: 0.5;
    font-weight: normal;
}
.hug-glossary-content-section {
    margin-top: 1em;
}
    .hug-glossary-content-section__title {
        text-transform: uppercase;
        color: var(--primary);
        font-weight: bold;
        letter-spacing: 0.03em;
    }
    .hug-glossary-content-section--remarques .hug-glossary-content-section__content{
        font-style: italic;
    }
    .hug-glossary-content-section__typologies{
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .hug-glossary-content-section__typology-link{
        padding: 0;
        background: transparent;
        cursor: pointer;
        color: var(--primary);
    }
    
    .hug-glossary-content-section__typology-link:hover{
        background: transparent;
        color: var(--body-color);
    }

/*
* =============== wysiwyg
*/
.hug-glossary-wysiwyg ul li{
    margin: 0;
}

/*
* =============== HELPER CLASS
*/

.hug-glossary-hidden{
    display: none;
}