.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.skill-card {
    border-radius: 10px;
    border: 1px solid var(--secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill-card h3 {
    text-align: center;
    margin-bottom: 20px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    flex: 0 0 calc(50% - 20px);
    text-align: center;
    box-sizing: border-box;
    padding: 10px;
}

.skill-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* New class for three items per row */
.three-items-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.three-items-row > .icon-4 {
    flex: 0 0 calc(33.333% - 2rem); /* Adjust the width to fit three items per row, accounting for margins */
    box-sizing: border-box;
    margin: 4rem;
    padding: 8rem;
    align-items: center;
    justify-content: center;
}

.progress-container {
    background-color: var(--secondary);
    width: 100%;
    height: 20px; /* Hauteur fixe pour le conteneur */
    border-radius: 25px; /* Coins arrondis */
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary);
    height: 100%; /* Prend toute la hauteur du conteneur */
    border-radius: 25px; /* Coins arrondis */
    transition: width 0.3s ease; /* Transition douce pour l'animation */
}