/* Google reviews section (home page). Works without JavaScript: the rating summary
   and the two buttons are plain HTML; js/tc-reviews.js adds the review cards. */
.tc-reviews {
    margin: 45px 0;
    padding: 80px 0;
    background: #030f27;
    color: #ffffff;
}

.tc-reviews .section-header {
    margin-bottom: 30px;
}

.tc-reviews .section-header h2 {
    color: #ffffff;
}

/* Rating summary: 5,0 ★★★★★ · 430 avis Google */
.tc-reviews__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    margin: 0 auto 40px;
    color: #ffffff;
    text-decoration: none;
}

.tc-reviews__summary:hover,
.tc-reviews__summary:focus {
    color: #ffffff;
    text-decoration: none;
}

.tc-reviews__g {
    flex: none;
    width: 34px;
    height: 34px;
}

.tc-reviews__score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.tc-reviews__stars {
    color: #fbbc04;
    font-size: 26px;
    letter-spacing: 2px;
    line-height: 1;
}

.tc-reviews__count {
    color: #B7D0EE;
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Cards: one horizontal row. Desktop shows 3 at a time with arrows; phones swipe. */
.tc-reviews__list {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 4px 0 8px;
    overflow-x: auto;
    list-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tc-reviews__list::-webkit-scrollbar {
    display: none;
}

.tc-reviews__list[hidden] {
    display: none;
}

.tc-reviews__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 32px;
}

.tc-reviews__nav[hidden] {
    display: none;
}

.tc-reviews__arrow {
    width: 48px;
    height: 48px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: .3s;
}

.tc-reviews__arrow:hover:not(:disabled) {
    background: #ffffff;
    color: #030f27;
}

.tc-reviews__arrow:disabled {
    opacity: .3;
    cursor: default;
}

.tc-review {
    display: flex;
    flex: 0 0 calc((100% - 48px) / 3);
    flex-direction: column;
    scroll-snap-align: start;
    padding: 24px;
    border-radius: 8px;
    background: #ffffff;
    color: #121518;
    text-align: left;
}

.tc-review__stars {
    color: #f29900;
    font-size: 18px;
    letter-spacing: 2px;
}

.tc-review__text {
    display: -webkit-box;
    margin: 12px 0 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    color: #121518;
    font-size: 16px;
    line-height: 1.55;
    white-space: pre-line;
}

.tc-review.is-open .tc-review__text {
    display: block;
}

.tc-review__more {
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #067EBA;
    font-size: 15px;
    text-decoration: underline;
    cursor: pointer;
}

.tc-review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #dddddd;
}

.tc-review__avatar {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #067EBA;
    color: #ffffff;
    font-size: 18px;
    object-fit: cover;
}

.tc-review__name {
    display: block;
    color: #121518;
    font-size: 16px;
    font-weight: 600;
}

.tc-review__name:hover {
    color: #067EBA;
}

.tc-review__date {
    display: block;
    color: #666666;
    font-size: 14px;
}

/* Buttons */
.tc-reviews__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tc-reviews__btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 28px;
    border: 2px solid #ffffff;
    border-radius: 0;
    font-size: 18px;
    text-decoration: none;
    transition: .3s;
}

.tc-reviews__btn--main {
    border-color: #067EBA;
    background: #067EBA;
    color: #ffffff;
}

.tc-reviews__btn--main:hover,
.tc-reviews__btn--main:focus {
    border-color: #ffffff;
    background: #ffffff;
    color: #067EBA;
    text-decoration: none;
}

.tc-reviews__credit {
    margin: 24px 0 0;
    color: #B7D0EE;
    font-size: 14px;
    text-align: center;
}

.tc-reviews a:focus-visible,
.tc-reviews button:focus-visible {
    outline: 3px solid #fbbc04;
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .tc-reviews__list {
        gap: 16px;
        margin: 0 -15px 32px;
        padding: 4px 15px 8px;
        scroll-padding: 0 15px;
    }

    .tc-review {
        flex: 0 0 82%;
        max-width: 360px;
    }

    .tc-reviews__nav {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .tc-reviews {
        padding: 60px 0;
    }

    .tc-reviews__score {
        font-size: 40px;
    }

    .tc-reviews__btn {
        justify-content: center;
        width: 100%;
    }
}
