/* Container principal */
.expertise-container {
    padding-top: 140px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 80px;
}

/* Header */
.expertise-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.expertise-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 8vw, 96px);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: -2px;
}

.expertise-subtitle {
    font-size: 20px;
    color: var(--silver);
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.expertise-badge {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Sections principales */
.expertise-section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSection 0.8s ease forwards;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.section-description {
    font-size: 16px;
    color: var(--silver);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 30px;
}

/* Grille de compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.skill-card {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(206, 28, 28, 0.02), transparent);
    transition: left 0.6s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    position: relative;
}

.skill-icon-inner {
    width: 100%;
    height: 100%;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon-inner {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.skill-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 15px;
}

.skill-description {
    font-size: 14px;
    color: var(--silver);
    line-height: 1.8;
    margin-bottom: 25px;
}

.skill-features {
    list-style: none;
    margin-top: 20px;
}

.skill-features li {
    font-size: 13px;
    color: var(--charcoal);
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    opacity: 0.8;
}

.skill-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Technologies détaillées */
.tech-showcase {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    padding: 80px 60px;
    margin-bottom: 120px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    clear: both;
}

.tech-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(206, 28, 28, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    position: relative;
    z-index: 1;
}

.tech-category {
    text-align: center;
}

.tech-category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(206, 28, 28, 0.2);
}

.tech-list {
    list-style: none;
}

.tech-item {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: var(--cream);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    border-color: rgba(206, 28, 28, 0.2);
    background: var(--white);
    transform: translateX(10px);
}

.tech-item:hover::before {
    transform: scaleY(1);
}

.tech-level {
    display: block;
    font-size: 11px;
    color: var(--silver);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Processus de travail */
.process-section {
    margin-top: 100px;
    padding-top: 20px;
    position: relative;
    z-index: 2;
}

.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(26, 26, 26, 0.1);
    z-index: 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
    flex: 1;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }
.process-step:nth-child(4) { animation-delay: 0.8s; }

.process-number {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--accent);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .process-number {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.process-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.process-desc {
    font-size: 13px;
    color: var(--silver);
    max-width: 200px;
    margin: 0 auto;
}

/* Navigation de retour */
.back-navigation {
    position: fixed;
    top: 40px;
    left: 60px;
    z-index: 1001;
    animation: fadeIn 1s ease 0.8s both;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--silver);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: rgba(250, 249, 247, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 50px;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
    border-color: rgba(206, 28, 28, 0.2);
}

.back-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
    color: var(--white);
    margin: 100px -60px 0;
    position: relative;
    overflow: hidden;
    clear: both;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(206, 28, 28, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .tech-showcase {
        padding: 60px 40px;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-line {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .expertise-container {
        padding-top: 120px;
        padding-left: 30px;
        padding-right: 30px;
        overflow: visible;
    }

    .back-navigation {
        top: 30px;
        left: 30px;
    }

    .expertise-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

    .expertise-section {
        margin-bottom: 60px;
    }

    .skill-card {
        padding: 40px 30px;
    }

    .tech-showcase {
        padding: 40px 20px 60px;
        margin-left: -30px;
        margin-right: -30px;
        margin-bottom: 80px;
        transform: none !important;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-section {
        margin-top: 80px;
        margin-bottom: 60px;
        padding-top: 20px;
        clear: both;
    }

    .cta-section {
        margin: 60px -30px 0;
        padding: 60px 30px;
        clear: both;
    }

    .cta-title {
        font-size: 36px;
    }

    .back-link {
        padding: 10px 16px;
        font-size: 12px;
    }
}
