/* =========================================================
   ALLMYREVIEWS – THEME FRONT GLOBAL (Classic-friendly)
   Charte : #0F0F0F (black), #e62249 (accent), #fff (white),
            #D0FFD9 (success), #FFEFD0 (warning)
   ========================================================= */

:root {
    --agr-black: #0F0F0F;
    --agr-accent: #e62249;
    --agr-white: #fff;
    --agr-success: #D0FFD9;
    --agr-warning: #FFEFD0;
}

/* ---------- 1. WRAPPER PAGES AVIS / BLOCS PRINCIPAUX ---------- */
/*HOMEPAGE REVIEWS*/


.agr-home-block{    margin: 44px 0;
    padding: 0 64px;}
.agr-home-block-title{margin: 0;
    text-transform: initial;
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 500;
    position: relative;
    top: 4px;}
.agr-block-header{    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 44px;}

/* Page “avis site” + wrappers principaux du module */
.agr-reviews-page {
    max-width: 820px;
    margin: 24px auto 40px;
    background: rgba(255, 255, 255, 0.75);
    padding: 20px 18px 24px;
    border-radius: 6px;

}

@media (min-width: 768px) {
    .agr-reviews-page {
        padding: 26px 28px 30px;
        margin-top: 32px;
    }
}

/* Titre principal "Avis clients..." */
.agr-reviews-title {
    color: #1F1F1F;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .2rem;
    font-size: 24px;
    margin: 0 0 16px 0;
    border: none;
}

/* Wrapper form + preview pour bien les séparer du reste */
.agr-review-form-wrapper {
    margin-top: 10px;
}

/* ---------- 2. ALERTES / MESSAGES (succès / erreurs) ---------- */

.agr-reviews-page .alert {
    border-radius: 3px;
    border: 0;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 14px;
}

.agr-reviews-page .alert-danger {
    background: rgba(220, 53, 69, 0.07);
    color: #721c24;
}

.agr-reviews-page .alert-success {
    background: rgba(40, 167, 69, 0.07);
    color: #155724;
}

.agr-reviews-page .alert-info {
    background: rgba(23, 162, 184, 0.07);
    color: #0c5460;
}

/* ---------- 3. FORMULAIRE AVIS (page site / contexts module) ---------- */

.agr-review-form .form-group {
    margin-bottom: 14px;
}

.agr-review-form .control-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1F1F1F;
}

.agr-review-form .help-block {
    font-size: 12px;
    margin-top: 4px;
    color: rgba(31, 31, 31, .7);
}

/* Inputs du module (nom, titre, textarea…) */
.agr-review-form input[type="text"],
.agr-review-form input[type="email"],
.agr-review-form textarea {
    border-radius: 3px;
    border: 1px solid rgba(31, 31, 31, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    font-size: 14px;
    padding: 7px 9px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.agr-review-form input[type="text"]:focus,
.agr-review-form input[type="email"]:focus,
.agr-review-form textarea:focus {
    border-color: var(--agr-accent);
    outline: none;
    box-shadow: 0 0 0 1px rgba(230, 34, 73, 0.35);
    background: #ffffff;
}

/* Group nom affiché */
.agr-display-name-group .agr-display-name-wrapper {
    display: flex;
    flex-direction: column;
}

/* Bouton "Envoyer mon avis" dans le contexte du form */
.agr-review-form-footer {
    margin-top: 12px;
}

/* Si tu veux un style un peu plus marqué pour ce bouton
   (en plus de ton .btn-primary global) : */
.agr-site-review-page .agr-review-form-footer .btn.btn-primary {
    min-width: 220px;
    text-align: center;
}

/* ---------- 4. ÉTOILES – FORM + LECTURE + PREVIEW ---------- */

/* Conteneur étoiles lecture & preview */
.agr-review-stars,
.js-agr-preview-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Conteneur étoiles cliquables du formulaire */
.agr-rating-stars {
    display: inline-flex;
    gap: 4px;
    margin-top: 2px;
}

/* Boutons étoile (formulaire) */
.agr-rating-star {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: rgba(31, 31, 31, 0.3);
    transition: transform .12s ease, text-shadow .12s ease, opacity .12s ease, color .12s ease;
}

/* Étoiles lecture + preview */
.agr-star,
.js-agr-preview-star {
    font-size: 18px;
    line-height: 1;
    transition: transform .12s ease, text-shadow .12s ease, opacity .12s ease, color .12s ease;
}

/* Plein / sélectionné */
.agr-star--full,
.agr-rating-star.is-active,
.agr-rating-star.is-hover,
.js-agr-preview-star.is-active {
    color: var(--agr-accent);
}

/* Vide */
.agr-star--empty,
.agr-rating-star:not(.is-active):not(.is-hover),
.js-agr-preview-star:not(.is-active) {
    color: rgba(31, 31, 31, 0.25);
}

/* Feedback hover */
.agr-rating-star:hover {
    transform: translateY(-1px) scale(1.08);
    opacity: 1;
}

/* ---------- 5. PREVIEW "VOTRE AVIS" (live) ---------- */

.agr-review-preview-wrapper {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px dashed rgba(31, 31, 31, 0.2);
}

.agr-review-preview-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .16rem;
    font-weight: 600;
    color: #1F1F1F;
    margin: 0 0 10px 0;
}

/* Carte preview = variante plus soft des cartes avis */
.agr-review-item--preview {
    box-shadow: none;
    border: 1px solid rgba(31, 31, 31, 0.06);
}

/* Placeholder du texte de preview */
.agr-review-content[data-placeholder] {
    font-style: italic;
    color: rgba(31, 31, 31, 0.6);
}

/* ---------- 6. CARTES AVIS (PARTOUT) ---------- */

.agr-review-item {

    border-radius: 6px;


    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}


/* Header : étoiles + auteur + date */
.agr-review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    justify-content: space-between;

}

.agr-review-author {
    font-weight: 600;
    color: #1F1F1F;
}

.agr-review-date {
    font-size: 13px;
    color: rgba(31, 31, 31, 0.6);
}

/* Titre + contenu */
.agr-review-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    color: #1F1F1F;
}

.agr-review-content {
    font-size: 14px;
    line-height: 1.5;
    color: #1F1F1F;
    padding: 14px 0 14px 0;

}
.agr-review-left{display: flex;align-items: baseline;gap: 8px}

/* Listes d’avis (page, fiche produit, home…) */
.agr-review-list,
.agr-product-reviews-list,
.agr-home-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- 7. EN-TÊTES / RÉSUMÉS / CTA (produit, HP, site) ---------- */

/* Titres "Avis clients" dans différents contextes */
.agr-product-reviews-title,
.agr-home-reviews-title {
    color: #1F1F1F;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .2rem;
    font-size: 20px;
    margin: 0 0 12px 0;
    border: none;
}

/* Ligne de résumé : moyenne + nb avis + lien */
.agr-reviews-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 12px;
}

.agr-reviews-summary-note {
    font-weight: 600;
    font-size: 16px;
    color: #1F1F1F;
}

.agr-reviews-summary-count {
    font-size: 14px;
    color: rgba(31, 31, 31, 0.7);
}

/* CTA "Voir tous les avis", "Déposer un avis", etc. */
.agr-reviews-cta,
.agr-review-write-link,
.agr-review-seeall-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: .16rem;
    font-weight: 600;
    font-size: 12px;
    border-radius: 0;
    border: 1px solid var(--agr-accent);
    color: var(--agr-accent);
    background: #1F1F1F;
    text-decoration: none;
    transition:
            color .3s ease,
            background-color .3s ease,
            border-color .3s ease,
            transform .16s ease,
            box-shadow .16s ease;
}

.agr-reviews-cta:hover,
.agr-review-write-link:hover,
.agr-review-seeall-link:hover {
    color: #ffffff;
    border-color: #ffffff;
    background: #1F1F1F;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

/* ---------- 8. CONTEXTES SPÉCIFIQUES (fiche produit / HP) ---------- */

/* Fiche produit : bloc avis bien intégré dans tes panneaux blancs translucides */
body#product .agr-reviews-page,
body#product .agr-product-reviews-wrapper,
body#product .agr-product-reviews {
    background: rgba(255, 255, 255, 0.5);
    padding: 16px;
    border-radius: 3px;
    box-shadow: none;
    margin-top: 16px;
}

/* Cartes un poil plus compacts sur fiche produit */
body#product .agr-review-item {
    padding: 16px 0;

}

/* Home : si tu as un wrapper dédié pour le bloc avis */
.agr-home-reviews {
    background: rgba(255, 255, 255, 0.5);
    padding: 16px;
    border-radius: 3px;
}

.agr-home-reviews .agr-review-item {
    margin-bottom: 16px;
}

/* ---------- 9. RESPONSIVE --------- */

@media (max-width: 575px) {
    .agr-reviews-page {
        margin: 16px 8px 24px;
        padding: 16px 12px 18px;
    }

    .agr-reviews-title {
        font-size: 20px;
        letter-spacing: .16rem;
    }

    .agr-review-item {
        padding: 12px 12px;
    }
}


/* Alias (older templates use --filled) */
.agr-star--filled { color: var(--agr-accent); }

/* Header compact badge + dropdown */
.agr-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 13px;
  line-height: 1;
}

.agr-header-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.agr-header-badge-label { opacity: 0.9; }
.agr-header-badge-rating { font-weight: 700; }
.agr-header-badge-count { opacity: 0.85; }

.agr-header-badge-toggle {
  border: 0;
  background: transparent;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1;
}

.agr-header-badge-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 280px;
  max-width: 340px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 10px;
}

.agr-header-badge-dd-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.agr-header-badge-dd-row + .agr-header-badge-dd-row {
  border-top: 1px solid #f1f1f1;
}

.agr-header-badge-dd-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.agr-header-badge-dd-meta {
  font-size: 12px;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.agr-header-badge-dd-right a {
  white-space: nowrap;
  font-size: 12px;
  text-decoration: underline;
}

.agr-home-block--internal + .agr-home-block--internal {
  margin-top: 18px;
}

.agr-home-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

    flex-wrap: wrap;
}

.agr-home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
}

.agr-home-actions--empty {
  margin-top: 6px;
}

.agr-home-action-link {
  text-decoration: underline;
}


.agr-home-actions-note {
  flex-basis: 100%;
  text-align: center;
  font-size: 11px;
  opacity: 0.8;
}

/* Carousel */
.agr-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agr-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.agr-carousel-track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
}

.agr-carousel-slide {
  flex: 0 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
}

.agr-carousel-nav {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.agr-carousel-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.agr-review-item--compact {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
background: #FFEFD0;
  height: 100%;

}

.agr-review-content--excerpt {
  margin-top: 8px;
}

.agr-home-review-date {

  font-size: 12px;
 color: #0F0F0F;
}

.agr-see-all{color:#0F0F0F}
/* Order review request landing */
.agr-order-review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.agr-order-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
}

.agr-order-review-actions .btn {
  margin-left: 8px;
}

/* =========================================================
   Palette overrides (non-aggressive, classic-friendly)
   ========================================================= */

.agr-reviews-page,
.agr-review-item {
    color: var(--agr-black);
}

.agr-reviews-title,
.agr-review-author,
.agr-review-title,
.agr-summary-box h3 {
    color: var(--agr-black);
}

/* Stars */
.agr-star--filled,
.agr-star--full,
.agr-rating-star--active {
    color: var(--agr-accent) !important;
    text-shadow: none !important;
}

.agr-star {
    color: rgba(15, 15, 15, 0.25);
}

.agr-rating-star {
    color: rgba(15, 15, 15, 0.25);
}

/* Links / accents */
.agr-all-reviews-link,
.agr-summary-link a {
    color: var(--agr-accent);
}

/* Achat vérifié : aligné sur .ab-badge--primary (dark pill) */
.agr-review-badge {
    display: inline-flex;
    align-items: center;
    background: var(--ab-primary-bg, #202020);
    color: var(--ab-primary-fg, #ededf3);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.agr-home-review-meta{padding: 16px}
/* Alerts */
.agr-reviews-page .alert-success {
    background: var(--agr-success);
    color: var(--agr-black);
}

.agr-reviews-page .alert-warning {
    background: var(--agr-warning);
    color: var(--agr-black);
}

/* Form focus */
.agr-review-form input[type="text"]:focus,
.agr-review-form textarea:focus {
    border-color: var(--agr-accent);
    box-shadow: 0 0 0 1px rgba(230, 34, 73, 0.25);
}


/* UX helpers */
.agr-review-thanks {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.2;
}

.agr-login-hint {
    font-size: 0.9rem;
    color: rgba(15, 15, 15, 0.7);
}

.agr-banner-avis .agr-banner-count {
    /* 6px read too tight against the underlined "Tous les avis" source label. */
    margin-left: 10px;
    font-weight: 600;
}


/* ---------- AMR P0 UX: Product tab form toggle + class aliases ---------- */

/* Form is hidden by default in product tab (opened via JS only). */
#agr-reviews [data-agr-form] {
  display: none;
}
#agr-reviews [data-agr-form].is-open {
  display: block;
}

/* Alias for legacy templates */
.agr-star--filled { color: var(--agr-accent); }
.agr-star--empty { color: rgba(31, 31, 31, 0.25); }

/* Product miniature */
.agr-miniature-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  margin-top: 6px;
}
.agr-miniature-summary .agr-stars { display: inline-flex; gap: 1px; }

/* Onglet Avis : icône à gauche du libellé */
.agr-tab-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  width: 24px;
  height: 20px;
}

/* ---------- AMR Phase 2: Order review hub (email token) ---------- */

.agr-order-review-request .agr-order-review-intro {
  margin-bottom: 16px;
}

.agr-order-review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.agr-order-review-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.agr-order-review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.agr-order-review-name {
  font-weight: 600;
}

.agr-order-review-product-link {
  font-size: 13px;
  white-space: nowrap;
}

.agr-rating-stars--hub {
  display: inline-flex;
  gap: 4px;
}

.agr-rating-stars--hub .agr-rating-star {
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}

.agr-order-review-feedback {
  margin-top: 8px;
  font-size: 13px;
}

