﻿/* ================================
   SERVICES PAGE - STYLES MODERNISÉS
   ================================ */

/* Hero Services */
.hero--services {
    min-height: 420px;
}

    .hero--services h1 {
        font-size: 2.5rem;
        max-width: 900px;
        margin: 0 auto 1.5rem;
    }

    .hero--services .hero-subtitle {
        max-width: 800px;
        margin: 0 auto 2rem;
    }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    color: white;
}

/* ================================
   APPROCHE SECTION
   ================================ */

.services-approach {
    background: var(--bg-secondary);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.approach-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

    .approach-content h2 {
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 1rem;
    }

    .approach-content > p {
        color: var(--text-medium);
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

.approach-pillars {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

    .pillar-item:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.pillar-emoji {
    font-size: 1.5rem;
}

.pillar-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ================================
   NAVIGATION PAR ONGLETS
   ================================ */

.services-tabs-section {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 73px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.services-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    justify-content: center;
}

    .services-tabs::-webkit-scrollbar {
        display: none;
    }

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

    .tab-btn:hover {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }

    .tab-btn.active {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        border-color: var(--primary);
        color: white;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    }

.tab-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.tab-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.tab-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
}

.tab-btn.active .tab-subtitle {
    opacity: 0.9;
}

/* ================================
   CONTENU DES ONGLETS
   ================================ */

.tabs-content-wrapper {
    background: var(--bg-primary);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

    .tab-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   HERO DE SERVICE
   ================================ */

.service-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, white 100%);
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.service-hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.service-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.service-hero-tagline {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   SECTION CONTENU
   ================================ */

.service-content-section {
    padding: 4rem 0;
}

.service-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

    .service-intro p {
        color: var(--text-medium);
        font-size: 1.05rem;
        line-height: 1.7;
    }

.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.service-main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ================================
   PHASES AMOA - LAYOUT HORIZONTAL
   ================================ */

.amoa-phases-horizontal {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 3rem;
    overflow-x: visible;
    padding-bottom: 1rem;
}

.amoa-phase-card {
    flex: 1;
    min-width: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .amoa-phase-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary);
    }

.amoa-phase-number {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
}

.amoa-phase-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.amoa-phase-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.amoa-phase-items {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

    .amoa-phase-items li {
        padding-left: 1.25rem;
        position: relative;
        color: var(--text-medium);
        font-size: 0.9rem;
        line-height: 1.4;
    }

        .amoa-phase-items li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 700;
            font-size: 0.85rem;
        }

.amoa-phase-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    width: 30px;
}

/* Responsive AMOA */
@media (max-width: 1400px) {
    .amoa-phases-horizontal {
        flex-wrap: nowrap;
    }

    .amoa-phase-card {
        min-width: 0;
        flex: 1;
    }

    .dev-process {
        grid-template-columns: repeat(3, 1fr);
    }

    .automation-solutions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    /* Réduire à 3 colonnes pour dev-process */
    .dev-process {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Phases AMOA - réduire padding */
    .amoa-phase-card {
        padding: 1.25rem 0.875rem;
    }

    .amoa-phase-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {
    /* Dev-process en 2 colonnes */
    .dev-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .amoa-phases-horizontal {
        gap: 0.75rem;
    }

    .amoa-phase-card {
        min-width: 0;
        padding: 1.5rem 1rem;
    }

    .amoa-phase-arrow {
        font-size: 1.5rem;
        width: 25px;
    }

    .dev-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .amoa-phases-horizontal {
        flex-direction: column;
        align-items: stretch;
    }

    .amoa-phase-card {
        min-width: 100%;
    }

    .amoa-phase-arrow {
        transform: rotate(90deg);
        width: 100%;
        height: 30px;
    }

    .dev-process,
    .automation-solutions {
        grid-template-columns: 1fr;
    }
}

/* Ancien style phases - gardé pour compatibilité */

/* 
.phases-timeline {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.phase-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phase-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
}

.phase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.phase-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.5rem;
}

.phase-title-block h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.phase-tagline {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.phase-content {
    margin-left: 75px;
}

.phase-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.phase-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
    line-height: 1.6;
}

.phase-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
*/


/* ================================
   CONSEIL CARDS - LAYOUT HORIZONTAL
   ================================ */

.conseil-horizontal {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.conseil-card-horizontal {
    flex: 1;
    min-width: 240px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .conseil-card-horizontal:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary);
    }

.conseil-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.conseil-card-horizontal h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.conseil-card-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.conseil-items-compact {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

    .conseil-items-compact li {
        padding-left: 1.25rem;
        position: relative;
        color: var(--text-medium);
        font-size: 0.9rem;
        text-align: left;
    }

        .conseil-items-compact li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 700;
        }

/* Responsive Conseil */
@media (max-width: 1400px) {
    .conseil-horizontal {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .conseil-card-horizontal {
        min-width: 220px;
        flex: 0 0 auto;
    }
}

@media (max-width: 1024px) {
    .conseil-horizontal {
        gap: 1rem;
    }

    .conseil-card-horizontal {
        min-width: 200px;
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .conseil-horizontal {
        flex-direction: column;
        align-items: stretch;
    }

    .conseil-card-horizontal {
        min-width: 100%;
    }
}

/* Anciens styles conseil - commentés */
/*
.conseil-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
*/

/* ================================
   CONSEIL CARDS (ancien style - gardé commenté)
   ================================ */

/*
.conseil-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.conseil-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.conseil-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.conseil-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.conseil-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.conseil-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.conseil-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.conseil-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.conseil-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ================================
   DEV PROCESS
   ================================ */

.dev-process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.dev-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .dev-step:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
    }

.dev-step-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--bg-secondary);
    border-radius: 10px;
    font-size: 1.5rem;
}

.dev-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.dev-step p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* App Types */
.app-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.app-type-card {
    padding: 1.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .app-type-card:hover {
        background: white;
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
    }

    .app-type-card h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 0.5rem;
    }

    .app-type-card p {
        color: var(--text-medium);
        font-size: 0.95rem;
        margin: 0;
    }

/* ================================
   AUTOMATION
   ================================ */

.automation-solutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.automation-solution-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .automation-solution-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

.automation-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), white);
    border-bottom: 1px solid var(--border-color);
}

