/* =========================================
   Widget Avis Google My Business - Carousel
   ========================================= */

.gmreviews-widget {
  padding: 40px 20px;
  background: #fff;
  max-width: 1200px;
  margin: 30px auto;
}

/* Header */
.gmreviews-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.gmreviews-header-text {
  flex: 1;
}

.gmreviews-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #222;
}

.gmreviews-global {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gmreviews-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.gmreviews-total {
  font-size: 0.85rem;
  color: #1a73e8;
  text-decoration: none;
}

.gmreviews-total:hover { text-decoration: underline; }

/* Bouton laisser un avis */
.gmreviews-btn-write {
  display: inline-block;
  padding: 9px 18px;
  background: #1a73e8;
  color: #fff;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}

.gmreviews-btn-write:hover {
  background: #1557b0;
  color: #fff;
  text-decoration: none;
}

/* Étoiles */
.gmr-star { font-size: 1rem; line-height: 1; }
.gmr-star.full  { color: #fbbc04; }
.gmr-star.empty { color: #dadce0; }

/* Carousel */
.gmreviews-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.gmreviews-carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.gmreviews-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Carte */
.gmreviews-card {
  min-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.gmreviews-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gmreviews-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #4285F4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmreviews-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gmreviews-avatar-letter {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gmreviews-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: #202124;
  display: block;
}

.gmreviews-date {
  font-size: 0.8rem;
  color: #80868b;
}

.gmreviews-stars { margin-bottom: 10px; }

.gmreviews-text {
  font-size: 0.92rem;
  color: #3c4043;
  line-height: 1.6;
  margin: 0;
}

/* Flèches */
.gmr-arrow {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background .2s, border-color .2s;
  line-height: 1;
  padding: 0;
}

.gmr-arrow:hover {
  background: #f1f3f4;
  border-color: #aaa;
}

/* Points */
.gmreviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 8px;
}

.gmr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dadce0;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: inline-block;
}

.gmr-dot.active {
  background: #1a73e8;
  transform: scale(1.3);
}

/* Footer */
.gmreviews-footer {
  text-align: center;
  margin-top: 20px;
}

.gmreviews-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #fff;
  color: #1a73e8;
  border: 2px solid #1a73e8;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.gmreviews-btn:hover {
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .gmreviews-title { font-size: 1.1rem; }
  .gmr-arrow { width: 32px; height: 32px; font-size: 1.1rem; }
}
