/* ===================================
   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 2 PRO - EXTERIA STYLE
   =================================== */

.prestosocial-reviews.template2.template2-pro {
    --t2p-bg: #f5f2ee;
    --t2p-card: #ffffff;
    --t2p-text: #141414;
    --t2p-muted: #6b6b6b;
    --t2p-border: #e9e2d8;
    --t2p-accent: #e8620a;
    --t2p-accent-soft: #fdecd9;
    background: var(--t2p-bg);
    border-radius: 24px;
    padding: clamp(1.4rem, 2.5vw, 2.4rem);
}

.template2-pro .t2p-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--t2p-accent-soft);
    color: var(--t2p-text);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    margin: 0 0 1rem;
}

.template2-pro .t2p-badge i {
    color: var(--t2p-accent);
}

.template2-pro .t2p-title {
    color: var(--t2p-text);
    margin: 0 0 0.9rem;
}

.template2-pro .t2p-title span {
    color: var(--t2p-accent);
}

.template2-pro .t2p-intro {
    color: var(--t2p-muted);
    line-height: 1.7;
    margin: 0 0 1.2rem;
}

.template2-pro .t2p-rating-box {
    background: var(--t2p-card);
    border: 1px solid var(--t2p-border);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.template2-pro .t2p-rating-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--t2p-muted);
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.template2-pro .t2p-google-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    font-weight: 800;
    color: #4285f4;
    background: #fff;
    border: 1px solid #ececec;
}

.template2-pro .t2p-rating-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.template2-pro .t2p-rating-main strong {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 700;
    color: var(--t2p-text);
}

.template2-pro .t2p-stars {
    color: var(--t2p-accent);
    display: inline-flex;
    gap: 2px;
}

.template2-pro .t2p-rating-sub {
    margin: 0.45rem 0 0;
    font-size: 0.86rem;
    color: var(--t2p-muted);
}

.template2-pro .t2p-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.template2-pro .t2p-stat-card {
    background: var(--t2p-accent-soft);
    border-radius: 14px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.template2-pro .t2p-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--t2p-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.template2-pro .t2p-stat-icon i {
    color: #ffffff !important;
}

.template2-pro .t2p-stat-card strong {
    font-size: 1.55rem;
    line-height: 1;
    color: var(--t2p-text);
}

.template2-pro .t2p-stat-card span {
    font-size: 0.83rem;
    color: var(--t2p-muted);
}

.template2-pro .t2p-cta-wrap {
    margin-top: 1rem;
}

.template2-pro .t2p-cta-wrap .cus-btn-wrap {
    text-decoration: none;
}

.template2-pro .t2p-cta-wrap .cus-btn-wrap:hover {
    text-decoration: none;
}

.template2-pro .t2p-right {
    background: transparent;
}

.template2-pro .t2p-right.is-vertical {
    position: relative;
    max-height: 670px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.template2-pro .t2p-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.template2-pro.orientation-vertical .t2p-track {
    animation: prestosocial-t2p-scroll 32s linear infinite;
}

.template2-pro .t2p-right.is-vertical:hover .t2p-track {
    animation-play-state: paused;
}

.template2-pro .t2p-card {
    background: var(--t2p-card);
    border: 1px solid var(--t2p-border);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.template2-pro .t2p-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.55rem;
}

.template2-pro .t2p-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8620a, #ff8a3d);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.template2-pro .t2p-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template2-pro .t2p-user {
    flex: 1;
    min-width: 0;
}

.template2-pro .t2p-user .review-author {
    margin: 0;
    color: var(--t2p-text);
    font-size: 0.98rem;
    font-weight: 700;
}

.template2-pro .t2p-date {
    margin: 0;
    color: var(--t2p-muted);
    font-size: 0.78rem;
}

.template2-pro .t2p-source {
    color: #9a9a9a;
}

.template2-pro .t2p-source.is-google {
    color: #4285f4;
}

.template2-pro .t2p-review-rating {
    margin: 0 0 0.45rem;
    color: var(--t2p-accent);
    font-size: 0.85rem;
    display: inline-flex;
    gap: 2px;
    background: transparent;
    padding: 0;
}

.template2-pro .t2p-review-text {
    margin: 0;
    color: #4f4f4f;
    line-height: 1.6;
    font-size: 0.92rem;
}

@keyframes prestosocial-t2p-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ===================================
   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;
    }
}

/* ===================================
   LOGO PROOF - ILS NOUS ONT FAIT CONFIANCE
   =================================== */

.prestosocial-logo-proof {
    padding: 20px 0;
}

.prestosocial-logo-proof-title {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.prestosocial-logo-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(var(--ps-logo-cols, 4), minmax(0, 1fr));
}

.prestosocial-logo-proof.orientation-vertical .prestosocial-logo-grid {
    grid-template-columns: 1fr;
}

.prestosocial-logo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    min-height: 140px;
}

.prestosocial-logo-visual {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prestosocial-logo-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prestosocial-logo-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
}

.prestosocial-logo-desc {
    font-size: 0.86rem;
    color: #6b7280;
}

.prestosocial-logo-proof.model-carousel {
    overflow: hidden;
}

.prestosocial-logo-carousel-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: prestosocial-logo-marquee 28s linear infinite;
}

.prestosocial-logo-carousel-track:hover {
    animation-play-state: paused;
}

.prestosocial-logo-proof.model-carousel .prestosocial-logo-card {
    min-width: 190px;
}

.prestosocial-logo-proof.model-carousel .prestosocial-logo-visual {
    width: 117px;
    height: 117px;
}

@keyframes prestosocial-logo-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 992px) {
    .prestosocial-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .prestosocial-logo-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   SHORTCODE [prestosocial_display]
   =================================== */

.prestosocial-display {
    font-family: 'Cairo', sans-serif;
}

.prestosocial-display-list {
    display: grid;
    grid-template-columns: repeat(var(--ps-display-cols, 3), minmax(0, 1fr));
    gap: 14px;
}

.prestosocial-display .review-item {
    margin-bottom: 0;
}

.prestosocial-display-source-icon {
    color: #999;
    font-size: 1rem;
}

.prestosocial-display .review-rating {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.prestosocial-display-pagination {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.prestosocial-display-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #2d2d2d;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.prestosocial-display-pagination .page-numbers.current {
    background: #00bcd4;
    border-color: #00bcd4;
    color: #fff;
}

.prestosocial-display-pagination .page-numbers:hover {
    border-color: #00bcd4;
    color: #00bcd4;
}

@media (max-width: 992px) {
    .prestosocial-display-list {
        grid-template-columns: repeat(min(2, var(--ps-display-cols, 3)), minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .prestosocial-display-list {
        grid-template-columns: 1fr;
    }
}
