/* Section principale */
.review-section {
    background: #f8f9fa;
    padding: 4rem 0;
    margin: 2rem 0;
    position: relative;
}

.review-section .review-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.review-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.review-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Container du carousel */
.review-carousel {
    position: relative;
    margin: 0 auto;
    padding: 0 50px;
}

/* Item d'avis individuel */
.review-item {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.review-item.slick-center {
    opacity: 1;
    transform: scale(1);
}

.review-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.review-image {
    text-align: center;
    margin-bottom: 1rem;
}

.review-image img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    width: 80px;
    height: 80px;
}

.review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-rating {
    margin-bottom: 1rem;
    text-align: center;
}

.review-stars {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.review-star.review-active {
    color: #FFD700;
}

.review-star.review-inactive {
    color: #ddd;
}

.review-rating-value {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    flex: 1;
    position: relative;
    padding: 0 1rem;
}

.review-text::before {
    content: "«";
    font-size: 3rem;
    color: #007bff;
    position: absolute;
    left: -10px;
    top: -15px;
    opacity: 0.3;
}

.review-text::after {
    content: "»";
    font-size: 3rem;
    color: #007bff;
    position: absolute;
    right: -10px;
    bottom: -25px;
    opacity: 0.3;
}

.review-meta {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.review-customer-name {
    font-weight: bold;
    color: #333;
    display: block;
    font-size: 1.1rem;
}

.review-date {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* État vide */
.review-no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: white;
    border-radius: 8px;
}

/* Override des styles Slick avec préfixe review- */
.review-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.review-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.review-track {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

.review-slide {
    float: none;
    height: auto;
    min-height: 1px;
    transition: all 0.3s ease;
}

/* Flèches personnalisées */
.review-prev, .review-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #007bff;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.review-prev:hover, .review-next:hover {
    background: #0056b3;
    transform: translateY(-50%) scale(1.1);
}

.review-prev:before, .review-next:before {
    font-family: 'FontAwesome';
    font-size: 20px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.review-prev:before {
    content: "‹";
}

.review-next:before {
    content: "›";
}

.review-prev {
    left: 0;
}

.review-next {
    right: 0;
}

/* Points de navigation */
.review-dots {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
}

.review-dots li {
    margin: 0 5px;
}

.review-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.review-dots li.slick-active button {
    background: #007bff;
    transform: scale(1.2);
}

.review-dots li button:hover {
    background: #0056b3;
}

/* Responsive */
@media (max-width: 1024px) {
    .review-carousel {
        padding: 0 40px;
    }
    
    .review-item {
        margin: 0 10px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .review-section {
        padding: 2rem 0;
    }
    
    .review-title {
        font-size: 2rem;
    }
    
    .review-carousel {
        padding: 0 30px;
    }
    
    .review-item {
        padding: 1.5rem;
        margin: 0 5px;
        opacity: 1;
        transform: scale(1);
    }
    
    .review-prev, .review-next {
        width: 40px;
        height: 40px;
    }
    
    .review-prev {
        left: -10px;
    }
    
    .review-next {
        right: -10px;
    }
    
    .review-text::before,
    .review-text::after {
        font-size: 2rem;
    }
    
    .review-text::before {
        left: -5px;
        top: -10px;
    }
    
    .review-text::after {
        right: -5px;
        bottom: -15px;
    }
}

@media (max-width: 480px) {
    .review-carousel {
        padding: 0 20px;
    }
    
    .review-prev, .review-next {
        display: none !important;
    }
    
    .review-item {
        padding: 1rem;
    }
}

/* Surcharge des classes Slick génériques pour notre module seulement */
.review-carousel .slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
}

.review-carousel .slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.review-carousel .slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

.review-carousel .slick-slide {
    float: none;
    height: auto;
    min-height: 1px;
}

.review-carousel .slick-prev,
.review-carousel .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #007bff;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.review-carousel .slick-prev:hover,
.review-carousel .slick-next:hover {
    background: #0056b3;
    transform: translateY(-50%) scale(1.1);
}

.review-carousel .slick-prev:before,
.review-carousel .slick-next:before {
    font-family: 'FontAwesome';
    font-size: 20px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.review-carousel .slick-prev:before {
    content: "‹";
}

.review-carousel .slick-next:before {
    content: "›";
}

.review-carousel .slick-prev {
    left: 0;
}

.review-carousel .slick-next {
    right: 0;
}

.review-carousel .slick-dots {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
}

.review-carousel .slick-dots li {
    margin: 0 5px;
}

.review-carousel .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.review-carousel .slick-dots li.slick-active button {
    background: #007bff;
    transform: scale(1.2);
}

.review-carousel .slick-dots li button:hover {
    background: #0056b3;
}