/****************************
style slider realisation home
****************************/
#customSplideRight .splide__list,
#customSplideLeft .splide__list {
    will-change: transform;
}
#customSplideRight .splide__slide img,
#customSplideLeft .splide__slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: filter 0.3s ease;
}

.splide__list {
    gap: 1rem;
}

.splide__track {
	overflow: visible !important;
}

#customSplideRight .splide__slide a,
#customSplideLeft .splide__slide a {
	position: relative;
}

#customSplideRight .splide__slide::before,
#customSplideLeft .splide__slide::before {
	content: "Voir le site";
    position: absolute;
	top: 50%;
	left: 50%;
	background: white;
	z-index: 1;
    padding: 12px 24px;
    font-size: 14px;
    color: var(--global-palette3);
    border-radius: 5px;
    border: 1px solid var(--global-palette1);
    font-family: var(--global-heading-font-family);
    opacity: 0;
    transform: translate(-55%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#customSplideRight .splide__slide:hover::before,
#customSplideLeft .splide__slide:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Style pour les slides floutées */
#customSplideRight .splide__slide.is-blurred img,
#customSplideLeft .splide__slide.is-blurred img {
    filter: blur(3px) brightness(0.8);
}

/****************************
style slider testimonial home
****************************/
#customSplideTestimonialRight {
    padding: 30px 0;
}

.testimonial-item {
    position: relative;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid var(--global-palette1);
    padding: 25px;
    margin: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: end;
    align-items: flex-start;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    text-align: start;
    direction: ltr;
}

/* Suppression du style italic qui peut interférer avec le wysiwyg */
.testimonial-text p {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: start;
    direction: ltr;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    text-align: end;
}

.author-company {
    font-size: 14px;
    color: #777;
    text-align: end;
}

/* style square */
.style-square {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--global-palette1);
    border-radius: 3px;
}

.square-left-top {
    top: 0;
    left: 0;
    transform: translate(-50%, -50%)
}

.square-right-top {
    top: 0;
    right: 0;
    transform: translate(50%, -50%)
}

.square-left-bottom {
    bottom: 0;
    left: 0;
    transform: translate(-50%, 50%)
}

.square-right-bottom {
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%)
}

/* Forcer la même hauteur pour tous les slides */
#customSplideTestimonialRight .splide__track {
    overflow: visible;
}

#customSplideTestimonialRight .splide__list {
    display: flex;
    align-items: stretch;
}

#customSplideTestimonialRight .splide__slide {
    height: auto !important;
    display: flex;
}

#customSplideTestimonialRight .testimonial-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Assurer que le contenu s'adapte correctement */
.testimonial-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.testimonial-text {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-item {
        padding: 20px;
        margin: 5px;
    }
    
    .testimonial-header {
        flex-direction: column;
        direction: ltr;
    }
    
    .testimonial-rating {
        margin-top: 10px;
    }
    
    .testimonial-rating .star {
        font-size: 16px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .author-image {
        width: 40px;
        height: 40px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .author-company {
        font-size: 12px;
    }
}

/* Animation pour les slides */
#customSplideTestimonialRight .splide__slide {
    opacity: 0.9;
    transition: all 0.3s ease;
}

#customSplideTestimonialRight .splide__slide:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Style pour les slides actives */
#customSplideTestimonialRight .splide__slide.is-active {
    z-index: 1;
}

/****************************
style slider testimonial left
****************************/
#customSplideTestimonialLeft {
    padding: 30px 0;
}

/* Forcer la même hauteur pour tous les slides */
#customSplideTestimonialLeft .splide__track {
    overflow: visible;
}

#customSplideTestimonialLeft .splide__list {
    display: flex;
    align-items: stretch;
}

#customSplideTestimonialLeft .splide__slide {
    height: auto !important;
    display: flex;
}

/* Animation pour les slides du slider gauche */
#customSplideTestimonialLeft .splide__slide {
    opacity: 0.9;
    transition: all 0.3s ease;
}

#customSplideTestimonialLeft .splide__slide:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Style pour les slides actives du slider gauche */
#customSplideTestimonialLeft .splide__slide.is-active {
    z-index: 1;
}

/* Styles spécifiques pour le slider gauche pour corriger l'alignement */
#customSplideTestimonialLeft .testimonial-header {
    flex-direction: row;
    justify-content: start;
}

#customSplideTestimonialLeft .testimonial-author {
    flex-direction: row;
    gap: 10px;
}

#customSplideTestimonialLeft .author-name,
#customSplideTestimonialLeft .author-company {
    text-align: start;
}

#customSplideTestimonialLeft .author-image {
    margin-right: 0;
    margin-left: 0;
}