/* ========================================
   SERVICES PAGE — styles spécifiques
   Chargé uniquement par pages/services.html
   ======================================== */

/* ── Filter / nav bar ───────────────────────── */
.srv-filter-nav {
    position: sticky;
    top: 64px;
    z-index: 90;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,61,110,0.08);
    box-shadow: 0 4px 20px rgba(0,61,110,0.06);
    padding: 10px 0;
}
@media (max-width: 768px) {
    .srv-filter-nav { padding: 8px 0; top: 60px; }
    .srv-pill { padding: 7px 14px; font-size: 0.78rem; }
}
.srv-filter-nav .container {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.srv-filter-nav .container::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none;
}
@media (min-width: 900px) {
    .srv-filter-nav .container { justify-content: center; }
}
.srv-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--light-color);
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
}
.srv-pill i { font-size: 0.8rem; }
.srv-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0,61,110,0.05);
    transform: translateY(-2px);
}
.srv-pill.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,61,110,0.3);
    transform: translateY(-2px);
}

/* ── Scroll offset pour les ancres (header + barre filtre sticky) ── */
#services-overview,
#service-btp,
#service-hydraulique,
#service-nettoiement,
#service-communication,
#service-bureau,
#services-divers {
    scroll-margin-top: 160px;
}
@media (max-width: 768px) {
    #services-overview,
    #service-btp,
    #service-hydraulique,
    #service-nettoiement,
    #service-communication,
    #service-bureau,
    #services-divers {
        scroll-margin-top: 120px;
    }
}

/* ── Section header ─────────────────────────── */
.srv-section-hdr { text-align: center; margin-bottom: 50px; }
.srv-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 3px;
    margin-bottom: 12px;
}
.srv-section-hdr h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.srv-section-hdr p  { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── Process section ────────────────────────── */
.srv-process-section { padding: 70px 0; background: var(--light-color); }
.srv-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.srv-process-grid::before {
    content: '';
    position: absolute;
    top: 40px; left: 40px; right: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 20%, var(--primary-color) 80%, transparent);
    z-index: 0;
}
@media (max-width: 900px) { .srv-process-grid { grid-template-columns: repeat(2, 1fr); } .srv-process-grid::before { display: none; } }
@media (max-width: 500px) { .srv-process-grid { grid-template-columns: 1fr; } }
.srv-process-step { text-align: center; position: relative; z-index: 1; }
.srv-process-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem; color: #fff;
    box-shadow: 0 8px 24px rgba(0,61,110,0.25);
}
.srv-process-num { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; color: var(--primary-color); text-transform: uppercase; margin-bottom: 8px; }
.srv-process-step h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.srv-process-step p  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* ── Overview cards ─────────────────────────── */
.srv-overview-section { padding: 70px 0; background: var(--bg-color); }
.srv-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .srv-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .srv-cards-grid { grid-template-columns: 1fr; } }
.srv-card-item {
    background: var(--bg-color);
    border-radius: 18px;
    box-shadow: 0 2px 20px rgba(0,61,110,0.07);
    border: 1.5px solid rgba(0,61,110,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
}
.srv-card-item:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,61,110,0.14); border-color: var(--primary-color); }
.srv-card-visual {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 28px 20px 22px;
    display: flex; align-items: center; gap: 14px;
}
.srv-card-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; flex-shrink: 0;
}
.srv-card-num-badge {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.9);
}
.srv-card-title-vis { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.srv-card-body { padding: 20px 20px 16px; flex: 1; }
.srv-card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.srv-features-mini { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.srv-features-mini li { font-size: 0.82rem; color: var(--text-color); padding-left: 18px; position: relative; }
.srv-features-mini li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-color); }
.srv-card-action { padding: 16px 20px; border-top: 1px solid rgba(0,61,110,0.07); }
.srv-card-link-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 600; color: var(--primary-color); text-decoration: none; transition: gap 0.2s, color 0.2s; }
.srv-card-link-btn:hover { gap: 12px; color: var(--primary-dark); }

/* ── Detail section ─────────────────────────── */
.srv-detail-section { padding: 60px 0; background: var(--light-color); }
.srv-detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 56px 0; border-bottom: 1px solid rgba(0,61,110,0.07); margin-bottom: 0; position: relative; }
.srv-detail-row::before { display: none !important; }
.srv-detail-row:last-child { border-bottom: none; }
.srv-detail-row.reversed .srv-detail-body { order: 2; }
.srv-detail-row.reversed .srv-detail-img  { order: 1; }
@media (max-width: 880px) {
    .srv-detail-row { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
    .srv-detail-row.reversed .srv-detail-body { order: 1; }
    .srv-detail-row.reversed .srv-detail-img  { order: 2; }
}
.srv-detail-index { font-size: 4rem; font-weight: 800; color: rgba(0,61,110,0.07); line-height: 1; margin-bottom: -8px; }
.srv-detail-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 3px; margin-bottom: 14px; }
.srv-detail-body h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.srv-detail-body p  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.srv-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.srv-features li { font-size: 0.9rem; color: var(--text-color); padding-left: 22px; position: relative; }
.srv-features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); }
.srv-detail-img { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; }
.srv-detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.srv-detail-img:hover img { transform: scale(1.04); }
.srv-detail-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 300px; }
.srv-detail-placeholder i { font-size: 3rem; color: rgba(255,255,255,0.3); }
.srv-detail-placeholder span { font-size: 0.9rem; color: rgba(255,255,255,0.6); font-weight: 600; }
.srv-detail-badge { position: absolute; bottom: 18px; left: 18px; background: rgba(0,29,52,0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 7px 16px; border-radius: 100px; display: flex; align-items: center; gap: 7px; }

/* ── Divers ─────────────────────────────────── */
.srv-divers-section { padding: 70px 0; background: var(--bg-color); }
.srv-divers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .srv-divers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .srv-divers-grid { grid-template-columns: 1fr; } }
.srv-divers-card { background: var(--bg-color); border: 1.5px solid rgba(0,61,110,0.08); border-radius: 16px; padding: 24px 20px; transition: all 0.25s ease; }
.srv-divers-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 30px rgba(0,61,110,0.1); transform: translateY(-3px); }
.srv-divers-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(0,61,110,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.srv-divers-icon i { color: var(--primary-color); font-size: 1.1rem; }
.srv-divers-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.srv-divers-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Why section ────────────────────────────── */
.srv-why-section { padding: 70px 0; background: var(--light-color); }
.srv-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 0; }
@media (max-width: 680px) { .srv-why-grid { grid-template-columns: 1fr; } }
.srv-why-card { background: var(--bg-color); border-radius: 16px; padding: 24px 20px; display: flex; align-items: flex-start; gap: 16px; box-shadow: 0 2px 14px rgba(0,61,110,0.06); border: 1.5px solid transparent; transition: all 0.25s ease; }
.srv-why-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 30px rgba(0,61,110,0.1); transform: translateY(-3px); }
.srv-why-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.srv-why-icon i { color: #fff; font-size: 1.1rem; }
.srv-why-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.srv-why-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── Counters ───────────────────────────────── */
.srv-counters-section { padding: 70px 0; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%); position: relative; overflow: hidden; }
.srv-counters-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.srv-counters-inner { position: relative; }
.srv-counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
@media (max-width: 700px) { .srv-counters-grid { grid-template-columns: repeat(2, 1fr); } }
.srv-counter-item { padding: 20px; }
.srv-counter-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.2rem; color: rgba(255,255,255,0.85); }
.srv-counter-val { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 6px; }
.srv-counter-val span { font-size: 0.55em; vertical-align: middle; }
.srv-counter-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
