/* ============================================
   SECTION TÉMOIGNAGES - STYLE PREMIUM
   ============================================ */

.testimonial_section_enhanced {
    padding: 80px 0;
    position: relative;
}

@media (max-width: 768px) {
    .testimonial_section_enhanced {
        padding: 60px 0;
    }
}

/* ============================================
   CARTE DE TÉMOIGNAGE
   ============================================ */

.single_testimonial_enhanced {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single_testimonial_enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.single_testimonial_enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
}

.single_testimonial_enhanced:hover::before {
    transform: scaleX(1);
}

/* Badge de citation */
.quote-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    transition: all 0.3s ease;
}

.quote-badge i {
    font-size: 22px;
    color: white;
}

.single_testimonial_enhanced:hover .quote-badge {
    opacity: 0.25;
    transform: scale(1.1) rotate(10deg);
}

/* ============================================
   ÉTOILES DE NOTATION
   ============================================ */

.rating-enhanced {
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
}

.rating-enhanced i {
    color: #ffc107;
    font-size: 18px;
    animation: starPulse 2s ease-in-out infinite;
}

.rating-enhanced i:nth-child(1) { animation-delay: 0s; }
.rating-enhanced i:nth-child(2) { animation-delay: 0.1s; }
.rating-enhanced i:nth-child(3) { animation-delay: 0.2s; }
.rating-enhanced i:nth-child(4) { animation-delay: 0.3s; }
.rating-enhanced i:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

.single_testimonial_enhanced:hover .rating-enhanced i {
    animation: starBounce 0.6s ease;
}

@keyframes starBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ============================================
   TEXTE DU TÉMOIGNAGE
   ============================================ */

.testimonial_text {
    flex: 1;
    margin-bottom: 25px;
}

.testimonial_text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    margin: 0;
}

.testimonial_text p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 40px;
    color: #667eea;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ============================================
   AUTEUR DU TÉMOIGNAGE
   ============================================ */

.testimonial_author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.author_thumb {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.author_thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.single_testimonial_enhanced:hover .author_thumb img {
    border-color: #ffc107;
    transform: scale(1.05);
}

/* Badge vérifié */
.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.verified-badge i {
    font-size: 10px;
    color: white;
}

/* Info auteur */
.author_info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    transition: color 0.3s ease;
}

.single_testimonial_enhanced:hover .author_info h4 {
    color: #667eea;
}

.author_info span {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* ============================================
   EFFETS D'ARRIÈRE-PLAN
   ============================================ */

.decorative-bg div {
    animation: floatShape 8s ease-in-out infinite;
}

.decorative-bg div:nth-child(2) {
    animation-delay: 2s;
    animation-duration: 10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .single_testimonial_enhanced {
        margin-bottom: 30px;
    }
    
    .testimonial_section_enhanced h2 {
        font-size: 36px !important;
    }
}

@media (max-width: 768px) {
    .single_testimonial_enhanced {
        padding: 30px 25px;
    }
    
    .testimonial_section_enhanced h2 {
        font-size: 30px !important;
    }
    
    .quote-badge {
        width: 40px;
        height: 40px;
    }
    
    .quote-badge i {
        font-size: 18px;
    }
    
    .testimonial_text p {
        font-size: 15px;
    }
    
    .author_thumb {
        width: 50px;
        height: 50px;
    }
    
    .author_info h4 {
        font-size: 16px;
    }
}

/* ============================================
   ANIMATIONS D'ENTRÉE
   ============================================ */

.single_testimonial_enhanced {
    animation: testimonialFadeIn 0.6s ease-out;
}

@keyframes testimonialFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   EFFET DE BRILLANCE
   ============================================ */

.single_testimonial_enhanced::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.single_testimonial_enhanced:hover::after {
    transform: rotate(45deg) translateX(100%);
}

