/*** 
=============================================
    Services Dynamic Content CSS
=============================================
***/

/* Service Navigation Menu */
.service-nav-menu {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 5px 30px 0px rgba(0, 0, 0, 0.08);
    padding: 30px 0;
    margin-bottom: 30px;
}

.service-nav-title {
    padding: 0 30px 20px;
    border-bottom: 2px solid #f2f3fa;
    margin-bottom: 20px;
}

.service-nav-title h3 {
    color: var(--thm-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-pages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-menu-item {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f2f3fa;
    transition: all 0.3s ease;
}

.service-menu-item:last-child {
    border-bottom: none;
}

.service-menu-item:hover {
    background: rgba(var(--thm-primary-rgb), 0.05);
}

.service-menu-item.active {
    background: linear-gradient(135deg, var(--thm-primary) 0%, var(--thm-base) 100%);
}

.service-menu-item.active .service-link {
    color: #ffffff;
}

.service-menu-item.active .service-link .service-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.service-menu-item.active .service-link .icon-next-1 {
    color: #ffffff;
    transform: translateX(5px);
}

.service-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: var(--thm-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-link:hover {
    color: var(--thm-base);
    text-decoration: none;
    padding-left: 35px;
}

.service-menu-item.active .service-link:hover {
    color: #ffffff;
    padding-left: 30px;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(var(--thm-primary-rgb), 0.1);
    border-radius: 8px;
    margin-right: 15px;
    color: var(--thm-primary);
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-link:hover .service-icon {
    background: rgba(var(--thm-base-rgb), 0.15);
    transform: scale(1.1);
}

.service-menu-item.active .service-link:hover .service-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.service-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.service-menu-item.active .service-text {
    font-weight: 700;
}

.icon-next-1 {
    margin-left: auto;
    color: var(--thm-base);
    font-size: 18px;
    transition: all 0.3s ease;
}

.service-link:hover .icon-next-1 {
    transform: translateX(5px);
    color: var(--thm-base);
}

/* Service Content Wrapper */
.service-content-wrapper {
    position: relative;
    min-height: 500px;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.service-content-wrapper .loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.service-content-wrapper .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.service-content-wrapper .spinner-border.text-primary {
    color: var(--thm-primary) !important;
    border-color: var(--thm-primary);
    border-right-color: transparent;
}

.service-content-item {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.service-content-item.active {
    display: block;
}

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

/* Amélioration des styles existants pour le contenu */
.service-details__content .img-box1 {
    position: relative;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.1);
}

.service-details__content .img-box1 img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-details__content .img-box1:hover img {
    transform: scale(1.05);
}

.service-details__content .text-box1 {
    margin-bottom: 35px;
}

.service-details__content .text-box1 h2 {
    color: var(--thm-primary);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

.service-details__content .text-box1 p {
    font-size: 17px;
    line-height: 1.9;
    color: #555555;
    margin-bottom: 20px;
}

.service-details__content .text-box2 {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #f2f3fa;
    border-bottom: 2px solid #f2f3fa;
}

.service-details__content .text-box2-single {
    padding: 20px 0;
    transition: all 0.3s ease;
}

.service-details__content .text-box2-single:hover {
    padding-left: 15px;
    background: rgba(var(--thm-primary-rgb), 0.05);
    border-radius: 8px;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.service-details__content .text-box2-single h4 {
    color: var(--thm-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-details__content .text-box2-single h4 .icon-right-arrow {
    margin-right: 10px;
    color: var(--thm-base);
    font-size: 18px;
}

.service-details__content .text-box2-single p {
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
    margin: 0;
}

.service-details__content .text-box3 {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--thm-base);
}

.service-details__content .text-box3 p {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .service-nav-menu {
        margin-bottom: 40px;
    }
    
    .service-details__content .text-box1 h2 {
        font-size: 28px;
    }
    
    .service-details__content .text-box1 p {
        font-size: 16px;
    }
    
    .service-text {
        font-size: 15px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .service-nav-menu {
        padding: 20px 0;
    }
    
    .service-nav-title {
        padding: 0 20px 15px;
    }
    
    .service-nav-title h3 {
        font-size: 20px;
    }
    
    .service-link {
        padding: 15px 20px;
    }
    
    .service-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .service-text {
        font-size: 14px;
    }
    
    .service-details__content .text-box1 h2 {
        font-size: 24px;
    }
    
    .service-details__content .text-box1 p {
        font-size: 15px;
    }
    
    .service-details__content .text-box2-single {
        margin-bottom: 15px;
    }
}

/* Animation pour le changement de contenu */
.service-content-wrapper {
    position: relative;
}

.service-content-item {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.service-content-item.fade-out {
    animation-name: fadeOut;
}

.service-content-item.fade-in {
    animation-name: fadeIn;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

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

/* Amélioration de l'apparence du menu */
.service-menu-item {
    position: relative;
    overflow: hidden;
}

.service-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--thm-base);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.service-menu-item.active::before,
.service-menu-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-menu-item.active::before {
    background: #ffffff;
}

/* Smooth transition pour les changements */
.service-content-wrapper * {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

