/* Styles Trustpilot Plugin - Design moderne et professionnel */

/* ========================================
   VARIABLES CSS POUR LE THÈME EDUMA
   ======================================== */
:root {
    /* Variables Eduma */
    --eduma-primary: #2196F3;
    --eduma-secondary: #FF9800;
    --eduma-success: #4CAF50;
    --eduma-text: #333333;
    --eduma-text-light: #666666;
    --eduma-border: #e0e0e0;
    --eduma-bg: #ffffff;
    --eduma-bg-light: #f9f9f9;
    --eduma-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --eduma-radius: 4px;
    
    /* Variables Trustpilot adaptées à Eduma */
    --trustpilot-green: var(--eduma-success);
    --trustpilot-dark-green: #388E3C;
    --trustpilot-light-green: #E8F5E8;
    --trustpilot-gray: var(--eduma-text-light);
    --trustpilot-text: var(--eduma-text);
    --trustpilot-border: var(--eduma-border);
    --trustpilot-bg: var(--eduma-bg);
    --trustpilot-shadow: var(--eduma-shadow);
    --trustpilot-light-gray: #F7F7F7;
    --trustpilot-white: #FFFFFF;
    --trustpilot-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Widget Trustpilot Principal */
.trustpilot-widget {
    background: var(--trustpilot-white);
    border: 1px solid var(--trustpilot-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--trustpilot-shadow);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 400px;
    margin: 20px 0;
    transition: box-shadow 0.3s ease;
}

.trustpilot-widget:hover {
    box-shadow: var(--trustpilot-shadow-hover);
}

.trustpilot-widget-header {
    margin-bottom: 20px;
}

.trustpilot-logo {
    margin-bottom: 16px;
}

.trustpilot-logo svg {
    height: 24px;
    width: auto;
}

.trustpilot-rating-summary {
    text-align: left;
}

.trustpilot-rating-value {
    font-size: 48px;
    font-weight: 300;
    color: var(--trustpilot-text);
    line-height: 1;
    margin-bottom: 8px;
}

.trustpilot-reviews-count {
    color: var(--trustpilot-gray);
    font-size: 14px;
    margin-top: 8px;
}

/* Étoiles Trustpilot */
.trustpilot-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.trustpilot-star {
    fill: #FFD700;
}

.trustpilot-star-empty {
    fill: #ddd;
}

.trustpilot-stars-tiny .trustpilot-star {
    width: 12px;
    height: 12px;
}

.trustpilot-stars-small .trustpilot-star {
    width: 16px;
    height: 16px;
}

.trustpilot-stars-medium .trustpilot-star {
    width: 20px;
    height: 20px;
}

.trustpilot-stars-large .trustpilot-star {
    width: 24px;
    height: 24px;
}

.trustpilot-stars-hero .trustpilot-star {
    width: 32px;
    height: 32px;
}

.trustpilot-stars-compact .trustpilot-star {
    width: 18px;
    height: 18px;
}

/* Widget Compact (comme l'image) */
.trustpilot-compact-widget {
    background: var(--trustpilot-white);
    border: 1px solid var(--trustpilot-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 300px;
    transition: box-shadow 0.3s ease;
}

.trustpilot-compact-widget:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.trustpilot-compact-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.trustpilot-compact-rating {
    font-size: 40px;
    font-weight: 300;
    color: #191919;
    line-height: 1;
    margin-bottom: 3px;
}

.trustpilot-compact-label {
    font-size: 14px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 6px;
}

.trustpilot-compact-stars {
    margin-bottom: 6px;
}

.trustpilot-compact-count {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.trustpilot-compact-links {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trustpilot-compact-link {
    font-size: 10px;
    color: var(--trustpilot-green);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s ease;
    line-height: 1.2;
}

.trustpilot-compact-link:hover {
    color: var(--trustpilot-dark-green);
    text-decoration: underline;
}

.trustpilot-compact-link svg {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.trustpilot-compact-right {
    flex: 1;
    min-width: 0;
}

.trustpilot-compact-distribution {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trustpilot-compact-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trustpilot-compact-star-label {
    font-size: 11px;
    color: #666;
    min-width: 45px;
    font-weight: 500;
}

.trustpilot-compact-bar {
    flex: 1;
    height: 6px;
    background: #e6e6e6;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.trustpilot-compact-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s ease;
    position: relative;
}

/* Couleurs spécifiques pour chaque note (comme dans l'image) */
.trustpilot-compact-fill-5 {
    background: #00B67A; /* Vert Trustpilot pour 5 étoiles */
}

.trustpilot-compact-fill-4 {
    background: #73CF11; /* Vert clair pour 4 étoiles */
}

.trustpilot-compact-fill-3 {
    background: #FFCE00; /* Jaune pour 3 étoiles */
}

.trustpilot-compact-fill-2 {
    background: #FF8622; /* Orange pour 2 étoiles */
}

.trustpilot-compact-fill-1 {
    background: #FF3722; /* Rouge pour 1 étoile */
}

/* Responsive pour le widget compact */
@media (max-width: 480px) {
    .trustpilot-compact-widget {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
        padding: 16px;
    }
    
    .trustpilot-compact-left {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .trustpilot-compact-rating {
        font-size: 32px;
    }
    
    .trustpilot-compact-right {
        width: 100%;
    }
    
    .trustpilot-compact-star-label {
        min-width: 40px;
        font-size: 10px;
    }
    
    .trustpilot-compact-links {
        align-items: center;
    }
}

/* Page complète d'avis */
.trustpilot-full-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section */
.trustpilot-page-hero {
    background: linear-gradient(135deg, var(--trustpilot-green) 0%, var(--trustpilot-dark-green) 100%);
    color: var(--trustpilot-white);
    padding: 80px 40px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.trustpilot-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.trustpilot-hero-content {
    position: relative;
    z-index: 1;
}

.trustpilot-hero-logo {
    margin-bottom: 30px;
}

.trustpilot-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trustpilot-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trustpilot-hero-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trustpilot-hero-score {
    text-align: center;
}

.trustpilot-score-value {
    font-size: 4rem;
    font-weight: 300;
    display: block;
    margin-bottom: 10px;
}

.trustpilot-hero-info {
    text-align: center;
}

.trustpilot-hero-count {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.trustpilot-hero-link {
    color: var(--trustpilot-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.trustpilot-hero-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    color: var(--trustpilot-white);
    transform: translateY(-2px);
}

/* Statistiques de la page */
.trustpilot-page-stats {
    margin-bottom: 60px;
}

.trustpilot-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.trustpilot-stat-card {
    background: var(--trustpilot-white);
    border: 1px solid var(--trustpilot-border);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--trustpilot-shadow);
    transition: all 0.3s ease;
}

.trustpilot-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--trustpilot-shadow-hover);
}

.trustpilot-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.trustpilot-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--trustpilot-green);
    margin-bottom: 8px;
}

.trustpilot-stat-label {
    color: var(--trustpilot-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.trustpilot-distribution-chart {
    background: var(--trustpilot-white);
    border: 1px solid var(--trustpilot-border);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--trustpilot-shadow);
}

.trustpilot-distribution-chart h3 {
    text-align: center;
    color: var(--trustpilot-text);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.trustpilot-distribution-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.trustpilot-distribution-stars {
    min-width: 100px;
}

.trustpilot-distribution-bar {
    flex: 1;
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.trustpilot-distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--trustpilot-green), var(--trustpilot-dark-green));
    border-radius: 6px;
    transition: width 1.5s ease;
    position: relative;
}

.trustpilot-distribution-count {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--trustpilot-text);
}

.trustpilot-distribution-percentage {
    min-width: 50px;
    text-align: right;
    color: var(--trustpilot-gray);
    font-size: 14px;
}

/* Filtres de la page */
.trustpilot-page-filters {
    background: var(--trustpilot-white);
    border: 1px solid var(--trustpilot-border);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--trustpilot-shadow);
}

.trustpilot-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trustpilot-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trustpilot-filter-group label {
    font-weight: 600;
    color: var(--trustpilot-text);
    font-size: 14px;
}

.trustpilot-filter-select,
.trustpilot-sort-select {
    padding: 10px 15px;
    border: 2px solid var(--trustpilot-border);
    border-radius: 8px;
    background: var(--trustpilot-white);
    font-size: 14px;
    color: var(--trustpilot-text);
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 180px;
}

.trustpilot-filter-select:focus,
.trustpilot-sort-select:focus {
    outline: none;
    border-color: var(--trustpilot-green);
    box-shadow: 0 0 0 3px rgba(0, 182, 122, 0.1);
}

.trustpilot-results-count {
    color: var(--trustpilot-gray);
    font-weight: 500;
    font-size: 14px;
}

.trustpilot-visible-count {
    color: var(--trustpilot-green);
    font-weight: 700;
}

/* Grille masonry des avis */
.trustpilot-page-reviews {
    margin-bottom: 60px;
}

.trustpilot-reviews-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    align-items: start;
}

.trustpilot-review-card-full {
    background: var(--trustpilot-white);
    border: 1px solid var(--trustpilot-border);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--trustpilot-shadow);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.trustpilot-review-card-full:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.trustpilot-review-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--trustpilot-green), var(--trustpilot-dark-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trustpilot-review-card-full:hover::before {
    transform: scaleX(1);
}

.trustpilot-review-header-full {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.trustpilot-review-rating {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trustpilot-review-date-full {
    color: var(--trustpilot-gray);
    font-size: 12px;
}

.trustpilot-review-verified {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--trustpilot-green);
    font-size: 12px;
    font-weight: 500;
}

.trustpilot-review-title-full {
    font-size: 18px;
    font-weight: 600;
    color: var(--trustpilot-text);
    margin-bottom: 15px;
    line-height: 1.4;
}

.trustpilot-review-content-full {
    color: var(--trustpilot-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.trustpilot-review-content-full p {
    margin: 0;
}

.trustpilot-review-footer-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.trustpilot-review-author-full {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trustpilot-author-avatar-full {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--trustpilot-green), var(--trustpilot-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--trustpilot-white);
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 182, 122, 0.3);
}

.trustpilot-author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trustpilot-author-name-full {
    font-weight: 600;
    color: var(--trustpilot-text);
    font-size: 14px;
}

.trustpilot-author-location-full {
    color: var(--trustpilot-gray);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trustpilot-review-product-full {
    background: var(--trustpilot-light-green);
    color: var(--trustpilot-dark-green);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trustpilot-review-hover-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--trustpilot-green);
    background: var(--trustpilot-white);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trustpilot-review-card-full:hover .trustpilot-review-hover-indicator {
    opacity: 1;
    transform: scale(1.1);
}

/* Call to Action */
.trustpilot-page-cta {
    background: linear-gradient(135deg, var(--trustpilot-light-green) 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin-top: 60px;
}

.trustpilot-cta-content h3 {
    font-size: 2.5rem;
    color: var(--trustpilot-text);
    margin-bottom: 15px;
    font-weight: 700;
}

.trustpilot-cta-content p {
    font-size: 1.2rem;
    color: var(--trustpilot-gray);
    margin-bottom: 30px;
}

.trustpilot-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--trustpilot-green);
    color: var(--trustpilot-white);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 182, 122, 0.3);
}

.trustpilot-cta-button:hover {
    background: var(--trustpilot-dark-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 182, 122, 0.4);
    text-decoration: none;
    color: var(--trustpilot-white);
}

.trustpilot-cta-button svg {
    transition: transform 0.2s ease;
}

.trustpilot-cta-button:hover svg {
    transform: translateX(3px);
}

/* Avis récents dans le widget */
.trustpilot-recent-reviews {
    border-top: 1px solid var(--trustpilot-border);
    padding-top: 20px;
    margin-top: 20px;
}

.trustpilot-review-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.trustpilot-review-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trustpilot-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.trustpilot-review-date {
    color: var(--trustpilot-gray);
    font-size: 12px;
}

.trustpilot-review-title {
    font-weight: 600;
    color: var(--trustpilot-text);
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.trustpilot-review-content {
    color: var(--trustpilot-gray);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.trustpilot-review-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--trustpilot-gray);
}

.trustpilot-author-name {
    font-weight: 500;
}

.trustpilot-author-location::before {
    content: "•";
    margin: 0 4px;
}

/* Footer du widget */
.trustpilot-widget-footer {
    border-top: 1px solid var(--trustpilot-border);
    padding-top: 16px;
    margin-top: 20px;
    text-align: center;
}

.trustpilot-read-more {
    color: var(--trustpilot-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.trustpilot-read-more:hover {
    color: var(--trustpilot-dark-green);
    text-decoration: underline;
}

.trustpilot-read-more svg {
    transition: transform 0.2s ease;
}

.trustpilot-read-more:hover svg {
    transform: translateX(2px);
}

/* Rating inline */
.trustpilot-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.trustpilot-rating-inline {
    flex-wrap: wrap;
}

.trustpilot-rating-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.trustpilot-rating-badge {
    background: var(--trustpilot-light-green);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--trustpilot-green);
}

.trustpilot-rating-text {
    font-weight: 600;
    color: var(--trustpilot-text);
    font-size: 14px;
}

.trustpilot-rating-value {
    font-weight: 600;
    color: var(--trustpilot-text);
    font-size: 14px;
}

.trustpilot-rating-count {
    color: var(--trustpilot-gray);
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.trustpilot-rating-count:hover {
    color: var(--trustpilot-green);
    text-decoration: underline;
}

/* Container des avis */
.trustpilot-reviews-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.trustpilot-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--trustpilot-border);
    flex-wrap: wrap;
    gap: 16px;
}

.trustpilot-reviews-title h3 {
    margin: 0 0 8px 0;
    color: var(--trustpilot-text);
    font-size: 24px;
    font-weight: 600;
}

.trustpilot-reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--trustpilot-gray);
    font-size: 14px;
}

.trustpilot-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--trustpilot-border);
    border-radius: 4px;
    background: var(--trustpilot-white);
    font-size: 14px;
    color: var(--trustpilot-text);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.trustpilot-filter-select:focus {
    outline: none;
    border-color: var(--trustpilot-green);
}

