/* Styles pour le slider des projets */
.projets-slider {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0;
    position: relative;
    height: 650px; /* Hauteur fixe au lieu de auto */
    overflow: visible;
    --primary-color: #333;
    --secondary-color: #555;
    --accent-color: #cb6ce6;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --dark-bg: #333;
}

/* Supprimer la marge blanche entre les blocs */
#projets_bloc {
    margin-bottom: 0; /* Pas de marge pour éviter l'espace blanc */
    padding-bottom: 8rem; /* Augmenter le padding pour maintenir l'espacement */
}

/* Styles des slides */
.swiper-slide {
    opacity: 0;
    transition: opacity 0.4s ease;
    height: 650px; /* Même hauteur que le slider */
}

.swiper-slide-active {
    opacity: 1;
}

/* Style du conteneur de projet */
.projet-slide {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.projet-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--accent-color);
}

/* En-tête du projet */

.projet-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    color: white;
    position: relative;
    background: linear-gradient(135deg, #333, #444);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.projet-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(203, 108, 230, 0.15));
    opacity: 0.5;
}

/* Classes de couleurs pour les en-têtes - style sobre et élégant */
.projet_image_1, .projet_image_2, .projet_image_3, .projet_image_4, .projet_image_5, .projet_image_6, .projet_image_7, .projet_image_8 {
    background: linear-gradient(135deg, #333, #555);
}

/* Icône du projet */
.projet-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(203, 108, 230, 0.3);
}

.projet-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Titre du projet */
.projet-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

/* Contenu du projet */
.projet-content {
    padding: 1.5rem 1.8rem;
    flex-grow: 1;
    overflow-y: auto; /* Permet le défilement vertical si nécessaire */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--light-bg);
    position: relative;
    max-height: calc(100% - 80px); /* Hauteur maximale en tenant compte de l'en-tête */
}

.projet-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #333, var(--accent-color));
    opacity: 0.7;
}

.projet-description {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: #333;
    line-height: 1.5;
}

/* Sections du projet */
.projet-section {
    margin-bottom: 1rem;
}

/* Section objectif */
.objectif-section {
    margin-bottom: 1rem;
}

.objectif-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-color);
}

/* Section conception avec modules */
.conception-section {
    margin-bottom: 1rem;
}

.modules-container {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.projet-module {
    flex: 1;
    background-color: white;
    border-radius: 4px;
    padding: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.projet-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 2px solid var(--accent-color);
}

.projet-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.impact-section {
    flex: 3;
    position: relative;
}

.tech-section {
    flex: 2;
    position: relative;
    border-left: 1px dashed rgba(0,0,0,0.1);
    padding-left: 1.5rem;
}

.projet-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--dark-bg);
    border-bottom: none;
    padding-bottom: 0.4rem;
    position: relative;
    font-weight: 600;
    display: inline-block;
}

.projet-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #333 70%, var(--accent-color));
    border-radius: 2px;
}

.projet-section h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: #333;
}

/* Réalisations */
.projet-realisation {
    margin-bottom: 0.7rem;
}

.projet-module h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
    font-weight: 600;
    position: relative;
    padding-left: 1.5rem;
}

.projet-module h5::before {
    font-family: "Font Awesome 5 Free";
    content: "\f058";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 1rem;
    opacity: 0.8;
}

.projet-module ul {
    margin: 0.3rem 0;
    padding-left: 0.5rem;
    list-style-type: none;
}

.projet-module li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    position: relative;
    padding-left: 1.2rem;
    transition: transform 0.2s ease;
}

.projet-module li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

.projet-module li:hover {
    transform: translateX(3px);
}

/* Impact */
.projet-impact {
    padding-left: 0.5rem;
    margin: 0.3rem 0;
    list-style-type: none;
}

.projet-impact li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.2s ease;
}

.projet-impact li:before {
    font-family: "Font Awesome 5 Free";
    content: "\f0a1";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    opacity: 0.8;
}

.projet-impact li:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* Technologies */
.projet-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.tech-tag {
    background: rgba(51, 51, 51, 0.08);
    color: #333;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(51, 51, 51, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    margin-right: 0.3rem;
}

.tech-tag i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tech-tag:hover {
    background: rgba(203, 108, 230, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

/* Styles spécifiques pour chaque technologie */
/* Styles spécifiques pour les icônes de technologies */
.tech-tag .fa-python { color: #306998; }
.tech-tag .fa-code { color: #092e20; }
.tech-tag .fa-node-js { color: #3c873a; }
.tech-tag .fa-js { color: #f0db4f; }
.tech-tag .fa-vuejs { color: #42b883; }
.tech-tag .fa-react { color: #61dafb; }
.tech-tag .fa-mobile-alt { color: #02569b; }
.tech-tag .fa-bullseye { color: #0175c2; }
.tech-tag .fa-database { color: #336791; }
.tech-tag .fa-aws { color: #ff9900; }
.tech-tag .fa-server { color: #123f6d; }
.tech-tag .fa-docker { color: #2496ed; }
.tech-tag .fa-dharmachakra { color: #326ce5; }

/* Contrôles du slider */
.swiper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    position: relative;
    height: 50px; /* Hauteur fixe pour les contrôles */
}

/* Navigation du slider */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    margin: 0 1rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--accent-color);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-pagination {
    position: relative;
    bottom: auto;
    width: auto;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
    width: 14px;
    height: 14px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 0.7;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background-color: #333;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .projets-slider {
        height: auto;
        min-height: 600px;
        padding: 0 10px;
        width: 95%;
    }
    
    .projet-header {
        padding: 1rem 1.2rem;
    }
    
    .projet-content {
        padding: 1.2rem;
    }
    
    .projet-title {
        font-size: 1.3rem;
    }
    
    .modules-container {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .projet-bottom {
        flex-direction: column;
        gap: 0.7rem;
    }
}

@media (max-width: 480px) {
    .projets-slider {
        height: 700px; /* Hauteur fixe pour mobile */
    }
    
    .swiper-slide {
        height: 700px; /* Même hauteur que le slider */
    }
    
    .projet-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.8rem;
    }
    
    .projet-icon i {
        font-size: 1.2rem;
    }
    
    .projet-title {
        font-size: 1.1rem;
    }
    
    .projet-section h4 {
        font-size: 0.95rem;
    }
    
    .projet-content {
        padding: 1rem;
    }
    
    .projet-module {
        padding: 0.6rem;
    }
    
    .projet-module h5 {
        font-size: 0.85rem;
    }
    
    .projet-module li, .projet-impact li {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}
