/**
 * Next Project CTA - Styles
 *
 * @package DiviPascaline
 */

.next-project-cta {
    position: fixed;
    top: 50%;
    right: calc(50% - 640px);
    transform: translateY(-50%) translateX(20px);
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.625rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    color: white;
    background: #00522c;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease,
                visibility 0.3s ease,
                transform 0.3s ease,
                background-color 0.2s ease,
                box-shadow 0.2s ease;
}

.next-project-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.next-project-cta:hover {
    color: white;
    text-decoration: none;
}

.next-project-cta:focus {
    outline: 2px solid #00522c;
    outline-offset: 2px;
}

.next-project-cta-text {
    display: inline-block;
}

.next-project-cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.next-project-cta:hover .next-project-cta-arrow {
    transform: translateX(4px);
}

/* Responsive: masquer si la fenêtre est trop petite pour le CTA latéral */
@media (max-width: 1400px) {
    .next-project-cta {
        right: 1rem;
        top: auto;
        bottom: 2rem;
        transform: translateY(20px);
    }

    .next-project-cta.is-visible {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .next-project-cta {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        justify-content: center;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .next-project-cta {
        transition: none;
    }

    .next-project-cta-arrow {
        transition: none;
    }
}
