/* ===============================================
   CHIPO AVIS CLIENTS - STYLES
   Design élégant et professionnel
   =============================================== */

/* WRAPPER GÉNÉRAL */
.chipo-avis-wrapper {
    background-color: #ffffff;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* HEADER */
.chipo-avis-header {
    text-align: center;
    margin-bottom: 50px;
    animation: chipoFadeInDown 0.8s ease-out;
}

.chipo-avis-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.chipo-avis-subtitle {
    font-size: 18px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* CONTAINER CARROUSEL */
.chipo-testimonials-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 70px;
}

.chipo-testimonials-track {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* SLIDE */
.chipo-testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: none;
    pointer-events: none;
}

.chipo-testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Animation activée */
.chipo-testimonials-container[data-animations="true"] .chipo-testimonial-slide {
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.chipo-testimonials-container[data-animations="true"] .chipo-testimonial-slide.active {
    animation: chipoSlideIn 0.8s ease-out forwards;
}

/* CARTE TÉMOIGNAGE */
.chipo-testimonial-card {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chipo-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* HEADER DE LA CARTE */
.chipo-testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

/* INFO CLIENT */
.chipo-client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chipo-client-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #51a4b4;
    box-shadow: 0 4px 15px rgba(81, 164, 180, 0.2);
}

.chipo-client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chipo-client-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chipo-client-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
}

.chipo-client-position {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* RATING */
.chipo-rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.chipo-rating {
    font-size: 18px;
    color: #ffd700;
    letter-spacing: 2px;
    line-height: 1;
}

.chipo-testimonial-date {
    font-size: 12px;
    color: #999999;
    font-style: italic;
}

/* CONTENU TÉMOIGNAGE */
.chipo-testimonial-content {
    position: relative;
    padding-left: 30px;
}

.chipo-quote-icon {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 60px;
    line-height: 1;
    opacity: 0.15;
    font-family: Georgia, serif;
}

.chipo-testimonial-text {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    margin: 0;
    font-style: italic;
}

/* NAVIGATION */
.chipo-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.chipo-nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #51a4b4;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(81, 164, 180, 0.3);
}

.chipo-nav-arrow:hover {
    background-color: #3d8896;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(81, 164, 180, 0.4);
}

.chipo-nav-arrow:active {
    transform: scale(0.95);
}

.chipo-nav-arrow.chipo-prev {
    left: -70px;
}

.chipo-nav-arrow.chipo-next {
    right: -70px;
}

/* DOTS */
.chipo-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.chipo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d1d1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.chipo-dot:hover {
    background-color: #a0a0a0;
    transform: scale(1.2);
}

.chipo-dot.active {
    background-color: #51a4b4;
    width: 30px;
    border-radius: 6px;
}

/* ANIMATIONS */
@keyframes chipoFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chipoSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .chipo-avis-wrapper {
        padding: 40px 15px;
    }
    
    .chipo-avis-title {
        font-size: 32px;
    }
    
    .chipo-avis-subtitle {
        font-size: 16px;
    }
    
    .chipo-testimonials-container {
        padding: 0 50px;
    }
    
    .chipo-testimonial-card {
        padding: 30px 25px;
    }
    
    .chipo-testimonial-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chipo-rating-wrapper {
        align-items: flex-start;
    }
    
    .chipo-client-photo {
        width: 60px;
        height: 60px;
    }
    
    .chipo-client-name {
        font-size: 18px;
    }
    
    .chipo-testimonial-text {
        font-size: 15px;
    }
    
    .chipo-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .chipo-nav-arrow.chipo-prev {
        left: -50px;
    }
    
    .chipo-nav-arrow.chipo-next {
        right: -50px;
    }
}

@media (max-width: 480px) {
    .chipo-testimonials-container {
        padding: 0;
    }
    
    .chipo-nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .chipo-nav-arrow.chipo-prev {
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .chipo-nav-arrow.chipo-next {
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .chipo-navigation {
        position: relative;
        top: auto;
        transform: none;
        margin-top: 20px;
        padding: 0 10px;
    }
    
    .chipo-testimonial-card {
        padding: 25px 20px;
    }
    
    .chipo-client-info {
        gap: 12px;
    }
    
    .chipo-testimonial-content {
        padding-left: 20px;
    }
    
    .chipo-quote-icon {
        font-size: 40px;
    }
}
