/* Alignement et conteneur de la barre de réassurance */
.hero-trust-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
  width: 100% !important;
}

/* Alignement du texte + icône */
.hero-trust-row span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.9rem !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

/* Réduction de la taille des SVG (icônes) */
.hero-trust-row svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
}

/* Couleurs spécifiques par icône */
.hero-trust-row .ic-check {
  color: #22c55e !important; /* Vert */
}

.hero-trust-row .ic-bolt {
  color: #eab308 !important; /* Jaune / Orange */
}

.hero-trust-row .ic-shield {
  color: #3b82f6 !important; /* Bleu */
}
/* Permet de cliquer à travers le fond bloquant si la modale reste ouverte */
.search-overlay,
.search-backdrop,
div[class*="backdrop"] {
  pointer-events: auto;
}

/* Force le curseur et la possibilité de cliquer autour pour fermer */
body:has(.search-input:focus) {
  overflow: auto !important;
}
/*───────────────────────────────────────────────
  ETOILES FRACTIONNAIRES  (snippets/stars.njk)

  Deux rangees superposees : la base creuse donne la forme, la rangee pleine
  est rognee a la largeur exacte de la note. Le rognage doit reveler une
  fraction d'etoile, jamais retrecir les icones — d'ou le `flex: 0 0 auto` sur
  les <svg>, sans quoi le conteneur etroit les comprimerait toutes.

  Pose ici et non dans le fragment : celui-ci est rendu des dizaines de fois
  par page, un <style> embarque le serait autant.
───────────────────────────────────────────────*/
.rv-stars {
  position: relative;
  display: inline-block;
  line-height: 0;
  white-space: nowrap;
  --rv-star: #fbbf24;
}
.rv-stars__row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 0;
}
.rv-stars__row > svg { flex: 0 0 auto; }
.rv-stars .rv-stars__base svg { color: rgba(255, 255, 255, 0.17); }
.rv-stars .rv-stars__fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
}
.rv-stars .rv-stars__fill svg { color: var(--rv-star); }

/*───────────────────────────────────────────────
  CARTE D'AVIS  (snippets/review-card.njk)

  Partagee par la page Avis et la page Produit : elle vit donc ici plutot que
  dans le <style> d'un composant.
───────────────────────────────────────────────*/
.rv-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease,
              box-shadow 0.3s ease, background-color 0.3s ease;
}
.rv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 18px 50px -24px rgba(59, 130, 246, 0.6);
}

/* Filet d'accent en haut, revele au survol. */
.rv-card__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rv-card:hover .rv-card__line { opacity: 1; }

/* ── Tete : note a gauche, produit a droite ── */
.rv-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.rv-card__stars { display: inline-flex; flex-shrink: 0; }

/* Le produit devient une pastille : c'est une etiquette, pas une phrase. */
.rv-card__tag {
  display: inline-flex;
  align-items: center;
  max-width: 60%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa0ae;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Le message : c'est lui qu'on vient lire ── */
.rv-card__text {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: #e7e9f0;
  margin: 0 0 16px;
  word-wrap: break-word;
}

.rv-card__img {
  margin: 0 0 16px;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rv-card__img img { display: block; width: 100%; height: auto; }

.rv-card__reply {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 0.7rem;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.18);
}
.rv-card__reply-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.rv-card__reply p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #a4a9b7; }

/* ── Bas de carte : tout le reste, sur une seule ligne discrete ──
   Une seule ligne, jamais deux. En `flex-wrap: wrap`, « View » basculait sous
   la date des que la carte se resserrait — donc sur certaines cartes de la
   grille et pas leurs voisines, ce qui desalignait les hauteurs. La ligne ne
   se coupe plus : c'est le libelle « Verified purchase », seul element
   vraiment compressible, qui cede en premier. */
.rv-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #9aa0ae;
  white-space: nowrap;
}
.rv-card__check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
}
.rv-card__verified {
  font-weight: 600;
  color: rgba(245, 247, 255, 0.72);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Le separateur appartient au libelle, donc il s'efface avec lui. */
.rv-card__verified::after {
  content: '·';
  margin-left: 7px;
  color: rgba(255, 255, 255, 0.22);
}
.rv-card__sep { color: rgba(255, 255, 255, 0.22); flex-shrink: 0; }
.rv-card__date { color: #6b7280; flex-shrink: 0; }

/* La mesure porte sur la carte, pas sur la fenetre : c'est la largeur de
   colonne qui contraint, et elle ne suit pas la fenetre lineairement. */
.rv-cell { container-type: inline-size; }
@container (max-width: 320px) {
  .rv-card__verified-x { display: none; }
}
@container (max-width: 264px) {
  .rv-card__verified { display: none; }
}

/* L'avatar ne sert que lorsqu'un vrai pseudo existe : petit, en bas. */
.rv-card__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
}
.rv-card__name { font-weight: 600; color: rgba(245, 247, 255, 0.8); }

/* « View » pousse a droite ; la fleche avance au survol. */
.rv-card__view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
  color: #9aa0ae;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.rv-card__view svg { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.rv-card__view:hover { color: #7dd3fc; }
.rv-card__view:hover svg { transform: translateX(3px); }
