/* ------------------------------- */
/* Style pour tous les avis */
/* ------------------------------- */

.hai-reviews-grid-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5em;
  align-items: start;
  margin: 2em 0;
}
.hai-reviews-sidebar {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 2px 10px #00000033;
  padding: 2em 1.4em;
  min-width: 220px;
  max-width: 320px;
  position: sticky;
  top: 2em;
  height: fit-content;
  transition: box-shadow .2s;
}
.hai-filter-group {
  margin-bottom: 2.2em;
  display: flex;
  flex-direction: column;
}
.hai-filter-group label {
  font-weight: 600;
  color: #ae6d40;
  font-size: 1.03em;
  margin-bottom: .6em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.hai-filter-group select {
  border-radius: 7px;
  border: 1px solid #f5d4b9;
  background: #fff6f0;
  color: #85502a;
  padding: .45em .7em;
  font-size: 1em;
  outline: none;
  margin-bottom: 0;
  transition: border-color .2s;
}
.hai-filter-group select:focus {
  border-color: #f8ba45;
}

.hai-reviews-main {
  min-width: 0;
}

/* Liste des avis en responsive grid - 3 colonnes sur grands écrans */
.hai-reviews-list-all {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5em;
}

/* Responsive : 2 colonnes sur écrans moyens */
@media (max-width: 1280px) {
  .hai-reviews-list-all {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 700px) {
  .hai-reviews-list-all {
    grid-template-columns: 1fr;
  }
}

/* Responsive à garder absolument */
@media (max-width: 900px) {
  .hai-reviews-grid-wrap {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  .hai-reviews-sidebar {
    max-width: 100%;
    margin-bottom: 1.2em;
    position: static;
  }
}
@media (max-width: 480px) {
  .hai-review-item {
    padding: 1em 1.2em;
  }
  .hai-content {
    font-size: 0.95em;
  }
}

.hai-agent { 
color:#ff3e01; 
font-weight:bold; 

}

.hai-astro {
    color: #258fde;
    font-weight: bold;
}

.hai-coaching {
    color: #26ae56;
    font-weight: bold;
}


.hai-voyantdb {
  color: #9c27b0; 
  font-weight: bold;
}


.hai-review-item {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 16px #e2c6bb40;
  padding: 1.2em 1.6em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow .2s;
  border: 1.5px dashed #e1cba3;
}
.hai-review-item:hover {
  box-shadow: 0 8px 24px #f8ba4526;
}
.hai-rating {
  font-size: 1.3em;
  color: #ca0060;
  margin-bottom: 0.5em;
  letter-spacing: 0.07em;
}
.hai-content {
  font-size: 1em;
  color: #442d17;
  margin-bottom: 0.7em;
  transition: max-height 0.3s ease;
}

.hai-content.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 1;        /* nombre de lignes max */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hai-readmore {
    display: inline-block;
    margin-top: 0.5em;
    color: #565454 !important;
    font-weight: 600;
    font-family: times;
    cursor: pointer;
    text-decoration: underline;
}


.hai-footer {
	font-family: times;
    font-size: 17px;
    color: #9a7856;
    text-align: right;
}
.hai-pseudo { 
font-weight: bold; 
}


.hai-date { font-style: italic; margin-left: 0.5em; }

/* Pagination */
.hai-pagination {
  margin-top:1.5em; 
  text-align:center;
}
.hai-pagination a,
.hai-pagination span {
  padding:0.5em 1em;
  border-radius:7px;
  margin: 0 .13em;
  font-size: 1.07em;
}
.hai-pagination a {
    color: #363636 !important;
    text-decoration: none;
    background: #ffffff;
    transition: background .15s;
    font-family: times;
	font-weight: bold;
}
.hai-pagination a:hover {
    background: #7ba389 !important;
    color: #fff !important;
}
.hai-pagination span {
    background: #fff !important;
    color: #363636;
	border: 1.5px solid #e9e9e9;
}

/* Filtres étoiles */
.hai-rating-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  margin-top: 0.6em;
}
.hai-rating-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 0.8em;
  font-size: 1.08em;
  padding: 0.18em 0;
  user-select: none;
}
.hai-rating-radio input[type="radio"] {
  accent-color: #c72c48;
  margin-right: 0.4em;
  width: 1.15em;
  height: 1.15em;
}
.hai-radio-stars {
  display: flex;
  gap: 0.09em;
}
.hai-radio-stars .star {
  font-size: 1.28em;
  color: #e0dfdf;
  transition: color .18s;
}
.hai-rating-radio input[type="radio"]:checked + .hai-radio-stars .star.filled,
.hai-rating-radio:hover .hai-radio-stars .star.filled {
  color: #f8ba45;
}

.hai-filter-label {
  margin-bottom: 0.2em;
  display: inline-block;
}


/* === Slider centré & compact (fix largeur unique) ========================= */
.hai-reviews-slider{
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  margin-block: 32px;
  border-radius: 16px;
}
.hai-reviews-slider.align-left  { margin-left: 0; margin-right: auto; }
.hai-reviews-slider.align-right { margin-left: auto; margin-right: 0; }

/* Track: une seule rangée, jamais de wrap */
.hai-reviews-track{
  display: flex;
  flex-wrap: nowrap;               /* important */
  align-items: stretch;
  transition: transform .4s ease;
  will-change: transform;
}

/* Slide = exactement 100% (sans padding/marge) */
.hai-slide{
  flex: 0 0 100%;                  /* largeur fixe */
  min-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  box-sizing: border-box;
}

/* Padding visuel interne (n’altère pas la largeur de la slide) */
.hai-slide-inner{
  padding: 0 var(--hai-slider-gutter, 20px);
  margin: auto;
  width: min(100%, calc(var(--hai-slider-max, 860px) - 120px));
  text-align: center;
  color: #3f2f23;
}

/* Contenu */
.hai-rating-slide {
  font-size: 1.15rem;
  color: #7ba389;
  letter-spacing: 2px;
  margin-bottom: .6em;
}
.hai-content-slide{
  margin: 0 auto 1em;
  line-height: 1.6;
  font-size: 14px;
  max-width: 720px;
  hyphens: auto;
  overflow-wrap: anywhere;
  font-style: italic;
}

/* === Ligne d'information du client ======================================== */
.hai-footer-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: none;
  margin-top: .4em;
  font-size: 13px !important;
  font-family: serif;
  line-height: 1.4;
}
.hai-client strong{ color: #9a7856; font-weight: 700; }
.hai-footer-slide .hai-pour{ color: #a18261; margin: 0 4px; font-weight: 400; }
.hai-footer-slide .hai-who-name{ font-weight: 700; color: #cc4385a !important; text-decoration: none; }

/* Couleurs par rôle */
.hai-footer-slide .hai-astro,
.hai-footer-slide .hai-astrologer,
.hai-footer-slide .hai-hai_astrologer{ color:#d04e88; }  /* astrologue */
.hai-footer-slide .hai-coaching,
.hai-footer-slide .hai-coach{ color:#d04e88; }           /* coach */
.hai-footer-slide .hai-agent,
.hai-footer-slide .hai-voyantdb,
.hai-footer-slide .hai-mail{ color:#d04e88; }            /* agent / voyant mail */
.hai-footer-slide .hai-voyant,
.hai-footer-slide .hai-voyante{ color:#d04e88; }         /* voyante (SQL table) */

.hai-footer-slide .hai-role{
  margin-left: 6px;
  font-weight: 600;
  color: #9a7856;
}
.hai-footer-slide .hai-date-slide{
  color: #7f705f;
  font-weight: 500;
  font-size: 17px;
  font-family: times;
  margin-top: 15px;
}

.hai-readmore-slide {
  display:inline-block;
  margin-top:.25rem;
  padding:.35em .7em;
  border:1px solid #e0b98c;
  background:#fffdf8;
  border-radius:8px;
  font-size:.9rem;
  color:#6a5b4b;
  cursor:pointer;
}
.hai-readmore-slide:hover{ background:#f8f0e5; }



/* Sécurité composant */
.hai-reviews-slider *{ box-sizing: border-box; }

/* Responsive */
@media (max-width: 768px){
  .hai-reviews-slider{
    padding: 14px 8px;
  }
  .hai-slide-inner{ width: min(100%, calc(var(--hai-slider-max, 860px) - 60px)); }
  .hai-content-slide { font-size: 1rem; }
  .hai-footer-slide{ font-size: .95rem; }
  .hai-prev{ left: 6px; } .hai-next{ right: 6px; }
}

/* === Marquee (défilement continu) ========================================= */
.is-marquee .hai-reviews-track{
  display: flex;
  flex-wrap: nowrap;
  gap: var(--hai-marquee-gap, 24px);           /* espace entre cartes */
  will-change: transform;
  animation: hai-marquee var(--hai-marquee-duration, 40s) linear infinite;
}
.is-marquee .hai-slide{
  flex: 0 0 auto;                              /* largeur auto (pas 100%) */
  min-width: auto;
}
.is-marquee .hai-slide-inner{
  width: clamp(240px, 80vw, 260px);            /* largeur d’une carte */
  background: #fff;                         /* fond couleur carte */
  border-radius: 18px;
  border: 1px solid #b5995a !important;        /* bordure couleur carte */
  padding: 0 16px; 
  margin: 0;
}
.is-marquee .hai-nav,
.is-marquee .hai-dots{ display: none !important; } /* pas de flèches/pastilles */

@keyframes hai-marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--hai-marquee-distance, 1000px))); }
}

/* Mobile serré */
@media (max-width: 430px){
  .is-marquee .hai-slide-inner{
    width: clamp(220px, 88vw, 420px);
    padding: 0 10px;
  }
}
