/* ============================================================
   Linovavis — Widget avis clients
   ============================================================ */

.linovavis-widget {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    padding: 28px 24px;
    gap: 24px;
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Zone gauche (résumé global) ── */
.linovavis-summary {
    flex: 0 0 180px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    border-right: 1px solid #e8eaed;
    padding-right: 24px;
}

.linovavis-quality-label {
    font-size: 22px;
    font-weight: 700;
    color: #202124;
    line-height: 1.2;
}

.linovavis-avg-value {
    font-size: 42px;
    font-weight: 700;
    color: #202124;
    line-height: 1;
}

/* Étoiles globales avec remplissage partiel */
.linovavis-stars-global {
    position: relative;
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 2px;
}

.linovavis-stars-global .stars-empty {
    color: #dadce0;
}

.linovavis-stars-global .stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #fbbc04;
}

.linovavis-total-count {
    font-size: 13px;
    color: #70757a;
    line-height: 1.4;
}

.linovavis-google-logo {
    margin: 6px 0 2px;
    opacity: 0.85;
}

.linovavis-review-link {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 14px;
    background: #1a73e8;
    color: #ffffff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.linovavis-review-link:hover {
    background: #1558d6;
    color: #ffffff !important;
    text-decoration: none;
}

/* ── Zone droite (carousel) ── */
.linovavis-carousel-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.linovavis-carousel-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.linovavis-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Carte individuelle ── */
.linovavis-card {
    flex: 0 0 calc((100% - 32px) / 3);
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    min-width: 0;
}

.linovavis-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.linovavis-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.linovavis-author-info {
    flex: 1;
    min-width: 0;
}

.linovavis-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linovavis-time-ago {
    font-size: 12px;
    color: #70757a;
    margin-top: 1px;
}

.linovavis-card-google-icon {
    flex-shrink: 0;
    margin-left: auto;
}

/* Étoiles par carte (entières uniquement) */
.linovavis-stars {
    display: flex;
    gap: 1px;
}

.linovavis-star {
    font-size: 15px;
    color: #dadce0;
    line-height: 1;
}

.linovavis-star.filled {
    color: #fbbc04;
}

/* Texte de l'avis */
.linovavis-review-text {
    font-size: 13px;
    color: #3c4043;
    line-height: 1.6;
    word-break: break-word;
}

.linovavis-more-btn {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    display: inline;
    font-family: inherit;
}

.linovavis-more-btn:hover {
    text-decoration: underline;
}

/* ── Boutons de navigation ── */
.linovavis-nav {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dadce0;
    cursor: pointer;
    font-size: 13px;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, box-shadow 0.18s, opacity 0.18s;
    padding: 0;
    flex-shrink: 0;
}

.linovavis-nav:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.linovavis-nav:disabled,
.linovavis-nav[hidden] {
    opacity: 0;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .linovavis-card {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width: 640px) {
    .linovavis-widget {
        flex-direction: column;
        padding: 20px 16px;
        gap: 20px;
    }

    .linovavis-summary {
        border-right: none;
        border-bottom: 1px solid #e8eaed;
        padding-right: 0;
        padding-bottom: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .linovavis-quality-label {
        width: 100%;
    }

    .linovavis-card {
        flex: 0 0 100%;
    }
}
