/* Animation du titre "Comment s'en servir ?" au scroll - identique au saviez-vous */
.animated-title-comment {
    position: relative;
    display: block;
}

.animated-title-comment .title-line {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0.1em 0;
    height: 1.2em;
}

/* Masque fixe qui cache le bas de chaque ligne */
.animated-title-comment .title-line::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: #FAFAFA;
    z-index: 2;
    pointer-events: none;
}

/* Chaque lettre individuellement - cachée par défaut */
.animated-title-comment .letter {
    display: inline-block;
    transform: translateY(150%);
    white-space: pre;
    min-width: 0.2em;
}

/* Animation déclenchée par la classe 'animate' */
.animated-title-comment.animate .letter {
    animation: letterRiseComment 0.4s ease-out forwards;
}

/* Délais pour chaque lettre - Ligne 1: Comment */
.animated-title-comment.animate .title-line:nth-child(1) .letter:nth-child(1) { animation-delay: 0s; }
.animated-title-comment.animate .title-line:nth-child(1) .letter:nth-child(2) { animation-delay: 0.025s; }
.animated-title-comment.animate .title-line:nth-child(1) .letter:nth-child(3) { animation-delay: 0.05s; }
.animated-title-comment.animate .title-line:nth-child(1) .letter:nth-child(4) { animation-delay: 0.075s; }
.animated-title-comment.animate .title-line:nth-child(1) .letter:nth-child(5) { animation-delay: 0.1s; }
.animated-title-comment.animate .title-line:nth-child(1) .letter:nth-child(6) { animation-delay: 0.125s; }
.animated-title-comment.animate .title-line:nth-child(1) .letter:nth-child(7) { animation-delay: 0.15s; }

/* Délais pour chaque lettre - Ligne 2: s'en servir ? */
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(1) { animation-delay: 0.25s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(2) { animation-delay: 0.275s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(3) { animation-delay: 0.3s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(4) { animation-delay: 0.325s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(5) { animation-delay: 0.35s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(6) { animation-delay: 0.375s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(7) { animation-delay: 0.4s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(8) { animation-delay: 0.425s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(9) { animation-delay: 0.45s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(10) { animation-delay: 0.475s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(11) { animation-delay: 0.5s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(12) { animation-delay: 0.525s; }
.animated-title-comment.animate .title-line:nth-child(2) .letter:nth-child(13) { animation-delay: 0.55s; }

/* Animation d'une lettre qui sort du masque */
@keyframes letterRiseComment {
    0% {
        transform: translateY(150%);
        opacity: 0;
    }
    100% {
        transform: translateY(-15%);
        opacity: 1;
    }
}
