/* Styles pour les infographies de parcours de formation */
.formation-infographic {
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.formation-infographic h3 {
    color: #007C37;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.formation-infographic p {
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.infographic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

.timeline {
    position: absolute;
    top: 40px;
    bottom: 40px;
    width: 4px;
    background-color: #00A34A;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.infographic-step {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.infographic-step:nth-child(odd) {
    flex-direction: row;
}

.infographic-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    width: 45%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.step-content::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #fff;
    transform: rotate(45deg) translateY(-50%);
    z-index: -1;
}

.infographic-step:nth-child(odd) .step-content::after {
    right: -10px;
}

.infographic-step:nth-child(even) .step-content::after {
    left: -10px;
}

.step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #00A34A;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 163, 74, 0.3);
}

.step-title {
    font-weight: bold;
    color: #007C37;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-description {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-skills {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-skill {
    background-color: #e0f5e9;
    color: #007C37;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline {
        left: 30px;
    }

    .infographic-step,
    .infographic-step:nth-child(odd),
    .infographic-step:nth-child(even) {
        flex-direction: row;
    }

    .step-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .step-number {
        left: 30px;
    }

    .infographic-step:nth-child(odd) .step-content::after,
    .infographic-step:nth-child(even) .step-content::after {
        left: -10px;
        right: auto;
    }
}
