/* ==========================================================
   STYLE DE LA PAGE NOS SERVICES
   ========================================================== */
.services-main {
    padding-top: 2rem;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* En-tête de page */
.page-header {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
}

.badge-tag {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue, #2563eb);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark, #0f172a);
    letter-spacing: -1px;
}

.page-header p {
    color: var(--text-muted, #64748b);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}


/* Sections détaillées des services */
.service-detail-section {
    padding: 5rem 1.5rem;
}

/* Coller la dernière section au footer sans espace ni rupture de couleur */
.service-detail-section:last-of-type {
    padding-bottom: 1.5rem !important;
    margin-bottom: 0 !important;
}

.service-detail-section.alt-bg {
    background-color: rgba(241, 245, 249, 0.6);
    border-top: 1px solid var(--border-color, #e2e8f0);
    border-bottom: none; /* Supprime complètement le trait du bas */
}

.service-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-split-grid.reverse {
    direction: rtl;
}

.service-split-grid.reverse > * {
    direction: ltr;
}

.service-icon-box {
    width: 52px;
    height: 52px;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue, #2563eb);
    border-radius: var(--radius-md, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue, #2563eb);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.8rem 0 1.2rem;
    color: var(--text-dark, #0f172a);
    line-height: 1.2;
}

/* CORRECTION DE LA VISIBILITÉ DU TEXTE */
.service-info p {
    color: var(--text-muted, #475569); /* Texte assombri pour garantir un contraste parfait */
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-dark, #343A40);
}

.service-features-list i {
    width: 20px;
    height: 20px;
    color: #10b981;
    flex-shrink: 0;
}

/* Boîte visuelle de présentation */
.service-visual-box {
    display: flex;
    justify-content: center;
    width: 100%;
}

.visual-card-mockup {
    background: linear-gradient(135deg, #0b0f19 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg, 16px);
    padding: 3rem 2.5rem;
    text-align: center;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mockup-big-icon {
    width: 64px;
    height: 64px;
    color: var(--accent-blue, #2563eb);
    margin-bottom: 1.5rem;
}

.visual-card-mockup h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.visual-card-mockup p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================
   SUPPORT MODE SOMBRE AUTOMATIQUE POUR LES SERVICES
   ========================================================== */
@media (prefers-color-scheme: dark) {
    .service-detail-section.alt-bg {
        background-color: rgba(15, 23, 42, 0.5);
        border-top-color: #334155;
        border-bottom: none; /* Supprime le trait du bas en mode sombre */
    }

    .service-info h2 {
        color: #f8fafc;
    }

    .service-info p {
        color: #94a3b8; /* Texte clair mais lisible sur fond sombre */
    }

    .service-features-list li {
        color: #f8fafc;
    }
}

/* --- Responsive Mobile --- */
@media (max-width: 991px) {
    .service-split-grid,
    .service-split-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        direction: ltr;
    }

    .page-header h1 {
        font-size: 2.1rem;
    }

    .service-info h2 {
        font-size: 1.75rem;
    }
}