/* Scroll Capsule Styles v2 */
.scroll-spacer {
    height: 200px; /* Zone confortable pour le scroll */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    margin-top: 80px;
    cursor: pointer;
    position: relative;
}

.next-capsule {
    background: #1e293b; /* Slate 800 */
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    z-index: 10;
}

/* Le texte */
.capsule-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Barre de chargement (background) */
.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: #22c55e; /* Green 500 */
    opacity: 0.2;
    z-index: 1;
    transition: width 0s; /* Instant reset by default */
}

/* Barre de progression (ligne du bas) */
.loader-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #4ade80; /* Green 400 */
    z-index: 3;
    transition: width 0s; /* Instant reset by default */
}

/* État VISIBLE (quand on approche du bas) */
.next-capsule.visible {
    transform: translateY(0);
    opacity: 1;
}

/* État CHARGEMENT (quand on est tout en bas) */
.next-capsule.charging .loader-bg,
.next-capsule.charging .loader-line {
    width: 100%;
    transition: width 1.5s linear; /* Durée du maintien nécessaire */
}

/* Effet de "Pulse" quand c'est chargé */
.next-capsule.redirecting {
    transform: scale(1.1);
    background: #22c55e;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.capsule-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.capsule-title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.capsule-arrow {
    font-size: 1.2rem;
    margin-top: 4px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* Hint mobile amélioré */
.swipe-hint-text {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s;
    z-index: 9999;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.swipe-hint-text.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}