/* ========== EXPERTISE SPECIFIC STYLES ========== */

/* Hero Section Expertise */
.expertise-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--bleu-nuit-light) 100%);
    color: var(--blanc);
    overflow: hidden;
}

.expertise-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('/assets/images/pattern.svg') repeat;
    opacity: 0.05;
}

.expertise-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb span {
    color: var(--orange);
    font-weight: 600;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--blanc);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
}

/* Overview Section */
.expertise-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--bleu-nuit);
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gris-fonce);
    margin-bottom: 20px;
}

.overview-content .cta-button {
    margin-top: 30px;
}

.overview-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.overview-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

/* Features Section */
.expertise-features {
    padding: 100px 0;
    background-color: var(--gris-clair);
    position: relative;
}

.expertise-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/pattern-light.svg') repeat;
    opacity: 0.05;
}

.expertise-features .container {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--blanc);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(42, 55, 68, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--orange);
    transition: width 0.3s ease;
}

.feature-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--blanc);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--bleu-nuit);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--gris-fonce);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Process Section */
.expertise-process {
    padding: 100px 0;
    background-color: var(--blanc);
}

.process-steps-expertise {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.process-steps-expertise::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--orange), transparent);
    opacity: 0.2;
}

@media (min-width: 768px) {
    .process-steps-expertise::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.process-step-expertise {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .process-step-expertise {
        width: 50%;
    }

    .process-step-expertise:nth-child(odd) {
        margin-left: auto;
        flex-direction: row-reverse;
    }

    .process-step-expertise:nth-child(odd) .process-step-number {
        order: 2;
    }

    .process-step-expertise:nth-child(odd) .process-step-content {
        order: 1;
        text-align: right;
    }
}

.process-step-number {
    min-width: 80px;
    min-height: 80px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(224, 108, 0, 0.2);
    position: relative;
    z-index: 2;
}

.process-step-content {
    flex: 1;
}

.process-step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--bleu-nuit);
}

.process-step-content p {
    color: var(--gris-fonce);
    line-height: 1.7;
}

/* Technologies Section */
.technologies-section {
    padding: 100px 0;
    background-color: var(--gris-clair);
}

.technologies-tabs {
    background: var(--blanc);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 60px;
}

.tab-buttons {
    display: flex;
    background: var(--bleu-nuit);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    color: var(--blanc);
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    padding: 60px 40px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 30px 20px;
    background: var(--gris-clair);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tech-item i {
    color: var(--orange);
    transition: var(--transition);
}

.tech-item:hover i {
    transform: scale(1.1);
}

.tech-item span {
    font-weight: 600;
    color: var(--bleu-nuit);
    font-size: 1.1rem;
}

/* CTA Section */
.expertise-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--bleu-nuit-light) 100%);
    color: var(--blanc);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.expertise-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('/assets/images/pattern.svg') repeat;
    opacity: 0.05;
}

.expertise-cta .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.expertise-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--blanc);
}

.expertise-cta p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.expertise-cta .cta-button {
    background-color: var(--blanc);
    color: var(--orange);
    font-size: 1.1rem;
    padding: 15px 40px;
    border-color: var(--blanc);
}

.expertise-cta .cta-button:hover {
    background-color: transparent;
    color: var(--blanc);
    border-color: var(--blanc);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablette */
@media (max-width: 992px) {
    .expertise-hero {
        padding: 150px 0 80px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .expertise-overview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .overview-content h2 {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .expertise-cta h2 {
        font-size: 2.4rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .expertise-hero {
        padding: 130px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .breadcrumb {
        justify-content: center;
    }

    .expertise-overview {
        text-align: center;
    }

    .overview-content h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .process-steps-expertise::before {
        left: 30px;
    }

    .process-step-number {
        min-width: 60px;
        min-height: 60px;
        font-size: 1.5rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        padding: 15px;
    }

    .tab-content {
        padding: 40px 20px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .expertise-cta {
        padding: 80px 0;
    }

    .expertise-cta h2 {
        font-size: 2rem;
    }

    .expertise-cta p {
        font-size: 1rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .process-step-number {
        min-width: 50px;
        min-height: 50px;
        font-size: 1.2rem;
    }

    .tech-item {
        padding: 20px 15px;
    }

    .tech-item i {
        font-size: 2rem !important;
    }

    .tech-item span {
        font-size: 0.9rem;
    }
}