/* JM Electric 2026 — Composant : Avis V2
   Section pleine largeur fond navy, layout 2 colonnes :
   [LEFT]  Logo Google + note 4.8/5 + 5 étoiles + 2 trust signals + lien
   [RIGHT] Quote rotative auto 7s + dots pills + "Voir tous les avis"
*/

.avis--v2 {
    position: relative;
    padding: 80px 0;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;

    /* Full-bleed : sort des contraintes du .main (max-width + padding latéral) */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.avis-bg-glow {
    position: absolute;
    top: 0; left: 25%;
    width: 24rem; height: 24rem;
    pointer-events: none;
    background: var(--navy-light);
    border-radius: 50%;
    filter: blur(110px);
    opacity: .2;
}
.avis-bg-dots {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: .025;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 32px 32px;
}

.avis-inner {
    position: relative;
    z-index: 1;
    max-width: 64rem;
    margin: 0 auto;
    /* Section full-bleed : on recrée l'inset latéral (48px mobile / 24px ≥768px). */
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 768px) {
    .avis-inner { padding: 0 24px; }
}
@media (min-width: 1024px) {
    .avis-inner {
        grid-template-columns: 2fr 3fr;
        gap: 56px;
    }
}

/* ---- LEFT : rating Google ---- */
.avis-rating {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: inherit;
    transition: opacity .25s;
}
.avis-rating:hover { opacity: .95; }
@media (min-width: 1024px) {
    .avis-rating {
        border-right: 1px solid rgba(255,255,255,.10);
        padding-right: 48px;
    }
}

.avis-rating-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.avis-google-logo { flex-shrink: 0; }
.avis-rating-source {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: rgba(255,255,255,.85);
    transition: color .25s;
}
.avis-rating:hover .avis-rating-source { color: var(--yellow); }

.avis-score-num {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.avis-score-num .num {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 4rem; /* mobile (V2 : text-[4rem]) */
    line-height: .85;
    letter-spacing: -0.02em;
    color: var(--white);
}
@media (min-width: 1024px) {
    .avis-score-num .num { font-size: 4.8rem; } /* desktop (V2 : lg:text-[4.8rem]) */
}
.avis-score-num .denom {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255,255,255,.30);
}
.avis-stars {
    display: flex;
    gap: 4px;
}
.avis-stars svg {
    width: 18px; height: 18px;
    color: var(--yellow);
    fill: var(--yellow);
}

.avis-trust-signals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.10);
}
.avis-trust-signal { display: flex; flex-direction: column; }
.avis-trust-value {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--white);
}
.avis-trust-value .accent { color: var(--yellow); }
.avis-trust-label {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255,255,255,.50);
}

.avis-rating-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255,255,255,.55);
    transition: color .25s;
}
.avis-rating-cta svg { width: 11px; height: 11px; }
.avis-rating:hover .avis-rating-cta { color: var(--yellow); }

/* ---- RIGHT : quote carousel ---- */
.avis-quote-wrap {
    position: relative;
    min-height: 220px;
}

.avis-quote {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}
.avis-quote.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.avis-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255,210,51,.15);
    border: 1px solid rgba(255,210,51,.30);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--yellow);
    margin-bottom: 12px;
}
.avis-tag svg { width: 11px; height: 11px; }

.avis-text {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255,255,255,.95);
    margin-bottom: 20px;
    font-weight: 400;
}

.avis-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avis-author-logo {
    height: 28px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.avis-author-logo img {
    height: 100%;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .85;
}
.avis-author-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow), #ffe066);
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.avis-author-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255,255,255,.85);
    margin: 0;
}

.avis-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}
.avis-dots {
    display: flex;
    gap: 6px;
}
.avis-dot {
    width: 6px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.20);
    transition: background .25s, width .25s;
    border: 0;
}
.avis-dot.active {
    background: rgba(255,255,255,.60);
    width: 20px;
}
.avis-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(255,255,255,.60);
    transition: color .25s;
}
.avis-all-link svg {
    width: 11px; height: 11px;
    transition: transform .25s;
}
.avis-all-link:hover { color: var(--yellow); }
.avis-all-link:hover svg { transform: translateX(2px); }
