/* ============================================================
   Reviews Carousel — replique fidele du TrustBox Trustpilot
   "Carousel" officiel (template 53aa8912dec7e10d38f59f36).
   Valeurs (polices, tailles, couleurs, espacements) reprises du
   CSS officiel widget.trustpilot.com. Prefixe rcw- pour isoler
   du theme PrestaShop. Theme Google commutable via .rcw--google.
   ============================================================ */

.rcw {
    /* Couleurs officielles Trustpilot */
    --rcw-star-empty: #dcdce6;
    --rcw-ink: #191919;
    --rcw-gray: #636363;
    --rcw-arrow: #8C8C8C;
    --rcw-arrow-disabled: #d1d1d1;
    --rcw-arrow-hover-bg: #c2d5f7;

    box-sizing: border-box;
    width: 100%;
    /* Haut reduit a 8px : le bloc qui precede le widget apporte deja ~24px de
       marge, donc l'espace visible au-dessus du contenu (~32px) egale celui du
       bas. Bas conserve a 32px. */
    padding: 8px 0 32px;
    color: var(--rcw-ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.rcw *,
.rcw *::before,
.rcw *::after {
    box-sizing: border-box;
}

/* .rcw-frame porte la classe .container du theme : meme largeur maximale, meme
   centrage et memes breakpoints que le reste de la page. Le filet de securite
   ci-dessous est en :where() (specificite zero) : la regle .container du theme
   — y compris ses gutters responsive — prime TOUJOURS quand elle existe. */
:where(.rcw-frame) {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Section deja placee DANS un container (deplacement vers .product-tabs, bloc
   du builder dans une zone contenue...) : le container interne est neutralise,
   sinon les gutters s'additionnent et le carousel se desaligne de 15px. */
.container .rcw .rcw-frame {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Mode "100% de l'ecran" : le carousel deborde de son conteneur pour occuper
   toute la largeur de la page ; la contrainte .container est neutralisee.
   (Regle placee apres la regle d'imbrication, meme specificite : elle gagne.) */
.rcw--fullscreen {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.rcw.rcw--fullscreen .rcw-frame {
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
}

.rcw a {
    color: var(--rcw-ink);
    text-decoration: none;
}

.rcw ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- Titre optionnel au-dessus du widget ---------- */
.rcw-title {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

/* ---------- Wrapper general (= .tp-widget-wrapper) — pleine largeur ---------- */
.rcw-widget {
    display: flex;
    align-items: flex-start;
    margin: 0 auto;
    width: 100%;
    min-height: 130px;
    position: relative;
}

/* ---------- Bloc resume gauche (= .wrapper-left, 200px) ---------- */
.rcw-left {
    flex: 0 0 200px;
    width: 200px;
    text-align: center;
    z-index: 2;
}

.rcw-left-link {
    display: block;
}

/* "Excellent" (= .tp-widget-humanscore : 24px, weight 500) */
.rcw-score {
    display: block;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 6px;
}

/* Grandes etoiles du resume (= .tp-widget-stars : 162px) */
.rcw-stars-big {
    display: block;
    margin: 0 auto 6px;
    width: 162px;
}

.rcw-stars-big svg,
.rcw-stars-sm svg,
.rcw-logo svg {
    display: block;
    width: 100%;
}

/* "Base sur X avis" (= .tp-widget-businessinfo : 13px, weight 300) */
.rcw-basedon {
    display: block;
    font-size: 13px;
    font-weight: 300;
    line-height: 16px;
    margin: 0 0 6px;
}

.rcw-basedon u,
.rcw-basedon .rcw-underline {
    text-decoration: underline;
}

.rcw-left-link:hover .rcw-underline {
    text-decoration: none;
}

/* Logo (= .tp-widget-logo : 106px) */
.rcw-logo {
    display: block;
    margin: 0 auto;
    width: 106px;
}

/* Petit lien "Laisser un avis" sous le bloc resume */
.rcw-leave {
    display: inline-block;
    font-size: 13px;
    font-weight: 300;
    line-height: 16px;
    margin-top: 10px;
    text-decoration: underline;
}

.rcw-leave:hover {
    text-decoration: none;
}

/* ---------- Zone cartes droite (= .wrapper-right) ---------- */
.rcw-right {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 0 40px;
    position: relative;
}

/* Fleches (= .tp-widget-review-prev/next : 40px, pleine hauteur) */
.rcw-prev,
.rcw-next {
    cursor: pointer;
    height: 100%;
    position: absolute;
    top: 0;
    width: 40px;
    z-index: 10;
}

.rcw-prev { left: 0; }
.rcw-next { right: 0; }

.rcw-arrow-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: block;
    left: 50%;
    min-height: 24px;
    min-width: 24px;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
}

.rcw-next .rcw-arrow-btn svg { transform: rotate(180deg); }

.rcw-arrow-btn:hover {
    background: var(--rcw-arrow-hover-bg);
    border-radius: 50%;
    height: 24px;
    width: 24px;
}

.rcw-arrow-btn .rcw-arrow-circle { stroke: var(--rcw-ink); }
.rcw-arrow-btn .rcw-arrow-shape { fill: var(--rcw-ink); }

.rcw-prev.rcw-disabled,
.rcw-next.rcw-disabled {
    cursor: default;
    pointer-events: none;
}

.rcw-disabled .rcw-arrow-btn:hover { background: transparent; }
.rcw-disabled .rcw-arrow-btn .rcw-arrow-circle { stroke: var(--rcw-arrow-disabled); }
.rcw-disabled .rcw-arrow-btn .rcw-arrow-shape { fill: var(--rcw-arrow-disabled); }

/* ---------- Piste des avis (= .tp-widget-reviews) ---------- */
.rcw-viewport {
    overflow: hidden;
    position: relative;
}

.rcw-track {
    height: 100%;
    position: relative;
    white-space: nowrap;
    transition: transform .5s ease;
    /* Annule les espaces blancs entre <li> inline-block (le template genere des
       retours a la ligne) : sans ca, ~4px s'ajoutent entre chaque carte et le
       defilement en % se decale progressivement. */
    font-size: 0;
}

/* Une carte (= .tp-widget-review). L'espacement officiel (20px avant, 15px
   entre cartes) est integre dans la largeur pour un defilement exact. */
.rcw-review {
    display: inline-block;
    margin: 0 0 12px;
    padding: 0 21px 0 20px;
    position: relative;
    vertical-align: top;
    white-space: normal;
    width: calc(100% / var(--rcw-n, 3));
}

/* Ligne du haut : etoiles + Verifie (= .top-row) */
.rcw-toprow {
    display: flex;
    gap: 8px;
}

.rcw-stars-sm {
    margin: 0 0 10px;
    width: 99px;
    flex-shrink: 0;
}

/* "Verifie" (= .verification-label : 13px, coche 14px) */
.rcw-verified {
    align-items: center;
    color: var(--rcw-gray);
    display: flex;
    font-size: 13px;
    font-weight: 400;
    height: 16px;
    line-height: 16px;
    margin-top: 2px;
    min-width: 0;
    overflow: hidden;
}

.rcw-verified-icon {
    flex-shrink: 0;
    height: 14px;
    margin: 0 4px 2px 0;
    width: 14px;
}

.rcw-verified-txt {
    overflow: hidden;
    text-decoration: underline;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcw-review:hover .rcw-verified-txt { text-decoration: none; }

/* "Nom, il y a X jours" (= .date-and-user-info-wrapper : 13px gris) */
.rcw-who {
    align-items: center;
    color: var(--rcw-gray);
    display: flex;
    font-size: 13px;
    line-height: 16px;
    margin: 0 0 6px;
}

.rcw-who .rcw-name {
    font-weight: 700;
    line-height: 120%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcw-who .rcw-date {
    flex-shrink: 0;
    margin-left: 3px;
}

/* Titre de l'avis (= .header : 14px bold, 1 ligne) */
.rcw-head {
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Texte de l'avis (13px, coupe nette a 3 lignes) */
.rcw-text {
    font-size: 13px;
    line-height: 16px;
    margin: 0 0 8px;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Petit label sous les cartes (= .tp-widget-reviews-filter-label) */
.rcw-filterlabel {
    color: var(--rcw-ink);
    font-size: 13px;
    font-weight: 300;
    line-height: 16px;
    overflow: hidden;
    padding: 0 0 0 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Responsive officiel (breakpoint 520px) ---------- */
@media screen and (max-width: 519px) {
    .rcw-widget {
        display: block;
    }

    .rcw-left {
        margin: 0 auto;
        width: auto;
    }

    .rcw-right {
        margin-top: 10px;
    }
}

/* ============================================================
   Theme Google — replique du widget EmbedSocial
   "Animated Reviews Slider" (valeurs exactes relevees :
   Inter, cartes 350px / radius 8px / padding 24px / border
   #e2e8f0, etoiles #ffb542, bouton #2563eb, fondu lateral).
   ============================================================ */

@font-face {
    font-family: 'RCW Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RCW Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.rcw--google {
    font-family: 'RCW Inter', Inter, ui-sans-serif, system-ui, sans-serif;
}

.rcw-g {
    width: 100%;
    margin: 0 auto;
}

/* ---- En-tete centre : logo G + titre / note / bouton ---- */
.rcw-g-head {
    margin-bottom: 24px;
    text-align: center;
}

.rcw-g-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.rcw-g-head-logo {
    height: 32px;
    width: 32px;
    flex-shrink: 0;
}

.rcw-g-title {
    color: #2D2A26;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 2.25rem;
    margin: 0;
}

.rcw-g-rating-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.rcw-g-rating-value {
    color: #2D2A26;
    font-size: 24px;
    font-weight: 500;
    line-height: 2rem;
}

.rcw-g-stars {
    display: inline-flex;
    line-height: 0;
}

.rcw-g-stars svg {
    display: block;
}

.rcw-g-stars--lg svg { height: 24px; width: 24px; }
.rcw-g-stars--sm svg { height: 16px; width: 16px; }

.rcw-g-basedon {
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5rem;
}

a.rcw-g-basedon--link {
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.rcw-g-basedon--link:hover {
    color: #475569;
    text-decoration: underline;
}

.rcw-g-cta-row {
    margin-top: 24px;
}

.rcw-g-cta {
    align-items: center;
    background: #2563eb;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    height: 36px;
    justify-content: center;
    padding: 0 20px;
    text-decoration: none;
    transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
}

.rcw-g-cta:hover {
    color: #fff;
    opacity: .9;
    text-decoration: none;
}

/* ---- Rangees en defilement continu (marquee) + fondu lateral ---- */
.rcw-g-row {
    margin-top: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.rcw-g-track {
    display: flex;
    width: max-content;
    animation: rcw-g-marquee var(--rcw-g-speed, 40s) linear infinite;
}

.rcw-g-row--reverse .rcw-g-track {
    animation-direction: reverse;
}

.rcw-g-row:hover .rcw-g-track {
    animation-play-state: paused;
}

.rcw-g-group {
    display: flex;
}

@keyframes rcw-g-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    /* Animation coupee : on retire aussi le fondu lateral (qui masquerait les
       bords) et on rend les rangees defilables au doigt/molette. */
    .rcw-g-track { animation: none; }

    .rcw-g-row {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ---- Carte (350px, blanc, radius 8, padding 24, border slate-200) ---- */
.rcw-g-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    margin-right: 24px;
    padding: 24px;
    transition: box-shadow .5s cubic-bezier(.4, 0, .2, 1);
    width: 350px;
}

.rcw-g-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.rcw-g-card-head {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.rcw-g-avatar {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    text-transform: uppercase;
    width: 44px;
}

.rcw-g-person {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.rcw-g-name {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcw-g-date {
    color: #64748b;
    font-size: 12px;
    line-height: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcw-g-card-logo {
    flex-shrink: 0;
    height: 20px;
    margin-left: auto;
    width: 20px;
}

.rcw-g-card .rcw-g-stars {
    margin-bottom: 12px;
}

.rcw-g-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.625;
    margin: 0;
    overflow: hidden;
    overflow-wrap: break-word;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.rcw-g-text.rcw-g-text--open {
    display: block;
    -webkit-line-clamp: unset;
}

.rcw-g-more {
    align-self: flex-start;
    color: #0f172a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 4px;
}

.rcw-g-more:hover {
    text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .rcw-g-title { font-size: 24px; }
    .rcw-g-card { width: 290px; padding: 20px; margin-right: 16px; }
    .rcw-g-rating-row { flex-wrap: wrap; gap: 8px; }
}
