/* ===== Viix Google Reviews - Design identique Témoignages ===== */

/* Container */
.viix-gr-section {
    display: flex;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 0;
    flex-wrap: wrap;
}

/* Header */
.viix-gr-header {
    width: 100%;
    padding: 0;
    text-align: center;
    margin-bottom: 20px;
}

.viix-gr-title {
    font-weight: 700;
    font-size: 64px !important;
    color: #FE889F !important;
    margin-bottom: 35px;
}

/* Google Badge */
a.viix-gr-google-badge,
.viix-gr-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 10px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 15px;
}

a.viix-gr-google-badge:hover {
    box-shadow: 0 4px 16px rgba(254, 136, 159, 0.15);
    border-color: #FE889F;
    text-decoration: none;
}

.viix-gr-google-icon { flex-shrink: 0; }
.viix-gr-google-info { text-align: left; }

.viix-gr-google-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.viix-gr-google-stars .viix-gr-star.filled { color: #FBBC05; font-size: 18px; }
.viix-gr-google-stars .viix-gr-star { color: #ddd; font-size: 18px; }

.viix-gr-rating-number {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-left: 6px;
}

.viix-gr-google-count { font-size: 13px; color: #999; margin-top: 2px; }

/* Carousel */
.viix-gr-carousel {
    padding: 0;
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
}

/* Container constraint */
.viix-gr-carousel.slick-slider {
    margin: 0 auto;
    width: 100%;
}

.viix-gr-carousel .slick-list { width: 100%; margin: 0 !important; }

.viix-gr-carousel .slick-track {
    float: left;
    display: flex;
}

.viix-gr-carousel .slick-initialized .slick-slide {
    display: flex;
    height: auto;
    border: none;
    background: transparent !important;
    padding: 10px 0 !important;
}

.viix-gr-carousel .slick-slide > div {
    display: flex !important;
    width: 100%;
}

/* Dots - même style que Témoignages */
.viix-gr-carousel .slick-dots {
    display: flex !important;
    justify-content: center;
    margin: auto;
    background: transparent;
    padding: 20px;
    height: auto;
    position: static;
    width: 100%;
}

.viix-gr-carousel .slick-dots li {
    width: auto;
    height: auto;
    margin: 0 7px;
    flex: none;
    background: transparent;
}

.viix-gr-carousel .slick-dots button {
    width: 10px !important;
    height: 10px !important;
    box-shadow: none !important;
    border: 0 !important;
    background: #F8B5B9;
    border-radius: 50%;
    padding: 0 !important;
    font-size: 0;
}

.viix-gr-carousel .slick-dots button:after,
.viix-gr-carousel .slick-dots button:before {
    display: none !important;
}

.viix-gr-carousel .slick-dots .slick-active button {
    width: 10px !important;
    background: #FE889F;
    box-shadow: 0 0 0 3px rgba(254, 136, 159, 0.3) !important;
}

.viix-gr-carousel .slick-dots li:not(.slick-active):hover:after {
    background: transparent !important;
}

/* Slide */
.viix-gr-slide {
    width: 100%;
    padding: 0 15px;
    height: auto !important;
    display: flex !important;
}

/* Card - même design que Témoignages */
.viix-gr-card-inner {
    border: none;
    margin-top: 5px;
    box-shadow: 0px 2px 17px 0px #00000014;
    border-radius: 40px;
    background: url("/img/temoignage.png") no-repeat 20px 30px;
    padding: 80px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
}

/* Review Text */
.viix-gr-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: left;
    margin: 35px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    flex: 1;
}

/* Footer */
.viix-gr-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    padding-top: 15px;
}

.viix-gr-author-name {
    font-family: 'Montserrat' !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    color: #3A3A3A !important;
}

/* Stars */
.viix-gr-stars-section {
    flex-shrink: 0;
    font-size: 16px;
    letter-spacing: 3px;
}

.viix-gr-stars-section .viix-gr-star.filled { color: #FE889F; }
.viix-gr-stars-section .viix-gr-star { color: #ddd; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .viix-gr-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 40px 0 10px !important;
        overflow: visible;
    }
    .viix-gr-carousel .slick-list {
        overflow: visible;
        padding: 10px 40px 10px 0 !important;
    }

    .viix-gr-carousel .slick-track {
        display: flex;
    }

    .viix-gr-carousel.homepage-free-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 10px 2px 15px;
        scroll-snap-type: none;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .viix-gr-carousel.homepage-free-scroll::-webkit-scrollbar {
        display: none;
    }

    .viix-gr-carousel.homepage-free-scroll > .viix-gr-slide {
        flex: 0 0 calc(100% - 48px) !important;
        min-width: calc(100% - 48px) !important;
        max-width: calc(100% - 48px) !important;
        padding: 0;
        box-sizing: border-box;
    }

    .viix-gr-carousel.homepage-free-scroll .viix-gr-card-inner {
        width: 100% !important;
    }

    .viix-gr-header {
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
    }

    .viix-gr-title {
        font-size: 36px !important;
    }

    .viix-gr-card-inner {
        padding: 46px 18px 18px;
        border-radius: 25px;
        background-size: 32px;
    }

    .viix-gr-footer-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .viix-gr-author-name {
        font-size: 16px !important;
    }

    .viix-gr-google-badge {
        padding: 8px 14px;
        font-size: 14px;
    }
}


/* =========================================================================
   Page d'accueil - maquette Figma : titre a gauche, badge Google a droite,
   temoignages presentes a plat (sans carte).
   Les autres pages (produit, categorie, CMS) gardent la version centree.
   ========================================================================= */

#index .viix-gr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: 40px;
}

