/* Container principal */
.uc-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* Menu gauche */
.uc-menu {
    flex: 1;
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    padding: 30px 20px;
    min-width: 320px;
}

.uc-tab {
    position: relative;
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 12px;
    border: none;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.uc-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(180deg, #220660, #f91e5a, #5ce1e6);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.uc-tab::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8fafc;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.uc-tab span {
    position: relative;
    z-index: 2;
}

.uc-tab:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(34, 6, 96, 0.15);
}

.uc-tab:hover::after {
    opacity: 1;
}

.uc-tab.active {
    background: white;
    color: #220660;
    transform: translateX(12px);
    box-shadow: 0 8px 32px rgba(34, 6, 96, 0.2);
}

.uc-tab.active::before {
    width: 5px;
}

/* Contenu droit */
.uc-content {
    flex: 2.5;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.uc-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.uc-item.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: all;
}

.uc-item.exiting {
    opacity: 0;
    transform: translateX(-60px);
}

.uc-block {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-left: 6px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.uc-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0), rgba(255,255,255,0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.uc-block:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.uc-block:hover::before {
    opacity: 1;
}

.uc-block.pain { 
    border-left-color: #220660;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}
.uc-block.solution { 
    border-left-color: #f91e5a;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}
.uc-block.result { 
    border-left-color: #5ce1e6;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

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

.uc-block h3 {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.uc-block p {
    line-height: 1.7;
    color: #4b5563;
    position: relative;
    margin: 0;
}

/* Bouton animé */
.uc-button {
    margin-top: 40px;
    text-align: center;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.btn-uc {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #220660;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-uc:link,
.btn-uc:visited {
    text-decoration: none !important;
    color: #220660;
    box-shadow: 0 6px 35px rgba(0,0,0,0.15);

}

.btn-uc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #220660, #f91e5a, #5ce1e6);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.btn-uc:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    text-decoration: none !important;
    color: #220660;
}

.btn-uc:hover::before {
    top: auto;
    bottom: 0;
    border-radius: 0 0 8px 8px;
}

/* Progress indicator */
.progress-indicator {
    position: absolute;
    top: 20px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(34, 6, 96, 0.2);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: linear-gradient(135deg, #220660, #f91e5a);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .uc-container {
        flex-direction: column;
        margin: 20px;
        border-radius: 12px;
    }
    
    .uc-menu {
        min-width: auto;
        padding: 20px;
    }
    
    .uc-content {
        padding: 30px 20px;
    }
    
    .uc-tab {
        font-size: 13px;
        padding: 14px 16px;
        transform: none !important;
    }
    
    .uc-tab:hover,
    .uc-tab.active {
        transform: none !important;
    }
    
    .uc-block {
        padding: 20px;
    }
    
    .uc-block h3 {
        font-size: 18px;
    }
    
    .progress-indicator {
        top: 10px;
        right: 20px;
    }
}