/* AE Google Reviews — Frontend */

/* ── Badge ─────────────────────────────────────────────────────────────────── */
.ae-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    font-family: inherit;
    text-decoration: none;
    color: inherit;
}
.ae-badge__logo { display: flex; align-items: center; }
.ae-badge__rating { font-weight: 700; font-size: 16px; color: #222; }
.ae-badge__sep { color: #ccc; font-weight: 300; }
.ae-badge__total { font-size: 14px; color: #555; }

/* ── Étoiles ───────────────────────────────────────────────────────────────── */
.ae-stars { display: inline-flex; gap: 2px; }
.ae-star { font-size: 18px; line-height: 1; }
.ae-star--full  { color: #FBBC04; }
.ae-star--half  { color: #FBBC04; opacity: .6; }
.ae-star--empty { color: #ddd; }

/* ── Slider wrapper ─────────────────────────────────────────────────────────── */
.ae-swiper-wrap {
    position: relative;
    padding: 0 40px;
    overflow: visible; /* laisse respirer les box-shadow */
}

/* Masque les slides hors champ sans couper les ombres */
.ae-swiper-mask {
    overflow: hidden;
    padding: 8px 0 20px; /* espace vertical pour les ombres */
    margin: -8px 0 -20px;
}

/* ── Boutons nav ────────────────────────────────────────────────────────────── */
.ae-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    z-index: 10;
    color: #333;
    transition: background .2s, box-shadow .2s;
    user-select: none;
}
.ae-swiper-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.ae-swiper-prev { left: 0; }
.ae-swiper-next { right: 0; }

/* Désactivé (loop=false) */
.ae-swiper-btn.swiper-button-disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

/* ── Pagination dots ────────────────────────────────────────────────────────── */
.ae-swiper-wrap .swiper-pagination {
    position: relative;
    margin-top: 16px;
    bottom: auto;
}
.ae-swiper-wrap .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    transition: background .2s, transform .2s;
}
.ae-swiper-wrap .swiper-pagination-bullet-active {
    background: #FBBC04;
    transform: scale(1.3);
}

/* ── Slide card ─────────────────────────────────────────────────────────────── */
.ae-slide {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Swiper equal height slides */
.ae-swiper-wrap .swiper-slide {
    height: auto;
}
.ae-swiper-wrap .swiper-wrapper {
    align-items: stretch;
}

/* ── Header de la carte ──────────────────────────────────────────────────────── */
.ae-slide__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ae-slide__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ae-slide__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ae-slide__avatar span {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.ae-slide__meta {
    flex: 1;
    min-width: 0;
}
.ae-slide__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ae-slide__ago {
    font-size: 12px;
    color: #999;
}
.ae-slide__glogo {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Étoiles dans la carte ──────────────────────────────────────────────────── */
.ae-slide .ae-stars {
    display: flex;
    margin-bottom: 10px;
}
.ae-slide .ae-star { font-size: 16px; }

/* ── Texte de l'avis ────────────────────────────────────────────────────────── */
.ae-slide__text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ae-swiper-wrap { padding: 0 32px; }
    .ae-swiper-btn { width: 30px; height: 30px; font-size: 18px; }
}