.agr-order-review-feedback.is-success {
  color: #1a7f37;
}

.agr-order-review-feedback.is-error {
  color: #b42318;
}

.agr-order-review-comment {
  margin-top: 10px;
}

.agr-order-review-comment-actions {
  margin-top: 8px;
}

.agr-order-review-status {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agr-order-review-note {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 13px;
}

/* =========================================================
   9. MY ACCOUNT – MES AVIS (Phase 3)
   ========================================================= */

.agr-myreviews-page .agr-myreviews-section-title {
    margin-top: 22px;
    margin-bottom: 8px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .12rem;
    font-weight: 600;
    color: #1F1F1F;
}

/* Hub: display name (pseudo) */
.agr-myreviews-page .agr-displayname {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid rgba(31, 31, 31, .12);
    border-radius: 10px;
    margin-bottom: 14px;
}

.agr-myreviews-page .agr-displayname-label {
    min-width: 140px;
    font-weight: 600;
    padding-top: 8px;
    color: #1F1F1F;
}

.agr-myreviews-page .agr-displayname-field {
    flex: 1 1 auto;
}

.agr-myreviews-page .agr-displayname-hint {
    font-size: 12px;
    color: rgba(31, 31, 31, .72);
    margin-top: 6px;
}

.agr-myreviews-page .agr-displayname-feedback {
    font-size: 12px;
    margin-top: 6px;
}

.agr-myreviews-page .agr-displayname-feedback.is-success {
    color: #0a7b34;
}

.agr-myreviews-page .agr-displayname-feedback.is-error {
    color: #b20a0a;
}

@media (max-width: 576px) {
    .agr-myreviews-page .agr-displayname {
        flex-direction: column;
    }
    .agr-myreviews-page .agr-displayname-label {
        min-width: 0;
        padding-top: 0;
    }
}

.agr-myreviews-page .agr-myreviews-section-intro {
    margin-bottom: 12px;
    color: rgba(31, 31, 31, .75);
    font-size: 13px;
}

.agr-myreviews-page .agr-myreviews-empty {
    margin: 6px 0 12px;
    color: rgba(31, 31, 31, .75);
}

.agr-myreviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 576px) {
    .agr-myreviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .agr-myreviews-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.agr-mycard {
    display: flex;
    gap: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 31, 31, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 10px;
    position: relative;
}

.agr-mycard.is-busy {
    opacity: .75;
}

.agr-mycard-media {
    width: 72px;
    min-width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(31, 31, 31, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agr-mycard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agr-mycard-img-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.agr-mycard-body {
    flex: 1;
    min-width: 0;
}

.agr-mycard-title {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    color: #1F1F1F;
    text-decoration: none;
    margin-bottom: 4px;
}

.agr-mycard-title:hover {
    text-decoration: underline;
}

.agr-mycard-status {
    margin: 4px 0 6px;
}

/* Badges (requested UI) */
.agr-myreviews-page .agr-mycard-status .badge {
    border-radius: 8px;
    padding: 4px 8px;
    font-weight: 600;
}

.agr-myreviews-page .agr-mycard-status .badge.badge-success {
    background: #D0FFD9;
    color: #0F0F0F;
}

.agr-myreviews-page .agr-mycard-status .badge.badge-info {
    background: #FFEFD0;
    color: #0F0F0F;
}

.agr-mycard-text {
    margin: 6px 0 8px;
    font-size: 13px;
    color: rgba(31, 31, 31, .85);
}

.agr-mycard-text--muted {
    color: rgba(31, 31, 31, .6);
    font-style: italic;
}

.agr-mycard-feedback {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(31, 31, 31, .75);
}

.agr-mycard-feedback.is-success {
    color: #155724;
}

.agr-mycard-feedback.is-error {
    color: #721c24;
}


.agr-mycard-comment-teaser {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(31, 31, 31, .75);
    display: flex;
    align-items: center;
    gap: 8px;
}

.agr-mycard-comment-open {
    font-weight: 600;
}

.agr-mycard-comment-open:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
}

.agr-mycard-comment-hint {
    opacity: 0.75;
}

.agr-mycard-edit-note {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.85;
}

.agr-mycard-comment {
    margin-top: 10px;
}

.agr-mycard-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.agr-mycard-edit {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(31, 31, 31, 0.18);
}


/* ===== Phase A: merchant reply blocks + unread badge ===== */

.agr-merchant-reply {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(31, 31, 31, 0.12);
    border-left-width: 3px;
    border-radius: 8px;
    background: rgba(31, 31, 31, 0.03);
}

.agr-merchant-reply-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 6px;
    color: rgba(31, 31, 31, 0.85);
}

.agr-merchant-reply-content {
    font-size: 13px;
    color: rgba(31, 31, 31, 0.85);
}

.agr-unread-badge {
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}


/* ===== Phase B: no-spam popup ===== */

html.agr-popup-open,
body.agr-popup-open {
    overflow: hidden;
}

.agr-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.agr-popup-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.agr-popup {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 18px 16px 16px;
    position: relative;
}

.agr-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: rgba(31, 31, 31, 0.7);
}

.agr-popup-title {
    font-weight: 700;
    font-size: 16px;
    margin: 2px 30px 6px 2px;
}

.agr-popup-text {
    font-size: 13px;
    color: rgba(31, 31, 31, 0.75);
    margin-bottom: 14px;
}

.agr-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agr-popup-status {
    margin-top: 10px;
    font-size: 13px;
    line-height: 18px;
    min-height: 18px;
}

.agr-popup-status.is-ok {
    color: #1b5e20;
}

.agr-popup-status.is-error {
    color: #b71c1c;
}

.agr-popup-status.is-info {
    color: #0d47a1;
}

.agr-popup-textarea.is-error {
    border-color: #b71c1c;
    outline: none;
}

.agr-popup-field-error {
    margin-top: 6px;
    font-size: 12px;
    line-height: 16px;
    color: #b71c1c;
}

.agr-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(31, 31, 31, 0.2);
    background: #fff;
    color: rgba(31, 31, 31, 0.9);
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.agr-popup-btn--primary {
    border-color: rgba(31, 31, 31, 0.9);
}

.agr-popup-btn--ghost {
    border-color: rgba(31, 31, 31, 0.12);
    background: rgba(31, 31, 31, 0.03);
}

.agr-popup-btn--danger {
    border-color: rgba(114, 28, 36, 0.35);
    color: rgba(114, 28, 36, 0.95);
}


/* ===== Popup v2: inline quick ratings ===== */
.agr-popup--v2 .agr-popup-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.agr-popup--v2 .agr-popup-section-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.agr-popup--v2 .agr-popup-product {
    padding: 10px 10px;
    border: 1px solid rgba(31, 31, 31, 0.10);
    border-radius: 10px;
    margin-top: 8px;
}
.agr-popup--v2 .agr-popup-product {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.agr-popup--v2 .agr-popup-product-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 44px;
    background: rgba(31, 31, 31, 0.04);
}

.agr-popup--v2 .agr-popup-product-content {
    flex: 1 1 auto;
    min-width: 0;
}


.agr-popup--v2 .agr-popup-product-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.25;
}

.agr-popup--v2 .agr-popup-stars-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agr-stars {
    display: inline-flex;
    gap: 6px;
}

.agr-star {
    width: 18px;
    height: 18px;
    border-radius: 10px;

    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(31, 31, 31, 0.35);
    padding: 0;
}

.agr-star.is-active {
    color: rgba(31, 31, 31, 0.95);
    border-color: rgba(31, 31, 31, 0.35);
    background: rgba(31, 31, 31, 0.06);
}

.agr-popup--v2 .agr-popup-comment {
    margin-top: 8px;
}
.agr-home-author-line{display: inline-flex;width: 100%;justify-content: space-between;align-items: center}
.agr-home-author-line-left{display: inline-flex;flex-direction: column;gap: 6px}
.agr-popup--v2 .agr-popup-comment--hidden {
    display: none;
}

/* Popup v2 — instant save feedback */
.agr-popup--v2 .agr-popup-saved {
    font-size: 12px;
    line-height: 1.2;
    margin-top: 4px;
    opacity: 0.82;
}

.agr-popup--v2 .agr-popup-saved.is-ok {
    opacity: 1;
}

.agr-popup--v2 .agr-popup-saved.is-error {
    opacity: 1;
}

.agr-popup--v2 .agr-popup-btn--comment {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(31, 31, 31, 0.14);
    background: #fff;
    font-size: 13px;
    line-height: 1.1;
}

.agr-popup--v2 .agr-popup-textarea {
    width: 100%;
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid rgba(31, 31, 31, 0.14);
    padding: 10px 10px;
    font-size: 13px;
}

.agr-popup-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* ===== Phase C: preferences panel in My Reviews hub ===== */
.agr-myreviews-prefs {
    margin: 10px 0 18px;
}

.agr-myreviews-prefs-link {
    display: inline;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

.agr-myreviews-prefs-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(31, 31, 31, 0.12);
    border-radius: 10px;
    background: rgba(31, 31, 31, 0.02);
}

.agr-myreviews-pref-row + .agr-myreviews-pref-row {
    margin-top: 10px;
}

.agr-myreviews-pref-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    margin: 0;
}

.agr-myreviews-prefs-feedback {
    margin-top: 10px;
    font-size: 13px;
}

.agr-myreviews-prefs-feedback.is-success {
    color: rgba(20, 110, 60, 0.95);
}

.agr-myreviews-prefs-feedback.is-error {
    color: rgba(114, 28, 36, 0.95);
}

/* ===== Product page: show customer's pending review (visible only to the customer) ===== */
.agr-review-badge--pending {
    background: #FFEFD0;
    color: #0F0F0F;
    border-radius: 8px;
    padding: 2px 8px;
}


.agr-review-private-note {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.75;
}

.agr-review-item--pending {
    border-left: 3px solid #FFEFD0;
    padding-left: 10px;
}

.agr-review-content--muted {
    opacity: 0.78;
}

.agr-review-edit-link {
    font-size: 13px;
    text-decoration: underline;
}

