/**
* Block Name: etappe
*/



section.etappe hr {
    opacity: 1;
    border-top: 2px solid var(--rot-1);
    background: #FFF;
    margin-top: 100px;
    margin-bottom: 0;
}

section.etappe .progressbar {
    position: relative;
  padding-top: 20px;
  padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

section.etappe .progressbar .line {
    position: absolute;
    width: 100%;
    height: 15px;
    top: 19px;
    left: 0;
    z-index: -1;
}

section.etappe .step {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

section.etappe .step p {
    margin-top: 10px;
    white-space: wrap;
}



@media (min-width: 768px) {
    section.etappe .progressbar {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
   
    }
    section.etappe .progressbar .line {
        position: absolute;
        width: calc(100% - 12px); 
        height: 15px;
        top: 19px; 
        left: 15px;
    }

    section.etappe .step {
        flex-direction: column;
        align-items: center;
    }

    section.etappe .step p {
        transform: rotate(-45deg);
        margin-top: 30px;
        width: 75%;
        text-align: center;
    }
}

@media only screen and (max-width: 992px) and (min-width: 767px)  {
    section.etappe .step p {
       font-size: 12px;
    }
}


@media (max-width: 767px) {
    section.etappe .progressbar {
        flex-direction: column;
        gap: 100px;
        align-items: flex-start;
        position: relative; 
        justify-content: space-between;
        height: 100%;
    }

    section.etappe .progressbar .line {
        position: absolute;
        width: 100%; 
        height: 15px; 
        left: 25px; 
        top: 10px;
        transform: rotate(90deg);
        transform-origin: left top; 
        z-index: -1; 
    }

    section.etappe .step {
        flex-direction: row !important;
        gap: 20px;
        align-items: center;
        position: relative; 
        z-index: 1;
        left: 0;
    }

    section.etappe .step p {
        transform: none;
        margin-top: 0;
        margin-bottom: 0;
    }
}