main {
    font-family: var(--fa);
    .bloc-info {
        width: 50%;
        font-size: 16px;
        padding: 7.5px 10px;
        text-align: center;
        margin: 0 auto 20px auto;
        color: var(--dc);
        background: rgba(0, 0, 0, 4%);
    }
    h1 {
        text-transform: uppercase;
        text-align: center;
        color: var(--mc);
        font-size: 30px;
    }
    table {
        width: 50%;
        border-collapse: collapse;
        margin: 0 auto;
        outline: rgba(182, 30, 30, 0.05);
        thead {
            background: var(--mc);
            color: var(--lc);
            text-transform: uppercase;
        }
        tbody {
            tr {
                color: var(--mc);
                &:nth-child(odd) {
                    background: rgba(182, 30, 30, 0.1);
                }
                td {
                    padding: 10px 0;
                    &:nth-child(1) {
                        padding-left: 10px;
                        font-weight: bold;
                        width: 45%;
                    }
                    &:nth-child(2) {
                        width: 25%;
                        .ceinture {
                            width: 100%;
                            font-size: 15px;
                            position: relative;
                            display: flex;
                            align-items: center;
                            padding-right: 15px; 
                            padding-left: 5px;
                            &.kyu {
                                &.dix, &.neuf {
                                    background: darkorange;
                                    color: #fff;
                                    .barrette {
                                        background: darkblue;
                                    }
                                }
                                &.huit, &.sept {
                                    background: darkblue;
                                    color: #fff;
                                    .barrette {
                                        background: rgb(255, 242, 0);
                                    }
                                }
                                &.six, &.cinq {
                                    background: rgb(255, 242, 0);
                                    color: #000;
                                    .barrette {
                                        background: darkgreen;
                                    }
                                }
                                &.quatre, &.trois {
                                    background: darkgreen;
                                    color: #fff;
                                    .barrette {
                                        background: rgb(108, 13, 13);
                                    }
                                }
                                &.deux, &.un {
                                    background: rgb(108, 13, 13);
                                    color: #fff;
                                    .barrette {
                                        background: gold;
                                    }
                                }
                            }
                            &.dan {
                                /* background: var(--dc); */
                                background: #000;
                                color: #fff;
                                .barrette {
                                    background: gold;
                                    &:nth-child(1) {
                                        right: 5px;
                                    }
                                    &:nth-child(2) {
                                        right: 15px;
                                    }
                                    &:nth-child(3) {
                                        right: 25px;
                                    }
                                    &:nth-child(4) {
                                        right: 35px;
                                    }
                                    &:nth-child(5) {
                                        right: 45px;
                                    }
                                }
                                
                            }
                            .barrette {
                                position: absolute;
                                right: 4px;
                                top: 0;
                                height: 100%;
                                width: 5px;
                            }
                        }
                    }
                    &:nth-last-child(1) {
                        text-align: right;
                        padding-right: 15px;
                        width: 30%;
                        a {
                            padding: 5px 7.5px;
                            color: var(--lc);
                            border-radius: 5px;
                            background: var(--mc);
                            text-decoration: none;
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 768px) {
    main {
        h1 {
            font-size: 25px;
        }
        .bloc-info {
            width: 90%;
            font-size: 15px;
        }
        table {
            width: 90%;
            tbody {
                tr {
                    td {
                        &:nth-child(1) {
                            padding-left: 7.5px;
                            width: 40%;
                        }
                        &:nth-child(2) {
                            width: 30%;
                        }
                    }
                }
            }
        }
    }
}