/* ==========================================================================
   Page Nos Services — Styles dédiés
   Couleurs : #2f5083 (primaire), #bcab8d (accent/boutons)
   ========================================================================== */

/* ---------- Hero ---------- */
.ns-hero {
    background: linear-gradient(135deg, #2f5083 0%, #1a3358 100%);
    color: #fff;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.ns-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(188,171,141,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ns-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ns-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
    line-height: 1.2;
}

.ns-hero h1 span {
    color: #bcab8d;
}

.ns-hero .ns-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.92;
    max-width: 640px;
    margin-bottom: 36px;
    font-weight: 300;
}

.ns-hero .btn:hover,
.ns-hero .btn:focus,
.ns-hero .btn:active {
    background: transparent;
    border-color: currentColor;
}

/* ---------- Sections communes ---------- */
.ns-section {
    padding: 90px 0;
}

.ns-section-alt {
    background-color: #f8f9fa;
}

.ns-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2f5083;
    margin-bottom: 16px;
    text-align: center;
}

.ns-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* ---------- Grille Services ---------- */
.ns-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ns-service-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 2px 12px rgba(47, 80, 131, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(47, 80, 131, 0.06);
}

.ns-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2f5083, #bcab8d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ns-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(47, 80, 131, 0.14);
}

.ns-service-card:hover::after {
    transform: scaleX(1);
}

.ns-service-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(47, 80, 131, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.3s ease;
}

.ns-service-card:hover .ns-service-icon {
    background: rgba(47, 80, 131, 0.14);
}

.ns-service-icon svg {
    width: 36px;
    height: 36px;
}

.ns-service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2f5083;
    margin-bottom: 14px;
}

.ns-service-card p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 0;
}

/* ---------- Approche / Timeline ---------- */
.ns-approach {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.ns-approach::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, #bcab8d, #2f5083);
    z-index: 0;
}

.ns-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.ns-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2f5083;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(47, 80, 131, 0.25);
    position: relative;
}

.ns-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2f5083;
    margin-bottom: 8px;
}

.ns-step p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    padding: 0 8px;
}

/* ---------- Section Formations / IA ---------- */
.ns-formations {
    background: linear-gradient(135deg, #2f5083 0%, #1a3358 100%);
    color: #fff;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.ns-formations::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(188,171,141,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ns-formations-content {
    position: relative;
    z-index: 1;
}

.ns-formations h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.ns-formations h2 span {
    color: #bcab8d;
}

.ns-formations .ns-formations-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.92;
    margin-bottom: 40px;
    max-width: 720px;
    font-weight: 300;
}

.ns-formation-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.ns-formation-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.ns-formation-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ns-formation-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(188, 171, 141, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-formation-item-icon svg {
    width: 24px;
    height: 24px;
}

.ns-formation-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.ns-formation-item p {
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 0;
}

.ns-formations .btn:hover,
.ns-formations .btn:focus,
.ns-formations .btn:active {
    background: transparent;
    border-color: currentColor;
}

/* ---------- FAQ ---------- */
.ns-faq-item {
    margin-bottom: 40px;
}

.ns-faq-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2f5083;
    margin-bottom: 10px;
}

.ns-faq-item p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* ---------- CTA Final ---------- */
.ns-cta-final {
    background: linear-gradient(135deg, #2f5083 0%, #1a3358 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.ns-cta-final h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.ns-cta-final p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    font-weight: 300;
}

.ns-cta-final .btn:hover,
.ns-cta-final .btn:focus,
.ns-cta-final .btn:active {
    background: transparent;
    border-color: currentColor;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ns-hero {
        padding: 70px 0 60px;
    }

    .ns-hero h1 {
        font-size: 2.2rem;
    }

    .ns-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .ns-approach {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .ns-approach::before {
        display: none;
    }

    .ns-formation-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ns-hero {
        padding: 50px 0 40px;
    }

    .ns-hero h1 {
        font-size: 1.8rem;
    }

    .ns-hero .ns-hero-subtitle {
        font-size: 1.05rem;
    }

    .ns-section {
        padding: 60px 0;
    }

    .ns-section-title {
        font-size: 1.6rem;
    }

    .ns-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ns-service-card {
        padding: 30px 24px;
    }

    .ns-approach {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .ns-formations {
        padding: 60px 0;
    }

    .ns-cta-final {
        padding: 60px 0;
    }

    .ns-cta-final h2 {
        font-size: 1.6rem;
    }
}
