.progress_container{
    position: relative;
    height: 18px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    max-width: 220px;
}

.progress_bar{
    height: 100%;
    background: #4caf50;
}

.progress_text{
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: clamp(14px, 3.2vw, 18px)!important;
    line-height: 18px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(255,255,255,0.45);
}

.progress_small{
    font-size: clamp(12px, 2.8vw, 15px);
    color: #666;
}

.chapitre_ligne{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.chapitre_gauche{
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 8px;
    padding-top: 1.2em;
}

.chapitre_droite{
    flex: 0 0 40vw;
    max-width: 420px;
}

/* =========================
BADGES : BARRE MODERNE
========================= */
.badge-lock{
    background:#eee;
    border-radius:20px;
    padding:10px;
    text-align:center;
    color:#666;
    max-width:600px;
    margin:auto;
    font-weight:700;
    font-size:18px;
}

.badge-bar{
    width:90%;
    height:52px;
    margin:auto;
    background:#e5e5e5;
    border-radius:26px;
    overflow:hidden;
    box-shadow:
        inset 0 6px 12px rgba(0,0,0,0.35),
        0 4px 8px rgba(0,0,0,0.3);
    position:relative;
    cursor:pointer;
}

.badge-bar-fill{
    height:100%;
    box-shadow:
        inset 0 8px 10px rgba(255,255,255,0.5),
        inset 0 -8px 12px rgba(0,0,0,0.4);
    transition:width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.badge-bar-red{
    background:linear-gradient(to bottom, red 0%, #a00000 100%);
}

.badge-bar-yellow{
    background:linear-gradient(to bottom, #ffe066 0%, #d6a600 100%);
}

.badge-bar-green{
    background:linear-gradient(to bottom, #4be06c 0%, #1c8f39 100%);
}

.badge-bar-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-weight:700;
    font-size:clamp(18px, 4.8vw, 26px);
    color:black;
    pointer-events:none;
    white-space:nowrap;
    max-width:calc(100% - 56px);
    overflow:hidden;
    text-overflow:ellipsis;
    line-height:1;
}

.badge-bar-text-danger{
    color:tomato;
}

.badge-bar-icon{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    height:30px;
    filter:drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    pointer-events:none;
}

@media screen and (max-width: 700px){

    .badge-lock{
        font-size:15px;
        padding:9px;
    }

    .badge-bar{
        width:100%;
        height:52px;
        border-radius:26px;
    }

    .badge-bar-text{
        font-size:18px;
        max-width:calc(100% - 48px);
    }

    .badge-bar-icon{
        right:10px;
        height:26px;
    }
}