/*********************************
********* howIsWork **************
*********************************/
.howIsWork {
    padding: 80px 0;
    text-align: center;
}

.howIsWork h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.steps-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Grilles optimisées selon le nombre de steps */
.steps-grid[data-steps="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid[data-steps="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.steps-grid[data-steps="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.steps-grid[data-steps="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.steps-grid[data-steps="6"] {
    grid-template-columns: repeat(3, 1fr);
}

.step-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #000;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #000 0%, #434343 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step-card h4 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.step-card p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
}

.step-icon {
    margin-top: 20px;
    font-size: 2em;
    color: #000;
    opacity: 0.15;
}

@media (max-width: 1200px) {
    .steps-grid[data-steps="5"] {
        grid-template-columns: repeat(3, 1fr);
    }
}
