/**
 * HP Avis Showcase - Section avis clients homepage
 * Design moderne pour mettre en avant les avis de qualité
 */

:root {
    --avis-primary: #1879ca;
    --avis-primary-dark: #0d5a9e;
    --avis-gold: #ffc107;
    --avis-success: #28a745;
    --avis-bg-light: #f8fafc;
    --avis-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --avis-shadow-hover: 0 8px 30px rgba(24, 121, 202, 0.15);
    --avis-radius: 16px;
    --avis-radius-sm: 12px;
}

/* Section principale */
.hp-avis-showcase {
    background: linear-gradient(180deg, #ffffff 0%, var(--avis-bg-light) 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hp-avis-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--avis-primary), var(--avis-gold), var(--avis-primary));
}

/* Header de section */
.avis-showcase-header {
    text-align: center;
    margin-bottom: 50px;
}

.avis-showcase-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--avis-primary), var(--avis-primary-dark));
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(24, 121, 202, 0.3);
}

.avis-showcase-header .section-badge i {
    font-size: 12px;
}

.avis-showcase-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.2;
}

.avis-showcase-header .section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats globales */
.avis-global-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.avis-stat-item {
    text-align: center;
}

.avis-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--avis-primary);
    line-height: 1;
}

.avis-stat-value .stars {
    color: var(--avis-gold);
    font-size: 1.5rem;
}

.avis-stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 5px;
}

/* Grille d'avis */
.avis-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Carte d'avis */
.avis-showcase-card {
    background: white;
    border-radius: var(--avis-radius);
    box-shadow: var(--avis-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Photo de l'avis */
.avis-card-photo {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.avis-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avis-showcase-card:hover .avis-card-photo img {
    transform: scale(1.05);
}

.avis-card-photo .photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.avis-card-photo .verified-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--avis-success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Contenu de la carte */
.avis-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.avis-card-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.avis-card-rating .rating-score {
    background: linear-gradient(135deg, var(--avis-gold), #ffdb4d);
    color: #1a1a2e;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.avis-card-rating .rating-stars {
    color: var(--avis-gold);
    font-size: 14px;
}

.avis-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.avis-card-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer de la carte */
.avis-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.avis-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avis-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avis-primary), var(--avis-primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.avis-author-info {
    line-height: 1.3;
}

.avis-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}

.avis-author-ship {
    font-size: 12px;
    color: #94a3b8;
}

.avis-card-date {
    font-size: 12px;
    color: #94a3b8;
}

/* CTA Section */
.avis-cta-section {
    text-align: center;
    margin-top: 40px;
}

.avis-cta-wrapper {
    background: linear-gradient(135deg, var(--avis-primary) 0%, var(--avis-primary-dark) 100%);
    border-radius: var(--avis-radius);
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.avis-cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.avis-cta-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.avis-cta-content {
    position: relative;
    z-index: 1;
}

.avis-cta-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.avis-cta-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.avis-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: var(--avis-primary);
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--avis-primary-dark);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .avis-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .avis-showcase-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hp-avis-showcase {
        padding: 40px 0 60px;
    }

    .avis-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .avis-showcase-header h2 {
        font-size: 1.75rem;
    }

    .avis-global-stats {
        gap: 25px;
    }

    .avis-stat-value {
        font-size: 1.5rem;
    }

    .avis-cta-wrapper {
        padding: 30px 20px;
    }

    .avis-cta-content h3 {
        font-size: 1.4rem;
    }

    .avis-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avis-showcase-card {
    animation: fadeInUp 0.5s ease forwards;
}

.avis-showcase-card:nth-child(1) { animation-delay: 0.1s; }
.avis-showcase-card:nth-child(2) { animation-delay: 0.2s; }
.avis-showcase-card:nth-child(3) { animation-delay: 0.3s; }
.avis-showcase-card:nth-child(4) { animation-delay: 0.4s; }
.avis-showcase-card:nth-child(5) { animation-delay: 0.5s; }
.avis-showcase-card:nth-child(6) { animation-delay: 0.6s; }
