.fd_popup-reglement-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;

    .mode-reglement {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 37px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: white;
        border-radius: 5px;
        margin: 0;
        cursor: pointer;

        img {
            width: 100%;
            user-select: none;
            -webkit-user-drag: none;
            /*height: 100%;*/
            /*object-fit: scale-down;*/
        }

        .tooltip {
            visibility: hidden;
            width: 120px;
            background-color: #555;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px 0;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -60px;
            opacity: 0;
            transition: opacity 0.3s;

            &:after {
                content: "";
                position: absolute;
                top: 100%;
                left: 50%;
                margin-left: -5px;
                border-width: 5px;
                border-style: solid;
                border-color: #555 transparent transparent transparent;
            }
        }
    }
}
dialog.fd_popup-reglement-dialog {
    z-index: 10;
    border: none;
    width: 554px;
    padding: 24px 38px 12px 38px;
    height: 425px;
    /*height: 35%;*/

    .parent-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;

        .text {
            font-family: "karla", sans-serif;
            font-size: 16px;
            font-weight: 400;
            color: #48494B;
            margin-bottom: 12px;
        }
    }

    .reglement-container {
        flex-direction: column;
        flex: 1 1 auto;

        .reglement-content {
            display: flex;
            flex: 1 1 auto;
            align-items: center;
            flex-direction: column;
            margin-bottom: 28px;
            justify-content: space-between;

            .description {
                /*max-height: 160px;*/
                /*overflow: scroll;*/
                flex: 1 1 auto;
                display: flex;
                align-items: center;
                white-space: break-spaces;
                width: 100%;
            }

            .reglement-button {
                margin-top: 30px;
                width: 162px;
                display: flex;
                height: 37px;
                border: solid 1px #183157;
                border-radius: 8px;
                align-items: center;
                justify-content: center;
                font-family: "karla", sans-serif;
                font-weight: 700;
                color: #1c2123;
                text-transform: uppercase;
                font-size: 12px;

                &:hover {
                    background-color: #183157;
                    color: #fff;
                }
            }
        }
    }

    .dialog-header {
        display: flex;
        gap: 10px;
        align-items: center;
        position: relative;
        margin-bottom: 30px;

        img {
            width: 52px;
            user-select: none;
            -webkit-user-drag: none;
        }

        .title {
            font-size: 16px;
            font-family: "Karla", sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            max-width: 80%;
        }

        .closeButton {
            display: block;
            position: absolute;
            right: 0;
            border-radius: 50%;
            padding: .5em;
            width: 30px;
            height: 30px;
            border: 2px solid transparent;
            color: white;
            z-index: 18;
            cursor: pointer;
            transition: all 0.2s linear;

            &:hover {
                /*transform: rotate(90deg);*/
                &:after,&:before {
                    background-color: #CC2028;
                }
            }

            &:before {
                content: " ";
                position: absolute;
                display: block;
                background-color: black;
                width: 2px;
                left: 12px;
                top: 5px;
                bottom: 5px;
                transform: rotate(45deg);
            }
            &:after {
                content: " ";
                position: absolute;
                display: block;
                background-color: black;
                height: 2px;
                top: 12px;
                left: 5px;
                right: 5px;
                transform: rotate(45deg);
            }
        }
    }

    .dialog-footer {
        border-top: solid 1px #212529;
        padding-top: 14px;
        .reglement_vignette-container {
            display: flex;
            gap: 8px;

            .vignette {
                width: 70px;
                cursor: pointer;

                &.active {
                    display: none;
                }

                &:hover {
                    img {
                        scale: 105%;
                        /*box-shadow: #8d8d8d24 0 0 4px 1px;*/
                    }
                }

                img {
                    width: 100%;
                    transition: all 0.2s ease-in;
                    user-select: none;
                    -webkit-user-drag: none;
                }
            }
        }
    }

    &::backdrop {
        background-color: #00000080;
    }

    &:focus-visible {
        outline: none;
    }
}
.tabcontent {
    display: none;
}

@media (max-width: 468px) {
    dialog.fd_popup-reglement-dialog {
        height: 580px;
        .dialog-header {
            flex-direction: column;
            gap: 16px;
            position: unset;

            .closeButton {
                top: 18px;
                right: 18px;
            }
        }
        .dialog-footer {
            .reglement_vignette-container {
                display: grid;
                /*grid-template-columns: repeat(3, 1fr);*/
                grid-template-columns: repeat(3, minmax(70px, 1fr));
                justify-items: center;
                gap: 10px;
            }
        }
        .reglement-content {
            margin-bottom: 26px;
            justify-content: space-between;

            .description {
                flex: 1 1 auto;
                display: flex;
                align-items: center;
            }
        }
    }
}