/* Styles pour la section compétences */

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skills-category {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skills-category h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    color: var(--light-text);
}

.skill-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
}

/* Titre de la section compétences */
.skills-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #007bff;
    text-shadow: 0 0 10px #00a2ff;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 3px;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00a2ff, transparent);
}

/* Conteneur du contenu */
.skills-content {
    background-color: rgba(13, 26, 45, 0.7);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.15);
    border: 1px solid #007bff;
}

/* Grille de logos */
.skills-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Boîte de logo individuelle */
.skill-logo {
    text-align: center;
    padding: 30px 15px;
    background: rgba(26, 58, 100, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skill-logo:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px #00a2ff;
    border: 1px solid #00a2ff;
}

/* Effet de halo en arrière-plan */
.skill-backglow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,162,255,0.1) 0%, rgba(13,26,45,0) 70%);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.skill-logo:hover .skill-backglow {
    opacity: 0.7;
    width: 100px;
    height: 100px;
}

/* Effet de lueur au bord inférieur */
.skill-glow-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #00a2ff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-logo:hover .skill-glow-border {
    opacity: 1;
}

/* Conteneur d'icône */
.skill-icon-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Icône */
.skill-icon-container i {
    font-size: 3.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

.skill-logo:hover .skill-icon-container i {
    color: attr(data-color);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px attr(data-color));
}

/* Nom de la compétence */
.skill-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    margin-top: 10px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Styles pour la section compétences avec le carrousel */

/* Conteneur principal pour le carrousel de modules */
.modules-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 60px auto 30px;
    overflow: hidden;
}

/* Conteneur des slides */
.modules-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Style de chaque slide */
.module-slide {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.module-slide.active {
    opacity: 1;
}

/* Style du contenu de chaque module */
.module-content {
    background-color: rgba(13, 26, 45, 0.7);
    border-radius: 8px;
    border: 1px solid #007bff;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 25px rgba(0, 162, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Effet de bordure lumineuse */
.module-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00a2ff, transparent);
    opacity: 0.7;
}

/* En-tête du module */
.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

/* Icône du module */
.module-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background-color: rgba(26, 58, 100, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border: 1px solid #007bff;
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.3);
}

.module-icon i {
    font-size: 24px;
    color: #00a2ff;
    text-shadow: 0 0 8px rgba(0, 162, 255, 0.8);
}

/* Titre du module */
.module-title {
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 162, 255, 0.4);
}

/* Description du module */
.module-description {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Liste des compétences du module */
.module-skills {
    padding: 0;
    margin: 0;
    list-style: none;
}

.module-skills li {
    color: #ffffff;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.module-skills li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #00a2ff;
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* Boutons de navigation */
.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 26, 45, 0.7);
    color: #ffffff;
    border: 1px solid #007bff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.2);
}

.carousel-nav-button:hover {
    background: rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.5);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

/* Indicateurs du carrousel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 10px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.carousel-indicator.active {
    background: #00a2ff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 162, 255, 0.7);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.module-slide.active .module-content {
    animation: slideIn 0.5s forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .skills-content {
        padding: 25px 15px;
    }
    
    .skill-logo {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .skills-content {
        padding: 20px 10px;
    }
    
    .skill-logo {
        padding: 20px 5px;
        height: 140px;
    }
    
    .skill-icon-container i {
        font-size: 3rem;
    }
    
    .skills-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .module-header {
        flex-direction: column;
        text-align: center;
    }
    
    .module-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .carousel-nav-button {
        width: 30px;
        height: 30px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .skills-content {
        padding: 15px 5px;
    }
    
    .skill-logo {
        padding: 15px 5px;
        height: 130px;
    }
    
    .skill-icon-container i {
        font-size: 2.5rem;
    }
}
