/* ---- Services Page ---- */
    /* ---- Header ---- */
    .service-page-header {
        margin-top: 75px;
        background: #111 url('../images/i1.webp') center center no-repeat;
        background-size: cover;
        padding: 100px 0;
        text-align: center;
        position: relative;
    }

    .service-page-header::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.65);
    }

    .service-page-header .header-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .service-page-header i {
        font-size: 48px;
        color: white;
        margin-bottom: 20px;
        display: block;
    }

    .service-page-header h1 {
        font-size: 42px;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        font-family: 'Open Sans Condensed', sans-serif;
        margin: 0 0 15px;
    }

    .service-page-header p {
        font-size: 15px;
        font-weight: 300;
        color: #ccc;
        line-height: 1.8;
    }

    /* ---- Intro 2 colonnes ---- */
    .service-intro {
        padding: 80px 0;
        background: #fff;
    }

    .service-intro .intro-inner {
        max-width: 1170px;
        margin: 0 auto;
        padding: 0 40px;
        display: flex;
        gap: 60px;
        align-items: center;
    }

    .service-intro .intro-text { flex: 1; }

    .service-intro .intro-text h2 {
        font-size: 28px;
        font-weight: 300;
        color: #2a2a2a;
        margin-bottom: 20px;
    }

    .service-intro .intro-text p {
        font-size: 14px;
        font-weight: 300;
        color: #666;
        line-height: 1.9;
        margin-bottom: 15px;
    }

    .service-intro .intro-image { flex: 1; }

    .service-intro .intro-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* ---- Description détaillée ---- */
    .service-description {
        padding: 80px 0;
        background: #f5f5f5;
    }

    .service-description .desc-inner {
        max-width: 1170px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .service-description h2 {
        font-size: 28px;
        font-weight: 300;
        color: #2a2a2a;
        margin-bottom: 30px;
    }

    .service-description p {
        font-size: 14px;
        font-weight: 300;
        color: #666;
        line-height: 2;
        margin-bottom: 15px;
    }

    /* ---- Projets liés ---- */
    .service-projets {
        padding: 70px 0;
        background: #fff;
    }

    .service-projets .projets-inner {
        max-width: 1170px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .service-projets h2 {
        font-size: 13px;
        font-weight: 700;
        font-family: 'Open Sans Condensed', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #999;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 12px;
        margin-bottom: 25px;
    }

    .projets-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .projet-card {
        border: 1px solid #e5e5e5;
        background: #fff;
        overflow: hidden;
        transition: border-color 0.3s;
        text-decoration: none;
        display: block;
        cursor: pointer;
    }

    .projet-card:hover { border-color: #aaa; }

    .projet-card .projet-img {
        width: 100%;
        height: 130px;
        overflow: hidden;
        background: #141414;
    }

    .projet-card .projet-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: opacity 0.3s, transform 0.3s;
    }

    .projet-card:hover .projet-img img {
        opacity: 0.7;
        transform: scale(1.04);
    }

    .projet-card-info {
        padding: 10px 12px 10px;
        border-top: 1px solid #efefef;
    }

    .projet-card-info p.nom {
        font-size: 11px;
        font-weight: 600;
        color: #2a2a2a;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin: 0 0 3px;
    }

    .projet-card-info p.cat {
        font-size: 10px;
        font-family: 'Open Sans Condensed', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #3498db;
        margin: 0;
    }

    /* ---- Retour ---- */
    .service-back {
        text-align: center;
        padding: 50px 0;
        background: #f5f5f5;
    }

    .service-back a {
        font-size: 11px;
        font-family: 'Open Sans Condensed', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: #555;
        border: 1px solid #999;
        padding: 8px 20px;
        transition: all 0.3s;
    }

    .service-back a:hover {
        background: #313131;
        border-color: #313131;
        color: #fff;
    }

    @media (max-width: 1024px) {
        .projets-grid { grid-template-columns: repeat(3, 1fr); }
    }

    @media (max-width: 768px) {
        .service-intro .intro-inner { flex-direction: column; }
        .projets-grid { grid-template-columns: repeat(2, 1fr); }
    }

   /* ---- Expander popup ---- */
.item-expander {
    display: none;
    position: relative;
    padding: 20px 0 50px;
    margin: 35px auto;
    text-align: center;
    background: #fcfcfc;
}

#item-expander {
    position: relative;
    padding: 10px 0;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    overflow: hidden;
}

#item-expander .cls-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    z-index: 100;
}

#item-expander .cls-btn .close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e5e5e5;
    color: #8b8b8b;
    font-size: 26px;
    font-weight: 100;
    cursor: pointer;
    float: none;
    transition: all 0.3s;
}

#item-expander .cls-btn .close:hover {
    background: #2a2a2a;
    border-color: #2a2a2a;
    color: #fff;
}

.expander-inner {
    padding: 0 20px 50px;
}

/* ---- Flèches FlexSlider dans la popup des pages service ---- */
.expander-inner .project ul.flex-direction-nav {
    display: block !important;
    opacity: 1 !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.expander-inner .project ul.flex-direction-nav li {
    display: block;
    position: static;
}

.expander-inner .project ul.flex-direction-nav li a {
    display: block !important;
    opacity: 0.8 !important;
    position: absolute !important;
    top: 50% !important;
    width: 31px !important;
    height: 52px !important;
    margin-top: -26px !important;
    background-color: #1d1d1d !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    z-index: 10;
}

.expander-inner .project ul.flex-direction-nav li a.flex-prev {
    left: 0 !important;
    background-image: url('/images/arrow-left.webp') !important;
}

.expander-inner .project ul.flex-direction-nav li a.flex-next {
    right: 0 !important;
    left: auto !important;
    background-image: url('/images/arrow-right.webp') !important;
}

.expander-inner .project ul.flex-direction-nav li a:hover {
    opacity: 1 !important;
}

/* S'assurer que le conteneur du slider est en position relative */
.expander-inner .project .flexslider {
    position: relative !important;
    overflow: hidden !important;
}

/* ---- Blocs service (icône + texte) ---- */
.service-block {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.service-block-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 2px solid #3b3b3b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-block-icon i.fa {
    font-size: 36px;
    color: #3b3b3b;
}

.service-block-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #3b3b3b;
    text-transform: uppercase;
    margin: 0 0 10px;
}