/* ==========================================================================
   Élagueur 45 — bloc « Avis clients Google » de la page d'accueil
   --------------------------------------------------------------------------
   Fichier séparé : la page d'accueil charge cette feuille en plus de style.css.
   Le bloc reprend la palette du site (vert #00a252 / #00875e) et se place
   entre le slider et la section « À-propos ».
   Les textes d'avis sont ceux publiés sur la fiche Google de l'entreprise.
   ========================================================================== */

.avis-google {
  position: relative;
  padding: 92px 0 84px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
  border-top: 1px solid #e9f1ec;
}

.avis-google__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- En-tête -------------------------------------------------------------- */
.avis-google__head {
  margin: 0 0 44px;
  text-align: center;
}
.avis-google__head .section__pre-title {
  justify-content: center;
}
.avis-google__head h2 {
  margin: 14px auto 0;
  font-size: 26px;
  line-height: 1.3;
  color: #1e1e2a;
  white-space: nowrap;
}
@media (max-width: 1199px) {
  .avis-google__head h2 {
    font-size: 23px;
    white-space: normal;
  }
}
@media (max-width: 991px) {
  .avis-google__head h2 { font-size: 21px; }
}
.avis-google__head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 18px auto 0;
  background: #00a252;
}

/* --- Grille : la carte « note » occupe la première case ------------------ */
.avis-google__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 991px) {
  .avis-google__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .avis-google { padding: 64px 0 58px; }
  .avis-google__head { margin-bottom: 32px; }
  .avis-google__head h2 { font-size: 20px; }
  .avis-google__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* --- Carte d'avis -------------------------------------------------------- */
.avis-google__card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px 24px 22px;
  background: #fff;
  border: 1px solid #e6eeea;
  border-radius: 4px;
  box-shadow: 0 20px 40px -34px rgba(16, 58, 42, 0.55);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.avis-google__card:hover {
  border-color: #bfe3d1;
  box-shadow: 0 24px 44px -30px rgba(16, 58, 42, 0.5);
  transform: translateY(-3px);
}

.avis-google__card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.avis-google__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: #00875e;
  border-radius: 50%;
}
.avis-google__author {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #1e1e2a;
}
.avis-google__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #6c7b73;
}
.avis-google__g {
  margin-left: auto;
  flex: none;
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.avis-google__stars {
  color: #f5a623;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}
.avis-google__stars--sm { font-size: 13px; }
.avis-google__star-off { color: #d7dedb; }

.avis-google__text {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
  line-height: 26px;
  color: #47544d;
}
.avis-google__text p { margin: 0; }

/* --- Carte « note globale » ---------------------------------------------- */
.avis-google__summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px;
  text-align: center;
  background: linear-gradient(150deg, #00875e 0%, #00a252 100%);
  border-radius: 4px;
  box-shadow: 0 24px 46px -34px rgba(0, 135, 94, 0.9);
  color: #fff;
}
.avis-google__score {
  display: block;
  margin: 0;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.avis-google__score small {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.avis-google__summary .avis-google__stars {
  display: block;
  margin: 12px 0 10px;
  font-size: 19px;
  color: #ffd34d;
}
.avis-google__summary-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.9);
}
.avis-google__summary-text strong { color: #fff; }
.avis-google__summary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #00875e;
  background: #fff;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.avis-google__summary-link:hover {
  color: #006b4a;
  background: #eaf7f0;
  transform: translateY(-1px);
}
.avis-google__summary-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* --- Mention de source --------------------------------------------------- */
.avis-google__source {
  margin: 26px 0 0;
  font-size: 12.5px;
  line-height: 20px;
  color: #78877f;
  text-align: center;
}
.avis-google__source a {
  color: #00875e;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.avis-google__source a:hover { color: #006b4a; }
