/* JoceOffice — Typewriter Scroll */

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

.jotw-text {
    margin: 0;
    padding: 0;
}

.jotw-word {
    display: inline;
    transition-property: color, opacity, transform, filter;
    transition-timing-function: ease;
    will-change: color, opacity;
}

/* Fade up : décalage vertical initial via JS inline */
/* Blur : filter blur initial via JS inline */

/* Éditeur Elementor — tout visible */
.elementor-editor-active .jotw-word {
    color: inherit !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

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

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

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

/* Flèche */
.jotw-indicator__arrow {
    width: 28px;
    height: 28px;
    animation: jotw-bounce 1.4s ease-in-out infinite;
}
@keyframes jotw-bounce {
    0%, 100% { transform: translateY(0);    opacity: 1; }
    50%       { transform: translateY(6px); opacity: 0.5; }
}

/* Point */
.jotw-indicator__dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: jotw-pulse 1.4s ease-in-out infinite;
}
@keyframes jotw-pulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.6); opacity: 0.4; }
}

/* Ligne */
.jotw-indicator__line {
    display: block;
    width: 1px;
    height: 40px;
    background: currentColor;
    position: relative;
    overflow: hidden;
}
.jotw-indicator__line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    animation: jotw-line 1.4s ease-in-out infinite;
}
@keyframes jotw-line {
    0%   { top: -100%; opacity: 1; }
    100% { top:  100%; opacity: 0; }
}

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