#index .viix-gr-title {
    margin-bottom: 0;
    text-align: left;
    font-size: 54px !important;
}

/* meme palier que les autres titres de section de l'accueil (custom.css) */
@media (max-width: 1200px) {
    #index .viix-gr-title {
        font-size: 32px !important;
    }
}

#index a.viix-gr-google-badge,
#index .viix-gr-google-badge {
    margin-bottom: 0;
    flex: 0 0 auto;
}

/* Cartes avec ombre pour que la limite de chaque avis se voie */
#index .viix-gr-slide {
    padding: 10px 12px;
}

#index .viix-gr-card-inner {
    background-color: #fff;
    box-shadow: 0 2px 17px 0 #00000014;
    border-radius: 20px;
    background-position: 22px 24px;
    padding: 70px 22px 24px;
}

@media (max-width: 767px) {
    /* Badge Google en face du titre, sur la meme ligne (retour client 31/08) */
    #index .viix-gr-header {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 25px;
    }

    #index .viix-gr-title {
        font-size: 24px !important;
    }

    /* Badge compacte pour tenir a cote du titre sans deborder */
    #index a.viix-gr-google-badge,
    #index .viix-gr-google-badge {
        padding: 6px 12px;
        gap: 8px;
    }

    #index .viix-gr-google-icon svg {
        width: 20px;
        height: 20px;
    }

    #index .viix-gr-google-stars .viix-gr-star,
    #index .viix-gr-google-stars .viix-gr-star.filled {
        font-size: 13px;
    }

    #index .viix-gr-rating-number {
        font-size: 13px;
        margin-left: 4px;
    }

    #index .viix-gr-google-count {
        display: none;
    }

    /* Le padding-top reserve la place du guillemet rose (reduit a 32px) */
    #index .viix-gr-card-inner {
        padding: 52px 18px 20px;
        background-position: 18px 20px;
        background-size: 32px;
        border-radius: 16px;
    }

    #index .viix-gr-slide {
        padding: 8px 0;
    }
}

/* Tres petits ecrans : meme palier que les titres de section (custom.css) */
@media (max-width: 380px) {
    #index .viix-gr-title {
        font-size: 20px !important;
    }

    #index .viix-gr-google-badge {
        padding: 7px 10px;
        font-size: 12px;
    }
}