/* Pending review inline edit (progressive enhancement) */
.agr-pending-edit-wrapper {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.agr-pending-edit-wrapper[hidden] {
  display: none !important;
}

.agr-pending-edit-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.agr-pending-edit-feedback {
  margin-top: 8px;
  font-size: 13px;
}

.agr-pending-edit-feedback.is-error {
  font-weight: 600;
}

/* === Accessibility helpers (Lot E / part 2) === */

.agr-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.agr-product-tab a:focus-visible,
.agr-product-reviews-block a:focus-visible,
.agr-home-block a:focus-visible,
.agr-home-block button:focus-visible,
.agr-carousel-nav:focus-visible,
.agr-pagination a:focus-visible,
.agr-review-form button:focus-visible,
.agr-review-form input:focus-visible,
.agr-review-form textarea:focus-visible,
.agr-rating-star:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* AMR popup v2: display name + more link */
.agr-popup--v2 .agr-popup-displayname {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.agr-popup--v2 .agr-popup-displayname-label {
    font-size: 12px;
    opacity: 0.85;
}
.agr-home-product-review{display: flex;flex-direction: column}
.agr-home-review-top{display: flex;background: #ffffff;width: 100%;align-items: center}
.agr-popup--v2 .agr-popup-displayname-input {
    min-width: 160px;
    max-width: 100%;
    flex: 1 1 220px;
    padding: 6px 8px;
    border: 1px solid rgba(31, 31, 31, 0.20);
    border-radius: 8px;
    font-size: 13px;
}

.agr-popup--v2 .agr-popup-more-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    text-decoration: underline;
    opacity: 0.9;
}


.agr-home-product-name{font-size: 20px;color:#0F0F0F;font-weight: 500}
.agr-home-manufacturer{font-size:14px;font-weight: 400;color:#777777;text-transform: uppercase;margin-top: 3px }
#module-alterglobalreviews-myreviews h1{text-align: center}

/* =========================================================
   Lot 12a — mobile hotfixes (UX audit 2026-04-17)
   Scope: text clamp on review bodies + pill overflow +
   homepage heading wrap + mobile side padding.
   Revert = remove everything below up to EOF.
   ========================================================= */

/* Clamp body review on homepage carousel cards (3 lines). */
.agr-home-block .agr-review-content--excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Clamp body review in the PDP "Avis" tab (5 lines). */
body#product .agr-review-item .agr-review-content {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Mobile: author-line wraps so the verified pill never clips the card edge. */
@media (max-width: 480px) {
    .agr-home-author-line {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .agr-review-badge {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Mobile: homepage block header stacks icon above title so the H2 gets full width. */
@media (max-width: 480px) {
    .agr-home-block .agr-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .agr-home-block-title {
        font-size: 22px;
        top: 0;
    }
}

/* Mobile: homepage block side padding (desktop 64px is too aggressive under 768). */
@media (max-width: 768px) {
    .agr-home-block {
        padding: 0 16px;
        margin: 32px 0;
    }
}

/* =========================================================
   Lot 12b — PDP login CTA (Connectez-vous pour rédiger)
   Scope: override classic theme's default cyan on .btn-primary
   for the AGR login CTA, aligned with Lot 11 amaranth charter.
   Revert = remove this block.
   ========================================================= */
.agr-login-cta.btn.btn-primary,
.agr-login-cta.btn.btn-primary:visited {
    background-color: var(--agr-accent);
    border-color: var(--agr-accent);
    color: #fff;
}
.agr-login-cta.btn.btn-primary:hover,
.agr-login-cta.btn.btn-primary:focus {
    background-color: #c41c3d;
    border-color: #c41c3d;
    color: #fff;
}

/* =========================================================
   Lot 12-arbitrage Option A — /reviews linear layout
   (post-Figma audit 2026-04-18, maquette PDP `15:5571`)

   Scope: supersedes Lot 12c's cream-card grid. Visual pivot to
   stacked linear rows with grey-200 separator, matching the
   Figma AGR reference frame for reviews. TPL classes kept 1:1
   (agr-review-grid, agr-review-grid-item, agr-review-card,
   agr-review-card-media, agr-review-card-body, agr-review-card-top,
   agr-review-card-product, agr-review-card-rating, agr-review-card-author-row)
   so microdata + JSON-LD stay unchanged — this is purely a visual
   revert. Product vignette kept (listing global context — the
   Figma PDP frame omits it because the PDP already shows the
   product; /reviews needs it for row-level attribution).

   Palette aligned on Figma tokens:
     - text primary: #0f0f0f (grey-900)
     - text secondary: #353535 (grey-500)
     - separator: #dde1e3 (grey-200)

   Rollback = revert commit of this block.
   ========================================================= */

.agr-review-grid {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: block;
}

.agr-review-grid-item {
    list-style: none;
    margin: 0;
    padding: 24px 0;
    display: block;
    border-bottom: 1px solid #dde1e3;
}

.agr-review-grid-item:first-child {
    padding-top: 8px;
}

.agr-review-grid-item:last-child {
    border-bottom: 0;
    padding-bottom: 8px;
}

.agr-review-grid-item::before {
    content: none;
}

.agr-review-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    transition: none;
}

.agr-review-card:hover,
.agr-review-card:focus-within {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.agr-review-card-media {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: #f6f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.agr-review-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.agr-review-card-media--placeholder,
.agr-review-card-media--site {
    background: #f6f7f8;
    color: #b0b6bb;
    font-size: 24px;
    line-height: 1;
}

.agr-review-card-media-fallback {
    display: inline-block;
    color: #b0b6bb;
    font-size: 24px;
    line-height: 1;
}

.agr-review-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agr-review-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border: 0;
}

.agr-review-card-product {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.agr-review-card-product .agr-review-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f0f0f;
    text-decoration: none;
    line-height: 1.3;
    word-break: break-word;
}

.agr-review-card-product .agr-review-product-name:hover,
.agr-review-card-product .agr-review-product-name:focus {
    color: var(--agr-accent);
    text-decoration: underline;
}

.agr-review-card-product .agr-review-manufacturer {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.agr-review-card-product .agr-review-manufacturer:hover,
.agr-review-card-product .agr-review-manufacturer:focus {
    color: #0f0f0f;
    text-decoration: underline;
}

.agr-review-card-product .agr-review-pole {
    display: none;
}

.agr-review-card-rating {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}

.agr-review-card-rating .agr-review-stars .agr-star--filled {
    color: var(--agr-accent);
}

.agr-review-card-rating .agr-review-stars .agr-star--empty {
    color: #dde1e3;
}

.agr-review-card-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font-size: 13px;
    color: #353535;
    margin-top: 2px;
}

.agr-review-card-author-row .agr-review-author {
    font-weight: 600;
    color: #0f0f0f;
}

.agr-review-card-author-row .agr-review-author::after {
    content: '·';
    margin-left: 12px;
    color: #b0b6bb;
    font-weight: 400;
}

.agr-review-card-author-row .agr-review-date {
    color: #777;
}

.agr-review-card-author-row .agr-review-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: transparent;
    color: #0f8a3a;
    border: 1px solid #0f8a3a;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agr-review-card .agr-review-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f0f0f;
    margin: 4px 0 0;
    line-height: 1.35;
}

.agr-review-card .agr-review-content--clamped {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.55;
    color: #353535;
    margin: 0;
}

.agr-review-card .agr-review-content-empty {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin: 0;
}

.agr-review-card .agr-merchant-reply {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f6f7f8;
    border-left: 3px solid var(--agr-accent);
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #353535;
}

.agr-review-card .agr-merchant-reply-title {
    font-weight: 600;
    color: var(--agr-accent);
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agr-review-card .agr-merchant-reply-content {
    line-height: 1.55;
    word-break: break-word;
}

.agr-reviews-page .agr-pagination {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .agr-review-grid-item {
        padding: 18px 0;
    }

    .agr-review-card {
        gap: 14px;
    }

    .agr-review-card-media {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }

    .agr-review-card-top {
        gap: 8px;
    }

    .agr-review-card-product .agr-review-product-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .agr-review-grid-item {
        padding: 16px 0;
    }

    .agr-review-card {
        gap: 12px;
    }

    .agr-review-card-media {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border-radius: 4px;
    }

    .agr-review-card-top {
        flex-wrap: wrap;
    }

    .agr-review-card-rating {
        font-size: 14px;
        align-self: flex-start;
    }

    .agr-review-card-author-row .agr-review-author::after {
        content: '';
        margin-left: 0;
    }
}

/* ----------------------------------------------------------------------------
 * Lot 12d — rating histogram + facet filters on /reviews
 * Rendered inside .agr-listing-toolbar above the review list (reviewslisting.tpl).
 * Histogram rows aligned on Figma AGR canonical palette (#0f0f0f/#353535/#dde1e3).
 * Facet pills borrow the amaranth accent already used elsewhere in the module.
 * -------------------------------------------------------------------------- */

.agr-listing-toolbar {
  margin: 24px 0 16px;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #dde1e3;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agr-histogram {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.agr-histogram-row {
  display: grid;
  grid-template-columns: 56px 1fr 48px;
  align-items: center;
  gap: 12px;
}

.agr-histogram-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #353535;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-size: 13px;
  font-weight: 600;
}

.agr-histogram-label:hover,
.agr-histogram-label:focus {
  background: #f1ece9;
  color: #0f0f0f;
  text-decoration: none;
}

.agr-histogram-label--active {
  background: var(--as-amaranth, #d32f4d);
  color: #fff;
}

.agr-histogram-label--active:hover,
.agr-histogram-label--active:focus {
  background: var(--as-amaranth-dark, #b02540);
  color: #fff;
}

.agr-histogram-star {
  color: #f5b700;
  font-size: 13px;
  line-height: 1;
}

.agr-histogram-label--active .agr-histogram-star {
  color: #ffe26a;
}

.agr-histogram-star-count {
  font-size: 13px;
  line-height: 1;
}

.agr-histogram-bar {
  display: block;
  height: 8px;
  background: #dde1e3;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.agr-histogram-fill {
  display: block;
  height: 100%;
  background: #f5b700;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.agr-histogram-count {
  font-size: 13px;
  color: #353535;
  text-align: right;
  line-height: 1;
}

.agr-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.agr-filter-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.agr-filter-sort-label {
  font-size: 13px;
  font-weight: 600;
  color: #353535;
}

.agr-filter-sort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agr-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #dde1e3;
  border-radius: 999px;
  background: #fff;
  color: #353535;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.agr-filter-pill:hover,
.agr-filter-pill:focus {
  background: #f1ece9;
  border-color: #c3c8cb;
  color: #0f0f0f;
  text-decoration: none;
}

.agr-filter-pill--active {
  background: var(--as-amaranth, #d32f4d);
  border-color: var(--as-amaranth, #d32f4d);
  color: #fff;
}

.agr-filter-pill--active:hover,
.agr-filter-pill--active:focus {
  background: var(--as-amaranth-dark, #b02540);
  border-color: var(--as-amaranth-dark, #b02540);
  color: #fff;
}

.agr-filter-reset {
  font-size: 13px;
  color: #353535;
  text-decoration: underline;
}

.agr-filter-reset:hover,
.agr-filter-reset:focus {
  color: #0f0f0f;
}

.agr-filter-summary {
  margin: 0;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #dde1e3;
  border-radius: 6px;
  font-size: 13px;
  color: #353535;
}

.agr-filter-summary strong {
  color: #0f0f0f;
}

.agr-filter-summary-count {
  color: #6a6f72;
}

.agr-no-reviews--filtered {
  padding: 16px 20px;
  background: #fafafa;
  border: 1px dashed #dde1e3;
  border-radius: 6px;
  color: #353535;
}

.agr-no-reviews--filtered a {
  margin-left: 8px;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .agr-listing-toolbar {
    padding: 16px;
    gap: 14px;
  }

  .agr-histogram-row {
    grid-template-columns: 48px 1fr 40px;
    gap: 10px;
  }

  .agr-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .agr-filter-sort {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .agr-filter-reset {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .agr-listing-toolbar {
    padding: 14px;
  }

  .agr-histogram-row {
    grid-template-columns: 44px 1fr 36px;
    gap: 8px;
  }

  .agr-filter-pill {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* =========================================================
   Lot 12g — /reviews/my brand consistency (issue M, HIGH)
   Scope-override classic theme default cyan on 4 CTAs inside
   .agr-myreviews-page to AlterSmoke amaranth charter —
   extension Lot 11 which only covered `a` + submit form
   wrappers. Buttons now aligned: btn-primary (Poster mon
   commentaire), btn-outline-primary (Modifier mon avis),
   btn-link (Ajouter un commentaire, Fermer).
   Module-scoped (does not touch theme/custom.css).
   Revert = remove this block.
   ========================================================= */

.agr-myreviews-page .btn.btn-primary,
.agr-myreviews-page .btn.btn-primary:visited {
    background-color: var(--agr-accent);
    border-color: var(--agr-accent);
    color: #fff;
}
.agr-myreviews-page .btn.btn-primary:hover,
.agr-myreviews-page .btn.btn-primary:focus,
.agr-myreviews-page .btn.btn-primary:active {
    background-color: #c41c3d;
    border-color: #c41c3d;
    color: #fff;
}

.agr-myreviews-page .btn.btn-outline-primary,
.agr-myreviews-page .btn.btn-outline-primary:visited {
    border-color: var(--agr-accent);
    color: var(--agr-accent);
    background-color: transparent;
}
.agr-myreviews-page .btn.btn-outline-primary:hover,
.agr-myreviews-page .btn.btn-outline-primary:focus,
.agr-myreviews-page .btn.btn-outline-primary:active {
    background-color: var(--agr-accent);
    border-color: var(--agr-accent);
    color: #fff;
}

.agr-myreviews-page .btn.btn-link,
.agr-myreviews-page .btn.btn-link:visited {
    color: var(--agr-accent);
}
.agr-myreviews-page .btn.btn-link:hover,
.agr-myreviews-page .btn.btn-link:focus {
    color: #c41c3d;
    text-decoration: underline;
}

/* =========================================================
   LOT 14a — DESIGN TOKENS "MODERNE" (dark palette)
   Handoff: docs/agr-dev/LOT13_DESIGN_HANDOFF.md §3
   Module-scoped tokens introduced for the upcoming dark hero
   on AllB / HubB / HomeBlocB / ProdSliderB (Lots 14-16).
   No selector here consumes these yet — 0 user-visible change.
   Aliases preserve existing AGR identity (amaranth red kept).
   Revert = remove this block.
   ========================================================= */

:root {
    /* Brand red (aliased on existing AGR accent) */
    --as-red: var(--agr-accent);
    --as-red-600: #c41c3d;

    /* Dark ink scale (NEW — dark hero surfaces) */
    --as-ink: #111111;
    --as-ink-2: #1A1A1A;
    --as-ink-3: #2A2A2A;

    /* Foreground on dark (NEW — AAA contrast target) */
    --as-fg-on-dark-1: #FFFFFF;
    --as-fg-on-dark-2: #B8B6BE;
    --as-fg-on-dark-3: #6E6C74;

    /* Neutrals (aligned on existing AGR literals) */
    --as-hairline: #dde1e3;
    --as-surface-muted: #f6f7f8;

    /* Status (aligned on Lot 12 arbitrage — verified pill) */
    --as-success: #0f8a3a;
    --as-warning: #F2B63E;
}

/* =========================================================
   LOT 14d — AllA Classique refonte (/reviews global mode)
   Scope: .agr-alla-page (added only when no product filter).
   Layout: light header + stats row (score / histogram / CTA)
   then 2-col body (sidebar 180px + main list). Mobile-first.
   Consumes Lot 14a tokens (--as-red, --as-ink*, --as-hairline,
   --as-surface-muted, --as-warning). Star glyphs everywhere
   (D6 override of handoff heart_fill).
   Revert = remove this block + the .agr-alla-page class in tpl.
   ========================================================= */

.agr-reviews-page.agr-alla-page {
    max-width: 1180px;
    background: transparent;
    padding: 0 16px;
    margin: 32px auto 56px;
    border-radius: 0;
}

@media (min-width: 768px) {
    .agr-reviews-page.agr-alla-page {
        padding: 0 24px;
        margin-top: 40px;
    }
}

/* ----- Header (light) ----- */
.agr-alla-page .agr-alla-header {
    margin: 0 0 28px;
}

.agr-alla-page .agr-alla-eyebrow {
    color: var(--as-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.agr-alla-page .agr-alla-title {
    color: var(--as-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 10px;
}

@media (min-width: 768px) {
    .agr-alla-page .agr-alla-title {
        font-size: 40px;
    }
}

.agr-alla-page .agr-alla-subtitle {
    color: #5a5c62;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    max-width: 720px;
}

.agr-alla-page .agr-alla-hairline {
    border: 0;
    border-top: 1px solid var(--as-hairline);
    margin: 24px 0 20px;
}

/* ----- Stats row (score | histogram | CTA) ----- */
.agr-alla-page .agr-alla-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 768px) {
    .agr-alla-page .agr-alla-stats {
        grid-template-columns: minmax(180px, 220px) 1fr minmax(220px, 260px);
        gap: 32px;
    }
}

/* Score block */
.agr-alla-page .agr-alla-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.agr-alla-page .agr-alla-score-line {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: var(--as-ink);
}

.agr-alla-page .agr-alla-score-value {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.agr-alla-page .agr-alla-score-unit {
    font-size: 18px;
    font-weight: 500;
    color: #5a5c62;
}

.agr-alla-page .agr-alla-score-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 20px;
    line-height: 1;
}

.agr-alla-page .agr-alla-score-stars .agr-star--filled {
    color: var(--as-red);
}

.agr-alla-page .agr-alla-score-stars .agr-star--empty {
    color: #d3d5da;
}

.agr-alla-page .agr-alla-score-meta {
    color: #5a5c62;
    font-size: 13px;
    margin: 2px 0 0;
}

/* Histogram */
.agr-alla-page .agr-alla-histogram {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.agr-alla-page .agr-alla-hist-row {
    display: grid;
    grid-template-columns: 40px 1fr 36px 36px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--as-ink-2);
}

.agr-alla-page .agr-alla-hist-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--as-ink-2);
    font-weight: 500;
}

.agr-alla-page .agr-alla-hist-n {
    font-variant-numeric: tabular-nums;
}

.agr-alla-page .agr-alla-hist-glyph {
    color: var(--as-red);
    font-size: 14px;
    line-height: 1;
}

.agr-alla-page .agr-alla-hist-bar {
    position: relative;
    display: block;
    height: 8px;
    background: var(--as-surface-muted);
    border-radius: 4px;
    overflow: hidden;
    min-width: 0;
}

.agr-alla-page .agr-alla-hist-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--as-warning);
    border-radius: 4px;
    transition: width .2s ease-out;
}

.agr-alla-page .agr-alla-hist-pct {
    color: #5a5c62;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.agr-alla-page .agr-alla-hist-count {
    color: #8a8c92;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* CTA block */
.agr-alla-page .agr-alla-cta-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.agr-alla-page .agr-alla-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--as-red);
    border-color: var(--as-red);
    color: #fff;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .15s ease-out, border-color .15s ease-out;
}

.agr-alla-page .agr-alla-cta:hover,
.agr-alla-page .agr-alla-cta:focus {
    background: var(--as-red-600);
    border-color: var(--as-red-600);
    color: #fff;
    text-decoration: none;
}

.agr-alla-page .agr-alla-cta-icon {
    font-size: 15px;
    line-height: 1;
}

.agr-alla-page .agr-alla-cta-note {
    color: #8a8c92;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* ----- Body 2-col (sidebar + main) ----- */
.agr-alla-page .agr-alla-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 8px;
}

@media (min-width: 992px) {
    .agr-alla-page .agr-alla-body {
        grid-template-columns: 180px 1fr;
        gap: 40px;
    }
}

/* Sidebar */
.agr-alla-page .agr-alla-sidebar {
    min-width: 0;
}

@media (min-width: 992px) {
    .agr-alla-page .agr-alla-sidebar {
        position: sticky;
        top: 24px;
        align-self: start;
    }
}

.agr-alla-page .agr-alla-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}

.agr-alla-page .agr-alla-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agr-alla-page .agr-alla-filter-heading {
    color: var(--as-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 4px;
    padding: 0 0 6px;
    border-bottom: 1px solid var(--as-hairline);
}

.agr-alla-page .agr-alla-filter-check,
.agr-alla-page .agr-alla-filter-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--as-ink-2);
    cursor: pointer;
    margin: 0;
    padding: 2px 0;
    line-height: 1.3;
}

.agr-alla-page .agr-alla-filter-check input,
.agr-alla-page .agr-alla-filter-radio input {
    accent-color: var(--as-red);
    margin: 0;
    flex-shrink: 0;
}

.agr-alla-page .agr-alla-filter-reset-wrap {
    margin: 4px 0 0;
}

.agr-alla-page .agr-alla-filter-reset {
    color: var(--as-red);
    font-size: 13px;
    text-decoration: underline;
}

.agr-alla-page .agr-alla-filter-reset:hover,
.agr-alla-page .agr-alla-filter-reset:focus {
    color: var(--as-red-600);
}

/* Main */
.agr-alla-page .agr-alla-main {
    min-width: 0;
}

.agr-alla-page .agr-alla-count {
    color: var(--as-ink);
    font-size: 15px;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--as-hairline);
}

.agr-alla-page .agr-alla-count strong {
    font-weight: 700;
}

/* ----- Response card accent (border-left red) ----- */
.agr-alla-page .agr-merchant-reply--public {
    border-left: 3px solid var(--as-red);
    padding-left: 12px;
}

/* ----- Mobile tweaks ----- */
@media (max-width: 480px) {
    .agr-alla-page .agr-alla-title {
        font-size: 26px;
    }

    .agr-alla-page .agr-alla-score-value {
        font-size: 36px;
    }

    .agr-alla-page .agr-alla-hist-row {
        grid-template-columns: 36px 1fr 32px 32px;
        gap: 8px;
        font-size: 12px;
    }
}

/* ----------------------------------------------------------------------------
 * Lot 16 — HomeBloc Classique light refonte (unified product+site HomeBloc)
 *
 * Maquette: docs/screenshotsglobalreviews/avishomepagenew.png
 * Scope:    .agr-homeblock-b (supersedes .agr-home-block--products / --site).
 * Tokens:   Lot 14a (--as-red, --as-ink, --as-ink-*, --as-hairline).
 * Rollback: remove this block (unified home block TPL refactored, no
 *           leftover selectors from earlier homepage lots remain).
 * ---------------------------------------------------------------------------- */

.agr-homeblock-b {
    background: var(--as-grey-100, #f4f4f7);
    padding: clamp(40px, 5vw, 56px) var(--as-container-home-pad, clamp(16px, 3.5vw, 64px));
    margin: 0;
}

.agr-homeblock-b .agr-homeb-inner {
    max-width: var(--as-container-home-width, min(100%, 1900px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
}

.agr-homeblock-b .agr-homeb-inner--empty {
    grid-template-columns: 1fr;
    text-align: center;
}

/* ----- Intro column (left) ----- */

.agr-homeblock-b .agr-homeb-intro {
    min-width: 0;
}

.agr-homeblock-b .agr-homeb-eyebrow {
    color: var(--as-red);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 18px;
}

.agr-homeblock-b .agr-homeb-title {
    font-size: 52px;
    line-height: 1.02;
    font-weight: 800;
    color: var(--as-ink);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.agr-homeblock-b .agr-homeb-rating {
    display: block;
    color: var(--as-red);
}

.agr-homeblock-b .agr-homeb-countline {
    display: block;
    color: var(--as-ink);
}

.agr-homeblock-b .agr-homeb-subtitle {
    color: var(--as-ink-3);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 28px;
    max-width: 300px;
}

/* ----- Histogram ----- */

.agr-homeblock-b .agr-homeb-histogram {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 10px;
}

.agr-homeblock-b .agr-homeb-histo-row {
    display: grid;
    grid-template-columns: 16px 1fr 40px 40px;
    gap: 14px;
    align-items: center;
}

.agr-homeblock-b .agr-homeb-histo-label {
    font-size: 14px;
    color: var(--as-ink);
    font-weight: 500;
    text-align: center;
}

.agr-homeblock-b .agr-homeb-histo-track {
    display: block;
    height: 6px;
    background: #e5e5ec;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.agr-homeblock-b .agr-homeb-histo-fill {
    display: block;
    height: 100%;
    background: var(--as-red);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.agr-homeblock-b .agr-homeb-histo-pct {
    font-size: 13px;
    color: var(--as-ink-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.agr-homeblock-b .agr-homeb-histo-count {
    font-size: 13px;
    color: var(--as-ink-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ----- CTA ----- */

.agr-homeblock-b .agr-homeb-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--as-red);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.18s ease;
    border: none;
}

.agr-homeblock-b .agr-homeb-cta:hover,
.agr-homeblock-b .agr-homeb-cta:focus-visible {
    background: var(--as-red-600);
    color: #fff;
    text-decoration: none;
}

.agr-homeblock-b .agr-homeb-cta-arrow {
    display: inline-flex;
}

.agr-homeblock-b .agr-homeb-cta-arrow svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* ----- Carousel column (right) ----- */

.agr-homeblock-b .agr-homeb-carousel-wrap {
    min-width: 0;
}

.agr-homeblock-b .agr-homeb-carousel {
    position: relative;
}

.agr-homeblock-b .agr-homeb-carousel .ac-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr 1fr;
    grid-auto-columns: calc(50% - 12px);
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 4px 12px;
    margin: -4px -4px 0;
    list-style: none;
}

.agr-homeblock-b .agr-homeb-carousel .ac-track::-webkit-scrollbar {
    display: none;
}

.agr-homeblock-b .agr-homeb-carousel .ac-item {
    scroll-snap-align: start;
    list-style: none;
    min-width: 0;
}

/* ----- Card ----- */

.agr-homeblock-b .agr-homeb-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 20px;
    box-shadow: 0 1px 3px rgba(15, 15, 15, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 180px;
    position: relative;
}

.agr-homeblock-b .agr-homeb-card-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    color: var(--as-red);
    line-height: .9;
    position: absolute;
    top: 10px;
    left: 22px;
    pointer-events: none;
    user-select: none;
}

.agr-homeblock-b .agr-homeb-card-body {
    margin: 28px 0 0;
    color: var(--as-ink);
    font-size: 14.5px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.agr-homeblock-b .agr-homeb-card-footer {
    border-top: 1px solid var(--as-hairline);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.agr-homeblock-b .agr-homeb-card-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.agr-homeblock-b .agr-homeb-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--as-ink);
}

.agr-homeblock-b .agr-homeb-card-target {
    font-size: 13px;
    color: var(--as-red);
    text-decoration: none;
}

.agr-homeblock-b .agr-homeb-card-target[href]:hover {
    text-decoration: underline;
}

.agr-homeblock-b .agr-homeb-card-brand {
    font-size: 10px;
    color: var(--as-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-top: 2px;
}

.agr-homeblock-b .agr-homeb-card-stars {
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 1px;
    line-height: 1;
}

.agr-homeblock-b .agr-homeb-card-stars .agr-star--filled {
    color: var(--as-red);
}

.agr-homeblock-b .agr-homeb-card-stars .agr-star--empty {
    color: var(--as-hairline);
}

/* ----- Nav buttons ----- */

.agr-homeblock-b .agr-homeb-carousel .ac-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.agr-homeblock-b .agr-homeb-carousel .ac-btn svg {
    display: block;
}

/* ----- Empty state ----- */

.agr-homeblock-b--empty {
    padding: 40px 24px;
}

.agr-homeblock-b--empty .agr-no-reviews {
    margin: 0 0 16px;
    color: var(--as-ink-3);
    font-size: 15px;
}

/* ----- Responsive ----- */

@media (max-width: 991px) {
    .agr-homeblock-b {
        padding: 40px 24px;
    }
    .agr-homeblock-b .agr-homeb-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .agr-homeblock-b .agr-homeb-intro {
        max-width: 100%;
    }
    .agr-homeblock-b .agr-homeb-subtitle {
        max-width: 100%;
    }
    .agr-homeblock-b .agr-homeb-title {
        font-size: 44px;
    }
    .agr-homeblock-b .agr-homeb-carousel .ac-track {
        grid-template-rows: 1fr;
        grid-auto-columns: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .agr-homeblock-b {
        padding: 32px 16px;
    }
    .agr-homeblock-b .agr-homeb-title {
        font-size: 36px;
    }
    .agr-homeblock-b .agr-homeb-carousel .ac-track {
        grid-auto-columns: 82%;
        gap: 16px;
    }
    .agr-homeblock-b .agr-homeb-card {
        padding: 22px 18px 18px;
    }
}

@media (max-width: 480px) {
    .agr-homeblock-b .agr-homeb-carousel .ac-track {
        grid-auto-columns: 90%;
    }
    .agr-homeblock-b .agr-homeb-title {
        font-size: 32px;
    }
    .agr-homeblock-b .agr-homeb-histogram {
        gap: 8px;
    }
    .agr-homeblock-b .agr-homeb-histo-row {
        grid-template-columns: 14px 1fr 34px 34px;
        gap: 10px;
    }
}

/* =====================================================================
   Lot 15 — HubB Classique + gamification
   Scope: .agr-hubb-page (Hub /compte/avis ex /reviews/my)
===================================================================== */

.agr-hubb-page {
    background: #f4f4f7;
    margin: 0 calc(-1 * var(--bs-gutter-x, 12px));
    padding: 32px clamp(16px, 4vw, 64px) 64px;
}
.agr-hubb-page > * {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.agr-hubb-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}
.agr-hubb-eyebrow {
    color: var(--as-ink-3, #6b6e76);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 6px;
    font-weight: 600;
}
.agr-hubb-title {
    color: var(--as-ink, #0f0f0f);
    font-size: 36px;
    line-height: 1.1;
    font-weight: 600;
    margin: 0;
}
.agr-hubb-hero-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.agr-hubb-avatar {
    width: 44px;
    height: 44px;
    background: var(--as-ink, #0f0f0f);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    flex: 0 0 44px;
}
.agr-hubb-user-meta {
    line-height: 1.3;
}
.agr-hubb-user-name {
    margin: 0;
    color: var(--as-ink, #0f0f0f);
    font-weight: 600;
    font-size: 14px;
}
.agr-hubb-user-tier {
    margin: 0;
    color: var(--as-red, #e62249);
    font-size: 13px;
    font-weight: 500;
}

.agr-hubb-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.agr-hubb-tile {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.agr-hubb-tile-eyebrow {
    color: var(--as-ink-3, #6b6e76);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 6px;
    font-weight: 600;
}
.agr-hubb-tile-count {
    color: var(--as-ink, #0f0f0f);
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    margin: 0 0 6px;
}
.agr-hubb-tile-caption {
    color: var(--as-ink-3, #6b6e76);
    font-size: 12px;
    margin: 0;
}
.agr-hubb-tile--badge {
    background: var(--as-ink, #0f0f0f);
    color: #fff;
}
.agr-hubb-tile--badge .agr-hubb-tile-eyebrow {
    color: var(--as-fg-on-dark-3, #B8B6BE);
    opacity: 0.9;
}
.agr-hubb-tile--badge .agr-hubb-tile-caption {
    color: var(--as-fg-on-dark-3, #B8B6BE);
}
.agr-hubb-tile-badge-label {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
}
.agr-hubb-tile-trophy {
    display: inline-flex;
    align-items: center;
    color: var(--as-warning, #F2B63E);
}
.agr-hubb-tile-trophy svg {
    display: block;
}
.agr-hubb-tile-badge-text {
    color: #fff;
}

.agr-hubb-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--as-hairline, #dde1e3);
    margin-bottom: 24px;
    padding: 0;
}
.agr-hubb-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 0;
    margin: 0 0 -1px;
    color: var(--as-ink-3, #6b6e76);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s;
}
.agr-hubb-tab:hover {
    color: var(--as-ink, #0f0f0f);
}
.agr-hubb-tab.is-active {
    color: var(--as-ink, #0f0f0f);
    border-bottom-color: var(--as-red, #e62249);
}
.agr-hubb-tab-pill {
    background: var(--as-surface-muted, #f6f7f8);
    color: var(--as-ink, #0f0f0f);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.agr-hubb-tab-pill--accent {
    background: var(--as-red, #e62249);
    color: #fff;
}

.agr-hubb-panel {
    margin-bottom: 32px;
}
.agr-hubb-empty {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    color: var(--as-ink-3, #6b6e76);
    text-align: center;
    margin: 0;
}
.agr-hubb-section-title {
    font-size: 18px;
    color: var(--as-ink, #0f0f0f);
    font-weight: 600;
    margin: 32px 0 16px;
}

.agr-hubb-todo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.agr-hubb-todo-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
}
.agr-hubb-todo-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.agr-hubb-todo-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--as-surface-muted, #f6f7f8);
    display: block;
}
.agr-hubb-todo-img,
.agr-hubb-todo-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.agr-hubb-todo-meta {
    flex: 1 1 auto;
    min-width: 0;
}
.agr-hubb-todo-brand {
    color: var(--as-red, #e62249);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 4px;
    font-weight: 600;
}
.agr-hubb-todo-name {
    color: var(--as-ink, #0f0f0f);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 4px;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.agr-hubb-todo-name:hover,
.agr-hubb-todo-name:focus {
    color: var(--as-red, #e62249);
    text-decoration: none;
}
.agr-hubb-todo-date {
    color: var(--as-ink-3, #6b6e76);
    font-size: 12px;
    margin: 0;
}
.agr-hubb-todo-rating {
    background: var(--as-surface-muted, #f6f7f8);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.agr-hubb-todo-rating-label {
    color: var(--as-ink-3, #6b6e76);
    font-size: 13px;
    font-weight: 500;
}
.agr-hubb-todo-rating .agr-rating-stars {
    display: inline-flex;
    gap: 2px;
}
.agr-hubb-todo-rating .agr-rating-star {
    background: none;
    border: 0;
    padding: 0 2px;
    cursor: pointer;
    font-size: 18px;
    color: rgba(15, 15, 15, 0.18);
    transition: color 0.1s;
    line-height: 1;
}
.agr-hubb-todo-rating .agr-rating-star:hover,
.agr-hubb-todo-rating .agr-rating-star:focus {
    color: var(--as-red, #e62249);
    outline: none;
}
.agr-hubb-todo-rating .agr-rating-star.is-active {
    color: var(--as-red, #e62249);
}
.agr-hubb-todo-cta {
    background: var(--as-red, #e62249);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: background-color 0.15s, color 0.15s;
}
.agr-hubb-todo-cta:hover,
.agr-hubb-todo-cta:focus {
    background: var(--as-red-600, #c41c3d);
    color: #fff;
    text-decoration: none;
}

.agr-hubb-pending-grid,
.agr-hubb-published-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 991px) {
    .agr-hubb-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .agr-hubb-todo-grid,
    .agr-hubb-pending-grid,
    .agr-hubb-published-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .agr-hubb-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .agr-hubb-page {
        padding: 20px 16px 40px;
    }
    .agr-hubb-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .agr-hubb-tabs {
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .agr-hubb-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .agr-hubb-tile {
        padding: 16px 18px;
        min-height: auto;
    }
    .agr-hubb-tile-count {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .agr-hubb-tiles {
        grid-template-columns: 1fr;
    }
    .agr-hubb-todo-grid,
    .agr-hubb-pending-grid,
    .agr-hubb-published-grid {
        grid-template-columns: 1fr;
    }
    .agr-hubb-title {
        font-size: 26px;
    }
    .agr-hubb-tile-count {
        font-size: 28px;
    }
    .agr-hubb-todo-thumb {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }
    .agr-hubb-todo-name {
        font-size: 15px;
    }
}

/* =====================================================================
   Lot R — Mobile responsive consolidation (2026-04-24)
   Scope: targeted fixes on the 4 post-Lot-16 surfaces after mobile audit.
   - R-1: AllA /avis-clients stats grid histogram bar collapsed to 0px
          between viewport 768-991px (middle column in 3-col grid was
          squeezed under the min-width:768 breakpoint). Stats grid now
          stays 1-col until 992px (aligned with sidebar breakpoint),
          giving the histogram enough room to render legibly.
   - R-2: PDP login CTA "Connectez-vous pour rédiger un avis" overflowed
          its flex parent at mobile (374px CTA > 345px container) due to
          white-space:nowrap inherited from the classic theme .btn.
   Revert = remove this block.
===================================================================== */

/* R-1 — AllA stats grid: keep 1-col until sidebar breakpoint (992), so the
   middle histogram column never gets squeezed below legible width. */
@media (max-width: 991.98px) {
    .agr-alla-page .agr-alla-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* R-2 — PDP login CTA wraps instead of overflowing */
.agr-login-cta.btn.btn-primary {
    white-space: normal;
    max-width: 100%;
    word-break: break-word;
}

/* =====================================================================
   Lot S — HubB full-width desktop + HomeBlocB card media/flags/decli
   Three fixes bundled:
     S-1  Override legacy .agr-reviews-page 820px cap on HubB wrapper
          (pattern mirrors .agr-reviews-page.agr-alla-page line 2331).
     S-2  HomeBlocB cards gain a media column (product cover, flags,
          combination label) when the review targets a product and
          enrichment data is present.
   Revert = remove this block.
===================================================================== */

/* S-1 */
.agr-reviews-page.agr-hubb-page {
    max-width: none;
}

/* S-2a — card layout when media column is present.
   Prefix .agr-homeblock-b to match the specificity of Lot 16
   (`.agr-homeblock-b .agr-homeb-card { display: flex }` line 2888). */
.agr-homeblock-b .agr-homeb-card--with-media {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-areas:
        "quote   quote"
        "media   body"
        "footer  footer";
    column-gap: 16px;
    row-gap: 12px;
    flex-direction: unset;
}
.agr-homeblock-b .agr-homeb-card--with-media .agr-homeb-card-quote  { grid-area: quote; }
.agr-homeblock-b .agr-homeb-card--with-media .agr-homeb-card-media  { grid-area: media; }
.agr-homeblock-b .agr-homeb-card--with-media .agr-homeb-card-body   { grid-area: body; }
.agr-homeblock-b .agr-homeb-card--with-media .agr-homeb-card-footer { grid-area: footer; }

.agr-homeblock-b .agr-homeb-card-media {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.agr-homeblock-b .agr-homeb-card-media-link {
    display: block;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--as-hairline, #dde1e3);
}
.agr-homeblock-b .agr-homeb-card-img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #fff;
}

/* S-2b — flags (new / promo) */
.agr-homeblock-b .agr-homeb-card-flags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.agr-homeblock-b .agr-homeb-card-flag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 3px;
    line-height: 1.2;
}
.agr-homeblock-b .agr-homeb-card-flag--new {
    background: var(--as-ink, #0f0f0f);
    color: #fff;
}
.agr-homeblock-b .agr-homeb-card-flag--promo {
    background: var(--as-red, var(--agr-accent, #e62249));
    color: #fff;
}

/* S-2c — combination label */
.agr-homeblock-b .agr-homeb-card-decli {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--as-ink-3, #6b6e76);
    letter-spacing: .02em;
}

/* S-2d — mobile : smaller media thumbnail */
@media (max-width: 767px) {
    .agr-homeblock-b .agr-homeb-card--with-media {
        grid-template-columns: 56px 1fr;
        column-gap: 12px;
    }
    .agr-homeblock-b .agr-homeb-card-img,
    .agr-homeblock-b .agr-homeb-card-media-link {
        width: 56px;
        height: 56px;
    }
}

/* =====================================================================
   Lot T — Visual refonte : forms (V) + popup (W)
   Aligns the review-input surfaces with the Lot 14d/15/16 premium look
   (tokens Lot 14a, radius 12-14, shadow léger, amaranth accents).
   Mails (X) refonte: see `mails/fr/alterglobalreviews_request_*.html`.
   Revert = remove this block (+ mail HTML revert via git).
===================================================================== */

/* -------- T-V — Forms PDP + Hub ------------------------------------- */

/* T-V-1 — PDP submit form wrapper (rédiger un avis) */
.agr-product-review-form-wrapper {
    background: #fff;
    border: 1px solid var(--as-hairline, #dde1e3);
    border-radius: 14px;
    padding: 28px 28px 24px;
    margin-top: 24px;
    box-shadow: 0 1px 3px rgba(15, 15, 15, 0.05);
}
.agr-product-review-form-wrapper .agr-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--as-ink, #0f0f0f);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--as-hairline, #dde1e3);
    letter-spacing: -.01em;
}

/* T-V-2 — Pending edit form wrapper (inside the "Mon avis" rail) */
.agr-pending-edit-wrapper .agr-review-form,
.agr-pending-edit-wrapper .agr-review-form--edit {
    background: var(--as-surface-muted, #f6f7f8);
    border: 1px solid var(--as-hairline, #dde1e3);
    border-radius: 12px;
    padding: 20px 20px 16px;
    margin-top: 12px;
}

/* T-V-3 — Form labels premium */
.agr-review-form .control-label,
.agr-review-form label.control-label,
.agr-product-review-form-wrapper .agr-review-form label,
.agr-product-review-form-wrapper .agr-review-form .control-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--as-ink-3, #6b6e76);
    margin-bottom: 8px;
    display: block;
}
.agr-review-form .control-label sup,
.agr-product-review-form-wrapper .agr-review-form label sup {
    color: var(--as-red, var(--agr-accent, #e62249));
    font-weight: 700;
    margin-left: 2px;
}

/* T-V-4 — Inputs premium (textarea + text inputs) */
.agr-review-form textarea.form-control,
.agr-review-form input.form-control,
.agr-product-review-form-wrapper .agr-review-form textarea,
.agr-product-review-form-wrapper .agr-review-form input[type="text"],
.agr-myreviews-page textarea.js-agr-my-comment-text {
    background: #fff;
    border: 1px solid var(--as-hairline, #dde1e3);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--as-ink, #0f0f0f);
    transition: border-color 120ms ease, box-shadow 120ms ease;
    width: 100%;
    box-shadow: none;
}
.agr-review-form textarea.form-control {
    min-height: 112px;
    resize: vertical;
}
.agr-review-form textarea.form-control:hover,
.agr-review-form input.form-control:hover,
.agr-myreviews-page textarea.js-agr-my-comment-text:hover {
    border-color: var(--as-ink-3, #6b6e76);
}
.agr-review-form textarea.form-control:focus,
.agr-review-form input.form-control:focus,
.agr-product-review-form-wrapper .agr-review-form textarea:focus,
.agr-product-review-form-wrapper .agr-review-form input[type="text"]:focus,
.agr-myreviews-page textarea.js-agr-my-comment-text:focus {
    outline: none;
    border-color: var(--as-red, var(--agr-accent, #e62249));
    box-shadow: 0 0 0 3px rgba(230, 34, 73, 0.12);
}
.agr-review-form textarea.form-control::placeholder,
.agr-myreviews-page textarea.js-agr-my-comment-text::placeholder {
    color: var(--as-ink-3, #6b6e76);
    opacity: .7;
}

/* T-V-5 — Rating stars input premium */
.agr-review-form .agr-rating-stars,
.agr-product-review-form-wrapper .agr-rating-stars,
.agr-pending-edit-wrapper .agr-rating-stars {
    display: inline-flex;
    gap: 4px;
    padding: 6px 0;
}
.agr-review-form .agr-rating-star,
.agr-product-review-form-wrapper .agr-rating-star,
.agr-pending-edit-wrapper .agr-rating-star {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 4px;
    font-size: 28px;
    line-height: 1;
    color: var(--as-hairline, #dde1e3);
    cursor: pointer;
    transition: color 120ms ease, transform 120ms ease;
}
.agr-review-form .agr-rating-star:hover,
.agr-product-review-form-wrapper .agr-rating-star:hover,
.agr-pending-edit-wrapper .agr-rating-star:hover,
.agr-review-form .agr-rating-star.is-active,
.agr-product-review-form-wrapper .agr-rating-star.is-active,
.agr-pending-edit-wrapper .agr-rating-star.is-active {
    color: var(--as-red, var(--agr-accent, #e62249));
}
.agr-review-form .agr-rating-star:focus-visible,
.agr-product-review-form-wrapper .agr-rating-star:focus-visible,
.agr-pending-edit-wrapper .agr-rating-star:focus-visible {
    outline: 2px solid var(--as-red, var(--agr-accent, #e62249));
    outline-offset: 2px;
    border-radius: 4px;
}

/* T-V-6 — Submit buttons already amaranth via Lot 11 ; polish radius + shadow */
.agr-product-review-form-wrapper .btn.btn-primary,
.agr-product-review-form .btn.btn-primary,
.agr-pending-edit-actions .btn.btn-primary {
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    box-shadow: 0 1px 2px rgba(230, 34, 73, 0.2);
    transition: box-shadow 150ms ease, transform 150ms ease;
}
.agr-product-review-form-wrapper .btn.btn-primary:hover,
.agr-product-review-form .btn.btn-primary:hover,
.agr-pending-edit-actions .btn.btn-primary:hover {
    box-shadow: 0 2px 8px rgba(230, 34, 73, 0.3);
    transform: translateY(-1px);
}

/* T-V-7 — Action rows spacing */
.agr-pending-edit-actions,
.agr-product-review-form-wrapper .form-group:last-of-type {
    margin-top: 14px;
}

/* T-V-8 — Hub "à noter" card inline form polish */
.agr-hubb-todo-card .agr-mycard-comment-wrap {
    margin-top: 12px;
}
.agr-hubb-todo-card textarea.js-agr-my-comment-text {
    min-height: 72px;
}

/* T-V-9 — Mobile adjustments */
@media (max-width: 767px) {
    .agr-product-review-form-wrapper {
        padding: 20px 18px 18px;
    }
    .agr-product-review-form-wrapper .agr-form-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    .agr-review-form .agr-rating-star,
    .agr-product-review-form-wrapper .agr-rating-star,
    .agr-pending-edit-wrapper .agr-rating-star {
        font-size: 24px;
    }
}

/* -------- T-X — PDP onglet avis : en-tête + flux reveal (2026-06-02) ----- */

.agr-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--as-hairline, #dde1e3);
}
.agr-reviews-head__summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.agr-reviews-head__stars { display: inline-flex; gap: 1px; font-size: 18px; line-height: 1; }
.agr-reviews-head__score { font-size: 18px; font-weight: 700; color: var(--as-ink, #0f0f0f); }
.agr-reviews-head__count { font-size: 14px; color: var(--as-ink-3, #6b6e76); }
.agr-reviews-head__thanks { font-size: 14px; color: var(--as-ink-3, #6b6e76); }
.agr-reviews-head__actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Boutons premium réutilisables (avis) */
.agr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}
.agr-btn--primary {
    background: var(--as-red, var(--agr-accent, #e62249));
    color: #fff;
    box-shadow: 0 1px 2px rgba(230, 34, 73, 0.2);
}
.agr-btn--primary:hover {
    box-shadow: 0 2px 8px rgba(230, 34, 73, 0.3);
    transform: translateY(-1px);
    color: #fff;
}
/* Ghost = lien texte propre (pas de border grise inutile, cohérent site) */
.agr-btn--ghost {
    background: transparent;
    color: var(--as-ink, #0f0f0f);
    border-color: transparent;
    padding: 10px 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.agr-btn--ghost:hover {
    color: var(--as-red, var(--agr-accent, #e62249));
}

/* Form aligné à gauche (corrige un alignement droite hérité) */
.agr-product-review-form-wrapper,
.agr-product-review-form-wrapper .agr-review-form,
.agr-product-review-form-wrapper .form-group,
.agr-product-review-form-wrapper .agr-review-form-footer {
    text-align: left;
}

/* Reveal animé en place (le JS ajoute .is-open au [data-agr-form]) */
#agr-reviews [data-agr-form].is-open {
    display: block;
    animation: agr-form-reveal 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes agr-form-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .agr-reviews-head { flex-direction: column; align-items: flex-start; }
    .agr-reviews-head__actions { width: 100%; }
    .agr-reviews-head__actions .agr-btn { flex: 1 1 auto; }
}

/* -------- T-Y — PDP form avis : labels à gauche + compact (retour user 2026-06-02) -- */

/* Labels hérités right-aligned (theme classic .control-label) → forcés à gauche,
   alignés avec leurs champs (c'était LE désalignement « pas propre »). */
#product .agr-product-tab .agr-review-form .control-label,
#product .agr-product-tab .agr-review-form label,
#product .agr-product-tab .agr-review-form .help-block,
.agr-product-review-form-wrapper .agr-review-form .control-label,
.agr-product-review-form-wrapper .agr-review-form label,
.agr-product-review-form-wrapper .agr-review-form .help-block {
    text-align: left;
}

/* Form contraint (plus de sprawl pleine largeur ~960px) + plus compact (« trop haut »). */
.agr-product-review-form-wrapper {
    padding: 22px 24px 20px;
}
.agr-product-review-form-wrapper .agr-form-title {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
}
.agr-product-review-form-wrapper .agr-review-form .form-group {
    margin-bottom: 12px;
}
.agr-product-review-form-wrapper .agr-review-form textarea.form-control {
    min-height: 80px;
}

/* -------- T-Z — PDP avis : étoiles SVG + boutons sous la liste (Figma, retour user) -- */

/* Étoiles d'affichage = SVG solide (mask) au lieu du glyphe ★ — Figma 270:5549. */
#product .agr-product-tab .agr-review-stars .agr-star,
#product .agr-product-tab .agr-reviews-head__stars .agr-star {
    display: inline-block;
    width: 15px;
    height: 15px;
    color: transparent;
    font-size: 0;
    line-height: 1;
    vertical-align: middle;
    background-color: var(--as-grey-200, #dde1e3);
    -webkit-mask: url(/themes/classic-child/assets/img/star-solid.svg) center / contain no-repeat;
            mask: url(/themes/classic-child/assets/img/star-solid.svg) center / contain no-repeat;
}
#product .agr-product-tab .agr-review-stars .agr-star--filled,
#product .agr-product-tab .agr-reviews-head__stars .agr-star--filled {
    background-color: var(--as-amaranth, #e62249);
}

/* Réordonnancement flex : header → liste → actions → form (boutons SOUS la liste). */
#product #agr-reviews {
    display: flex;
    flex-direction: column;
}
#product #agr-reviews .agr-reviews-head { order: 1; }
#product #agr-reviews .agr-product-review-list-wrapper { order: 2; }
#product #agr-reviews .agr-reviews-actions { order: 3; }
#product #agr-reviews .agr-product-review-form-wrapper { order: 4; }

/* Boutons « Rédiger un avis » / « Afficher tous les avis » = texte noir, souligné rouge
   (offset ~8px, comme ailleurs sur le site). */
#product .agr-product-tab .agr-reviews-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 22px;
}
#product .agr-product-tab .agr-action-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: var(--as-grey-900, #0f0f0f);
    text-decoration: underline;
    text-decoration-color: var(--as-amaranth, #e62249);
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
    cursor: pointer;
}
#product .agr-product-tab .agr-action-link:hover {
    color: var(--as-amaranth, #e62249);
    text-decoration-color: var(--as-amaranth, #e62249);
}

/* Load-more failure feedback (never a silent dead button). */
#product .agr-product-tab .agr-load-more-error {
    flex: 1 1 100%;
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--as-amaranth, #e62249);
}

/* -------- T-W — Popup no-spam refonte -------------------------------- */

/* T-W-1 — Overlay premium (blur + deeper dim) */
.agr-popup-overlay {
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 24px;
    transition: opacity 180ms ease;
}

/* T-W-2 — Modal premium : larger, airier */
.agr-popup {
    max-width: 460px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 15, 15, 0.25);
    padding: 32px 28px 24px;
    animation: agr-popup-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes agr-popup-in {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* T-W-3 — Close button polish */
.agr-popup-close {
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 22px;
    color: var(--as-ink-3, #6b6e76);
    transition: background-color 120ms ease, color 120ms ease;
}
.agr-popup-close:hover {
    background: var(--as-surface-muted, #f6f7f8);
    color: var(--as-ink, #0f0f0f);
}

/* T-W-4 — Header typography premium */
.agr-popup-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--as-red, var(--agr-accent, #e62249));
    margin: 0 40px 8px 0;
    letter-spacing: -.01em;
}
.agr-popup-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--as-ink-2, #353535);
    margin-bottom: 18px;
}

/* T-W-5 — v2 section titles (site / product) */
.agr-popup--v2 .agr-popup-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--as-ink-3, #6b6e76);
    margin-bottom: 8px;
}

/* T-W-6 — Rating stars inside popup (JS creates buttons with class .agr-star) */
.agr-popup .agr-popup-stars-row,
.agr-popup .agr-stars {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
    justify-content: center;
}
.agr-popup .agr-star {
    width: auto;
    height: auto;
    border-radius: 6px;
    padding: 4px 6px;
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 30px;
    line-height: 1;
    color: var(--as-hairline, #dde1e3);
    cursor: pointer;
    transition: color 120ms ease, transform 120ms ease;
}
.agr-popup .agr-star:hover,
.agr-popup .agr-star.is-active,
.agr-popup .agr-star[aria-checked="true"] {
    color: var(--as-red, var(--agr-accent, #e62249));
}
.agr-popup .agr-star:hover {
    transform: scale(1.05);
}
.agr-popup .agr-star:focus-visible {
    outline: 2px solid var(--as-red, var(--agr-accent, #e62249));
    outline-offset: 2px;
}

/* T-W-7 — Popup textarea premium */
.agr-popup-textarea,
.agr-popup textarea.agr-popup-textarea {
    width: 100%;
    background: var(--as-surface-muted, #f6f7f8);
    border: 1px solid var(--as-hairline, #dde1e3);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--as-ink, #0f0f0f);
    min-height: 64px;
    resize: vertical;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.agr-popup-textarea:focus,
.agr-popup textarea.agr-popup-textarea:focus {
    outline: none;
    border-color: var(--as-red, var(--agr-accent, #e62249));
    box-shadow: 0 0 0 3px rgba(230, 34, 73, 0.12);
    background: #fff;
}

/* T-W-8 — Buttons matrix (primary amaranth / ghost muted / danger outline) */
.agr-popup-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--as-hairline, #dde1e3);
    background: #fff;
    color: var(--as-ink, #0f0f0f);
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.agr-popup-btn:hover {
    background: var(--as-surface-muted, #f6f7f8);
}
.agr-popup-btn--primary {
    background: var(--as-red, var(--agr-accent, #e62249));
    border-color: var(--as-red, var(--agr-accent, #e62249));
    color: #fff;
    box-shadow: 0 1px 2px rgba(230, 34, 73, 0.2);
}
.agr-popup-btn--primary:hover {
    background: var(--as-red-600, #c41c3d);
    border-color: var(--as-red-600, #c41c3d);
    box-shadow: 0 2px 8px rgba(230, 34, 73, 0.3);
}
.agr-popup-btn--ghost {
    border-color: var(--as-hairline, #dde1e3);
    background: transparent;
    color: var(--as-ink-2, #353535);
}
.agr-popup-btn--danger {
    border-color: transparent;
    background: transparent;
    color: var(--as-ink-3, #6b6e76);
    font-weight: 500;
}
.agr-popup-btn--danger:hover {
    background: var(--as-surface-muted, #f6f7f8);
    color: var(--as-ink, #0f0f0f);
}
.agr-popup-btn--comment {
    background: var(--as-red, var(--agr-accent, #e62249));
    border-color: var(--as-red, var(--agr-accent, #e62249));
    color: #fff;
}
.agr-popup-btn--comment:disabled {
    background: var(--as-surface-muted, #f6f7f8);
    border-color: var(--as-hairline, #dde1e3);
    color: var(--as-ink-3, #6b6e76);
    opacity: .8;
    cursor: not-allowed;
}

/* T-W-9 — Saved badge (Note enregistrée ✓) */
.agr-popup--v2 .agr-popup-saved,
.agr-popup .agr-popup-saved {
    font-size: 12px;
    color: var(--as-ink-3, #6b6e76);
    margin-top: 6px;
}
.agr-popup .agr-popup-saved.is-ok { color: #0f8a3a; }
.agr-popup .agr-popup-saved.is-error { color: #b71c1c; }

/* T-W-10 — Mobile takeover */
@media (max-width: 480px) {
    .agr-popup-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .agr-popup {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 24px 18px 18px;
        animation: agr-popup-slide-up 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .agr-popup-title { font-size: 20px; }
}
@keyframes agr-popup-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ==========================================================================
   Popup v2 — alignement design system AlterSmoke (tokens site)
   - Font : Brockmann (pas Georgia)
   - Radius : 10px max (--as-radius-large), boutons 8px (--as-radius-main)
   - Photo produit : 72px (était 44px)
   - Shadow sobre : cohérent avec le reste du site
   ========================================================================== */

/* Popup conteneur */
.agr-popup {
    border-radius: var(--as-radius-large, 10px);
    padding: 24px 22px 20px;
    box-shadow: none;
}

/* Titre : Brockmann, pas Georgia */
.agr-popup-title {
    font-family: var(--as-font-family, 'Brockmann', sans-serif);
    font-size: 20px;
    letter-spacing: -.02em;
    color: var(--as-amaranth, #e62249);
    margin: 0 36px 6px 0;
}

/* Sous-titre */
.agr-popup-text {
    font-family: var(--as-font-family, 'Brockmann', sans-serif);
    font-size: 13px;
    color: var(--as-grey-500, #353535);
    margin-bottom: 16px;
}

/* Boutons : radius 8px au lieu de pill 999px */
.agr-popup-btn {
    border-radius: var(--as-radius-main, 8px);
    font-family: var(--as-font-family, 'Brockmann', sans-serif);
}

/* Photo produit plus grande et nette */
.agr-popup--v2 .agr-popup-product-img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: var(--as-radius-main, 8px);
    object-fit: cover;
}

/* Carte produit — image reste en haut quand le contenu grandit */
.agr-popup--v2 .agr-popup-product {
    padding: 12px;
    gap: 14px;
    align-items: flex-start;
    border-color: var(--as-grey-200, #dde1e3);
    border-radius: var(--as-radius-large, 10px);
}

/* Nom produit : taille et font cohérentes */
.agr-popup--v2 .agr-popup-product-name {
    font-size: 14px;
    font-family: var(--as-font-family, 'Brockmann', sans-serif);
    font-weight: 600;
    color: var(--as-grey-900, #0f0f0f);
    margin-bottom: 8px;
}

/* Label section */
.agr-popup--v2 .agr-popup-section-title {
    font-family: var(--as-font-family, 'Brockmann', sans-serif);
}

/* Étoiles : taille légèrement réduite + alignées à gauche dans la carte produit */
.agr-popup .agr-star {
    font-size: 26px;
}
.agr-popup--v2 .agr-popup-stars-row,
.agr-popup--v2 .agr-stars {
    justify-content: flex-start;
}

/* Bouton "Poster mon commentaire" — spécificité .agr-popup--v2 pour écraser le blanc */
.agr-popup--v2 .agr-popup-btn--comment {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    margin-top: 8px;
    padding: 0 14px;
    background: var(--as-amaranth, #e62249);
    border: 1px solid var(--as-amaranth, #e62249);
    border-radius: var(--as-radius-main, 8px);
    color: #fff;
    font-family: var(--as-font-family, 'Brockmann', sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.agr-popup--v2 .agr-popup-btn--comment:hover {
    background: var(--as-grey-700, #202020);
    border-color: var(--as-grey-700, #202020);
}
.agr-popup--v2 .agr-popup-btn--comment:disabled {
    background: var(--as-grey-100, #ededf3);
    border-color: var(--as-grey-200, #dde1e3);
    color: var(--as-grey-300, #777777);
    cursor: not-allowed;
    opacity: 1;
}

/* Confirmation "Note enregistrée ✓" — visible et sobre */
.agr-popup--v2 .agr-popup-saved.is-ok {
    font-size: 12px;
    font-weight: 600;
    color: #0f8a3a;
    margin-top: 4px;
    margin-bottom: 6px;
}

/* Mobile : border-radius cohérent */
@media (max-width: 480px) {
    .agr-popup {
        border-radius: var(--as-radius-large, 10px) var(--as-radius-large, 10px) 0 0;
        padding: 20px 18px 16px;
    }
}

/* ==========================================================================
   Lot U — Site review card HubB integration (2026-04-30)
   --------------------------------------------------------------------------
   The .agr-mycard--site card was not re-skinned during the Lot 15 HubB
   refonte: it kept consuming the legacy .agr-mycard styling (Lot 12g) which
   visually disconnected it from the rest of the HubB page. This block:
   1. Aligns the card on Lot 14a tokens (white card, hairline, radius 14,
      padding 28-24, shadow — same language as Lot T forms wrapper).
   2. Adds an explicit context header (icon + uppercase label + tagline) so
      "boutique AlterSmoke" identification is obvious without scanning back
      to the H2 section title.
   3. Re-skins stars (28px hairline -> amaranth) and primary CTA (pill 999 +
      shadow-lift) for parity with Lot T form wrapper buttons.
   ========================================================================== */

.agr-myreviews-page .agr-mycard--site {
    background: #ffffff;
    border: 1px solid var(--as-hairline);
    border-radius: 14px;
    padding: 28px 24px 24px;
    box-shadow: 0 1px 3px rgba(15, 15, 15, 0.05);
    margin-top: 16px;
}

.agr-mycard--site .agr-mycard-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--as-hairline);
    margin-bottom: 18px;
}

.agr-mycard--site .agr-mycard-context-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--as-surface-muted);
    color: var(--as-red);
    flex-shrink: 0;
}

.agr-mycard--site .agr-mycard-context-icon svg {
    width: 20px;
    height: 20px;
}

.agr-mycard--site .agr-mycard-context-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--as-ink-3);
    margin-right: 4px;
}

.agr-mycard--site .agr-mycard-context-tagline {
    font-size: 14px;
    color: var(--as-ink-3);
    line-height: 1.4;
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-status {
    margin-bottom: 12px;
}

.agr-myreviews-page .agr-mycard--site .agr-myreviews-section-intro {
    font-size: 14px;
    color: var(--as-ink-2);
    margin: 0 0 14px;
    line-height: 1.5;
}

.agr-myreviews-page .agr-mycard--site .agr-rating-stars--hub {
    display: flex;
    gap: 8px;
    margin: 8px 0 16px;
}

.agr-myreviews-page .agr-mycard--site .agr-rating-star {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: var(--as-hairline);
    cursor: pointer;
    transition: color 120ms ease, transform 120ms ease;
}

.agr-myreviews-page .agr-mycard--site .agr-rating-star:hover:not([disabled]),
.agr-myreviews-page .agr-mycard--site .agr-rating-star.is-active,
.agr-myreviews-page .agr-mycard--site .agr-rating-star.is-hover {
    color: var(--as-red);
}

.agr-myreviews-page .agr-mycard--site .agr-rating-star:focus-visible {
    outline: 2px solid var(--as-red);
    outline-offset: 2px;
    border-radius: 4px;
}

.agr-myreviews-page .agr-mycard--site .agr-rating-star[disabled] {
    cursor: default;
}

.agr-myreviews-page .agr-mycard--site .agr-stars {
    margin: 4px 0 16px;
    font-size: 24px;
    line-height: 1;
}

.agr-myreviews-page .agr-mycard--site .agr-stars .agr-star--filled {
    color: var(--as-red);
}

.agr-myreviews-page .agr-mycard--site .agr-stars .agr-star--empty {
    color: var(--as-hairline);
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--as-ink-2);
    margin: 0 0 14px;
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-comment-teaser {
    margin: 4px 0 14px;
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-comment-open {
    color: var(--as-red);
    font-weight: 600;
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-comment label.control-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--as-ink-3);
    margin-bottom: 8px;
    display: block;
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-comment textarea.form-control {
    border: 1px solid var(--as-hairline);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    min-height: 96px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-comment textarea.form-control:hover {
    border-color: var(--as-ink-3);
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-comment textarea.form-control:focus {
    outline: none;
    border-color: var(--as-red);
    box-shadow: 0 0 0 3px rgba(230, 34, 73, 0.12);
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.agr-myreviews-page .agr-mycard--site .btn.btn-primary {
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(230, 34, 73, 0.15);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.agr-myreviews-page .agr-mycard--site .btn.btn-primary:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(230, 34, 73, 0.25);
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-note {
    font-size: 13px;
    color: var(--as-ink-3);
    margin: 14px 0 10px;
}

.agr-myreviews-page .agr-mycard--site .agr-mycard-edit-note {
    font-size: 12px;
    color: var(--as-ink-3);
    margin-top: 8px;
}

@media (max-width: 480px) {
    .agr-myreviews-page .agr-mycard--site {
        padding: 20px 16px 18px;
    }
    .agr-mycard--site .agr-mycard-context {
        gap: 8px;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    .agr-mycard--site .agr-mycard-context-tagline {
        flex-basis: 100%;
        margin-top: -2px;
    }
    .agr-myreviews-page .agr-mycard--site .agr-rating-star {
        font-size: 24px;
    }
}

/* =========================================================
   Lot V — link color overrides migrated from theme custom.css
   (zone 17, l.406-455). Module-owned now: AGR no longer
   relies on classic-child/custom.css for its own scopes.
   Tokens reused from Lot 14a :root (line 2232+):
     --as-red     = var(--agr-accent) = #e62249
     --as-red-600 = #c41c3d (hover)
   Charter: links in AGR scopes are amaranth + underline.
   Companion .atq-* rules stay in theme custom.css pending
   alterquestions stream migration (separate module owner).
   ========================================================= */

/* Link color — classic theme default is #24b9d7 (cyan).
   Scoped to AGR pages, exclude .btn / .agr-link / star glyphs. */
.agr-myreviews-page a:not(.btn):not(.agr-link):not(.agr-mycard-title):not([class*="agr-rating"]),
.agr-product-tab a:not(.btn):not(.agr-link):not([class*="agr-rating"]),
.agr-reviews-page a:not(.btn):not(.agr-link):not([class*="agr-rating"]),
.agr-home-block a:not(.btn):not(.agr-link):not([class*="agr-rating"]):not(.agr-home-product-image):not(.agr-home-product-name):not(.agr-home-manufacturer) {
    color: var(--as-red);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 150ms ease-out;
}

.agr-myreviews-page a:not(.btn):not(.agr-link):hover,
.agr-product-tab a:not(.btn):not(.agr-link):hover,
.agr-reviews-page a:not(.btn):not(.agr-link):hover,
.agr-home-block a:not(.btn):not(.agr-link):hover {
    color: var(--as-red-600);
    text-decoration-thickness: 2px;
}

/* AGR submit buttons — classic theme .btn-primary defaults to cyan;
   scope-override to brand amaranth within AGR form contexts. */
.agr-product-review-form-wrapper .btn.btn-primary,
.agr-product-review-form .btn.btn-primary,
.agr-site-review-page .agr-review-form-footer .btn.btn-primary,
.agr-order-review-actions .btn.btn-primary {
    background-color: var(--as-red);
    border-color: var(--as-red);
    color: #fff;
}

.agr-product-review-form-wrapper .btn.btn-primary:hover,
.agr-product-review-form .btn.btn-primary:hover,
.agr-site-review-page .agr-review-form-footer .btn.btn-primary:hover,
.agr-order-review-actions .btn.btn-primary:hover {
    background-color: var(--as-red-600);
    border-color: var(--as-red-600);
}

/* ============================================================
   Footer pill — bloc avis interne dans .sub-footer (remplace
   l'ancien widget Trustpilot, scope theme classic-child).
   Hook: displayFooterAfter
   ============================================================ */
.sub-footer .agr-footer-pill,
.sub-footer .agr-footer-pill:link,
.sub-footer .agr-footer-pill:visited,
.footer-container .agr-footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--as-grey-100, #ededf3);
    font-family: 'Brockmann', sans-serif;
    line-height: 1.5;
    letter-spacing: -0.01em;
    transition: opacity 0.15s;
}

.sub-footer .agr-footer-pill:hover,
.sub-footer .agr-footer-pill:focus-visible,
.footer-container .agr-footer-pill:hover {
    color: var(--as-grey-100, #ededf3);
    opacity: 0.85;
    text-decoration: none;
}

.agr-footer-pill__star {
    /* Gold like the header banner-top stars (--as-star-yellow), not brand red,
       for sitewide review-star consistency. */
    color: var(--as-star-yellow, #fdd663);
    font-size: 22px;
    line-height: 1;
}

.agr-footer-pill__rating {
    font-weight: 600;
    font-size: 18px;
    color: var(--as-grey-100, #ededf3);
}

.agr-footer-pill__count {
    /* Align to the header banner-top count (.agr-banner-count): crisp white +
       semibold. Was muted grey-100 / 500, which read dim next to the rating. */
    font-weight: 600;
    font-size: 16px;
    color: var(--as-white, #fff);
}

@media (max-width: 575px) {
    .agr-footer-pill {
        gap: 8px;
    }
    .agr-footer-pill__rating {
        font-size: 16px;
    }
    .agr-footer-pill__count {
        font-size: 14px;
    }
}

/* ===== PDP harmonization (May 2026) — align PDP reviews with /avis-clients design ===== */

/* Base merchant reply: amaranth left bar + uppercase title (was scoped to .agr-review-card only) */
.agr-merchant-reply {
    border-left: 3px solid var(--agr-accent);
    border-radius: 0 8px 8px 0;
    background: #f6f7f8;
}

.agr-merchant-reply-title {
    color: var(--agr-accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* PDP footer — Figma: 2 underlined links instead of buttons */
.agr-pdp-link,
a.agr-pdp-link,
button.agr-pdp-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: var(--agr-accent);
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    cursor: pointer;
    transition: color .15s ease;
}

.agr-pdp-link:hover,
.agr-pdp-link:focus,
a.agr-pdp-link:hover,
a.agr-pdp-link:focus,
button.agr-pdp-link:hover,
button.agr-pdp-link:focus {
    color: var(--agr-accent);
    text-decoration-color: var(--agr-accent);
    outline: none;
}

/* Footer container: align both links horizontally with breathing room */
.agr-product-tab .agr-reviews-foot,
.agr-product-tab .agr-product-reviews-foot,
.agr-product-tab > .agr-rating-right {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(31, 31, 31, 0.08);
}

/* Subtle "Achat vérifié" pill (Figma doesn't show it but we keep the feature) */
.agr-product-tab .agr-review-badge,
.agr-product-tab .agr-product-reviews .agr-review-badge {
    background: transparent;
    color: rgba(31, 31, 31, 0.55);
    border: 1px solid rgba(31, 31, 31, 0.14);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* Thin grey separator between reviews on PDP */
.agr-product-tab .agr-review-item + .agr-review-item,
.agr-product-tab .agr-product-reviews .agr-review-item + .agr-review-item {
    border-top: 1px solid rgba(31, 31, 31, 0.08);
}

.agr-product-tab .agr-review-item {
    padding: 16px 0;
}

/* ============================================================
   Lot G.5.B — PDP reviews tab refonte Lot B (Figma 270:5591)
   Scope: #product .agr-product-tab (avis clients tab UGC)
   Tokens: --as-grey-*, --as-amaranth*, --as-radius-*, --as-fw-*,
           --as-font-family, --as-btn-height-md, --as-transition-*,
           --as-star-yellow.
   ============================================================ */

#product .agr-product-tab {
    font-family: var(--as-font-family, "Brockmann", system-ui, sans-serif);
    color: var(--as-grey-900, #0f0f0f);
}

#product .agr-product-tab .agr-review-list--product {
    list-style: none;
    margin: 0;
    padding: 0;
}

#product .agr-product-tab .agr-review-list .agr-review-item {
    padding: 18px 0 12px;
}

/* Texte des avis = Brockmann Regular (font-weight 400) grey-500 — Figma 25:1897. */
#product .agr-product-tab .agr-review-content {
    font-weight: 400;
    color: var(--as-grey-500, #353535);
}

#product .agr-product-tab .agr-review-list > .agr-review-item + .agr-review-item {
    border-top: 1px solid #dde1e3;
}

#product .agr-product-tab .agr-review-header {
    margin-bottom: 12px;
    gap: 12px 16px;
}

#product .agr-product-tab .agr-review-left {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

#product .agr-product-tab .agr-review-author {
    font-size: 16px;
    font-weight: var(--as-fw-semibold, 600);
    color: var(--as-grey-900, #0f0f0f);
    line-height: 1.3;
}

#product .agr-product-tab .agr-review-date {
    font-size: 14px;
    font-weight: var(--as-fw-medium, 500);
    color: var(--as-grey-500, #6b6e76);
    line-height: 1.4;
}

#product .agr-product-tab .agr-review-stars {
    color: var(--as-star-yellow, #f5a623);
    letter-spacing: 1px;
    font-size: 18px;
    line-height: 1;
}

#product .agr-product-tab .agr-review-stars .agr-star--empty,
#product .agr-product-tab .agr-review-stars .agr-star:not(.agr-star--filled) {
    color: var(--as-grey-200, #dde1e3);
}

/* Achat vérifié = dark pill .ab-badge--primary (retour user 2026-06-02), override
   de l'ancien outline subtil. */
#product .agr-product-tab .agr-review-badge,
#product .agr-product-tab .agr-product-reviews .agr-review-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: #202020;
    color: #ededf3;
    border: 0;
    border-radius: 3px;
    font-size: 12px;
    font-weight: var(--as-fw-medium, 500);
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

#product .agr-product-tab .agr-review-title {
    font-size: 15px;
    font-weight: var(--as-fw-semibold, 600);
    color: var(--as-grey-900, #0f0f0f);
    margin: 0 0 4px;
    line-height: 1.4;
}

#product .agr-product-tab .agr-review-content {
    font-size: 16px;
    font-weight: var(--as-fw-medium, 500);
    color: var(--as-grey-900, #0f0f0f);
    line-height: 1.5;
    margin: 0;
    letter-spacing: -0.16px;
    white-space: pre-wrap;
}

#product .agr-product-tab .agr-review-content--muted {
    color: var(--as-grey-500, #6b6e76);
    font-style: italic;
}

#product .agr-product-tab .agr-review-detailed-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--as-grey-700, #353535);
}

#product .agr-product-tab .agr-review-detailed-item strong {
    font-weight: var(--as-fw-semibold, 600);
    color: var(--as-grey-900, #0f0f0f);
}

#product .agr-product-tab .agr-merchant-reply,
#product .agr-product-tab .agr-merchant-reply--public {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--as-grey-100, #f6f7f8);
    border-left: 3px solid var(--as-amaranth, #e62249);
    border-radius: var(--as-radius-small, 3px);
}

#product .agr-product-tab .agr-merchant-reply-title {
    font-size: 13px;
    font-weight: var(--as-fw-bold, 700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--as-amaranth, #e62249);
    margin: 0 0 4px;
}

#product .agr-product-tab .agr-merchant-reply-content {
    font-size: 15px;
    color: var(--as-grey-900, #0f0f0f);
    line-height: 1.5;
    margin: 0;
}

#product .agr-product-tab .agr-review-item--pending,
#product .agr-product-tab .agr-review-item--mine {
    background: var(--as-grey-100, #f6f7f8);
    border-radius: var(--as-radius-medium, 6px);
    padding: 16px;
    margin-bottom: 16px;
    border-top: 0;
}

#product .agr-product-tab .agr-review-list--product > .agr-review-item--pending:first-child {
    padding-top: 16px;
}

#product .agr-product-tab .agr-review-badge--pending {
    background: rgba(245, 166, 35, 0.18);
    color: #8a5a00;
    border-color: rgba(245, 166, 35, 0.45);
}

#product .agr-product-tab .agr-review-edit-link {
    display: inline-flex;
    align-items: center;
    color: var(--as-amaranth, #e62249);
    font-size: 14px;
    font-weight: var(--as-fw-medium, 500);
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: 8px;
}

#product .agr-product-tab .agr-review-edit-link:hover,
#product .agr-product-tab .agr-review-edit-link:focus {
    color: var(--as-amaranth-hover, #c81d3e);
}

#product .agr-product-tab .agr-no-reviews {
    font-size: 15px;
    color: var(--as-grey-500, #6b6e76);
    padding: 20px 0;
    margin: 0;
}

/* Footer button row : 2 CTAs ghost 44px (Figma "Voir plus / Soumettre un avis") */
#product .agr-product-tab .agr-rating-right,
#product .agr-product-tab .agr-reviews-foot,
#product .agr-product-tab .agr-product-reviews-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--as-grey-200, #dde1e3);
}

#product .agr-product-tab .agr-pdp-link,
#product .agr-product-tab a.agr-pdp-link,
#product .agr-product-tab button.agr-pdp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--as-btn-height-md, 44px);
    padding: 0 20px;
    background: transparent;
    color: var(--as-grey-900, #0f0f0f);
    border: 1px solid var(--as-grey-border, #cccccc);
    border-radius: var(--as-radius-main, 8px);
    font-family: var(--as-font-family, "Brockmann", system-ui, sans-serif);
    font-size: 14px;
    font-weight: var(--as-fw-medium, 500);
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--as-transition-base, .18s) ease,
                border-color var(--as-transition-base, .18s) ease,
                color var(--as-transition-base, .18s) ease;
}

#product .agr-product-tab .agr-pdp-link:hover,
#product .agr-product-tab .agr-pdp-link:focus,
#product .agr-product-tab a.agr-pdp-link:hover,
#product .agr-product-tab a.agr-pdp-link:focus,
#product .agr-product-tab button.agr-pdp-link:hover,
#product .agr-product-tab button.agr-pdp-link:focus {
    background: var(--as-grey-100, #f6f7f8);
    color: var(--as-grey-900, #0f0f0f);
    border-color: var(--as-grey-border-hover, #aaaaaa);
    text-decoration: none;
}

#product .agr-product-tab .agr-pdp-link:focus-visible,
#product .agr-product-tab a.agr-pdp-link:focus-visible,
#product .agr-product-tab button.agr-pdp-link:focus-visible {
    outline: 2px solid var(--as-amaranth, #e62249);
    outline-offset: 2px;
}

#product .agr-product-tab .agr-login-cta,
#product .agr-product-tab a.agr-login-cta,
#product .agr-product-tab .agr-review-form .btn.btn-primary,
#product .agr-product-tab .agr-pending-edit-actions .btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--as-btn-height-md, 44px);
    padding: 0 24px;
    background: var(--as-amaranth, #e62249);
    color: #ffffff;
    border: 0;
    border-radius: var(--as-radius-main, 8px);
    font-family: var(--as-font-family, "Brockmann", system-ui, sans-serif);
    font-size: 14px;
    font-weight: var(--as-fw-medium, 500);
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    transition: background-color var(--as-transition-base, .18s) ease;
    cursor: pointer;
}

#product .agr-product-tab .agr-login-cta:hover,
#product .agr-product-tab .agr-login-cta:focus,
#product .agr-product-tab .agr-review-form .btn.btn-primary:hover,
#product .agr-product-tab .agr-review-form .btn.btn-primary:focus,
#product .agr-product-tab .agr-pending-edit-actions .btn.btn-primary:hover,
#product .agr-product-tab .agr-pending-edit-actions .btn.btn-primary:focus {
    background: var(--as-amaranth-hover, #c81d3e);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

#product .agr-product-tab .agr-pending-edit-actions .btn.btn-link {
    display: inline-flex;
    align-items: center;
    height: var(--as-btn-height-md, 44px);
    color: var(--as-grey-700, #353535);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 14px;
}

#product .agr-product-tab .agr-pending-edit-actions .btn.btn-link:hover,
#product .agr-product-tab .agr-pending-edit-actions .btn.btn-link:focus {
    color: var(--as-grey-900, #0f0f0f);
}

#product .agr-product-tab .agr-review-thanks {
    color: var(--as-grey-900, #0f0f0f);
    font-size: 14px;
    line-height: 1.5;
}

#product .agr-product-tab .agr-review-thanks strong {
    font-weight: var(--as-fw-semibold, 600);
}

#product .agr-product-tab .agr-login-hint {
    color: var(--as-grey-500, #6b6e76);
    font-size: 14px;
}

/* Form wrapper : refresh radius + border + spacing tokens Lot B */
#product .agr-product-tab .agr-product-review-form-wrapper {
    background: var(--as-card-bg, #ffffff);
    border: 1px solid var(--as-grey-200, #dde1e3);
    border-radius: var(--as-radius-large, 10px);
    padding: 24px;
    margin-top: 24px;
    box-shadow: none;
}

#product .agr-product-tab .agr-product-review-form-wrapper .agr-form-title {
    font-size: 20px;
    font-weight: var(--as-fw-bold, 700);
    color: var(--as-grey-900, #0f0f0f);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--as-grey-200, #dde1e3);
    letter-spacing: -0.01em;
    text-transform: none;
}

#product .agr-product-tab .agr-review-form .form-group {
    margin-bottom: 16px;
}

#product .agr-product-tab .agr-review-form label.control-label,
#product .agr-product-tab .agr-review-form .control-label,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-review-form label {
    font-size: 14px;
    font-weight: var(--as-fw-medium, 500);
    text-transform: none;
    letter-spacing: 0;
    color: var(--as-grey-900, #0f0f0f);
    margin-bottom: 6px;
    display: block;
}

#product .agr-product-tab .agr-review-form label sup,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-review-form label sup {
    color: var(--as-amaranth, #e62249);
    font-weight: var(--as-fw-bold, 700);
    margin-left: 2px;
}

#product .agr-product-tab .agr-review-form input.form-control,
#product .agr-product-tab .agr-review-form textarea.form-control,
#product .agr-product-tab .agr-review-form select.form-control,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-review-form textarea,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-review-form input[type="text"] {
    background: var(--as-card-bg, #ffffff);
    border: 1px solid var(--as-grey-200, #dde1e3);
    border-radius: var(--as-radius-small, 3px);
    padding: 10px 14px;
    font-family: var(--as-font-family, "Brockmann", system-ui, sans-serif);
    font-size: 15px;
    line-height: 1.5;
    color: var(--as-grey-900, #0f0f0f);
    transition: border-color var(--as-transition-fast, .12s) ease,
                box-shadow var(--as-transition-fast, .12s) ease;
    width: 100%;
    box-shadow: none;
}

#product .agr-product-tab .agr-review-form textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

#product .agr-product-tab .agr-review-form input.form-control:hover,
#product .agr-product-tab .agr-review-form textarea.form-control:hover,
#product .agr-product-tab .agr-review-form select.form-control:hover {
    border-color: var(--as-grey-500, #6b6e76);
}

#product .agr-product-tab .agr-review-form input.form-control:focus,
#product .agr-product-tab .agr-review-form textarea.form-control:focus,
#product .agr-product-tab .agr-review-form select.form-control:focus,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-review-form textarea:focus,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-review-form input[type="text"]:focus {
    outline: none;
    border-color: var(--as-amaranth, #e62249);
    box-shadow: 0 0 0 3px var(--as-amaranth-soft, rgba(230, 34, 73, .18));
}

#product .agr-product-tab .agr-review-form .help-block {
    font-size: 13px;
    color: var(--as-grey-500, #6b6e76);
    margin: 4px 0 0;
    line-height: 1.4;
}

#product .agr-product-tab .agr-review-form-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 0;
}

#product .agr-product-tab .agr-pending-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

/* Rating stars input keep 28px + amaranth active */
#product .agr-product-tab .agr-review-form .agr-rating-stars,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-rating-stars,
#product .agr-product-tab .agr-pending-edit-wrapper .agr-rating-stars {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0 8px;
}

#product .agr-product-tab .agr-review-form .agr-rating-star,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-rating-star,
#product .agr-product-tab .agr-pending-edit-wrapper .agr-rating-star {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 4px;
    font-size: 28px;
    line-height: 1;
    color: var(--as-grey-200, #dde1e3);
    cursor: pointer;
    transition: color var(--as-transition-fast, .12s) ease,
                transform var(--as-transition-fast, .12s) ease;
}

#product .agr-product-tab .agr-review-form .agr-rating-star:hover,
#product .agr-product-tab .agr-review-form .agr-rating-star.is-active,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-rating-star:hover,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-rating-star.is-active,
#product .agr-product-tab .agr-pending-edit-wrapper .agr-rating-star:hover,
#product .agr-product-tab .agr-pending-edit-wrapper .agr-rating-star.is-active {
    color: var(--as-amaranth, #e62249);
}

#product .agr-product-tab .agr-review-form .agr-rating-star:focus-visible,
#product .agr-product-tab .agr-product-review-form-wrapper .agr-rating-star:focus-visible,
#product .agr-product-tab .agr-pending-edit-wrapper .agr-rating-star:focus-visible {
    outline: 2px solid var(--as-amaranth, #e62249);
    outline-offset: 2px;
    border-radius: 4px;
}

#product .agr-product-tab .agr-detailed-ratings-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--as-grey-200, #dde1e3);
}

#product .agr-product-tab .agr-detailed-title {
    font-size: 14px;
    font-weight: var(--as-fw-semibold, 600);
    color: var(--as-grey-900, #0f0f0f);
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: 0;
}

/* Alerts inside the tab */
#product .agr-product-tab .agr-review-alert {
    background: var(--as-grey-100, #f6f7f8);
    border: 1px solid var(--as-grey-200, #dde1e3);
    border-radius: var(--as-radius-small, 3px);
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--as-grey-900, #0f0f0f);
    line-height: 1.5;
}

#product .agr-product-tab .alert-success.agr-review-alert {
    border-left: 3px solid var(--as-success-fg, #1e8e3e);
}

#product .agr-product-tab .alert-warning.agr-review-alert {
    border-left: 3px solid var(--as-warning-fg, #d97706);
}

/* Mobile <576 : CTAs full-width + form padding réduit */
@media (max-width: 575.98px) {
    #product .agr-product-tab .agr-review-item {
        padding: 16px 0;
    }

    #product .agr-product-tab .agr-product-review-form-wrapper {
        padding: 16px;
    }

    #product .agr-product-tab .agr-rating-right,
    #product .agr-product-tab .agr-reviews-foot {
        gap: 12px;
    }

    #product .agr-product-tab .agr-pdp-link,
    #product .agr-product-tab a.agr-pdp-link,
    #product .agr-product-tab button.agr-pdp-link,
    #product .agr-product-tab .agr-login-cta,
    #product .agr-product-tab .agr-review-form .btn.btn-primary {
        width: 100%;
    }

    #product .agr-product-tab .agr-review-form-footer .btn,
    #product .agr-product-tab .agr-pending-edit-actions .btn {
        flex: 1 1 100%;
    }
}

/* Front finitions — product-list rating summary: the unreached star keeps the
   same filled glyph (set in product_list_reviews.tpl) and the accent colour,
   just faded, so a 4/5 reads as "4 solid + 1 dimmed" instead of a grey star.
   Scoped to the listing summary so the PDP tab / popup / home-block / review-card
   star contexts keep their own empty-star treatment. Specificity (0,2,0) beats
   the generic `.agr-star { color: rgba(31,31,31,.35) }` base rule. */
.agr-product-list-summary .agr-star--empty {
    color: var(--agr-accent, #e62249);
    opacity: 0.3;
}