/* Grille des avis */
.trustpilot-reviews-grid {
    display: grid;
    gap: 24px;
}

.trustpilot-columns-1 {
    grid-template-columns: 1fr;
}

.trustpilot-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.trustpilot-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Carte d'avis */
.trustpilot-review-card {
    background: var(--trustpilot-white);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease, height 0.4s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    overflow: hidden;
    height: auto;
    min-height: 200px;
}

.trustpilot-review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #007BFF;
    padding-left: 16px;
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.trustpilot-review-link-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--trustpilot-green);
}

.trustpilot-review-card:hover .trustpilot-review-link-indicator {
    opacity: 1;
}

.trustpilot-reviews-footer {
    text-align: center;
    margin-top: 40px;
    align-items: start;
    padding-top: 30px;
    border-top: 1px solid var(--trustpilot-border);
}

.trustpilot-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--trustpilot-green);
    color: var(--trustpilot-white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 182, 122, 0.3);
}

.trustpilot-view-all-btn:hover {
    background: var(--trustpilot-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 182, 122, 0.4);
    text-decoration: none;
    color: var(--trustpilot-white);
}

.trustpilot-view-all-btn svg {
    transition: transform 0.2s ease;
}

.trustpilot-view-all-btn:hover svg {
    transform: translateX(2px);
}

