/* Conteneur principal */
.cf-slider-words {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Styles pour le grab cursor */
.cf-slider-words--grab {
    cursor: grab;
}

.cf-slider-words--grabbing {
    cursor: grabbing;
}

/* Conteneur Swiper */
.cf-slider-words .swiper {
    width: 100%;
    overflow: visible;
}

/* Wrapper pour les slides */
.cf-slider-words .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-direction: row; /* Forcer la direction horizontale */
    width: auto !important;
}

/* Style des mots */
.cf-slider-word {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1em;
    transition: all 0.3s ease;
    margin-right: 20px;
}

/* S'assurer que les slides sont visibles */
.cf-slider-words .swiper-slide {
    width: auto !important;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 30px;
}

/* Styles pour le message dans l'éditeur Elementor */
.cf-slider-editor-notice {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.8;
    text-align: left;
    line-height: 1.4;
}

/* Styles pour le message dans l'éditeur Elementor */
.cf-slider-editor-notice {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.8;
    text-align: left;
    line-height: 1.4;
}

.cf-slider-word-text {
    display: inline-block;
    white-space: nowrap;
    transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.cf-slider-word-stroke .cf-slider-word-text {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #1D191A;
}

.cf-slider-word-link {
    text-decoration: none;
    display: inline-block;
}

/* Message vide */
.cf-slider-words-empty {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #999;
}

/* Responsive styles - Tablette */
@media (max-width: 1024px) {
    .cf-slider-word {
        padding: 0.4em 0.8em;
    }
}

/* Responsive styles - Mobile */
@media (max-width: 767px) {
    .cf-slider-word {
        padding: 0.3em 0.6em;
    }
}

.cf-slider-word-text {
    display: inline-block;
    white-space: nowrap;
    transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.cf-slider-word-stroke .cf-slider-word-text {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #1D191A;
}

.cf-slider-word-link {
    text-decoration: none;
    display: inline-block;
}

/* Message vide */
.cf-slider-words-empty {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #999;
}

/* Responsive styles - Tablette */
@media (max-width: 1024px) {
    .cf-slider-word {
        padding: 0.4em 0.8em;
    }
}

/* Responsive styles - Mobile */
@media (max-width: 767px) {
    .cf-slider-word {
        padding: 0.3em 0.6em;
    }
}
