/**
 * Slider Text Widget - Styles
 *
 * @package Synergin
 * @since 1.0.0
 */

.slider-text-widget {
    background-color: #E9E9E9;
    padding: 2rem;
    font-family: inherit;
}

/* Navigation */
.slider-text-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.slider-text-nav-item {
    cursor: pointer;
    border: 1px solid #e0e0e0;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

/* Forme: Pointes (défaut - flèche orientée droite, comme l'image) */
.slider-text-widget[data-nav-shape="pointed"] .slider-text-nav-item {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.slider-text-widget[data-nav-shape="pointed"] .slider-text-nav-item + .slider-text-nav-item {
    margin-left: -6px;
}

/* Forme: Coins arrondis */
.slider-text-widget[data-nav-shape="rounded"] .slider-text-nav-item {
    border-radius: 8px;
}

/* Forme: Carré */
.slider-text-widget[data-nav-shape="square"] .slider-text-nav-item {
    border-radius: 0;
}

/* Forme: Pilule */
.slider-text-widget[data-nav-shape="pill"] .slider-text-nav-item {
    border-radius: 999px;
}

/* Forme: Cercle (label court recommandé) */
.slider-text-widget[data-nav-shape="circle"] .slider-text-nav-item {
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
}

/* Actif - violet par défaut */
.slider-text-nav-item.active {
    border-color: transparent;
}

.slider-text-nav-item:not(.active):hover {
    border-color: #7A36EB;
}

/* Slides - superposition pour un seul visible à la fois */
.slider-text-slides {
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.slider-text-widget .slider-text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.slider-text-widget .slider-text-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    z-index: 1;
}

/* Titre */
.slider-text-title-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.slider-text-title-line1,
.slider-text-title-line2 {
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.slider-text-title-line1 {
    color: #000000;
}

.slider-text-title-line2 {
    color: #7A36EB;
}

/* Wrapper barre de séparation (pour alignement) */
.slider-text-separator-wrap {
    margin: 1rem 0;
    text-align: center;
}

.slider-text-separator {
    display: inline-block;
    width: 80px;
    height: 4px;
    background-color: #7A36EB;
}

/* Contenu */
.slider-text-body {
    max-width: 800px;
    margin: 0 auto;
}

.slider-text-content {
    color: #000000;
    line-height: 1.6;
    text-align: left;
}

.slider-text-content p {
    margin: 0 0 1em;
}

.slider-text-content p:last-child {
    margin-bottom: 0;
}

.slider-text-content u {
    color: #8B5CF6;
    text-decoration: underline;
}

.slider-text-conclusion {
    font-weight: 700;
    font-size: 1.05em;
    margin-top: 1.5em;
}

/* Reset bouton */
.slider-text-nav-item {
    font-family: inherit;
    background: none;
}
