@font-face {
    font-family: 'Jost';
    src: url(../fonts/Jost-VariableFont_wght.ttf);
}

custom-accordeon{
    display: block;
    max-height: 65px;
    padding: 0 1.5%; margin-bottom: 1.5%;
    border-radius: var(--secondary-border-radius);

    transition: .2s; overflow:clip; 

    outline: 3px solid var(--base-color); color: var(--base-color); background: var(--secondary-color);
    font-size: 1.15rem; 

    div:first-of-type{
        cursor: pointer;
        display: flex; justify-content: space-between; align-items: center;
    }

    div:last-of-type {
        padding: 1.5% 0;
    }
}

/* Variables utilisées par les popups : --base-color, --secondary-color, --secondary-border-radius */
.popup{
    position: fixed;
    inset: 0;
    z-index: 9999999;
    --popup-main: var(--main-color, #7B0B46);
    --popup-light: var(--light-color, #fcebf4);
    font-family: 'Jost', sans-serif;

    .popup__backdrop{
        position: fixed;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5rem;
        background: rgba(67, 25, 48, 0.58);
    }

    .popup__dialog{
        width: min(32rem, 100%);
        padding: 2rem;
        border: 1px solid #e7cddb;
        color: var(--popup-main);
        background: #fffafc;
        box-shadow: 0 1.25rem 3rem rgba(123, 11, 70, 0.18);
    }

    .popup__content{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;

        p{
            margin: 0;
            font-size: 1.05rem;
            line-height: 1.6;
        }

        &--wait{
            padding: 1rem 0;
        }
    }

    .popup__actions{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .popup__button{
        padding: 0.8rem 1.4rem;
        border: 0;
        color: var(--popup-light);
        background: var(--popup-main);
        cursor: pointer;
        font: inherit;
        font-weight: 700;
        transition: background-color 0.2s ease, color 0.2s ease;

        &--secondary{
            border: 1px solid currentColor;
            color: var(--popup-main);
            background: transparent;
        }

        &:hover{
            background: #5f0836;
        }

        &--secondary:hover{
            color: var(--popup-light);
        }

        &:focus-visible{
            outline: 2px solid var(--popup-main);
            outline-offset: 3px;
        }
    }

    .popup__loader{
        width: 2.5rem;
        height: 2.5rem;
        border: 0.3rem solid #e7cddb;
        border-top-color: var(--popup-main);
        border-radius: 50%;
        animation: popup-spin 0.8s linear infinite;
    }
}

@keyframes popup-spin{
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
    .popup .popup__loader{
        animation-duration: 2s;
    }
}