.rb-avis {
  margin: 0 auto;
  max-width: 1100px;
}

.rb-avis-entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 26px;
}

.rb-avis-note {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1f405f;
  margin: 0;
  line-height: 1;
}

.rb-avis-note span {
  font-size: 1.2rem;
  font-weight: 400;
  color: #7894b9;
}

.rb-avis-total {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.rb-avis-pied {
  text-align: center;
  margin: 18px 0 0;
}

.rb-avis-prog {
  flex: 1;
  height: 4px;
  background: #e5e9ed;
  border-radius: 2px;
  overflow: hidden;
}

.rb-avis-prog span {
  display: block;
  height: 100%;
  width: 0;
  background: #2e6fa3;
  border-radius: 2px;
  transition: width 0.25s ease, margin-left 0.25s ease;
}

.rb-avis-cta {
  display: inline-block;
  padding: 12px 28px;
  background: #f07c1f;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rb-avis-cta:hover {
  background: #d3650f;
  color: #fff;
  transform: translateY(-2px);
}

.rb-avis-stars {
  display: inline-flex;
  gap: 3px;
}

.rb-avis-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

a.rb-avis-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.rb-avis-prog-ligne {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 420px;
  margin: 18px auto 0;
}

.rb-avis-fleche {
  flex-shrink: 0;
  width: 52px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: #1f405f;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.rb-avis-fleche:hover {
  background: #2e6fa3;
}

.rb-avis-fleche:disabled {
  opacity: 0.35;
  cursor: default;
}

.rb-avis-prec svg {
  transform: rotate(180deg);
}

.rb-avis-liste {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 0;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rb-avis-liste::-webkit-scrollbar {
  display: none;
}

.rb-avis-liste {
  cursor: grab;
}

.rb-avis-liste.rb-drag-scroll {
  cursor: grabbing;
  scroll-snap-type: none;
}

.rb-avis-carte {
  flex: 0 0 86%;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(31, 64, 95, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.rb-avis-carte:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 30px rgba(31, 64, 95, 0.18);
}

.rb-avis-tete {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.rb-avis-tete > .rb-avis-glogo {
  margin-left: auto;
}

.rb-avis-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rb-avis-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e5e9ed;
  color: #1f405f;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rb-avis-auteur {
  font-weight: 600;
  color: #1f1f1f;
  margin: 0;
}

.rb-avis-date {
  font-size: 0.85rem;
  color: #7894b9;
  margin: 0;
}

.rb-avis-texte {
  margin: 0;
  color: #2b3138;
  font-size: 0.95rem;
  line-height: 1.5;
}

.rb-avis-toggle {
  display: none;
}

.rb-avis-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rb-avis-toggle:checked ~ .rb-avis-clamp {
  -webkit-line-clamp: unset;
}

.rb-avis-lire {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rb-avis-lire:hover {
  color: #2b3138;
}

.rb-avis-lire .rb-avis-lire-moins {
  display: none;
}

.rb-avis-toggle:checked ~ .rb-avis-lire .rb-avis-lire-plus {
  display: none;
}

.rb-avis-toggle:checked ~ .rb-avis-lire .rb-avis-lire-moins {
  display: inline;
}

.rb-avis-reponse {
  margin: 0;
  padding: 10px 12px;
  background: #e5e9ed;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #1f405f;
}

@media (min-width: 700px) {
  .rb-avis-carte {
    flex-basis: calc(50% - 8px);
  }
}

@media (min-width: 1000px) {
  .rb-avis-carte {
    flex-basis: calc(33.333% - 11px);
  }
}
