/* ===================================
   PRESTOSOCIAL - ANIMATIONS MARQUEE
   =================================== */

/* Container principal pour marquee */
.prestosocial-reviews.marquee-scroll {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 40px 0;
}

/* Wrapper qui va défiler */
.marquee-wrapper {
    display: flex;
    width: fit-content;
    animation: marquee-scroll linear infinite;
}

/* Pause au survol */
.marquee-wrapper:hover {
    animation-play-state: paused;
}

/* Container pour chaque avis dans le marquee */
.marquee-item {
    flex-shrink: 0;
    padding: 0 15px;
    width: 400px; /* Largeur fixe pour chaque avis */
}

/* Animations keyframes pour différentes vitesses */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Ajustements responsive */
@media (max-width: 768px) {
    .marquee-item {
        width: 300px;
    }
}

@media (max-width: 576px) {
    .marquee-item {
        width: 280px;
    }
}

/* ===================================
   STYLES GÉNÉRAUX PRESTOSOCIAL
   =================================== */

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

.prestosocial-reviews {
    font-family: 'Cairo', sans-serif;
    padding: 30px 0;
}

/* ===================================
   TEMPLATE 1 - HORIZONTAL CARDS
   =================================== */

.template1 .review-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.template1 .review-item:hover {
    transform: translateY(-5px);
}

.template1 .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.template1 .review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.template1 .review-author {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.template1 .review-fonction {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.template1 .review-rating {
    color: #ffc107;
    margin-top: 5px;
}

.template1 .review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 15px 0;
}

/* ===================================
   TEMPLATE 2 - CARDS WITH BACKGROUND
   =================================== */

.template2 .review-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.template2 .review-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.template2 .review-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: white;
}

.template2 .review-avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #00bcd4;
    margin: 0 auto 20px;
}

.template2 .review-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.template2 .review-rating {
    background: #000;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    color: #ffc107;
    margin: 15px 0;
}

.template2 .review-author {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 10px 0;
}

.template2 .review-fonction {
    color: #00bcd4;
    font-size: 16px;
    font-weight: 600;
}

.template2 .review-company {
    color: #ffa500;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
}

.template2 .review-text {
    font-size: 15px;
    line-height: 1.8;
    color: white;
    margin: 20px 0;
}

/* ===================================
   TEMPLATE 3 - ALTERNATING LAYOUT
   =================================== */

.template3 .review-slide {
    padding: 20px;
    margin-bottom: 30px;
}

.template3 .review-content-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.template3 .align-right .review-content-wrapper {
    flex-direction: row-reverse;
}

.template3 .review-content-box {
    flex: 1;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.template3 .review-avatar-wrapper {
    flex-shrink: 0;
}

.template3 .review-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.template3 .review-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.template3 .review-author {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.template3 .review-fonction {
    color: #666;
    font-size: 15px;
    margin: 5px 0;
}

.template3 .review-rating {
    color: #ffc107;
    margin-top: 10px;
}

/* ===================================
   TEMPLATE 4 - COMPACT CARDS
   =================================== */

.template4 .review-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #00bcd4;
}

.template4 .review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.template4 .review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.template4 .review-meta {
    flex: 1;
}

.template4 .review-author {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.template4 .review-fonction {
    font-size: 13px;
    color: #666;
    margin: 2px 0;
}

.template4 .review-time {
    font-size: 12px;
    color: #999;
}

.template4 .review-rating {
    color: #ffc107;
    font-size: 14px;
}

.template4 .review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 10px 0;
}

.template4 .review-footer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.template4 .review-link {
    color: #00bcd4;
    font-size: 18px;
    transition: color 0.3s;
}

.template4 .review-link:hover {
    color: #0097a7;
}

/* ===================================
   CAROUSEL CONTROLS (pour mode carousel)
   =================================== */

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-prev,
.carousel-next {
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #0097a7;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicators .indicator.active {
    background: #00bcd4;
    width: 30px;
    border-radius: 5px;
}

/* Masquer les slides non actifs en mode carousel */
.prestosocial-reviews:not(.marquee-scroll) .review-slide {
    display: none;
}

.prestosocial-reviews:not(.marquee-scroll) .review-slide.active {
    display: block;
}

/* ===================================
   BOUTON SUBMIT REVIEW
   =================================== */

.prestosocial-submit-review {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 30px 0;
}

.prestosocial-submit-review h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.prestosocial-submit-review p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.prestosocial-submit-review .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
}

.prestosocial-submit-review .btn-primary {
    background: #00bcd4;
    color: white;
}

.prestosocial-submit-review .btn-primary:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,188,212,0.3);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .template2 .review-content {
        padding: 20px;
    }
    
    .template3 .review-content-wrapper {
        flex-direction: column !important;
    }
    
    .template3 .review-avatar {
        width: 100px;
        height: 100px;
    }
}
