
/* ========================================
   ARIYA - AVIS GOOGLE
   ======================================== */

/* Conteneur principal */
.ariya-avis {
    --ariya-gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

.ariya-avis * {
    box-sizing: border-box;
}

/* ========================================
   EN-TÊTE ET NOTE GLOBALE
   ======================================== */

.ariya-avis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.ariya-avis-header h2 {
    margin: 0 0 8px;
}

.ariya-avis-score {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ariya-stars {
    color: #e5a800;
    font-size: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ariya-avis-all {
    font-weight: 600;
}

/* ========================================
   CARROUSEL
   ======================================== */

.ariya-avis-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ariya-avis-viewport {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.ariya-avis-viewport::-webkit-scrollbar {
    display: none;
}

.ariya-avis-track {
    display: flex;
    gap: var(--ariya-gap);
    align-items: stretch;
}

/* ========================================
   CARTES DES AVIS
   ======================================== */

.ariya-avis-card {
    flex: 0 0 calc((100% - 2 * var(--ariya-gap)) / 3);
    min-width: 0;
    padding: 22px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    background: #fff;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Auteur de l'avis */
.ariya-avis-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ariya-avis-author img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}

.ariya-avis-author strong {
    display: block;
}

.ariya-avis-author small {
    display: block;
    color: #666;
}

/* Texte du commentaire */
.ariya-avis-card p {
    margin: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ========================================
   COMMENTAIRE - LIRE LA SUITE
   ======================================== */

/* Commentaire limité à 3 lignes */

.ariya-review-content {
    width: 100%;
}

.ariya-review-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ariya-review-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.ariya-read-more {
    display: inline-block;
    margin-top: 8px;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.ariya-read-more[hidden] {
    display: none !important;
}


/* ========================================
   SOURCE ET ATTRIBUTIONS GOOGLE
   ======================================== */

.ariya-avis-source {
    margin-top: auto;
    font-size: 12px;
}

.ariya-avis-attributions {
    font-size: 12px;
    margin-top: 12px;
}

.ariya-avis-brand {
    font-size: 13px;
    text-align: right;
    margin: 12px 0 0;
}

/* ========================================
   FLÈCHES DE NAVIGATION
   ======================================== */

.ariya-avis-arrow {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 42px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    background: #fff !important;
    color: #222 !important;
    cursor: pointer;
    font-size: 18px !important;
    display: grid;
    place-items: center;
    padding: 0 !important;
}

.ariya-avis-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ========================================
   MESSAGES D'ERREUR
   ======================================== */

.ariya-avis-error {
    color: #b42318;
}

/* ========================================
   RESPONSIVE - TABLETTE
   ======================================== */

@media (max-width: 900px) {

    .ariya-avis-card {
        flex-basis: calc(
            (100% - var(--ariya-gap)) / 2
        );
    }

}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */


/* ========================================
   MOBILE - FLÈCHES SOUS LE CARROUSEL
   ======================================== */

@media (max-width: 767px) {

    /* Carrousel sur toute la largeur */
    .ariya-avis-carousel {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    /* Cartes sur toute la largeur */
    .ariya-avis-viewport {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        order: 1;
    }

    .ariya-avis-card {
        flex: 0 0 100%;
        padding: 20px;
    }

    /* Flèches sous les cartes */
    .ariya-avis-arrow {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        order: 2;
        font-size: 18px !important;
    }

    /* Espacement sous les cartes */
    .ariya-avis-track {
        align-items: stretch;
    }
    .ariya-avis-brand{
    	text-align:left;
    }

}


/* ========================================
   BOUTON DÉPOSER UN AVIS
   ======================================== */

.ariya-deposer-avis {
    display: inline-block;
    padding: 12px 24px;
    background-color: #5fba8c;
    color: #ffffff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.ariya-deposer-avis:hover {
    background-color: #d9b040;
    color: #ffffff;
}
