/* ----- WORK PROCESS SECTION ----- */

/* Section du processus de travail */
.work-process-section {
    position: relative;
    background-color: var(--bg-color);
    width: 100%;
    min-height: 100vh;
    padding: 0 2rem;
    border-top: 1px solid var(--accent);
    overflow: hidden;
}

/* Grid Background */
.work-process-grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.work-process-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
}

.work-process-grid-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.work-process-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--grid-dot-color);
    border-radius: 50%;
    opacity: 0;
    animation: fadeInOut 3s infinite;
}

/* Red moving dots */
.work-process-red-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--glow-color);
    opacity: 0.7;
    z-index: 0;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.work-process-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.work-process-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* .work-process-title {
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        } */

.work-process-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

.work-process-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    opacity: 0.8;
    max-width: 1200px;
    margin: 4em auto;
}

/* Timeline Process */
.work-timeline-process {
    position: relative;
    margin: 80px 0;
}

.work-timeline-container {
    position: absolute;
    width: var(--timeline-width);
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    overflow-y: hidden;
}

.work-timeline-line {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
}

.work-timeline-progress {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--timeline-width);
    background-color: var(--accent);
    height: 0;
    transition: height 1s ease;
    box-shadow: 0 0 10px var(--glow-color);
}

.work-timeline-item {
    position: relative;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.work-timeline-item:last-child {
    margin-bottom: 0;
}

.work-timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-timeline-content {
    position: relative;
    width: 45%;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    /* Removed overflow: hidden to fix number cutoff */
}

/* Hi-tech hover effect for timeline cards */
.work-timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 25%, rgba(204, 11, 13, 0.05) 50%, transparent 75%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.5s ease, background-position 0.5s ease;
    z-index: 0;
    border-radius: 0.25rem;
    /* Added to match parent */
}

.work-timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: all 0.4s ease;
    z-index: -1;
}

.work-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.work-timeline-content:hover::before {
    opacity: 1;
    background-position: 100% 100%;
    animation: gradientShift 2s infinite;
}

.work-timeline-content:hover::after {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--glow-color);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.work-timeline-item:nth-child(odd) .work-timeline-content {
    margin-left: auto;
}

.work-timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Base: centrage pour l'état non actif */
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
    /* Transition plus spécifique pour éviter les conflits avec GSAP sur transform */
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 0 0 rgba(204, 11, 13, 0.5);
}

.work-timeline-item.active .work-timeline-dot {
    background-color: var(--accent);
    /* Laissez le transform géré par GSAP */
    /* transform: translate(-50%, -50%) scale(1.3); <--- TOUJOURS SUPPRIMÉ */

    box-shadow: 0 0 0 10px rgba(204, 11, 13, 0.1), 0 0 15px var(--glow-color);
    /* SUPPRIMEZ CETTE LIGNE : L'animation 'pulse' sera gérée par GSAP */
    /* animation: pulse 2s infinite; */
}

/* SUPPRIMEZ COMPLÈTEMENT CE BLOC @keyframes pulse */
/* @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(204, 11, 13, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(204, 11, 13, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 11, 13, 0); }
} */

.work-timeline-connector {
    position: absolute;
    top: 50%;
    /* Modifié: aligné avec le point central du cercle */
    transform: translateY(-50%);
    /* Modifié: centré verticalement */
    width: 0;
    height: 3px;
    background-color: var(--light-gray);
    transition: width 1s ease;
}

.work-timeline-item.active .work-timeline-connector {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--glow-color);
}

.work-timeline-item:nth-child(odd) .work-timeline-connector {
    right: 45%;
}

.work-timeline-item:nth-child(even) .work-timeline-connector {
    left: 45%;
}

.work-timeline-number {
    position: absolute;
    top: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(204, 11, 13, 0.3);
    z-index: 3;
    /* Increased z-index */
    transition: all 0.4s ease;
}

.work-timeline-content:hover .work-timeline-number {
    box-shadow: 0 0 15px var(--glow-color);
    transform: scale(1.1);
}

.work-timeline-item:nth-child(odd) .work-timeline-number {
    left: -15px;
}

