/* JoceOffice — Scroll Teaser  |  teaser.css  v1.0.0 */

.jost-block {
    width: 100%;
    box-sizing: border-box;
}

/* ── Texte ── */
.jost-text {
    margin: 0 0 1.5em;
    padding: 0;
}

.jost-word {
    display: inline;
    transition: color 0.4s ease, opacity 0.4s ease;
}

.jost-word--visible {
    /* couleur via Elementor selector */
}

.jost-word--hidden {
    /* couleur via Elementor selector */
}

/* ── Indicateur commun ── */
.jost-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.jost-indicator--hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.jost-indicator__label {
    font-size: 0.7em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ── Flèche animée ── */
.jost-indicator__arrow {
    width: 28px;
    height: 28px;
    animation: jost-bounce 1.4s ease-in-out infinite;
}

@keyframes jost-bounce {
    0%, 100% { transform: translateY(0);    opacity: 1; }
    50%       { transform: translateY(6px); opacity: 0.5; }
}

/* ── Point pulsant ── */
.jost-indicator__dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: jost-pulse 1.4s ease-in-out infinite;
}

@keyframes jost-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.6); opacity: 0.4; }
}

/* ── Ligne qui descend ── */
.jost-indicator__line {
    display: block;
    width: 1px;
    height: 40px;
    background: currentColor;
    position: relative;
    overflow: hidden;
}

.jost-indicator__line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    animation: jost-line 1.4s ease-in-out infinite;
}

@keyframes jost-line {
    0%   { top: -100%; opacity: 1; }
    100% { top: 100%;  opacity: 0; }
}

/* ── Éditeur Elementor ── */
.elementor-editor-active .jost-indicator--hidden {
    opacity: 1 !important;
    transform: none !important;
}
