/* ===========================================
   Widget Avis Assuretonavenir - CSS
   =========================================== */

.ata-reviews-widget {
    background: transparent;
    padding: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    width: 100%;
    height: 1100px;
    position: relative;
}

.ata-reviews-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    height: 100%;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.ata-review-column {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ata-reviews-track {
    display: flex;
    flex-direction: column;
}

/* Défilement vers le haut (colonnes 1 et 3) */
.ata-review-column:nth-child(odd) .ata-reviews-track {
    animation: ataScrollUp 120s linear infinite;
}

/* Défilement vers le bas (colonnes 2 et 4) */
.ata-review-column:nth-child(even) .ata-reviews-track {
    animation: ataScrollDown 120s linear infinite;
}

/* Décalages pour désynchroniser les colonnes */
.ata-review-column:nth-child(1) .ata-reviews-track { animation-delay: 0s; }
.ata-review-column:nth-child(2) .ata-reviews-track { animation-delay: -30s; }
.ata-review-column:nth-child(3) .ata-reviews-track { animation-delay: -60s; }
.ata-review-column:nth-child(4) .ata-reviews-track { animation-delay: -90s; }

/* Pause au survol */
.ata-reviews-widget:hover .ata-reviews-track {
    animation-play-state: paused;
}

@keyframes ataScrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes ataScrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Cartes d'avis */
.ata-review-card {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    border: 1px solid #404040;
    transition: transform 0.2s ease;
    width: 100%;
}

.ata-review-card:hover {
    transform: scale(1.02);
}

/* Header de la carte */
.ata-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.ata-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.ata-avatar-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Couleurs des avatars */
.ata-avatar-1 { background: #4285f4; }
.ata-avatar-2 { background: #34a853; }
.ata-avatar-3 { background: #8e4ec6; }
.ata-avatar-4 { background: #ff6d01; }
.ata-avatar-5 { background: #ea4335; }
.ata-avatar-6 { background: #00ACC1; }
.ata-avatar-7 { background: #FBC02D; }
.ata-avatar-8 { background: #E91E63; }
.ata-avatar-9 { background: #673AB7; }
.ata-avatar-10 { background: #795548; }

.ata-reviewer-info {
    flex: 1;
}

.ata-reviewer-info h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px 0;
    padding: 0;
}

.ata-review-time {
    color: #b0b0b0;
    font-size: 13px;
}

.ata-platform-icon {
    width: 20px;
    height: 20px;
    margin-left: auto;
}

/* Étoiles */
.ata-stars {
    display: flex;
    margin-bottom: 12px;
}

.ata-star {
    color: #ffa500;
    font-size: 16px;
    margin-right: 2px;
}

/* Texte de l'avis */
.ata-review-text {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 1200px) {
    .ata-reviews-container { 
        grid-template-columns: repeat(3, 1fr); 
    }
    .ata-review-column:nth-child(4) { 
        display: none; 
    }
    .ata-reviews-widget { 
        height: 1000px; 
    }
}

@media (max-width: 900px) {
    .ata-reviews-container { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .ata-review-column:nth-child(3),
    .ata-review-column:nth-child(4) { 
        display: none; 
    }
    .ata-reviews-widget { 
        height: 900px; 
    }
}

@media (max-width: 600px) {
    .ata-reviews-container { 
        grid-template-columns: 1fr; 
    }
    .ata-review-column:nth-child(2),
    .ata-review-column:nth-child(3),
    .ata-review-column:nth-child(4) { 
        display: none; 
    }
    .ata-reviews-widget { 
        height: 800px; 
    }
    
    /* Sur mobile, seule la colonne 1 est visible, elle défile vers le haut */
    .ata-review-column:first-child .ata-reviews-track {
        animation: ataScrollUp 120s linear infinite;
    }
}
