/* Styles pour la section certifications avec le carrousel */

/* Conteneur principal pour les certifications */
.certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    min-height: 300px;
}

/* Style des éléments de certification */
.cert-item {
    cursor: pointer;
    transition: transform 0.3s;
    width: 280px;
    display: block;
    margin: auto 0;
    border-radius: 0;
    overflow: hidden;
    background-color: transparent;
    padding: 0;
    line-height: 0;
}

.cert-item:hover {
    transform: scale(1.03);
}

.cert-item:hover img {
    filter: brightness(1.05);
}

.cert-item:active {
    transform: scale(0.98);
}

.cert-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* Style pour le modal d'affichage des certifications */
#imageModal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

#modalCloseBtn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.7);
    padding: 5px 15px;
    border-radius: 50%;
    background: rgba(26, 58, 100, 0.5);
}

#modalCloseBtn:hover {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 162, 255, 0.9);
    transform: scale(1.1);
    background: rgba(0, 123, 255, 0.7);
}

#modalImage {
    margin: 0;
    display: block;
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
}

/* 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);
}

/* Titre de section */
.modules-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #007bff;
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 24px;
    position: relative;
    letter-spacing: 2px;
    text-shadow: 0 0 8px 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: 768px) {
    .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;
    }
}

/* Styles spécifiques pour le carrousel des modules BTS SIO */
.modules-bts-carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 60px auto 30px;
    background-color: rgba(13, 26, 45, 0.5);
    border-radius: 10px;
    padding: 30px 20px;
    border: 1px solid #007bff;
    box-shadow: 0 0 25px rgba(0, 162, 255, 0.3);
}

.modules-bts-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #007bff;
    margin: 0 0 30px;
    font-size: 28px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.8);
    position: relative;
    padding-bottom: 15px;
}

.modules-bts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00a2ff, transparent);
}

.modules-bts-slider {
    overflow: hidden;
    position: relative;
    margin: 0 40px;
}

.modules-bts-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.module-bts-slide {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.module-bts-card {
    max-width: 800px;
    width: 100%;
    background-color: rgba(13, 26, 45, 0.8);
    border-radius: 10px;
    border: 1px solid #007bff;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 162, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.module-bts-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.module-bts-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.module-bts-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 26, 45, 0.5), rgba(26, 58, 100, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.module-bts-title {
    color: #ffffff;
    font-size: 28px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.8);
    padding: 0 20px;
}

.module-bts-content {
    padding: 30px;
}

.module-bts-subtitle {
    color: #007bff;
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px rgba(0, 162, 255, 0.4);
}

.module-bts-description {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 16px;
}

.module-bts-skills {
    margin: 0;
    padding-left: 10px;
}

.module-bts-skills li {
    color: #cccccc;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    list-style-type: none;
}

.module-bts-skills li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #00a2ff;
    position: absolute;
    left: 0;
    font-size: 12px;
}

.modules-bts-nav {
    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);
    font-size: 18px;
}

.modules-bts-nav:hover {
    background: rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.5);
}

.modules-bts-prev {
    left: 10px;
}

.modules-bts-next {
    right: 10px;
}

.modules-bts-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 12px;
}

.modules-bts-indicator {
    width: 12px;
    height: 12px;
    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);
}

.modules-bts-indicator.active {
    background: #00a2ff;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.7);
}

/* Responsive pour le carrousel BTS */
@media (max-width: 768px) {
    .module-bts-header {
        height: 150px;
    }
    
    .module-bts-title {
        font-size: 22px;
    }
    
    .module-bts-subtitle {
        font-size: 18px;
    }
    
    .module-bts-content {
        padding: 20px;
    }
    
    .modules-bts-nav {
        width: 30px;
        height: 30px;
    }
}
