/* ── Avis Google (pattern JR Postop — thème GothamDev) ── */

.google-reviews-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.google-reviews-section--inline {
  padding-top: 48px;
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.07));
}

.google-evaluation-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding: 24px 28px;
  margin-bottom: 16px;
  background: linear-gradient(165deg, rgba(19, 23, 32, 0.96), rgba(13, 16, 24, 0.98));
  border: 1px solid var(--border-md, rgba(255, 255, 255, 0.09));
  border-radius: var(--radius-xl, 20px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.35));
}

.google-evaluation-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-0, #f5f7fa);
}

.google-evaluation-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}

.google-evaluation-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-2, #636b7e);
}

.google-evaluation-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4285f4;
  animation: google-loading-pulse 1s ease-in-out infinite;
}

@keyframes google-loading-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.google-evaluation-data {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.google-evaluation-rating {
  font-family: var(--font-display, system-ui);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-0, #f5f7fa);
  line-height: 1;
  letter-spacing: -0.03em;
}

.google-evaluation-stars {
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #fbbc04;
}

.google-evaluation-count {
  font-size: 0.92rem;
  color: var(--text-2, #636b7e);
}

.google-evaluation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.google-evaluation-lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-2, #636b7e);
  line-height: 1.6;
}

.google-evaluation-pagination {
  margin: 0 0 24px;
  font-size: 0.82rem;
  color: var(--text-3, #3e4455);
  text-align: center;
}

.google-reviews-updated {
  color: var(--text-3, #3e4455);
}

.google-reviews-grid {
  margin-top: 8px;
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 600px) {
  .google-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.google-review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.google-review-card .google-review-text {
  flex: 1;
  margin-bottom: 0;
}

.google-review-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.google-review-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.google-review-card .review-rating-stars {
  display: flex;
  gap: 2px;
}

.google-review-card .review-rating-stars svg {
  width: 14px;
  height: 14px;
}

.google-evaluation-loading[hidden],
.google-evaluation-data[hidden] {
  display: none !important;
}

.google-reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-2, #636b7e);
  padding: 32px 16px;
  font-size: 0.92rem;
}

.testi-card--google {
  border-color: rgba(66, 133, 244, 0.18);
  background: linear-gradient(180deg, rgba(66, 133, 244, 0.06), rgba(13, 16, 24, 0.5));
}

.testi-stars--google svg {
  display: inline-block;
  vertical-align: middle;
}

.testi-verified--google {
  color: #4285f4;
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.25);
}

.google-review-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-read-more {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent, #5b8cff);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.review-read-more:hover {
  text-decoration: underline;
}

.google-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.google-review-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.15);
  color: #4285f4;
  font-weight: 700;
  font-size: 0.95rem;
}

.gmb-rating-pill--google {
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.28);
}

/* Widget flottant */
.google-reviews-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(165deg, rgba(19, 23, 32, 0.98), rgba(13, 16, 24, 0.99));
  border: 1px solid rgba(66, 133, 244, 0.22);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.google-reviews-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.google-reviews-widget-stars {
  display: flex;
  gap: 2px;
}

.google-reviews-widget-body {
  line-height: 1.2;
}

.google-reviews-widget-rating {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-0, #f5f7fa);
}

.google-reviews-widget-count {
  font-size: 0.75rem;
  color: var(--text-2, #636b7e);
  margin-top: 2px;
}

.google-reviews-widget-cta {
  padding: 8px 14px;
  background: #4285f4;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.google-reviews-widget-cta:hover {
  background: #5a95f5;
  color: #fff;
  transform: scale(1.02);
}

@media (max-width: 700px) {
  .google-evaluation-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .google-evaluation-actions {
    margin-left: 0;
    width: 100%;
  }
  .google-reviews-widget {
    left: 12px;
    bottom: 72px;
    padding: 10px 12px;
    gap: 8px;
    max-width: calc(100vw - 24px);
  }
  .google-reviews-widget-cta {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-evaluation-loading-dot {
    animation: none;
  }
}
