/* ANIMATION AU SCROLL */
[data-scroll-animation] {
    opacity: 0;
    transition: transform 0.5s linear, opacity 0.5s linear;

    &[data-scroll-animation="bottom"] {
        transform: translateY(50px);

        &.is-visible {
            opacity: 1;
            transform: translateY(0);
        }
    }

    &[data-scroll-animation="top"] {
        transform: translateY(-50px);

        &.is-visible {
            opacity: 1;
            transform: translateY(0);
        }
    }

    &[data-scroll-animation="right"] {
        transform: translateX(50px);

        &.is-visible {
            opacity: 1;
            transform: translateX(0);
        }
    }

    &[data-scroll-animation="left"] {
        transform: translateX(-50px);

        &.is-visible {
            opacity: 1;
            transform: translateX(0);
        }
    }

    &.is-visible {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(200px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadein {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: translateY(-300px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes left-up {
    0% {
        left: 100%;
        height: 0;
    }
    50% {
        left: 0;
        height: 0;
    }
    100% {
        height: 100%;
        left: 0;
    }
}

@keyframes right-dn {
    0% {
        left: -100%;
        height: 0;
    }
    50% {
        left: 0;
        height: 0;
    }
    100% {
        height: 100%;
        left: 0;
    }
}

.circle-animate {
    .foreground {
        fill: transparent;
        stroke-dasharray: 200;
        stroke-dashoffset: 200;
        stroke: var(--color-black);
        transform-origin: 50% 50%;
        transition: all 800ms linear;
    }
}


.circle-animation-group:hover, .circle-animated {
    .circle-animate {
        .foreground {
            stroke-dashoffset: 0 !important;
        }
    }
}

svg.animate-illustration path:not([fill="none"]) {
    fill: transparent;
    stroke-width: 2;
    stroke: var(--color-black);
    stroke-dasharray:
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            6, 5, 3, 5, 3, 5,
            0, 464;
    stroke-dashoffset: 464;

    @media screen and (max-width: 768px) {
        display: none;
    }
}

svg.animate-illustration.animated path:not([fill="none"]) {
    animation: draw 3s forwards;
}


@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}
