/* Widget Avis Google/LinkedIn - Assuretonavenir v8.4 */

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

.ata-reviews-container {
    display: flex;
    gap: 20px;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ata-review-column {
    flex: 1 1 0;
    overflow: hidden;
    position: relative;
    min-width: 0;
    max-width: 100%;
}

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

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

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

/* Décalages pour désynchroniser */
.ata-review-column:nth-child(1) .ata-reviews-track { animation-delay: 0s; }
.ata-review-column:nth-child(2) .ata-reviews-track { animation-delay: -25s; }
.ata-review-column:nth-child(3) .ata-reviews-track { animation-delay: -50s; }
.ata-review-column:nth-child(4) .ata-reviews-track { animation-delay: -75s; }

.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); }
}

/* Carte d'avis */
.ata-review-card {
    background: #2d2d2d;
    border-radius: 12px; /* Déclaration simplifiée */
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Important pour que les coins arrondis soient visibles */
}


.ata-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
}

/* Avatar */
.ata-avatar {
    width: 48px;
    height: 48px;
    min-width: 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;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.ata-reviewer-info {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 90px);
    overflow: hidden;
}

.ata-reviewer-info h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ata-review-time {
    color: #a0a0a0;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.ata-platform-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-left: 8px;
    flex-shrink: 0;
}

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

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

/* Texte */
.ata-review-text {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Responsive - 3 colonnes */
@media (max-width: 1200px) {
    .ata-review-column:nth-child(4) {
        display: none;
    }
    .ata-reviews-widget {
        height: 750px;
    }
}

/* Responsive - 2 colonnes */
@media (max-width: 900px) {
    .ata-review-column:nth-child(3),
    .ata-review-column:nth-child(4) {
        display: none;
    }
    .ata-reviews-widget {
        height: 650px;
    }
    .ata-reviews-container {
        gap: 15px;
        padding: 0 15px;
    }
    .ata-review-card {
        padding: 16px;
    }
    .ata-avatar,
    .ata-avatar-photo {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }
    .ata-reviewer-info {
        max-width: calc(100% - 80px);
    }
}

/* Responsive - 1 colonne mobile */
@media (max-width: 600px) {
    .ata-review-column:nth-child(2),
    .ata-review-column:nth-child(3),
    .ata-review-column:nth-child(4) {
        display: none;
    }
    .ata-reviews-widget {
        height: 500px;
    }
    .ata-reviews-container {
        padding: 0 10px;
    }
    .ata-review-card {
        padding: 14px;
    }
    .ata-reviewer-info h3 {
        font-size: 14px;
    }
    .ata-review-text {
        font-size: 13px;
    }
}