/* ==========================================
   SUPPORT & PARTS PAGE STYLES
   ========================================== */

/* Hero Section */
.support-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

    .support-hero h1 {
        font-size: 48px;
        font-weight: 900;
        text-transform: uppercase;
    }

/* Sticky Sub-navigation */
.support-subnav {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 84px; /* Adjust to match header height */
    z-index: 999;
}

    .support-subnav ul {
        display: flex;
        list-style: none;
        justify-content: center;
    }

        .support-subnav ul li a {
            display: block;
            padding: 20px 40px;
            font-weight: bold;
            text-decoration: none;
            color: #333;
            font-size: 15px;
            text-transform: uppercase;
            transition: 0.3s;
        }

            .support-subnav ul li a.sub-active,
            .support-subnav ul li a:hover {
                color: var(--sem-yellow);
                box-shadow: inset 0 -3px 0 var(--sem-yellow);
            }

/* Common Section Layout */
.support-section {
    padding: 80px 20px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

    .section-intro h2 {
        font-size: 32px;
        font-weight: 900;
        margin-bottom: 20px;
    }

/* Parts Grid */
.parts-banner img {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.parts-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
}

    .parts-card:hover {
        border-color: var(--sem-yellow);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .parts-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .parts-card h3 {
        padding: 20px;
        font-size: 18px;
        font-weight: 700;
    }

/* Service Section */
.service-promo {
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 60px;
}

.promo-text {
    max-width: 500px;
    background: rgba(0,0,0,0.7);
    padding: 40px;
}

    .promo-text h2 {
        font-size: 36px;
        margin-bottom: 15px;
    }

.service-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.s-card {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    padding: 0 0 20px 0;
}

    .s-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .s-card h3 {
        padding: 20px 20px 10px 20px;
        font-weight: 900;
    }

    .s-card p {
        padding: 0 20px;
        color: #666;
        font-size: 14px;
    }

/* Mobile */
@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
    }

    .support-subnav ul li a {
        padding: 15px 20px;
    }
}
/* --- NETWORK SECTION STYLES --- */
.network-section {
    padding: 60px 20px;
}

.network-header {
    text-align: center;
    margin-bottom: 50px;
}

    .network-header h1 {
        font-size: 36px;
        font-weight: 900;
        color: #000;
        text-transform: uppercase;
        position: relative;
        padding-bottom: 15px;
    }

        .network-header h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--sem-yellow);
        }

    .network-header p {
        margin-top: 20px;
        color: #666;
        font-size: 16px;
    }

/* LAYOUT: Map vs List */
.network-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.network-map {
    flex: 1.2;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

/* Branch List Area */
.network-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 800px;
    overflow-y: auto; /* Scrollable list like the original */
    padding-right: 10px;
}

    /* Custom Scrollbar for the list */
    .network-list::-webkit-scrollbar {
        width: 6px;
    }

    .network-list::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

/* Branch Card */
.branch-card {
    background: #fff;
    border-left: 5px solid #333; /* Dark industrial border */
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px;
    transition: 0.3s ease;
}

    .branch-card:hover {
        border-left-color: var(--sem-yellow);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

.branch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

    .branch-header i {
        color: var(--sem-yellow);
        font-size: 20px;
    }

    .branch-header h3 {
        font-size: 18px;
        font-weight: 900;
        color: #000;
    }

.branch-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}

.btn-map {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #003b83; /* Blue from BM-CAT */
    text-decoration: underline;
    text-transform: uppercase;
}

    .btn-map:hover {
        color: #000;
    }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .network-layout {
        flex-direction: column;
    }

    .network-map, .network-list {
        width: 100%;
    }
}

.network-layout {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 10px;
}

#map {
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.network-list {
    flex: 1;
    height: 600px;
    overflow-y: auto;
}

.branch-card {
    padding: 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

    .branch-card:hover {
        background: #fdfdfd;
        border-left-color: #ffcd00; /* Jaune SEM */
    }

    .branch-card h3 {
        font-size: 16px;
        margin-bottom: 5px;
        font-weight: 900;
    }

    .branch-card p {
        font-size: 13px;
        color: #666;
        margin: 2px 0;
    }


/* --- SECTION STATISTIQUES RÉSEAU --- */
.network-key-figures {
    padding: 60px 0;
    background-color: #fff;
}

.stats-main-title {
    font-size: 32px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-align: center;
}

.stats-container-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur desktop */
    gap: 30px;
}

.stat-card {
    padding: 20px;
    border-left: 1px solid #eee; /* Petite séparation subtile */
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #ffcd00; /* Jaune SEM / CAT */
    line-height: 1;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    font-weight: 700;
}

/* --- RESPONSIVE --- */

/* Tablettes (2 colonnes) */
@media (max-width: 992px) {
    .stats-container-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiles (1 colonne) */
@media (max-width: 576px) {
    .stats-container-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stat-card {
        border-left: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
    }

    .stat-number {
        font-size: 60px;
    }
}

/* --- PARTS INTRO (Text + Image Aside) --- */
.parts-intro-section {
    padding: 80px 20px;
}

.parts-intro-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px; /* Space before the grid starts */
}

.parts-intro-text {
    flex: 1.2;
}

    .parts-intro-text h1 {
        font-size: 42px;
        font-weight: 900;
        margin-bottom: 30px;
        text-transform: uppercase;
    }

    .parts-intro-text p {
        font-size: 15px;
        line-height: 1.8;
        color: #444;
        margin-bottom: 20px;
    }

.parts-intro-image {
    flex: 1;
}

    .parts-intro-image img {
        width: 100%;
        height: auto;
        display: block;
    }

/* --- SMALLER PARTS CATEGORY GRID (SEM Style) --- */
.parts-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.parts-thumb-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .parts-thumb-card:hover {
        transform: translateY(-5px);
    }

/* Circular thumbnail frame */
.thumb-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.parts-thumb-card:hover .thumb-circle {
    border-color: var(--sem-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.thumb-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parts-thumb-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .parts-intro-flex {
        flex-direction: column;
        gap: 40px;
    }

    .parts-intro-text {
        order: 2; /* Text goes below image on mobile */
    }

    .parts-intro-image {
        order: 1;
    }

    .parts-category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
    }

    .thumb-circle {
        width: 120px;
        height: 120px;
    }
}

/* --- SERVICE CARDS (STYLE BM-CAT) --- */
.service-cards {
    padding: 60px 0;
}

.service-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.s-card {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .s-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .s-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }

.s-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.s-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    min-height: 44px; /* Aligne les titres sur 2 lignes */
}

.s-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pousse le bouton vers le bas */
}

/* BOUTON SERVICE (STYLE JAUNE SEM) */
.btn-service {
    display: inline-block;
    padding: 12px 20px;
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    transition: 0.3s;
    text-transform: uppercase;
}

.s-card:hover .btn-service {
    background-color: var(--sem-yellow);
    border-color: var(--sem-yellow);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
    }

    .s-card img {
        height: 200px;
    }
}