
  
  .fx_words_fade {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.3); /* Texte atténué */
}

.fx_words_fade .overlay {
    position: absolute;
    gap: .2em;
    top: 0;
    left: 0;
    width: 100%;
    color: white; /* Texte superposé */
    overflow: hidden;
    white-space: nowrap;
}
.fx_words_fade .overlay{

    display: flex; flex-wrap: wrap;
}
.fx_words_fade .overlay .letter {
    display: inline-block; /* Permet d'animer chaque lettre individuellement */
    opacity: 0;
}
.fx_words_fade .word{  }

.fx_words_fade .base{ opacity: 0; }


  
.fx_letters_write {
    position: relative;
    display: inline-block;
}

.fx_letters_write .overlay { position: absolute; top: 0;    left: 0;    width: 100%;  white-space: nowrap; display: flex; flex-wrap: wrap; gap: 0 .2em; }
.fx_letters_write .overlay .letter {    display: inline-block; /* Permet d'animer chaque lettre individuellement */  opacity: 0; }





.fx_letters_write .base{ opacity: 0; }



.fx_letters_write .word {
    display: inline-block;
    white-space: nowrap; /* Empêche la coupure des mots */
}

.fx_letters_write .letter {
    display: inline-block; /* Permet une animation fluide */
}



.fx_revealimage {
    position: relative;
    overflow: hidden; /* Cache le débordement */
    width: 500px; /* Ajuste selon ton design */
    height: 300px; /* Ajuste selon ton design */
}

.fx_revealimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Image invisible au départ */
}

.fx_revealimage .overlay {
    position: absolute;
    inset: 0;
    background: var(--color_bg); 
    transform-origin: right;
    width: 100%;
    right: 0;
    z-index: 2;
} 




  /* layout  */

.horizontal-scroll {
    width: 100%;
    height:1000px; 
    padding-top: 300px;
    overflow: hidden;
    white-space: nowrap;
}

.scroll-container {
    width: fit-content; 
    margin-left: 400px;
    display: flex;
    gap: 100px;
    font-size: 14rem;
    will-change: transform;
}

.scroll-item {
    display: inline-block;
}

.reveal-text h2 {
    font-size: 3rem;
    text-align: center;
    opacity: .4;
    transform: translateY(50px);
}

.image-container {
    display: flex;
    gap: 20px;
    padding: 50px;
    opacity: .4;
}
