.skills-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 120px 20px 40px;
    gap: 4rem;
}

.skills-grid {
    display: grid;
    /* Modification de la grille pour 3 colonnes maximum */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

/* Ajout de règles pour différentes largeurs d'écran */
@media screen and (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Ajout d'une hauteur minimum */
    min-height: 250px;
    /* Ajout d'un display flex pour mieux gérer l'espace */
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.skill-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.skill-list {
    list-style: none;
    padding: 0;
    /* Pour que la liste prenne l'espace restant */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-list li {
    margin: 0.5rem 0;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.skill-list li:hover {
    opacity: 1;
}

/* Amélioration de l'animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Ajustement des délais d'animation pour une meilleure fluidité */
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }

