/* serviceDetail.css - Styles communs pour les sous-pages de services */

.service-detail-page {
    overflow-x: hidden;
}

:root {
    --sd-primary: #f89800;
    --sd-primary-dark: #d17f00;
    --sd-dark: #1a1a1a;
    --sd-light: #ffffff;
    --sd-gray-light: #f8f9fa;
    --sd-gray: #6c757d;
    --sd-text: #2c2c2c;
    --sd-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Hero Section --- */
.service-detail-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: var(--sd-dark);
    padding: 80px 0 50px;
    overflow: hidden;
}

.service-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: grayscale(30%) brightness(0.7);
    z-index: 1;
}

.service-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 2;
}

.service-detail-hero .container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-detail-hero .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--sd-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    transition: var(--sd-transition);
}

.service-detail-hero .back-button:hover {
    opacity: 1;
    color: var(--sd-primary);
    transform: translateX(-5px);
}

.service-detail-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--sd-light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.service-detail-hero .lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Main Content Section --- */
.service-detail-content {
    padding: 60px 0;
    background: white;
}

.service-detail-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: start;
}

.content-main h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sd-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.content-main p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2.5rem;
}

.intervention-box {
    background: var(--sd-gray-light);
    border-radius: 30px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.intervention-box h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--sd-dark);
}

.intervention-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.intervention-list li {
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.5;
}

.intervention-list li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--sd-primary);
    font-size: 1.2rem;
}

.intervention-list li strong {
    color: var(--sd-dark);
    display: block;
    margin-bottom: 0.2rem;
}

/* --- Sidebar/Feature --- */
.content-sidebar {
    position: sticky;
    top: 120px;
}

.feature-card {
    background: var(--sd-dark);
    color: white;
    padding: 3rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--sd-primary);
    filter: blur(80px);
    opacity: 0.2;
}

.feature-card h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--sd-primary);
}

.feature-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* --- Stats Section Compact --- */
.service-stats-section {
    padding: 60px 0;
    background: var(--sd-dark);
    color: white;
}

.stats-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.stats-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stats-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--sd-transition);
}

.stat-icon {
    font-size: 2rem;
    color: var(--sd-primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    color: var(--sd-light);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1.4;
}

/* --- CTA Section Compact --- */
.service-cta-section {
    padding: 80px 0;
    background: white;
}

.cta-box {
    background: linear-gradient(135deg, var(--sd-dark) 0%, #2a2a2a 100%);
    padding: 3.5rem 2rem;
    border-radius: 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
}

.cta-button:hover {
    background: var(--sd-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(248, 152, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-detail-hero {
        min-height: 400px;
        padding-top: 100px;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .service-detail-hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .service-detail-hero .container {
        padding: 0 1.25rem;
    }

    .service-detail-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .service-detail-hero .lead {
        font-size: 0.95rem;
    }

    .service-detail-hero .back-button {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .service-detail-content {
        padding: 40px 0;
    }

    .service-detail-content .container {
        padding: 0 1.25rem;
    }

    .content-grid {
        gap: 2rem;
    }

    .content-main h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .content-main p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .intervention-box {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .intervention-box h3 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .intervention-list li {
        font-size: 0.9rem;
        padding-left: 2rem;
    }

    .intervention-list li i {
        font-size: 1rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .feature-card h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .service-stats-section {
        padding: 40px 0;
    }

    .stats-header h2 {
        font-size: 1.5rem;
    }

    .stats-header p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .service-cta-section {
        padding: 50px 0;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .cta-box p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .service-detail-hero {
        padding: 70px 0 30px;
    }

    .service-detail-hero h1 {
        font-size: 1.5rem;
    }

    .service-detail-hero .lead {
        font-size: 0.9rem;
    }

    .content-main h2 {
        font-size: 1.3rem;
    }

    .content-main p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .cta-box {
        padding: 2rem 1.25rem;
    }

    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
}