/* Barre de progression de lecture */
.progress-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 60vh;
    width: 4px;
    background: rgba(255, 184, 250, 0.2);
    border-radius: 2px;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #FF84F7, #FFB8FA);
    border-radius: 2px;
    transition: height 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 132, 247, 0.5);
}

/* Flèche en haut */
.progress-arrow-top {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #FFB8FA;
    opacity: 0.7;
}

/* Flèche en bas */
.progress-arrow-bottom {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #FF84F7;
    opacity: 0.7;
}

/* Animation de pulsation pour la flèche du bas */
@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(3px);
        opacity: 1;
    }
}

.progress-arrow-bottom {
    animation: pulse 2s ease-in-out infinite;
}

/* Masquer sur tablette et mobile */
@media (max-width: 1024px) {
    .progress-container {
        right: 10px;
        height: 50vh;
        width: 3px;
    }

    .progress-arrow-top,
    .progress-arrow-bottom {
        border-left-width: 6px;
        border-right-width: 6px;
    }

    .progress-arrow-top {
        border-bottom-width: 10px;
        top: -15px;
    }

    .progress-arrow-bottom {
        border-top-width: 10px;
        bottom: -15px;
    }
}

@media (max-width: 768px) {
    .progress-container {
        display: none;
    }
}