.trustpilot-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.trustpilot-review-card .trustpilot-review-title {
    font-size: 18px;
    font-weight: 700;
    color: #191919;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.trustpilot-review-card .trustpilot-review-content {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
}

.trustpilot-review-card .trustpilot-review-content p {
    margin: 0;
}

.trustpilot-review-card .trustpilot-review-content.expanded {
    max-height: none;
    overflow: visible;
}

.trustpilot-review-card .trustpilot-review-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.trustpilot-review-card .trustpilot-review-content.expanded::after {
    opacity: 0;
}

/* Produit dans les cartes */
.trustpilot-review-product-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Filtre par produit */
.trustpilot-product-filter {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.trustpilot-product-filter label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.trustpilot-product-filter select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.trustpilot-product-filter select:focus {
    outline: none;
    border-color: var(--trustpilot-green);
    box-shadow: 0 0 0 2px rgba(0, 182, 122, 0.1);
}

/* Filtre par boutons cliquables */
.trustpilot-filter-buttons {
    background: var(--trustpilot-white);
    border: 1px solid var(--trustpilot-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--trustpilot-shadow);
}

.trustpilot-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.trustpilot-filter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--trustpilot-text);
    margin: 0;
}

.trustpilot-filter-count {
    font-size: 14px;
    color: var(--trustpilot-gray);
    background: var(--trustpilot-light-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.trustpilot-filter-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.trustpilot-filter-button {
    background: var(--trustpilot-white);
    border: 2px solid var(--trustpilot-border);
    color: var(--trustpilot-gray);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.trustpilot-filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.trustpilot-filter-button:hover::before {
    left: 100%;
}

.trustpilot-filter-button:hover {
    border-color: var(--trustpilot-green);
    color: var(--trustpilot-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.2);
}

.trustpilot-filter-button.active {
    background: var(--trustpilot-green);
    border-color: var(--trustpilot-green);
    color: var(--trustpilot-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 182, 122, 0.3);
}

.trustpilot-filter-button.active:hover {
    background: var(--trustpilot-dark-green);
    border-color: var(--trustpilot-dark-green);
    color: var(--trustpilot-white);
}

.trustpilot-filter-button-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.trustpilot-filter-button.active .trustpilot-filter-button-count {
    background: rgba(255, 255, 255, 0.3);
    color: var(--trustpilot-white);
}

.trustpilot-filter-button:not(.active) .trustpilot-filter-button-count {
    background: var(--trustpilot-light-gray);
    color: var(--trustpilot-gray);
}

.trustpilot-filter-reset {
    background: var(--trustpilot-light-gray);
    border: 2px solid var(--trustpilot-border);
    color: var(--trustpilot-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.trustpilot-filter-reset:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Responsive pour les filtres */
@media (max-width: 768px) {
    .trustpilot-filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .trustpilot-filter-buttons-container {
        width: 100%;
        justify-content: flex-start;
    }
    
    .trustpilot-filter-button {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .trustpilot-filter-reset {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .trustpilot-filter-buttons {
        padding: 20px;
    }
    
    .trustpilot-filter-button {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .trustpilot-filter-button-count {
        padding: 1px 6px;
        font-size: 11px;
        min-width: 16px;
    }
}

.trustpilot-review-card.text-expanded {
    height: auto;
    min-height: auto;
}
/* Nouveau style pour le header de la carte */
.trustpilot-review-card-header {
    margin-bottom: 16px;
}

/* Style spécial pour les étoiles dans les cartes */
.trustpilot-review-card .trustpilot-stars-small {
    margin-bottom: 8px;
}

.trustpilot-review-card .trustpilot-stars-small .trustpilot-star {
    width: 16px;
    height: 16px;
}

/* Note à côté des étoiles */
.trustpilot-review-rating-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.trustpilot-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    padding-top: 0;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.trustpilot-review-card .trustpilot-review-author {
    display: flex;
    align-items: center;
    gap: 0;
    flex-direction: column;
    align-items: flex-start;
}

.trustpilot-author-name {
    font-weight: 600;
    color: #6366f1;
    font-size: 14px;
    margin-bottom: 4px;
}

.trustpilot-review-date {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

/* Masquer les éléments non nécessaires */
.trustpilot-review-card .trustpilot-author-avatar,
.trustpilot-review-card .trustpilot-author-location,
.trustpilot-review-card .trustpilot-review-product,
.trustpilot-review-card .trustpilot-review-link-indicator {
    display: none;
}

/* Statistiques */
.trustpilot-stats-container {
    background: var(--trustpilot-white);
    border: 1px solid var(--trustpilot-border);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--trustpilot-shadow);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.trustpilot-stats-summary {
    margin-bottom: 32px;
}

.trustpilot-stats-main {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trustpilot-stats-rating,
.trustpilot-stats-count {
    text-align: center;
}

.trustpilot-stats-value {
    font-size: 48px;
    font-weight: 300;
    color: var(--trustpilot-text);
    line-height: 1;
    margin-bottom: 8px;
}

.trustpilot-stats-label {
    color: var(--trustpilot-gray);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trustpilot-stats-stars {
    margin: 12px 0;
}

.trustpilot-stats-distribution h4 {
    color: var(--trustpilot-text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.trustpilot-distribution-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.trustpilot-distribution-label {
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trustpilot-distribution-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.trustpilot-distribution-fill {
    height: 100%;
    background: var(--trustpilot-green);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.trustpilot-distribution-count {
    min-width: 40px;
    text-align: right;
    font-weight: 500;
    color: var(--trustpilot-text);
    font-size: 14px;
}

/* Thème sombre */
.trustpilot-theme-dark {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
}

.trustpilot-theme-dark .trustpilot-rating-value,
.trustpilot-theme-dark .trustpilot-review-title,
.trustpilot-theme-dark .trustpilot-author-name {
    color: #fff;
}

.trustpilot-theme-dark .trustpilot-review-content,
.trustpilot-theme-dark .trustpilot-reviews-count,
.trustpilot-theme-dark .trustpilot-author-location {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trustpilot-widget {
        max-width: 100%;
        padding: 20px;
    }
    
    .trustpilot-hero-title {
        font-size: 2.5rem !important;
    }
    
    .trustpilot-hero-rating {
        flex-direction: column;
        gap: 20px;
    }
    
    .trustpilot-score-value {
        font-size: 3rem !important;
    }
    
    .trustpilot-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .trustpilot-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .trustpilot-reviews-masonry {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trustpilot-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .trustpilot-reviews-grid {
        gap: 16px;
    }
    
    .trustpilot-columns-2,
    .trustpilot-columns-3 {
        grid-template-columns: 1fr;
    }
    
    .trustpilot-review-card {
        padding: 20px;
    }
    
    .trustpilot-stats-main {
        gap: 40px;
    }
    
    .trustpilot-stats-value {
        font-size: 36px;
    }
    
    .trustpilot-rating-value {
        font-size: 36px;
    }
    
    .trustpilot-distribution-row {
        gap: 12px;
    }
    
    .trustpilot-distribution-label {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .trustpilot-widget {
        padding: 16px;
    }
    
    .trustpilot-page-hero {
        padding: 50px 20px !important;
    }
    
    .trustpilot-hero-title {
        font-size: 2rem !important;
    }
    
    .trustpilot-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .trustpilot-stat-value {
        font-size: 2rem !important;
    }
    
    .trustpilot-cta-content h3 {
        font-size: 2rem !important;
    }
    
    .trustpilot-review-card {
        padding: 16px;
    }
    
    .trustpilot-stats-container {
        padding: 20px;
    }
    
    .trustpilot-review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trustpilot-review-card {
    animation: fadeInUp 0.6s ease forwards;
}

.trustpilot-review-card:nth-child(2n) {
    animation-delay: 0.1s;
}

.trustpilot-review-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* États de chargement */
.trustpilot-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--trustpilot-gray);
}

.trustpilot-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--trustpilot-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour les variantes compactes */
.trustpilot-widget-compact {
    padding: 16px;
    max-width: 300px;
}

.trustpilot-widget-compact .trustpilot-rating-value {
    font-size: 32px;
}

.trustpilot-widget-compact .trustpilot-recent-reviews {
    display: none;
}

.trustpilot-widget-minimal {
    border: none;
    box-shadow: none;
    padding: 12px;
    background: transparent;
}

.trustpilot-widget-minimal .trustpilot-logo {
    display: none;
}

/* ========================================
   STYLES POUR LES AVIS UNIFIÉS
======================================== */

/* Icônes de source améliorées */
.unified-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.unified-source-badge::before {
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.unified-source-badge.trustpilot {
    background: linear-gradient(135deg, #00B67A 0%, #00A368 100%);
    color: white;
}

.unified-source-badge.trustpilot::before {
    content: "⭐";
}

.unified-source-badge.trustpilot:hover {
    background: linear-gradient(135deg, #00A368 0%, #008f5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 182, 122, 0.3);
}

.unified-source-badge.site {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.unified-source-badge.site::before {
    content: "🎓";
}

.unified-source-badge.site:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Filtres par produit améliorés */
.unified-product-filters {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.unified-filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.unified-filter-header::before {
    content: "🔍";
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.unified-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.unified-filter-button {
    background: var(--eduma-bg-light) !important;
    color: var(--eduma-text) !important;
    border: 1px solid var(--eduma-border) !important;
    padding: 10px 20px !important;
    border-radius: var(--eduma-radius) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: var(--eduma-shadow) !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

.unified-filter-button:hover {
    background: var(--eduma-primary) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3) !important;
    border-color: var(--eduma-primary) !important;
}

.unified-filter-button.active {
    background: var(--eduma-primary) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4) !important;
    border-color: var(--eduma-primary) !important;
}

/* Bouton "Tous les produits" spécial */
.unified-filter-button[data-product=""] {
    background: var(--trustpilot-light-green) !important;
    border-color: var(--trustpilot-green) !important;
    color: var(--trustpilot-green) !important;
    font-weight: 500 !important;
}

.unified-filter-button[data-product=""]:hover,
.unified-filter-button[data-product=""].active {
    background: var(--trustpilot-green) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
    border-color: var(--trustpilot-green) !important;
}

/* Compteurs dans les boutons */
.unified-filter-button .unified-count {
    background: rgba(255, 255, 255, 0.8) !important;
    color: var(--eduma-text-light) !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.unified-filter-button:hover .unified-count,
.unified-filter-button.active .unified-count {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--eduma-primary) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.unified-filter-button[data-product=""]:hover .unified-count,
.unified-filter-button[data-product=""].active .unified-count {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--trustpilot-green) !important;
}

/* ========================================
   CARTES D'AVIS - STYLE EDUMA
   ======================================== */
.unified-review-card {
    background: var(--eduma-bg) !important;
    border: 1px solid var(--eduma-border) !important;
    border-radius: var(--eduma-radius) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: var(--eduma-shadow) !important;
    transition: all 0.3s ease !important;
    height: 280px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: inherit !important;
}

.unified-review-card:hover {
    height: auto !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-left: 4px solid var(--eduma-primary) !important;
}

/* Badges de source - Style Eduma */
.unified-source-badge {
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: var(--eduma-radius) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
}

.unified-source-badge.trustpilot {
    background: var(--trustpilot-green) !important;
    color: white !important;
}

.unified-source-badge.site {
    background: var(--eduma-primary) !important;
    color: white !important;
}

/* Étoiles - Style Eduma */
.unified-review-card .trustpilot-stars {
    margin: 8px 0 !important;
}

.unified-review-card .trustpilot-star {
    width: 16px !important;
    height: 16px !important;
    margin-right: 2px !important;
}

.unified-review-card .trustpilot-star-full {
    color: var(--eduma-secondary) !important;
}

/* Contenu du texte */
.unified-review-card .unified-review-content {
    color: var(--eduma-text) !important;
    line-height: 1.6 !important;
    font-size: 14px !important;
    flex: 1 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
}

.unified-review-card:hover .unified-review-content {
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
}

/* Auteur */
.unified-review-card .unified-review-author {
    color: var(--eduma-text) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    margin-bottom: 5px !important;
}

/* Date */
.unified-review-card .unified-review-date {
    color: var(--eduma-text-light) !important;
    font-size: 12px !important;
    margin-top: auto !important;
    padding-top: 15px !important;
}

/* ========================================
   STATISTIQUES - STYLE EDUMA
   ======================================== */
.unified-stats-container {
    background: var(--eduma-bg) !important;
    border: 1px solid var(--eduma-border) !important;
    border-radius: var(--eduma-radius) !important;
    padding: 25px !important;
    margin-bottom: 30px !important;
    box-shadow: var(--eduma-shadow) !important;
}

.unified-stats-summary {
    text-align: center !important;
    margin-bottom: 25px !important;
}

.unified-stats-rating {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: var(--eduma-text) !important;
    margin-bottom: 10px !important;
}

.unified-stats-count {
    color: var(--eduma-text-light) !important;
    font-size: 16px !important;
}

/* Sources breakdown */
.unified-sources-breakdown {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 20px !important;
}

.unified-source-stat {
    text-align: center !important;
    padding: 15px !important;
    background: var(--eduma-bg-light) !important;
    border-radius: var(--eduma-radius) !important;
    border: 1px solid var(--eduma-border) !important;
}

.unified-source-stat .source-name {
    font-weight: 600 !important;
    color: var(--eduma-text) !important;
    margin-bottom: 5px !important;
}

.unified-source-stat .source-count {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--eduma-primary) !important;
}

/* ========================================
   RESPONSIVE - STYLE EDUMA
   ======================================== */
@media (max-width: 768px) {
    .unified-filter-button {
        padding: 8px 15px !important;
        font-size: 13px !important;
        margin: 3px !important;
    }
    
    .unified-review-card {
        height: 320px !important;
        padding: 15px !important;
    }
    
    .unified-stats-rating {
        font-size: 36px !important;
    }
    
    .unified-sources-breakdown {
        grid-template-columns: 1fr !important;
    }
}

.unified-filter-button[data-product=""]::before {
    content: "🏠";
}

.unified-filter-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.unified-visible-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.unified-visible-count::before {
    content: "👁️";
    font-size: 16px;
}

/* Variables pour le nouveau design professionnel */
:root {
    --trustpilot-green: #00B67A;
    --trustpilot-dark-green: #00A368;
    --trustpilot-light-green: #E8F5F0;
    --trustpilot-gray: #666666;
    --trustpilot-light-gray: #F7F7F7;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    /* Nouvelles variables pour le design professionnel */
    --professional-blue: #2563eb;
    --professional-blue-light: #3b82f6;
    --professional-blue-dark: #1d4ed8;
    --professional-yellow: #fbbf24;
    --professional-yellow-light: #fcd34d;
    --professional-gray: #6b7280;
    --professional-gray-light: #f9fafb;
    --professional-gray-dark: #374151;
    --professional-border: #e5e7eb;
    --professional-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --professional-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Container principal */
.unified-reviews-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header avec titre et résumé */
.unified-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--professional-border);
    flex-wrap: wrap;
    gap: 20px;
}

.unified-reviews-title h3 {
    margin: 0 0 6px 0;
    color: var(--professional-gray-dark);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.unified-reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--professional-gray);
    font-size: 14px;
    font-weight: 500;
}

.unified-total-count {
    color: var(--professional-blue);
    font-weight: 600;
}

/* Filtres */
.unified-reviews-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Sélecteurs de filtre */
.unified-filter-select {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.unified-filter-select:hover {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

.unified-filter-select:focus {
    outline: none;
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Filtres par boutons */
.unified-filter-buttons {
    background: var(--professional-gray-light);
    border: 1px solid var(--professional-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    align-items: center;
}

.unified-filter-button {
    background: white;
    border: 1px solid var(--professional-border);
    color: var(--professional-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: var(--professional-shadow);
}

.unified-filter-button:hover {
    border-color: var(--professional-blue);
    color: var(--professional-blue);
    transform: translateY(-1px);
    box-shadow: var(--professional-shadow-hover);
}

.unified-filter-button.active {
    background: var(--professional-blue);
    border-color: var(--professional-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--professional-shadow-hover);
}

.unified-filter-button.active:hover {
    background: var(--professional-blue-dark);
    border-color: var(--professional-blue-dark);
    color: white;
}

.unified-filter-button-count {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.unified-filter-button.active .unified-filter-button-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Grille des avis unifiés */
.unified-reviews-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 48px;
}

.unified-columns-1 {
    grid-template-columns: 1fr;
}

.unified-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.unified-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .unified-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .unified-columns-3 {
        grid-template-columns: 1fr;
    height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    }
}

/* Cartes d'avis unifiées */
.unified-review-card {
    background: white;
    border: 1px solid var(--professional-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--professional-shadow);
    transition: all 0.2s ease;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.unified-review-card:hover {
    box-shadow: var(--professional-shadow-hover);
    
    .unified-filter-buttons {
        justify-content: center;
    }
    
    .unified-filter-button {
        font-size: 13px;
        padding: 10px 16px;
    }
    border-left: 4px solid var(--professional-blue);
    padding-left: 20px;
    height: auto;
    min-height: 280px;
    overflow: visible;
    z-index: 10;
    transform: translateY(-2px);
}

/* Badge de source */
.unified-review-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.unified-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--professional-shadow);
}

.unified-duplicate-badge {
    background: #f59e0b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: var(--professional-shadow);
}

/* Tag produit */
.unified-review-product-tag {
    display: inline-block;
    background: var(--professional-gray-light);
    color: var(--professional-gray);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border: 1px solid var(--professional-border);
}

/* Header de l'avis */
.unified-review-header {
    margin-bottom: 18px;
}

.unified-review-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--professional-gray);
    margin-bottom: 12px;
}

/* Étoiles jaunes professionnelles */
.unified-review-rating .trustpilot-star {
    fill: var(--professional-yellow);
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.unified-review-rating .trustpilot-star-empty {
    fill: #e5e7eb;
}

/* Titre de l'avis */
.unified-review-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--professional-gray-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-weight: 500;
    backdrop-filter: blur(10px);
    flex-grow: 1;
}
    font-size: 1.3rem;
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.12);
    border-left: 5px solid #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}

/* Footer de l'avis */
.unified-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--professional-border);
    flex-wrap: wrap;
    gap: 16px;
}

.unified-review-author {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.unified-review-date {
    color: var(--professional-gray);
    font-size: 12px;
    font-weight: 500;
}

/* Liens */
.unified-review-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unified-review-link {
    color: var(--professional-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.unified-review-link:hover {
    color: var(--professional-blue-dark);
    text-decoration: underline;
}

/* Footer avec légende */
.unified-reviews-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--professional-border);
}
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
.unified-source-legend {
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    flex-wrap: wrap;
}

/* Élément de légende */
.unified-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--professional-gray, #475569);
    background: var(--professional-gray-light, #f9fafb);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--professional-border, #e5e7eb);
    box-shadow: var(--professional-shadow, 0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Badge à gauche (icône ou emoji) */
.unified-legend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border-radius: 50%;
    background-color: #00B67A; /* Vert Trustpilot */
    box-shadow: 0 2px 6px rgba(0, 182, 122, 0.3);
}
    width: 20px;
    height: 20px;
.unified-stats-container {
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
    transition: transform 0.2s ease;
}
    border: 1px solid var(--professional-border);
.unified-review-card:hover .unified-star {
    transform: scale(1.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--professional-shadow);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.unified-stats-summary {
    margin-bottom: 40px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    justify-content: center;
    letter-spacing: -0.01em;
    gap: 80px;
    flex-wrap: wrap;
}
    color: #374151;
.unified-stats-rating,
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}

.unified-stats-value {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 10px 16px;
    border-radius: 16px;
    line-height: 1;
    font-weight: 700;
    color: #374151;
}

    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
.unified-stats-label {
    color: var(--professional-gray);
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 16px;
.unified-stats-stars {
    font-weight: 700;
}

.unified-stats-stars .trustpilot-star {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    width: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
.unified-stats-stars .trustpilot-star-empty {
    fill: #e5e7eb;
}

    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px;
    border-radius: 20px;
    font-size: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.025em;
    font-size: 1.4rem;
    color: #0f172a;
.unified-sources-grid {
    font-weight: 700;
    letter-spacing: -0.01em;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.unified-source-stat {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: var(--professional-gray-light);
    border: 1px solid var(--professional-border);
    box-shadow: var(--professional-shadow);
    padding: 12px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
.unified-source-stat:hover {
    background: #ffffff;
    box-shadow: var(--professional-shadow-hover);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.unified-source-icon {
    width: 60px;
    height: 60px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
    box-shadow: var(--professional-shadow);
}

.unified-source-count {
    font-size: 36px;
    padding: 12px 24px;
    border: 2px solid #f1f5f9;
    border-radius: 30px;
    margin-bottom: 12px;
    color: #374151;
}
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.5px;
}

    border-color: #3b82f6;
    color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
        align-items: flex-start;
        gap: 16px;
    }
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    .unified-reviews-filters {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
    }
    
    .unified-filter-select {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 16px;
    .unified-filter-header {
    font-weight: 800;
    backdrop-filter: blur(4px);
        align-items: flex-start;
        gap: 15px;
    }
    background: #f1f5f9;
    color: #475569;
    .unified-columns-3 {
        grid-template-columns: 1fr;
    }
    
    .unified-stats-main {
    margin: 40px 0;
    font-size: 1.2rem;
    color: #475569;
    font-weight: 600;
        font-size: 36px;
    }
    
    .unified-sources-grid {
        grid-template-columns: 1fr;
    font-size: 1.3rem;
        gap: 20px;
    }
    
    .unified-source-legend {
        flex-direction: column;
        gap: 15px;
    }
    
    .unified-reviews-header {
        padding: 40px 30px;
    }
    
    .unified-reviews-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .unified-filter-buttons {
        padding: 20px;
    }
    
    .unified-filter-button {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .unified-filter-button-count {
        padding: 1px 6px;
        font-size: 11px;
        min-width: 16px;
    }
    
    .unified-review-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .unified-stats-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .unified-review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
    
    .unified-reviews-header {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .unified-reviews-header h2 {
        font-size: 2rem;
    }
    
    .unified-reviews-header p {
        font-size: 1.1rem;
    }