/* ===== SECTION TÉMOIGNAGES CASCADE ZIGZAG - VERSION FINALE ===== */
/* Fichier CSS dédié pour éviter les conflits */

/* 1. CONTENEUR PRINCIPAL */
.feedback-cascade-section-container {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
    min-height: 100vh;
}

/* 2. EFFET DE FOND LUMINEUX */
.feedback-cascade-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0, 224, 255, 0.15) 0%, rgba(0, 224, 255, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    animation: feedback-cascade-glow-pulse 8s ease-in-out infinite;
}

@keyframes feedback-cascade-glow-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* 3. EN-TÊTE DE LA SECTION */
.feedback-cascade-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.feedback-cascade-badge {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 224, 255, 0.1);
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 30px;
    color: #00E0FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
}

.feedback-cascade-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #00E0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feedback-cascade-header p {
    font-size: 1.3rem;
    color: #b0b0b0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 4. CONTENEUR PRINCIPAL DE LA CASCADE */
.feedback-cascade-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    height: 600px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* 5. COLONNES DE TÉMOIGNAGES */
.feedback-cascade-column {
    height: 100%;
    overflow: hidden;
    position: relative;
}

.feedback-cascade-column-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation-duration: 80s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

/* 6. ANIMATIONS DE DÉFILEMENT ZIGZAG */
@keyframes scroll-up-anim {
    0% { 
        transform: translateY(0);
    }
    100% { 
        transform: translateY(-50%);
    }
}

@keyframes scroll-down-anim {
    0% { 
        transform: translateY(-50%);
    }
    100% { 
        transform: translateY(0);
    }
}

/* Animation de pulsation pour les cartes */
@keyframes card-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 224, 255, 0.1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 224, 255, 0.2);
    }
}

.feedback-cascade-column[data-direction="up"] .feedback-cascade-column-inner {
    animation-name: scroll-up-anim;
}

.feedback-cascade-column[data-direction="down"] .feedback-cascade-column-inner {
    animation-name: scroll-down-anim;
}

/* 7. CARTES DE TÉMOIGNAGES */
.feedback-cascade-card {
    background: linear-gradient(135deg, rgba(15, 25, 45, 0.9) 0%, rgba(5, 15, 25, 0.9) 100%);
    border: 1px solid rgba(0, 224, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: card-pulse 6s ease-in-out infinite;
    animation-delay: var(--card-delay, 0s);
}

.feedback-cascade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.feedback-cascade-card:hover::before {
    opacity: 1;
}

.feedback-cascade-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 224, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 224, 255, 0.15);
}

/* 8. AVATAR */
.feedback-cascade-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid rgba(0, 224, 255, 0.3);
    position: relative;
    z-index: 2;
}

.feedback-cascade-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feedback-cascade-card:hover .feedback-cascade-avatar img {
    transform: scale(1.1);
}

/* 9. CONTENU */
.feedback-cascade-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feedback-cascade-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.feedback-cascade-stars i {
    color: #FFD700;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.feedback-cascade-content p {
    color: #e8e8e8;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
    flex-grow: 1;
    position: relative;
}

.feedback-cascade-content p::before {
    content: '"';
    font-size: 60px;
    color: rgba(0, 224, 255, 0.3);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.feedback-cascade-author h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feedback-cascade-author span {
    color: #00E0FF;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* 10. BOUTON CTA */
.feedback-cascade-cta-button {
    display: block;
    width: 300px;
    margin: 60px auto 0;
    padding: 16px 40px;
    background: linear-gradient(135deg, #00E0FF 0%, #0099CC 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 224, 255, 0.3);
    animation: feedback-cascade-cta-pulse 3s ease-in-out infinite;
}

@keyframes feedback-cascade-cta-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 224, 255, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 224, 255, 0.5);
    }
}

.feedback-cascade-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 224, 255, 0.4);
}

.feedback-cascade-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.feedback-cascade-cta-button:hover::before {
    left: 100%;
}

/* 11. RESPONSIVITÉ */

/* Tablette */
@media (max-width: 992px) {
    .feedback-cascade-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .feedback-cascade-column:nth-child(3) {
        display: none;
    }
    
    .feedback-cascade-header h2 {
        font-size: 3rem;
    }
    
    .feedback-cascade-section-container {
        padding: 100px 0;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .feedback-cascade-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .feedback-cascade-column:nth-child(2),
    .feedback-cascade-column:nth-child(3) {
        display: none;
    }
    
    .feedback-cascade-column-inner {
        animation: none;
    }
    
    .feedback-cascade-header h2 {
        font-size: 2.5rem;
    }
    
    .feedback-cascade-header p {
        font-size: 1.1rem;
    }
    
    .feedback-cascade-card {
        padding: 25px;
        min-height: auto;
    }
    
    .feedback-cascade-section-container {
        padding: 80px 0;
    }
    
    .feedback-cascade-cta-button {
        padding: 16px 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .feedback-cascade-header h2 {
        font-size: 2rem;
    }
    
    .feedback-cascade-card {
        padding: 20px;
    }
    
    .feedback-cascade-content p {
        font-size: 15px;
    }
}