/* Carrousel réutilisable */

.project-carousel {
    margin: 4rem 0;
    text-align: center;
    font-family: 'Lora', serif;
}

.project-carousel h2 {
    font-family: 'Laviossa', serif;
    font-weight: 700;
    font-size: 3vw;
    background: linear-gradient(45deg, #FFCDE0, rgb(225, 159, 192), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.project-carousel p {
    color: #fae0ea;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 700px;
    height: 400px;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 205, 224, 0.2);
    box-shadow: 0 15px 35px rgba(255, 205, 224, 0.3);
    cursor: pointer;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-img.active {
    opacity: 1;
}

.carousel-img:hover {
    transform: scale(1.02);
}

.carousel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 15px;
}

.carousel-arrows {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
}

.carousel-arrow {
    background: linear-gradient(135deg, #FFCDE0 0%, rgba(255, 205, 224, 0.9) 50%, rgba(255, 205, 224, 0.8) 100%);
    color: #131212;
    border: 2px solid rgba(255, 205, 224, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Lora', serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 15px 35px rgba(255, 205, 224, 0.3);
}

.carousel-arrow:hover {
    transform: scale3d(1.05, 1.05, 1.05) translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 205, 224, 0.4);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 205, 224, 0.9) 0%, #FFCDE0 50%, rgba(255, 205, 224, 0.8) 100%);
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 205, 224, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 205, 224, 0.3);
    position: relative;
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: #FFCDE0;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dot.active {
    background: rgba(255, 205, 224, 0.4);
    border: 2px solid #FFCDE0;
    box-shadow: 0 0 20px rgba(255, 205, 224, 0.4);
    transform: scale(1.2);
}

.dot.active::before {
    width: 8px;
    height: 8px;
}

.dot:hover {
    background: rgba(255, 205, 224, 0.3);
    border: 2px solid rgba(255, 205, 224, 0.6);
    transform: scale(1.1);
}

.dot:hover::before {
    width: 6px;
    height: 6px;
}

@media screen and (max-width: 768px) {
    .project-carousel h2 {
        font-size: 5vw;
    }
    
    .project-carousel p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .carousel-container {
        width: 90vw;
        height: 250px;
    }
    
    .carousel-controls {
        gap: 15px;
        margin-top: 20px;
    }
    
    .carousel-arrows {
        gap: 15px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-dots {
        gap: 12px;
    }
    
    .dot {
        width: 14px;
        height: 14px;
    }
    
    .dot.active::before {
        width: 6px;
        height: 6px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        width: 95vw;
        height: 200px;
    }
    
    .carousel-controls {
        gap: 12px;
        margin-top: 15px;
    }
    
    .carousel-arrows {
        gap: 12px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-dots {
        gap: 10px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .dot.active::before {
        width: 5px;
        height: 5px;
    }
}