/* ==========================================================================
   1. CONTENEURS ET VIDÉO DE FOND
   ========================================================================== */

/* Wrapper principal plein écran */
.mx-trail-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* Couche arrière-plan pour la vidéo */
.mx-trail-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mx-motion-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   2. INTERFACE & CALQUE DE TEXTE
   ========================================================================== */

/* Zone UI globale au-dessus de la vidéo */
.mx-trail-ui {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Le conteneur du track centré */
.mx-horizontal-track {
    position: relative;
    width: 100%;
    height: 100vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ==========================================================================
   3. STYLE DES LIENS & TITRES (Optimisé GSAP)
   ========================================================================== */

/* Les liens sont empilés au centre et masqués au départ pour GSAP */
.trail-title-link {
    position: absolute;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    visibility: hidden; /* Laisse GSAP gérer l'affichage de manière propre */
}

/* Style des textes avec l'effet élastique Clamp */
.trail-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

/* Interaction au survol */
.trail-title-link:hover .trail-title {
    opacity: 0.7;
}