.services-page {
    max-width: 100%;
    padding: 60px 20px;
}

.nsc-sidebar {
    position: sticky;
    top: 200px;
    left: 3%;
    width: 300px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 40px;
    float: left; 
}

.nsc-sidebar-title {
    background: linear-gradient(135deg, #2e86ab, #1E3A5F);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 16px;
}

.nsc-search-wrap {
    position: relative;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #eef1f4;
}
.nsc-search-input {
    width: 100%;
    padding: 9px 32px 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #444;
    background: #f8fafc;
    font-family: inherit;
    transition: all .2s;
    box-sizing: border-box;
}
.nsc-search-input:focus {
    border-color: #2E86AB;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,134,171,0.08);
}
.nsc-search-icon {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: #2E86AB;
    font-size: 11px;
    pointer-events: none;
}
.nsc-filter-group {
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.nsc-filter-group:last-child {
    border-bottom: none;
}
.nsc-filter-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2E86AB;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.nsc-filter-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.nsc-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    white-space: nowrap;
    width: auto;
}
.nsc-filter-btn:hover {
    border-color: #2E86AB;
    color: #2E86AB;
    background: #f0f8ff;
}
.nsc-filter-btn.active {
    background: #1E3A5F;
    border-color: #1E3A5F;
    color: #fff;
    font-weight: 600;
}
.nsc-filter-btn i {
    font-size: 12px;
}
/* Contenu */
.nsc-content-wrap {
    width: 1140px;
    margin-left: 360px;    
}
/* No results */
.nsc-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.nsc-no-results i {
    font-size: 40px;
    color: #dde3ea;
    display: block;
    margin-bottom: 16px;
}
.nsc-no-results p { font-size: 15px; margin-bottom: 20px; }
.nsc-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #1E3A5F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
.nsc-reset-btn:hover { background: #2E86AB; }

/* Catalogue */
.cat-section { margin-bottom: 60px; }
.cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #1E3A5F;
}
.cat-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.service-card {
    box-shadow: 8px 0px 24px 0px rgba(30,58,95,0.5) !important;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all .2s;
    min-height: 160px;
    opacity: 0;
    position: relative;
} 
.service-card.has-badge {
    padding-top: 25px;
}
.service-card-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 0 12px 0 8px;
    z-index: 1;
}
.service-card.is-visible {
    animation: fadeInLeft .40s ease forwards;
}
.service-card:hover {
    border-color: #2E86AB;
    box-shadow: 12px 0px 32px 0px rgba(30,58,95,0.65) !important;
    transform: translateY(-2px) !important;
}
.nsc-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 8px;
}
.nsc-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}
.nsc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.nsc-prix { font-size: 13px; font-weight: 600; color: #2E86AB; }
.nsc-arrow { font-size: 16px; color: #2E86AB; transition: transform .2s; }
.service-card:hover .nsc-arrow { transform: translateX(4px); }
.formation-card { border-color: #2E86AB; background: #f0f8ff; }

@keyframes highlight {
    0%   { background-color: transparent; }
    25%  { background-color: rgba(46,134,171,0.15); }
    75%  { background-color: rgba(46,134,171,0.15); }
    100% { background-color: transparent; }
}
.cat-section.is-highlighted {
    border-radius: 12px;
    animation: highlight 1.8s ease-in-out;
}

@media (max-width: 900px) {
    .nsc-sidebar {
        position: static;
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .nsc-filter-group {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .nsc-filter-btn {
        width: auto;
    }

    .nsc-content-wrap {
        width: 100%;
        margin: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}