/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-items: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    width: 100%;
    max-width: 380px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}


.how-it-works-zigzag {
    max-width: 1200px;
    margin: 0 auto;
}

.zigzag-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 800px;
    position: relative;
}

.step-right {
    margin-left: auto;
    flex-direction: row;
}

.step-left {
    margin-right: auto;
    flex-direction: row;
}

.step-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    position: relative;
    z-index: 2;
}

.step-content {
    background: #2d2a42;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3f3b54;
    flex: 1;
    max-width: 500px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: #353049;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #a8b3cf;
}

/* Ajustement du texte pour les étapes à gauche */
.step-left .step-content {
    text-align: right;
}

.step-right .step-content {
    text-align: left;
}

/* Ligne de connexion entre les étapes */
.zigzag-container::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, #3f3b54, #4a4660, #3f3b54);
    transform: translateX(-50%);
    z-index: 0;
}

/* Points de connexion */
.step-row::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #4a4660;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    .zigzag-container {
        gap: 40px;
    }

    .step-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px;
        margin: 0 auto !important;
        max-width: 400px;
    }

    .step-left .step-content,
    .step-right .step-content {
        text-align: center;
        max-width: 100%;
    }

    .step-content {
        padding: 30px 25px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Masquer la ligne de connexion sur mobile */
    .zigzag-container::before,
    .step-row::after {
        display: none;
    }

    body {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .step-content {
        padding: 25px 20px;
    }

    .step-content h3 {
        font-size: 1.3rem;
    }
}