/* ===== Layout global ===== */
.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

/* ===== Bloc gauche (intro) ===== */
.review-intro {
    flex: 1 1 320px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    text-align: center;
}

.review-intro img {
    width: 80px;
    margin-bottom: 0px;
}

.review-intro h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #111;
}

.review-intro .stars {
    color: #fbbc04;
    font-size: 1.3rem;
    margin: 10px 0;
}

.review-intro p {
    color: #555;
    margin-bottom: 20px;
}

.review-intro button {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.review-intro button:hover {
    background: #155ab6;
}

/* ===== Carrousel ===== */
.swiper {
    flex: 3 1 750px;
    height: auto !important;
    min-height: 300px;
}

.reviews-section .swiper-slide {
    background: #f0f0f0;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: auto; /* Changé de 100% à auto */
    min-height: 280px; /* Hauteur minimale */
    margin-top: 0;
    position: relative;
    overflow: hidden;
    pointer-events: auto !important;
    cursor: default !important;
}

/* État étendu - le bloc s'agrandit */
.reviews-section .swiper-slide.expanded {
      min-height: 450px;
    height: auto;
    overflow: visible; /* Important pour voir tout le texte */
}

/* S'assurer que le contenu du slide est bien affiché */
.reviews-section .swiper-slide.expanded .review-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.reviews-section .swiper-slide:hover {
    transform: translateY(-6px);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    pointer-events: auto;
}

.review-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.review-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.review-info span {
    font-size: 0.85rem;
    color: #888;
}

.review-stars {
    color: #fbbc04;
    font-size: 1.1rem;
    margin-top: 6px;
}

.review-text {
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    overflow: hidden;
    flex: 1;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    pointer-events: auto;
    /* Assurer que le texte prend toute la place disponible */
    min-height: 80px; /* Hauteur minimale pour le texte */
}

/* État tronqué */
.review-text:not(.expanded) {
    max-height: 96px;
    overflow: hidden;
}



/* État étendu */
.review-text.expanded {
   max-height: none !important;
    2overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    /* Forcer l'affichage complet du texte */
    display: block;
    position: relative;
}

.read-more {
    color: #1a73e8;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1000;
    position: relative;
    transition: color 0.2s;
}

.read-more:hover {
    color: #155ab6;
    text-decoration: underline;
}

.review-header,
.review-text,
.read-more {
    touch-action: pan-y;
}

.swiper-pagination-bullet {
    background: #bbb;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #1a73e8;
}

/* Désactiver complètement le swipe */
.swiper-container.swiper {
    pointer-events: auto;
}

.swiper-wrapper {
    pointer-events: none;
}

.swiper-slide {
    pointer-events: auto;
}

.reviews-section .swiper-button-prev, .reviews-section .swiper-button-next {
    color: #c8c8c8 !important;
    background-image: none !important;
    width: 22px !important;
    height: 29px !important;
}

@media (max-width: 900px) {
    .reviews-section {
        flex-direction: column;
        align-items: center;
    }

    .review-intro {
        width: 100%;
    }

    .swiper {
        width: 100%;
    }
    
    .reviews-section .swiper-slide.expanded {
           min-height: 450px;
    height: auto;
    overflow: visible; /* Important pour voir tout le texte */
    }
}

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    display: none;
}



t-content {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.review-text.truncated {
    max-height: 96px;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.review-text.expanded {
    max-height: none !important;
    overflow: visible !important;
    flex: 1;
}

.review-text.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, #f0f0f0 90%);
    pointer-events: none;
}

/* S'assurer que le texte est bien lisible */
.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}



/* === STYLES CRITIQUES POUR L'AFFICHAGE DU TEXTE === */

.review-text-wrapper {
    flex: 1;
    position: relative;
    margin-top: 10px;
}

/* Texte COURT (tronqué) */
.review-text.short {
    max-height: 80px !important;
    overflow: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
}


/* Texte COMPLET (étendu) */
.review-text.full {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    display: block;
    position: relative;
}

/* Bouton Voir plus */
.read-more-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 5px 0;
    text-align: left;
    display: block;
}

.read-more-btn:hover {
    color: #155ab6;
    text-decoration: underline;
}

/* FORCER l'affichage du texte */
.review-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #444 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: block !important;
    width: 100% !important;
}

/* S'assurer que le slide peut s'agrandir */
.reviews-section .swiper-slide {
    min-height: 280px;
    height: auto;
}

.reviews-section .swiper-slide .review-text-wrapper {
    min-height: 60px;
}