/* Compteur flottant */
.floating-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.5);
}

.floating-counter::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 14px;
    z-index: -1;
    animation: glowing 1.5s linear infinite;
}

.floating-counter.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-counter .km-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: white;
}

.floating-counter .km-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.floating-counter #floating-km-count {
    color: #ffbf00; /* Or */
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Racing Sans One', cursive;
    text-shadow: 0 0 10px rgba(255, 191, 0, 0.7);
}

.floating-counter .km-unit {
    color: #ffbf00;
    font-size: 0.8rem;
    font-weight: 700;
}