/* ── Section Steps Slider ── */
.tm-steps-section {
    padding: 100px 30px 50px;
    background: #fff;
    overflow: hidden;
}

.tm-steps-inner {
    max-width: 1219px;
    margin: 0 auto;
}

.tm-steps-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 45px;
    color: #0d0b30;
    text-align: center;
    margin: 0 0 50px;
}

/* ── Stepper ── */
.tm-stepper {
    position: relative;
    margin-bottom: 35px;
}

.tm-stepper-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 8px;
    background: #efefef;
    transform: translateY(-50%);
    z-index: 0;
}

.tm-stepper-dots {
    display: flex;
    justify-content: space-evenly;
    position: relative;
    z-index: 1;
}

.tm-stepper-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d0b30;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s;
}

.tm-stepper-dot.is-active {
    background: #f78d24;
}

/* ── Slider ── */
.tm-slider-outer {
    display: flex;
}

.tm-slider-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.tm-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Cartes ── */
.tm-step-card {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    padding: 40px 30px 30px;
    box-sizing: border-box;
}

.tm-step-card-inner {
    background: #fff;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);*/
    padding: 20px;
    box-sizing: border-box;
}

.tm-step-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 10px;
}

.tm-step-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-step-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.33;
    color: #000;
    margin: 0 0 16px;
}

.tm-step-card-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #3c3c3c;
    padding-bottom: 8px;
}

/* ── Flèches — positionnées en absolu au niveau du stepper ── */
.tm-steps-slider {
    position: relative;
}

.tm-slider-arrow {
    position: absolute;
    top: 45px; /* centre des dots de 40px */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f78d24;
    border: 1px solid #dadada;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    z-index: 2;
}

.tm-slider-prev { left: -20px; }
.tm-slider-next { right: -20px; }

.tm-slider-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* ── Tablette ── */
@media (max-width: 1023px) {
    .tm-step-card {
        flex: 0 0 50%;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .tm-steps-section {
        padding: 60px 20px 40px;
    }

    .tm-steps-title {
        font-size: 22px;
        line-height: 32px;
        margin-bottom: 30px;
    }

    .tm-step-card {
        flex: 0 0 100%;
        padding: 20px 10px;
    }

    .tm-slider-prev { left: -10px; }
    .tm-slider-next { right: -10px; }

    .tm-stepper-dot {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}
