/* Animation du titre "Une carte, une infinité de connexions possible" au scroll */
.animated-title-connexions {
    position: relative;
    display: block;
}

.animated-title-connexions .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-connexions .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-connexions .letter {
    display: inline-block;
    transform: translateY(150%);
    white-space: pre;
    min-width: 0.2em;
}

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

/* Délais pour chaque lettre - Ligne 1: Une carte, une infinité */
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(1) { animation-delay: 0s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(2) { animation-delay: 0.025s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(3) { animation-delay: 0.05s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(4) { animation-delay: 0.075s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(5) { animation-delay: 0.1s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(6) { animation-delay: 0.125s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(7) { animation-delay: 0.15s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(8) { animation-delay: 0.175s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(9) { animation-delay: 0.2s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(10) { animation-delay: 0.225s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(11) { animation-delay: 0.25s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(12) { animation-delay: 0.275s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(13) { animation-delay: 0.3s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(14) { animation-delay: 0.325s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(15) { animation-delay: 0.35s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(16) { animation-delay: 0.375s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(17) { animation-delay: 0.4s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(18) { animation-delay: 0.425s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(19) { animation-delay: 0.45s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(20) { animation-delay: 0.475s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(21) { animation-delay: 0.5s; }
.animated-title-connexions.animate .title-line:nth-child(1) .letter:nth-child(22) { animation-delay: 0.525s; }

/* Délais pour chaque lettre - Ligne 2: de connexions possible */
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(1) { animation-delay: 0.6s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(2) { animation-delay: 0.625s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(3) { animation-delay: 0.65s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(4) { animation-delay: 0.675s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(5) { animation-delay: 0.7s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(6) { animation-delay: 0.725s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(7) { animation-delay: 0.75s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(8) { animation-delay: 0.775s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(9) { animation-delay: 0.8s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(10) { animation-delay: 0.825s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(11) { animation-delay: 0.85s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(12) { animation-delay: 0.875s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(13) { animation-delay: 0.9s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(14) { animation-delay: 0.925s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(15) { animation-delay: 0.95s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(16) { animation-delay: 0.975s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(17) { animation-delay: 1s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(18) { animation-delay: 1.025s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(19) { animation-delay: 1.05s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(20) { animation-delay: 1.075s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(21) { animation-delay: 1.1s; }
.animated-title-connexions.animate .title-line:nth-child(2) .letter:nth-child(22) { animation-delay: 1.125s; }

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