/* ===== TEMPLATE 4 - CARTE STYLE MODERNE ===== */
.prestosocial-reviews.template4 {
    position: relative;
    padding: 10px 0;
}

.prestosocial-reviews.template4 .review-card-template4 {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid #00bcd4;
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Image de fond */
.prestosocial-reviews.template4 .card-background {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.prestosocial-reviews.template4 .card-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

/* Contenu de la carte */
.prestosocial-reviews.template4 .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: -80px;
    padding: 0 20px 20px;
}

/* Avatar circulaire */
.prestosocial-reviews.template4 .avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a4d5c 0%, #0d2630 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.prestosocial-reviews.template4 .avatar-border {
     width: 90px;
    height: 90px;
   
    border-radius: 50%;
    border: 2px solid #19191f;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a4d5c;
}

.prestosocial-reviews.template4 .avatar-img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

/* Barre d'étoiles */
.prestosocial-reviews.template4 .stars-bar {
     width: auto;
 
    align-items: center;
    justify-content: center;
    
}

.prestosocial-reviews.template4 .stars-image {
    height: auto;
    width: 90%;position: relative;top:-43px; z-index: 200;
 
}

/* Section informations */
.prestosocial-reviews.template4 .info-section {
    text-align: center;
    width: 100%;
    flex: 1;
 
    flex-direction: column;
}

.prestosocial-reviews.template4 .author-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.0;
}

.prestosocial-reviews.template4 .fonction {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #00bcd4;
    margin: 0 0 12px 0;
    line-height: 1.0;
}

.prestosocial-reviews.template4 .service {
    font-family: 'Cairo', sans-serif;
    font-weight: 200;
    font-size: 20px;
    color: #ff9800;
    margin: 0 0 10px 0;
    line-height: 1.0;
}

/* Texte de l'avis avec guillemets */
.prestosocial-reviews.template4 .review-text-wrapper {
    position: relative;
    padding: 0 20px;
    margin-bottom: 5px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prestosocial-reviews.template4 .quote-left,
.prestosocial-reviews.template4 .quote-right {
    font-family: 'Cairo', sans-serif;
    font-size: 60px;
    color: #00bcd4;
    font-weight: 700;
    line-height: 0.5;
    position: absolute;
}

.prestosocial-reviews.template4 .quote-left {
    left: 0;
    top: 20px;
}

.prestosocial-reviews.template4 .quote-right {
    right: 0;
    bottom: 20px;
}

.prestosocial-reviews.template4 .review-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    padding: 0 20px;
}

/* Footer avec icônes */
.prestosocial-reviews.template4 .card-footer {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    padding-top: 5px;
   
    margin-top: auto;
}

.prestosocial-reviews.template4 .footer-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
}

.prestosocial-reviews.template4 .footer-icon:hover {
    border-color: #00bcd4;
    color: #00bcd4;
    background: rgba(0, 188, 212, 0.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .prestosocial-reviews.template4 .review-card-template4 {
        min-height: 650px;
    }
    
    .prestosocial-reviews.template4 .card-background {
        height: 200px;
    }
    
    .prestosocial-reviews.template4 .avatar-circle {
        width: 140px;
        height: 140px;
    }
    
    .prestosocial-reviews.template4 .avatar-border {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }
    
    .prestosocial-reviews.template4 .stars-image {
        height: 30px;
    }
    
    .prestosocial-reviews.template4 .author-name {
        font-size: 22px;
    }
    
    .prestosocial-reviews.template4 .fonction {
        font-size: 16px;
    }
    
    .prestosocial-reviews.template4 .service {
        font-size: 18px;
    }
    
    .prestosocial-reviews.template4 .review-text {
        font-size: 14px;
    }
    
    .prestosocial-reviews.template4 .quote-left,
    .prestosocial-reviews.template4 .quote-right {
        font-size: 40px;
    }
}