.automation-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.automation-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.automation-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.automation-body {
    padding: 2rem;
}

    .automation-body h5 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 1rem;
    }

.automation-features {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

    .automation-features li {
        padding-left: 1.5rem;
        position: relative;
        color: var(--text-medium);
    }

        .automation-features li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 700;
        }

.automation-example {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
}

    .automation-example strong {
        display: block;
        color: var(--primary-dark);
        margin-bottom: 0.5rem;
    }

    .automation-example p {
        color: var(--text-medium);
        font-size: 0.95rem;
        margin: 0;
        line-height: 1.6;
    }

/* ================================
   TMA OFFERS
   ================================ */

.tma-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tma-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

    .tma-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.tma-featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff 0%, var(--bg-secondary) 100%);
}

.tma-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 0.4rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tma-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.tma-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tma-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

    .tma-features li {
        padding: 0.5rem 0;
        color: var(--text-medium);
    }

.tma-includes strong {
    display: block;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tma-includes ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

    .tma-includes ul li {
        padding-left: 1.5rem;
        position: relative;
        color: var(--text-medium);
        font-size: 0.95rem;
    }

        .tma-includes ul li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 700;
        }

/* ================================
   PROCESS HORIZONTAL
   ================================ */

.tma-process {
    margin-top: 3rem;
}

.process-steps-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .process-step:hover {
        border-color: var(--primary);
        box-shadow: var(--shadow-md);
    }

.process-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    border-radius: 50%;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.process-step h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.process-step p {
    color: var(--text-medium);
    font-size: 0.85rem;
    margin: 0;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* ================================
   SIDEBAR
   ================================ */

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 150px;
}

.highlight-card {
    padding: 1.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

    .highlight-card h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 1rem;
    }

.highlight-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .highlight-list li {
        padding-left: 1.5rem;
        position: relative;
        color: var(--text-medium);
    }

        .highlight-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 700;
        }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

    .tech-tag:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

.stats-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

    .stats-card h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 1.5rem;
    }

.stat-item {
    padding: 1rem 0;
    text-align: center;
}

    .stat-item + .stat-item {
        border-top: 1px solid var(--border-color);
    }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ================================
   ACTIONS
   ================================ */

.service-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ================================
   CTA FINAL
   ================================ */

.final-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

    .final-cta h2 {
        font-size: 2.25rem;
        font-weight: 800;
        margin-bottom: 1.25rem;
        color: white;
    }

    .final-cta p {
        font-size: 1.15rem;
        max-width: 700px;
        margin: 0 auto 2.5rem;
        opacity: 0.95;
        line-height: 1.7;
    }

.final-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    .process-steps-horizontal {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    /* Grilles en 2 colonnes sur tablette */
    .dev-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .automation-solutions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero--services h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .approach-content h2 {
        font-size: 1.75rem;
    }

    .approach-pillars {
        gap: 1rem;
    }

    .services-tabs-section {
        top: 65px;
    }

    .services-tabs {
        justify-content: flex-start;
        padding: 0.75rem 0;
    }

    .tab-btn {
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }

    .tab-icon {
        font-size: 1.35rem;
    }

    .service-hero h2 {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    /* Tout en 1 colonne sur mobile */
    .app-types,
    .tma-offers,
    .dev-process,
    .automation-solutions {
        grid-template-columns: 1fr;
    }

    /* Ajustements pour dev-step en mode mobile */
    .dev-step {
        padding: 1.25rem;
    }

    .dev-step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 520px) {
    .service-hero {
        padding: 2rem 0 1.5rem;
    }

    .service-content-section {
        padding: 3rem 0;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .approach-content {
        padding: 0 1rem;
    }

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

    .hero--services h1 {
        font-size: 1.65rem;
    }

    .service-hero h2 {
        font-size: 1.75rem;
    }

    .tab-icon {
        font-size: 1.25rem;
    }

    .amoa-phase-card,
    .dev-step,
    .automation-solution-card {
        padding: 1rem;
    }

    .amoa-phase-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 1.35rem;
    }

    /* S'assurer que le container a du padding sur mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }

    .tab-btn {
        padding: 0.625rem 1rem;
    }

    .amoa-phase-arrow {
        font-size: 1.25rem;
    }
}



/* === MODE MOBILE : désactiver les onglets et afficher tout === */
@media (max-width: 768px) {
    /* 1) Cacher la barre d’onglets */
    .services-tabs-section {
        display: none !important; /* enlève complètement les tabs */
    }

    /* 2) Afficher toutes les sections de contenu */
    .tabs-content-wrapper .tab-panel {
        display: block !important; /* annule display:none par défaut */
        animation: none; /* évite les micro-saccades */
    }

        /* 3) Un peu d’air entre les blocs */
        .tabs-content-wrapper .tab-panel + .tab-panel {
            margin-top: 2rem;
            border-top: 1px solid var(--border-color);
            padding-top: 2rem;
        }
}
