/**
 * Page Avis (page-avis.php)
 *
 * Réutilise les cartes .testimonial-card (testimonials.css, chargé aussi sur
 * cette page). Ne définit ici que : le hero, le bandeau note moyenne, la
 * grille "mur d'avis" et le CTA bas de page. Tokens du thème uniquement.
 */

.avis-page .acc { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.avis-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 18vh, 220px) 0 var(--space-xl);
  text-align: center;
}

/* Halo ambre (même rendu que le CTA de l'accueil) */
.avis-halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 165, 116, .15) 0%,
    rgba(212, 165, 116, .05) 30%,
    transparent 70%
  );
  pointer-events: none;
}

[data-theme="light"] .avis-halo {
  background: radial-gradient(
    ellipse at center,
    rgba(168, 112, 47, .12) 0%,
    rgba(168, 112, 47, .04) 30%,
    transparent 70%
  );
}

.avis-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.avis-hero .kicker {
  justify-content: center;
}

.avis-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 116px);
  line-height: .95;
  text-transform: uppercase;
  margin: var(--space-sm) 0 var(--space-md);
}

.avis-hero-title .ital {
  color: var(--accent);
  font-style: italic;
}

.avis-hero-deck {
  max-width: 620px;
  margin: 0 auto;
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.6;
}

/* ============================================================
   NOTE MOYENNE
   ============================================================ */
.avis-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.avis-rating-stars {
  font-size: 24px;
  letter-spacing: 3px;
  line-height: 1;
}

/* .star / .star--filled viennent de testimonials.css */

.avis-rating-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-body);
}

.avis-rating-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}

.avis-rating-count {
  font-size: 14px;
  color: var(--fg-3);
  letter-spacing: .02em;
}

/* ============================================================
   MUR D'AVIS
   ============================================================ */
.avis-section {
  padding-top: var(--space-xl);
}

/* Une carte par ligne, pleine largeur */
.avis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* --- Cartes horizontales : photo à gauche, texte à droite, même format ---
   On recycle le mode "photo en fond" : .testimonial-bg devient une colonne
   gauche, le voile dégradé est masqué, le texte passe à droite. */
.avis-grid .testimonial-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 320px;
}

.avis-grid .testimonial-card--photo-background .testimonial-bg {
  position: relative;
  inset: auto;
  flex: 0 0 40%;
  max-width: 40%;
  align-self: stretch;
  opacity: 1;
  background-position: center;
}

.avis-grid .testimonial-bg-gradient {
  display: none;
}

.avis-grid .testimonial-card--photo-background:hover .testimonial-bg {
  opacity: 1;
  transform: none;
}

.avis-grid .testimonial-content {
  flex: 1;
  justify-content: center;
  min-height: 320px;
}

.avis-grid .testimonial-card--photo-background .testimonial-content {
  max-width: none;
}

/* Mesure de lecture confortable côté texte */
.avis-grid .testimonial-text {
  max-width: 62ch;
}

.avis-empty {
  text-align: center;
  color: var(--fg-3);
  font-style: italic;
  padding: var(--space-xl) 0;
}

/* ============================================================
   CTA — Laisser un avis + Contact
   ============================================================ */
.avis-cta {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.avis-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.avis-cta-inner h2 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
}

.avis-cta-inner p {
  color: var(--fg-2);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto var(--space-lg);
  max-width: 540px;
}

.avis-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .avis-hero {
    padding: clamp(100px, 16vh, 160px) 0 var(--space-lg);
  }
  .avis-grid {
    gap: var(--space-md);
  }
  /* La carte horizontale s'empile : photo en haut, texte dessous */
  .avis-grid .testimonial-card {
    flex-direction: column;
    min-height: 0;
  }
  .avis-grid .testimonial-card--photo-background .testimonial-bg {
    flex: none;
    width: 100%;
    max-width: none;
    height: 220px;
  }
  .avis-grid .testimonial-content {
    min-height: 0;
  }
  .avis-hero-deck,
  .avis-cta-inner p {
    font-size: 16px;
  }
}