:root {
    --main-bg: #f9f9f9;
    --primary-color: #007bff5a;
    --secondary-color: #0056b3;
    --text-color2: #333;
    --text-color0: #848383;
    --border-radius: 15px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.4s;
    --dot-color: #ffcc00;
    --star-color: #ff9900;
}

body {
    background-color: #f8f9fc;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.testimonials {
    padding: 10px 30px;
    position: relative;
    max-width: 75%;
    margin: 15px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
}

.stars {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.stars i {
    font-size: 26px;
    color: var(--star-color);
    margin: 0 5px;
}

.testimonial {
    display: none;
    padding: 5px;
    animation: fadeIn var(--transition-speed) ease-in-out;
}

.testimonial.active {
    display: block;
}

.image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px auto;
    border: var(--secondary-color) 1px solid;
    box-shadow: var(--box-shadow);
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials h2 {
    font-size: 26px;
    color: var(--text-color2);
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
}

.testimonials .title {
    font-size: 18px;
    color: var(--text-color0);
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
}

.testimonial p {
    font-size: 18px;
    color: var(--text-color2);
    max-width: 80%;
    margin: auto;
    line-height: 1.6;
    text-align: center;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-speed);
}

.nav-btn:hover {
    background: var(--secondary-color);
}

#prev {
    left: -25px;
}

#next {
    right: -25px;
}

.dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: var(--dot-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-speed);
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) { /* iPad et tablettes */
    .testimonials {
        padding: 15px;
        margin: 15px auto;
        max-width: 85%;
    }
    .testimonial {
        padding: 10px;
    }
    .image {
        width: 180px;
        height: 180px;
    }
    .testimonials h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    .testimonials .title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .testimonial p {
        font-size: 16px;
    }
    .stars i {
        font-size: 22px;
    }
    .nav-btn {
        padding: 10px 14px;
        top: 50%;
    }
    #prev {
        left: -20px;
    }
    #next {
        right: -20px;
    }
    .dot {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 768px) { /* Tablettes et petits écrans */
    .testimonials {
        padding: 10px;
        margin: 10px auto;
        max-width: 90%;
    }
    .testimonials h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .testimonials .title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    .testimonial p {
        font-size: 14px;
    }
    .image {
        width: 160px;
        height: 160px;
    }
    .stars i {
        font-size: 20px;
    }
    .nav-btn {
        padding: 8px 12px;
    }
    #prev {
        left: -15px;
    }
    #next {
        right: -15px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) { /* Smartphones */
    .testimonials {
        padding: 10px;
        margin: 5px auto;
        max-width: 95%;
    }
    .testimonials h2 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .testimonials .title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .testimonial p {
        font-size: 13px;
    }
    .image {
        width: 140px;
        height: 140px;
    }
    .stars i {
        font-size: 18px;
    }
    .nav-btn {
        top: 50%;
        padding: 6px 10px;
    }
    #prev {
        left: -10px;
    }
    #next {
        right: -10px;
    }
    .dot {
        width: 7px;
        height: 7px;
    }
}
