/* --- Conteneur Global --- */
.rd-grid.ti-widget.ti-goog {
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-family: inherit;
    color: #333;
    line-height: 1.4;
}

.rd-grid.ti-widget.ti-goog * {
    box-sizing: border-box;
}

/* --- Système de Grille (Responsive) --- */
.ti-reviews-container-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px; /* Compensation du padding des items */
    justify-content: center;
}

.ti-review-item {
    width: 33.333%; /* Desktop: 3 colonnes */
    padding: 10px;
    display: flex; /* Pour que les hauteurs soient égales */
}

/* Tablette : 2 colonnes */
@media (max-width: 991px) {
    .ti-review-item {
        width: 50%;
    }
}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
    .ti-review-item {
        width: 100%;
    }
}

/* --- Gestion de l'affichage (Infinite Scroll) --- */
.ti-review-item.ti-hidden {
    display: none;
}

/* Animation d'apparition */
.ti-review-item.ti-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Carte Avis --- */
.ti-review-item > .ti-inner {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 600px) {
    .ti-review-item:hover > .ti-inner {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
}

/* --- Header Carte (Avatar + Nom) --- */
.ti-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

/* Logo Google en haut à droite */
.ti-review-header:after {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    right: 0;
    top: 0;
    background: url("../../assets/img/google.svg") no-repeat center/contain;
}

.ti-profile-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.ti-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.ti-date {
    font-size: 11px;
    color: #888;
}

/* --- Etoiles --- */
.ti-stars {
    display: flex;
    margin-bottom: 10px;
}

.ti-star {
    width: 16px;
    height: 16px;
    margin-right: 2px;
    background-size: contain;
    background-repeat: no-repeat;
}
.ti-star.f { background-image: url("../../assets/img/full.svg"); }
.ti-star.e { background-image: url("../../assets/img/empty.svg"); }

/* --- Contenu Texte --- */
.ti-review-content {
    font-size: 14px;
    color: #555;
    height: 87px; /* Hauteur fermée */
    overflow: hidden;
    margin-bottom: auto; /* Pousse le "Lire la suite" vers le bas si flex */
    transition: height 0.4s ease;
}

.ti-read-more {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    text-decoration: underline;
}

.ti-read-more:hover {
    color: #000;
}

/* --- Footer Global (en bas du widget) --- */
.ti-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.ti-footer strong {
    font-weight: bold;
}

.ti-scroll-sentinel {
    width: 100%;
    height: 10px;
    visibility: hidden;
}