/* Animation pour le carrousel du faire-part */
.faire-part-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    min-height: 70vh;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.faire-part-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style de base pour toutes les slides */
.faire-part-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    min-height: 70vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Animation pour les slides rapides */
.fast-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
    transition: opacity 0.5s ease-in-out;
}

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

/* Animation pour les slides principaux */
.main-slide {
    opacity: 0;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-in-out;
}

.main-slide.active {
    opacity: 1;
    display: flex;
}

.faire-part-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Navigation */
.faire-part-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    color: #333;
    font-size: 20px;
}

.faire-part-nav:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.faire-part-prev {
    left: 15px;
}

.faire-part-next {
    right: 15px;
}

/* Indicateurs */
.faire-part-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.faire-part-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faire-part-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Animation automatique */
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .faire-part-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .faire-part-nav {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .faire-part-prev {
        left: 5px;
    }
    
    .faire-part-next {
        right: 5px;
    }
    
    .faire-part-indicators {
        bottom: 5px;
    }
    
    .faire-part-indicator {
        width: 8px;
        height: 8px;
    }
}
