/* File: css/services.css */

/* ===== MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-animation {
        display: none !important;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-backdrop {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(34, 211, 238, 0.05) 50%,
        rgba(59, 130, 246, 0.1) 100%
    );
    border-radius: inherit;
    z-index: -1;
}

[data-theme="dark"] .hero-backdrop {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero-backdrop::before {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(34, 211, 238, 0.08) 50%,
        rgba(59, 130, 246, 0.15) 100%
    );
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-subtitle {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== CHAIN VISUALIZATION ===== */
.chain-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.chain-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-blue);
    white-space: nowrap;
}

[data-theme="dark"] .chain-step {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
}

.chain-arrow {
    color: var(--accent-turquoise);
    font-size: 1rem;
    font-weight: 700;
}

/* ===== PILLAR SECTIONS ===== */
.pillar-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pillar-header {
    text-align: center;
    margin-bottom: 3rem;
    background: var(--card-color);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.pillar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
}

.pillar-section:nth-of-type(1) .pillar-header::before,
#consulting .pillar-header::before {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-turquoise));
}

#claude-code .pillar-header::before {
    background: linear-gradient(90deg, var(--accent-turquoise), var(--accent-salmon));
}

#conformite .pillar-header::before {
    background: linear-gradient(90deg, var(--accent-salmon), var(--accent-yellow));
}

.pillar-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

#consulting .pillar-number {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
}

#claude-code .pillar-number {
    background: linear-gradient(135deg, var(--accent-turquoise), var(--accent-salmon));
}

#conformite .pillar-number {
    background: linear-gradient(135deg, var(--accent-salmon), var(--accent-yellow));
}

.pillar-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.pillar-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== METRICS ROW ===== */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.metric-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== DETAIL CARDS GRID ===== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.detail-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.detail-card:hover::before {
    transform: scaleX(1);
}

.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.detail-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.detail-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.detail-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== TECH TAGS ===== */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 500;
}

[data-theme="dark"] .tech-tag {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

/* ===== FRAMEWORK CARDS ===== */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.framework-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.framework-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-turquoise), var(--accent-salmon));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.framework-card:hover::before {
    transform: scaleX(1);
}

.framework-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.framework-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.framework-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== COMPLIANCE TIMELINE ===== */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.compliance-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-salmon), var(--accent-yellow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.compliance-card:hover::before {
    transform: scaleX(1);
}

.compliance-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.compliance-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.compliance-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.compliance-card .deadline-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-salmon);
    margin-bottom: 0.75rem;
}

/* ===== PILLAR CTA ===== */
.pillar-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.pillar-cta-proof {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.pillar-cta .btn {
    margin: 0.5rem;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.products-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.products-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-turquoise));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.product-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-turquoise));
}

.product-cta {
    display: inline-block;
    text-align: center;
    margin-top: auto;
    font-size: 0.95rem;
}

/* ===== DIFFERENCIATEURS SECTION ===== */
.differenciateurs-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.differenciateurs-header {
    text-align: center;
    margin-bottom: 3rem;
}

.differenciateurs-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.differenciateurs-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.differenciateurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.diff-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.diff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-turquoise));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.diff-card:hover::before {
    transform: scaleX(1);
}

.diff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.diff-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.diff-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.diff-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FINAL CTA SECTION ===== */
.services-final-cta {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.final-cta-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.final-cta-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cta-path-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-path-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cta-path-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-path-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.cta-path-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .framework-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-paths {
        grid-template-columns: repeat(2, 1fr);
    }

    .differenciateurs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-backdrop {
        padding: 3rem 2rem;
        border-radius: 24px;
        margin: 0 1rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .chain-visual {
        gap: 0.3rem;
    }

    .chain-step {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .chain-arrow {
        font-size: 0.8rem;
    }

    .pillar-section {
        padding: 3rem 1rem;
    }

    .pillar-header {
        padding: 2rem 1.5rem;
    }

    .pillar-header h2 {
        font-size: 1.8rem;
    }

    .pillar-header p {
        font-size: 1rem;
    }

    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid,
    .framework-grid,
    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .products-section {
        padding: 3rem 1rem;
    }

    .products-header h2 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .differenciateurs-section {
        padding: 3rem 1rem;
    }

    .differenciateurs-header h2 {
        font-size: 1.8rem;
    }

    .differenciateurs-grid {
        grid-template-columns: 1fr;
    }

    .services-final-cta {
        padding: 3rem 1rem;
    }

    .final-cta-header h2 {
        font-size: 1.8rem;
    }

    .cta-paths {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-backdrop {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        margin: 0 0.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .metrics-row {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 1.6rem;
    }

    .pillar-header {
        padding: 1.5rem 1rem;
    }
}
