/* Animations pour le héros */
.hero-content {
    overflow: hidden;
}

.hero-title, .hero-paragraph {
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.3s;
}

.hero-paragraph {
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 1s;
}

.hero-title strong, .hero-paragraph strong {
    position: relative;
    display: inline-block;
}

.hero-title strong::after, .hero-paragraph strong::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--button); /* Utiliser la couleur du bouton */
    animation: lineWidth 0.8s ease forwards;
    animation-delay: 1.6s;
}

.hero-paragraph strong::after {
    animation-delay: 2s;
}

/* La ligne sous les mots forts apparaît progressivement */
@keyframes lineWidth {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Fade in et déplacement vers le haut */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de fondu doux pour certains mots clés */
.highlight {
    animation: softPulse 3s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes softPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
        text-shadow: 0 0 8px rgba(0, 142, 194, 0.4); /* Version plus subtile avec couleur --button */
    }
}

/* Animation pour les mots qui alternent */
.word-carousel {
    display: inline-flex;
    vertical-align: top;
    position: relative;
}

.word-carousel span {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: fadeInOut 8s infinite;
}

.word-carousel .static-text {
    opacity: 1;
    position: relative;
}

.word-carousel span:nth-child(1) { animation-delay: 0s; }
.word-carousel span:nth-child(2) { animation-delay: 2s; }
.word-carousel span:nth-child(3) { animation-delay: 4s; }
.word-carousel span:nth-child(4) { animation-delay: 6s; }

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    3%, 22% {
        opacity: 1;
    }
    25%, 97% {
        opacity: 0;
    }
} 