.carousel-container {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    position: relative;
    padding: 20px 0; /* Espace pour l'effet de zoom */
}

.carousel-track {
    display: flex;
    gap: 30px; /* Remplacer margin-right par un gap plus cohérent */
    position: relative;
    will-change: transform;
}

.carousel-track img {
    flex: 0 0 auto;
    width: 250px; /* Largeur réduite pour mieux s'adapter */
    height: 150px; /* Hauteur proportionnelle */
    object-fit: contain; /* Conserver les proportions sans rognage */
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    background: #f5f5f5; /* Fond pour images transparentes */
    padding: 10px; /* Espacement interne */
}

.carousel-track img:hover {
    transform: scale(1.4); /* Zoom un peu plus modéré */
    z-index: 3;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Ajout d'ombre */
}

.carousel-track img.adjacent {
    transform: translateX(40px) scale(0.9); /* Décalage + léger zoom arrière */
    opacity: 0.8; /* Effet de profondeur */
}

.carousel-track img.adjacent-prev {
    transform: translateX(-40px) scale(0.9);
    opacity: 0.8;
}

/* Ce qui concerne les compétences */
.competences-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.competence-section {
    flex: 1;
    min-width: 300px;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skill-category {
    margin-bottom: 25px;
}

.skill-category h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 5px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-level {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
}

.skill-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 8px;
}

.skill-bar {
    height: 100%;
    border-radius: 10px;
    background-color: #3498db;
}

.avancee { width: 90%; background-color: #2ecc71; }
.solide { width: 75%; background-color: #3498db; }
.intermediaire { width: 60%; background-color: #f39c12; }
.elementaire { width: 40%; background-color: #e74c3c; }

@media (max-width: 768px) {
    .competences-container {
        flex-direction: column;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
}