/* ================================================
   Service Single Page - Professional Design
   ================================================ */

/* Variables CSS - Cohérentes avec le site */
:root {
    --service-primary: #3B82F6;
    --service-secondary: #10B981;
    --service-accent: #F87171;
    --service-text-primary: #F9FAFB;
    --service-text-secondary: #D1D5DB;
    --service-text-muted: #9CA3AF;
    --service-bg-primary: #1F2937;
    --service-bg-secondary: #111827;
    --service-bg-tertiary: #374151;
    --service-border: #374151;
    --service-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --service-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --service-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --service-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --service-radius-sm: 0.375rem;
    --service-radius-md: 0.5rem;
    --service-radius-lg: 0.75rem;
    --service-transition: all 0.3s ease;
}

/* ================================================
   HERO SECTION
   ================================================ */

.service-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
}

.service-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.service-hero-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(4, 120, 87, 0.95) 100%);
    width: 100%;
    padding: 4rem 0;
}

.service-hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.15;
    z-index: -1;
}

.service-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: white;
}

.service-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.service-hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: white !important;
    opacity: 0.95;
}

/* Metadata Cards */
.service-meta-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.service-meta-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--service-radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: var(--service-transition);
}

.service-meta-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.service-meta-icon {
    font-size: 2rem;
    line-height: 1;
}

.service-meta-content {
    display: flex;
    flex-direction: column;
}

.service-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    color: white !important;
}

.service-meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: white !important;
}

/* Price Badge */
.service-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--service-radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-price-icon {
    font-size: 1.5rem;
}

.service-price-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: white !important;
}

/* ================================================
   HIGHLIGHTS SECTION
   ================================================ */

.service-highlights-section {
    padding: 4rem 0;
    background: var(--service-bg-secondary);
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--service-text-primary);
}

.service-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-highlight-card {
    background: var(--service-bg-primary);
    border-radius: var(--service-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--service-shadow-md);
    transition: var(--service-transition);
    border: 1px solid var(--service-border);
}

.service-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--service-shadow-xl);
    border-color: var(--service-secondary);
}

.service-highlight-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--service-secondary) 0%, #047857 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.service-highlight-text {
    flex: 1;
    color: var(--service-text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ================================================
   MODULES/SERVICES TIMELINE
   ================================================ */

.service-modules-section {
    padding: 4rem 0;
    background: var(--service-bg-primary);
}

.service-modules-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-module-card {
    background: var(--service-bg-secondary);
    border-radius: var(--service-radius-lg);
    padding: 2rem;
    box-shadow: var(--service-shadow-md);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    border: 1px solid var(--service-border);
    transition: var(--service-transition);
    position: relative;
}

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

/* Connector Line between cards */
.service-module-card:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 2.5rem;
    bottom: -2rem;
    width: 2px;
    height: 2rem;
    background: linear-gradient(180deg, var(--service-primary) 0%, transparent 100%);
}

.service-module-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--service-primary) 0%, #1D4ED8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.service-module-content {
    flex: 1;
}

.service-module-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--service-text-primary);
}

.service-module-description {
    color: var(--service-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-module-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--service-bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--service-radius-sm);
    font-size: 0.875rem;
    color: var(--service-text-secondary);
    border: 1px solid var(--service-border);
}

.service-module-duration-icon {
    font-size: 1rem;
}

/* ================================================
   CONTENT SECTION
   ================================================ */

.service-content-section {
    padding: 4rem 0;
    background: var(--service-bg-secondary);
}

.service-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
.service-content-wrapper h2 {
    color: var(--service-text-primary);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 3.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, var(--service-primary) 0%, var(--service-secondary) 100%) 0 100% / 100% 3px no-repeat;
    position: relative;
}

.service-content-wrapper h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 6px;
    background: var(--service-secondary);
    border-radius: 3px;
}

.service-content-wrapper h2:first-child {
    margin-top: 0;
}

.service-content-wrapper h3 {
    color: var(--service-text-primary);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--service-primary);
    position: relative;
}

.service-content-wrapper h3::before {
    content: '▸';
    position: absolute;
    left: -1rem;
    color: var(--service-secondary);
    font-size: 1.5rem;
}

