.ti-widget {
    margin: 0 auto;
    max-width: 1200px;
}

.ti-reviews-container {
    position: relative;
    overflow: hidden;
}

.ti-review-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ti-profile-img img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.ti-stars {
    display: flex;
    gap: 2px;
    margin: 10px 0;
}

.ti-star {
    width: 17px;
    height: 17px;
}

.ti-review-content {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

.ti-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
}

.ti-next, .ti-prev {
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 50%;
}

.ti-footer {
    text-align: center;
    margin-top: 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 3rem 2rem;  /* Réduit de 4rem à 2rem */
    max-width: 1680px;
    margin: 0 auto;
    perspective: 1000px;
}

.review-item {
    background: linear-gradient(135deg, #fff 0%, #fff8f3 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 183, 71, 0.1);
    position: relative;
    overflow: hidden;
}

.review-item:hover {
    transform: translateY(-10px) rotate3d(1, 1, 0, 2deg);
    box-shadow: 0 20px 40px rgba(255, 183, 71, 0.15);
    border-color: var(--primary-color);
}

.review-item::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: 'Georgia', serif;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.review-initials {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(255, 183, 71, 0.3);
    transition: transform 0.3s ease;
}

.review-item:hover .review-initials {
    transform: scale(1.1) rotate(5deg);
}

.review-author {
    font-weight: 500;
}

.review-date {
    color: #666;
    font-size: 0.9em;
}

.review-content {
    position: relative;
    z-index: 1;
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    margin-top: 10px;
}

.review-rating {
    color: #ffc107;
    margin: 10px 0;
}

.read-more-button {
    color: #0066cc;
    cursor: pointer;
    margin-left: 5px;
    border: none;
    background: none;
    font-size: 0.9em;
    padding: 0;
}

.reviews-slider {
    position: relative;
    margin-top: -3rem; /* Ajoute une marge négative pour rapprocher */
}

.swiper-container {
    width: 100%;
    padding: 2rem;
    max-width: 1680px;
    margin: 0 auto;
    margin-top: 1rem;
}

.swiper-slide {
    width: 380px;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.review-content .full-content {
    display: none;
}

.review-text .short-content {
    display: inline;
}

.review-text .full-content {
    display: none;
}

.review-text.expanded .short-content {
    display: none;
}

.review-text.expanded .full-content {
    display: inline;
}

.review-text.expanded .read-more-button {
    display: none;
}

/* Styles pour les contrôles du slider */
.swiper-button-prev,
.swiper-button-next {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
}

.reviews-slider .swiper-container {
    box-shadow: none;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .swiper-slide {
        width: 300px;
    }
}
