/* Styles de base pour les animations */
.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero, .intro, .product, .parallax, .features, .outro {
    position: relative;
    color: #fff;
}

.hero-bg, .intro-bg, .product-bg, .parallax-bg, .features-bg, .outro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content, .intro-content, .product-content, .parallax-content, .features-content, .outro-content {
    position: relative;
    z-index: 2;
}

/* Animation des textes */
.animated-text {
    opacity: 0;
    will-change: transform, opacity;
}

/* Animation des images */
.animated-image {
    opacity: 0;
    will-change: transform, opacity;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.animated-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles pour la section features */
.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
}

.feature {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 150px;
    padding: 0 20px;
    opacity: 0;
    will-change: transform, opacity;
}

.feature:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
}

.feature-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.feature-text h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: var(--highlight-color, linear-gradient(90deg, #9ED8FF, #007AFF));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature:nth-child(even) .feature-text h3::after {
    left: auto;
    right: 0;
    transform-origin: right;
}

.feature.active .feature-text h3::after {
    transform: scaleX(1);
}

.feature-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.feature-image {
    flex: 1;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Parallax */
.parallax {
    position: relative;
    height: 200vh;
    overflow: hidden;
}

.parallax-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Animation split text */
.char {
    display: inline-block;
    will-change: transform;
}

.word {
    display: inline-block;
    overflow: hidden;
    margin-right: 0.25em;
}