.service-content-wrapper h4 {
    color: var(--service-primary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-content-wrapper h4::before {
    content: '●';
    color: var(--service-secondary);
    font-size: 0.75rem;
}

.service-content-wrapper p {
    color: var(--service-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

/* Premier paragraphe après un H2 - style lead */
.service-content-wrapper h2 + p {
    font-size: 1.2rem;
    color: var(--service-text-primary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-content-wrapper strong {
    color: var(--service-text-primary);
    font-weight: 600;
    position: relative;
}

/* Mise en évidence des strong dans les listes */
.service-content-wrapper li strong {
    color: var(--service-primary);
}

/* Lists */
.service-content-wrapper ul,
.service-content-wrapper ol {
    color: var(--service-text-secondary);
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}

.service-content-wrapper li {
    margin-bottom: 1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 2rem;
    background: var(--service-bg-primary);
    padding: 1rem 1rem 1rem 2.5rem;
    border-radius: var(--service-radius-md);
    border-left: 3px solid var(--service-secondary);
    transition: var(--service-transition);
}

.service-content-wrapper li:hover {
    background: var(--service-bg-tertiary);
    border-left-color: var(--service-primary);
    transform: translateX(4px);
}

.service-content-wrapper ul li::before {
    content: '→';
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--service-secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-content-wrapper ol {
    counter-reset: item;
}

.service-content-wrapper ol li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 1rem;
    top: 0.9rem;
    color: white;
    background: linear-gradient(135deg, var(--service-primary) 0%, #1D4ED8 100%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Nested lists */
.service-content-wrapper ul ul,
.service-content-wrapper ul ol,
.service-content-wrapper ol ul,
.service-content-wrapper ol ol {
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.service-content-wrapper li li {
    background: var(--service-bg-secondary);
    margin-bottom: 0.5rem;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
}

.service-content-wrapper li li::before {
    top: 0.75rem;
    font-size: 1rem;
}

/* Blockquotes */
.service-content-wrapper blockquote {
    border-left: 4px solid var(--service-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    border-radius: 0 var(--service-radius-lg) var(--service-radius-lg) 0;
    color: var(--service-text-secondary);
    font-style: italic;
    position: relative;
    box-shadow: var(--service-shadow-sm);
}

.service-content-wrapper blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--service-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.service-content-wrapper blockquote p {
    margin-bottom: 0;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

/* Code blocks */
.service-content-wrapper code {
    background: var(--service-bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--service-radius-sm);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--service-secondary);
    border: 1px solid var(--service-border);
}

.service-content-wrapper pre {
    background: var(--service-bg-primary);
    padding: 1.5rem;
    border-radius: var(--service-radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--service-border);
}

.service-content-wrapper pre code {
    background: none;
    padding: 0;
    border: none;
    color: var(--service-text-secondary);
}

/* Links */
.service-content-wrapper a {
    color: var(--service-primary);
    text-decoration: underline;
    transition: var(--service-transition);
}

.service-content-wrapper a:hover {
    color: var(--service-secondary);
}

/* ================================================
   CTA SECTION
   ================================================ */

.service-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1E40AF 0%, #0F766E 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.service-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.15;
    z-index: 0;
}

.service-cta-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.service-cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    color: white !important;
}

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

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--service-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--service-transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

.service-btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    border: 2px solid white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.service-btn-primary:hover {
    background: white;
    color: #1E40AF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    text-shadow: none;
}

.service-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.service-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.service-btn-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.service-btn:hover .service-btn-icon {
    transform: translateX(4px);
}

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

@media (max-width: 768px) {
    /* Hero Section */
    .service-hero {
        min-height: auto;
    }

    .service-hero-overlay {
        padding: 3rem 0;
    }

    .service-hero-container {
        padding: 0 1rem;
    }

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

    .service-hero-description {
        font-size: 1.125rem;
    }

    .service-meta-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .service-meta-card {
        width: 100%;
    }

    /* Highlights */
    .service-highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Modules Timeline */
    .service-modules-timeline {
        gap: 1.5rem;
    }

    .service-module-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .service-module-card:not(:last-child)::after {
        left: 1.5rem;
    }

    .service-module-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    /* Content */
    .service-content-wrapper {
        padding: 0 1rem;
    }

    .service-content-wrapper h2 {
        font-size: 1.75rem;
        margin-top: 2.5rem;
        padding-bottom: 0.75rem;
    }

    .service-content-wrapper h2::before {
        width: 40px;
        height: 4px;
    }

    .service-content-wrapper h3 {
        font-size: 1.35rem;
        margin-top: 2rem;
        padding-left: 1rem;
    }

    .service-content-wrapper h3::before {
        left: -0.75rem;
        font-size: 1.25rem;
    }

    .service-content-wrapper h4 {
        font-size: 1.15rem;
    }

    .service-content-wrapper h2 + p {
        font-size: 1.1rem;
    }

    .service-content-wrapper li {
        padding: 0.875rem 0.875rem 0.875rem 2.25rem;
    }

    .service-content-wrapper ul li::before {
        left: 0.875rem;
        top: 0.875rem;
        font-size: 1rem;
    }

    .service-content-wrapper ol li::before {
        left: 0.875rem;
        top: 0.8rem;
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.8rem;
    }

    .service-content-wrapper blockquote {
        padding: 1.25rem 1.5rem;
        margin: 2rem 0;
    }

    .service-content-wrapper blockquote::before {
        font-size: 3rem;
        top: -0.25rem;
    }

    .service-content-wrapper blockquote p {
        font-size: 1rem;
    }

    /* CTA */
    .service-cta-title {
        font-size: 2rem;
    }

    .service-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .service-btn {
        justify-content: center;
    }

    /* Section titles */
    .service-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .service-hero-title {
        font-size: 1.75rem;
    }

    .service-hero-description {
        font-size: 1rem;
    }

    .service-price-badge {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .service-section-title {
        font-size: 1.75rem;
    }

    .service-cta-title {
        font-size: 1.75rem;
    }

    .service-module-title {
        font-size: 1.25rem;
    }
}
