/* S4 Elementor Tabs - Styles */

.s4-tabs-wrapper {
    width: 100%;
}

/* Navigation */
.s4-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
}

.s4-tabs-nav[style*="stretch"] .s4-tab-btn {
    flex: 1;
    text-align: center;
}

/* Point coloré - caché par défaut */
.s4-tab-dot {
    display: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Boutons */
.s4-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    font-family: inherit;
}

.s4-tab-btn:hover {
    color: #333;
}

.s4-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0073aa;
}

.s4-tab-icon {
    display: flex;
    align-items: center;
}

.s4-tab-icon svg {
    width: 1em;
    height: 1em;
}

/* Style Dots (Points colorés) */
.s4-tabs-dots .s4-tabs-nav {
    border-bottom: 2px solid #0a1f44;
    gap: 40px;
    padding-bottom: 15px;
}

.s4-tabs-dots .s4-tab-btn {
    padding: 10px 0;
    margin-bottom: 0;
    color: #0a1f44;
    font-weight: 600;
    font-size: 16px;
}

.s4-tabs-dots .s4-tab-btn:hover {
    color: #0a1f44;
}

.s4-tabs-dots .s4-tab-btn.active::after {
    display: none;
}

.s4-tabs-dots .s4-tab-dot {
    display: block;
}

/* Style Pills */
.s4-tabs-pills .s4-tabs-nav {
    border-bottom: none;
    gap: 10px;
    margin-bottom: 20px;
}

.s4-tabs-pills .s4-tab-btn {
    background: #f0f0f0;
    border-radius: 50px;
    margin-bottom: 0;
}

.s4-tabs-pills .s4-tab-btn:hover {
    background: #e0e0e0;
}

.s4-tabs-pills .s4-tab-btn.active {
    background: #0073aa;
    color: white;
}

.s4-tabs-pills .s4-tab-btn.active::after {
    display: none;
}

/* Style Boxed */
.s4-tabs-boxed .s4-tabs-nav {
    border-bottom: none;
    gap: 10px;
    margin-bottom: 20px;
}

.s4-tabs-boxed .s4-tab-btn {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0;
}

.s4-tabs-boxed .s4-tab-btn:hover {
    background: #eee;
}

.s4-tabs-boxed .s4-tab-btn.active {
    background: white;
    border-color: #0073aa;
}

.s4-tabs-boxed .s4-tab-btn.active::after {
    display: none;
}

/* Style Minimal */
.s4-tabs-minimal .s4-tabs-nav {
    border-bottom: none;
    gap: 30px;
    margin-bottom: 20px;
}

.s4-tabs-minimal .s4-tab-btn {
    padding: 8px 0;
    margin-bottom: 0;
}

.s4-tabs-minimal .s4-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0073aa;
    transition: width 0.3s ease;
}

.s4-tabs-minimal .s4-tab-btn:hover::after {
    width: 100%;
}

.s4-tabs-minimal .s4-tab-btn.active::after {
    width: 100%;
}

/* Contenu */
.s4-tabs-content {
    width: 100%;
    padding-top: 20px;
}

.s4-tab-panel {
    display: none;
    animation: s4FadeIn 0.4s ease;
}

.s4-tab-panel.active {
    display: block;
}

@keyframes s4FadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 767px) {
    .s4-tabs-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 5px;
    }
    
    .s4-tab-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .s4-tab-btn.active::after {
        display: none;
    }
    
    .s4-tab-btn.active {
        background: #f5f5f5;
    }
    
    .s4-tabs-pills .s4-tab-btn,
    .s4-tabs-boxed .s4-tab-btn {
        border-radius: 5px;
    }
}
