/* Comment ça marche section - Styling for final result section */
.comment-ca-marche-final-result {
    position: relative;
}
.comment-ca-marche-final-result .rounded-pill {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.comment-ca-marche-final-result .bg-opacity-10 {
    padding-top: 2.5rem !important;
}

/* Additional spacing adjustments for the result section */
.comment-ca-marche-final-result {
    margin-top: 3rem;
}

/* Fine-tune positioning of the pill badge */
.comment-ca-marche-result-badge {
    transform: translateY(-50%);
    margin-bottom: 0;
}

/* Comportement responsive unique */
.comment-ca-marche-responsive {
    overflow: hidden;
}

.comment-ca-marche-container {
    display: flex;
    transition: transform 0.3s ease;
}

.comment-ca-marche-item {
    flex: 0 0 100%;
    padding: 0 1rem;
}

/* Desktop : affichage en colonnes */
@media (min-width: 768px) {
    .comment-ca-marche-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        transform: none !important; /* Désactiver le transform sur desktop */
    }
    
    .comment-ca-marche-item {
        flex: unset;
        padding: 0;
    }
}

/* Indicateurs de pagination (mobile uniquement) */
.comment-ca-marche-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.comment-ca-marche-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-ca-marche-dots .dot.active,
.comment-ca-marche-dots .dot:hover {
    background-color: rgb(var(--color-orange-vif));
}

/* Flèches de navigation (mobile uniquement) */
.comment-ca-marche-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.comment-ca-marche-arrow {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: rgb(var(--color-orange-vif));
}

.comment-ca-marche-arrow-left {
    left: -10px;
}

.comment-ca-marche-arrow-right {
    right: -10px;
}

.comment-ca-marche-arrow .fa-chevron-left,
.comment-ca-marche-arrow .fa-chevron-right {
    filter: unset;
    width: 30px;
    height: 30px;
}


/* Positionnement relatif pour le conteneur des flèches */
.comment-ca-marche-responsive {
    position: relative;
}

/* Timeline verticale styles */
.timeline-line {
    width: 3px;
    height: calc(100% - 80px);
    left: 35px;
    top: 40px;
    z-index: 1;
}

.timeline-circle {
    width: 70px;
    height: 70px;
    min-width: 70px;
    z-index: 2;
}

@media (max-width: 768px) {
    .timeline-line {
        height: calc(100% - 190px);
        top: 90px;
    }
}