@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ────────────────────────────────────── */
:root {
  --cream:       #f7f3ee;
  --navy:        #1a2035;
  --navy-light:  #2e3a55;
  --gold:        #c9a84c;
  --gold-light:  #e8cc7a;
  --text-muted:  #7a7e8a;
  --card-bg:     #ffffff;
  --shadow:      0 8px 40px rgba(26, 32, 53, 0.10);
  --radius:      16px;
  --transition:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Section ──────────────────────────────────────── */
.reviews-section {
  background-color: var(--cream);
  margin-top: 50px;
  padding: 80px 24px;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
}

/* ── Header ───────────────────────────────────────── */
.reviews-header {
  text-align: center;
  margin-bottom: 56px;
}

.reviews-header__caption {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.reviews-header__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  font-weight: 400;
  margin: 0 0 20px;
  line-height: 1.2;
}

/* Barre de score global */
.reviews-global {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 40px;
  padding: 10px 24px;
  box-shadow: var(--shadow);
}

.reviews-global__score {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 600;
}

.reviews-global__stars {
  display: flex;
  gap: 3px;
}

.reviews-global__stars svg {
  width: 16px;
  height: 16px;
}

.reviews-global__count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Carousel wrapper ─────────────────────────────── */
.reviews-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.reviews-track-wrapper {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform var(--transition);
  will-change: transform;
}

/* ── Card ─────────────────────────────────────────── */
.review-card {
  flex: 0 0 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.review-card__inner {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Guillemet décoratif */
.review-card__inner::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--gold-light);
  opacity: 0.25;
  position: absolute;
  top: 8px;
  left: 32px;
  pointer-events: none;
}

.review-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.review-card__stars svg {
  width: 18px;
  height: 18px;
}

.review-card__text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--navy-light);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.review-card__footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
}

.review-card__avatar--fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  flex-shrink: 0;
  border: 2px solid var(--gold-light);
}

.review-card__meta {
  display: flex;
  flex-direction: column;
}

.review-card__author {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
}

.review-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 2px;
}

/* ── Navigation ───────────────────────────────────── */
.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.reviews-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 32, 53, 0.2);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--navy);
}

.reviews-nav__btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: scale(1.08);
}

.reviews-nav__btn svg {
  width: 18px;
  height: 18px;
}

/* Dots */
.reviews-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reviews-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(26, 32, 53, 0.2);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  padding: 0;
}

.reviews-dot.is-active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── Google badge ─────────────────────────────────── */
.reviews-badge {
  text-align: center;
  margin-top: 32px;
}

.reviews-badge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.reviews-badge a:hover {
  color: var(--navy);
}

/* ── État erreur / loading ────────────────────────── */
.reviews-loading,
.reviews-error {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .reviews-section {
    padding: 56px 16px;
  }

  .review-card__inner {
    padding: 32px 24px;
    min-height: auto;
  }

  .review-card__inner::before {
    font-size: 5rem;
    left: 16px;
  }
}