.work-timeline-item:nth-child(even) .work-timeline-number {
    right: -15px;
}

.work-timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    padding-left: 15px;
    border-left: 3px solid var(--accent);
    position: relative;
    z-index: 1;
}

.work-timeline-description {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.work-timeline-details {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.work-timeline-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.work-timeline-content:hover .work-timeline-detail-item {
    transform: translateX(5px);
}

.work-timeline-detail-icon {
    color: var(--accent);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Hosting Section */
.work-process-hosting-section {
    margin-top: 100px;
    padding: 60px 0;
    background-color: #1a1a1a;
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.work-process-hosting-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 30%, rgba(204, 11, 13, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.work-process-hosting-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.work-process-hosting-title::after {
    content: '';
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--glow-color);
}

.work-process-hosting-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.work-process-hosting-card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    background-color: var(--bg-color);
    border-radius: 0.25rem;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.work-process-hosting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    z-index: 1;
    border-radius: 0.25rem 0.25rem 0 0;
}

.work-process-hosting-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.work-process-hosting-icon {
    margin-bottom: 20px;
    color: var(--accent);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative;
}

.work-process-hosting-icon-glow {
    filter: drop-shadow(0 0 8px rgba(204, 11, 13, 0.8));
    width: 100%;
    height: 100px;
}

/* Style spécifique pour le troisième SVG réduit d'un tiers */
        .work-process-hosting-icon-glow-reduced {
            filter: drop-shadow(0 0 8px rgba(204, 11, 13, 0.8));
            width: 50%; /* Réduit d'un tiers par rapport à 150px */
            height: 50%; /* Réduit d'un tiers par rapport à 150px */
        }

.work-process-hosting-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.work-process-hosting-card-description {
    font-size: 0.95rem;
    color: var(--text);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Navigation dots */
.work-timeline-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.work-timeline-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: all 0.4s ease;
}

.work-timeline-nav-dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--glow-color);
}

.work-timeline-nav-dot:hover {
    background-color: var(--accent);
    opacity: 0.7;
    box-shadow: 0 0 5px var(--glow-color);
}

/* CTA Section */
.work-process-cta-section {
    margin: 4rem auto;
    ;
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(26, 26, 26, 0.7);
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
}

.work-process-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 11, 13, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.work-process-cta-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.work-process-cta-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Bouton CTA avec transition progressive */
.work-process-cta-button {
    display: inline-block;
    padding: 15px 40px;
    position: relative;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--accent);
    cursor: pointer;
    z-index: 1;
    transition: color 0.4s ease, transform 0.4s ease;
    overflow: hidden;
}

.work-process-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 1;
}

.work-process-cta-button:hover {
    color: var(--text);
    transform: translateY(-5px);
}

.work-process-cta-button:hover::before {
    opacity: 0;
}

/* Responsive */
@media (max-width: 992px) {

    .work-timeline-container {
        left: 30px;
    }

    .work-timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .work-timeline-dot {
        left: 30px;
    }

    .work-timeline-connector {
        width: 30px;
        left: 30px !important;
    }

    .work-timeline-item:nth-child(odd) .work-timeline-number,
    .work-timeline-item:nth-child(even) .work-timeline-number {
        left: 10px;
    }

    .work-timeline-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .work-process-title {
        font-size: 2rem;
    }

    .work-process-hosting-cards {
        flex-direction: column;
        align-items: center;
    }

    .work-process-hosting-card {
        width: 100%;
        max-width: 320px;
    }

    .work-process-cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .work-process-container {
        padding: 60px 15px;
    }

    .work-timeline-content {
        padding: 20px;
    }

    .work-timeline-title {
        font-size: 1.2rem;
    }

    .work-timeline-description {
        font-size: 0.9rem;
    }

    .work-process-cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .work-process-header {
        text-align: left;
    }

    .work-process-title::after {
        left: 0;
        transform: translateX(0);
    }

    .work-process-hosting-title {
        text-align: left;
        margin-left: 1.5rem;
    }

    .work-process-hosting-title::after {
        left: 0;
        transform: translateX(0);
    }
}